ftown-bridge 0.30.60 → 0.30.64
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/dist/ask-question-hook.js +1 -1
- package/dist/ask-question-hook.js.map +1 -1
- package/dist/attention-prompt-protocol.d.ts +5 -12
- package/dist/attention-prompt-protocol.js +0 -7
- package/dist/attention-prompt-protocol.js.map +1 -1
- package/dist/attention-store.d.ts +4 -5
- package/dist/attention-store.js +24 -41
- package/dist/attention-store.js.map +1 -1
- package/dist/bridge-instance.d.ts +4 -0
- package/dist/bridge-instance.js +93 -0
- package/dist/bridge-instance.js.map +1 -0
- package/dist/command-rpc.js +3 -22
- package/dist/command-rpc.js.map +1 -1
- package/dist/coordination/attention-routing.d.ts +3 -4
- package/dist/coordination/attention-routing.js +5 -9
- package/dist/coordination/attention-routing.js.map +1 -1
- package/dist/discussion-cli.js +3 -2
- package/dist/discussion-cli.js.map +1 -1
- package/dist/grok-hook-adapter.js +2 -1
- package/dist/grok-hook-adapter.js.map +1 -1
- package/dist/harness-commands.js +7 -2
- package/dist/harness-commands.js.map +1 -1
- package/dist/hook-adapters.js +3 -2
- package/dist/hook-adapters.js.map +1 -1
- package/dist/identity-reset.d.ts +4 -1
- package/dist/identity-reset.js +3 -3
- package/dist/identity-reset.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/installation-manifest.d.ts +1 -1
- package/dist/installation-manifest.js +1 -1
- package/dist/installation-manifest.js.map +1 -1
- package/dist/local-api-server.js +4 -8
- package/dist/local-api-server.js.map +1 -1
- package/dist/mail-delivery.js +11 -1
- package/dist/mail-delivery.js.map +1 -1
- package/dist/mail-store.d.ts +1 -0
- package/dist/mail-store.js.map +1 -1
- package/dist/project-board-store.js +24 -8
- package/dist/project-board-store.js.map +1 -1
- package/dist/project-discussion-delivery.js +4 -1
- package/dist/project-discussion-delivery.js.map +1 -1
- package/dist/project-discussion-protocol.d.ts +5 -0
- package/dist/project-discussion-protocol.js +4 -1
- package/dist/project-discussion-protocol.js.map +1 -1
- package/dist/sessions-commands.js +3 -4
- package/dist/sessions-commands.js.map +1 -1
- package/dist/start-commands.d.ts +1 -1
- package/dist/start-commands.js +40 -3
- package/dist/start-commands.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/wire-types.d.ts +10 -1
- package/dist/wire-types.js +18 -2
- package/dist/wire-types.js.map +1 -1
- package/package.json +2 -2
- package/pi-extension/API.md +7 -3
- package/pi-extension/ftown.js +85 -8
- package/skills/ftown/SKILL.md +9 -8
- package/skills/ftown/agents/openai.yaml +2 -2
- package/skills/ftown/references/orchestrator.md +4 -4
- package/skills/ftown/references/sessions.md +10 -6
package/skills/ftown/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ftown
|
|
3
3
|
description: >-
|
|
4
4
|
Control ftown sessions and multi-provider routing: sessions
|
|
5
|
-
(create/list/read/drive, archive/revive/remove), worktrees, and
|
|
5
|
+
(create/list/read/drive, archive/revive/remove), worktrees, project discussions, and direct session mail.
|
|
6
6
|
Choose bridges by capacity, transfer folders between paired computers, and
|
|
7
7
|
launch workers under the same project across bridges.
|
|
8
8
|
Handle human attention and questions routed to the parent first. Support
|
|
@@ -73,6 +73,7 @@ ftown sessions create --parent --plan-item p2 --require-green-pr --prompt "Revie
|
|
|
73
73
|
ftown brief set --file brief.md
|
|
74
74
|
ftown attention list
|
|
75
75
|
ftown worktrees list
|
|
76
|
+
ftown discuss reply <thread-id> --project App --text "Reviewed the API client"
|
|
76
77
|
ftown harness mail send <session-id> --type task "review the API client"
|
|
77
78
|
ftown harness mail read
|
|
78
79
|
ftown sessions handoff <session-id> --shell grok --model fast
|
|
@@ -157,7 +158,7 @@ ftown discuss reply <thread-id> --text "ARM smoke tests passed." --project App
|
|
|
157
158
|
ftown discuss activity releases --after 0 --project App --json
|
|
158
159
|
```
|
|
159
160
|
|
|
160
|
-
A post or reply can mention sessions with repeatable `--mention <bridge-id>/<session-id>` or inline `@<bridge-id>/<session-id>`.
|
|
161
|
+
A post or reply can mention sessions with repeatable `--mention <bridge-id>/<session-id>` or inline `@<bridge-id>/<session-id>`. Mentions notify the named sessions. Run `follow` from a session to receive notifications about replies and `unfollow` to stop. A session posting from another bridge uses its own identity and the project's home for storage. Read notifications with `ftown harness mail read`. For a discussion notification, use the included `ftown discuss reply` command to post in the original thread. In Pi and OMP, use the `ftown_discuss` tool with operation `reply`, the project, thread ID, and reply text. Supply the home bridge when the notification specifies one. Use `ftown_mail` for direct session messages.
|
|
161
162
|
|
|
162
163
|
Read additional result pages with `--after <nextAfter>`. For incremental channel activity, save the last post's `seq` and pass it to `activity --after` next time. `post`, `reply`, `channels create` and `create-ticket` accept a client-generated UUID via `--id` for retries.
|
|
163
164
|
|
|
@@ -209,8 +210,8 @@ available. Mail is for directed instructions (`--type task`), results
|
|
|
209
210
|
non-urgent notes; `fyi` never wakes the recipient. Progress and status go on
|
|
210
211
|
your card (below), never as mail. Each new batch of mail nudges the recipient
|
|
211
212
|
at most once; un-read mail stays in the inbox — read it with
|
|
212
|
-
`ftown harness mail read`.
|
|
213
|
-
|
|
213
|
+
`ftown harness mail read`. Keep project conversations in their channel with `ftown discuss post`
|
|
214
|
+
and `ftown discuss reply`. Inspect peers with `ftown board`
|
|
214
215
|
and `ftown sessions list`.
|
|
215
216
|
|
|
216
217
|
## Status and board
|
|
@@ -345,8 +346,8 @@ provide, such as credentials or approvals.
|
|
|
345
346
|
Add `--option <label>` (repeatable) to ask a question the human answers in the
|
|
346
347
|
dashboard inbox. `--multi` allows several choices; `--no-text` disallows a
|
|
347
348
|
free-text reply. Without options the question is free text. Add `--wait` to
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
wait until the question is answered or dismissed. Set `--timeout <seconds>` for a bounded
|
|
350
|
+
wait. After a timeout the question stays open. Check it later with
|
|
350
351
|
`ftown sessions attention-status <event-id> --wait`. The command prints the
|
|
351
352
|
event ID.
|
|
352
353
|
|
|
@@ -355,8 +356,8 @@ from "You" starting with `[ftown attention answer id=...]`. When the parent
|
|
|
355
356
|
answers, the same delivery applies but the mail sender is the parent session.
|
|
356
357
|
|
|
357
358
|
Claude Code `AskUserQuestion` calls inside an FTown session are answered from
|
|
358
|
-
the same inbox
|
|
359
|
-
|
|
359
|
+
the same inbox. When the hook has already stopped waiting, your dashboard answer goes to
|
|
360
|
+
the session as a direct message. See `references/sessions.md` for exit codes and waiting details.
|
|
360
361
|
|
|
361
362
|
Attach one GitHub pull request with `ftown sessions pr <URL>`; another URL
|
|
362
363
|
replaces it and `--clear` removes it. This records a link without creating a PR.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "ftown"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "Use ftown to manage sessions and mail."
|
|
3
|
+
short_description: "Manage ftown sessions, project discussions, and direct mail."
|
|
4
|
+
default_prompt: "Use $ftown to manage sessions, reply in project discussion threads, and send direct session mail."
|
|
@@ -7,7 +7,7 @@ List sessions first. Scope each task, files and checks; save `session.id`. Omit
|
|
|
7
7
|
model and effort, run `ftown quota --json` and follow `quota.md` (owner
|
|
8
8
|
tiers first); never route to `exhausted`.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Compare bridge capacity with `ftown bridges --resources --json`. To copy files, see **Copy a folder and launch a worker** in `sessions.md`.
|
|
11
11
|
|
|
12
12
|
Keep the plan on the manager, not in a ticket system.
|
|
13
13
|
Add steps with `ftown plan add` (`--after`/`--priority` set precedence;
|
|
@@ -27,9 +27,9 @@ Wait on the board for `any-done`, `any-blocked`, `any-ready` or `all-done`; act
|
|
|
27
27
|
progress goes on the card, never as mail. A child's question comes to you
|
|
28
28
|
first: answer from facts you hold with `ftown attention answer`, or
|
|
29
29
|
escalate preferences and irreversible choices
|
|
30
|
-
with `ftown attention escalate --note`.
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
with `ftown attention escalate --note`. Read direct tasks, results, escalations and discussion notifications with
|
|
31
|
+
`ftown harness mail read`. For discussions, use the included `ftown discuss reply` command
|
|
32
|
+
to answer in the original thread. Use `ftown sessions screen <worker-id> --limit 100`
|
|
33
33
|
only to investigate. Parallel tasks need disjoint write
|
|
34
34
|
ownership and serialized shared resources. Children set their card to
|
|
35
35
|
done and report to the parent; you raise one "Work complete" notice
|
|
@@ -335,8 +335,8 @@ require a bridge reporting `capabilities.attention.prompt === true`; otherwise
|
|
|
335
335
|
the command fails before writing and asks you to update the bridge.
|
|
336
336
|
|
|
337
337
|
`--wait` and `attention-status --wait` print `Waiting for an answer (attention <id>)...`
|
|
338
|
-
to stderr and
|
|
339
|
-
`--timeout <
|
|
338
|
+
to stderr and wait until the question is answered or dismissed. To return earlier,
|
|
339
|
+
set `--timeout <seconds>` (1–86400). The question stays open when this wait ends.
|
|
340
340
|
|
|
341
341
|
| Exit | Meaning |
|
|
342
342
|
|------|---------|
|
|
@@ -355,8 +355,8 @@ directly. If nobody is waiting, the answer is sent as ftown mail from "You"
|
|
|
355
355
|
(`fromName` "You", thread `attention:<id>`) whose body starts with
|
|
356
356
|
`[ftown attention answer id=<id>]`. Claude Code `AskUserQuestion` calls inside an
|
|
357
357
|
FTown session follow the same path and are answered from the dashboard inbox.
|
|
358
|
-
|
|
359
|
-
after an hour.
|
|
358
|
+
Choosing “Answer in terminal” hands control back to Claude. FTown also returns control to Claude
|
|
359
|
+
after about an hour. If the question is still open, a later dashboard answer goes to the session inbox.
|
|
360
360
|
|
|
361
361
|
### Parent-first routing
|
|
362
362
|
|
|
@@ -398,7 +398,11 @@ its value. New sessions/children do not implicitly inherit a parent's PR.
|
|
|
398
398
|
New commands probe the exact bridge capability before writing; update old bridges
|
|
399
399
|
with the exact version setup command in their readiness hint.
|
|
400
400
|
|
|
401
|
-
##
|
|
401
|
+
## Direct session mail
|
|
402
|
+
|
|
403
|
+
For a project conversation, use `ftown discuss post` to start a thread. When
|
|
404
|
+
a discussion notification arrives in your inbox, follow its `ftown discuss reply`
|
|
405
|
+
command or use the Pi/OMP `ftown_discuss` reply tool.
|
|
402
406
|
|
|
403
407
|
`tell` posts to the target session's **inbox**. Mail is delivered into the
|
|
404
408
|
recipient's context automatically (as `[ftown mail]` context), so there is no
|
|
@@ -426,7 +430,7 @@ mail.
|
|
|
426
430
|
# Tell a specific session
|
|
427
431
|
ftown sessions tell <session-id> "tests are green, ship it"
|
|
428
432
|
|
|
429
|
-
#
|
|
433
|
+
# Group related direct messages in the recipient's inbox
|
|
430
434
|
ftown sessions tell <session-id> --type task "implement the API client"
|
|
431
435
|
ftown sessions tell <session-id> --type result --thread <id> "done, 0 failures"
|
|
432
436
|
|