@hearsay-tools/squawk 0.18.0-pr3883.7308 → 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.
- package/README.md +3 -2
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +1584 -1578
- package/dist/contract/queued-messages.d.ts +31 -0
- package/dist/contract/runs.d.ts +3 -29
- package/dist/delegation/conversations.d.ts +2 -0
- package/dist/delegation/transport.d.ts +66 -66
- package/dist/runs/run-exits.d.ts +6 -0
- package/dist/runs/store.d.ts +2 -0
- package/dist/runs/store.js +2 -1
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +1720 -1702
- package/dist/workflows/continuation-admission.d.ts +3 -1
- package/dist/workflows/continuation-admission.js +4 -2
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.js +1 -1
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.js +20 -8
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/prompts.d.ts +3 -0
- package/dist/workflows/run/prompts.js +11 -5
- package/dist/workflows/run/prompts.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +73 -72
- package/package.json +4 -4
- package/scripts/mock-nudge.mjs +3 -1
- package/web/dist/assets/{activity-motion-YMvJpfC8.js → activity-motion-Ctg50eXm.js} +1 -1
- package/web/dist/assets/{activity-route-C3nuQQR-.js → activity-route-CIrBgiGz.js} +1 -1
- package/web/dist/assets/{agent-accounts-C1IZE0uf.js → agent-accounts-Bxqcccek.js} +1 -1
- package/web/dist/assets/attention-D15PtJnc.js +1 -0
- package/web/dist/assets/{commit-diff-panel-B78xqBBB.js → commit-diff-panel-OWVorWVw.js} +1 -1
- package/web/dist/assets/{diff-CuoNLz3Q.js → diff-BvBs4Gxp.js} +2 -2
- package/web/dist/assets/{diff-view-Dxt-xGXY.js → diff-view-CSrp8jyv.js} +1 -1
- package/web/dist/assets/{file-preview-D6fgR7rc.js → file-preview-B6mM_dbK.js} +1 -1
- package/web/dist/assets/{git-toolbar-B4gNpVK8.js → git-toolbar-CvG0gvVf.js} +1 -1
- package/web/dist/assets/{github-D4IdDmEF.js → github-Dra1J1Oi.js} +1 -1
- package/web/dist/assets/{global-activity-route-BQW6XCBZ.js → global-activity-route-8H2KkpXH.js} +1 -1
- package/web/dist/assets/{index-CZSDjjxd.js → index-aCWAgBiE.js} +4 -4
- package/web/dist/assets/{markdown-CFpzsarc.js → markdown-D4ZGAuSC.js} +1 -1
- package/web/dist/assets/{picker-pill-AQuDoa6t.js → picker-pill-B6QPSEUZ.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-Divki4iS.js → preview-pane-connected-Bhb5eJ5Z.js} +1 -1
- package/web/dist/assets/{project-router-CuXiyyHq.js → project-router-0DHZ1s8l.js} +1 -1
- package/web/dist/assets/project-scope-context-qMCI2vmR.js +4 -0
- package/web/dist/assets/{prompt-template-menu-DttDghYr.js → prompt-template-menu-_WK10gNW.js} +1 -1
- package/web/dist/assets/{queries-M7QM2Z_B.js → queries-DFchmPfl.js} +1 -1
- package/web/dist/assets/{reference-chip-C2uR5keT.js → reference-chip-BJe4UIpL.js} +1 -1
- package/web/dist/assets/{repo-git-Dl6O3hGA.js → repo-git-DAhDX80l.js} +1 -1
- package/web/dist/assets/{report-reader-MmUDUBB6.js → report-reader-DsYm5b9J.js} +1 -1
- package/web/dist/assets/{reports-D5N5f1oD.js → reports-BosE8lj8.js} +1 -1
- package/web/dist/assets/{run-header-CWSg_ZYo.js → run-header-DBbM_xNy.js} +1 -1
- package/web/dist/assets/{skills-UhbdEQES.js → skills-BHAGfLNq.js} +1 -1
- package/web/dist/assets/{tab-link-Bz7Tn_PW.js → tab-link-lVQ2eOeD.js} +1 -1
- package/web/dist/assets/{task-changes-Ciq3wQdC.js → task-changes-Jg7Xzrfa.js} +1 -1
- package/web/dist/assets/{task-commits-BYZEw7j8.js → task-commits-DecgF6zx.js} +1 -1
- package/web/dist/assets/{task-files-zvZu7yvk.js → task-files-D7N-vFyz.js} +1 -1
- package/web/dist/assets/{task-github-item-BYzml2gD.js → task-github-item-C8fBdico.js} +1 -1
- package/web/dist/assets/{task-thread-DSdn2fYx.js → task-thread-DifTEOeK.js} +1 -1
- package/web/dist/assets/{thread-state-BU_1o8aR.js → thread-state-i29D-4yN.js} +1 -1
- package/web/dist/assets/{use-desktop-Dc0-ZSdE.js → use-desktop-CdWXLHne.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C8jp_mTB.js → use-hand-to-agent-state-CPxNdj4_.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-BzvShKMo.js → useInfiniteQuery-Bn5hIzUm.js} +1 -1
- package/web/dist/assets/useQuery-DjkTL27e.js +1 -0
- package/web/dist/assets/{workflows-BdBF5bnk.js → workflows-CflCv_rB.js} +1 -1
- package/web/dist/assets/{ws-BQRkvdhO.js → ws-DfKMAUWf.js} +1 -1
- package/web/dist/index.html +13 -13
- package/web/dist/assets/attention-SAsrxB3a.js +0 -1
- package/web/dist/assets/project-scope-context-TjMvUo_E.js +0 -4
- 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>;
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -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;
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -39,18 +51,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
39
51
|
offset?: string | undefined;
|
|
40
52
|
};
|
|
41
53
|
};
|
|
42
|
-
} | {
|
|
43
|
-
output: {
|
|
44
|
-
error: string;
|
|
45
|
-
code?: "invalid_input" | undefined;
|
|
46
|
-
};
|
|
47
|
-
outputFormat: "json";
|
|
48
|
-
status: 400;
|
|
49
|
-
input: {
|
|
50
|
-
query: {
|
|
51
|
-
offset?: string | undefined;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -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;
|
|
@@ -588,6 +588,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
588
588
|
} & {
|
|
589
589
|
"/:workerId": {
|
|
590
590
|
$get: {
|
|
591
|
+
output: {
|
|
592
|
+
error: string;
|
|
593
|
+
code?: "invalid_input" | undefined;
|
|
594
|
+
};
|
|
595
|
+
outputFormat: "json";
|
|
596
|
+
status: 400;
|
|
597
|
+
input: {
|
|
598
|
+
param: {
|
|
599
|
+
workerId: string;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
} | {
|
|
591
603
|
output: {
|
|
592
604
|
workerId: string;
|
|
593
605
|
parentRunId: string;
|
|
@@ -695,7 +707,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
695
707
|
workerId: string;
|
|
696
708
|
};
|
|
697
709
|
};
|
|
698
|
-
}
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
} & {
|
|
713
|
+
"/:workerId/collect": {
|
|
714
|
+
$post: {
|
|
699
715
|
output: {
|
|
700
716
|
error: string;
|
|
701
717
|
code?: "invalid_input" | undefined;
|
|
@@ -706,12 +722,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
706
722
|
param: {
|
|
707
723
|
workerId: string;
|
|
708
724
|
};
|
|
725
|
+
} & {
|
|
726
|
+
json: Record<string, never>;
|
|
709
727
|
};
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
} & {
|
|
713
|
-
"/:workerId/collect": {
|
|
714
|
-
$post: {
|
|
728
|
+
} | {
|
|
715
729
|
output: {
|
|
716
730
|
workerId: string;
|
|
717
731
|
parentRunId: string;
|
|
@@ -813,7 +827,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
813
827
|
} & {
|
|
814
828
|
json: Record<string, never>;
|
|
815
829
|
};
|
|
816
|
-
}
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
} & {
|
|
833
|
+
"/:workerId/steer": {
|
|
834
|
+
$post: {
|
|
817
835
|
output: {
|
|
818
836
|
error: string;
|
|
819
837
|
code?: "invalid_input" | undefined;
|
|
@@ -825,13 +843,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
825
843
|
workerId: string;
|
|
826
844
|
};
|
|
827
845
|
} & {
|
|
828
|
-
json:
|
|
846
|
+
json: {
|
|
847
|
+
text: string;
|
|
848
|
+
};
|
|
829
849
|
};
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
} & {
|
|
833
|
-
"/:workerId/steer": {
|
|
834
|
-
$post: {
|
|
850
|
+
} | {
|
|
835
851
|
output: {
|
|
836
852
|
workerId: string;
|
|
837
853
|
state: "delivered" | "queued";
|
|
@@ -847,7 +863,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
847
863
|
text: string;
|
|
848
864
|
};
|
|
849
865
|
};
|
|
850
|
-
}
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
} & {
|
|
869
|
+
"/:workerId/stop": {
|
|
870
|
+
$post: {
|
|
851
871
|
output: {
|
|
852
872
|
error: string;
|
|
853
873
|
code?: "invalid_input" | undefined;
|
|
@@ -859,15 +879,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
859
879
|
workerId: string;
|
|
860
880
|
};
|
|
861
881
|
} & {
|
|
862
|
-
json:
|
|
863
|
-
text: string;
|
|
864
|
-
};
|
|
882
|
+
json: Record<string, never>;
|
|
865
883
|
};
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
|
-
} & {
|
|
869
|
-
"/:workerId/stop": {
|
|
870
|
-
$post: {
|
|
884
|
+
} | {
|
|
871
885
|
output: {
|
|
872
886
|
workerId: string;
|
|
873
887
|
state: "stopping" | "terminated";
|
|
@@ -881,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
881
895
|
} & {
|
|
882
896
|
json: Record<string, never>;
|
|
883
897
|
};
|
|
884
|
-
}
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
} & {
|
|
901
|
+
"/:workerId/destroy": {
|
|
902
|
+
$post: {
|
|
885
903
|
output: {
|
|
886
904
|
error: string;
|
|
887
905
|
code?: "invalid_input" | undefined;
|
|
@@ -895,11 +913,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
895
913
|
} & {
|
|
896
914
|
json: Record<string, never>;
|
|
897
915
|
};
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
} & {
|
|
901
|
-
"/:workerId/destroy": {
|
|
902
|
-
$post: {
|
|
916
|
+
} | {
|
|
903
917
|
output: {
|
|
904
918
|
workerId: string;
|
|
905
919
|
state: "complete" | "incomplete";
|
|
@@ -922,20 +936,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
922
936
|
} & {
|
|
923
937
|
json: Record<string, never>;
|
|
924
938
|
};
|
|
925
|
-
} | {
|
|
926
|
-
output: {
|
|
927
|
-
error: string;
|
|
928
|
-
code?: "invalid_input" | undefined;
|
|
929
|
-
};
|
|
930
|
-
outputFormat: "json";
|
|
931
|
-
status: 400;
|
|
932
|
-
input: {
|
|
933
|
-
param: {
|
|
934
|
-
workerId: string;
|
|
935
|
-
};
|
|
936
|
-
} & {
|
|
937
|
-
json: Record<string, never>;
|
|
938
|
-
};
|
|
939
939
|
} | {
|
|
940
940
|
output: {
|
|
941
941
|
workerId: string;
|
|
@@ -965,13 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
965
|
"/:workerId/diff": {
|
|
966
966
|
$get: {
|
|
967
967
|
output: {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
diff: string;
|
|
971
|
-
truncated: boolean;
|
|
968
|
+
error: string;
|
|
969
|
+
code?: "invalid_input" | undefined;
|
|
972
970
|
};
|
|
973
971
|
outputFormat: "json";
|
|
974
|
-
status:
|
|
972
|
+
status: 400;
|
|
975
973
|
input: {
|
|
976
974
|
param: {
|
|
977
975
|
workerId: string;
|
|
@@ -979,11 +977,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
979
977
|
};
|
|
980
978
|
} | {
|
|
981
979
|
output: {
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
workerId: string;
|
|
981
|
+
baselineSha: string;
|
|
982
|
+
diff: string;
|
|
983
|
+
truncated: boolean;
|
|
984
984
|
};
|
|
985
985
|
outputFormat: "json";
|
|
986
|
-
status:
|
|
986
|
+
status: 200;
|
|
987
987
|
input: {
|
|
988
988
|
param: {
|
|
989
989
|
workerId: string;
|
package/dist/runs/run-exits.d.ts
CHANGED
|
@@ -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;
|
package/dist/runs/store.d.ts
CHANGED
|
@@ -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;
|
package/dist/runs/store.js
CHANGED
|
@@ -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,
|
|
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';
|