@hearsay-tools/squawk 0.17.0-dev.5736 → 0.17.0-dev.5745
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/ci-wait/controller.d.ts +37 -37
- package/dist/contract/discovery.d.ts +1 -32
- package/dist/contract/health.d.ts +2 -17
- package/dist/contract/index.js +2573 -2565
- package/dist/contract/repo-info.d.ts +12 -0
- package/dist/contract/repo.d.ts +1 -2
- package/dist/contract/runner.d.ts +15 -0
- package/dist/contract/usage-limit-hold.d.ts +15 -0
- package/dist/contract/waits.d.ts +2 -11
- package/dist/contract/workflows.d.ts +1 -1
- package/dist/contract/workspace.d.ts +36 -1
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/transport.d.ts +9 -9
- package/dist/runs/run-exits.js.map +1 -1
- package/dist/server/self-update-routes.d.ts +19 -19
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run-states.js +4 -4
- package/dist/workflows/run-states.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-Deqj_hcK.js +2 -0
- package/web/dist/assets/{activity-route-De0BnSrc.js → activity-route-Z8SMpPLm.js} +1 -1
- package/web/dist/assets/{agent-accounts-BCg-578Q.js → agent-accounts-f1cxwgfz.js} +2 -2
- package/web/dist/assets/{cez-idle-BT0U4GN_.js → cez-idle-EVoUsgU3.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-DYtYc_dH.js → commit-diff-panel-DZutYRbq.js} +1 -1
- package/web/dist/assets/{control-locations-CA9TMupq.js → control-locations-C9II3kPz.js} +1 -1
- package/web/dist/assets/{diff-tVGVhYyc.js → diff-DNAtaTLC.js} +2 -2
- package/web/dist/assets/{diff-view-CNM3u77o.js → diff-view---8Bt-0a.js} +1 -1
- package/web/dist/assets/{file-preview-C1eTdJLJ.js → file-preview-D08Kq15E.js} +1 -1
- package/web/dist/assets/{git-toolbar-Dwz8p8GW.js → git-toolbar-DMDmGits.js} +1 -1
- package/web/dist/assets/{github-BSezqH6f.js → github-DlMu4p0I.js} +1 -1
- package/web/dist/assets/{github-sidebar-model-Ct0DltOv.js → github-sidebar-model-B0Ufci5S.js} +1 -1
- package/web/dist/assets/{global-activity-route-BZiYz-B0.js → global-activity-route-mJrrP9I0.js} +1 -1
- package/web/dist/assets/{index-D489J7QW.js → index-FoxgrgAH.js} +8 -8
- package/web/dist/assets/{live-protocol-BDY7JJpT.js → live-protocol-BVn0UA_g.js} +1 -1
- package/web/dist/assets/{live-refetch-C0kQc3-z.js → live-refetch-BdnmTJ_8.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-DGkEs_L3.js → preview-pane-connected-KzJn9jAG.js} +1 -1
- package/web/dist/assets/{project-router-1m_VlC22.js → project-router-MMOk9VbW.js} +1 -1
- package/web/dist/assets/project-scope-context-B3M-u8R0.js +4 -0
- package/web/dist/assets/{queries-DYfIpJ-d.js → queries-DORTKwyN.js} +1 -1
- package/web/dist/assets/{repo-git-CU1S5P-y.js → repo-git-Bf_EfIHt.js} +1 -1
- package/web/dist/assets/{report-reader-DlZol2Ux.js → report-reader-ztLhC9gp.js} +1 -1
- package/web/dist/assets/reports-BxGqf1aC.js +1 -0
- package/web/dist/assets/{run-header-DPjiPKRe.js → run-header-CDMGqoPE.js} +1 -1
- package/web/dist/assets/skills-D2r8n5IP.js +1 -0
- package/web/dist/assets/{tab-link-DCUifQ46.js → tab-link-BvoGfK8S.js} +1 -1
- package/web/dist/assets/{task-changes-BZXWvQN3.js → task-changes-CfUCDwcL.js} +1 -1
- package/web/dist/assets/{task-commits-ByI9MSfc.js → task-commits-IOjoz_mL.js} +1 -1
- package/web/dist/assets/{task-files-LJbenpiH.js → task-files-CpUYhIpd.js} +1 -1
- package/web/dist/assets/{task-github-item-B0CU9lGR.js → task-github-item-B8YPhQDV.js} +1 -1
- package/web/dist/assets/task-thread-2Kme3Fc0.js +9 -0
- package/web/dist/assets/{thread-state-BLaCzqeX.js → thread-state-C136Em0C.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BkmKad8x.js → use-hand-to-agent-state-C6u70P2A.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-qEY8OhKb.js → useInfiniteQuery-BbYMWe23.js} +1 -1
- package/web/dist/assets/useQuery-CqqnAJvu.js +1 -0
- package/web/dist/assets/{workflows-Dbxb-d-6.js → workflows-CWrdqLII.js} +1 -1
- package/web/dist/assets/{ws-DvGmrP4z.js → ws-BtSVmivO.js} +1 -1
- package/web/dist/index.html +13 -13
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/activity-motion-hhx0e841.js +0 -2
- package/web/dist/assets/project-scope-context-CaUqlAd7.js +0 -4
- package/web/dist/assets/reports-DIGGjk7C.js +0 -1
- package/web/dist/assets/skills-BMwanop_.js +0 -1
- package/web/dist/assets/task-thread-CXCN__1a.js +0 -9
- package/web/dist/assets/useQuery-DOJQOEBO.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Git facts about the project root, or `null` when it is not a repository. Health and the Repo
|
|
4
|
+
* view serve the same record. This module imports only zod, so `repo.ts` does not load
|
|
5
|
+
* `health.ts` (hearsay-tools/cezarion#3241); `health.ts` re-exports both names.
|
|
6
|
+
*/
|
|
7
|
+
export declare const repoInfoSchema: z.ZodObject<{
|
|
8
|
+
root: z.ZodString;
|
|
9
|
+
branch: z.ZodString;
|
|
10
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type RepoInfo = z.infer<typeof repoInfoSchema>;
|
package/dist/contract/repo.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
* The repo / git family of `/api/v1` — the Repo view, the structured diff shapes the Changes and
|
|
4
4
|
* Files tabs read, and the worktree-retention panel.
|
|
5
5
|
*
|
|
6
|
-
* `RepoInfo` is NOT redeclared here:
|
|
7
|
-
* serves the very same record.
|
|
6
|
+
* `RepoInfo` is NOT redeclared here: it lives in `./repo-info.ts`, which health also serves.
|
|
8
7
|
*/
|
|
9
8
|
/** One `git status --porcelain` row. */
|
|
10
9
|
export declare const statusEntrySchema: z.ZodObject<{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The agent backends a run can be dispatched to. This module imports only zod: most contract
|
|
4
|
+
* modules import the roster, and a schema module behind it would load in nearly every test
|
|
5
|
+
* (hearsay-tools/cezarion#3241). `health.ts` re-exports both names.
|
|
6
|
+
*/
|
|
7
|
+
export declare const runnerSchema: z.ZodEnum<{
|
|
8
|
+
claude: "claude";
|
|
9
|
+
codex: "codex";
|
|
10
|
+
cursor: "cursor";
|
|
11
|
+
omp: "omp";
|
|
12
|
+
opencode: "opencode";
|
|
13
|
+
pi: "pi";
|
|
14
|
+
}>;
|
|
15
|
+
export type Runner = z.infer<typeof runnerSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RunRecord } from './runs.ts';
|
|
2
|
+
/**
|
|
3
|
+
* A usage-limit hold (hearsay-tools/cezarion#1236): a `waiting` run with a booked resume time. It
|
|
4
|
+
* holds no slot and no session, so the engine does not own it; its resume or the user's Continue
|
|
5
|
+
* wakes it. The one definition every reader calls (hearsay-tools/cezarion#1496). It takes the
|
|
6
|
+
* record, never a bare status, and the store clears the resume time on every write that leaves
|
|
7
|
+
* `waiting`, so a resume time on any other run is stale and this reads it as no hold. It narrows
|
|
8
|
+
* the time only, so a caller can still settle the hold to another status.
|
|
9
|
+
*
|
|
10
|
+
* This module has no runtime imports: `vitest.setup.ts` loads it through `run-exits.ts`, so every
|
|
11
|
+
* cezar test loads it (hearsay-tools/cezarion#3241). `waits.ts` re-exports it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isUsageLimitHold<T extends Partial<Pick<RunRecord, 'status' | 'autoResumeAt'>>>(run: T): run is T & {
|
|
14
|
+
autoResumeAt: string;
|
|
15
|
+
};
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { DelegationState, PeerWaitView, RunDelegationSummary, WorkerCompletionWait, WorkerWait } from './delegation.ts';
|
|
3
3
|
import type { RunRecord } from './runs.ts';
|
|
4
|
+
import { isUsageLimitHold } from './usage-limit-hold.ts';
|
|
5
|
+
export { isUsageLimitHold };
|
|
4
6
|
/**
|
|
5
7
|
* The wait list (spec `.ai/specs/2026-10-17-unified-waits.md`; phase 1 is
|
|
6
8
|
* hearsay-tools/cezarion#1233). A run holds its open and recently settled waits in
|
|
@@ -1927,17 +1929,6 @@ export type WaitingOn = z.infer<typeof waitingOnSchema>;
|
|
|
1927
1929
|
export type WaitingOnInput = Partial<Pick<RunRecord, 'status' | 'waits' | 'autoResumeAt'>> & {
|
|
1928
1930
|
delegation?: DelegationState | RunDelegationSummary | undefined;
|
|
1929
1931
|
};
|
|
1930
|
-
/**
|
|
1931
|
-
* A usage-limit hold (hearsay-tools/cezarion#1236): a `waiting` run with a booked resume time. It
|
|
1932
|
-
* holds no slot and no session, so the engine does not own it; its resume or the user's Continue
|
|
1933
|
-
* wakes it. The one definition every reader calls (hearsay-tools/cezarion#1496). It takes the
|
|
1934
|
-
* record, never a bare status, and the store clears the resume time on every write that leaves
|
|
1935
|
-
* `waiting`, so a resume time on any other run is stale and this reads it as no hold. It narrows
|
|
1936
|
-
* the time only, so a caller can still settle the hold to another status.
|
|
1937
|
-
*/
|
|
1938
|
-
export declare function isUsageLimitHold<T extends Partial<Pick<RunRecord, 'status' | 'autoResumeAt'>>>(run: T): run is T & {
|
|
1939
|
-
autoResumeAt: string;
|
|
1940
|
-
};
|
|
1941
1932
|
/** A summary's slim root delegation with the root's own ledger, which the slim one drops, so
|
|
1942
1933
|
* `computeWaitingOn` still marks a wait on a peer's reply (hearsay-tools/cezarion#1995). The ledger
|
|
1943
1934
|
* is unparsed; `peerRequestIds` reads it defensively. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type Runner } from './
|
|
2
|
+
import { type Runner } from './runner.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The workspace + settings families: `~/.cezar/config.json`'s settings slice, both GUI-pref bags
|
|
5
5
|
* (per-repo and workspace), the per-repo agent knobs, provider auth status, the host model
|
|
@@ -595,6 +595,41 @@ export declare const runnerModelCatalogResponseSchema: z.ZodObject<{
|
|
|
595
595
|
reason: z.ZodOptional<z.ZodString>;
|
|
596
596
|
}, z.core.$strip>;
|
|
597
597
|
export type RunnerModelCatalogResponse = z.infer<typeof runnerModelCatalogResponseSchema>;
|
|
598
|
+
/** The models a spawn could pin instead of an unknown one, in a delegation error. It lives here,
|
|
599
|
+
* beside its parts, so `delegation.ts` does not load `discovery.ts` (hearsay-tools/cezarion#3241);
|
|
600
|
+
* `discovery.ts` re-exports it. */
|
|
601
|
+
export declare const modelChoicesSchema: z.ZodObject<{
|
|
602
|
+
runner: z.ZodEnum<{
|
|
603
|
+
claude: "claude";
|
|
604
|
+
codex: "codex";
|
|
605
|
+
cursor: "cursor";
|
|
606
|
+
omp: "omp";
|
|
607
|
+
opencode: "opencode";
|
|
608
|
+
pi: "pi";
|
|
609
|
+
}>;
|
|
610
|
+
requestedModel: z.ZodString;
|
|
611
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
612
|
+
id: z.ZodString;
|
|
613
|
+
label: z.ZodString;
|
|
614
|
+
description: z.ZodString;
|
|
615
|
+
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
616
|
+
high: "high";
|
|
617
|
+
low: "low";
|
|
618
|
+
max: "max";
|
|
619
|
+
medium: "medium";
|
|
620
|
+
xhigh: "xhigh";
|
|
621
|
+
}>>>;
|
|
622
|
+
}, z.core.$strip>>;
|
|
623
|
+
otherRunners: z.ZodArray<z.ZodEnum<{
|
|
624
|
+
claude: "claude";
|
|
625
|
+
codex: "codex";
|
|
626
|
+
cursor: "cursor";
|
|
627
|
+
omp: "omp";
|
|
628
|
+
opencode: "opencode";
|
|
629
|
+
pi: "pi";
|
|
630
|
+
}>>;
|
|
631
|
+
}, z.core.$strip>;
|
|
632
|
+
export type ModelChoices = z.infer<typeof modelChoicesSchema>;
|
|
598
633
|
/** A local app a worktree can be opened in (#open-in): editor, file manager, or terminal. */
|
|
599
634
|
export declare const openTargetSchema: z.ZodObject<{
|
|
600
635
|
id: z.ZodString;
|
|
@@ -221,13 +221,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
221
221
|
status: 200;
|
|
222
222
|
input: {
|
|
223
223
|
json: {
|
|
224
|
-
workerIds: string[];
|
|
225
|
-
timeoutSeconds?: number | undefined;
|
|
226
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
227
|
-
} | {
|
|
228
224
|
requestIds: string[];
|
|
229
225
|
mode?: "all" | "any" | "one" | undefined;
|
|
230
226
|
timeoutSeconds?: number | undefined;
|
|
227
|
+
} | {
|
|
228
|
+
workerIds: string[];
|
|
229
|
+
timeoutSeconds?: number | undefined;
|
|
230
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
231
231
|
} | {
|
|
232
232
|
peerIds: string[];
|
|
233
233
|
timeoutSeconds?: number | undefined;
|
|
@@ -57,15 +57,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
57
57
|
"/discover": {
|
|
58
58
|
$post: {
|
|
59
59
|
output: {
|
|
60
|
-
scope: "host-default-account";
|
|
61
|
-
runners: {
|
|
62
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
63
|
-
enabled?: boolean | undefined;
|
|
64
|
-
hint?: string | undefined;
|
|
65
|
-
authFailureId?: string | undefined;
|
|
66
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
67
|
-
}[];
|
|
68
|
-
} | {
|
|
69
60
|
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
70
61
|
models: {
|
|
71
62
|
id: string;
|
|
@@ -76,6 +67,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
76
67
|
source: "cache" | "live" | "unavailable";
|
|
77
68
|
stale: boolean;
|
|
78
69
|
reason?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
scope: "host-default-account";
|
|
72
|
+
runners: {
|
|
73
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
74
|
+
enabled?: boolean | undefined;
|
|
75
|
+
hint?: string | undefined;
|
|
76
|
+
authFailureId?: string | undefined;
|
|
77
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
78
|
+
}[];
|
|
79
79
|
} | {
|
|
80
80
|
tasks: {
|
|
81
81
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-exits.js","sourceRoot":"","sources":["../../src/runs/run-exits.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"run-exits.js","sourceRoot":"","sources":["../../src/runs/run-exits.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAmDjF,iDAAiD;AACjD,MAAM,iBAAiB,GAAG,CAAC,GAAc,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,iBAAiB,CAAC;AAEpH,mGAAmG;AACnG,MAAM,UAAU,kBAAkB,CAAC,GAAkC;IACnE,IAAI,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,MAAM,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,iBAAiB;QAAE,OAAO,EAAE,CAAC;IACpF,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,GAAG,CAAC,UAAU,CAAC;IACrE,OAAO,EAAE,UAAU,EAAE,C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UAAU,UAAU,CAAsB,IAAO,EAAE,IAAe;IACtE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtB,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -184,6 +184,17 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
184
184
|
} & {
|
|
185
185
|
"/workspace/self-update/channel": {
|
|
186
186
|
$put: {
|
|
187
|
+
output: {
|
|
188
|
+
error: string;
|
|
189
|
+
};
|
|
190
|
+
outputFormat: "json";
|
|
191
|
+
status: 500;
|
|
192
|
+
input: {
|
|
193
|
+
json: {
|
|
194
|
+
channel: "development" | "nightly" | "stable";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
187
198
|
output: {
|
|
188
199
|
version: string;
|
|
189
200
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -230,22 +241,22 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
230
241
|
channel: "development" | "nightly" | "stable";
|
|
231
242
|
};
|
|
232
243
|
};
|
|
233
|
-
}
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
} & {
|
|
247
|
+
"/workspace/self-update/apply": {
|
|
248
|
+
$post: {
|
|
234
249
|
output: {
|
|
235
250
|
error: string;
|
|
236
251
|
};
|
|
237
252
|
outputFormat: "json";
|
|
238
|
-
status:
|
|
253
|
+
status: 409;
|
|
239
254
|
input: {
|
|
240
255
|
json: {
|
|
241
|
-
|
|
256
|
+
version: string;
|
|
242
257
|
};
|
|
243
258
|
};
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
} & {
|
|
247
|
-
"/workspace/self-update/apply": {
|
|
248
|
-
$post: {
|
|
259
|
+
} | {
|
|
249
260
|
output: {
|
|
250
261
|
version: string;
|
|
251
262
|
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
@@ -292,17 +303,6 @@ stores: () => readonly RunStore[]): import("hono/hono-base").HonoBase<import("ho
|
|
|
292
303
|
version: string;
|
|
293
304
|
};
|
|
294
305
|
};
|
|
295
|
-
} | {
|
|
296
|
-
output: {
|
|
297
|
-
error: string;
|
|
298
|
-
};
|
|
299
|
-
outputFormat: "json";
|
|
300
|
-
status: 409;
|
|
301
|
-
input: {
|
|
302
|
-
json: {
|
|
303
|
-
version: string;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
}, "/", "/workspace/self-update/apply">;
|
|
@@ -232,6 +232,30 @@ export declare class WaitEngine {
|
|
|
232
232
|
deadline: string;
|
|
233
233
|
seconds: number;
|
|
234
234
|
note?: string | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
id: string;
|
|
237
|
+
source: "agent" | "cezar";
|
|
238
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
239
|
+
registeredAt: string;
|
|
240
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
241
|
+
resolvedAt?: string | undefined;
|
|
242
|
+
deliveredAt?: string | undefined;
|
|
243
|
+
cancelledAt?: string | undefined;
|
|
244
|
+
turnId: string;
|
|
245
|
+
kind: "process";
|
|
246
|
+
deadline: string;
|
|
247
|
+
timeoutSeconds: number;
|
|
248
|
+
pid: number;
|
|
249
|
+
startToken?: string | undefined;
|
|
250
|
+
exitFile?: string | undefined;
|
|
251
|
+
note?: string | undefined;
|
|
252
|
+
result?: {
|
|
253
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
254
|
+
observedAt: string;
|
|
255
|
+
exitCode?: number | undefined;
|
|
256
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
257
|
+
diagnostic?: string | undefined;
|
|
258
|
+
} | undefined;
|
|
235
259
|
} | {
|
|
236
260
|
id: string;
|
|
237
261
|
source: "agent" | "cezar";
|
|
@@ -292,30 +316,6 @@ export declare class WaitEngine {
|
|
|
292
316
|
reason: "outcome" | "timeout";
|
|
293
317
|
} | undefined;
|
|
294
318
|
wakeInputId?: string | undefined;
|
|
295
|
-
} | {
|
|
296
|
-
id: string;
|
|
297
|
-
source: "agent" | "cezar";
|
|
298
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
299
|
-
registeredAt: string;
|
|
300
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
301
|
-
resolvedAt?: string | undefined;
|
|
302
|
-
deliveredAt?: string | undefined;
|
|
303
|
-
cancelledAt?: string | undefined;
|
|
304
|
-
turnId: string;
|
|
305
|
-
kind: "process";
|
|
306
|
-
deadline: string;
|
|
307
|
-
timeoutSeconds: number;
|
|
308
|
-
pid: number;
|
|
309
|
-
startToken?: string | undefined;
|
|
310
|
-
exitFile?: string | undefined;
|
|
311
|
-
note?: string | undefined;
|
|
312
|
-
result?: {
|
|
313
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
314
|
-
observedAt: string;
|
|
315
|
-
exitCode?: number | undefined;
|
|
316
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
317
|
-
diagnostic?: string | undefined;
|
|
318
|
-
} | undefined;
|
|
319
319
|
} | {
|
|
320
320
|
id: string;
|
|
321
321
|
source: "agent" | "cezar";
|
|
@@ -426,6 +426,30 @@ export declare class WaitEngine {
|
|
|
426
426
|
deadline: string;
|
|
427
427
|
seconds: number;
|
|
428
428
|
note?: string | undefined;
|
|
429
|
+
} | {
|
|
430
|
+
id: string;
|
|
431
|
+
source: "agent" | "cezar";
|
|
432
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
433
|
+
registeredAt: string;
|
|
434
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
435
|
+
resolvedAt?: string | undefined;
|
|
436
|
+
deliveredAt?: string | undefined;
|
|
437
|
+
cancelledAt?: string | undefined;
|
|
438
|
+
turnId: string;
|
|
439
|
+
kind: "process";
|
|
440
|
+
deadline: string;
|
|
441
|
+
timeoutSeconds: number;
|
|
442
|
+
pid: number;
|
|
443
|
+
startToken?: string | undefined;
|
|
444
|
+
exitFile?: string | undefined;
|
|
445
|
+
note?: string | undefined;
|
|
446
|
+
result?: {
|
|
447
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
448
|
+
observedAt: string;
|
|
449
|
+
exitCode?: number | undefined;
|
|
450
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
451
|
+
diagnostic?: string | undefined;
|
|
452
|
+
} | undefined;
|
|
429
453
|
} | {
|
|
430
454
|
id: string;
|
|
431
455
|
source: "agent" | "cezar";
|
|
@@ -486,30 +510,6 @@ export declare class WaitEngine {
|
|
|
486
510
|
reason: "outcome" | "timeout";
|
|
487
511
|
} | undefined;
|
|
488
512
|
wakeInputId?: string | undefined;
|
|
489
|
-
} | {
|
|
490
|
-
id: string;
|
|
491
|
-
source: "agent" | "cezar";
|
|
492
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
493
|
-
registeredAt: string;
|
|
494
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
495
|
-
resolvedAt?: string | undefined;
|
|
496
|
-
deliveredAt?: string | undefined;
|
|
497
|
-
cancelledAt?: string | undefined;
|
|
498
|
-
turnId: string;
|
|
499
|
-
kind: "process";
|
|
500
|
-
deadline: string;
|
|
501
|
-
timeoutSeconds: number;
|
|
502
|
-
pid: number;
|
|
503
|
-
startToken?: string | undefined;
|
|
504
|
-
exitFile?: string | undefined;
|
|
505
|
-
note?: string | undefined;
|
|
506
|
-
result?: {
|
|
507
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
508
|
-
observedAt: string;
|
|
509
|
-
exitCode?: number | undefined;
|
|
510
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
511
|
-
diagnostic?: string | undefined;
|
|
512
|
-
} | undefined;
|
|
513
513
|
} | {
|
|
514
514
|
id: string;
|
|
515
515
|
source: "agent" | "cezar";
|
|
@@ -619,6 +619,30 @@ export declare class WaitEngine {
|
|
|
619
619
|
deadline: string;
|
|
620
620
|
seconds: number;
|
|
621
621
|
note?: string | undefined;
|
|
622
|
+
} | {
|
|
623
|
+
id: string;
|
|
624
|
+
source: "agent" | "cezar";
|
|
625
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
626
|
+
registeredAt: string;
|
|
627
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
628
|
+
resolvedAt?: string | undefined;
|
|
629
|
+
deliveredAt?: string | undefined;
|
|
630
|
+
cancelledAt?: string | undefined;
|
|
631
|
+
turnId: string;
|
|
632
|
+
kind: "process";
|
|
633
|
+
deadline: string;
|
|
634
|
+
timeoutSeconds: number;
|
|
635
|
+
pid: number;
|
|
636
|
+
startToken?: string | undefined;
|
|
637
|
+
exitFile?: string | undefined;
|
|
638
|
+
note?: string | undefined;
|
|
639
|
+
result?: {
|
|
640
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
641
|
+
observedAt: string;
|
|
642
|
+
exitCode?: number | undefined;
|
|
643
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
644
|
+
diagnostic?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
622
646
|
} | {
|
|
623
647
|
id: string;
|
|
624
648
|
source: "agent" | "cezar";
|
|
@@ -679,30 +703,6 @@ export declare class WaitEngine {
|
|
|
679
703
|
reason: "outcome" | "timeout";
|
|
680
704
|
} | undefined;
|
|
681
705
|
wakeInputId?: string | undefined;
|
|
682
|
-
} | {
|
|
683
|
-
id: string;
|
|
684
|
-
source: "agent" | "cezar";
|
|
685
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
686
|
-
registeredAt: string;
|
|
687
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
688
|
-
resolvedAt?: string | undefined;
|
|
689
|
-
deliveredAt?: string | undefined;
|
|
690
|
-
cancelledAt?: string | undefined;
|
|
691
|
-
turnId: string;
|
|
692
|
-
kind: "process";
|
|
693
|
-
deadline: string;
|
|
694
|
-
timeoutSeconds: number;
|
|
695
|
-
pid: number;
|
|
696
|
-
startToken?: string | undefined;
|
|
697
|
-
exitFile?: string | undefined;
|
|
698
|
-
note?: string | undefined;
|
|
699
|
-
result?: {
|
|
700
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
701
|
-
observedAt: string;
|
|
702
|
-
exitCode?: number | undefined;
|
|
703
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
704
|
-
diagnostic?: string | undefined;
|
|
705
|
-
} | undefined;
|
|
706
706
|
} | {
|
|
707
707
|
id: string;
|
|
708
708
|
source: "agent" | "cezar";
|
|
@@ -77,12 +77,12 @@ export const RUN_TRIGGERS = [
|
|
|
77
77
|
{ id: 'running.finish-restart', states: ['running'], trigger: 'Restart replays a human Finish accepted before a live session closed', firedBy: 'recovery', behavior: 'Park, close sent requests sender-closed, then settle the durable Finish', exit: 'park', to: ['waiting:plain'], via: ['settleRequestedRootFinish'] },
|
|
78
78
|
{ id: 'review.finish-restart', states: ['review'], trigger: 'Restart replays a human Finish accepted at review', firedBy: 'recovery', behavior: 'Sent requests close sender-closed; done with no Finish intent left', exit: 'accept-review', to: ['done'], via: ['settleRequestedRootFinish', 'finish'] },
|
|
79
79
|
{ id: 'running.completion-refusal', states: ['running'], trigger: 'A blocked done with the session gone, or a done blocked only by a pending question', firedBy: 'engine', behavior: 'waiting: the refusal is queued for a reopened session, or the run parks for the user', exit: 'park', to: ['waiting:capacity', 'waiting:human'], via: ['queueCompletionRefusal', 'completionGate'], pinnedBy: { file: 'workflows/waits-parity-cells.testkit.ts', test: 'U22 a done blocked after the session closed reopens it and delivers the refusal' } },
|
|
80
|
-
{ id: 'running.budget', states: ['running'], trigger: 'The wake budget (40) is spent at a no-wait or refusal turn end', firedBy: 'runner', behavior: 'Cezar\'s budget human wait: waiting', exit: 'park', to: ['waiting:human'], via: ['carryOutHumanWait'], pinnedBy: { file: 'workflows/waits-parity-cells.testkit.ts', test: 'U15 an autonomous run is nudged with the autonomous wording until the budget, then opens a budget human wait' } },
|
|
80
|
+
{ id: 'running.budget', states: ['running'], trigger: 'The wake budget (40) is spent at a no-wait or refusal turn end', firedBy: 'runner', behavior: 'Cezar\'s budget human wait: waiting', exit: 'park', to: ['waiting:human'], via: ['carryOutHumanWait'], pinnedBy: { file: 'workflows/waits-parity-asks-cells.testkit.ts', test: 'U15 an autonomous run is nudged with the autonomous wording until the budget, then opens a budget human wait' } },
|
|
81
81
|
{ id: 'running.native-ask', states: ['running'], trigger: 'A native ask arrives during the turn', firedBy: 'runner', behavior: 'waiting, Needs you; the slot is released', exit: 'park', to: ['waiting:human'], via: ['handleRunnerUiEvent'] },
|
|
82
82
|
{ id: 'running.permission', states: ['running'], trigger: 'A permission prompt arrives', firedBy: 'runner', behavior: 'waiting with hasPendingPermission; the slot is released', exit: 'park', to: ['waiting:permission'], via: ['handleRunnerUiEvent'], pinnedBy: { file: 'workflows/permissions.test.ts', test: 'parks concurrent requests until their exact IDs resolve and blocks all ordinary input' } },
|
|
83
83
|
{ id: 'running.done', states: ['running'], trigger: 'cezar_done is accepted in the last step', firedBy: 'runner', behavior: 'The session closes; done', exit: 'succeed', to: ['done'], via: ['carryOutDone', 'settleExecution', 'settleSuccess', 'commitOrdinarySuccess'] },
|
|
84
84
|
{ id: 'running.done-review', states: ['running'], trigger: 'cezar_done is accepted in the last step', firedBy: 'runner', when: 'the review gate is on (CEZ_REVIEW_GATE) and the task has a diff', behavior: 'review', exit: 'succeed-review', to: ['review'], via: ['commitOrdinarySuccess'], pinnedBy: { file: 'workflows/run.test.ts', test: 'gate on (env) + non-autonomous + changes → review' } },
|
|
85
|
-
{ id: 'running.done-step', states: ['running'], trigger: 'cezar_done in a step that is not the last', firedBy: 'runner', when: 'a workflow with steps left', behavior: 'The next step starts; stays running', exit: null, to: 'same', via: ['runWorkflowSteps'], pinnedBy: { file: 'workflows/waits-parity-cells.testkit.ts', test: 'U6s cezar_done in a workflow step that is not the last completes that step, and the next step runs' } },
|
|
85
|
+
{ id: 'running.done-step', states: ['running'], trigger: 'cezar_done in a step that is not the last', firedBy: 'runner', when: 'a workflow with steps left', behavior: 'The next step starts; stays running', exit: null, to: 'same', via: ['runWorkflowSteps'], pinnedBy: { file: 'workflows/waits-parity-done-cells.testkit.ts', test: 'U6s cezar_done in a workflow step that is not the last completes that step, and the next step runs' } },
|
|
86
86
|
{ id: 'running.check-retry', states: ['running'], trigger: 'A check step fails with retries left', firedBy: 'engine', when: 'a workflow check step', behavior: 'queued for the retry, then running in the same execution', exit: 'requeue', to: ['queued'], via: ['settleCheckStep'], pinnedBy: { file: 'workflows/run-continue-recovery.test.ts', test: 'keeps a check retry budget bounded across a recovered workflow remainder' } },
|
|
87
87
|
{ id: 'running.workflow-rest', states: ['running'], trigger: 'A Continue finishes the workflow step it resumed, with steps left', firedBy: 'runner', when: 'a resumed workflow', behavior: 'queued for the rest of the workflow', exit: 'requeue', to: ['queued'], via: ['settleResumedWorkflowStep'], pinnedBy: { file: 'workflows/run-workflow-remainder-resume.test.ts', test: 'resumes the remaining workflow after an inactive delegated root answers a non-final ask' } },
|
|
88
88
|
{ id: 'running.held', states: ['running'], trigger: 'Before the spawn, the account went into a usage-limit hold, or a parent finish is pending', firedBy: 'engine', when: 'a hold or a pending parent finish', behavior: 'queued, untouched', exit: 'requeue', to: ['queued'], via: ['requeueWhileHeld', 'holdContinuationForRootFinish'], pinnedBy: { file: 'workflows/auto-resume.test.ts', test: 'holds in-place runs too, which dequeue long before they spawn' } },
|
|
@@ -131,7 +131,7 @@ export const RUN_TRIGGERS = [
|
|
|
131
131
|
{ id: 'workers.deadline', states: ['waiting:workers'], trigger: 'An agent worker wait\'s deadline passes (Cezar\'s completion wait has none)', firedBy: 'timer', when: 'the agent set the wait', behavior: 'Resolves timeout; wakes as workers.settle', exit: 'resume', to: ['running'], via: ['armWait', 'resolveWait'] },
|
|
132
132
|
// waiting:peer (hearsay-tools/cezarion#1995). A human message (waiting.message), a family message
|
|
133
133
|
// (waiting.worker-wake), Stop (waiting.stop) and restart (waiting.restart) leave the wait open.
|
|
134
|
-
{ id: 'peer.message', states: ['waiting:peer'], trigger: 'A named peer sends a message of any kind', firedBy: 'peer', behavior: 'Resolves message; the wake joins the line for a regular slot: running', exit: 'resume', to: ['running'], via: ['deliverConversationInput', 'resolvePeerWaits', 'resolvePeerWait', 'resolveWait', 'queueWaitWake'], pinnedBy: { file: 'workflows/waits-parity-cells.testkit.ts', test: 'U19w a peer wait parks a root that reads waiting on 1 task' } },
|
|
134
|
+
{ id: 'peer.message', states: ['waiting:peer'], trigger: 'A named peer sends a message of any kind', firedBy: 'peer', behavior: 'Resolves message; the wake joins the line for a regular slot: running', exit: 'resume', to: ['running'], via: ['deliverConversationInput', 'resolvePeerWaits', 'resolvePeerWait', 'resolveWait', 'queueWaitWake'], pinnedBy: { file: 'workflows/waits-parity-conversations-cells.testkit.ts', test: 'U19w a peer wait parks a root that reads waiting on 1 task' } },
|
|
135
135
|
{ id: 'peer.settled', states: ['waiting:peer'], trigger: 'A named peer reaches review, done, failed or cancelled, or is deleted', firedBy: 'watcher', behavior: 'Resolves settled; wakes as peer.message', exit: 'resume', to: ['running'], via: ['resolvePeerWaits', 'resolvePeerWait', 'resolveWait', 'queueWaitWake'], pinnedBy: { file: 'workflows/peer-waits.test.ts', test: 'resolves the wait as settled' } },
|
|
136
136
|
{ id: 'peer.deadline', states: ['waiting:peer'], trigger: 'The deadline passes', firedBy: 'timer', behavior: 'Resolves timeout; wakes as peer.message', exit: 'resume', to: ['running'], via: ['armWait', 'resolveWait', 'queueWaitWake'], pinnedBy: { file: 'workflows/peer-waits.test.ts', test: 'the deadline resolves the wait as timeout' } },
|
|
137
137
|
{ id: 'peer.beside', states: ['waiting:peer'], trigger: 'Another wait beside it resolves', firedBy: 'watcher', when: 'another wait is open beside it', behavior: 'Wakes with that result: running; the peer wait stays open and the turn end parks on it again', exit: 'resume', to: ['running'], via: ['resolveWait', 'queueWaitWake'], pinnedBy: { file: 'workflows/peer-waits.test.ts', test: 'another wait resolving beside it wakes the run and the peer wait stays open' } },
|
|
@@ -162,7 +162,7 @@ export const RUN_TRIGGERS = [
|
|
|
162
162
|
{ id: 'human.answer', states: ['waiting:human'], trigger: 'The user answers', firedBy: 'human', behavior: 'The wait settles delivered once the answer is saved; running', exit: 'resume', to: ['running'], via: ['deliverMessage', 'resumeParkedRun'] },
|
|
163
163
|
{ id: 'human.parent-answer', states: ['waiting:human'], trigger: 'The parent replies to a routed worker question', firedBy: 'parent', when: 'an owned worker', behavior: 'Answered; the worker resumes', exit: 'resume', to: ['running'], via: ['routeWorkerQuestion'], pinnedBy: { file: 'workflows/worker-waits-messages.test.ts', test: 'the parent\'s answer to a worker question leaves the worker\'s earlier wait open' } },
|
|
164
164
|
{ id: 'human.beside', states: ['waiting:human'], trigger: 'Another wait beside it resolves', firedBy: 'watcher', when: 'another wait is open beside the question', behavior: 'Delivered beside the card: running; it parks again, Needs you', exit: 'resume', to: ['running'], via: ['queueWaitWake'] },
|
|
165
|
-
{ id: 'human.workers', states: ['waiting:human'], trigger: 'A worker messages, settles or asks', firedBy: 'worker', when: 'Cezar\'s completion wait, with workers live', behavior: 'Wakes the run: running', exit: 'resume', to: ['running'], via: ['queueWaitWake'], pinnedBy: { file: 'workflows/waits-parity-cells.testkit.ts', test: 'U19 a worker message beside a pending portable question is delivered and the question stays answerable' } },
|
|
165
|
+
{ id: 'human.workers', states: ['waiting:human'], trigger: 'A worker messages, settles or asks', firedBy: 'worker', when: 'Cezar\'s completion wait, with workers live', behavior: 'Wakes the run: running', exit: 'resume', to: ['running'], via: ['queueWaitWake'], pinnedBy: { file: 'workflows/waits-parity-conversations-cells.testkit.ts', test: 'U19 a worker message beside a pending portable question is delivered and the question stays answerable' } },
|
|
166
166
|
{ id: 'human.worker-fallback', states: ['waiting:human'], trigger: 'A worker\'s fallback question: its session idle-closes (15 min) or a restart finds no process', firedBy: 'timer', when: 'an owned worker on its fallback question', behavior: 'The question is superseded; the worker settles done', exit: 'succeed', to: ['done'], via: ['settleIdleClosedWorker', 'recoverClosedWaitingRun'] },
|
|
167
167
|
{ id: 'human.restart', states: ['waiting:human'], trigger: 'Restart', firedBy: 'recovery', behavior: 'An unshown wait is shown, a transcript ask is adopted, a stale one is settled; stays waiting', exit: 'park', to: 'same', via: ['parkRecoveredRun', 'adoptTranscriptAsk', 'settleAnsweredLegacyAsk'] },
|
|
168
168
|
// waiting:permission
|