@sailorbridge/client 0.2.4 → 0.2.5

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 CHANGED
@@ -89,10 +89,13 @@ sailorbridge --help
89
89
  sailorbridge login
90
90
  sailorbridge upgrade
91
91
  sailorbridge workflow
92
- sailorbridge mailbox peek "$SAILORBRIDGE_AGENT_NAME"
92
+ sailorbridge mailbox peek
93
+ sailorbridge mailbox claim
94
+ sailorbridge reply --in-reply-to MESSAGE_ID REPLY --body-file ./reply.txt
93
95
  sailorbridge mailbox ack MESSAGE_ID --lease-token LEASE_TOKEN
94
96
  printf '%s\n' 'hello $USER `date` $(pwd)' | sailorbridge mailbox send --to-agents ab_hand --tag BTW
95
- sailorbridge mailbox send --to-roles reviewer --session ab --tag PLAN-REVIEW --body-file ./plan.txt
97
+ sailorbridge mailbox send --to-roles reviewer --tag PLAN-REVIEW --body-file ./plan.txt
98
+ sailorbridge mailbox send --to-agents captain --tag REPORT --body-file ./report.txt
96
99
  sailorbridge enrollment --session ab --agent ab_hand --roles operator
97
100
  sailorbridge host register
98
101
  sailorbridge host consume --once --dry-run-start
@@ -101,8 +104,8 @@ sailorbridge host service status
101
104
  sailorbridge worker list
102
105
  sailorbridge worker run --worker dev-1 -- uname -s
103
106
  sailorbridge worker job JOB_ID
104
- sailorbridge worker serve --worker dev-1 --workdir "$PWD"
105
- sailorbridge supervise --agent ab_hand --cli codex --cwd "$PWD" --i-own-this-agent
107
+ sailorbridge worker serve
108
+ sailorbridge supervise --cli codex --cwd "$PWD" --i-own-this-agent
106
109
  ```
107
110
 
108
111
  `worker list`, `worker run`, and `worker job` are member-runtime commands;
@@ -132,7 +135,7 @@ The package installs a `sailorbridge` bin after build:
132
135
  ```bash
133
136
  bun run build
134
137
  node dist/src/cli.js workflow
135
- node dist/src/cli.js mailbox peek "$SAILORBRIDGE_AGENT_NAME"
138
+ node dist/src/cli.js mailbox peek
136
139
  ```
137
140
 
138
141
  Build a native standalone binary for the current host:
@@ -298,11 +301,11 @@ non-destructive command. Add `--lease` to a claim only to include rows already
298
301
  leased by this client. A supervisor peek leaves workflow-obligation messages
299
302
  queued and claimable after it surfaces the body-free doorbell. The bound agent's
300
303
  first `mailbox claim` leases them, then the agent completes the required action.
301
- Direct workflow messages are acknowledged with the lease token returned by the
302
- claim. Durable task sources are acknowledged by their successful task
303
- transition, while task terminal replies and `UNPARKED` are auto-acked after
304
- delivery. Ordinary and control messages keep their existing acknowledgement
305
- behavior.
304
+ Plain claims expose every lease token. `HUMAN` and `MAIL` stay leased so
305
+ `reply --in-reply-to` can infer the sender and atomically record the reply plus
306
+ source ACK; untagged peer mail is shown and handled as `MAIL`.
307
+ `--no-ack` leaves the source leased. Other direct workflow messages
308
+ retain their manual ACK or durable-transition settlement.
306
309
 
307
310
  Mailbox send is footgun-free by construction: message bodies are read only from
308
311
  piped stdin or `--body-file`, never from positional argv. Every `--body-file` and
@@ -312,8 +315,9 @@ that another selected source would discard is rejected instead of silently
312
315
  ignored; commands without a stdin contract reject it before any relay request.
313
316
  This prevents the local
314
317
  shell from expanding `$VARS`, backticks, or `$()` before the client starts. A
315
- single `--to-agents A` sends directly to that agent even when `--session` is also
316
- present. Multiple explicit agents use the session mailbox endpoint. `--to-agents`
318
+ single `--to-agents A` sends directly to that agent, except reserved `captain`,
319
+ which uses the session transcript endpoint. Multiple explicit agents use the
320
+ session mailbox endpoint. `--to-agents`
317
321
  is mutually exclusive with `--to-roles` and `--to-host`; combine roles and host
318
322
  when filtering registered agents. An empty pipe sends an empty string body; an
319
323
  interactive TTY with no pipe fails fast instead of waiting for typed input.
@@ -341,10 +345,10 @@ interactive pane. Host-started agents use readable session names such as
341
345
  `sb-<team>-<role>` and append the captain number only when that default already
342
346
  exists on the host.
343
347
 
344
- Tmux launch environment is passed through tmux process mechanisms (`-e` and the
345
- child process environment), never as `KEY=value command` text typed into the
346
- pane. That still has the normal short-lived process-list exposure of command
347
- arguments; cleaner secret delivery belongs to a later transport release.
348
+ Tmux launch environment is handed directly to the new pane through a private,
349
+ one-shot FIFO. The pane imports it immediately before `exec`; bearer values
350
+ never enter tmux argv, the tmux environment store, pane input, or a regular
351
+ credential file.
348
352
 
349
353
  SDK drivers are optional implementation code and are release-gated from the
350
354
  public Phase 1 CLI. A base install or tmux-only caller does not need to
@@ -391,6 +395,16 @@ channel must have one owner, otherwise mailbox leases can be stolen. Use
391
395
  `sailorbridge supervise` only for agents not already driven by another
392
396
  listener/supervisor.
393
397
 
398
+ Context auto-checkpoint (tmux transport, claude/codex): the supervisor reads
399
+ the context percentage from the pane every ~20s and, at or above the agent's
400
+ configured `context_checkpoint_percent` (console setting; `0` disables,
401
+ default 75), posts one self-addressed `SAVE-CONTEXT`. The mailbox loop then
402
+ cues the `save_ctx` skill, waits for `SAVE-CONTEXT-DONE`, and replays
403
+ `/clear` plus the `resume_ctx` cue. Threshold changes made in the console
404
+ take effect live through the `reload_context_autopilot` resolve command.
405
+ Semantics match the engine listener's autopilot (same thresholds, same
406
+ armed-below/fire-once water-mark).
407
+
394
408
  Default transport selection:
395
409
 
396
410
  | CLI | Default transport | Default command |
@@ -448,7 +462,7 @@ message. Persistent relay errors back off instead of spinning.
448
462
  The CLI entrypoint is explicit about ownership:
449
463
 
450
464
  ```bash
451
- sailorbridge supervise --agent A --cli codex --cwd /repo --i-own-this-agent
465
+ sailorbridge supervise --cli codex --cwd /repo --i-own-this-agent
452
466
  ```
453
467
 
454
468
  `--i-own-this-agent` is required as a runtime collision guard. For tmux launches,