@hearsay-tools/squawk 0.18.0-dev.6739 → 0.18.0-dev.6755

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 (165) hide show
  1. package/dist/agent-config/account-identity.js +12 -11
  2. package/dist/agent-config/account-identity.js.map +1 -1
  3. package/dist/contract/index.js +6 -2
  4. package/dist/contract/runs.d.ts +30 -3
  5. package/dist/core/agent-profiles.d.ts +42 -9
  6. package/dist/core/agent-profiles.js +33 -26
  7. package/dist/core/agent-profiles.js.map +1 -1
  8. package/dist/core/agent-runner.d.ts +5 -0
  9. package/dist/core/agent-runner.js +11 -0
  10. package/dist/core/agent-runner.js.map +1 -1
  11. package/dist/core/claude-cli-runner.d.ts +1 -0
  12. package/dist/core/codex-app-server-runner.d.ts +1 -0
  13. package/dist/core/cursor-print-runner.d.ts +1 -0
  14. package/dist/core/cursor-runner.d.ts +1 -0
  15. package/dist/core/omp-runner.d.ts +1 -0
  16. package/dist/core/opencode-server-runner.d.ts +1 -0
  17. package/dist/core/pi-runner.d.ts +1 -0
  18. package/dist/core/runner-facts.d.ts +9 -0
  19. package/dist/core/runner-facts.js +6 -0
  20. package/dist/core/runner-facts.js.map +1 -1
  21. package/dist/delegation/conversations.d.ts +8 -2
  22. package/dist/delegation/execution-identity.js +27 -31
  23. package/dist/delegation/execution-identity.js.map +1 -1
  24. package/dist/delegation/routes.d.ts +9 -9
  25. package/dist/delegation/transport.d.ts +11 -11
  26. package/dist/home/legacy-account-paths.js +2 -1
  27. package/dist/home/legacy-account-paths.js.map +1 -1
  28. package/dist/home/migration-accounts.d.ts +1 -1
  29. package/dist/home/migration-accounts.js +3 -2
  30. package/dist/home/migration-accounts.js.map +1 -1
  31. package/dist/paths.d.ts +3 -0
  32. package/dist/paths.js +4 -0
  33. package/dist/paths.js.map +1 -1
  34. package/dist/planner.js +4 -3
  35. package/dist/planner.js.map +1 -1
  36. package/dist/runs/auto-name.d.ts +1 -1
  37. package/dist/runs/auto-name.js +3 -2
  38. package/dist/runs/auto-name.js.map +1 -1
  39. package/dist/runs/legacy-run-rows.d.ts +8 -0
  40. package/dist/runs/legacy-run-rows.js +19 -0
  41. package/dist/runs/legacy-run-rows.js.map +1 -1
  42. package/dist/runs/run-exits.d.ts +1366 -51
  43. package/dist/runs/run-exits.js +18 -7
  44. package/dist/runs/run-exits.js.map +1 -1
  45. package/dist/runs/store.d.ts +11 -2
  46. package/dist/runs/store.js +6 -6
  47. package/dist/runs/store.js.map +1 -1
  48. package/dist/serve-boot.js +1 -0
  49. package/dist/serve-boot.js.map +1 -1
  50. package/dist/server/live-routes.d.ts +6 -6
  51. package/dist/server/server.d.ts +170 -116
  52. package/dist/server/server.js +6 -10
  53. package/dist/server/server.js.map +1 -1
  54. package/dist/server-install/steps.js +24 -17
  55. package/dist/server-install/steps.js.map +1 -1
  56. package/dist/workflows/continuation-admission.d.ts +4 -1
  57. package/dist/workflows/run/auto-resume.d.ts +9 -8
  58. package/dist/workflows/run/auto-resume.js +17 -27
  59. package/dist/workflows/run/auto-resume.js.map +1 -1
  60. package/dist/workflows/run/compose.d.ts +3 -0
  61. package/dist/workflows/run/compose.js +13 -12
  62. package/dist/workflows/run/compose.js.map +1 -1
  63. package/dist/workflows/run/continuation-session.js +2 -0
  64. package/dist/workflows/run/continuation-session.js.map +1 -1
  65. package/dist/workflows/run/family-reconciler.d.ts +4 -5
  66. package/dist/workflows/run/family-reconciler.js +9 -19
  67. package/dist/workflows/run/family-reconciler.js.map +1 -1
  68. package/dist/workflows/run/inbox-claims.d.ts +3 -4
  69. package/dist/workflows/run/inbox-claims.js +7 -17
  70. package/dist/workflows/run/inbox-claims.js.map +1 -1
  71. package/dist/workflows/run/input-delivery.d.ts +3 -1
  72. package/dist/workflows/run/input-delivery.js +14 -15
  73. package/dist/workflows/run/input-delivery.js.map +1 -1
  74. package/dist/workflows/run/input-timers.js +3 -2
  75. package/dist/workflows/run/input-timers.js.map +1 -1
  76. package/dist/workflows/run/launch-read-resolver.d.ts +4 -1
  77. package/dist/workflows/run/launch-read-resolver.js +24 -9
  78. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  79. package/dist/workflows/run/liveness-timers.d.ts +97 -0
  80. package/dist/workflows/run/liveness-timers.js +130 -0
  81. package/dist/workflows/run/liveness-timers.js.map +1 -0
  82. package/dist/workflows/run/run-memory.d.ts +11 -3
  83. package/dist/workflows/run/run-memory.js +34 -8
  84. package/dist/workflows/run/run-memory.js.map +1 -1
  85. package/dist/workflows/run/run-settlement.d.ts +9 -4
  86. package/dist/workflows/run/run-settlement.js +25 -12
  87. package/dist/workflows/run/run-settlement.js.map +1 -1
  88. package/dist/workflows/run/squawk-tools.js +2 -0
  89. package/dist/workflows/run/squawk-tools.js.map +1 -1
  90. package/dist/workflows/run/step-loop.d.ts +2 -2
  91. package/dist/workflows/run/step-loop.js +8 -3
  92. package/dist/workflows/run/step-loop.js.map +1 -1
  93. package/dist/workflows/run/subagent-waits.d.ts +3 -5
  94. package/dist/workflows/run/subagent-waits.js +13 -32
  95. package/dist/workflows/run/subagent-waits.js.map +1 -1
  96. package/dist/workflows/run/turn-nudges.d.ts +3 -1
  97. package/dist/workflows/run/turn-nudges.js +9 -6
  98. package/dist/workflows/run/turn-nudges.js.map +1 -1
  99. package/dist/workflows/run/turn-settler.d.ts +3 -1
  100. package/dist/workflows/run/turn-settler.js +7 -4
  101. package/dist/workflows/run/turn-settler.js.map +1 -1
  102. package/dist/workflows/run/wait-engine.d.ts +4 -1
  103. package/dist/workflows/run/wake-retries.d.ts +5 -7
  104. package/dist/workflows/run/wake-retries.js +17 -42
  105. package/dist/workflows/run/wake-retries.js.map +1 -1
  106. package/dist/workflows/run/worker-executions.js +2 -0
  107. package/dist/workflows/run/worker-executions.js.map +1 -1
  108. package/dist/workflows/run/workflow-position.d.ts +1 -0
  109. package/dist/workflows/run/workflow-position.js +1 -0
  110. package/dist/workflows/run/workflow-position.js.map +1 -1
  111. package/dist/workflows/run-scheduling.d.ts +4 -1
  112. package/dist/workflows/run-scheduling.js +10 -1
  113. package/dist/workflows/run-scheduling.js.map +1 -1
  114. package/dist/workflows/run-states.js +5 -2
  115. package/dist/workflows/run-states.js.map +1 -1
  116. package/dist/workflows/run.js +9 -2
  117. package/dist/workflows/run.js.map +1 -1
  118. package/dist/workflows/types.js +2 -3
  119. package/dist/workflows/types.js.map +1 -1
  120. package/dist/workspace/agent-accounts.js +2 -2
  121. package/dist/workspace/agent-accounts.js.map +1 -1
  122. package/dist/workspace/agent-profiles.d.ts +1 -1
  123. package/dist/workspace/agent-profiles.js +5 -5
  124. package/dist/workspace/agent-profiles.js.map +1 -1
  125. package/package.json +4 -4
  126. package/web/dist/assets/{activity-motion-DMp6Uo_E.js → activity-motion-CjPL-sr2.js} +1 -1
  127. package/web/dist/assets/{activity-route-D04JxCzp.js → activity-route-C0tIKFED.js} +1 -1
  128. package/web/dist/assets/{agent-accounts-C48RdN3o.js → agent-accounts-Bfv01ivB.js} +1 -1
  129. package/web/dist/assets/attention-CVI366xV.js +1 -0
  130. package/web/dist/assets/{commit-diff-panel-Din879JP.js → commit-diff-panel-uIMnjowv.js} +1 -1
  131. package/web/dist/assets/{diff-Btt23N3M.js → diff-CUIYkwMG.js} +2 -2
  132. package/web/dist/assets/{diff-view-CfWaBIJu.js → diff-view-CH27Vgln.js} +1 -1
  133. package/web/dist/assets/{file-preview-DcznUbkx.js → file-preview-wrsPzzjz.js} +1 -1
  134. package/web/dist/assets/{git-toolbar-DUnmDIe8.js → git-toolbar-C1v8n8nd.js} +1 -1
  135. package/web/dist/assets/{github-C6OOf2Jp.js → github-0PYN1Ju2.js} +1 -1
  136. package/web/dist/assets/{global-activity-route-ko4iBoc3.js → global-activity-route-KDUFNxgb.js} +1 -1
  137. package/web/dist/assets/{index-C3YyGC-J.js → index-DgeV0f4H.js} +4 -4
  138. package/web/dist/assets/{preview-pane-connected-gIoE5-9m.js → preview-pane-connected-B1XJVVoo.js} +1 -1
  139. package/web/dist/assets/{project-router-oKsNlPN6.js → project-router-WQWd3UUn.js} +1 -1
  140. package/web/dist/assets/project-scope-context-bgdvGX9z.js +4 -0
  141. package/web/dist/assets/{prompt-template-menu-C3d8Xkvo.js → prompt-template-menu-DC5XoYEs.js} +1 -1
  142. package/web/dist/assets/{queries-Be8VyHam.js → queries-Ce9CPdRy.js} +1 -1
  143. package/web/dist/assets/{reference-chip-BliLpdSz.js → reference-chip-peKR_0El.js} +1 -1
  144. package/web/dist/assets/{repo-git-DGrhzyWR.js → repo-git-DU5eh5V8.js} +1 -1
  145. package/web/dist/assets/{report-reader-C2yXiPa9.js → report-reader-DsvVau4u.js} +1 -1
  146. package/web/dist/assets/{reports-mmONzYgk.js → reports-Brs9M380.js} +1 -1
  147. package/web/dist/assets/{run-header-Cin11tct.js → run-header-BYyz-dXB.js} +1 -1
  148. package/web/dist/assets/{skills-N0vkndca.js → skills-TJPEPrU2.js} +1 -1
  149. package/web/dist/assets/{tab-link-Buy1fRFO.js → tab-link-DiNYVlpl.js} +1 -1
  150. package/web/dist/assets/{task-changes-BhvqWHW7.js → task-changes-BMMqKQZQ.js} +1 -1
  151. package/web/dist/assets/{task-commits-RGVmBirX.js → task-commits-DzOQ_acm.js} +1 -1
  152. package/web/dist/assets/{task-files-B-W_PC8S.js → task-files-CqBxJ5lZ.js} +1 -1
  153. package/web/dist/assets/{task-github-item-csNEiMBa.js → task-github-item-DYZGczpf.js} +1 -1
  154. package/web/dist/assets/{task-thread-B23Uq5iQ.js → task-thread-DYEBHvdF.js} +1 -1
  155. package/web/dist/assets/{thread-state-DeDb0lsY.js → thread-state-VHo3TMiY.js} +1 -1
  156. package/web/dist/assets/{use-desktop-jIeTPw3K.js → use-desktop-DBpXK7UB.js} +1 -1
  157. package/web/dist/assets/{use-hand-to-agent-state-CIysCyMM.js → use-hand-to-agent-state-DiPruziF.js} +1 -1
  158. package/web/dist/assets/{useInfiniteQuery-Yn58_Fkn.js → useInfiniteQuery-s3lTx_YX.js} +1 -1
  159. package/web/dist/assets/useQuery-C0ee1rw5.js +1 -0
  160. package/web/dist/assets/{workflows-k0YtC-LB.js → workflows-DiURHZJ-.js} +1 -1
  161. package/web/dist/assets/{ws-DbXGHAke.js → ws-WW6DrfbT.js} +1 -1
  162. package/web/dist/index.html +12 -12
  163. package/web/dist/assets/attention-BF8NA1XM.js +0 -1
  164. package/web/dist/assets/project-scope-context-BBVJVcJp.js +0 -4
  165. package/web/dist/assets/useQuery-C1xFF0nd.js +0 -1
@@ -2988,12 +2988,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2988
2988
  output: {
2989
2989
  generation: string;
2990
2990
  results: ({
2991
- projectId: string;
2992
- runId: string;
2993
- type: "error" | "reset";
2994
- status: 400 | 404 | 409 | 413 | 503;
2995
- error: string;
2996
- } | {
2997
2991
  projectId: string;
2998
2992
  runId: string;
2999
2993
  type: "batch";
@@ -3007,6 +3001,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3007
3001
  cursor: string;
3008
3002
  afterSeq: number;
3009
3003
  hasMore: boolean;
3004
+ } | {
3005
+ projectId: string;
3006
+ runId: string;
3007
+ type: "error" | "reset";
3008
+ status: 400 | 404 | 409 | 413 | 503;
3009
+ error: string;
3010
3010
  })[];
3011
3011
  };
3012
3012
  outputFormat: "json";
@@ -4794,6 +4794,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4794
4794
  } & {
4795
4795
  "/repo/commit/:sha": {
4796
4796
  $get: {
4797
+ output: string;
4798
+ outputFormat: "text";
4799
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4800
+ input: {
4801
+ query: {
4802
+ structured?: string | undefined;
4803
+ };
4804
+ } & {
4805
+ param: {
4806
+ sha: string;
4807
+ };
4808
+ };
4809
+ } | {
4797
4810
  output: {
4798
4811
  error: string;
4799
4812
  code?: "invalid_input" | undefined;
@@ -4857,19 +4870,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4857
4870
  sha: string;
4858
4871
  };
4859
4872
  };
4860
- } | {
4861
- output: string;
4862
- outputFormat: "text";
4863
- status: import("hono/utils/http-status").ContentfulStatusCode;
4864
- input: {
4865
- query: {
4866
- structured?: string | undefined;
4867
- };
4868
- } & {
4869
- param: {
4870
- sha: string;
4871
- };
4872
- };
4873
4873
  };
4874
4874
  };
4875
4875
  } & {
@@ -7084,7 +7084,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7084
7084
  restarted?: true | undefined;
7085
7085
  } | undefined;
7086
7086
  } | undefined;
7087
- workflowResumeStepId?: string | undefined;
7087
+ workflowCursor?: {
7088
+ stepId: string;
7089
+ mode: "resume" | "start";
7090
+ } | undefined;
7088
7091
  invalidAsk?: boolean | undefined;
7089
7092
  delegation?: {
7090
7093
  role: "invalid";
@@ -8573,11 +8576,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8573
8576
  "/runs/:id/worker-destroy": {
8574
8577
  $post: {
8575
8578
  output: {
8576
- error: string;
8577
- code?: "invalid_input" | undefined;
8579
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8580
+ readonly error: string;
8581
+ readonly modelChoices?: {
8582
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
8583
+ requestedModel: string;
8584
+ availableModels: {
8585
+ id: string;
8586
+ label: string;
8587
+ description: string;
8588
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8589
+ }[];
8590
+ otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
8591
+ } | undefined;
8578
8592
  };
8579
8593
  outputFormat: "json";
8580
- status: 400;
8594
+ status: 400 | 401 | 403 | 409 | 503;
8581
8595
  input: {
8582
8596
  query: {
8583
8597
  [x: string]: string | string[];
@@ -8591,22 +8605,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8591
8605
  };
8592
8606
  } | {
8593
8607
  output: {
8594
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8595
- readonly error: string;
8596
- readonly modelChoices?: {
8597
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
8598
- requestedModel: string;
8599
- availableModels: {
8600
- id: string;
8601
- label: string;
8602
- description: string;
8603
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8604
- }[];
8605
- otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
8606
- } | undefined;
8608
+ error: string;
8609
+ code?: "invalid_input" | undefined;
8607
8610
  };
8608
8611
  outputFormat: "json";
8609
- status: 400 | 401 | 403 | 409 | 503;
8612
+ status: 400;
8610
8613
  input: {
8611
8614
  query: {
8612
8615
  [x: string]: string | string[];
@@ -8747,7 +8750,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8747
8750
  restarted?: true | undefined;
8748
8751
  } | undefined;
8749
8752
  } | undefined;
8750
- workflowResumeStepId?: string | undefined;
8751
8753
  invalidAsk?: boolean | undefined;
8752
8754
  agentInputs?: {
8753
8755
  conversation?: {
@@ -9681,6 +9683,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9681
9683
  durationMs?: number | undefined;
9682
9684
  error?: string | undefined;
9683
9685
  } | undefined;
9686
+ workflowCursor?: {
9687
+ stepId: string;
9688
+ mode: "resume" | "start";
9689
+ } | undefined;
9684
9690
  archived: boolean;
9685
9691
  workflowDef?: {
9686
9692
  name: string;
@@ -9842,7 +9848,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9842
9848
  restarted?: true | undefined;
9843
9849
  } | undefined;
9844
9850
  } | undefined;
9845
- workflowResumeStepId?: string | undefined;
9846
9851
  invalidAsk?: boolean | undefined;
9847
9852
  agentInputs?: {
9848
9853
  conversation?: {
@@ -10776,6 +10781,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10776
10781
  durationMs?: number | undefined;
10777
10782
  error?: string | undefined;
10778
10783
  } | undefined;
10784
+ workflowCursor?: {
10785
+ stepId: string;
10786
+ mode: "resume" | "start";
10787
+ } | undefined;
10779
10788
  archived: boolean;
10780
10789
  workflowDef?: {
10781
10790
  name: string;
@@ -10938,7 +10947,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10938
10947
  restarted?: true | undefined;
10939
10948
  } | undefined;
10940
10949
  } | undefined;
10941
- workflowResumeStepId?: string | undefined;
10942
10950
  invalidAsk?: boolean | undefined;
10943
10951
  agentInputs?: {
10944
10952
  conversation?: {
@@ -11872,6 +11880,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11872
11880
  durationMs?: number | undefined;
11873
11881
  error?: string | undefined;
11874
11882
  } | undefined;
11883
+ workflowCursor?: {
11884
+ stepId: string;
11885
+ mode: "resume" | "start";
11886
+ } | undefined;
11875
11887
  archived: boolean;
11876
11888
  workflowDef?: {
11877
11889
  name: string;
@@ -12061,7 +12073,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12061
12073
  restarted?: true | undefined;
12062
12074
  } | undefined;
12063
12075
  } | undefined;
12064
- workflowResumeStepId?: string | undefined;
12065
12076
  invalidAsk?: boolean | undefined;
12066
12077
  agentInputs?: {
12067
12078
  conversation?: {
@@ -12995,6 +13006,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12995
13006
  durationMs?: number | undefined;
12996
13007
  error?: string | undefined;
12997
13008
  } | undefined;
13009
+ workflowCursor?: {
13010
+ stepId: string;
13011
+ mode: "resume" | "start";
13012
+ } | undefined;
12998
13013
  archived: boolean;
12999
13014
  workflowDef?: {
13000
13015
  name: string;
@@ -13132,7 +13147,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13132
13147
  restarted?: true | undefined;
13133
13148
  } | undefined;
13134
13149
  } | undefined;
13135
- workflowResumeStepId?: string | undefined;
13136
13150
  invalidAsk?: boolean | undefined;
13137
13151
  agentInputs?: {
13138
13152
  conversation?: {
@@ -14066,6 +14080,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14066
14080
  durationMs?: number | undefined;
14067
14081
  error?: string | undefined;
14068
14082
  } | undefined;
14083
+ workflowCursor?: {
14084
+ stepId: string;
14085
+ mode: "resume" | "start";
14086
+ } | undefined;
14069
14087
  archived: boolean;
14070
14088
  workflowDef?: {
14071
14089
  name: string;
@@ -14203,7 +14221,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14203
14221
  restarted?: true | undefined;
14204
14222
  } | undefined;
14205
14223
  } | undefined;
14206
- workflowResumeStepId?: string | undefined;
14207
14224
  invalidAsk?: boolean | undefined;
14208
14225
  agentInputs?: {
14209
14226
  conversation?: {
@@ -15137,6 +15154,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15137
15154
  durationMs?: number | undefined;
15138
15155
  error?: string | undefined;
15139
15156
  } | undefined;
15157
+ workflowCursor?: {
15158
+ stepId: string;
15159
+ mode: "resume" | "start";
15160
+ } | undefined;
15140
15161
  archived: boolean;
15141
15162
  workflowDef?: {
15142
15163
  name: string;
@@ -15347,7 +15368,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15347
15368
  restarted?: true | undefined;
15348
15369
  } | undefined;
15349
15370
  } | undefined;
15350
- workflowResumeStepId?: string | undefined;
15371
+ workflowCursor?: {
15372
+ stepId: string;
15373
+ mode: "resume" | "start";
15374
+ } | undefined;
15351
15375
  invalidAsk?: boolean | undefined;
15352
15376
  delegation?: {
15353
15377
  role: "invalid";
@@ -16546,7 +16570,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
16546
16570
  restarted?: true | undefined;
16547
16571
  } | undefined;
16548
16572
  } | undefined;
16549
- workflowResumeStepId?: string | undefined;
16550
16573
  invalidAsk?: boolean | undefined;
16551
16574
  agentInputs?: {
16552
16575
  conversation?: {
@@ -17480,6 +17503,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17480
17503
  durationMs?: number | undefined;
17481
17504
  error?: string | undefined;
17482
17505
  } | undefined;
17506
+ workflowCursor?: {
17507
+ stepId: string;
17508
+ mode: "resume" | "start";
17509
+ } | undefined;
17483
17510
  archived: boolean;
17484
17511
  workflowDef?: {
17485
17512
  name: string;
@@ -18206,20 +18233,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18206
18233
  } & {
18207
18234
  "/runs/:id/handoff": {
18208
18235
  $get: {
18209
- output: {
18210
- error: string;
18211
- };
18212
- outputFormat: "json";
18213
- status: 404;
18236
+ output: string;
18237
+ outputFormat: "text";
18238
+ status: 200;
18214
18239
  input: {
18215
18240
  param: {
18216
18241
  id: string;
18217
18242
  };
18218
18243
  };
18219
18244
  } | {
18220
- output: string;
18221
- outputFormat: "text";
18222
- status: 200;
18245
+ output: {
18246
+ error: string;
18247
+ };
18248
+ outputFormat: "json";
18249
+ status: 404;
18223
18250
  input: {
18224
18251
  param: {
18225
18252
  id: string;
@@ -18257,20 +18284,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18257
18284
  } & {
18258
18285
  "/runs/:id/diff": {
18259
18286
  $get: {
18260
- output: {
18261
- error: string;
18262
- };
18263
- outputFormat: "json";
18264
- status: 404 | 409;
18287
+ output: string;
18288
+ outputFormat: "text";
18289
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18265
18290
  input: {
18266
18291
  param: {
18267
18292
  id: string;
18268
18293
  };
18269
18294
  };
18270
18295
  } | {
18271
- output: string;
18272
- outputFormat: "text";
18273
- status: import("hono/utils/http-status").ContentfulStatusCode;
18296
+ output: {
18297
+ error: string;
18298
+ };
18299
+ outputFormat: "json";
18300
+ status: 404 | 409;
18274
18301
  input: {
18275
18302
  param: {
18276
18303
  id: string;
@@ -20563,6 +20590,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20563
20590
  } & {
20564
20591
  "/repo/commit/:sha": {
20565
20592
  $get: {
20593
+ output: string;
20594
+ outputFormat: "text";
20595
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20596
+ input: {
20597
+ query: {
20598
+ structured?: string | undefined;
20599
+ };
20600
+ } & {
20601
+ param: {
20602
+ sha: string;
20603
+ };
20604
+ };
20605
+ } | {
20566
20606
  output: {
20567
20607
  error: string;
20568
20608
  code?: "invalid_input" | undefined;
@@ -20626,19 +20666,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20626
20666
  sha: string;
20627
20667
  };
20628
20668
  };
20629
- } | {
20630
- output: string;
20631
- outputFormat: "text";
20632
- status: import("hono/utils/http-status").ContentfulStatusCode;
20633
- input: {
20634
- query: {
20635
- structured?: string | undefined;
20636
- };
20637
- } & {
20638
- param: {
20639
- sha: string;
20640
- };
20641
- };
20642
20669
  };
20643
20670
  };
20644
20671
  } & {
@@ -22853,7 +22880,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
22853
22880
  restarted?: true | undefined;
22854
22881
  } | undefined;
22855
22882
  } | undefined;
22856
- workflowResumeStepId?: string | undefined;
22883
+ workflowCursor?: {
22884
+ stepId: string;
22885
+ mode: "resume" | "start";
22886
+ } | undefined;
22857
22887
  invalidAsk?: boolean | undefined;
22858
22888
  delegation?: {
22859
22889
  role: "invalid";
@@ -24342,11 +24372,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24342
24372
  "/runs/:id/worker-destroy": {
24343
24373
  $post: {
24344
24374
  output: {
24345
- error: string;
24346
- code?: "invalid_input" | undefined;
24375
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24376
+ readonly error: string;
24377
+ readonly modelChoices?: {
24378
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
24379
+ requestedModel: string;
24380
+ availableModels: {
24381
+ id: string;
24382
+ label: string;
24383
+ description: string;
24384
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24385
+ }[];
24386
+ otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
24387
+ } | undefined;
24347
24388
  };
24348
24389
  outputFormat: "json";
24349
- status: 400;
24390
+ status: 400 | 401 | 403 | 409 | 503;
24350
24391
  input: {
24351
24392
  query: {
24352
24393
  [x: string]: string | string[];
@@ -24360,22 +24401,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24360
24401
  };
24361
24402
  } | {
24362
24403
  output: {
24363
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24364
- readonly error: string;
24365
- readonly modelChoices?: {
24366
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
24367
- requestedModel: string;
24368
- availableModels: {
24369
- id: string;
24370
- label: string;
24371
- description: string;
24372
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24373
- }[];
24374
- otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
24375
- } | undefined;
24404
+ error: string;
24405
+ code?: "invalid_input" | undefined;
24376
24406
  };
24377
24407
  outputFormat: "json";
24378
- status: 400 | 401 | 403 | 409 | 503;
24408
+ status: 400;
24379
24409
  input: {
24380
24410
  query: {
24381
24411
  [x: string]: string | string[];
@@ -24516,7 +24546,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24516
24546
  restarted?: true | undefined;
24517
24547
  } | undefined;
24518
24548
  } | undefined;
24519
- workflowResumeStepId?: string | undefined;
24520
24549
  invalidAsk?: boolean | undefined;
24521
24550
  agentInputs?: {
24522
24551
  conversation?: {
@@ -25450,6 +25479,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25450
25479
  durationMs?: number | undefined;
25451
25480
  error?: string | undefined;
25452
25481
  } | undefined;
25482
+ workflowCursor?: {
25483
+ stepId: string;
25484
+ mode: "resume" | "start";
25485
+ } | undefined;
25453
25486
  archived: boolean;
25454
25487
  workflowDef?: {
25455
25488
  name: string;
@@ -25611,7 +25644,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25611
25644
  restarted?: true | undefined;
25612
25645
  } | undefined;
25613
25646
  } | undefined;
25614
- workflowResumeStepId?: string | undefined;
25615
25647
  invalidAsk?: boolean | undefined;
25616
25648
  agentInputs?: {
25617
25649
  conversation?: {
@@ -26545,6 +26577,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26545
26577
  durationMs?: number | undefined;
26546
26578
  error?: string | undefined;
26547
26579
  } | undefined;
26580
+ workflowCursor?: {
26581
+ stepId: string;
26582
+ mode: "resume" | "start";
26583
+ } | undefined;
26548
26584
  archived: boolean;
26549
26585
  workflowDef?: {
26550
26586
  name: string;
@@ -26707,7 +26743,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26707
26743
  restarted?: true | undefined;
26708
26744
  } | undefined;
26709
26745
  } | undefined;
26710
- workflowResumeStepId?: string | undefined;
26711
26746
  invalidAsk?: boolean | undefined;
26712
26747
  agentInputs?: {
26713
26748
  conversation?: {
@@ -27641,6 +27676,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27641
27676
  durationMs?: number | undefined;
27642
27677
  error?: string | undefined;
27643
27678
  } | undefined;
27679
+ workflowCursor?: {
27680
+ stepId: string;
27681
+ mode: "resume" | "start";
27682
+ } | undefined;
27644
27683
  archived: boolean;
27645
27684
  workflowDef?: {
27646
27685
  name: string;
@@ -27830,7 +27869,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27830
27869
  restarted?: true | undefined;
27831
27870
  } | undefined;
27832
27871
  } | undefined;
27833
- workflowResumeStepId?: string | undefined;
27834
27872
  invalidAsk?: boolean | undefined;
27835
27873
  agentInputs?: {
27836
27874
  conversation?: {
@@ -28764,6 +28802,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28764
28802
  durationMs?: number | undefined;
28765
28803
  error?: string | undefined;
28766
28804
  } | undefined;
28805
+ workflowCursor?: {
28806
+ stepId: string;
28807
+ mode: "resume" | "start";
28808
+ } | undefined;
28767
28809
  archived: boolean;
28768
28810
  workflowDef?: {
28769
28811
  name: string;
@@ -28901,7 +28943,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28901
28943
  restarted?: true | undefined;
28902
28944
  } | undefined;
28903
28945
  } | undefined;
28904
- workflowResumeStepId?: string | undefined;
28905
28946
  invalidAsk?: boolean | undefined;
28906
28947
  agentInputs?: {
28907
28948
  conversation?: {
@@ -29835,6 +29876,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29835
29876
  durationMs?: number | undefined;
29836
29877
  error?: string | undefined;
29837
29878
  } | undefined;
29879
+ workflowCursor?: {
29880
+ stepId: string;
29881
+ mode: "resume" | "start";
29882
+ } | undefined;
29838
29883
  archived: boolean;
29839
29884
  workflowDef?: {
29840
29885
  name: string;
@@ -29972,7 +30017,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29972
30017
  restarted?: true | undefined;
29973
30018
  } | undefined;
29974
30019
  } | undefined;
29975
- workflowResumeStepId?: string | undefined;
29976
30020
  invalidAsk?: boolean | undefined;
29977
30021
  agentInputs?: {
29978
30022
  conversation?: {
@@ -30906,6 +30950,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
30906
30950
  durationMs?: number | undefined;
30907
30951
  error?: string | undefined;
30908
30952
  } | undefined;
30953
+ workflowCursor?: {
30954
+ stepId: string;
30955
+ mode: "resume" | "start";
30956
+ } | undefined;
30909
30957
  archived: boolean;
30910
30958
  workflowDef?: {
30911
30959
  name: string;
@@ -31116,7 +31164,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
31116
31164
  restarted?: true | undefined;
31117
31165
  } | undefined;
31118
31166
  } | undefined;
31119
- workflowResumeStepId?: string | undefined;
31167
+ workflowCursor?: {
31168
+ stepId: string;
31169
+ mode: "resume" | "start";
31170
+ } | undefined;
31120
31171
  invalidAsk?: boolean | undefined;
31121
31172
  delegation?: {
31122
31173
  role: "invalid";
@@ -32315,7 +32366,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
32315
32366
  restarted?: true | undefined;
32316
32367
  } | undefined;
32317
32368
  } | undefined;
32318
- workflowResumeStepId?: string | undefined;
32319
32369
  invalidAsk?: boolean | undefined;
32320
32370
  agentInputs?: {
32321
32371
  conversation?: {
@@ -33249,6 +33299,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33249
33299
  durationMs?: number | undefined;
33250
33300
  error?: string | undefined;
33251
33301
  } | undefined;
33302
+ workflowCursor?: {
33303
+ stepId: string;
33304
+ mode: "resume" | "start";
33305
+ } | undefined;
33252
33306
  archived: boolean;
33253
33307
  workflowDef?: {
33254
33308
  name: string;
@@ -33975,20 +34029,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33975
34029
  } & {
33976
34030
  "/runs/:id/handoff": {
33977
34031
  $get: {
33978
- output: {
33979
- error: string;
33980
- };
33981
- outputFormat: "json";
33982
- status: 404;
34032
+ output: string;
34033
+ outputFormat: "text";
34034
+ status: 200;
33983
34035
  input: {
33984
34036
  param: {
33985
34037
  id: string;
33986
34038
  };
33987
34039
  };
33988
34040
  } | {
33989
- output: string;
33990
- outputFormat: "text";
33991
- status: 200;
34041
+ output: {
34042
+ error: string;
34043
+ };
34044
+ outputFormat: "json";
34045
+ status: 404;
33992
34046
  input: {
33993
34047
  param: {
33994
34048
  id: string;
@@ -34026,20 +34080,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34026
34080
  } & {
34027
34081
  "/runs/:id/diff": {
34028
34082
  $get: {
34029
- output: {
34030
- error: string;
34031
- };
34032
- outputFormat: "json";
34033
- status: 404 | 409;
34083
+ output: string;
34084
+ outputFormat: "text";
34085
+ status: import("hono/utils/http-status").ContentfulStatusCode;
34034
34086
  input: {
34035
34087
  param: {
34036
34088
  id: string;
34037
34089
  };
34038
34090
  };
34039
34091
  } | {
34040
- output: string;
34041
- outputFormat: "text";
34042
- status: import("hono/utils/http-status").ContentfulStatusCode;
34092
+ output: {
34093
+ error: string;
34094
+ };
34095
+ outputFormat: "json";
34096
+ status: 404 | 409;
34043
34097
  input: {
34044
34098
  param: {
34045
34099
  id: string;
@@ -125,7 +125,7 @@ import { readAccountIdentity } from '../agent-config/account-identity.js';
125
125
  import { defaultWorkspaceConfig, loadWorkspaceConfig, mergeWriteWorkspaceConfig, effectiveComposerDefault, } from '../workspace/config.js';
126
126
  import { CONTROL_CHARS_RE, DEFAULT_AGENT_ACCOUNT_ID, defaultAgentAccountStore, isAbsoluteConfigDir, loadAgentAccounts, mergeWriteAgentAccounts, } from '../workspace/agent-accounts.js';
127
127
  import { defaultAgentProfile, listAgentProfiles, namedAccountUnavailable, ompProfileDirError, profileDirState, resolveStoredProfile, sameProfileDir, } from '../workspace/agent-profiles.js';
128
- import { PROFILE_CAPABLE_PROVIDERS, profileAgentDir, profileEnv, supportsProfiles } from '../core/agent-profiles.js';
128
+ import { PROFILE_CAPABLE_PROVIDERS, profileAgentDir, profileEnv, selectsByProfileName, supportsProfiles } from '../core/agent-profiles.js';
129
129
  import { quoteExecutable, shellQuote, withEnvPrefix } from '../core/shell-env.js';
130
130
  import { resolveCursorExecutable } from '../core/cursor-model-catalog.js';
131
131
  import { resolveOmpExecutable } from '../core/omp-model-catalog.js';
@@ -135,7 +135,7 @@ import { checkoutRepo } from './checkout.js';
135
135
  import { createProject, listGithubOwners } from './create-project.js';
136
136
  import { createWorkspaceRunFeed } from './workspace-run-feed.js';
137
137
  import { mergeWriteProjectUiState, readUiState } from '../ui-state.js';
138
- import { agentHomePaths, expandTilde } from '../paths.js';
138
+ import { AGENT_HOME_SLOT, agentHomePaths, expandTilde } from '../paths.js';
139
139
  import { isLoopbackHostHeader, normalizeHostname, resolveCapabilities } from './capabilities.js';
140
140
  import { browseDirectory, isInsideBrowseRoot, isLexicallyInsideBrowseRoot, resolveBrowseRoot } from './fs-browse.js';
141
141
  import { resolveForge, forgeWebRoot, resolveForgeRoot, GithubPrNotFoundError, GH_CHECKS_MAX, GH_REF_STATUS_MAX } from './forge/index.js';
@@ -1069,15 +1069,11 @@ export function createApp(deps) {
1069
1069
  * ids opaque and stable so the open route below never takes a path from the client.
1070
1070
  */
1071
1071
  const accountFiles = async (profile) => {
1072
+ // A discovered default is already an agent dir; a named account may keep its config in a
1073
+ // subfolder of its folder (omp's `agent/`).
1072
1074
  const home = {
1073
1075
  ...agentHomePaths(),
1074
- ...(profile.provider === 'claude' ? { claude: profile.path } : {}),
1075
- ...(profile.provider === 'codex' ? { codex: profile.path } : {}),
1076
- ...(profile.provider === 'opencode' ? { opencodeConfig: profile.path } : {}),
1077
- ...(profile.provider === 'pi' ? { pi: profile.path } : {}),
1078
- // The discovered omp account is already an agent dir; a named one is a profile folder that
1079
- // keeps its config in `agent/`.
1080
- ...(profile.provider === 'omp' ? { omp: profile.isDefault ? profile.path : profileAgentDir('omp', profile.path) } : {}),
1076
+ [AGENT_HOME_SLOT[profile.provider]]: profile.isDefault ? profile.path : profileAgentDir(profile.provider, profile.path),
1081
1077
  };
1082
1078
  const defs = listConfigFiles().filter((def) => def.scope === 'user' && def.runners.includes(profile.provider));
1083
1079
  return Promise.all(defs.map(async (def) => {
@@ -1152,7 +1148,7 @@ export function createApp(deps) {
1152
1148
  if (!isAbsoluteConfigDir(expanded))
1153
1149
  return `folder must be an absolute path: ${configDir}`;
1154
1150
  // An omp account is selected by profile NAME, so only a folder in omp's profiles dir can be one.
1155
- if (provider === 'omp')
1151
+ if (selectsByProfileName(provider))
1156
1152
  return ompProfileDirError(expanded);
1157
1153
  return null;
1158
1154
  };