@hearsay-tools/squawk 0.18.0-pr4149.8007 → 0.18.0-pr4151.8017
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/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +2 -1
- package/dist/ci-wait/controller.js +1 -1
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +0 -10
- package/dist/ci-wait/tool-catalog.js +1 -21
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tool-env.d.ts +4 -0
- package/dist/ci-wait/tool-env.js +11 -0
- package/dist/ci-wait/tool-env.js.map +1 -0
- package/dist/ci-wait/tool-names.d.ts +10 -0
- package/dist/ci-wait/tool-names.js +21 -0
- package/dist/ci-wait/tool-names.js.map +1 -0
- package/dist/ci-wait/tools.d.ts +3 -1
- package/dist/ci-wait/tools.js +3 -1
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/create-run-input.d.ts +59 -0
- package/dist/contract/discovery.d.ts +0 -1
- package/dist/contract/github.d.ts +0 -18
- package/dist/contract/index.d.ts +4 -0
- package/dist/contract/index.js +2392 -2374
- package/dist/contract/model-choices.d.ts +40 -0
- package/dist/contract/reference-status.d.ts +19 -0
- package/dist/contract/runs.d.ts +0 -57
- package/dist/contract/wait-limits.d.ts +3 -0
- package/dist/contract/wait-tools.d.ts +440 -0
- package/dist/contract/waits.d.ts +2 -441
- package/dist/contract/workspace.d.ts +0 -40
- package/dist/delegation/routes.d.ts +16 -16
- package/dist/delegation/transport.d.ts +10 -10
- package/dist/preview/agent-address.js +1 -1
- package/dist/preview/agent-address.js.map +1 -1
- package/dist/preview/run-tools.js +1 -1
- package/dist/preview/run-tools.js.map +1 -1
- package/dist/runners/antigravity/antigravity-session.js +1 -1
- package/dist/runners/antigravity/antigravity-session.js.map +1 -1
- package/dist/runners/claude/claude-cli-runner.js +1 -1
- package/dist/runners/claude/claude-cli-runner.js.map +1 -1
- package/dist/runners/codex/codex-thread-config.js +1 -1
- package/dist/runners/codex/codex-thread-config.js.map +1 -1
- package/dist/runners/omp/omp-runner.js +1 -1
- package/dist/runners/omp/omp-runner.js.map +1 -1
- package/dist/runners/pi/pi-runner.js +1 -1
- package/dist/runners/pi/pi-runner.js.map +1 -1
- package/dist/runs/archive-family.js +2 -2
- package/dist/runs/archive-family.js.map +1 -1
- package/dist/runs/outcome-commit.js +6 -7
- package/dist/runs/outcome-commit.js.map +1 -1
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/runs/run-exits.d.ts +352 -352
- package/dist/runs/wait-helpers.d.ts +28 -0
- package/dist/runs/wait-helpers.js +34 -0
- package/dist/runs/wait-helpers.js.map +1 -0
- package/dist/runs/wait-phases.d.ts +9 -1
- package/dist/runs/wait-phases.js +17 -2
- package/dist/runs/wait-phases.js.map +1 -1
- package/dist/serve-command.d.ts +1 -1
- package/dist/serve-command.js +1 -1
- package/dist/serve-command.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/preview-cdp-socket.js +1 -1
- package/dist/server/preview-cdp-socket.js.map +1 -1
- package/dist/server/preview-socket.js +1 -1
- package/dist/server/preview-socket.js.map +1 -1
- package/dist/server/server.d.ts +64 -64
- package/dist/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/run/compose.d.ts +2 -1
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/squawk-tools.d.ts +2 -1
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +2 -5
- package/dist/workflows/run/wait-kinds.js +17 -21
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.js +2 -1
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.d.ts +2 -1
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +2 -1
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run-states.d.ts +1 -8
- package/dist/workflows/run-states.js +0 -16
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.d.ts +2 -1
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/waits.d.ts +4 -4
- package/dist/workflows/waits.js +4 -7
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-BvrCdhB1.js → accounts-section-Lxa13E8O.js} +1 -1
- package/web/dist/assets/activity-motion-D-8GF_WP.js +2 -0
- package/web/dist/assets/{activity-route-BZPRmiNI.js → activity-route-Bo-Cyzsz.js} +1 -1
- package/web/dist/assets/{agent-config-section-DEeDIcK_.js → agent-config-section-BE239EYo.js} +2 -2
- package/web/dist/assets/{agent-defaults-section-RYnao4vB.js → agent-defaults-section-Bj5dO6F3.js} +1 -1
- package/web/dist/assets/{appearance-obeD0TrH.js → appearance-C2v7z5MF.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DP12N-QW.js → archive-on-merge-field-Ta3WlY1p.js} +1 -1
- package/web/dist/assets/attention-B1Ei1IW6.js +1 -0
- package/web/dist/assets/{automations-route-bJYe7JKX.js → automations-route-DPpaFR0Q.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-yCI8kY--.js → commit-diff-panel-CzY8bO3p.js} +1 -1
- package/web/dist/assets/{diff-B9wl20YA.js → diff-3jSM3IH7.js} +2 -2
- package/web/dist/assets/{diff-view-C-HieogW.js → diff-view-C3cwyYRv.js} +1 -1
- package/web/dist/assets/{file-preview-BzialgZg.js → file-preview-B71T62DU.js} +1 -1
- package/web/dist/assets/{folder-browser-B8_lzQT7.js → folder-browser-BTYMFLBY.js} +1 -1
- package/web/dist/assets/{git-toolbar-lvqVHT9o.js → git-toolbar-Dng31AhK.js} +1 -1
- package/web/dist/assets/{github-CQhVzG31.js → github-Cft2RNHM.js} +1 -1
- package/web/dist/assets/{global-activity-route-Cnk7K6kB.js → global-activity-route-CngRjBlD.js} +1 -1
- package/web/dist/assets/index-MG3T7zFQ.js +21 -0
- package/web/dist/assets/label-C9IGG0mW.js +1 -0
- package/web/dist/assets/{markdown-BLWEExIH.js → markdown-BDWm6oGX.js} +1 -1
- package/web/dist/assets/{notifications-section-Ci4iCnOt.js → notifications-section-BxIKJ1NF.js} +1 -1
- package/web/dist/assets/{open-in-menu-JhT-c8K6.js → open-in-menu-LbTu2sP4.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-COUwLzj1.js → preview-pane-connected-CGQngtTw.js} +2 -2
- package/web/dist/assets/{project-location-BMreyTgv.js → project-location-B-18C392.js} +1 -1
- package/web/dist/assets/{project-router-DG3CwEiO.js → project-router-DImKA81z.js} +1 -1
- package/web/dist/assets/project-scope-context-D3_4Nfjk.js +4 -0
- package/web/dist/assets/{projects-section-I4Umh57f.js → projects-section-DQ1LxJ3A.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-Byinr-jH.js → prompt-templates-section-C5AYB6Ig.js} +1 -1
- package/web/dist/assets/queries-BaHOUYn4.js +1 -0
- package/web/dist/assets/{reference-chip-Bphmq8DU.js → reference-chip-CdOqXRll.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-CcYe1mbK.js → remote-settings-notice-BTdflMqO.js} +1 -1
- package/web/dist/assets/{repo-git-tmqJIA3Y.js → repo-git-DChiMWrS.js} +1 -1
- package/web/dist/assets/{report-reader-GE7zBDlE.js → report-reader-nV2G6iRk.js} +1 -1
- package/web/dist/assets/{reports-Dzd6o31r.js → reports-CoQqVEy4.js} +1 -1
- package/web/dist/assets/{resources-section-D6yjk2_7.js → resources-section-CVaIlicS.js} +1 -1
- package/web/dist/assets/run-header-xPtXOBkm.js +2 -0
- package/web/dist/assets/{runners-GyEIYtzT.js → runners-DccsyraI.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-gDWJBt2q.js → settings-agent-picker-ixlEQ-MP.js} +1 -1
- package/web/dist/assets/{settings-shell-1kV0mCGg.js → settings-shell-BwknM_fs.js} +1 -1
- package/web/dist/assets/{sidebar-section-bytwajV6.js → sidebar-section-BNy-fRPU.js} +1 -1
- package/web/dist/assets/{skills-oC915Joa.js → skills-CKceHo5J.js} +1 -1
- package/web/dist/assets/{tab-link-BrrGCBYJ.js → tab-link-VCVNqxFc.js} +1 -1
- package/web/dist/assets/{task-changes-CgEF750z.js → task-changes-D4H5YbMo.js} +1 -1
- package/web/dist/assets/{task-commits-CmewNVBz.js → task-commits-BNu0VTTf.js} +1 -1
- package/web/dist/assets/{task-files-x0fUUNIG.js → task-files-C8q8GHYK.js} +1 -1
- package/web/dist/assets/{task-github-item-DuwLqcE4.js → task-github-item-D5kHfnwY.js} +1 -1
- package/web/dist/assets/{task-groups-Ccol3P2t.js → task-groups-C7yO8nMy.js} +1 -1
- package/web/dist/assets/{task-thread-DkgKDQSG.js → task-thread-Dhts8Nbu.js} +6 -6
- package/web/dist/assets/{tasks-table-CbfBNxAB.js → tasks-table-I_z4e7uI.js} +1 -1
- package/web/dist/assets/{thread-state-Nzl4pHXB.js → thread-state-DV19z3BD.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BMWlCZBX.js → use-hand-to-agent-state-C6e6Mgi1.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-C8q14xTE.js → useInfiniteQuery-DR5UfhCS.js} +1 -1
- package/web/dist/assets/useQuery-BMyCehPp.js +1 -0
- package/web/dist/assets/{workflows-BV5oZdB_.js → workflows-BNHmFZRc.js} +2 -2
- package/web/dist/assets/{workspace-tools-NWKvRhWg.js → workspace-tools-UHJAnHEN.js} +1 -1
- package/web/dist/assets/{worktrees-section--MUxuXUq.js → worktrees-section-B4XPx6R5.js} +4 -4
- package/web/dist/assets/{ws-BYbBRDfC.js → ws-CH3zNFKR.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/assets/activity-motion-CyQUo8rH.js +0 -2
- package/web/dist/assets/attention-CSFsCoi5.js +0 -1
- package/web/dist/assets/index-D0DvUgTj.js +0 -21
- package/web/dist/assets/label-CYqEyapm.js +0 -1
- package/web/dist/assets/project-scope-context-BairiAvs.js +0 -4
- package/web/dist/assets/queries-bg9YtgmX.js +0 -1
- package/web/dist/assets/run-header-Cc5Flvc9.js +0 -2
- package/web/dist/assets/useQuery-Berjv5Ts.js +0 -1
package/dist/contract/waits.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { PeerWaitView, WorkerCompletionWait, WorkerWait } from './delegation.ts';
|
|
3
3
|
import type { RunRecord } from './runs.ts';
|
|
4
4
|
import { isUsageLimitHold } from './usage-limit-hold.ts';
|
|
5
|
-
import { WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX } from './wait-limits.ts';
|
|
5
|
+
import { WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX, NOTE_MAX, PID_MIN } from './wait-limits.ts';
|
|
6
6
|
export { withRootLedger, requestsToPeers, workerWaitTargets, computeWaitingOn, asksHuman, asksQuestion, hasResolvedWait, resolveWaitingOn, type WaitingOnInput, type WorkerWaitTarget, } from './waiting-on.ts';
|
|
7
|
-
export { isUsageLimitHold, WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX, };
|
|
7
|
+
export { isUsageLimitHold, WAIT_LIMIT, LAST_WAITS_LIMIT, TIMER_MIN_SECONDS, TIMER_MAX_SECONDS, PROCESS_TIMEOUT_DEFAULT_SECONDS, PROCESS_TIMEOUT_MAX_SECONDS, PROCESS_EXIT_FILE_MAX, PEER_WAIT_DEFAULT_SECONDS, PEER_WAIT_MAX_SECONDS, SUBAGENT_WAIT_DEADLINE_SECONDS, SUBAGENT_WAIT_GRACE_SECONDS, SUBAGENT_WAIT_CHILD_LIMIT, WAIT_MESSAGE_MAX, NOTE_MAX, PID_MIN, };
|
|
8
8
|
/** `open` → `resolved` (its event fired or its deadline passed) → `delivered`, or `cancelled`. */
|
|
9
9
|
export declare const waitPhaseSchema: z.ZodEnum<{
|
|
10
10
|
cancelled: "cancelled";
|
|
@@ -931,63 +931,6 @@ export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
931
931
|
}, z.core.$strict>>;
|
|
932
932
|
}, z.core.$strict>], "kind">;
|
|
933
933
|
export type Wait = z.infer<typeof waitSchema>;
|
|
934
|
-
export declare const squawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
|
-
pr: z.ZodString;
|
|
936
|
-
until: z.ZodDefault<z.ZodEnum<{
|
|
937
|
-
checks: "checks";
|
|
938
|
-
merge: "merge";
|
|
939
|
-
merge_or_blocked: "merge_or_blocked";
|
|
940
|
-
}>>;
|
|
941
|
-
wake_on_conflict: z.ZodDefault<z.ZodBoolean>;
|
|
942
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
943
|
-
head_sha: z.ZodOptional<z.ZodString>;
|
|
944
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
945
|
-
kind: z.ZodLiteral<"pr">;
|
|
946
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
947
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
948
|
-
kind: z.ZodLiteral<"worker">;
|
|
949
|
-
worker_ids: z.ZodArray<z.ZodUUID>;
|
|
950
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
951
|
-
all: "all";
|
|
952
|
-
any: "any";
|
|
953
|
-
one: "one";
|
|
954
|
-
}>>;
|
|
955
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
956
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
957
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
958
|
-
kind: z.ZodLiteral<"request">;
|
|
959
|
-
request_ids: z.ZodArray<z.ZodUUID>;
|
|
960
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
961
|
-
all: "all";
|
|
962
|
-
any: "any";
|
|
963
|
-
one: "one";
|
|
964
|
-
}>>;
|
|
965
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
966
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
967
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
968
|
-
kind: z.ZodLiteral<"peer">;
|
|
969
|
-
peer_ids: z.ZodArray<z.ZodUUID>;
|
|
970
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
971
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
972
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
973
|
-
kind: z.ZodLiteral<"timer">;
|
|
974
|
-
seconds: z.ZodNumber;
|
|
975
|
-
note: z.ZodOptional<z.ZodString>;
|
|
976
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
977
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
978
|
-
kind: z.ZodLiteral<"process">;
|
|
979
|
-
pid: z.ZodNumber;
|
|
980
|
-
exit_file: z.ZodOptional<z.ZodString>;
|
|
981
|
-
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
982
|
-
note: z.ZodOptional<z.ZodString>;
|
|
983
|
-
}, z.core.$strict>], "kind">;
|
|
984
|
-
export type SquawkWaitRequest = z.infer<typeof squawkWaitRequestSchema>;
|
|
985
|
-
/** What a caller may send: the defaults (`until`, `wake_on_conflict`, `timeout_seconds`) still unset. */
|
|
986
|
-
export type SquawkWaitRequestInput = z.input<typeof squawkWaitRequestSchema>;
|
|
987
|
-
export declare const squawkCancelWaitRequestSchema: z.ZodObject<{
|
|
988
|
-
wait_id: z.ZodUUID;
|
|
989
|
-
}, z.core.$strict>;
|
|
990
|
-
export type SquawkCancelWaitRequest = z.infer<typeof squawkCancelWaitRequestSchema>;
|
|
991
934
|
export declare const openWaitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
992
935
|
wait_id: z.ZodUUID;
|
|
993
936
|
summary: z.ZodString;
|
|
@@ -1451,154 +1394,6 @@ export declare const waitRegistrationReceiptSchema: z.ZodObject<{
|
|
|
1451
1394
|
deduplicated: z.ZodBoolean;
|
|
1452
1395
|
}, z.core.$strict>;
|
|
1453
1396
|
export type WaitRegistrationReceipt = z.infer<typeof waitRegistrationReceiptSchema>;
|
|
1454
|
-
export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1455
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
1456
|
-
ok: z.ZodLiteral<true>;
|
|
1457
|
-
effect: z.ZodOptional<z.ZodEnum<{
|
|
1458
|
-
applied: "applied";
|
|
1459
|
-
unchanged: "unchanged";
|
|
1460
|
-
}>>;
|
|
1461
|
-
deduplicated: z.ZodOptional<z.ZodBoolean>;
|
|
1462
|
-
replayed: z.ZodOptional<z.ZodBoolean>;
|
|
1463
|
-
wait_phase: z.ZodOptional<z.ZodEnum<{
|
|
1464
|
-
cancelled: "cancelled";
|
|
1465
|
-
delivered: "delivered";
|
|
1466
|
-
open: "open";
|
|
1467
|
-
resolved: "resolved";
|
|
1468
|
-
unavailable: "unavailable";
|
|
1469
|
-
}>>;
|
|
1470
|
-
wait_id: z.ZodUUID;
|
|
1471
|
-
kind: z.ZodEnum<{
|
|
1472
|
-
peer: "peer";
|
|
1473
|
-
pr: "pr";
|
|
1474
|
-
process: "process";
|
|
1475
|
-
request: "request";
|
|
1476
|
-
timer: "timer";
|
|
1477
|
-
worker: "worker";
|
|
1478
|
-
}>;
|
|
1479
|
-
deadline: z.ZodISODateTime;
|
|
1480
|
-
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1481
|
-
wait_id: z.ZodUUID;
|
|
1482
|
-
summary: z.ZodString;
|
|
1483
|
-
kind: z.ZodEnum<{
|
|
1484
|
-
peer: "peer";
|
|
1485
|
-
pr: "pr";
|
|
1486
|
-
process: "process";
|
|
1487
|
-
subagent: "subagent";
|
|
1488
|
-
timer: "timer";
|
|
1489
|
-
worker: "worker";
|
|
1490
|
-
}>;
|
|
1491
|
-
deadline: z.ZodISODateTime;
|
|
1492
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1493
|
-
wait_id: z.ZodUUID;
|
|
1494
|
-
summary: z.ZodString;
|
|
1495
|
-
kind: z.ZodLiteral<"human">;
|
|
1496
|
-
}, z.core.$strict>], "kind">>;
|
|
1497
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1498
|
-
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
1499
|
-
ok: z.ZodLiteral<false>;
|
|
1500
|
-
effect: z.ZodOptional<z.ZodEnum<{
|
|
1501
|
-
refused: "refused";
|
|
1502
|
-
unknown: "unknown";
|
|
1503
|
-
}>>;
|
|
1504
|
-
retained_wait: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1505
|
-
wait_id: z.ZodUUID;
|
|
1506
|
-
summary: z.ZodString;
|
|
1507
|
-
kind: z.ZodEnum<{
|
|
1508
|
-
peer: "peer";
|
|
1509
|
-
pr: "pr";
|
|
1510
|
-
process: "process";
|
|
1511
|
-
subagent: "subagent";
|
|
1512
|
-
timer: "timer";
|
|
1513
|
-
worker: "worker";
|
|
1514
|
-
}>;
|
|
1515
|
-
deadline: z.ZodISODateTime;
|
|
1516
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1517
|
-
wait_id: z.ZodUUID;
|
|
1518
|
-
summary: z.ZodString;
|
|
1519
|
-
kind: z.ZodLiteral<"human">;
|
|
1520
|
-
}, z.core.$strict>], "kind">>;
|
|
1521
|
-
code: z.ZodEnum<{
|
|
1522
|
-
authentication: "authentication";
|
|
1523
|
-
capability_revoked: "capability_revoked";
|
|
1524
|
-
capacity: "capacity";
|
|
1525
|
-
command_failed: "command_failed";
|
|
1526
|
-
denied_scope: "denied_scope";
|
|
1527
|
-
duplicate_deadline: "duplicate_deadline";
|
|
1528
|
-
exit_file_outside: "exit_file_outside";
|
|
1529
|
-
finish_requested: "finish_requested";
|
|
1530
|
-
generation_mismatch: "generation_mismatch";
|
|
1531
|
-
gh_missing: "gh_missing";
|
|
1532
|
-
inaccessible_pr: "inaccessible_pr";
|
|
1533
|
-
invalid_request: "invalid_request";
|
|
1534
|
-
malformed_data: "malformed_data";
|
|
1535
|
-
manager_disposed: "manager_disposed";
|
|
1536
|
-
messaging_off: "messaging_off";
|
|
1537
|
-
operation_conflict: "operation_conflict";
|
|
1538
|
-
outcome_unknown: "outcome_unknown";
|
|
1539
|
-
output_limit: "output_limit";
|
|
1540
|
-
persistence: "persistence";
|
|
1541
|
-
process_not_allowed: "process_not_allowed";
|
|
1542
|
-
process_not_owned: "process_not_owned";
|
|
1543
|
-
query_timeout: "query_timeout";
|
|
1544
|
-
registration_aborted: "registration_aborted";
|
|
1545
|
-
root_finish_pending: "root_finish_pending";
|
|
1546
|
-
run_cancelled: "run_cancelled";
|
|
1547
|
-
run_missing: "run_missing";
|
|
1548
|
-
run_not_running: "run_not_running";
|
|
1549
|
-
run_stopping: "run_stopping";
|
|
1550
|
-
session_closed: "session_closed";
|
|
1551
|
-
session_replaced: "session_replaced";
|
|
1552
|
-
timers_disabled: "timers_disabled";
|
|
1553
|
-
turn_changed: "turn_changed";
|
|
1554
|
-
unauthorized: "unauthorized";
|
|
1555
|
-
unavailable: "unavailable";
|
|
1556
|
-
unsupported_host: "unsupported_host";
|
|
1557
|
-
wait_conflict: "wait_conflict";
|
|
1558
|
-
wake_budget_spent: "wake_budget_spent";
|
|
1559
|
-
worker_execution_stopped: "worker_execution_stopped";
|
|
1560
|
-
worker_wait_pending: "worker_wait_pending";
|
|
1561
|
-
}>;
|
|
1562
|
-
message: z.ZodString;
|
|
1563
|
-
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1564
|
-
wait_id: z.ZodUUID;
|
|
1565
|
-
summary: z.ZodString;
|
|
1566
|
-
kind: z.ZodEnum<{
|
|
1567
|
-
peer: "peer";
|
|
1568
|
-
pr: "pr";
|
|
1569
|
-
process: "process";
|
|
1570
|
-
subagent: "subagent";
|
|
1571
|
-
timer: "timer";
|
|
1572
|
-
worker: "worker";
|
|
1573
|
-
}>;
|
|
1574
|
-
deadline: z.ZodISODateTime;
|
|
1575
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1576
|
-
wait_id: z.ZodUUID;
|
|
1577
|
-
summary: z.ZodString;
|
|
1578
|
-
kind: z.ZodLiteral<"human">;
|
|
1579
|
-
}, z.core.$strict>], "kind">>>;
|
|
1580
|
-
}, z.core.$strict>], "ok">;
|
|
1581
|
-
export type SquawkWaitAnswer = z.infer<typeof squawkWaitAnswerSchema>;
|
|
1582
|
-
/**
|
|
1583
|
-
* `cezar_ask` (hearsay-tools/cezarion#1234): the user's answer, asked with a card. A question
|
|
1584
|
-
* without options is open, and the user types its answer. The wait it opens has no deadline.
|
|
1585
|
-
* `context` is required here (hearsay-tools/cezarion#1458), optional in every stored shape.
|
|
1586
|
-
*/
|
|
1587
|
-
export declare const squawkAskRequestSchema: z.ZodObject<{
|
|
1588
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1589
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1590
|
-
header: z.ZodString;
|
|
1591
|
-
question: z.ZodString;
|
|
1592
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1593
|
-
label: z.ZodString;
|
|
1594
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1595
|
-
}, z.core.$strict>>>;
|
|
1596
|
-
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
1597
|
-
allowFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
1598
|
-
}, z.core.$strict>>;
|
|
1599
|
-
context: z.ZodString;
|
|
1600
|
-
}, z.core.$strict>;
|
|
1601
|
-
export type SquawkAskRequest = z.infer<typeof squawkAskRequestSchema>;
|
|
1602
1397
|
/** The refusals a question can meet: the session's, the run's capacity, and an autonomous run. */
|
|
1603
1398
|
export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
1604
1399
|
autonomous_run: "autonomous_run";
|
|
@@ -1623,126 +1418,6 @@ export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
|
1623
1418
|
worker_wait_pending: "worker_wait_pending";
|
|
1624
1419
|
}>;
|
|
1625
1420
|
export type AskErrorCode = z.infer<typeof askErrorCodeSchema>;
|
|
1626
|
-
export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1627
|
-
ok: z.ZodLiteral<true>;
|
|
1628
|
-
wait_id: z.ZodUUID;
|
|
1629
|
-
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1630
|
-
wait_id: z.ZodUUID;
|
|
1631
|
-
summary: z.ZodString;
|
|
1632
|
-
kind: z.ZodEnum<{
|
|
1633
|
-
peer: "peer";
|
|
1634
|
-
pr: "pr";
|
|
1635
|
-
process: "process";
|
|
1636
|
-
subagent: "subagent";
|
|
1637
|
-
timer: "timer";
|
|
1638
|
-
worker: "worker";
|
|
1639
|
-
}>;
|
|
1640
|
-
deadline: z.ZodISODateTime;
|
|
1641
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1642
|
-
wait_id: z.ZodUUID;
|
|
1643
|
-
summary: z.ZodString;
|
|
1644
|
-
kind: z.ZodLiteral<"human">;
|
|
1645
|
-
}, z.core.$strict>], "kind">>;
|
|
1646
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1647
|
-
ok: z.ZodLiteral<false>;
|
|
1648
|
-
code: z.ZodEnum<{
|
|
1649
|
-
autonomous_run: "autonomous_run";
|
|
1650
|
-
capability_revoked: "capability_revoked";
|
|
1651
|
-
capacity: "capacity";
|
|
1652
|
-
finish_requested: "finish_requested";
|
|
1653
|
-
generation_mismatch: "generation_mismatch";
|
|
1654
|
-
invalid_request: "invalid_request";
|
|
1655
|
-
manager_disposed: "manager_disposed";
|
|
1656
|
-
persistence: "persistence";
|
|
1657
|
-
root_finish_pending: "root_finish_pending";
|
|
1658
|
-
run_cancelled: "run_cancelled";
|
|
1659
|
-
run_missing: "run_missing";
|
|
1660
|
-
run_not_running: "run_not_running";
|
|
1661
|
-
run_stopping: "run_stopping";
|
|
1662
|
-
session_closed: "session_closed";
|
|
1663
|
-
session_replaced: "session_replaced";
|
|
1664
|
-
supervisor_is_worker: "supervisor_is_worker";
|
|
1665
|
-
unauthorized: "unauthorized";
|
|
1666
|
-
unavailable: "unavailable";
|
|
1667
|
-
worker_execution_stopped: "worker_execution_stopped";
|
|
1668
|
-
worker_wait_pending: "worker_wait_pending";
|
|
1669
|
-
}>;
|
|
1670
|
-
message: z.ZodString;
|
|
1671
|
-
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1672
|
-
wait_id: z.ZodUUID;
|
|
1673
|
-
summary: z.ZodString;
|
|
1674
|
-
kind: z.ZodEnum<{
|
|
1675
|
-
peer: "peer";
|
|
1676
|
-
pr: "pr";
|
|
1677
|
-
process: "process";
|
|
1678
|
-
subagent: "subagent";
|
|
1679
|
-
timer: "timer";
|
|
1680
|
-
worker: "worker";
|
|
1681
|
-
}>;
|
|
1682
|
-
deadline: z.ZodISODateTime;
|
|
1683
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1684
|
-
wait_id: z.ZodUUID;
|
|
1685
|
-
summary: z.ZodString;
|
|
1686
|
-
kind: z.ZodLiteral<"human">;
|
|
1687
|
-
}, z.core.$strict>], "kind">>>;
|
|
1688
|
-
}, z.core.$strict>], "ok">;
|
|
1689
|
-
export type SquawkAskAnswer = z.infer<typeof squawkAskAnswerSchema>;
|
|
1690
|
-
/** `already_resolved`: the result is owed and arrives with the next wake; cancelling is a no-op.
|
|
1691
|
-
* `human_question`: the question already reached the user, so only their answer ends it. */
|
|
1692
|
-
export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1693
|
-
cancelled: z.ZodLiteral<true>;
|
|
1694
|
-
wait_id: z.ZodUUID;
|
|
1695
|
-
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1696
|
-
wait_id: z.ZodUUID;
|
|
1697
|
-
summary: z.ZodString;
|
|
1698
|
-
kind: z.ZodEnum<{
|
|
1699
|
-
peer: "peer";
|
|
1700
|
-
pr: "pr";
|
|
1701
|
-
process: "process";
|
|
1702
|
-
subagent: "subagent";
|
|
1703
|
-
timer: "timer";
|
|
1704
|
-
worker: "worker";
|
|
1705
|
-
}>;
|
|
1706
|
-
deadline: z.ZodISODateTime;
|
|
1707
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1708
|
-
wait_id: z.ZodUUID;
|
|
1709
|
-
summary: z.ZodString;
|
|
1710
|
-
kind: z.ZodLiteral<"human">;
|
|
1711
|
-
}, z.core.$strict>], "kind">>;
|
|
1712
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1713
|
-
cancelled: z.ZodLiteral<false>;
|
|
1714
|
-
code: z.ZodEnum<{
|
|
1715
|
-
already_resolved: "already_resolved";
|
|
1716
|
-
human_question: "human_question";
|
|
1717
|
-
invalid_request: "invalid_request";
|
|
1718
|
-
not_found: "not_found";
|
|
1719
|
-
unavailable: "unavailable";
|
|
1720
|
-
}>;
|
|
1721
|
-
message: z.ZodString;
|
|
1722
|
-
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1723
|
-
wait_id: z.ZodUUID;
|
|
1724
|
-
summary: z.ZodString;
|
|
1725
|
-
kind: z.ZodEnum<{
|
|
1726
|
-
peer: "peer";
|
|
1727
|
-
pr: "pr";
|
|
1728
|
-
process: "process";
|
|
1729
|
-
subagent: "subagent";
|
|
1730
|
-
timer: "timer";
|
|
1731
|
-
worker: "worker";
|
|
1732
|
-
}>;
|
|
1733
|
-
deadline: z.ZodISODateTime;
|
|
1734
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1735
|
-
wait_id: z.ZodUUID;
|
|
1736
|
-
summary: z.ZodString;
|
|
1737
|
-
kind: z.ZodLiteral<"human">;
|
|
1738
|
-
}, z.core.$strict>], "kind">>>;
|
|
1739
|
-
}, z.core.$strict>], "cancelled">;
|
|
1740
|
-
export type SquawkCancelWaitAnswer = z.infer<typeof squawkCancelWaitAnswerSchema>;
|
|
1741
|
-
/** `cezar_done`: the run finishes when this turn ends. The summary becomes the closing note. */
|
|
1742
|
-
export declare const squawkDoneRequestSchema: z.ZodObject<{
|
|
1743
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1744
|
-
}, z.core.$strict>;
|
|
1745
|
-
export type SquawkDoneRequest = z.infer<typeof squawkDoneRequestSchema>;
|
|
1746
1421
|
export declare const doneErrorCodeSchema: z.ZodEnum<{
|
|
1747
1422
|
capability_revoked: "capability_revoked";
|
|
1748
1423
|
finish_requested: "finish_requested";
|
|
@@ -1788,120 +1463,6 @@ export declare const doneOwedInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1788
1463
|
input_id: z.ZodString;
|
|
1789
1464
|
}, z.core.$strict>], "kind">;
|
|
1790
1465
|
export type DoneOwedInput = z.infer<typeof doneOwedInputSchema>;
|
|
1791
|
-
/** An accepted done finishes the task, or, in a workflow step that is not the last, completes that
|
|
1792
|
-
* step and starts `next_step`, named as the run's rail names it (hearsay-tools/cezarion#1620). */
|
|
1793
|
-
export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1794
|
-
ok: z.ZodLiteral<true>;
|
|
1795
|
-
finishes: z.ZodLiteral<"at_turn_end">;
|
|
1796
|
-
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1797
|
-
wait_id: z.ZodUUID;
|
|
1798
|
-
summary: z.ZodString;
|
|
1799
|
-
kind: z.ZodEnum<{
|
|
1800
|
-
peer: "peer";
|
|
1801
|
-
pr: "pr";
|
|
1802
|
-
process: "process";
|
|
1803
|
-
subagent: "subagent";
|
|
1804
|
-
timer: "timer";
|
|
1805
|
-
worker: "worker";
|
|
1806
|
-
}>;
|
|
1807
|
-
deadline: z.ZodISODateTime;
|
|
1808
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1809
|
-
wait_id: z.ZodUUID;
|
|
1810
|
-
summary: z.ZodString;
|
|
1811
|
-
kind: z.ZodLiteral<"human">;
|
|
1812
|
-
}, z.core.$strict>], "kind">>;
|
|
1813
|
-
completes: z.ZodLiteral<"task">;
|
|
1814
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1815
|
-
ok: z.ZodLiteral<true>;
|
|
1816
|
-
finishes: z.ZodLiteral<"at_turn_end">;
|
|
1817
|
-
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1818
|
-
wait_id: z.ZodUUID;
|
|
1819
|
-
summary: z.ZodString;
|
|
1820
|
-
kind: z.ZodEnum<{
|
|
1821
|
-
peer: "peer";
|
|
1822
|
-
pr: "pr";
|
|
1823
|
-
process: "process";
|
|
1824
|
-
subagent: "subagent";
|
|
1825
|
-
timer: "timer";
|
|
1826
|
-
worker: "worker";
|
|
1827
|
-
}>;
|
|
1828
|
-
deadline: z.ZodISODateTime;
|
|
1829
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1830
|
-
wait_id: z.ZodUUID;
|
|
1831
|
-
summary: z.ZodString;
|
|
1832
|
-
kind: z.ZodLiteral<"human">;
|
|
1833
|
-
}, z.core.$strict>], "kind">>;
|
|
1834
|
-
completes: z.ZodLiteral<"step">;
|
|
1835
|
-
next_step: z.ZodString;
|
|
1836
|
-
}, z.core.$strict>], "completes">, z.ZodObject<{
|
|
1837
|
-
ok: z.ZodLiteral<false>;
|
|
1838
|
-
code: z.ZodEnum<{
|
|
1839
|
-
capability_revoked: "capability_revoked";
|
|
1840
|
-
finish_requested: "finish_requested";
|
|
1841
|
-
generation_mismatch: "generation_mismatch";
|
|
1842
|
-
human_question_pending: "human_question_pending";
|
|
1843
|
-
input_pending: "input_pending";
|
|
1844
|
-
invalid_request: "invalid_request";
|
|
1845
|
-
manager_disposed: "manager_disposed";
|
|
1846
|
-
not_final_step: "not_final_step";
|
|
1847
|
-
requests_outstanding: "requests_outstanding";
|
|
1848
|
-
requests_unanswered: "requests_unanswered";
|
|
1849
|
-
root_finish_pending: "root_finish_pending";
|
|
1850
|
-
run_cancelled: "run_cancelled";
|
|
1851
|
-
run_missing: "run_missing";
|
|
1852
|
-
run_not_running: "run_not_running";
|
|
1853
|
-
run_stopping: "run_stopping";
|
|
1854
|
-
session_closed: "session_closed";
|
|
1855
|
-
session_replaced: "session_replaced";
|
|
1856
|
-
unavailable: "unavailable";
|
|
1857
|
-
worker_questions: "worker_questions";
|
|
1858
|
-
worker_wait_pending: "worker_wait_pending";
|
|
1859
|
-
workers_outstanding: "workers_outstanding";
|
|
1860
|
-
workers_uncollected: "workers_uncollected";
|
|
1861
|
-
}>;
|
|
1862
|
-
message: z.ZodString;
|
|
1863
|
-
workers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1864
|
-
worker_id: z.ZodString;
|
|
1865
|
-
reason: z.ZodEnum<{
|
|
1866
|
-
outstanding: "outstanding";
|
|
1867
|
-
question: "question";
|
|
1868
|
-
uncollected: "uncollected";
|
|
1869
|
-
}>;
|
|
1870
|
-
}, z.core.$strict>>>;
|
|
1871
|
-
open_waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1872
|
-
wait_id: z.ZodUUID;
|
|
1873
|
-
summary: z.ZodString;
|
|
1874
|
-
kind: z.ZodEnum<{
|
|
1875
|
-
peer: "peer";
|
|
1876
|
-
pr: "pr";
|
|
1877
|
-
process: "process";
|
|
1878
|
-
subagent: "subagent";
|
|
1879
|
-
timer: "timer";
|
|
1880
|
-
worker: "worker";
|
|
1881
|
-
}>;
|
|
1882
|
-
deadline: z.ZodISODateTime;
|
|
1883
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1884
|
-
wait_id: z.ZodUUID;
|
|
1885
|
-
summary: z.ZodString;
|
|
1886
|
-
kind: z.ZodLiteral<"human">;
|
|
1887
|
-
}, z.core.$strict>], "kind">>>;
|
|
1888
|
-
owed: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1889
|
-
kind: z.ZodLiteral<"wait_result">;
|
|
1890
|
-
wait_id: z.ZodString;
|
|
1891
|
-
wait_kind: z.ZodString;
|
|
1892
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1893
|
-
kind: z.ZodLiteral<"queued">;
|
|
1894
|
-
input_id: z.ZodOptional<z.ZodString>;
|
|
1895
|
-
source: z.ZodString;
|
|
1896
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1897
|
-
kind: z.ZodLiteral<"in_flight">;
|
|
1898
|
-
input_id: z.ZodString;
|
|
1899
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1900
|
-
kind: z.ZodLiteral<"unread">;
|
|
1901
|
-
input_id: z.ZodString;
|
|
1902
|
-
}, z.core.$strict>], "kind">>>;
|
|
1903
|
-
}, z.core.$strict>], "ok">;
|
|
1904
|
-
export type SquawkDoneAnswer = z.infer<typeof squawkDoneAnswerSchema>;
|
|
1905
1466
|
/** Stored summaries written before hearsay-tools/cezarion#1425 carry `{ kind: 'ci' }`: a checks wait. */
|
|
1906
1467
|
export declare const waitingOnSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1907
1468
|
kind: z.ZodLiteral<"human">;
|
|
@@ -446,25 +446,6 @@ export declare const providerSignInSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
446
446
|
error: z.ZodString;
|
|
447
447
|
}, z.core.$strip>], "state">;
|
|
448
448
|
export type ProviderSignIn = z.infer<typeof providerSignInSchema>;
|
|
449
|
-
/**
|
|
450
|
-
* A runner whose model list is discovered from the host: every registered runner has a model
|
|
451
|
-
* catalog (its definition's `loadModelCatalog`). The route's query validator and the picker use it.
|
|
452
|
-
*/
|
|
453
|
-
export declare const modelDiscoveryRunnerSchema: z.ZodString;
|
|
454
|
-
export type ModelDiscoveryRunner = z.infer<typeof modelDiscoveryRunnerSchema>;
|
|
455
|
-
export declare const runnerModelOptionSchema: z.ZodObject<{
|
|
456
|
-
id: z.ZodString;
|
|
457
|
-
label: z.ZodString;
|
|
458
|
-
description: z.ZodString;
|
|
459
|
-
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
460
|
-
high: "high";
|
|
461
|
-
low: "low";
|
|
462
|
-
max: "max";
|
|
463
|
-
medium: "medium";
|
|
464
|
-
xhigh: "xhigh";
|
|
465
|
-
}>>>;
|
|
466
|
-
}, z.core.$strip>;
|
|
467
|
-
export type RunnerModelOption = z.infer<typeof runnerModelOptionSchema>;
|
|
468
449
|
/** `GET /api/v1/models?runner=codex|opencode|pi` — the models discovered from that runner's own
|
|
469
450
|
* host installation, plus how fresh the answer is. Never an error: an unavailable CLI degrades
|
|
470
451
|
* to `source: 'unavailable'` with a `reason`. Claude has no host-local catalog and is rejected. */
|
|
@@ -491,27 +472,6 @@ export declare const runnerModelCatalogResponseSchema: z.ZodObject<{
|
|
|
491
472
|
reason: z.ZodOptional<z.ZodString>;
|
|
492
473
|
}, z.core.$strip>;
|
|
493
474
|
export type RunnerModelCatalogResponse = z.infer<typeof runnerModelCatalogResponseSchema>;
|
|
494
|
-
/** The models a spawn could pin instead of an unknown one, in a delegation error. It lives here,
|
|
495
|
-
* beside its parts, so `delegation.ts` does not load `discovery.ts` (hearsay-tools/cezarion#3241);
|
|
496
|
-
* `discovery.ts` re-exports it. */
|
|
497
|
-
export declare const modelChoicesSchema: z.ZodObject<{
|
|
498
|
-
runner: z.ZodString;
|
|
499
|
-
requestedModel: z.ZodString;
|
|
500
|
-
availableModels: z.ZodArray<z.ZodObject<{
|
|
501
|
-
id: z.ZodString;
|
|
502
|
-
label: z.ZodString;
|
|
503
|
-
description: z.ZodString;
|
|
504
|
-
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
505
|
-
high: "high";
|
|
506
|
-
low: "low";
|
|
507
|
-
max: "max";
|
|
508
|
-
medium: "medium";
|
|
509
|
-
xhigh: "xhigh";
|
|
510
|
-
}>>>;
|
|
511
|
-
}, z.core.$strip>>;
|
|
512
|
-
otherRunners: z.ZodArray<z.ZodString>;
|
|
513
|
-
}, z.core.$strip>;
|
|
514
|
-
export type ModelChoices = z.infer<typeof modelChoicesSchema>;
|
|
515
475
|
/** A local app a worktree can be opened in (#open-in): editor, file manager, or terminal. */
|
|
516
476
|
export declare const openTargetSchema: z.ZodObject<{
|
|
517
477
|
id: z.ZodString;
|
|
@@ -91,6 +91,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
91
|
"/discover": {
|
|
92
92
|
$post: {
|
|
93
93
|
output: {
|
|
94
|
+
tasks: {
|
|
95
|
+
id: string;
|
|
96
|
+
title: string;
|
|
97
|
+
runner?: string | undefined;
|
|
98
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
99
|
+
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
100
|
+
attentionLabel: string;
|
|
101
|
+
accepts: boolean;
|
|
102
|
+
reason?: string | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
nextOffset?: number | undefined;
|
|
105
|
+
} | {
|
|
94
106
|
scope: "host-default-account";
|
|
95
107
|
runners: {
|
|
96
108
|
requiresAccountHome?: boolean | undefined;
|
|
@@ -111,18 +123,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
111
123
|
source: "cache" | "live" | "unavailable";
|
|
112
124
|
stale: boolean;
|
|
113
125
|
reason?: string | undefined;
|
|
114
|
-
} | {
|
|
115
|
-
tasks: {
|
|
116
|
-
id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
runner?: string | undefined;
|
|
119
|
-
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
120
|
-
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
121
|
-
attentionLabel: string;
|
|
122
|
-
accepts: boolean;
|
|
123
|
-
reason?: string | undefined;
|
|
124
|
-
}[];
|
|
125
|
-
nextOffset?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
outputFormat: "json";
|
|
128
128
|
status: 200;
|
|
@@ -232,13 +232,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
232
232
|
status: 200;
|
|
233
233
|
input: {
|
|
234
234
|
json: {
|
|
235
|
-
workerIds: string[];
|
|
236
|
-
timeoutSeconds?: number | undefined;
|
|
237
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
238
|
-
} | {
|
|
239
235
|
requestIds: string[];
|
|
240
236
|
mode?: "all" | "any" | "one" | undefined;
|
|
241
237
|
timeoutSeconds?: number | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
workerIds: string[];
|
|
240
|
+
timeoutSeconds?: number | undefined;
|
|
241
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
242
242
|
} | {
|
|
243
243
|
peerIds: string[];
|
|
244
244
|
timeoutSeconds?: number | undefined;
|
|
@@ -76,6 +76,16 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
76
76
|
source: "cache" | "live" | "unavailable";
|
|
77
77
|
stale: boolean;
|
|
78
78
|
reason?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
scope: "host-default-account";
|
|
81
|
+
runners: {
|
|
82
|
+
requiresAccountHome?: boolean | undefined;
|
|
83
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
84
|
+
enabled?: boolean | undefined;
|
|
85
|
+
hint?: string | undefined;
|
|
86
|
+
authFailureId?: string | undefined;
|
|
87
|
+
runner: string;
|
|
88
|
+
}[];
|
|
79
89
|
} | {
|
|
80
90
|
tasks: {
|
|
81
91
|
id: string;
|
|
@@ -88,16 +98,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
88
98
|
reason?: string | undefined;
|
|
89
99
|
}[];
|
|
90
100
|
nextOffset?: number | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
scope: "host-default-account";
|
|
93
|
-
runners: {
|
|
94
|
-
requiresAccountHome?: boolean | undefined;
|
|
95
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
96
|
-
enabled?: boolean | undefined;
|
|
97
|
-
hint?: string | undefined;
|
|
98
|
-
authFailureId?: string | undefined;
|
|
99
|
-
runner: string;
|
|
100
|
-
}[];
|
|
101
101
|
};
|
|
102
102
|
outputFormat: "json";
|
|
103
103
|
status: 200;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { productEnvEntries } from '../core/product-env.js';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
-
import { previewToolEnabled } from '../ci-wait/tool-
|
|
3
|
+
import { previewToolEnabled } from '../ci-wait/tool-env.js';
|
|
4
4
|
/**
|
|
5
5
|
* The agent's preview browser address (hearsay-tools/cezarion#784, spec
|
|
6
6
|
* 2026-10-26-preview-agent-cdp): the cockpit's own bound origin as `ws:`, at the CDP proxy route,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-address.js","sourceRoot":"","sources":["../../src/preview/agent-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"agent-address.js","sourceRoot":"","sources":["../../src/preview/agent-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAI5D;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,aAAqB,EAAE,KAAa;IAChE,IAAI,OAAY,CAAC;IACjB,IAAI,CAAC;QACH,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,CAAC,QAAQ,GAAG,uBAAuB,KAAK,EAAE,CAAC;IAClD,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC;IACnC,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAED;;;;GAIG;AACH,MAAM,UA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,EAAE,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACrF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { previewStopRequestSchema, previewServeRequestSchema } from '../contract/index.js';
|
|
3
|
-
import { previewToolEnabled } from '../ci-wait/tool-
|
|
3
|
+
import { previewToolEnabled } from '../ci-wait/tool-env.js';
|
|
4
4
|
import { previewStopResult, previewResult, validateRegistration } from './registration.js';
|
|
5
5
|
export async function stopPreviewServer(store, preview, squawkPort, disposed, runId, request, signal) {
|
|
6
6
|
const parsed = previewStopRequestSchema.parse(request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-tools.js","sourceRoot":"","sources":["../../src/preview/run-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAsG,MAAM,sCAAsC,CAAC;AAE/M,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"run-tools.js","sourceRoot":"","sources":["../../src/preview/run-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAsG,MAAM,sCAAsC,CAAC;AAE/M,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,EAAwB,MAAM,mBAAmB,CAAC;AAEjH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,KAAe,EAAE,OAAoC,EAAE,UAAkD,EAAE,QAAuB,EAAE,KAAa,EAAE,OAA2B,EAAE,MAAoB;IACxO,MAAM,MAAM,GAAG,wBAAwB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACvD,IAAI,CAAC,kBAAk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