@wjarka/cezarion 0.17.0-pr2158.3294 → 0.17.0-pr2159.3295
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/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/transport.d.ts +15 -15
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +6 -6
- package/dist/workflows/run/run-guards.d.ts +2 -0
- package/dist/workflows/run/run-guards.js +4 -0
- package/dist/workflows/run/run-guards.js.map +1 -1
- package/dist/workflows/run/wait-watches.d.ts +855 -0
- package/dist/workflows/run/wait-watches.js +221 -0
- package/dist/workflows/run/wait-watches.js.map +1 -0
- package/dist/workflows/run.d.ts +3 -29
- package/dist/workflows/run.js +25 -205
- package/dist/workflows/run.js.map +1 -1
- package/package.json +3 -3
|
@@ -90,6 +90,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
90
90
|
authFailureId?: string | undefined;
|
|
91
91
|
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
92
92
|
}[];
|
|
93
|
+
} | {
|
|
94
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
95
|
+
models: {
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
description: string;
|
|
99
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
source: "cache" | "live" | "unavailable";
|
|
102
|
+
stale: boolean;
|
|
103
|
+
reason?: string | undefined;
|
|
93
104
|
} | {
|
|
94
105
|
tasks: {
|
|
95
106
|
id: string;
|
|
@@ -102,17 +113,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
102
113
|
reason?: string | undefined;
|
|
103
114
|
}[];
|
|
104
115
|
nextOffset?: number | undefined;
|
|
105
|
-
} | {
|
|
106
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
107
|
-
models: {
|
|
108
|
-
id: string;
|
|
109
|
-
label: string;
|
|
110
|
-
description: string;
|
|
111
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
112
|
-
}[];
|
|
113
|
-
source: "cache" | "live" | "unavailable";
|
|
114
|
-
stale: boolean;
|
|
115
|
-
reason?: string | undefined;
|
|
116
116
|
};
|
|
117
117
|
outputFormat: "json";
|
|
118
118
|
status: 200;
|
|
@@ -65,17 +65,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
65
65
|
authFailureId?: string | undefined;
|
|
66
66
|
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
67
67
|
}[];
|
|
68
|
-
} | {
|
|
69
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
70
|
-
models: {
|
|
71
|
-
id: string;
|
|
72
|
-
label: string;
|
|
73
|
-
description: string;
|
|
74
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
75
|
-
}[];
|
|
76
|
-
source: "cache" | "live" | "unavailable";
|
|
77
|
-
stale: boolean;
|
|
78
|
-
reason?: string | undefined;
|
|
79
68
|
} | {
|
|
80
69
|
tasks: {
|
|
81
70
|
id: string;
|
|
@@ -88,6 +77,17 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
88
77
|
reason?: string | undefined;
|
|
89
78
|
}[];
|
|
90
79
|
nextOffset?: number | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
82
|
+
models: {
|
|
83
|
+
id: string;
|
|
84
|
+
label: string;
|
|
85
|
+
description: string;
|
|
86
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
87
|
+
}[];
|
|
88
|
+
source: "cache" | "live" | "unavailable";
|
|
89
|
+
stale: boolean;
|
|
90
|
+
reason?: string | undefined;
|
|
91
91
|
};
|
|
92
92
|
outputFormat: "json";
|
|
93
93
|
status: 200;
|
|
@@ -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;
|
|
@@ -11,12 +11,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
11
11
|
output: {
|
|
12
12
|
generation: string;
|
|
13
13
|
results: ({
|
|
14
|
-
projectId: string;
|
|
15
|
-
runId: string;
|
|
16
|
-
type: "error" | "reset";
|
|
17
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
18
|
-
error: string;
|
|
19
|
-
} | {
|
|
20
14
|
projectId: string;
|
|
21
15
|
runId: string;
|
|
22
16
|
type: "batch";
|
|
@@ -30,6 +24,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
30
24
|
cursor: string;
|
|
31
25
|
afterSeq: number;
|
|
32
26
|
hasMore: boolean;
|
|
27
|
+
} | {
|
|
28
|
+
projectId: string;
|
|
29
|
+
runId: string;
|
|
30
|
+
type: "error" | "reset";
|
|
31
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
32
|
+
error: string;
|
|
33
33
|
})[];
|
|
34
34
|
};
|
|
35
35
|
outputFormat: "json";
|
package/dist/server/server.d.ts
CHANGED
|
@@ -404,12 +404,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
404
404
|
output: {
|
|
405
405
|
generation: string;
|
|
406
406
|
results: ({
|
|
407
|
-
projectId: string;
|
|
408
|
-
runId: string;
|
|
409
|
-
type: "error" | "reset";
|
|
410
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
411
|
-
error: string;
|
|
412
|
-
} | {
|
|
413
407
|
projectId: string;
|
|
414
408
|
runId: string;
|
|
415
409
|
type: "batch";
|
|
@@ -423,6 +417,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
423
417
|
cursor: string;
|
|
424
418
|
afterSeq: number;
|
|
425
419
|
hasMore: boolean;
|
|
420
|
+
} | {
|
|
421
|
+
projectId: string;
|
|
422
|
+
runId: string;
|
|
423
|
+
type: "error" | "reset";
|
|
424
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
425
|
+
error: string;
|
|
426
426
|
})[];
|
|
427
427
|
};
|
|
428
428
|
outputFormat: "json";
|
|
@@ -4,3 +4,5 @@ export declare function executionBlockedByRootFinish(store: Pick<RunStore, 'getR
|
|
|
4
4
|
/** Irreversible history removal is an execution tombstone, including for legacy children. */
|
|
5
5
|
export declare function historyDeletionPending(store: Pick<RunStore, 'getRun'>, runId: string): boolean;
|
|
6
6
|
export declare function canProceedWithRun(run: RunRecord | undefined, workerExecutionStopped: () => boolean, executionBlockedByRootFinish: (run: RunRecord) => boolean): run is RunRecord;
|
|
7
|
+
/** The delegation family a run belongs to, by its root's id: a worker's parent, else itself. */
|
|
8
|
+
export declare function familyOf(run: RunRecord): string;
|
|
@@ -14,4 +14,8 @@ export function historyDeletionPending(store, runId) {
|
|
|
14
14
|
export function canProceedWithRun(run, workerExecutionStopped, executionBlockedByRootFinish) {
|
|
15
15
|
return !(!run || run.stopping || workerExecutionStopped() || executionBlockedByRootFinish(run));
|
|
16
16
|
}
|
|
17
|
+
/** The delegation family a run belongs to, by its root's id: a worker's parent, else itself. */
|
|
18
|
+
export function familyOf(run) {
|
|
19
|
+
return run.delegation?.role === 'worker' ? run.delegation.parentRunId : run.id;
|
|
20
|
+
}
|
|
17
21
|
//# sourceMappingURL=run-guards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-guards.js","sourceRoot":"","sources":["../../../src/workflows/run/run-guards.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,KAA+B,EAAE,KAAa;IAChF,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnD,OAAO,UAAU,EAAE,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAA+B,EAAE,GAAc;IAC1F,OAAO,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC7G,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,sBAAsB,CAAC,KAA+B,EAAE,KAAa;IACnF,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG,GAAG,EAAE,UAAU,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACnG,OAAO,MAAM,EAAE,UAAU,EAAE,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,eAAe,KAAK,SAAS,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,GAA0B,EAC1B,sBAAqC,EACrC,4BAAyD;IAEzD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG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