@hearsay-tools/squawk 0.18.0-pr3886.7318 → 0.18.0-pr3887.7323
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/routes.d.ts +62 -62
- package/dist/delegation/transport.d.ts +4 -4
- 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/server.d.ts +18 -0
- 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;
|
|
@@ -27,6 +27,18 @@ 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
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -64,18 +76,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
64
76
|
offset?: string | undefined;
|
|
65
77
|
};
|
|
66
78
|
};
|
|
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,6 +613,18 @@ 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
|
+
} | {
|
|
616
628
|
output: {
|
|
617
629
|
workerId: string;
|
|
618
630
|
parentRunId: string;
|
|
@@ -720,7 +732,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
720
732
|
workerId: string;
|
|
721
733
|
};
|
|
722
734
|
};
|
|
723
|
-
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
"/:workerId/collect": {
|
|
739
|
+
$post: {
|
|
724
740
|
output: {
|
|
725
741
|
error: string;
|
|
726
742
|
code?: "invalid_input" | undefined;
|
|
@@ -731,12 +747,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
731
747
|
param: {
|
|
732
748
|
workerId: string;
|
|
733
749
|
};
|
|
750
|
+
} & {
|
|
751
|
+
json: Record<string, never>;
|
|
734
752
|
};
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
} & {
|
|
738
|
-
"/:workerId/collect": {
|
|
739
|
-
$post: {
|
|
753
|
+
} | {
|
|
740
754
|
output: {
|
|
741
755
|
workerId: string;
|
|
742
756
|
parentRunId: string;
|
|
@@ -838,7 +852,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
838
852
|
} & {
|
|
839
853
|
json: Record<string, never>;
|
|
840
854
|
};
|
|
841
|
-
}
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
} & {
|
|
858
|
+
"/:workerId/steer": {
|
|
859
|
+
$post: {
|
|
842
860
|
output: {
|
|
843
861
|
error: string;
|
|
844
862
|
code?: "invalid_input" | undefined;
|
|
@@ -850,13 +868,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
850
868
|
workerId: string;
|
|
851
869
|
};
|
|
852
870
|
} & {
|
|
853
|
-
json:
|
|
871
|
+
json: {
|
|
872
|
+
text: string;
|
|
873
|
+
};
|
|
854
874
|
};
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
} & {
|
|
858
|
-
"/:workerId/steer": {
|
|
859
|
-
$post: {
|
|
875
|
+
} | {
|
|
860
876
|
output: {
|
|
861
877
|
workerId: string;
|
|
862
878
|
state: "delivered" | "queued";
|
|
@@ -872,7 +888,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
872
888
|
text: string;
|
|
873
889
|
};
|
|
874
890
|
};
|
|
875
|
-
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
} & {
|
|
894
|
+
"/:workerId/stop": {
|
|
895
|
+
$post: {
|
|
876
896
|
output: {
|
|
877
897
|
error: string;
|
|
878
898
|
code?: "invalid_input" | undefined;
|
|
@@ -884,15 +904,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
884
904
|
workerId: string;
|
|
885
905
|
};
|
|
886
906
|
} & {
|
|
887
|
-
json:
|
|
888
|
-
text: string;
|
|
889
|
-
};
|
|
907
|
+
json: Record<string, never>;
|
|
890
908
|
};
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
} & {
|
|
894
|
-
"/:workerId/stop": {
|
|
895
|
-
$post: {
|
|
909
|
+
} | {
|
|
896
910
|
output: {
|
|
897
911
|
workerId: string;
|
|
898
912
|
state: "stopping" | "terminated";
|
|
@@ -906,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
906
920
|
} & {
|
|
907
921
|
json: Record<string, never>;
|
|
908
922
|
};
|
|
909
|
-
}
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
"/:workerId/destroy": {
|
|
927
|
+
$post: {
|
|
910
928
|
output: {
|
|
911
929
|
error: string;
|
|
912
930
|
code?: "invalid_input" | undefined;
|
|
@@ -920,11 +938,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
920
938
|
} & {
|
|
921
939
|
json: Record<string, never>;
|
|
922
940
|
};
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
} & {
|
|
926
|
-
"/:workerId/destroy": {
|
|
927
|
-
$post: {
|
|
941
|
+
} | {
|
|
928
942
|
output: {
|
|
929
943
|
workerId: string;
|
|
930
944
|
state: "complete" | "incomplete";
|
|
@@ -947,20 +961,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
947
961
|
} & {
|
|
948
962
|
json: Record<string, never>;
|
|
949
963
|
};
|
|
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,13 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
990
|
"/:workerId/diff": {
|
|
991
991
|
$get: {
|
|
992
992
|
output: {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
diff: string;
|
|
996
|
-
truncated: boolean;
|
|
993
|
+
error: string;
|
|
994
|
+
code?: "invalid_input" | undefined;
|
|
997
995
|
};
|
|
998
996
|
outputFormat: "json";
|
|
999
|
-
status:
|
|
997
|
+
status: 400;
|
|
1000
998
|
input: {
|
|
1001
999
|
param: {
|
|
1002
1000
|
workerId: string;
|
|
@@ -1004,11 +1002,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1004
1002
|
};
|
|
1005
1003
|
} | {
|
|
1006
1004
|
output: {
|
|
1007
|
-
|
|
1008
|
-
|
|
1005
|
+
workerId: string;
|
|
1006
|
+
baselineSha: string;
|
|
1007
|
+
diff: string;
|
|
1008
|
+
truncated: boolean;
|
|
1009
1009
|
};
|
|
1010
1010
|
outputFormat: "json";
|
|
1011
|
-
status:
|
|
1011
|
+
status: 200;
|
|
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
|
-
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;
|
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';
|