@hearsay-tools/squawk 0.18.0-dev.8239 → 0.18.0-dev.8243

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.
Files changed (35) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/ci-wait/controller.d.ts +9 -7
  3. package/dist/ci-wait/controller.js +6 -2
  4. package/dist/ci-wait/controller.js.map +1 -1
  5. package/dist/core/agent-env.js +1 -0
  6. package/dist/core/agent-env.js.map +1 -1
  7. package/dist/core/native-mock.d.ts +6 -0
  8. package/dist/core/native-mock.js +26 -0
  9. package/dist/core/native-mock.js.map +1 -0
  10. package/dist/core/runner-definition.d.ts +6 -1
  11. package/dist/core/runner-definition.js.map +1 -1
  12. package/dist/core/skill-probe.js +2 -2
  13. package/dist/core/skill-probe.js.map +1 -1
  14. package/dist/delegation/routes.d.ts +75 -75
  15. package/dist/delegation/transport.d.ts +14 -14
  16. package/dist/pack-check.d.ts +3 -1
  17. package/dist/pack-check.js +7 -1
  18. package/dist/pack-check.js.map +1 -1
  19. package/dist/plugin/runner-kit.d.ts +1 -0
  20. package/dist/plugin/runner-kit.js +1 -0
  21. package/dist/plugin/runner-kit.js.map +1 -1
  22. package/dist/plugin/runtime.d.ts +1 -0
  23. package/dist/plugin/runtime.js +1 -0
  24. package/dist/plugin/runtime.js.map +1 -1
  25. package/dist/runs/run-decode.d.ts +72 -72
  26. package/dist/server/activity-routes.d.ts +23 -23
  27. package/dist/server/models-routes.d.ts +13 -13
  28. package/dist/server/server.d.ts +6 -6
  29. package/dist/server/workspace-live-routes.d.ts +6 -6
  30. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  31. package/dist/workflows/run/wait-engine.d.ts +72 -72
  32. package/package.json +5 -5
  33. package/scripts/check-pack.mjs +7 -4
  34. package/scripts/copy-runner-assets.d.mts +2 -0
  35. package/scripts/copy-runner-assets.mjs +69 -0
@@ -26,8 +26,10 @@ export const PLUGIN_ENTRY_FILES = [
26
26
  * - every file of `PLUGIN_ENTRY_FILES`;
27
27
  * - `dist/runners/<id>/index.js` for each id of `bundledRunnerIds`: boot loads each bundled
28
28
  * runner from that entry, so a runner without one is missing from the cockpit.
29
+ * And (spec 2026-11-25-self-contained-runner-folders, Decision 3):
30
+ * - every copied runner `.mjs` asset in `runnerAssetFiles` (`dist/runners/<id>/...`).
29
31
  */
30
- export function findPackGaps(packedFiles, bundledRunnerIds) {
32
+ export function findPackGaps(packedFiles, bundledRunnerIds, runnerAssetFiles = []) {
31
33
  const gaps = [];
32
34
  if (!packedFiles.includes('web/dist/index.html')) {
33
35
  gaps.push('web/dist/index.html is missing — the tarball would ship no UI shell (run `npm run build:web`)');
@@ -46,6 +48,10 @@ export function findPackGaps(packedFiles, bundledRunnerIds) {
46
48
  if (!packedFiles.includes(entry))
47
49
  gaps.push(`${entry} is missing — boot would not load the ${id} runner (run \`npm run build\`)`);
48
50
  }
51
+ for (const asset of runnerAssetFiles) {
52
+ if (!packedFiles.includes(asset))
53
+ gaps.push(`${asset} is missing — runner asset was not copied into dist/ (run \`npm run build\`)`);
54
+ }
49
55
  return gaps;
50
56
  }
51
57
  //# sourceMappingURL=pack-check.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pack-check.js","sourceRoot":"","sources":["../src/pack-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;8FAC8F;AAC9F,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,sBAAsB;IACtB,wBAAwB;IACxB,+BAA+B;IAC/B,4BAA4B;IAC5B,uBAAuB;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,WAA8B,EAAE,gBAAmC;IAC9F,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,+FAA+F,CAAC,CAAC;IAC7G,CAAC;IACD,I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AAC;QACjD,IAAI,CAAC,IAAI,CAAC,+FAA+F,CAAC,CAAC;IAC7G,CAAC;IACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;QACvG,IAAI,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;IAChG,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,qFAAqF,CAAC,CAAC;IAC3I,CAAC;IACD,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAAE,IAAI,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;IAC/G,KAAK,MAAM,EAAE,IAAI,gBAAgB,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,gBAAgB,EAAE,WAAW,CAAC;QAC5C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,yCAAyC,EAAE,iCAAiC,CAAC,CAAC;IACpI,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,gBAAgB,EAAE,CAAC;QACrC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,8EAA8E,CAAC,CAAC;IACtI,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -7,6 +7,7 @@
7
7
  * storage, or Pi RPC code.
8
8
  * Unstable: it may change in any release until Squawk installs plugins from npm or git.
9
9
  */
10
+ export { z } from 'zod';
10
11
  export { defineRunner } from '../core/runner-definition.ts';
11
12
  export type { RunnerAccountsData, RunnerBrowserSignIn, RunnerCli, RunnerConfigFiles, RunnerDetection, RunnerDisplay, RunnerEnv, RunnerLoginData, RunnerLoginStatus, RunnerMock, RunnerModelData, } from '../core/runner-definition.ts';
12
13
  export type { RunnerFacts } from '../core/runner-facts.ts';
@@ -8,6 +8,7 @@
8
8
  * Unstable: it may change in any release until Squawk installs plugins from npm or git.
9
9
  */
10
10
  // Runner definition and adapter contract.
11
+ export { z } from 'zod';
11
12
  export { defineRunner } from '../core/runner-definition.js';
12
13
  export { SQUAWK_SIDE_SPEC_SUPPORT } from '../core/agent-runner-values.js';
13
14
  // Environment and paths needed by definitions and metadata.
@@ -1 +1 @@
1
- {"version":3,"file":"runner-kit.js","sourceRoot":"","sources":["../../src/plugin/runner-kit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,0CAA0C;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAU5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,4DAA4D;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAoB1D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAKxE,+CAA+C;AAC/C,OAAO,EACL,qBAAqB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,6BAA6B,EAC1G,wBAAwB,GACzB,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"runner-kit.js","sourceRoot":"","sources":["../../src/plugin/runner-kit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAU5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,4DAA4D;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAoB1D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAKxE,+CAA+C;AAC/C,OAAO,EACL,qBAAqB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,6BAA6B,EAC1G,wBAAwB,GACzB,MAAM,yBAAyB,CAAC"}
@@ -27,6 +27,7 @@ export { costWeightedTokens } from '../core/usage.ts';
27
27
  export { squawkToolEnvNames, squawkToolNames } from '../ci-wait/tool-names.ts';
28
28
  export { claudeSkillContent, openingContent, openingInput, skillOf, slashSkillPrompt, validSkillMessage } from '../core/skill-trigger.ts';
29
29
  export { skillLines, skillOutput, skillProbe } from '../core/skill-probe.ts';
30
+ export { nativeMockPath } from '../core/native-mock.ts';
30
31
  export { skillPathPlugin, skillPathScope } from '../core/skill-path-scope.ts';
31
32
  export { formatModelIdentity, parseModelIdentity } from '../core/model-identity.ts';
32
33
  export { spawnModelProbe } from '../core/model-probe-spawn.ts';
@@ -27,6 +27,7 @@ export { costWeightedTokens } from '../core/usage.js';
27
27
  export { squawkToolEnvNames, squawkToolNames } from '../ci-wait/tool-names.js';
28
28
  export { claudeSkillContent, openingContent, openingInput, skillOf, slashSkillPrompt, validSkillMessage } from '../core/skill-trigger.js';
29
29
  export { skillLines, skillOutput, skillProbe } from '../core/skill-probe.js';
30
+ export { nativeMockPath } from '../core/native-mock.js';
30
31
  export { skillPathPlugin, skillPathScope } from '../core/skill-path-scope.js';
31
32
  export { formatModelIdentity, parseModelIdentity } from '../core/model-identity.js';
32
33
  export { spawnModelProbe } from '../core/model-probe-spawn.js';
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/plugin/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iCAAiC,EAAE,YAAY,EAAE,uBAAuB,EAAE,mBAAmB,EAC7F,cAAc,EAAE,gBAAgB,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,iBAAiB,EAAE,sBAAsB,EAAE,cAAc,EAAE,yBAAyB,EAAE,eAAe,GACtG,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1D,O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AAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC"}
@@ -2227,6 +2227,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2227
2227
  deadline: string;
2228
2228
  seconds: number;
2229
2229
  note?: string | undefined;
2230
+ } | {
2231
+ id: string;
2232
+ source: "agent" | "cezar";
2233
+ 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";
2234
+ registeredAt: string;
2235
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2236
+ resolvedAt?: string | undefined;
2237
+ deliveredAt?: string | undefined;
2238
+ cancelledAt?: string | undefined;
2239
+ turnId: string;
2240
+ kind: "process";
2241
+ deadline: string;
2242
+ timeoutSeconds: number;
2243
+ pid: number;
2244
+ startToken?: string | undefined;
2245
+ exitFile?: string | undefined;
2246
+ note?: string | undefined;
2247
+ result?: {
2248
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2249
+ observedAt: string;
2250
+ exitCode?: number | undefined;
2251
+ exitFileNote?: "not-an-exit-code" | undefined;
2252
+ diagnostic?: string | undefined;
2253
+ } | undefined;
2230
2254
  } | {
2231
2255
  id: string;
2232
2256
  source: "agent" | "cezar";
@@ -2288,30 +2312,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2288
2312
  reason: "outcome" | "timeout";
2289
2313
  } | undefined;
2290
2314
  wakeInputId?: string | undefined;
2291
- } | {
2292
- id: string;
2293
- source: "agent" | "cezar";
2294
- 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";
2295
- registeredAt: string;
2296
- phase: "cancelled" | "delivered" | "open" | "resolved";
2297
- resolvedAt?: string | undefined;
2298
- deliveredAt?: string | undefined;
2299
- cancelledAt?: string | undefined;
2300
- turnId: string;
2301
- kind: "process";
2302
- deadline: string;
2303
- timeoutSeconds: number;
2304
- pid: number;
2305
- startToken?: string | undefined;
2306
- exitFile?: string | undefined;
2307
- note?: string | undefined;
2308
- result?: {
2309
- outcome: "deadline" | "error" | "exit_file" | "exited";
2310
- observedAt: string;
2311
- exitCode?: number | undefined;
2312
- exitFileNote?: "not-an-exit-code" | undefined;
2313
- diagnostic?: string | undefined;
2314
- } | undefined;
2315
2315
  } | {
2316
2316
  id: string;
2317
2317
  source: "agent" | "cezar";
@@ -2439,6 +2439,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2439
2439
  deadline: string;
2440
2440
  seconds: number;
2441
2441
  note?: string | undefined;
2442
+ } | {
2443
+ id: string;
2444
+ source: "agent" | "cezar";
2445
+ 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";
2446
+ registeredAt: string;
2447
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2448
+ resolvedAt?: string | undefined;
2449
+ deliveredAt?: string | undefined;
2450
+ cancelledAt?: string | undefined;
2451
+ turnId: string;
2452
+ kind: "process";
2453
+ deadline: string;
2454
+ timeoutSeconds: number;
2455
+ pid: number;
2456
+ startToken?: string | undefined;
2457
+ exitFile?: string | undefined;
2458
+ note?: string | undefined;
2459
+ result?: {
2460
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2461
+ observedAt: string;
2462
+ exitCode?: number | undefined;
2463
+ exitFileNote?: "not-an-exit-code" | undefined;
2464
+ diagnostic?: string | undefined;
2465
+ } | undefined;
2442
2466
  } | {
2443
2467
  id: string;
2444
2468
  source: "agent" | "cezar";
@@ -2500,30 +2524,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2500
2524
  reason: "outcome" | "timeout";
2501
2525
  } | undefined;
2502
2526
  wakeInputId?: string | undefined;
2503
- } | {
2504
- id: string;
2505
- source: "agent" | "cezar";
2506
- 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";
2507
- registeredAt: string;
2508
- phase: "cancelled" | "delivered" | "open" | "resolved";
2509
- resolvedAt?: string | undefined;
2510
- deliveredAt?: string | undefined;
2511
- cancelledAt?: string | undefined;
2512
- turnId: string;
2513
- kind: "process";
2514
- deadline: string;
2515
- timeoutSeconds: number;
2516
- pid: number;
2517
- startToken?: string | undefined;
2518
- exitFile?: string | undefined;
2519
- note?: string | undefined;
2520
- result?: {
2521
- outcome: "deadline" | "error" | "exit_file" | "exited";
2522
- observedAt: string;
2523
- exitCode?: number | undefined;
2524
- exitFileNote?: "not-an-exit-code" | undefined;
2525
- diagnostic?: string | undefined;
2526
- } | undefined;
2527
2527
  } | {
2528
2528
  id: string;
2529
2529
  source: "agent" | "cezar";
@@ -2650,6 +2650,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2650
2650
  deadline: string;
2651
2651
  seconds: number;
2652
2652
  note?: string | undefined;
2653
+ } | {
2654
+ id: string;
2655
+ source: "agent" | "cezar";
2656
+ 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";
2657
+ registeredAt: string;
2658
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2659
+ resolvedAt?: string | undefined;
2660
+ deliveredAt?: string | undefined;
2661
+ cancelledAt?: string | undefined;
2662
+ turnId: string;
2663
+ kind: "process";
2664
+ deadline: string;
2665
+ timeoutSeconds: number;
2666
+ pid: number;
2667
+ startToken?: string | undefined;
2668
+ exitFile?: string | undefined;
2669
+ note?: string | undefined;
2670
+ result?: {
2671
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2672
+ observedAt: string;
2673
+ exitCode?: number | undefined;
2674
+ exitFileNote?: "not-an-exit-code" | undefined;
2675
+ diagnostic?: string | undefined;
2676
+ } | undefined;
2653
2677
  } | {
2654
2678
  id: string;
2655
2679
  source: "agent" | "cezar";
@@ -2711,30 +2735,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2711
2735
  reason: "outcome" | "timeout";
2712
2736
  } | undefined;
2713
2737
  wakeInputId?: string | undefined;
2714
- } | {
2715
- id: string;
2716
- source: "agent" | "cezar";
2717
- 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";
2718
- registeredAt: string;
2719
- phase: "cancelled" | "delivered" | "open" | "resolved";
2720
- resolvedAt?: string | undefined;
2721
- deliveredAt?: string | undefined;
2722
- cancelledAt?: string | undefined;
2723
- turnId: string;
2724
- kind: "process";
2725
- deadline: string;
2726
- timeoutSeconds: number;
2727
- pid: number;
2728
- startToken?: string | undefined;
2729
- exitFile?: string | undefined;
2730
- note?: string | undefined;
2731
- result?: {
2732
- outcome: "deadline" | "error" | "exit_file" | "exited";
2733
- observedAt: string;
2734
- exitCode?: number | undefined;
2735
- exitFileNote?: "not-an-exit-code" | undefined;
2736
- diagnostic?: string | undefined;
2737
- } | undefined;
2738
2738
  } | {
2739
2739
  id: string;
2740
2740
  source: "agent" | "cezar";
@@ -58,29 +58,6 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
- output: {
62
- error: string;
63
- code?: "invalid_input" | undefined;
64
- };
65
- outputFormat: "json";
66
- status: 400;
67
- input: {
68
- query: {
69
- project?: string | undefined;
70
- };
71
- };
72
- } | {
73
- output: {
74
- error: string;
75
- };
76
- outputFormat: "json";
77
- status: 404 | 409 | 503;
78
- input: {
79
- query: {
80
- project?: string | undefined;
81
- };
82
- };
83
- } | {
84
61
  output: {
85
62
  generatedAt: string;
86
63
  projects: {
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
327
304
  project?: string | undefined;
328
305
  };
329
306
  };
307
+ } | {
308
+ output: {
309
+ error: string;
310
+ code?: "invalid_input" | undefined;
311
+ };
312
+ outputFormat: "json";
313
+ status: 400;
314
+ input: {
315
+ query: {
316
+ project?: string | undefined;
317
+ };
318
+ };
319
+ } | {
320
+ output: {
321
+ error: string;
322
+ };
323
+ outputFormat: "json";
324
+ status: 404 | 409 | 503;
325
+ input: {
326
+ query: {
327
+ project?: string | undefined;
328
+ };
329
+ };
330
330
  };
331
331
  };
332
332
  }, "/", "/workspace/activity">;
@@ -30,19 +30,10 @@ export declare function createModelsRoutes(options: {
30
30
  };
31
31
  } | {
32
32
  output: {
33
- runner: string;
34
- models: {
35
- id: string;
36
- label: string;
37
- description: string;
38
- effortLevels?: import('../contract/index.js').EffortLevel[];
39
- }[];
40
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
41
- stale: boolean;
42
- reason?: string;
33
+ error: string;
43
34
  };
44
35
  outputFormat: "json";
45
- status: import("hono/utils/http-status").ContentfulStatusCode;
36
+ status: 400;
46
37
  input: {
47
38
  query: {
48
39
  runner: string | string[];
@@ -63,10 +54,19 @@ export declare function createModelsRoutes(options: {
63
54
  };
64
55
  } | {
65
56
  output: {
66
- error: string;
57
+ runner: string;
58
+ models: {
59
+ id: string;
60
+ label: string;
61
+ description: string;
62
+ effortLevels?: import('../contract/index.js').EffortLevel[];
63
+ }[];
64
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
65
+ stale: boolean;
66
+ reason?: string;
67
67
  };
68
68
  outputFormat: "json";
69
- status: 400;
69
+ status: import("hono/utils/http-status").ContentfulStatusCode;
70
70
  input: {
71
71
  query: {
72
72
  runner: string | string[];
@@ -3118,12 +3118,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3118
3118
  output: {
3119
3119
  generation: string;
3120
3120
  results: ({
3121
- projectId: string;
3122
- runId: string;
3123
- type: "error" | "reset";
3124
- status: 400 | 404 | 409 | 413 | 503;
3125
- error: string;
3126
- } | {
3127
3121
  projectId: string;
3128
3122
  runId: string;
3129
3123
  type: "batch";
@@ -3137,6 +3131,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3137
3131
  cursor: string;
3138
3132
  afterSeq: number;
3139
3133
  hasMore: boolean;
3134
+ } | {
3135
+ projectId: string;
3136
+ runId: string;
3137
+ type: "error" | "reset";
3138
+ status: 400 | 404 | 409 | 413 | 503;
3139
+ error: string;
3140
3140
  })[];
3141
3141
  };
3142
3142
  outputFormat: "json";
@@ -7,6 +7,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
7
7
  output: {
8
8
  generation: string;
9
9
  results: ({
10
+ projectId: string;
11
+ runId: string;
12
+ type: "error" | "reset";
13
+ status: 400 | 404 | 409 | 413 | 503;
14
+ error: string;
15
+ } | {
10
16
  projectId: string;
11
17
  runId: string;
12
18
  type: "batch";
@@ -20,12 +26,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
20
26
  cursor: string;
21
27
  afterSeq: number;
22
28
  hasMore: boolean;
23
- } | {
24
- projectId: string;
25
- runId: string;
26
- type: "error" | "reset";
27
- status: 400 | 404 | 409 | 413 | 503;
28
- error: string;
29
29
  })[];
30
30
  };
31
31
  outputFormat: "json";
@@ -74,6 +74,30 @@ export declare function analyseAcknowledgedInput(runId: string, state: ActiveRun
74
74
  deadline: string;
75
75
  seconds: number;
76
76
  note?: string | undefined;
77
+ } | {
78
+ id: string;
79
+ source: "agent" | "cezar";
80
+ 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";
81
+ registeredAt: string;
82
+ phase: "cancelled" | "delivered" | "open" | "resolved";
83
+ resolvedAt?: string | undefined;
84
+ deliveredAt?: string | undefined;
85
+ cancelledAt?: string | undefined;
86
+ turnId: string;
87
+ kind: "process";
88
+ deadline: string;
89
+ timeoutSeconds: number;
90
+ pid: number;
91
+ startToken?: string | undefined;
92
+ exitFile?: string | undefined;
93
+ note?: string | undefined;
94
+ result?: {
95
+ outcome: "deadline" | "error" | "exit_file" | "exited";
96
+ observedAt: string;
97
+ exitCode?: number | undefined;
98
+ exitFileNote?: "not-an-exit-code" | undefined;
99
+ diagnostic?: string | undefined;
100
+ } | undefined;
77
101
  } | {
78
102
  id: string;
79
103
  source: "agent" | "cezar";
@@ -135,30 +159,6 @@ export declare function analyseAcknowledgedInput(runId: string, state: ActiveRun
135
159
  reason: "outcome" | "timeout";
136
160
  } | undefined;
137
161
  wakeInputId?: string | undefined;
138
- } | {
139
- id: string;
140
- source: "agent" | "cezar";
141
- 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";
142
- registeredAt: string;
143
- phase: "cancelled" | "delivered" | "open" | "resolved";
144
- resolvedAt?: string | undefined;
145
- deliveredAt?: string | undefined;
146
- cancelledAt?: string | undefined;
147
- turnId: string;
148
- kind: "process";
149
- deadline: string;
150
- timeoutSeconds: number;
151
- pid: number;
152
- startToken?: string | undefined;
153
- exitFile?: string | undefined;
154
- note?: string | undefined;
155
- result?: {
156
- outcome: "deadline" | "error" | "exit_file" | "exited";
157
- observedAt: string;
158
- exitCode?: number | undefined;
159
- exitFileNote?: "not-an-exit-code" | undefined;
160
- diagnostic?: string | undefined;
161
- } | undefined;
162
162
  } | {
163
163
  id: string;
164
164
  source: "agent" | "cezar";