starbridge 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -6
- package/dist/starbridge.js +873 -228
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,9 +135,19 @@ skill tells them when. `starbridge --help` lists every flag.
|
|
|
135
135
|
starbridge pair
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
It prints a code, a link and a QR code.
|
|
139
|
-
|
|
140
|
-
or in the web app, which works from a machine
|
|
138
|
+
It prints a code, a link and a QR code. Scan the QR code with the Starbridge Android app or your
|
|
139
|
+
phone's camera, open the link in a browser where you are signed in, or type the code in
|
|
140
|
+
Settings → Devices → Add a device, on your phone or in the web app, which works from a machine
|
|
141
|
+
with no browser. The code expires in 10 minutes.
|
|
142
|
+
|
|
143
|
+
The QR code is a `starbridge://` link that only the Android app opens, and it carries a check
|
|
144
|
+
key with which the app confirms the machine's check code by itself. Approved any other way, the machine prints its check
|
|
145
|
+
code and asks whether the Android app shows the same beside it under Devices: press Enter if so, `n` if not.
|
|
146
|
+
Where setup runs with no terminal, run `starbridge pair --confirm`, or `starbridge pair --reject`
|
|
147
|
+
if the codes differ. A code that differs means a server read your pairing code and paired the
|
|
148
|
+
machine into an account it controls ([PROTOCOL.md](../PROTOCOL.md#pairing)); the machine then
|
|
149
|
+
saves nothing.
|
|
150
|
+
|
|
141
151
|
The machine pairs with
|
|
142
152
|
https://starbridge.run unless you pass `--server https://starbridge.example` or set
|
|
143
153
|
`STARBRIDGE_SERVER`.
|
|
@@ -221,6 +231,21 @@ To upload without the service:
|
|
|
221
231
|
starbridge quota push --provider claude --provider codex
|
|
222
232
|
```
|
|
223
233
|
|
|
234
|
+
### Quiet the phone while you're here
|
|
235
|
+
|
|
236
|
+
On a desktop or laptop you work at, turn on presence:
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
starbridge config presence on
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
While this machine's screen is unlocked and had keyboard or mouse input in the last minute,
|
|
243
|
+
notifications on your other devices wait for the time set in Starbridge's Settings (30 s by
|
|
244
|
+
default) and come only if the question is still open, so one you answer here doesn't buzz your
|
|
245
|
+
phone. The question itself shows everywhere at once. The machine reads its lock and idle time
|
|
246
|
+
itself and tells the server only yes or no. It works on macOS, Windows, and Linux under GNOME
|
|
247
|
+
or X11 with `xprintidle`; a machine with no screen sends nothing.
|
|
248
|
+
|
|
224
249
|
### Permission prompts
|
|
225
250
|
|
|
226
251
|
Permission prompts from Claude Code, opencode and Pi stay at the keyboard until you turn them on
|
|
@@ -264,9 +289,10 @@ Keys and state live in `~/.config/starbridge` (or `$XDG_CONFIG_HOME/starbridge`,
|
|
|
264
289
|
`$STARBRIDGE_CONFIG_DIR`), readable only by you. `starbridge config` prints this machine's
|
|
265
290
|
settings.
|
|
266
291
|
|
|
267
|
-
The Claude Code plugin's hooks call `starbridge hook …`.
|
|
268
|
-
`AskUserQuestion`
|
|
269
|
-
the
|
|
292
|
+
The Claude Code plugin's hooks call `starbridge hook …`. When Claude Code opens its
|
|
293
|
+
`AskUserQuestion` picker, `starbridge hook permission` posts the question to your devices too:
|
|
294
|
+
the first answer, in the picker or on a device, wins, and the other closes as answered
|
|
295
|
+
elsewhere. If the machine is not paired or the server can't be reached, only the picker asks. The
|
|
270
296
|
opencode plugin runs `starbridge hook question --agent opencode` on each call of opencode's
|
|
271
297
|
`question` tool: it posts each question to your devices and prints the answers for opencode,
|
|
272
298
|
or nothing if the terminal answers first or the server can't be reached.
|