@hearsay-tools/squawk 0.18.0-pr3885.7316 → 0.18.0-pr3886.7318

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 (68) hide show
  1. package/README.md +2 -3
  2. package/dist/contract/index.d.ts +0 -1
  3. package/dist/contract/index.js +1578 -1584
  4. package/dist/contract/runs.d.ts +29 -3
  5. package/dist/delegation/conversations.d.ts +0 -2
  6. package/dist/delegation/routes.d.ts +62 -62
  7. package/dist/delegation/transport.d.ts +4 -4
  8. package/dist/runs/run-exits.d.ts +0 -6
  9. package/dist/runs/store.d.ts +0 -2
  10. package/dist/runs/store.js +1 -2
  11. package/dist/runs/store.js.map +1 -1
  12. package/dist/server/server.d.ts +0 -18
  13. package/dist/workflows/continuation-admission.d.ts +1 -3
  14. package/dist/workflows/continuation-admission.js +2 -4
  15. package/dist/workflows/continuation-admission.js.map +1 -1
  16. package/dist/workflows/run/continuation-acceptance.js +1 -1
  17. package/dist/workflows/run/continuation-acceptance.js.map +1 -1
  18. package/dist/workflows/run/launch-read-resolver.js +8 -20
  19. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  20. package/dist/workflows/run/prompts.d.ts +0 -3
  21. package/dist/workflows/run/prompts.js +5 -11
  22. package/dist/workflows/run/prompts.js.map +1 -1
  23. package/dist/workflows/run/wait-engine.d.ts +72 -73
  24. package/package.json +4 -4
  25. package/scripts/mock-nudge.mjs +1 -3
  26. package/web/dist/assets/{activity-motion-Ctg50eXm.js → activity-motion-YMvJpfC8.js} +1 -1
  27. package/web/dist/assets/{activity-route-CIrBgiGz.js → activity-route-C3nuQQR-.js} +1 -1
  28. package/web/dist/assets/{agent-accounts-Bxqcccek.js → agent-accounts-C1IZE0uf.js} +1 -1
  29. package/web/dist/assets/attention-SAsrxB3a.js +1 -0
  30. package/web/dist/assets/{commit-diff-panel-OWVorWVw.js → commit-diff-panel-B78xqBBB.js} +1 -1
  31. package/web/dist/assets/{diff-BvBs4Gxp.js → diff-CuoNLz3Q.js} +2 -2
  32. package/web/dist/assets/{diff-view-CSrp8jyv.js → diff-view-Dxt-xGXY.js} +1 -1
  33. package/web/dist/assets/{file-preview-B6mM_dbK.js → file-preview-D6fgR7rc.js} +1 -1
  34. package/web/dist/assets/{git-toolbar-CvG0gvVf.js → git-toolbar-B4gNpVK8.js} +1 -1
  35. package/web/dist/assets/{github-Dra1J1Oi.js → github-D4IdDmEF.js} +1 -1
  36. package/web/dist/assets/{global-activity-route-8H2KkpXH.js → global-activity-route-BQW6XCBZ.js} +1 -1
  37. package/web/dist/assets/{index-aCWAgBiE.js → index-CZSDjjxd.js} +4 -4
  38. package/web/dist/assets/{markdown-D4ZGAuSC.js → markdown-CFpzsarc.js} +1 -1
  39. package/web/dist/assets/{picker-pill-B6QPSEUZ.js → picker-pill-AQuDoa6t.js} +1 -1
  40. package/web/dist/assets/{preview-pane-connected-Bhb5eJ5Z.js → preview-pane-connected-Divki4iS.js} +1 -1
  41. package/web/dist/assets/{project-router-0DHZ1s8l.js → project-router-CuXiyyHq.js} +1 -1
  42. package/web/dist/assets/project-scope-context-TjMvUo_E.js +4 -0
  43. package/web/dist/assets/{prompt-template-menu-_WK10gNW.js → prompt-template-menu-DttDghYr.js} +1 -1
  44. package/web/dist/assets/{queries-DFchmPfl.js → queries-M7QM2Z_B.js} +1 -1
  45. package/web/dist/assets/{reference-chip-BJe4UIpL.js → reference-chip-C2uR5keT.js} +1 -1
  46. package/web/dist/assets/{repo-git-DAhDX80l.js → repo-git-Dl6O3hGA.js} +1 -1
  47. package/web/dist/assets/{report-reader-DsYm5b9J.js → report-reader-MmUDUBB6.js} +1 -1
  48. package/web/dist/assets/{reports-BosE8lj8.js → reports-D5N5f1oD.js} +1 -1
  49. package/web/dist/assets/{run-header-DBbM_xNy.js → run-header-CWSg_ZYo.js} +1 -1
  50. package/web/dist/assets/{skills-BHAGfLNq.js → skills-UhbdEQES.js} +1 -1
  51. package/web/dist/assets/{tab-link-lVQ2eOeD.js → tab-link-Bz7Tn_PW.js} +1 -1
  52. package/web/dist/assets/{task-changes-Jg7Xzrfa.js → task-changes-Ciq3wQdC.js} +1 -1
  53. package/web/dist/assets/{task-commits-DecgF6zx.js → task-commits-BYZEw7j8.js} +1 -1
  54. package/web/dist/assets/{task-files-D7N-vFyz.js → task-files-zvZu7yvk.js} +1 -1
  55. package/web/dist/assets/{task-github-item-C8fBdico.js → task-github-item-BYzml2gD.js} +1 -1
  56. package/web/dist/assets/{task-thread-DifTEOeK.js → task-thread-DSdn2fYx.js} +1 -1
  57. package/web/dist/assets/{thread-state-i29D-4yN.js → thread-state-BU_1o8aR.js} +1 -1
  58. package/web/dist/assets/{use-desktop-CdWXLHne.js → use-desktop-Dc0-ZSdE.js} +1 -1
  59. package/web/dist/assets/{use-hand-to-agent-state-CPxNdj4_.js → use-hand-to-agent-state-C8jp_mTB.js} +1 -1
  60. package/web/dist/assets/{useInfiniteQuery-Bn5hIzUm.js → useInfiniteQuery-BzvShKMo.js} +1 -1
  61. package/web/dist/assets/useQuery-BJvp3XYr.js +1 -0
  62. package/web/dist/assets/{workflows-CflCv_rB.js → workflows-BdBF5bnk.js} +1 -1
  63. package/web/dist/assets/{ws-DfKMAUWf.js → ws-BQRkvdhO.js} +1 -1
  64. package/web/dist/index.html +13 -13
  65. package/dist/contract/queued-messages.d.ts +0 -31
  66. package/web/dist/assets/attention-D15PtJnc.js +0 -1
  67. package/web/dist/assets/project-scope-context-qMCI2vmR.js +0 -4
  68. package/web/dist/assets/useQuery-DjkTL27e.js +0 -1
@@ -108,6 +108,35 @@ export declare const diffStatSchema: z.ZodObject<{
108
108
  repointed: z.ZodOptional<z.ZodBoolean>;
109
109
  }, z.core.$strip>;
110
110
  export type DiffStat = z.infer<typeof diffStatSchema>;
111
+ /** One prompt message stacked onto a run while it waits for a free agent slot (#472). */
112
+ export declare const queuedMessageSchema: z.ZodObject<{
113
+ replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
114
+ id: z.ZodString;
115
+ text: z.ZodString;
116
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ createdAt: z.ZodString;
118
+ }, z.core.$strip>;
119
+ export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
120
+ /** Optional for legacy records; only explicit human origin can acknowledge a delegated ask. */
121
+ export declare const continuationMessageSchema: z.ZodObject<{
122
+ replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
123
+ id: z.ZodString;
124
+ text: z.ZodString;
125
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ createdAt: z.ZodString;
127
+ origin: z.ZodOptional<z.ZodEnum<{
128
+ human: "human";
129
+ lifecycle: "lifecycle";
130
+ }>>;
131
+ agentInputId: z.ZodOptional<z.ZodUUID>;
132
+ resumeContext: z.ZodOptional<z.ZodObject<{
133
+ failure: z.ZodOptional<z.ZodObject<{
134
+ stepId: z.ZodOptional<z.ZodString>;
135
+ error: z.ZodString;
136
+ }, z.core.$strip>>;
137
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>;
111
140
  /** One aggregated sample of a run's live process tree (`src/core/process-usage.ts`). */
112
141
  export declare const processUsageSchema: z.ZodObject<{
113
142
  cpuPct: z.ZodNumber;
@@ -215,7 +244,6 @@ export declare const runRecordSchema: z.ZodObject<{
215
244
  lifecycle: "lifecycle";
216
245
  }>>;
217
246
  agentInputId: z.ZodOptional<z.ZodUUID>;
218
- task: z.ZodOptional<z.ZodString>;
219
247
  resumeContext: z.ZodOptional<z.ZodObject<{
220
248
  failure: z.ZodOptional<z.ZodObject<{
221
249
  stepId: z.ZodOptional<z.ZodString>;
@@ -2166,7 +2194,6 @@ export declare const apiRunSchema: z.ZodObject<{
2166
2194
  lifecycle: "lifecycle";
2167
2195
  }>>;
2168
2196
  agentInputId: z.ZodOptional<z.ZodUUID>;
2169
- task: z.ZodOptional<z.ZodString>;
2170
2197
  resumeContext: z.ZodOptional<z.ZodObject<{
2171
2198
  failure: z.ZodOptional<z.ZodObject<{
2172
2199
  stepId: z.ZodOptional<z.ZodString>;
@@ -4888,7 +4915,6 @@ export declare const createRunResponseSchema: z.ZodObject<{
4888
4915
  lifecycle: "lifecycle";
4889
4916
  }>>;
4890
4917
  agentInputId: z.ZodOptional<z.ZodUUID>;
4891
- task: z.ZodOptional<z.ZodString>;
4892
4918
  resumeContext: z.ZodOptional<z.ZodObject<{
4893
4919
  failure: z.ZodOptional<z.ZodObject<{
4894
4920
  stepId: z.ZodOptional<z.ZodString>;
@@ -52,7 +52,6 @@ export declare function peerPair(sender: RunRecord | undefined, recipient: RunRe
52
52
  createdAt: string;
53
53
  origin?: "human" | "lifecycle" | undefined;
54
54
  agentInputId?: string | undefined;
55
- task?: string | undefined;
56
55
  resumeContext?: {
57
56
  failure?: {
58
57
  stepId?: string | undefined;
@@ -1119,7 +1118,6 @@ export declare function peerPair(sender: RunRecord | undefined, recipient: RunRe
1119
1118
  createdAt: string;
1120
1119
  origin?: "human" | "lifecycle" | undefined;
1121
1120
  agentInputId?: string | undefined;
1122
- task?: string | undefined;
1123
1121
  resumeContext?: {
1124
1122
  failure?: {
1125
1123
  stepId?: string | undefined;
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
- output: {
31
- error: string;
32
- code?: "invalid_input" | undefined;
33
- };
34
- outputFormat: "json";
35
- status: 400;
36
- input: {
37
- query: {
38
- offset?: string | undefined;
39
- };
40
- };
41
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -76,6 +64,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
76
64
  offset?: string | undefined;
77
65
  };
78
66
  };
67
+ } | {
68
+ output: {
69
+ error: string;
70
+ code?: "invalid_input" | undefined;
71
+ };
72
+ outputFormat: "json";
73
+ status: 400;
74
+ input: {
75
+ query: {
76
+ offset?: string | undefined;
77
+ };
78
+ };
79
79
  };
80
80
  };
81
81
  } & {
@@ -613,18 +613,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
613
613
  } & {
614
614
  "/:workerId": {
615
615
  $get: {
616
- output: {
617
- error: string;
618
- code?: "invalid_input" | undefined;
619
- };
620
- outputFormat: "json";
621
- status: 400;
622
- input: {
623
- param: {
624
- workerId: string;
625
- };
626
- };
627
- } | {
628
616
  output: {
629
617
  workerId: string;
630
618
  parentRunId: string;
@@ -732,11 +720,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
732
720
  workerId: string;
733
721
  };
734
722
  };
735
- };
736
- };
737
- } & {
738
- "/:workerId/collect": {
739
- $post: {
723
+ } | {
740
724
  output: {
741
725
  error: string;
742
726
  code?: "invalid_input" | undefined;
@@ -747,10 +731,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
747
731
  param: {
748
732
  workerId: string;
749
733
  };
750
- } & {
751
- json: Record<string, never>;
752
734
  };
753
- } | {
735
+ };
736
+ };
737
+ } & {
738
+ "/:workerId/collect": {
739
+ $post: {
754
740
  output: {
755
741
  workerId: string;
756
742
  parentRunId: string;
@@ -852,11 +838,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
852
838
  } & {
853
839
  json: Record<string, never>;
854
840
  };
855
- };
856
- };
857
- } & {
858
- "/:workerId/steer": {
859
- $post: {
841
+ } | {
860
842
  output: {
861
843
  error: string;
862
844
  code?: "invalid_input" | undefined;
@@ -868,11 +850,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
868
850
  workerId: string;
869
851
  };
870
852
  } & {
871
- json: {
872
- text: string;
873
- };
853
+ json: Record<string, never>;
874
854
  };
875
- } | {
855
+ };
856
+ };
857
+ } & {
858
+ "/:workerId/steer": {
859
+ $post: {
876
860
  output: {
877
861
  workerId: string;
878
862
  state: "delivered" | "queued";
@@ -888,11 +872,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
888
872
  text: string;
889
873
  };
890
874
  };
891
- };
892
- };
893
- } & {
894
- "/:workerId/stop": {
895
- $post: {
875
+ } | {
896
876
  output: {
897
877
  error: string;
898
878
  code?: "invalid_input" | undefined;
@@ -904,9 +884,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
904
884
  workerId: string;
905
885
  };
906
886
  } & {
907
- json: Record<string, never>;
887
+ json: {
888
+ text: string;
889
+ };
908
890
  };
909
- } | {
891
+ };
892
+ };
893
+ } & {
894
+ "/:workerId/stop": {
895
+ $post: {
910
896
  output: {
911
897
  workerId: string;
912
898
  state: "stopping" | "terminated";
@@ -920,11 +906,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
920
906
  } & {
921
907
  json: Record<string, never>;
922
908
  };
923
- };
924
- };
925
- } & {
926
- "/:workerId/destroy": {
927
- $post: {
909
+ } | {
928
910
  output: {
929
911
  error: string;
930
912
  code?: "invalid_input" | undefined;
@@ -938,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
938
920
  } & {
939
921
  json: Record<string, never>;
940
922
  };
941
- } | {
923
+ };
924
+ };
925
+ } & {
926
+ "/:workerId/destroy": {
927
+ $post: {
942
928
  output: {
943
929
  workerId: string;
944
930
  state: "complete" | "incomplete";
@@ -961,6 +947,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
961
947
  } & {
962
948
  json: Record<string, never>;
963
949
  };
950
+ } | {
951
+ output: {
952
+ error: string;
953
+ code?: "invalid_input" | undefined;
954
+ };
955
+ outputFormat: "json";
956
+ status: 400;
957
+ input: {
958
+ param: {
959
+ workerId: string;
960
+ };
961
+ } & {
962
+ json: Record<string, never>;
963
+ };
964
964
  } | {
965
965
  output: {
966
966
  workerId: string;
@@ -990,11 +990,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
990
990
  "/:workerId/diff": {
991
991
  $get: {
992
992
  output: {
993
- error: string;
994
- code?: "invalid_input" | undefined;
993
+ workerId: string;
994
+ baselineSha: string;
995
+ diff: string;
996
+ truncated: boolean;
995
997
  };
996
998
  outputFormat: "json";
997
- status: 400;
999
+ status: 200;
998
1000
  input: {
999
1001
  param: {
1000
1002
  workerId: string;
@@ -1002,13 +1004,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1002
1004
  };
1003
1005
  } | {
1004
1006
  output: {
1005
- workerId: string;
1006
- baselineSha: string;
1007
- diff: string;
1008
- truncated: boolean;
1007
+ error: string;
1008
+ code?: "invalid_input" | undefined;
1009
1009
  };
1010
1010
  outputFormat: "json";
1011
- status: 200;
1011
+ status: 400;
1012
1012
  input: {
1013
1013
  param: {
1014
1014
  workerId: string;
@@ -196,13 +196,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
196
196
  status: 200;
197
197
  input: {
198
198
  json: {
199
- requestIds: string[];
200
- mode?: "all" | "any" | "one" | undefined;
201
- timeoutSeconds?: number | undefined;
202
- } | {
203
199
  workerIds: string[];
204
200
  timeoutSeconds?: number | undefined;
205
201
  mode?: "all" | "any" | "one" | undefined;
202
+ } | {
203
+ requestIds: string[];
204
+ mode?: "all" | "any" | "one" | undefined;
205
+ timeoutSeconds?: number | undefined;
206
206
  } | {
207
207
  peerIds: string[];
208
208
  timeoutSeconds?: number | undefined;
@@ -149,7 +149,6 @@ export declare const RUN_EXITS: {
149
149
  createdAt: string;
150
150
  origin?: "human" | "lifecycle" | undefined;
151
151
  agentInputId?: string | undefined;
152
- task?: string | undefined;
153
152
  resumeContext?: {
154
153
  failure?: {
155
154
  stepId?: string | undefined;
@@ -865,7 +864,6 @@ export declare const RUN_EXITS: {
865
864
  createdAt: string;
866
865
  origin?: "human" | "lifecycle" | undefined;
867
866
  agentInputId?: string | undefined;
868
- task?: string | undefined;
869
867
  resumeContext?: {
870
868
  failure?: {
871
869
  stepId?: string | undefined;
@@ -1622,7 +1620,6 @@ export declare const RUN_EXITS: {
1622
1620
  createdAt: string;
1623
1621
  origin?: "human" | "lifecycle" | undefined;
1624
1622
  agentInputId?: string | undefined;
1625
- task?: string | undefined;
1626
1623
  resumeContext?: {
1627
1624
  failure?: {
1628
1625
  stepId?: string | undefined;
@@ -2688,7 +2685,6 @@ export declare const RUN_EXITS: {
2688
2685
  createdAt: string;
2689
2686
  origin?: "human" | "lifecycle" | undefined;
2690
2687
  agentInputId?: string | undefined;
2691
- task?: string | undefined;
2692
2688
  resumeContext?: {
2693
2689
  failure?: {
2694
2690
  stepId?: string | undefined;
@@ -3768,7 +3764,6 @@ export declare const RUN_EXITS: {
3768
3764
  createdAt: string;
3769
3765
  origin?: "human" | "lifecycle" | undefined;
3770
3766
  agentInputId?: string | undefined;
3771
- task?: string | undefined;
3772
3767
  resumeContext?: {
3773
3768
  failure?: {
3774
3769
  stepId?: string | undefined;
@@ -4842,7 +4837,6 @@ export declare const RUN_EXITS: {
4842
4837
  createdAt: string;
4843
4838
  origin?: "human" | "lifecycle" | undefined;
4844
4839
  agentInputId?: string | undefined;
4845
- task?: string | undefined;
4846
4840
  resumeContext?: {
4847
4841
  failure?: {
4848
4842
  stepId?: string | undefined;
@@ -109,7 +109,6 @@ export declare const runRecordSchema: z.ZodObject<{
109
109
  lifecycle: "lifecycle";
110
110
  }>>;
111
111
  agentInputId: z.ZodOptional<z.ZodUUID>;
112
- task: z.ZodOptional<z.ZodString>;
113
112
  resumeContext: z.ZodOptional<z.ZodObject<{
114
113
  failure: z.ZodOptional<z.ZodObject<{
115
114
  stepId: z.ZodOptional<z.ZodString>;
@@ -2054,7 +2053,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2054
2053
  createdAt: string;
2055
2054
  origin?: "human" | "lifecycle" | undefined;
2056
2055
  agentInputId?: string | undefined;
2057
- task?: string | undefined;
2058
2056
  resumeContext?: {
2059
2057
  failure?: {
2060
2058
  stepId?: string | undefined;
@@ -25,8 +25,7 @@ import { scopeRecordSchema } from '../worker-scope/scope.js';
25
25
  import { WorkerScopes } from '../worker-scope/worker-scopes.js';
26
26
  import { readPrivateRecord, writePrivateRecord } from './private-record-file.js';
27
27
  import { agentInputSchema, inboxClaimSchema, delegationStateSchema, workerResultFileSchema, workerDestroyRetrySchema, } from '../contract/index.js';
28
- import { automationIdOf, stepStateSchema as contractStepStateSchema, toRunSummary, runRecordSchema as contractRunRecordSchema, runPullRequestSchema, mergedPullRequestSchema, } from '../contract/index.js';
29
- import { queuedMessageSchema } from '../contract/index.js';
28
+ import { automationIdOf, stepStateSchema as contractStepStateSchema, queuedMessageSchema, toRunSummary, runRecordSchema as contractRunRecordSchema, runPullRequestSchema, mergedPullRequestSchema, } from '../contract/index.js';
30
29
  import { previewServerSchema } from '../contract/index.js';
31
30
  import { isUsageLimitHold, waitSchema, } from '../contract/index.js';
32
31
  import { UNREAD_RUN_RULE, SWEEPABLE_RUN_RULE, RETENTION_RUN_RULE, REFERENCED_RUN_RULE } from '../contract/index.js';