teamsmith 0.2.0 → 0.3.0

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 (117) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/skills/teamsmith/CHANGELOG.md +28 -0
  4. package/skills/teamsmith/SKILL.md +14 -7
  5. package/skills/teamsmith/extension/team-notify.ts +37 -6
  6. package/skills/teamsmith/extension/team.ts +438 -0
  7. package/skills/teamsmith/references/config.md +39 -6
  8. package/skills/teamsmith/references/migration.md +197 -47
  9. package/skills/teamsmith/references/protocol.md +176 -19
  10. package/skills/teamsmith/references/troubleshooting.md +124 -7
  11. package/skills/teamsmith/references/workflows.md +36 -2
  12. package/skills/teamsmith/scripts/lib/cmd-agents.sh +318 -23
  13. package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +2 -2
  14. package/skills/teamsmith/scripts/lib/cmd-config.sh +349 -67
  15. package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
  16. package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
  17. package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
  18. package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
  19. package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
  20. package/skills/teamsmith/scripts/lib/cmd-project.sh +30 -103
  21. package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
  22. package/skills/teamsmith/scripts/lib/cmd-reply.sh +3 -3
  23. package/skills/teamsmith/scripts/lib/cmd-review.sh +175 -30
  24. package/skills/teamsmith/scripts/lib/cmd-status.sh +226 -17
  25. package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
  26. package/skills/teamsmith/scripts/lib/cmd-watch.sh +564 -46
  27. package/skills/teamsmith/scripts/lib/common.sh +773 -48
  28. package/skills/teamsmith/scripts/lib/gate-lock.sh +544 -0
  29. package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
  30. package/skills/teamsmith/scripts/panel/panel.js +207 -207
  31. package/skills/teamsmith/scripts/panel/src/App.tsx +58 -21
  32. package/skills/teamsmith/scripts/panel/src/clipboard.ts +11 -5
  33. package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
  34. package/skills/teamsmith/scripts/panel/src/data.ts +11 -3
  35. package/skills/teamsmith/scripts/panel/src/layout.ts +209 -69
  36. package/skills/teamsmith/scripts/panel/src/main.tsx +33 -8
  37. package/skills/teamsmith/scripts/panel/src/strings/en.ts +39 -29
  38. package/skills/teamsmith/scripts/panel/src/strings/zh.ts +41 -31
  39. package/skills/teamsmith/scripts/panel/src/types.ts +28 -3
  40. package/skills/teamsmith/scripts/replies.mjs +4 -1
  41. package/skills/teamsmith/scripts/shim/tmux +18 -0
  42. package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
  43. package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
  44. package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
  45. package/skills/teamsmith/scripts/team +19 -6
  46. package/skills/teamsmith/templates/AGENTS.section.md.tmpl +8 -1
  47. package/skills/teamsmith/templates/config.sh.tmpl +20 -1
  48. package/skills/teamsmith/templates/pm-prompt.md.tmpl +21 -0
  49. package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
  50. package/skills/teamsmith/tests/bg-ledger.sh +168 -10
  51. package/skills/teamsmith/tests/checkout-shape-probe.sh +3 -1
  52. package/skills/teamsmith/tests/config-cli.sh +160 -14
  53. package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
  54. package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
  55. package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
  56. package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
  57. package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
  58. package/skills/teamsmith/tests/flip-m33.sh +5 -3
  59. package/skills/teamsmith/tests/flip-m37.sh +4 -1
  60. package/skills/teamsmith/tests/flip-m4.3.sh +4 -1
  61. package/skills/teamsmith/tests/flip-m6.3.sh +4 -1
  62. package/skills/teamsmith/tests/flip-m6.5.sh +4 -1
  63. package/skills/teamsmith/tests/flip-m7.2.sh +4 -1
  64. package/skills/teamsmith/tests/flip-p158.sh +2 -1
  65. package/skills/teamsmith/tests/flip-p210.sh +4 -1
  66. package/skills/teamsmith/tests/flip-p217.sh +4 -1
  67. package/skills/teamsmith/tests/flip-p287-lock.sh +342 -0
  68. package/skills/teamsmith/tests/flip-p287-name.sh +279 -0
  69. package/skills/teamsmith/tests/flip-p304-read-side.sh +98 -0
  70. package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
  71. package/skills/teamsmith/tests/flip-p309-p162-deep.sh +122 -0
  72. package/skills/teamsmith/tests/flip-p310-lock.sh +216 -0
  73. package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
  74. package/skills/teamsmith/tests/help-surface.sh +1664 -0
  75. package/skills/teamsmith/tests/install-shape.sh +279 -20
  76. package/skills/teamsmith/tests/key-replies-pty.sh +9 -10
  77. package/skills/teamsmith/tests/key-replies-ui.sh +0 -7
  78. package/skills/teamsmith/tests/key-replies.sh +240 -1
  79. package/skills/teamsmith/tests/ledger-ban.sh +5 -4
  80. package/skills/teamsmith/tests/ledger-claim.sh +2 -1
  81. package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
  82. package/skills/teamsmith/tests/lib/model-policy.sh +4 -0
  83. package/skills/teamsmith/tests/lib/model-routing-flips.py +51 -0
  84. package/skills/teamsmith/tests/lib/reply-fixture.sh +4 -9
  85. package/skills/teamsmith/tests/lib/section-guard.sh +258 -13
  86. package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
  87. package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
  88. package/skills/teamsmith/tests/lib/tmux-iso.sh +31 -13
  89. package/skills/teamsmith/tests/loop-inventory.tsv +59 -47
  90. package/skills/teamsmith/tests/panel-b2.sh +106 -3
  91. package/skills/teamsmith/tests/panel-b3-stub.sh +112 -4
  92. package/skills/teamsmith/tests/panel-b3.sh +175 -19
  93. package/skills/teamsmith/tests/panel-choices.sh +11 -6
  94. package/skills/teamsmith/tests/panel-cpu.sh +2 -1
  95. package/skills/teamsmith/tests/panel-knobs.sh +7 -1
  96. package/skills/teamsmith/tests/panel-p21.sh +156 -73
  97. package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
  98. package/skills/teamsmith/tests/panel-strings.mjs +33 -18
  99. package/skills/teamsmith/tests/perf.sh +121 -30
  100. package/skills/teamsmith/tests/routes.sh +327 -93
  101. package/skills/teamsmith/tests/seat-interrupt.sh +1002 -0
  102. package/skills/teamsmith/tests/seat-visibility.sh +675 -0
  103. package/skills/teamsmith/tests/section-budgets.tsv +20 -10
  104. package/skills/teamsmith/tests/section-guard.sh +6 -1
  105. package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
  106. package/skills/teamsmith/tests/section-paths.tsv +19 -13
  107. package/skills/teamsmith/tests/section-select.sh +8 -1
  108. package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
  109. package/skills/teamsmith/tests/slash-team.sh +617 -0
  110. package/skills/teamsmith/tests/smoke.sh +2972 -440
  111. package/skills/teamsmith/tests/task-model-routing.sh +507 -10
  112. package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
  113. package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
  114. package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
  115. package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
  116. package/skills/teamsmith-init/SKILL.md +12 -12
  117. package/skills/teamsmith-init/references/bootstrap.md +3 -3
@@ -99,6 +99,7 @@ export const en = {
99
99
  // Detail view (read-only)
100
100
  detailTitle: 'detail {id}',
101
101
  detailNoFiles: '(no associated files for this entry)',
102
+ detailUnavailable: '(source unavailable: {reason})',
102
103
  detailTruncated: '… truncated (first 128 KiB shown)',
103
104
  detailLoading: '… loading',
104
105
 
@@ -185,19 +186,18 @@ export const en = {
185
186
  group_workflow: 'Workflow & gates',
186
187
  group_delivery: 'Capacity & delivery',
187
188
  group_panel: 'Pulse & panel',
188
- group_patrol: 'Patrol policy',
189
+ group_patrol: 'Patrol',
189
190
  'group_pm-lifecycle': 'PM lifecycle',
190
191
  group_session: 'Live sessions',
191
192
  group_meeting: 'Cross-project meetings',
192
193
  settingsGroupUngrouped: 'Ungrouped',
193
- settingsGroupCategories: 'Task categories (future policy)',
194
- settingsGroupAssignments: 'Committed assignments (read-only)',
194
+ settingsGroupCategories: 'The model the next task will use',
195
+ settingsGroupAssignments: 'The model running tasks actually use',
195
196
  settingsBadgeApply: 'apply',
196
197
  settingsBadgeRestart: 'restart',
197
- settingsBadgeRefuse: 'read-only',
198
- settingsUnknownBadge: 'unknown key',
198
+ settingsBadgeRefuse: 'change in file',
199
+ settingsUnknownBadge: 'not recognized',
199
200
  settingsUnset: 'unset · default {value}',
200
- settingsAuditHeading: 'Audit (newest)',
201
201
  settingsKeyHint: '↑/↓ rows · Enter edit · / filter · Esc back',
202
202
  keyFilter: '/ filter',
203
203
  settingFilterTitle: 'Filter settings',
@@ -207,51 +207,52 @@ export const en = {
207
207
  settingDanger: 'Danger: {reason} (press Enter once more to confirm)',
208
208
  settingRejected: '✗ refused: {line}',
209
209
  settingWritten: '✓ wrote {key} = {value} · {timing}',
210
- settingRefused: '✗ read-only key: {line}',
210
+ settingRefused: '✗ this value is changed in the project config file: {line}',
211
211
  settingInvalid: '✗ invalid value: {line}',
212
212
  settingConflict: '! the contract changed under the editor (fingerprint mismatch) — nothing written; reloaded',
213
213
  settingWriteError: '✗ write failed (file unchanged): {line}',
214
- settingsRefusedRoute: 'read-only key: edit .pi/team/config.sh by hand',
215
- settingsCategoryHint: 'category {category}: team config set-task-model {category} <model> — new tasks only; a committed task keeps its model/SID (this row never composes the map)',
214
+ settingsRefusedRoute: 'change this value in the project config file .pi/team/config.sh; the panel cannot change it',
215
+ settingsCategoryHint: 'category {category}: team config set-task-model {category} <model> — new tasks only; a task already dispatched keeps the model it was given (this row never composes the map)',
216
216
  settingsCategoryRow: 'category {category}',
217
217
  settingsCategoryModel: 'model {model}',
218
218
  settingsCategoryBadge: 'new tasks',
219
219
  settingsCategoryPickerTitle: 'Pick the model for category {category}',
220
- settingsCategoryPickerHint: '↑/↓ choose · Enter writes that value now · only free text opens the editor · Esc back (new tasks only; a committed task keeps its model/SID and no process is restarted)',
220
+ settingsCategoryPickerHint: '↑/↓ choose · Enter writes that value now · only free text opens the editor · Esc back (new tasks only; a task already dispatched keeps the model it was given and no process is restarted)',
221
221
  settingsCategoryMapHint: 'the categories block is this row’s editor (command: team config set-task-model <category> <model>) — the pair list is never composed in the console',
222
222
  settingsCategoryMapEmpty: 'the categories block is this row’s editor (command: team config set-task-model <category> <model>) — the map is empty today; add a category through the CLI first',
223
- settingsAssignmentHint: 'read-only: the actual model comes from a committed dispatch record (decided by dispatch/resume), not from the future policy above',
224
- settingsAssignmentNote: 'task {task} · category {category} · SID {sid} · origin {selected}/{launch}',
225
- settingsAssignmentNone: 'no complete dispatch record: {diagnostic}',
226
- settingsReadOnlyBadge: 'read-only',
227
- settingsPmLaunchLabel: 'PM launch record',
223
+ settingsAssignmentHint: 'once a task is dispatched it keeps the model it was given; this setting does not change it',
224
+ settingsAssignmentNote: 'task {task} · category {category} · session {sid} · origin {selected}/{launch}',
225
+ settingsAssignmentNone: 'this seat has not been given a task yet',
226
+ settingsAssignmentUnreadable: 'this seat was given a task, but its record could not be read, so the panel does not show its model',
227
+ settingsReadOnlyBadge: 'change in file',
228
+ settingsPmLaunchLabel: 'last PM start',
228
229
  settingsPmLaunchNote: 'window {window} · {mode} · {time}',
229
- settingsPmLaunchHint: 'read-only: the PM’s actual launch record (state/pm-launch.env)',
230
- settingsDiagnosisHeading: 'Policy migration diagnosis',
230
+ settingsPmLaunchHint: 'the model the PM used the last time it started; it cannot be changed here',
231
+ settingsDiagnosisHeading: 'these settings need an upgrade',
231
232
  settingsCliHint: 'CLI: team config set {key} <value>',
232
- settingsRefusedHint: 'read-only: edit {key} in .pi/team/config.sh by hand',
233
- settingsUnknownHint: 'unknown key: {key} is in the file but not in the command schema',
233
+ settingsRefusedHint: 'change this value in the project config file .pi/team/config.sh; the panel cannot change it',
234
+ settingsUnknownHint: '{key}: the file carries this setting but the tool does not know it; the panel cannot change it',
234
235
  settingsChoiceTitle: 'Choose a value for {label} · {key}',
235
236
  settingsChoiceHint: '↑/↓ choose · Enter writes that value now (danger needs one more) · only free text opens the editor · Esc back',
236
237
  settingsChoiceCurrent: 'current',
237
238
  settingsChoiceDefault: 'default',
238
- settingsChoiceKeepUnset: 'keep unset (cancel writes nothing and leaves no audit line)',
239
+ settingsChoiceKeepUnset: 'keep unset (cancel, nothing written)',
239
240
  settingsChoiceClear: 'clear (write the empty value)',
240
241
  settingsChoiceFree: '… (free text)',
241
242
  settingsChoiceInterval: 'accepted interval {min}–{max} (empty = unbounded)',
242
243
  settingsChoiceNoChoice: 'the kind {kind} has no choice set; the command still validates the write (Enter opens free text)',
243
- settingCategoryConfirm: 'Confirm category {category}: {old} → {next} · new tasks only; a committed task keeps its model/SID (Enter again to write)',
244
- settingCategoryWritten: '✓ wrote category {category} = {value} · new tasks only; committed tasks keep their model/SID; no process was restarted',
245
- settingPmWritten: '✓ wrote the PM model = {value} · takes effect on the next team up (changing the model needs fresh-pm, judged by the launch guard); no process was restarted',
244
+ settingCategoryConfirm: 'Confirm category {category}: {old} → {next} · new tasks only; a task already dispatched keeps the model it was given (Enter again to write)',
245
+ settingCategoryWritten: '✓ wrote category {category} = {value} · new tasks only; tasks already dispatched keep the model they were given; no process was restarted',
246
+ settingPmWritten: '✓ wrote the PM model = {value} · changing the model needs team up --fresh-pm, which starts a new conversation; no process was restarted',
246
247
  settingsBoolOn: 'on (1)',
247
248
  settingsBoolOff: 'off (0)',
248
249
  settingsPathExists: 'exists',
249
250
  settingsPathMissing: 'missing',
250
251
  settingsPathNotExec: 'not executable',
251
252
  keyCategoryPick: 'Enter edit',
252
- seatSourceExplicit: 'explicit',
253
- seatSourcePolicy: 'category policy',
254
- seatSourceAssignment: 'assignment',
253
+ seatSourceExplicit: 'chosen at dispatch',
254
+ seatSourcePolicy: 'set by category',
255
+ seatSourceAssignment: 'kept from the record',
255
256
 
256
257
  // The human labels of the contract keys (M49): one per key of `lib/cmd-config.sh`'s schema, and
257
258
  // the row's main text — the bare TEAM_* stays where it aligns with the CLI (the editor's title,
@@ -270,6 +271,7 @@ export const en = {
270
271
  label_TEAM_SPEC_DIR: 'Spec dir',
271
272
  label_TEAM_ROOT: 'Project root',
272
273
  label_TEAM_MAIN_ROOT: 'Main checkout root',
274
+ label_TEAM_TMP_ROOT: 'Temp root',
273
275
  label_TEAM_CONFIG_FILE: 'Contract file',
274
276
  // -- branch and forge (read-only)
275
277
  label_TEAM_BRANCH_MODE: 'Branch naming mode',
@@ -314,7 +316,9 @@ export const en = {
314
316
  // -- task categories and the PM model (apply/restart)
315
317
  label_TEAM_TASK_MODELS: 'Task category models',
316
318
  label_TEAM_PM_MODEL: 'PM model',
319
+ label_TEAM_CONFIG_VERSION: 'Config shape version',
317
320
  // -- workflow and gates
321
+ label_TEAM_UPDATE_CHECK: 'Startup version notice',
318
322
  label_TEAM_GATES: 'Gate commands',
319
323
  label_TEAM_INSTALL_CMD: 'Install command',
320
324
  label_TEAM_TASK_BRANCH_RESET: 'Reset task branch',
@@ -342,9 +346,13 @@ export const en = {
342
346
  label_TEAM_NOTIFY_DEDUP_SEC: 'Notify dedup window',
343
347
  label_TEAM_INBOX_MAX_CHARS: 'Inbox summary chars',
344
348
  label_TEAM_NOTIFY_LOG: 'Notify debug log',
349
+ label_TEAM_NOTIFY_DETAIL_MAX: 'Notify detail bound',
345
350
  label_TEAM_DEFER_TTL: 'Queued delivery TTL',
346
351
  label_TEAM_OUTBOX_MAX: 'Outbox cap',
347
352
  label_TEAM_PANEL_DETAIL_CAP: 'Detail read cap',
353
+ label_TEAM_ORPHAN_WARN_MB: 'Orphan memory hint',
354
+ label_TEAM_ORPHAN_SCAN: 'Scan orphan seats',
355
+ label_TEAM_ORPHAN_PROC_ROOT: 'Census proc root',
348
356
  // -- pulse and panel (needs a restart)
349
357
  label_TEAM_PULSE_INTERVAL: 'Patrol interval',
350
358
  label_TEAM_MONITOR_REFRESH: 'Panel refresh period',
@@ -395,18 +403,19 @@ export const en = {
395
403
  replyEmpty: '(no key replies yet)',
396
404
  replyUnavailable: '(unavailable)',
397
405
  replyLatestUnavailable: 'latest reply unavailable: {reason}',
398
- replyDeclared: 'declared by {from} · {at}',
399
- replyDeclaredShort: 'declared by {from}',
406
+ replyDeclared: 'from {from} · {at}',
407
+ replyDeclaredShort: 'from {from}',
400
408
  replySlotUnavailable: '#{no} unavailable',
401
409
  replyLoading: '… loading',
402
410
  replyBodyMissing: 'this reply is unavailable',
403
- replyBodyHint: 'read-only · declared publisher, not verified',
411
+ replyBodyHint: 'read-only · shown as published',
404
412
  replyOlder: 'Older',
405
413
  replyNewer: 'Newer',
406
414
  replyBack: 'Back',
407
415
  replyScrollHint: '↑/↓ PgUp/PgDn Home/End scroll',
408
416
  replyTotalSlots: '{n} numbered slots',
409
417
  replyTailWarning: 'the index tail is incomplete (the last append did not finish)',
418
+ replyPageNote: '"who is this reply written for?" — replies the PM wrote for the user',
410
419
 
411
420
  // Global keys (footer)
412
421
  keyCompose: 'm compose',
@@ -437,6 +446,7 @@ export const en = {
437
446
  receiptQueued: '… queued (the PM is typing) · queued',
438
447
  receiptHeld: '! held (copy under state/outbox/held/) · held',
439
448
  receiptError: '✗ delivery unconfirmed · {detail}',
449
+ draftNotCleared: '✗ settled, but the draft file could not be emptied: {file} (the text stays in the input line)',
440
450
  flushOk: '✓ flush · {detail}',
441
451
  flushFail: '✗ flush failed · {detail}',
442
452
  standbyOkOn: '✓ standby on (reason: {reason})',
@@ -99,6 +99,7 @@ export const zh = {
99
99
  // 详情视图(只读)
100
100
  detailTitle: '详情 {id}',
101
101
  detailNoFiles: '(这个入口没有关联文件)',
102
+ detailUnavailable: '(来源不可用:{reason})',
102
103
  detailTruncated: '… 已截断(只显示前 128 KiB)',
103
104
  detailLoading: '… 读取中',
104
105
 
@@ -178,25 +179,24 @@ export const zh = {
178
179
  // P30/D2:分组按 schema 行的第 10 列(`group_<token>`),不再是类分组——三个类分组标签已删。
179
180
  group_identity: '身份与账本布局',
180
181
  group_branch: '分支与 forge',
181
- group_policy: '权限与依赖策略',
182
+ group_policy: '权限与依赖',
182
183
  group_roster: '名册、模型解析与适配器',
183
184
  'group_task-model': '任务类别与 PM 模型',
184
185
  group_workflow: '工作流与门禁',
185
186
  group_delivery: '容量与投递通知',
186
187
  group_panel: '巡检与面板',
187
- group_patrol: '巡检策略',
188
+ group_patrol: '巡检',
188
189
  'group_pm-lifecycle': 'PM 生命周期',
189
190
  group_session: '活着的会话',
190
191
  group_meeting: '跨项目会议',
191
192
  settingsGroupUngrouped: '未分组',
192
- settingsGroupCategories: '任务类别(未来策略)',
193
- settingsGroupAssignments: '实际派单记录(只读)',
193
+ settingsGroupCategories: '下一次派任务会用的模型',
194
+ settingsGroupAssignments: '正在运行的任务实际使用的模型',
194
195
  settingsBadgeApply: '立即生效',
195
196
  settingsBadgeRestart: '需重启',
196
- settingsBadgeRefuse: '只读',
197
- settingsUnknownBadge: '未知键',
197
+ settingsBadgeRefuse: '不可改',
198
+ settingsUnknownBadge: '不认识',
198
199
  settingsUnset: '未设 · 默认 {value}',
199
- settingsAuditHeading: '审计(最近)',
200
200
  settingsKeyHint: '↑/↓ 行 · Enter 编辑 · / 筛选 · Esc 返回',
201
201
  keyFilter: '/ 筛选',
202
202
  settingFilterTitle: '筛选设置',
@@ -206,51 +206,52 @@ export const zh = {
206
206
  settingDanger: '危险:{reason}(再按一次 Enter 确认)',
207
207
  settingRejected: '✗ 被拒:{line}',
208
208
  settingWritten: '✓ 已写入 {key} = {value} · {timing}',
209
- settingRefused: '✗ 只读键:{line}',
209
+ settingRefused: '✗ 这个值要在项目配置文件里改:{line}',
210
210
  settingInvalid: '✗ 值不合法:{line}',
211
211
  settingConflict: '! 契约在编辑器打开后变过(指纹不符)—— 什么都没写;已重读',
212
212
  settingWriteError: '✗ 写入失败(原文件未动):{line}',
213
- settingsRefusedRoute: '只读键:手改 .pi/team/config.sh',
214
- settingsCategoryHint: '类别 {category}:team config set-task-model {category} <model> —— 只影响新任务;已派任务保留原模型/SID(这一行不组合映射)',
213
+ settingsRefusedRoute: '这个值要改项目配置文件 .pi/team/config.sh,界面不能改',
214
+ settingsCategoryHint: '类别 {category}:team config set-task-model {category} <model> —— 只影响以后派的新任务;已经派出去的任务继续用它当时的模型(这一行不组合映射)',
215
215
  settingsCategoryRow: '类别 {category}',
216
216
  settingsCategoryModel: '模型 {model}',
217
217
  settingsCategoryBadge: '新任务',
218
218
  settingsCategoryPickerTitle: '选择类别 {category} 的模型',
219
- settingsCategoryPickerHint: '↑/↓ 选择 · Enter 直接写入该值 ·「自由输入」才进编辑器 · Esc 返回(只影响新任务;已派任务保留原模型/SID,没有进程被重启)',
219
+ settingsCategoryPickerHint: '↑/↓ 选择 · Enter 直接写入该值 ·「自由输入」才进编辑器 · Esc 返回(只影响以后派的新任务;已经派出去的任务继续用它当时的模型,没有进程被重启)',
220
220
  settingsCategoryMapHint: '类别块就是这一行的编辑器(命令:team config set-task-model <category> <model>)—— 映射在面板里绝不被组合',
221
221
  settingsCategoryMapEmpty: '类别块就是这一行的编辑器(命令:team config set-task-model <category> <model>)—— 当前映射为空,先用 CLI 添加一个类别',
222
- settingsAssignmentHint: '只读:实际模型来自已提交的派单记录(由 dispatch/resume 决定),不是上面的未来策略',
223
- settingsAssignmentNote: '任务 {task} · 类别 {category} · SID {sid} · 来源 {selected}/{launch}',
224
- settingsAssignmentNone: '没有完整派单记录:{diagnostic}',
225
- settingsReadOnlyBadge: '只读',
226
- settingsPmLaunchLabel: 'PM 启动记录',
222
+ settingsAssignmentHint: '任务派出去以后就固定用它当时的模型,不跟着上面的设置变',
223
+ settingsAssignmentNote: '任务 {task} · 类别 {category} · 会话 {sid} · 来源 {selected}/{launch}',
224
+ settingsAssignmentNone: '这个席位还没有派过任务',
225
+ settingsAssignmentUnreadable: '这个席位派过任务,但它的记录读不出来,面板不显示它在用的模型',
226
+ settingsReadOnlyBadge: '不可改',
227
+ settingsPmLaunchLabel: 'PM 上次启动',
227
228
  settingsPmLaunchNote: '窗口 {window} · {mode} · {time}',
228
- settingsPmLaunchHint: '只读:PM 的实际启动记录(state/pm-launch.env)',
229
- settingsDiagnosisHeading: '策略迁移诊断',
229
+ settingsPmLaunchHint: 'PM 上一次启动时用的模型,这里不能改',
230
+ settingsDiagnosisHeading: '旧设置需要升级',
230
231
  settingsCliHint: '命令行:team config set {key} <新值>',
231
- settingsRefusedHint: '只读:手改 .pi/team/config.sh 里的 {key}',
232
- settingsUnknownHint: '未知键:{key} 在文件里,命令的 schema 不认识',
232
+ settingsRefusedHint: '这个值要改项目配置文件 .pi/team/config.sh,界面不能改',
233
+ settingsUnknownHint: '{key}:这个设置在文件里,工具不认识它,面板不能改',
233
234
  settingsChoiceTitle: '选择 {label} 的值 · {key}',
234
235
  settingsChoiceHint: '↑/↓ 选择 · Enter 直接写入该值(危险值再按一次确认)· 「自由输入」才进编辑器 · Esc 返回',
235
236
  settingsChoiceCurrent: '当前',
236
237
  settingsChoiceDefault: '默认',
237
- settingsChoiceKeepUnset: '保持未设(取消 = 不写、不留审计)',
238
+ settingsChoiceKeepUnset: '保持未设(取消,什么都不写)',
238
239
  settingsChoiceClear: '清空(写入空值)',
239
240
  settingsChoiceFree: '…(自由输入)',
240
241
  settingsChoiceInterval: '接受区间 {min}–{max}(空 = 无界)',
241
242
  settingsChoiceNoChoice: '{kind} 这种 kind 没有选项集;写入仍由命令校验(Enter 打开自由输入)',
242
- settingCategoryConfirm: '确认类别 {category}:{old} → {next} · 只影响新任务;已派任务保留原模型/SID(再按 Enter 写入)',
243
- settingCategoryWritten: '✓ 已写入类别 {category} = {value} · 只影响新任务;已派任务保留原模型/SID;没有重启任何进程',
244
- settingPmWritten: '✓ 已写入 PM 模型 = {value} · 下次 team up 启动时生效(换模型须 fresh-pm,由启动守卫判定);没有重启任何进程',
243
+ settingCategoryConfirm: '确认类别 {category}:{old} → {next} · 只影响以后派的新任务;已经派出去的任务继续用它当时的模型(再按 Enter 写入)',
244
+ settingCategoryWritten: '✓ 已写入类别 {category} = {value} · 只影响以后派的新任务;已经派出去的任务继续用它当时的模型;没有重启任何进程',
245
+ settingPmWritten: '✓ 已写入 PM 模型 = {value} · 换模型要用 team up --fresh-pm 重开一场对话;没有重启任何进程',
245
246
  settingsBoolOn: '开(1)',
246
247
  settingsBoolOff: '关(0)',
247
248
  settingsPathExists: '存在',
248
249
  settingsPathMissing: '不存在',
249
250
  settingsPathNotExec: '不是可执行文件',
250
251
  keyCategoryPick: 'Enter 编辑',
251
- seatSourceExplicit: '显式',
252
- seatSourcePolicy: '类别策略',
253
- seatSourceAssignment: '已派记录',
252
+ seatSourceExplicit: '派单时指定',
253
+ seatSourcePolicy: '按类别设置',
254
+ seatSourceAssignment: '沿用原记录',
254
255
 
255
256
  // 契约键的人话标签(M49):`lib/cmd-config.sh` 的 schema 每个键一条,行的主文本用它,
256
257
  // 裸 TEAM_* 只留在与 CLI 对齐的地方(编辑器标题、确认行、视图底部的命令行提示)。
@@ -268,6 +269,7 @@ export const zh = {
268
269
  label_TEAM_SPEC_DIR: '规格目录',
269
270
  label_TEAM_ROOT: '项目根',
270
271
  label_TEAM_MAIN_ROOT: '主检出根',
272
+ label_TEAM_TMP_ROOT: '临时根目录',
271
273
  label_TEAM_CONFIG_FILE: '契约文件',
272
274
  // —— 分支与托管平台(只读)
273
275
  label_TEAM_BRANCH_MODE: '分支命名模式',
@@ -281,7 +283,7 @@ export const zh = {
281
283
  label_TEAM_GITLAB_PROJECT: 'GitLab 项目',
282
284
  label_TEAM_GITLAB_TOKEN_FILE: 'GitLab 凭据文件',
283
285
  label_TEAM_MERGE_PREFER_THEIRS: '冲突默认取分支侧',
284
- // —— 权限与依赖策略(只读)
286
+ // —— 权限与依赖(不可改)
285
287
  label_TEAM_CONFIRM_WRITES: '写入前确认',
286
288
  label_TEAM_ALLOW_FOREIGN_IDENTITY: '放行外部身份',
287
289
  label_TEAM_ALLOW_FOREIGN_SESSION: '放行外部会话',
@@ -312,7 +314,9 @@ export const zh = {
312
314
  // —— 任务类别与 PM 模型(apply/restart)
313
315
  label_TEAM_TASK_MODELS: '任务类别模型',
314
316
  label_TEAM_PM_MODEL: 'PM 模型',
317
+ label_TEAM_CONFIG_VERSION: '配置形状号',
315
318
  // —— 工作流与门禁
319
+ label_TEAM_UPDATE_CHECK: '启动时提示新版本',
316
320
  label_TEAM_GATES: '门禁命令',
317
321
  label_TEAM_INSTALL_CMD: '安装命令',
318
322
  label_TEAM_TASK_BRANCH_RESET: '派单时重置分支',
@@ -340,9 +344,13 @@ export const zh = {
340
344
  label_TEAM_NOTIFY_DEDUP_SEC: '通知去重窗口',
341
345
  label_TEAM_INBOX_MAX_CHARS: '收件箱摘要字数',
342
346
  label_TEAM_NOTIFY_LOG: '通知调试日志',
347
+ label_TEAM_NOTIFY_DETAIL_MAX: '通知明细条数上限',
343
348
  label_TEAM_DEFER_TTL: '排队过期时间',
344
349
  label_TEAM_OUTBOX_MAX: '发件箱条数上限',
345
350
  label_TEAM_PANEL_DETAIL_CAP: '详情文件读取上限',
351
+ label_TEAM_ORPHAN_WARN_MB: '孤儿内存提示阈值',
352
+ label_TEAM_ORPHAN_SCAN: '扫描孤儿席位进程',
353
+ label_TEAM_ORPHAN_PROC_ROOT: '普查 /proc 接缝',
346
354
  // —— 巡检与面板(需重启)
347
355
  label_TEAM_PULSE_INTERVAL: '巡检周期',
348
356
  label_TEAM_MONITOR_REFRESH: '面板刷新周期',
@@ -393,18 +401,19 @@ export const zh = {
393
401
  replyEmpty: '(还没有关键回复)',
394
402
  replyUnavailable: '(不可用)',
395
403
  replyLatestUnavailable: '最新回复不可用:{reason}',
396
- replyDeclared: '自称来自 {from} · {at}',
397
- replyDeclaredShort: '自称来自 {from}',
404
+ replyDeclared: '来自 {from} · {at}',
405
+ replyDeclaredShort: '来自 {from}',
398
406
  replySlotUnavailable: '#{no} 不可用',
399
407
  replyLoading: '… 载入中',
400
408
  replyBodyMissing: '这份回复不可用',
401
- replyBodyHint: '只读 · 发布者自称,未经核验',
409
+ replyBodyHint: '只读 · 按发布的原文显示',
402
410
  replyOlder: '更早',
403
411
  replyNewer: '更新',
404
412
  replyBack: '返回',
405
413
  replyScrollHint: '↑/↓ PgUp/PgDn Home/End 滚动',
406
414
  replyTotalSlots: '{n} 个编号槽位',
407
415
  replyTailWarning: '索引尾部不完整(上一次追加没有写完)',
416
+ replyPageNote: '「这条回复是写给谁的?」——PM 写给用户的回复都在这里',
408
417
 
409
418
  // 全局键位(页脚)
410
419
  keyCompose: 'm 写信',
@@ -435,6 +444,7 @@ export const zh = {
435
444
  receiptQueued: '… 已入队(PM 的输入框在忙)· queued',
436
445
  receiptHeld: '! 滞留(副本在 state/outbox/held/)· held',
437
446
  receiptError: '✗ 投递未确认 · {detail}',
447
+ draftNotCleared: '✗ 已结算,但草稿文件清不掉:{file}(文字保留在输入行)',
438
448
  flushOk: '✓ 冲刷 · {detail}',
439
449
  flushFail: '✗ 冲刷失败 · {detail}',
440
450
  standbyOkOn: '✓ 待命 on(原因:{reason})',
@@ -87,6 +87,9 @@ export interface PanelCapacity {
87
87
  ram_avail_mb: number
88
88
  swap_free_mb: number
89
89
  agents: number
90
+ /** P309: the resolved temp root (`team_tmp_root`) and how it was resolved. */
91
+ temp_root?: string
92
+ temp_root_source?: string
90
93
  /** P144: one entry per judged filesystem (temp root + worktrees root). */
91
94
  disk?: PanelDiskEntry[]
92
95
  spark: number[]
@@ -304,7 +307,10 @@ export interface SettingsKey {
304
307
  comment: string
305
308
  /** A command-side warning (an unknown seat token in TEAM_AGENT_MODELS, …). */
306
309
  warning: string
307
- /** The refusal's route for a read-only key (`team add-agent`, hand-edit the file, …). */
310
+ /**
311
+ * The read's own note for the row (`memory-and-deps` owns its words): a `refuse` key's route, an
312
+ * `apply` key's remark or the declared `fixture-only: ` marker the view refuses to render.
313
+ */
308
314
  route?: string
309
315
  /**
310
316
  * The key's schema-derived choice set (M55), verbatim from `team config list --json`. The
@@ -381,12 +387,18 @@ export interface SettingsCategory {
381
387
 
382
388
  /**
383
389
  * One seat's **committed** launch assignment (P232): the record a dispatch published, read-only.
384
- * `assigned=false` means there is no complete record — `diagnostic` then says why, and no model is
385
- * invented (the future policy above is never displayed as this seat's actual model).
390
+ * `assigned=false` means there is no complete record, and no model is invented (the future policy
391
+ * above is never displayed as this seat's actual model). The plain reason the view shows is chosen
392
+ * from `record_present` (P266) — never from the command's `diagnostic`, which is forbidden on screen.
386
393
  */
387
394
  export interface SettingsAssignment {
388
395
  agent: string
389
396
  assigned: boolean
397
+ /**
398
+ * P266 (`memory-and-deps` owns the fact): does a record file exist for this seat at all — true even
399
+ * when the file cannot be read, false when there is none. Absent against an older command.
400
+ */
401
+ record_present?: boolean
390
402
  task: string
391
403
  category: string
392
404
  model: string
@@ -454,8 +466,21 @@ export interface DetailBlock {
454
466
  /** True when the served file was cut at the cap. */
455
467
  truncated: boolean
456
468
  files: DetailFile[]
469
+ /**
470
+ * The reader's one-line reason when the requested target is unavailable: a missing capability,
471
+ * change or decision, or a discovered symbolic link it refused to read through. Absent on a
472
+ * served read (change: panel-preview-and-compose).
473
+ */
474
+ reason?: string
457
475
  }
458
476
 
477
+ /**
478
+ * The read-only preview source a detail view addresses (change: panel-preview-and-compose).
479
+ * `entry` is the original entry-id discovery (task briefs, reports, reviews); the other three are
480
+ * the closed set the reader's explicit `--source` accepts.
481
+ */
482
+ export type DetailSource = 'entry' | 'spec' | 'change' | 'decision'
483
+
459
484
  // ---------------------------------------------------------------- key replies (pulse-key-replies)
460
485
 
461
486
  /** One numbered slot as the readers report it: metadata only, or a numbered unavailable row. */
@@ -799,7 +799,10 @@ function cmdShow(args) {
799
799
  }
800
800
  process.stdout.write(`#${meta.no} ${sanitize(meta.title)}\n`)
801
801
  process.stdout.write(
802
- `来自 ${sanitize(meta.from)}(自称)· ${meta.at} · ${meta.bytes} 字节 · sha256 ${meta.sha256.slice(0, 16)}…\n\n`,
802
+ // P266: the human header shows the label exactly as the record carries it, with no qualifier
803
+ // beside it. "The tool authenticates nothing" belongs in the docs and the key-replies
804
+ // requirement, not in a suffix on every display (machine outputs keep the label verbatim).
805
+ `来自 ${sanitize(meta.from)} · ${meta.at} · ${meta.bytes} 字节 · sha256 ${meta.sha256.slice(0, 16)}…\n\n`,
803
806
  )
804
807
  process.stdout.write(sanitize(display))
805
808
  if (!display.endsWith('\n')) process.stdout.write('\n')
@@ -325,6 +325,24 @@ _bounded_append() { # <file>
325
325
  return 0
326
326
  }
327
327
 
328
+ # ── 日志目标解析(P274 · 裁定点 C/A1)─────────────────────────────────────────────────
329
+ # $TEAM_TMUX_CALLS_LOG 在 → 用它(逐字节不变)。缺席时(工具的建对象调用会摘掉整个 TEAM_*
330
+ # 命名空间,见 common.sh 的 team_tmux)按 **cwd 所属项目**解析:向上找 `.pi/team`,落它自己的
331
+ # state/tmux-calls.log —— 审计因此无洞,且共享 server 上**别的项目**的 pane 里的调用记到**它自己**
332
+ # 项目的日志,不再污染本项目的 forensics 文件。两边都解析不出来 → 不写(可见的例外,不是静默丢)。
333
+ # 只做几个 `[ -d ]` 测试,不启子进程(闸门在每次 tmux 调用的热路径上)。
334
+ _shim_resolve_log() { # <起始目录>
335
+ local d="${1:-}"
336
+ [ -n "$d" ] || return 1
337
+ while :; do
338
+ [ -d "$d/.pi/team" ] && { printf '%s/.pi/team/state/tmux-calls.log' "$d"; return 0; }
339
+ [ "$d" = "/" ] && return 1
340
+ d="${d%/*}"; [ -n "$d" ] || d="/"
341
+ done
342
+ }
343
+ if [ -z "${TEAM_TMUX_CALLS_LOG:-}" ]; then
344
+ TEAM_TMUX_CALLS_LOG="$(_shim_resolve_log "$_shim_cwd" || true)"
345
+ fi
328
346
  if [ -n "${TEAM_TMUX_CALLS_LOG:-}" ] && [ ! -p "${TEAM_TMUX_CALLS_LOG}" ]; then
329
347
  _log="${TEAM_TMUX_CALLS_LOG}"
330
348
  _ld="$(dirname "$_log")"
@@ -0,0 +1,86 @@
1
+ # teamsmith · command manifest — the language-neutral single source of the help surface.
2
+ #
3
+ # Read by scripts/lib/cmd-help.sh (the renderer), by tests/help-surface.sh (the surface's own checks)
4
+ # and by tests/routes.sh (Walk A's working set). One row per command the dispatcher accepts, plus the
5
+ # group table; the menu, the group pages and the command pages are all rendered from this file.
6
+ #
7
+ # Columns are tab-separated. `-` means "empty"; list fields are space separated.
8
+ #
9
+ # group <id>
10
+ # cmd <name> <group> <usage> <flags> <subs> <aliases> <terms> <faces> <effect> <auth> <undo> <claims> <probe> <example>
11
+ #
12
+ # name the token the dispatcher accepts (a `case "$CMD" in` label of scripts/team)
13
+ # group the group id this command is listed under (level 1: `team help <group>`)
14
+ # usage one or more usage fragments, separated by ` ;; ` — every one is printed on the page
15
+ # flags the flags the usage fragments print (`-` = none); each needs an `cmd.<name>.arg.<flag>` prose key
16
+ # subs subcommands the usage fragments print
17
+ # aliases other labels the dispatcher accepts for this command (documented on this page)
18
+ # terms concept ids this page uses; the page repeats their definitions verbatim
19
+ # faces the faces this command touches, from the closed list: state docs config worktree skills meetings
20
+ # effect read-only | writes-<face> | starts-process (the headline effect; `faces` carries the rest)
21
+ # auth none | needs-yes | needs-yes:<condition>
22
+ # undo idempotent | undo-by-<cmd> | not-reversible:<reason>
23
+ # claims extra declared facts `key=value` that prose may name (registry in tests/help-surface.sh)
24
+ # probe the probe recipe id that makes the declared effect happen in a scratch fixture
25
+ # example one example command line printed under `Example`
26
+ #
27
+ # The prose for every command lives in help.en.tsv (source) and help.zh.tsv (translation); a key the
28
+ # selected table lacks is printed with a marker naming it and falls back to the other table's value.
29
+ # Placeholders the values may carry — the closed set is declared in scripts/lib/cmd-help.sh
30
+ # (TEAM_HELP_PLACEHOLDERS); any other braced token fails the render: {project} {meeting_ttl}
31
+ # {token} {sub} {cmd} {undo_cmd}
32
+ group start
33
+ group observe
34
+ group ledger
35
+ group seats
36
+ group patrol
37
+ group peers
38
+ group finish
39
+ group versions
40
+ begin bootstrap status dispatch review
41
+ cmd help start help [<group>] [<command>] - group command - - - read-only none idempotent levels=3 help team help dispatch
42
+ cmd bootstrap start bootstrap [--agents <names>] [--task-models <map>] [--pm-model <model>] [--print] --agents --task-models --pm-model --print - - pm seat worktree brief change gate ledger pulse yes config docs skills starts-process none not-reversible:the skeleton, the skill copy and the worktrees it writes have no single undo - bootstrap team bootstrap --agents "dev verify" --task-models "code=provider/model"
43
+ cmd init start init [--copy] [--no-skills] [--force] [--agents <names>] [--task-models <map>] [--pm-model <model>] --copy --no-skills --force --agents --task-models --pm-model - - pm seat ledger gate config docs skills writes-config none not-reversible:the written contract and document skeleton have no undo - init team init --no-skills --agents "dev verify" --task-models "code=provider/model"
44
+ cmd doctor start doctor - - - gate - read-only none idempotent - doctor team doctor
45
+ cmd roster observe roster - - - seat worktree - read-only none idempotent - roster team roster
46
+ cmd status observe status [<ID>] - - - brief ledger state writes-state none idempotent - status team status
47
+ cmd ps observe ps - - - seat - read-only none idempotent - ps team ps
48
+ cmd bg observe bg list ;; bg stop <id> - list stop - - state writes-state none idempotent - bg team bg list
49
+ cmd reap observe reap --orphans [--yes] ;; reap <pid> [--yes] --orphans --yes - - seat state writes-state none not-reversible:the process is gone; the plan and --yes are the only guard - reap team reap --orphans --yes
50
+ cmd interrupt observe interrupt <seat> --reason <line> [--force] [--yes] --reason --force --yes - - seat state docs writes-state needs-yes not-reversible:this command does not put the ended turn back; the thread entry, the inbox line and the audit line are the record and `team resume --agent <seat>` is the way back - interrupt team interrupt dev --reason "18h without a commit"
51
+ cmd digest observe digest - - - ledger pulse state writes-state none idempotent - digest team digest
52
+ cmd inbox observe inbox [<agent>] - - - ledger - read-only none idempotent - inbox team inbox
53
+ cmd paths observe paths - - - ledger - read-only none idempotent - paths team paths
54
+ cmd config observe config list ;; config log ;; config set <key> <value> ;; config set-task-model <category> <model> ;; config upgrade-models [--task-models <map>] [--pm-model <model>] --task-models --pm-model list log set set-task-model upgrade-models help - pm seat change config state writes-config none not-reversible:the audit log keeps every write - config team config list
55
+ cmd task ledger task <ID> --title <title> --category <category> [--agent <a>] [--deps <ids>] [--issue <N>] --title --category --agent --deps --issue - - brief category change ledger docs writes-docs none not-reversible:no command removes a brief or its board row - task team task P1 --title "First task" --category code
56
+ cmd board ledger board add <ID> [--allow-dup] ;; board assign <ID> <agent> ;; board set <ID> <status> ;; board row <ID> ;; board ls --allow-dup add assign set row ls - ledger docs writes-docs none not-reversible:no command removes a board row - board team board ls
57
+ cmd change ledger change status <id> [--json] --json status - change spec ledger - read-only none idempotent - change team change status cli-help
58
+ cmd thread ledger thread <agent> [<message>] [--from <sender>] [--re <n>] --from --re - - ledger docs writes-docs none not-reversible:the thread is append-only - thread team thread dev "a decision with its reason"
59
+ cmd report ledger report <ID> <agent> [--force] --force - - ledger gate docs writes-docs none not-reversible:the report file stays - report team report P1 dev
60
+ cmd add-agent seats add-agent <a> [--register] [--create] [--no-install] [--print] --register --create --no-install --print - - seat worktree worktree writes-worktree none not-reversible:the branch and the worktree stay until you remove them - add-agent team add-agent dev
61
+ cmd dispatch seats dispatch <a> <ID> <task-file> [--model <model>] [--branch <name>] [--fresh] [--allow-overflow] [--print] --model --branch --fresh --allow-overflow --print - - seat brief worktree task-branch gate docs state starts-process none not-reversible:the seat's session and its branch are its own history - dispatch team dispatch dev P1 docs/team/tasks/P1-first-task.md --branch task/P1-first-task
62
+ cmd say seats say <a> <message> [--now] --now - - seat knock docs state writes-docs none not-reversible:the queue keeps what was already delivered - say team say dev "the gate is green, please open the PR"
63
+ cmd notify seats notify <a> <message> [--from <sender>] --from - - seat pulse docs state writes-docs none not-reversible:the inbox line stays - notify team notify pm "P1 delivered, please review"
64
+ cmd draft seats draft [pm] ;; draft send <file> [--now] --now send - seat state writes-state none not-reversible:the delivered text is in the queue - draft team draft send /tmp/note.md
65
+ cmd outbox seats outbox [list] ;; outbox flush [--now] ;; outbox drop <n|all> --now list flush drop - knock state writes-state none idempotent - outbox team outbox list
66
+ cmd reply seats reply list ;; reply show <slug> ;; reply post --from <sender> --title <title> [--stdin] --from --title --stdin list show post - ledger state writes-state none not-reversible:the reply body is kept - reply team reply post --from pm --title "decision"
67
+ cmd pulse patrol pulse up|down|restart|status|logs [--print] --print up down restart status logs watchdog watchdog-status install-watchdog uninstall-watchdog pm pulse knock - starts-process none not-reversible:the window that was started is gone once it stops - pulse team pulse status
68
+ cmd monitor patrol monitor [--once] [--print|--json] [--width <N>] [--height <N>] [--interval <N>] [--events <K>] [--no-pulse] --once --print --json --width --height --interval --events --no-pulse - - pulse state writes-state none not-reversible:every run appends its own bookkeeping line - monitor team monitor --print --once
69
+ cmd watch patrol watch [--once] [--interval <N>] [--ui] --once --interval --ui - - pulse state writes-state none not-reversible:every tick appends to the patrol log - watch team watch --once
70
+ cmd standby patrol standby on [--reason <text>] ;; standby off ;; standby status --reason on off status - pm pulse state writes-state none not-reversible:the state it writes is a record of when it was set - standby team standby on --reason "waiting for the user"
71
+ cmd up patrol up [--agents] [--fresh-pm] [--print] --agents --fresh-pm --print - - pm seat state starts-process none not-reversible:the PM session it starts keeps its own history - up team up
72
+ cmd resume patrol resume [--agent <a>] [--all] [--dry-run] --agent --all --dry-run - - seat pm state starts-process none not-reversible:a resumed seat continues in its own session - resume team resume --all
73
+ cmd meeting peers meeting open <slug> --with <peer> --topic <text> [--ttl <hours>] [--yes] ;; meeting say <slug> --intent <intent> <message> [--knock] ;; meeting read <slug> [--since <n>] [--peek] ;; meeting list [--all] ;; meeting inbox ;; meeting agree <slug> <option> [--note <text>] ;; meeting close <slug> --with --topic --ttl --yes --intent --knock --since --peek --all --note open say read list inbox agree close propose peer knock help - pm meetings writes-meetings needs-yes:TEAM_CONFIRM_WRITES not-reversible:the shared transcript is the record of what was said - meeting team meeting open rename --with other:pm --topic "rename the interface"
74
+ cmd review finish review <ID> --dir <checkout> [--no-gates] [--strong] [--allow-unresolved-branch] --dir --no-gates --strong --allow-unresolved-branch - - gate ledger worktree docs writes-docs none not-reversible:the review record stays - review team review P1 --dir /tmp/P1-checkout
75
+ cmd close finish close <ID> - - - ledger seat docs state writes-docs none not-reversible:the board row keeps the final status - close team close P1
76
+ cmd teardown finish teardown [--agent <a>] [--all] [--purge] [--force] [--register] --agent --all --purge --force --register - - seat worktree worktree writes-worktree none not-reversible:the worktree is gone; the branch stays - teardown team teardown --agent dev
77
+ cmd smoke finish smoke [--select <sections>] --select - test gate - read-only none idempotent - smoke team smoke --select 51
78
+ cmd perf finish perf [--host] --host - - gate - read-only none idempotent - perf team perf --host
79
+ cmd merge finish merge - - - ledger - read-only none idempotent - merge team merge
80
+ cmd pr finish pr - - - ledger - read-only none idempotent - pr team pr
81
+ cmd gh finish gh - - - ledger - read-only none idempotent - gh team gh
82
+ cmd gl finish gl - - - ledger - read-only none idempotent - gl team gl
83
+ cmd mark-loaded versions mark-loaded [--version <X>] --version - - gate state writes-state none idempotent - mark-loaded team mark-loaded --version 0.2.0
84
+ cmd version versions version [--check] --check - - gate - read-only none idempotent - version team version --check
85
+ cmd changelog versions changelog [--since <X>] --since - - - - read-only none idempotent - changelog team changelog
86
+ cmd reload versions reload [--done] --done - - gate state writes-state none not-reversible:every request leaves its own record - reload team reload