@hearsay-tools/squawk 0.18.0-pr3884.7312 → 0.18.0-pr3885.7316

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 +3 -2
  2. package/dist/contract/index.d.ts +1 -0
  3. package/dist/contract/index.js +1584 -1578
  4. package/dist/contract/queued-messages.d.ts +31 -0
  5. package/dist/contract/runs.d.ts +3 -29
  6. package/dist/delegation/conversations.d.ts +2 -0
  7. package/dist/delegation/transport.d.ts +4 -4
  8. package/dist/runs/run-exits.d.ts +6 -0
  9. package/dist/runs/store.d.ts +2 -0
  10. package/dist/runs/store.js +2 -1
  11. package/dist/runs/store.js.map +1 -1
  12. package/dist/server/reports-api.d.ts +2 -2
  13. package/dist/server/server.d.ts +18 -0
  14. package/dist/workflows/continuation-admission.d.ts +3 -1
  15. package/dist/workflows/continuation-admission.js +4 -2
  16. package/dist/workflows/continuation-admission.js.map +1 -1
  17. package/dist/workflows/run/continuation-acceptance.js +1 -1
  18. package/dist/workflows/run/continuation-acceptance.js.map +1 -1
  19. package/dist/workflows/run/launch-read-resolver.js +20 -8
  20. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  21. package/dist/workflows/run/prompts.d.ts +3 -0
  22. package/dist/workflows/run/prompts.js +11 -5
  23. package/dist/workflows/run/prompts.js.map +1 -1
  24. package/dist/workflows/run/wait-engine.d.ts +73 -72
  25. package/package.json +4 -4
  26. package/scripts/mock-nudge.mjs +3 -1
  27. package/web/dist/assets/{activity-motion-YMvJpfC8.js → activity-motion-Ctg50eXm.js} +1 -1
  28. package/web/dist/assets/{activity-route-C3nuQQR-.js → activity-route-CIrBgiGz.js} +1 -1
  29. package/web/dist/assets/{agent-accounts-C1IZE0uf.js → agent-accounts-Bxqcccek.js} +1 -1
  30. package/web/dist/assets/attention-D15PtJnc.js +1 -0
  31. package/web/dist/assets/{commit-diff-panel-B78xqBBB.js → commit-diff-panel-OWVorWVw.js} +1 -1
  32. package/web/dist/assets/{diff-CuoNLz3Q.js → diff-BvBs4Gxp.js} +2 -2
  33. package/web/dist/assets/{diff-view-Dxt-xGXY.js → diff-view-CSrp8jyv.js} +1 -1
  34. package/web/dist/assets/{file-preview-D6fgR7rc.js → file-preview-B6mM_dbK.js} +1 -1
  35. package/web/dist/assets/{git-toolbar-B4gNpVK8.js → git-toolbar-CvG0gvVf.js} +1 -1
  36. package/web/dist/assets/{github-D4IdDmEF.js → github-Dra1J1Oi.js} +1 -1
  37. package/web/dist/assets/{global-activity-route-BQW6XCBZ.js → global-activity-route-8H2KkpXH.js} +1 -1
  38. package/web/dist/assets/{index-CZSDjjxd.js → index-aCWAgBiE.js} +4 -4
  39. package/web/dist/assets/{markdown-CFpzsarc.js → markdown-D4ZGAuSC.js} +1 -1
  40. package/web/dist/assets/{picker-pill-AQuDoa6t.js → picker-pill-B6QPSEUZ.js} +1 -1
  41. package/web/dist/assets/{preview-pane-connected-Divki4iS.js → preview-pane-connected-Bhb5eJ5Z.js} +1 -1
  42. package/web/dist/assets/{project-router-CuXiyyHq.js → project-router-0DHZ1s8l.js} +1 -1
  43. package/web/dist/assets/project-scope-context-qMCI2vmR.js +4 -0
  44. package/web/dist/assets/{prompt-template-menu-DttDghYr.js → prompt-template-menu-_WK10gNW.js} +1 -1
  45. package/web/dist/assets/{queries-M7QM2Z_B.js → queries-DFchmPfl.js} +1 -1
  46. package/web/dist/assets/{reference-chip-C2uR5keT.js → reference-chip-BJe4UIpL.js} +1 -1
  47. package/web/dist/assets/{repo-git-Dl6O3hGA.js → repo-git-DAhDX80l.js} +1 -1
  48. package/web/dist/assets/{report-reader-MmUDUBB6.js → report-reader-DsYm5b9J.js} +1 -1
  49. package/web/dist/assets/{reports-D5N5f1oD.js → reports-BosE8lj8.js} +1 -1
  50. package/web/dist/assets/{run-header-CWSg_ZYo.js → run-header-DBbM_xNy.js} +1 -1
  51. package/web/dist/assets/{skills-UhbdEQES.js → skills-BHAGfLNq.js} +1 -1
  52. package/web/dist/assets/{tab-link-Bz7Tn_PW.js → tab-link-lVQ2eOeD.js} +1 -1
  53. package/web/dist/assets/{task-changes-Ciq3wQdC.js → task-changes-Jg7Xzrfa.js} +1 -1
  54. package/web/dist/assets/{task-commits-BYZEw7j8.js → task-commits-DecgF6zx.js} +1 -1
  55. package/web/dist/assets/{task-files-zvZu7yvk.js → task-files-D7N-vFyz.js} +1 -1
  56. package/web/dist/assets/{task-github-item-BYzml2gD.js → task-github-item-C8fBdico.js} +1 -1
  57. package/web/dist/assets/{task-thread-DSdn2fYx.js → task-thread-DifTEOeK.js} +1 -1
  58. package/web/dist/assets/{thread-state-BU_1o8aR.js → thread-state-i29D-4yN.js} +1 -1
  59. package/web/dist/assets/{use-desktop-Dc0-ZSdE.js → use-desktop-CdWXLHne.js} +1 -1
  60. package/web/dist/assets/{use-hand-to-agent-state-C8jp_mTB.js → use-hand-to-agent-state-CPxNdj4_.js} +1 -1
  61. package/web/dist/assets/{useInfiniteQuery-BzvShKMo.js → useInfiniteQuery-Bn5hIzUm.js} +1 -1
  62. package/web/dist/assets/useQuery-DjkTL27e.js +1 -0
  63. package/web/dist/assets/{workflows-BdBF5bnk.js → workflows-CflCv_rB.js} +1 -1
  64. package/web/dist/assets/{ws-BQRkvdhO.js → ws-DfKMAUWf.js} +1 -1
  65. package/web/dist/index.html +13 -13
  66. package/web/dist/assets/attention-SAsrxB3a.js +0 -1
  67. package/web/dist/assets/project-scope-context-TjMvUo_E.js +0 -4
  68. package/web/dist/assets/useQuery-BJvp3XYr.js +0 -1
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ /** One prompt message stacked onto a run while it waits for a free agent slot (open-mercato/cezar#472). */
3
+ export declare const queuedMessageSchema: z.ZodObject<{
4
+ replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
5
+ id: z.ZodString;
6
+ text: z.ZodString;
7
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ createdAt: z.ZodString;
9
+ }, z.core.$strip>;
10
+ export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
11
+ /** Optional for legacy records; only explicit human origin can acknowledge a delegated ask. */
12
+ export declare const continuationMessageSchema: z.ZodObject<{
13
+ replayAfterOpen: z.ZodOptional<z.ZodLiteral<true>>;
14
+ id: z.ZodString;
15
+ text: z.ZodString;
16
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ createdAt: z.ZodString;
18
+ origin: z.ZodOptional<z.ZodEnum<{
19
+ human: "human";
20
+ lifecycle: "lifecycle";
21
+ }>>;
22
+ agentInputId: z.ZodOptional<z.ZodUUID>;
23
+ task: z.ZodOptional<z.ZodString>;
24
+ resumeContext: z.ZodOptional<z.ZodObject<{
25
+ failure: z.ZodOptional<z.ZodObject<{
26
+ stepId: z.ZodOptional<z.ZodString>;
27
+ error: z.ZodString;
28
+ }, z.core.$strip>>;
29
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
@@ -108,35 +108,6 @@ 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>;
140
111
  /** One aggregated sample of a run's live process tree (`src/core/process-usage.ts`). */
141
112
  export declare const processUsageSchema: z.ZodObject<{
142
113
  cpuPct: z.ZodNumber;
@@ -244,6 +215,7 @@ export declare const runRecordSchema: z.ZodObject<{
244
215
  lifecycle: "lifecycle";
245
216
  }>>;
246
217
  agentInputId: z.ZodOptional<z.ZodUUID>;
218
+ task: z.ZodOptional<z.ZodString>;
247
219
  resumeContext: z.ZodOptional<z.ZodObject<{
248
220
  failure: z.ZodOptional<z.ZodObject<{
249
221
  stepId: z.ZodOptional<z.ZodString>;
@@ -2194,6 +2166,7 @@ export declare const apiRunSchema: z.ZodObject<{
2194
2166
  lifecycle: "lifecycle";
2195
2167
  }>>;
2196
2168
  agentInputId: z.ZodOptional<z.ZodUUID>;
2169
+ task: z.ZodOptional<z.ZodString>;
2197
2170
  resumeContext: z.ZodOptional<z.ZodObject<{
2198
2171
  failure: z.ZodOptional<z.ZodObject<{
2199
2172
  stepId: z.ZodOptional<z.ZodString>;
@@ -4915,6 +4888,7 @@ export declare const createRunResponseSchema: z.ZodObject<{
4915
4888
  lifecycle: "lifecycle";
4916
4889
  }>>;
4917
4890
  agentInputId: z.ZodOptional<z.ZodUUID>;
4891
+ task: z.ZodOptional<z.ZodString>;
4918
4892
  resumeContext: z.ZodOptional<z.ZodObject<{
4919
4893
  failure: z.ZodOptional<z.ZodObject<{
4920
4894
  stepId: z.ZodOptional<z.ZodString>;
@@ -52,6 +52,7 @@ 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;
55
56
  resumeContext?: {
56
57
  failure?: {
57
58
  stepId?: string | undefined;
@@ -1118,6 +1119,7 @@ export declare function peerPair(sender: RunRecord | undefined, recipient: RunRe
1118
1119
  createdAt: string;
1119
1120
  origin?: "human" | "lifecycle" | undefined;
1120
1121
  agentInputId?: string | undefined;
1122
+ task?: string | undefined;
1121
1123
  resumeContext?: {
1122
1124
  failure?: {
1123
1125
  stepId?: string | undefined;
@@ -196,13 +196,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
196
196
  status: 200;
197
197
  input: {
198
198
  json: {
199
- workerIds: string[];
200
- timeoutSeconds?: number | undefined;
201
- mode?: "all" | "any" | "one" | undefined;
202
- } | {
203
199
  requestIds: string[];
204
200
  mode?: "all" | "any" | "one" | undefined;
205
201
  timeoutSeconds?: number | undefined;
202
+ } | {
203
+ workerIds: string[];
204
+ timeoutSeconds?: number | undefined;
205
+ mode?: "all" | "any" | "one" | undefined;
206
206
  } | {
207
207
  peerIds: string[];
208
208
  timeoutSeconds?: number | undefined;
@@ -149,6 +149,7 @@ export declare const RUN_EXITS: {
149
149
  createdAt: string;
150
150
  origin?: "human" | "lifecycle" | undefined;
151
151
  agentInputId?: string | undefined;
152
+ task?: string | undefined;
152
153
  resumeContext?: {
153
154
  failure?: {
154
155
  stepId?: string | undefined;
@@ -864,6 +865,7 @@ export declare const RUN_EXITS: {
864
865
  createdAt: string;
865
866
  origin?: "human" | "lifecycle" | undefined;
866
867
  agentInputId?: string | undefined;
868
+ task?: string | undefined;
867
869
  resumeContext?: {
868
870
  failure?: {
869
871
  stepId?: string | undefined;
@@ -1620,6 +1622,7 @@ export declare const RUN_EXITS: {
1620
1622
  createdAt: string;
1621
1623
  origin?: "human" | "lifecycle" | undefined;
1622
1624
  agentInputId?: string | undefined;
1625
+ task?: string | undefined;
1623
1626
  resumeContext?: {
1624
1627
  failure?: {
1625
1628
  stepId?: string | undefined;
@@ -2685,6 +2688,7 @@ export declare const RUN_EXITS: {
2685
2688
  createdAt: string;
2686
2689
  origin?: "human" | "lifecycle" | undefined;
2687
2690
  agentInputId?: string | undefined;
2691
+ task?: string | undefined;
2688
2692
  resumeContext?: {
2689
2693
  failure?: {
2690
2694
  stepId?: string | undefined;
@@ -3764,6 +3768,7 @@ export declare const RUN_EXITS: {
3764
3768
  createdAt: string;
3765
3769
  origin?: "human" | "lifecycle" | undefined;
3766
3770
  agentInputId?: string | undefined;
3771
+ task?: string | undefined;
3767
3772
  resumeContext?: {
3768
3773
  failure?: {
3769
3774
  stepId?: string | undefined;
@@ -4837,6 +4842,7 @@ export declare const RUN_EXITS: {
4837
4842
  createdAt: string;
4838
4843
  origin?: "human" | "lifecycle" | undefined;
4839
4844
  agentInputId?: string | undefined;
4845
+ task?: string | undefined;
4840
4846
  resumeContext?: {
4841
4847
  failure?: {
4842
4848
  stepId?: string | undefined;
@@ -109,6 +109,7 @@ 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>;
112
113
  resumeContext: z.ZodOptional<z.ZodObject<{
113
114
  failure: z.ZodOptional<z.ZodObject<{
114
115
  stepId: z.ZodOptional<z.ZodString>;
@@ -2053,6 +2054,7 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2053
2054
  createdAt: string;
2054
2055
  origin?: "human" | "lifecycle" | undefined;
2055
2056
  agentInputId?: string | undefined;
2057
+ task?: string | undefined;
2056
2058
  resumeContext?: {
2057
2059
  failure?: {
2058
2060
  stepId?: string | undefined;
@@ -25,7 +25,8 @@ 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, queuedMessageSchema, toRunSummary, runRecordSchema as contractRunRecordSchema, runPullRequestSchema, mergedPullRequestSchema, } 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';
29
30
  import { previewServerSchema } from '../contract/index.js';
30
31
  import { isUsageLimitHold, waitSchema, } from '../contract/index.js';
31
32
  import { UNREAD_RUN_RULE, SWEEPABLE_RUN_RULE, RETENTION_RUN_RULE, REFERENCED_RUN_RULE } from '../contract/index.js';