toolroll 0.9.94 → 0.9.96

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 (191) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/agent-fence.d.ts +6 -0
  3. package/dist/agent-fence.js +2 -2
  4. package/dist/assignment-status.d.ts +1 -1
  5. package/dist/assignment-ui.js +2 -0
  6. package/dist/attest.d.ts +3 -0
  7. package/dist/attest.js +10 -0
  8. package/dist/browser/terminal.js +1 -1
  9. package/dist/browser/workspace.css +1 -1
  10. package/dist/browser/workspace.js +24 -24
  11. package/dist/browser-crew.js +2 -0
  12. package/dist/browser-workspace.d.ts +5 -0
  13. package/dist/build-review.js +2 -0
  14. package/dist/builder.d.ts +7 -2
  15. package/dist/builder.js +183 -79
  16. package/dist/card-catalog.d.ts +209 -0
  17. package/dist/card-catalog.js +133 -0
  18. package/dist/card-cli.d.ts +43 -0
  19. package/dist/card-cli.js +44 -0
  20. package/dist/card-render.d.ts +43 -0
  21. package/dist/card-render.js +260 -0
  22. package/dist/card-sources.d.ts +68 -0
  23. package/dist/card-sources.js +234 -0
  24. package/dist/chat-actions.d.ts +95 -8
  25. package/dist/chat-actions.js +449 -45
  26. package/dist/chat-approval.d.ts +13 -0
  27. package/dist/chat-approval.js +39 -9
  28. package/dist/chat-card-part.d.ts +11 -0
  29. package/dist/chat-card-part.js +18 -0
  30. package/dist/chat-card.d.ts +46 -0
  31. package/dist/chat-card.js +99 -0
  32. package/dist/chat-channel.d.ts +2 -0
  33. package/dist/chat-channel.js +26 -14
  34. package/dist/chat-controls.d.ts +4 -0
  35. package/dist/chat-controls.js +4 -0
  36. package/dist/chat-decide.d.ts +3 -14
  37. package/dist/chat-decide.js +43 -54
  38. package/dist/chat-delivery.js +13 -4
  39. package/dist/chat-flow.d.ts +0 -27
  40. package/dist/chat-flow.js +31 -2
  41. package/dist/chat-quiet.js +1 -1
  42. package/dist/chat-task-actions.d.ts +3 -2
  43. package/dist/chat-task-actions.js +19 -5
  44. package/dist/chat-terms.d.ts +14 -2
  45. package/dist/chat-terms.js +35 -0
  46. package/dist/check-failure.d.ts +2 -0
  47. package/dist/check-failure.js +34 -2
  48. package/dist/check-repair.d.ts +47 -0
  49. package/dist/check-repair.js +240 -0
  50. package/dist/claim.d.ts +6 -0
  51. package/dist/claim.js +13 -2
  52. package/dist/cli-help.d.ts +1 -1
  53. package/dist/cli-help.js +2 -0
  54. package/dist/cli.js +4 -0
  55. package/dist/coding-provider.d.ts +1 -1
  56. package/dist/coding-provider.js +9 -5
  57. package/dist/coding-workspace.d.ts +1 -1
  58. package/dist/coding-workspace.js +4 -4
  59. package/dist/contracts/chat-actions.d.ts +83 -0
  60. package/dist/contracts/chat-actions.js +18 -0
  61. package/dist/contracts/chat-card.d.ts +91 -0
  62. package/dist/contracts/chat-card.js +54 -0
  63. package/dist/contracts/chat-content.d.ts +191 -0
  64. package/dist/contracts/chat-content.js +4 -0
  65. package/dist/contracts/console-api.d.ts +2 -0
  66. package/dist/contracts/console-api.js +2 -0
  67. package/dist/contracts/flow-propose.d.ts +8 -1
  68. package/dist/contracts/flow-propose.js +3 -1
  69. package/dist/contracts/flow-send.d.ts +126 -0
  70. package/dist/contracts/flow-send.js +3 -0
  71. package/dist/contracts/lead-tools.d.ts +173 -0
  72. package/dist/contracts/lead-tools.js +15 -0
  73. package/dist/contracts/store-json.d.ts +16 -0
  74. package/dist/discord-chat.js +14 -0
  75. package/dist/dispatch.d.ts +1 -1
  76. package/dist/dispatch.js +7 -1
  77. package/dist/dispose.d.ts +19 -0
  78. package/dist/dispose.js +47 -7
  79. package/dist/eval-oracle.js +4 -1
  80. package/dist/evidence-pair.d.ts +53 -0
  81. package/dist/evidence-pair.js +128 -0
  82. package/dist/exhaustion.d.ts +17 -4
  83. package/dist/exhaustion.js +44 -4
  84. package/dist/export.js +1 -1
  85. package/dist/failing-first.d.ts +31 -0
  86. package/dist/failing-first.js +44 -0
  87. package/dist/fallback-schema.d.ts +8 -0
  88. package/dist/fallback-schema.js +40 -0
  89. package/dist/fallback.d.ts +138 -0
  90. package/dist/fallback.js +605 -0
  91. package/dist/findings.d.ts +224 -0
  92. package/dist/findings.js +449 -0
  93. package/dist/fleet-schema.d.ts +17 -0
  94. package/dist/fleet-schema.js +135 -0
  95. package/dist/flow-browser.js +2 -2
  96. package/dist/flow-code.d.ts +2 -2
  97. package/dist/flow-code.js +9 -5
  98. package/dist/flow-result-card.d.ts +22 -0
  99. package/dist/flow-result-card.js +55 -0
  100. package/dist/flow-send.js +12 -9
  101. package/dist/flow-steps.js +1 -1
  102. package/dist/flow-triggers.js +1 -1
  103. package/dist/flow-unattended.d.ts +26 -0
  104. package/dist/flow-unattended.js +12 -3
  105. package/dist/flows-ui.js +10 -2
  106. package/dist/follow-through-brief.d.ts +12 -0
  107. package/dist/follow-through-brief.js +31 -0
  108. package/dist/follow-through-cli.d.ts +23 -0
  109. package/dist/follow-through-cli.js +153 -0
  110. package/dist/git-incident.d.ts +16 -0
  111. package/dist/git-incident.js +69 -6
  112. package/dist/handover-note.d.ts +33 -0
  113. package/dist/handover-note.js +106 -0
  114. package/dist/invoke.d.ts +20 -1
  115. package/dist/invoke.js +108 -44
  116. package/dist/lead-cli.js +26 -24
  117. package/dist/lead-contract.js +1 -0
  118. package/dist/lead-doors.d.ts +4 -0
  119. package/dist/lead-doors.js +2 -2
  120. package/dist/lead-progress.js +2 -0
  121. package/dist/lead-tools.js +111 -32
  122. package/dist/lead.js +1 -1
  123. package/dist/local-owner.js +5 -0
  124. package/dist/modes.d.ts +6 -6
  125. package/dist/modes.js +3 -1
  126. package/dist/needs-you.d.ts +5 -2
  127. package/dist/needs-you.js +14 -2
  128. package/dist/operate-remote-arguments.js +1 -0
  129. package/dist/operate-remote.js +1 -1
  130. package/dist/operate.d.ts +1 -1
  131. package/dist/operate.js +165 -14
  132. package/dist/plan-login.d.ts +14 -0
  133. package/dist/plan-login.js +58 -0
  134. package/dist/planner.d.ts +1 -1
  135. package/dist/planner.js +2 -1
  136. package/dist/project-delete-ui.d.ts +12 -0
  137. package/dist/project-delete-ui.js +18 -1
  138. package/dist/project-delete.js +6 -0
  139. package/dist/project-knowledge.d.ts +6 -6
  140. package/dist/project-tools.d.ts +4 -4
  141. package/dist/project-tools.js +23 -7
  142. package/dist/protected-storage-look.d.ts +1 -0
  143. package/dist/protected-storage-look.js +13 -0
  144. package/dist/protected-storage.d.ts +70 -39
  145. package/dist/protected-storage.js +196 -147
  146. package/dist/provider-capture.d.ts +34 -0
  147. package/dist/provider-capture.js +53 -0
  148. package/dist/release-carry.js +10 -1
  149. package/dist/release.js +9 -1
  150. package/dist/scope.d.ts +22 -3
  151. package/dist/scope.js +71 -20
  152. package/dist/scout.d.ts +1 -1
  153. package/dist/scout.js +2 -1
  154. package/dist/serve.js +2 -0
  155. package/dist/server/chat.js +2 -2
  156. package/dist/server/console.css +50 -0
  157. package/dist/server/render-chat.js +14 -1
  158. package/dist/server/render-follow-through.d.ts +11 -0
  159. package/dist/server/render-follow-through.js +68 -0
  160. package/dist/server/render-results.js +1 -1
  161. package/dist/server/render-tasks.d.ts +3 -0
  162. package/dist/server/render-tasks.js +24 -5
  163. package/dist/server/route-table.js +3 -0
  164. package/dist/server/settings.js +37 -12
  165. package/dist/server/task-views.js +5 -0
  166. package/dist/server/tasks.js +76 -0
  167. package/dist/settings-groups-ui.d.ts +1 -0
  168. package/dist/settings-groups-ui.js +3 -1
  169. package/dist/settings-kit.js +3 -2
  170. package/dist/settings-proofs.js +3 -1
  171. package/dist/setup-guide.d.ts +2 -2
  172. package/dist/slack-chat.js +14 -1
  173. package/dist/steer-mailbox.d.ts +8 -1
  174. package/dist/steer-mailbox.js +164 -6
  175. package/dist/store.d.ts +11 -4
  176. package/dist/store.js +93 -30
  177. package/dist/surface.js +24 -4
  178. package/dist/task-control.d.ts +2 -1
  179. package/dist/task-status.js +5 -0
  180. package/dist/teardown-git.d.ts +2 -0
  181. package/dist/teardown-git.js +75 -19
  182. package/dist/telegram-lead.js +23 -6
  183. package/dist/telegram.js +12 -1
  184. package/dist/toolroll-update.js +2 -0
  185. package/dist/work-index.js +22 -7
  186. package/dist/work-summary.d.ts +1 -1
  187. package/dist/work-summary.js +5 -2
  188. package/dist/workspace-ui.d.ts +3 -1
  189. package/dist/workspace-ui.js +10 -1
  190. package/dist/worktree.js +23 -1
  191. package/package.json +2 -1
@@ -72,7 +72,7 @@ export declare const CHAT_ACTIONS: {
72
72
  readonly sweep_file: {
73
73
  readonly label: "Start sweep";
74
74
  readonly protected: true;
75
- readonly password: true;
75
+ readonly password: false;
76
76
  };
77
77
  readonly sweep_cancel_rest: {
78
78
  readonly label: "Cancel the rest";
@@ -157,7 +157,7 @@ export declare const CHAT_ACTIONS: {
157
157
  readonly flow_browser: {
158
158
  readonly label: "Allow browser";
159
159
  readonly protected: true;
160
- readonly password: true;
160
+ readonly password: false;
161
161
  };
162
162
  readonly flow_browser_off: {
163
163
  readonly label: "Turn off browser";
@@ -249,6 +249,86 @@ export declare const CHAT_ACTIONS: {
249
249
  readonly protected: false;
250
250
  readonly password: false;
251
251
  };
252
+ readonly mode_revoke: {
253
+ readonly label: "End automatic approvals";
254
+ readonly protected: false;
255
+ readonly password: false;
256
+ };
257
+ readonly flow_unattended_off: {
258
+ readonly label: "Stop running on its own";
259
+ readonly protected: false;
260
+ readonly password: false;
261
+ };
262
+ readonly flow_archive: {
263
+ readonly label: "Archive flow";
264
+ readonly protected: false;
265
+ readonly password: false;
266
+ };
267
+ readonly provider_resume: {
268
+ readonly label: "Resume agent";
269
+ readonly protected: false;
270
+ readonly password: false;
271
+ };
272
+ readonly worker_note: {
273
+ readonly label: "Note on worker";
274
+ readonly protected: false;
275
+ readonly password: false;
276
+ };
277
+ readonly lead_identity: {
278
+ readonly label: "Name your lead";
279
+ readonly protected: false;
280
+ readonly password: false;
281
+ };
282
+ readonly task_archive: {
283
+ readonly label: "Put away task";
284
+ readonly protected: false;
285
+ readonly password: false;
286
+ };
287
+ readonly task_restore: {
288
+ readonly label: "Restore task";
289
+ readonly protected: false;
290
+ readonly password: false;
291
+ };
292
+ readonly incident_resolve: {
293
+ readonly label: "Resolve incident";
294
+ readonly protected: false;
295
+ readonly password: false;
296
+ };
297
+ readonly memory_decide: {
298
+ readonly label: "Decide memory proposal";
299
+ readonly protected: false;
300
+ readonly password: false;
301
+ };
302
+ readonly finding_send: {
303
+ readonly label: "Send finding";
304
+ readonly protected: false;
305
+ readonly password: false;
306
+ };
307
+ readonly finding_resend: {
308
+ readonly label: "Send finding back";
309
+ readonly protected: false;
310
+ readonly password: false;
311
+ };
312
+ readonly task_reopen: {
313
+ readonly label: "Reopen task";
314
+ readonly protected: true;
315
+ readonly password: false;
316
+ };
317
+ readonly revision_accept: {
318
+ readonly label: "Accept plan revision";
319
+ readonly protected: true;
320
+ readonly password: false;
321
+ };
322
+ readonly revision_reject: {
323
+ readonly label: "Reject plan revision";
324
+ readonly protected: true;
325
+ readonly password: false;
326
+ };
327
+ readonly flow_unattended: {
328
+ readonly label: "Let flow run on its own";
329
+ readonly protected: true;
330
+ readonly password: false;
331
+ };
252
332
  readonly lead_about_you: {
253
333
  readonly label: "Remember";
254
334
  readonly protected: false;
@@ -257,7 +337,7 @@ export declare const CHAT_ACTIONS: {
257
337
  readonly scope_approve: {
258
338
  readonly label: "Approve work";
259
339
  readonly protected: true;
260
- readonly password: true;
340
+ readonly password: false;
261
341
  };
262
342
  readonly result_accept: {
263
343
  readonly label: "Accept";
@@ -272,13 +352,16 @@ export declare const CHAT_ACTIONS: {
272
352
  readonly task_resume: {
273
353
  readonly label: "Resume task";
274
354
  readonly protected: true;
275
- readonly password: true;
355
+ readonly password: false;
276
356
  };
277
357
  };
278
358
  export type ChatAction = keyof typeof CHAT_ACTIONS;
279
- /** Protected actions a paired phone may confirm behind its own explicit
280
- * yes/cancel challenge instead of the console's secure screen. Password
281
- * actions and long or redacted terms never qualify. */
359
+ /** Approvals (owner's decision, docs/plans/toolroll-cards.md): a person's own yes from their chat stands without a password.
360
+ * Only a person's tap in a linked chat, or their click in a signed-in browser, ever runs one. */
361
+ export declare const APPROVAL_ACTIONS: ReadonlySet<ChatAction>;
362
+ /** Protected actions a linked chat may confirm behind its own explicit yes/cancel challenge instead of the review screen.
363
+ * Password actions and long or redacted terms never qualify: the card must show the exact terms. */
364
+ export declare const APPROVAL_TERM_CHARS = 3000;
282
365
  export declare const CHALLENGE_ACTIONS: ReadonlySet<ChatAction>;
283
366
  /** Actions about the person themselves, in no project: their card carries no project (repo ""). */
284
367
  export declare const OWNER_ACTIONS: ReadonlySet<ChatAction>;
@@ -297,7 +380,7 @@ export declare function sharedActionReviewPath(id: number): string;
297
380
  export declare function mintSharedActionReview(store: Store, who: VerifiedApprover, id: number, root: string, now: Date): {
298
381
  payload: {
299
382
  version: 1;
300
- operation: "code_map_holdout_end" | "code_map_switch" | "decision_record" | "decision_retire" | "flow_browser" | "flow_browser_off" | "flow_card_add" | "flow_card_approve" | "flow_card_assign" | "flow_card_cancel" | "flow_card_choose" | "flow_card_comment" | "flow_card_move" | "flow_card_send_back" | "flow_card_watch" | "flow_create" | "flow_edit" | "flow_script_save" | "flow_starter" | "flow_trigger_add" | "flow_trigger_pause" | "flow_trigger_remove" | "flow_trigger_resume" | "kit_setup" | "knowledge_instructions" | "knowledge_remove" | "knowledge_restore" | "knowledge_save" | "lead_about_you" | "result_accept" | "scope_approve" | "skill_disable" | "skill_enable" | "skill_import" | "skill_restore" | "skill_test" | "subagent_answer" | "subagent_ask" | "subagent_create" | "subagent_memory" | "subagent_note" | "subagent_routine" | "subagent_soul" | "subagent_state" | "subagent_tools" | "subagent_undo" | "suggestion_not_now" | "sweep_cancel_rest" | "sweep_file" | "task_cancel" | "task_resume" | "tool_add" | "tool_remove" | "trial_stop";
383
+ operation: "code_map_holdout_end" | "code_map_switch" | "decision_record" | "decision_retire" | "finding_resend" | "finding_send" | "flow_archive" | "flow_browser" | "flow_browser_off" | "flow_card_add" | "flow_card_approve" | "flow_card_assign" | "flow_card_cancel" | "flow_card_choose" | "flow_card_comment" | "flow_card_move" | "flow_card_send_back" | "flow_card_watch" | "flow_create" | "flow_edit" | "flow_script_save" | "flow_starter" | "flow_trigger_add" | "flow_trigger_pause" | "flow_trigger_remove" | "flow_trigger_resume" | "flow_unattended" | "flow_unattended_off" | "incident_resolve" | "kit_setup" | "knowledge_instructions" | "knowledge_remove" | "knowledge_restore" | "knowledge_save" | "lead_about_you" | "lead_identity" | "memory_decide" | "mode_revoke" | "provider_resume" | "result_accept" | "revision_accept" | "revision_reject" | "scope_approve" | "skill_disable" | "skill_enable" | "skill_import" | "skill_restore" | "skill_test" | "subagent_answer" | "subagent_ask" | "subagent_create" | "subagent_memory" | "subagent_note" | "subagent_routine" | "subagent_soul" | "subagent_state" | "subagent_tools" | "subagent_undo" | "suggestion_not_now" | "sweep_cancel_rest" | "sweep_file" | "task_archive" | "task_cancel" | "task_reopen" | "task_restore" | "task_resume" | "tool_add" | "tool_remove" | "trial_stop" | "worker_note";
301
384
  request: {
302
385
  [x: string]: unknown;
303
386
  };
@@ -321,6 +404,10 @@ export type SharedActionOptions = {
321
404
  password: string;
322
405
  };
323
406
  confirm?: boolean;
407
+ /** The web door only: a person's signed-in browser session, never a token. */
408
+ person?: boolean;
409
+ /** A linked chat's own binding: which chat the yes came from, for the ledger. */
410
+ binding?: number;
324
411
  };
325
412
  /** Called inside the proposal door's transaction, after ownership and session
326
413
  * checks. No password or review receipt is ever part of a saved proposal. */