mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 05:39:52 +00:00
Preserve Thunderbird profiles and add OpenCode Mobile support
This commit is contained in:
27
dotfiles/common/.config/opencode/commands/mobile.md
Normal file
27
dotfiles/common/.config/opencode/commands/mobile.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
description: OpenCode Mobile (QR + push token)
|
||||
---
|
||||
Call the `mobile` tool.
|
||||
|
||||
Command arguments: $ARGUMENTS
|
||||
|
||||
- If $ARGUMENTS is non-empty, call the tool with { token: "$ARGUMENTS" }.
|
||||
- If $ARGUMENTS is empty, call the tool with no args to print the QR.
|
||||
|
||||
Token format:
|
||||
- `ExponentPushToken[xxxxxxxxxxxxxx]` - Register push token only
|
||||
- `ExponentPushToken[xxx] ServerUrl[http://...]` - Register with custom server URL
|
||||
|
||||
When to use ServerUrl:
|
||||
- Use when the mobile app is connected directly to a local server
|
||||
- The serverUrl will be used for notification deep links instead of tunnel
|
||||
- Omit when using tunnel connection (default behavior)
|
||||
|
||||
Important:
|
||||
- Do not output analysis/thoughts.
|
||||
- Only call the tool; return no extra text.
|
||||
|
||||
Examples:
|
||||
- `/mobile` - Show QR code for tunnel connection
|
||||
- `/mobile ExponentPushToken[xxxxxxxxxxxxxx]` - Register token
|
||||
- `/mobile ExponentPushToken[xxx] ServerUrl[http://192.168.1.100:4096]` - Register with custom URL
|
||||
@@ -3,5 +3,8 @@
|
||||
"instructions": [
|
||||
"~/.config/ai/bootstrap.md",
|
||||
"~/.config/ai/rules/safety.md"
|
||||
],
|
||||
"plugin": [
|
||||
"opencode-mobile@latest"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user