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.
Files changed (61) hide show
  1. package/dist/ask-question-hook.js +1 -1
  2. package/dist/ask-question-hook.js.map +1 -1
  3. package/dist/attention-prompt-protocol.d.ts +5 -12
  4. package/dist/attention-prompt-protocol.js +0 -7
  5. package/dist/attention-prompt-protocol.js.map +1 -1
  6. package/dist/attention-store.d.ts +4 -5
  7. package/dist/attention-store.js +24 -41
  8. package/dist/attention-store.js.map +1 -1
  9. package/dist/bridge-instance.d.ts +4 -0
  10. package/dist/bridge-instance.js +93 -0
  11. package/dist/bridge-instance.js.map +1 -0
  12. package/dist/command-rpc.js +3 -22
  13. package/dist/command-rpc.js.map +1 -1
  14. package/dist/coordination/attention-routing.d.ts +3 -4
  15. package/dist/coordination/attention-routing.js +5 -9
  16. package/dist/coordination/attention-routing.js.map +1 -1
  17. package/dist/discussion-cli.js +3 -2
  18. package/dist/discussion-cli.js.map +1 -1
  19. package/dist/grok-hook-adapter.js +2 -1
  20. package/dist/grok-hook-adapter.js.map +1 -1
  21. package/dist/harness-commands.js +7 -2
  22. package/dist/harness-commands.js.map +1 -1
  23. package/dist/hook-adapters.js +3 -2
  24. package/dist/hook-adapters.js.map +1 -1
  25. package/dist/identity-reset.d.ts +4 -1
  26. package/dist/identity-reset.js +3 -3
  27. package/dist/identity-reset.js.map +1 -1
  28. package/dist/index.js +7 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/installation-manifest.d.ts +1 -1
  31. package/dist/installation-manifest.js +1 -1
  32. package/dist/installation-manifest.js.map +1 -1
  33. package/dist/local-api-server.js +4 -8
  34. package/dist/local-api-server.js.map +1 -1
  35. package/dist/mail-delivery.js +11 -1
  36. package/dist/mail-delivery.js.map +1 -1
  37. package/dist/mail-store.d.ts +1 -0
  38. package/dist/mail-store.js.map +1 -1
  39. package/dist/project-board-store.js +24 -8
  40. package/dist/project-board-store.js.map +1 -1
  41. package/dist/project-discussion-delivery.js +4 -1
  42. package/dist/project-discussion-delivery.js.map +1 -1
  43. package/dist/project-discussion-protocol.d.ts +5 -0
  44. package/dist/project-discussion-protocol.js +4 -1
  45. package/dist/project-discussion-protocol.js.map +1 -1
  46. package/dist/sessions-commands.js +3 -4
  47. package/dist/sessions-commands.js.map +1 -1
  48. package/dist/start-commands.d.ts +1 -1
  49. package/dist/start-commands.js +40 -3
  50. package/dist/start-commands.js.map +1 -1
  51. package/dist/types.d.ts +1 -0
  52. package/dist/wire-types.d.ts +10 -1
  53. package/dist/wire-types.js +18 -2
  54. package/dist/wire-types.js.map +1 -1
  55. package/package.json +2 -2
  56. package/pi-extension/API.md +7 -3
  57. package/pi-extension/ftown.js +85 -8
  58. package/skills/ftown/SKILL.md +9 -8
  59. package/skills/ftown/agents/openai.yaml +2 -2
  60. package/skills/ftown/references/orchestrator.md +4 -4
  61. package/skills/ftown/references/sessions.md +10 -6
@@ -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 ftown mail.
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>`. Mentioned sessions receive ftown mail. Run `follow` from the session that wants mail for thread replies and `unfollow` to stop. A session posting from another bridge uses its own identity and the project's home for storage. Read arriving mail with `ftown harness mail read`.
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`. Prefer mail for agent communication; use terminal
213
- key injection only when the task needs it. Inspect peers with `ftown board`
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
- block until the answer arrives (`--timeout <s>`, default 600). A timeout does
349
- not cancel the question; check later with
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, and the terminal picker appears only after "Answer in terminal"
359
- or an hour. Exit codes and waiting details: `references/sessions.md`.
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: "Control ftown sessions, mail, and orchestration."
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
- For cross-bridge delegation, use `ftown bridges --resources --json` to compare host capacity. If the destination needs files, follow **Copy a folder and launch a worker** in `sessions.md`.
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`. Mail is for directed
31
- instructions, results and escalations; read it with
32
- `ftown harness mail read`. Use `ftown sessions screen <worker-id> --limit 100`
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 poll until the item is resolved or the deadline (`--timeout`
339
- `--timeout <s>`, 1..86400, default 600). Exit codes:
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
- The terminal picker appears only if the human chooses "Answer in terminal" or
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
- ## Messaging (mail)
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
- # Mail type / threading
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