@hearsay-tools/squawk 0.18.0-pr3769.6980 → 0.18.0-pr3769.6986

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 (76) hide show
  1. package/dist/automations/github-poller.js +1 -5
  2. package/dist/automations/github-poller.js.map +1 -1
  3. package/dist/automations/prompts.js +19 -14
  4. package/dist/automations/prompts.js.map +1 -1
  5. package/dist/automations/scheduler.d.ts +1 -1
  6. package/dist/automations/scheduler.js +3 -1
  7. package/dist/automations/scheduler.js.map +1 -1
  8. package/dist/automations/service.d.ts +1 -1
  9. package/dist/automations/service.js +3 -1
  10. package/dist/automations/service.js.map +1 -1
  11. package/dist/automations/tool-adapter.d.ts +6 -1
  12. package/dist/automations/tool-adapter.js +85 -1
  13. package/dist/automations/tool-adapter.js.map +1 -1
  14. package/dist/automations/tool-github.d.ts +9 -0
  15. package/dist/automations/tool-github.js +9 -0
  16. package/dist/automations/tool-github.js.map +1 -0
  17. package/dist/automations/tool-timeout.d.ts +2 -0
  18. package/dist/automations/tool-timeout.js +22 -0
  19. package/dist/automations/tool-timeout.js.map +1 -0
  20. package/dist/ci-wait/client.d.ts +2 -0
  21. package/dist/ci-wait/client.js +5 -0
  22. package/dist/ci-wait/client.js.map +1 -1
  23. package/dist/ci-wait/controller.d.ts +347 -0
  24. package/dist/ci-wait/controller.js +13 -0
  25. package/dist/ci-wait/controller.js.map +1 -1
  26. package/dist/ci-wait/tool-catalog.d.ts +29 -0
  27. package/dist/ci-wait/tool-catalog.js +16 -1
  28. package/dist/ci-wait/tool-catalog.js.map +1 -1
  29. package/dist/ci-wait/tools.d.ts +100 -1
  30. package/dist/ci-wait/tools.js +10 -4
  31. package/dist/ci-wait/tools.js.map +1 -1
  32. package/dist/contract/automation-tool.d.ts +320 -0
  33. package/dist/contract/index.d.ts +1 -0
  34. package/dist/contract/index.js +31 -7
  35. package/dist/core/github-request-limits.d.ts +9 -0
  36. package/dist/core/github-request-limits.js +13 -0
  37. package/dist/core/github-request-limits.js.map +1 -0
  38. package/dist/delegation/routes.d.ts +66 -66
  39. package/dist/delegation/transport.d.ts +11 -11
  40. package/dist/server/live-routes.d.ts +6 -6
  41. package/dist/server/reports-api.d.ts +2 -2
  42. package/dist/server/server.d.ts +188 -188
  43. package/dist/workflows/run/squawk-tools.js +4 -0
  44. package/dist/workflows/run/squawk-tools.js.map +1 -1
  45. package/dist/workflows/run/types.d.ts +2 -0
  46. package/dist/workflows/run.d.ts +2 -2
  47. package/dist/workflows/run.js +2 -2
  48. package/package.json +4 -4
  49. package/scripts/mock-ci-tool.mjs +5 -0
  50. package/scripts/mock-omp-rpc.mjs +1 -1
  51. package/web/dist/assets/{activity-motion-1wJZMIjN.js → activity-motion-CwyYT4SH.js} +1 -1
  52. package/web/dist/assets/{activity-route-DfMGUe0o.js → activity-route-Bt5MPPwp.js} +1 -1
  53. package/web/dist/assets/{commit-diff-panel-DaUrFTk5.js → commit-diff-panel-B9Y_vEU3.js} +1 -1
  54. package/web/dist/assets/{diff-DnVhyv10.js → diff-RbR9hVio.js} +2 -2
  55. package/web/dist/assets/{diff-view-p2f664l7.js → diff-view-Cry0Ysix.js} +1 -1
  56. package/web/dist/assets/{file-preview-BIKUhrIl.js → file-preview-CNTXq7aI.js} +1 -1
  57. package/web/dist/assets/{git-toolbar-BVNUg8Uf.js → git-toolbar-D831zwk0.js} +1 -1
  58. package/web/dist/assets/{github-BDzfeU3h.js → github-BJhv3NeS.js} +1 -1
  59. package/web/dist/assets/{global-activity-route-BRAFKIp8.js → global-activity-route-BC8lE6mD.js} +1 -1
  60. package/web/dist/assets/index-H4yO5F4V.js +17 -0
  61. package/web/dist/assets/{preview-pane-connected-BvjhcHic.js → preview-pane-connected-CrZr2qiu.js} +1 -1
  62. package/web/dist/assets/{repo-git-CJiZjWzt.js → repo-git-uo2jvYGV.js} +1 -1
  63. package/web/dist/assets/{report-reader-Dd5llmAX.js → report-reader-B8A3re5u.js} +1 -1
  64. package/web/dist/assets/{reports-0GKKDVC6.js → reports-wBxMmGcA.js} +1 -1
  65. package/web/dist/assets/{run-header-BLEueQpG.js → run-header-Dful8ShW.js} +1 -1
  66. package/web/dist/assets/{skills-ElB3alpT.js → skills-BC-JV9qH.js} +1 -1
  67. package/web/dist/assets/{task-changes-DL5rLEBw.js → task-changes-CSmmrm3P.js} +1 -1
  68. package/web/dist/assets/{task-commits-2F2UCAmG.js → task-commits-Cwzk3wqQ.js} +1 -1
  69. package/web/dist/assets/{task-files-DyL6tbeK.js → task-files-ZYn-viaP.js} +1 -1
  70. package/web/dist/assets/{task-github-item-C6miC-6i.js → task-github-item-Dc2ZMK64.js} +1 -1
  71. package/web/dist/assets/{task-thread-DKzCOmwO.js → task-thread-DxhoU3iK.js} +1 -1
  72. package/web/dist/assets/{thread-state-CVgd0gdP.js → thread-state-DVsIoqGb.js} +1 -1
  73. package/web/dist/assets/{use-hand-to-agent-state-vfX-C03d.js → use-hand-to-agent-state-BaOux-t-.js} +1 -1
  74. package/web/dist/assets/{workflows-DVJdcPbB.js → workflows-DtCubsoI.js} +1 -1
  75. package/web/dist/index.html +1 -1
  76. package/web/dist/assets/index-D7_AVe_s.js +0 -17
@@ -588,7 +588,7 @@ function parentFileRefusal(path) {
588
588
  }
589
589
  var workerContextReferenceSchema = z9.discriminatedUnion("kind", [
590
590
  z9.object({ kind: z9.literal("baseline-file"), path: relativeInputPath }).strict(),
591
- z9.object({ kind: z9.literal("parent-attachment"), id: z9.string().min(1).max(255).regex(/^[A-Za-z0-9_-][A-Za-z0-9._-]*$/).refine((id) => !id.includes("..")) }).strict(),
591
+ z9.object({ kind: z9.literal("parent-attachment"), id: z9.string().min(1).max(255).regex(/^[A-Za-z0-9_-][A-Za-z0-9._-]*$/).refine((id2) => !id2.includes("..")) }).strict(),
592
592
  /** A git-ignored file in the parent's own worktree, relative to its root (`cez worker spawn --attach`, hearsay-tools/cezarion#1149). */
593
593
  z9.object({ kind: z9.literal("parent-file"), path: relativeInputPath }).strict().superRefine(({ path }, ctx) => {
594
594
  const message2 = parentFileRefusal(path);
@@ -2309,15 +2309,15 @@ function withRootLedger(slim, raw) {
2309
2309
  }
2310
2310
  function requestsToPeers(delegation, requestIds) {
2311
2311
  const toPeers = peerRequestIds(delegation);
2312
- return !!requestIds?.some((id) => toPeers.has(id));
2312
+ return !!requestIds?.some((id2) => toPeers.has(id2));
2313
2313
  }
2314
2314
  function workerWaitTargets(wait) {
2315
2315
  if (wait.requestIds) {
2316
2316
  const answered = new Set(wait.requestOutcomes?.map((outcome) => outcome.requestId));
2317
- return wait.requestIds.map((id) => ({ key: `request:${id}`, settled: answered.has(id) }));
2317
+ return wait.requestIds.map((id2) => ({ key: `request:${id2}`, settled: answered.has(id2) }));
2318
2318
  }
2319
2319
  const reported = new Set(wait.outcomes?.map((outcome) => outcome.workerId));
2320
- return (wait.workerIds ?? []).map((id) => ({ key: `worker:${id}`, settled: reported.has(id) }));
2320
+ return (wait.workerIds ?? []).map((id2) => ({ key: `worker:${id2}`, settled: reported.has(id2) }));
2321
2321
  }
2322
2322
  function workersOwed(open) {
2323
2323
  const entries = open.filter((wait) => wait.kind === "worker");
@@ -3185,7 +3185,7 @@ function isUnseen(_run) {
3185
3185
  function workerWaitLabel(role, wait, peers = false) {
3186
3186
  if (wait.requestIds?.length) return role === "worker" ? "waiting on parent reply" : peers ? "waiting on replies" : "waiting on worker replies";
3187
3187
  const reported = new Set(wait.outcomes?.map((outcome) => outcome.workerId));
3188
- const workers = wait.workerIds?.filter((id) => !reported.has(id)).length;
3188
+ const workers = wait.workerIds?.filter((id2) => !reported.has(id2)).length;
3189
3189
  return workers ? `waiting on ${workers} worker${workers === 1 ? "" : "s"}` : "waiting on workers";
3190
3190
  }
3191
3191
  var PRESENTATION_OF_RUNG = {
@@ -4754,9 +4754,9 @@ function matchesRunSearch(run, query, options = {}) {
4754
4754
  if (prose.some((field2) => field2.includes(token))) return true;
4755
4755
  const bare = token.replace(/^#/, "");
4756
4756
  if (/^\d+$/.test(bare)) {
4757
- return references().has(String(Number(bare))) || ids.some((id) => id.startsWith(bare));
4757
+ return references().has(String(Number(bare))) || ids.some((id2) => id2.startsWith(bare));
4758
4758
  }
4759
- return ids.some((id) => id.includes(token)) || links.some((link) => link.includes(token));
4759
+ return ids.some((id2) => id2.includes(token)) || links.some((link) => link.includes(token));
4760
4760
  });
4761
4761
  }
4762
4762
  function sqlPrefilterTokens(query, options = {}) {
@@ -5927,6 +5927,27 @@ var runnerSkillListSchema = z50.object({
5927
5927
  source: z50.enum(["live", "cache", "unavailable"]),
5928
5928
  reason: z50.string().optional()
5929
5929
  });
5930
+
5931
+ // ../contract/src/automation-tool.ts
5932
+ import { z as z51 } from "zod";
5933
+ var repeatingAutomationInputSchema = automationCreateSchema.omit({ enabled: true, enable: true }).refine((value) => value.schedule?.type !== "once", "Use cezar_schedule_task for a one-time schedule.");
5934
+ var id = z51.string().min(1).max(100);
5935
+ var automationToolRequestSchema = z51.discriminatedUnion("action", [
5936
+ z51.object({ action: z51.literal("create"), definition: repeatingAutomationInputSchema }).strict(),
5937
+ z51.object({ action: z51.literal("show"), id }).strict(),
5938
+ z51.object({ action: z51.literal("preview"), id }).strict(),
5939
+ z51.object({ action: z51.literal("enable"), id, explicit: z51.boolean().optional() }).strict()
5940
+ ]);
5941
+ var automationToolAnswerSchema = z51.union([
5942
+ z51.object({
5943
+ ok: z51.literal(true),
5944
+ automation: storedAutomationDefinitionSchema,
5945
+ url: z51.string().optional(),
5946
+ next_run_at: z51.string().optional(),
5947
+ preview: z51.object({ matches: z51.number().int().nonnegative(), truncated: z51.boolean() }).optional()
5948
+ }),
5949
+ z51.object({ ok: z51.literal(false), code: z51.enum([...scheduledTaskRefusalCodeSchema.options, "explicit_required", "preview_required"]), message: z51.string() })
5950
+ ]);
5930
5951
  export {
5931
5952
  ACTIVITY_CHECKS_MAX,
5932
5953
  ACTIVITY_CHECK_NAME_MAX,
@@ -6116,6 +6137,8 @@ export {
6116
6137
  automationRuntimeStateSchema,
6117
6138
  automationScheduleSchema,
6118
6139
  automationTaskSchema,
6140
+ automationToolAnswerSchema,
6141
+ automationToolRequestSchema,
6119
6142
  automationUpdateSchema,
6120
6143
  automationsResponseSchema,
6121
6144
  backendCheckSchema,
@@ -6424,6 +6447,7 @@ export {
6424
6447
  removedRunnerLabel,
6425
6448
  removedRunnerMessage,
6426
6449
  removedRunnerStepAfter,
6450
+ repeatingAutomationInputSchema,
6427
6451
  repoBranchCountsResponseSchema,
6428
6452
  repoBranchEntrySchema,
6429
6453
  repoBranchResponseSchema,
@@ -0,0 +1,9 @@
1
+ export declare const GITHUB_COMMAND_TIMEOUT_MS = 30000;
2
+ /** Provider requests one history check may spend, its search included. */
3
+ export declare const HISTORY_REQUEST_CAP = 10;
4
+ /** The timeline is oldest first, so a live poll reads every page up to this cap. */
5
+ export declare const TIMELINE_PAGE_CAP = 10;
6
+ /** One scan can spend each provider request's full command timeout. */
7
+ export declare const GITHUB_POLL_TIMEOUT_MS: number;
8
+ export declare const AUTOMATION_TOOL_TIMEOUT_MS: number;
9
+ export declare const AUTOMATION_TOOL_CLIENT_TIMEOUT_MS: number;
@@ -0,0 +1,13 @@
1
+ export const GITHUB_COMMAND_TIMEOUT_MS = 30_000;
2
+ /** Provider requests one history check may spend, its search included. */
3
+ export const HISTORY_REQUEST_CAP = 10;
4
+ /** The timeline is oldest first, so a live poll reads every page up to this cap. */
5
+ export const TIMELINE_PAGE_CAP = 10;
6
+ /** One scan can spend each provider request's full command timeout. */
7
+ export const GITHUB_POLL_TIMEOUT_MS = Math.max(HISTORY_REQUEST_CAP, TIMELINE_PAGE_CAP + 1) * GITHUB_COMMAND_TIMEOUT_MS;
8
+ // Two scans cover the canonical-name retry. One command budget covers discovery
9
+ // and queueing; that wait shares the total bound rather than extending it.
10
+ export const AUTOMATION_TOOL_TIMEOUT_MS = 2 * GITHUB_POLL_TIMEOUT_MS + GITHUB_COMMAND_TIMEOUT_MS;
11
+ // Let the server return its timeout diagnostic before the transport gives up.
12
+ export const AUTOMATION_TOOL_CLIENT_TIMEOUT_MS = AUTOMATION_TOOL_TIMEOUT_MS + GITHUB_COMMAND_TIMEOUT_MS;
13
+ //# sourceMappingURL=github-request-limits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-request-limits.js","sourceRoot":"","sources":["../../src/core/github-request-limits.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAChD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACtC,oFAAoF;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACpC,uEAAuE;AACvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,GAAG,CAAC,CAAC,GAAG,yBAAyB,CAAC;AAEvH,gFAAgF;AAChF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAG,sBAAsB,GAAG,yBAAyB,CAAC;AACjG,8EAA8E;AAC9E,MAAM,CAAC,MAAM,iCAAiC,GAAG,0BAA0B,GAAG,yBAAyB,CAAC"}
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
- output: {
31
- error: string;
32
- code?: "invalid_input" | undefined;
33
- };
34
- outputFormat: "json";
35
- status: 400;
36
- input: {
37
- query: {
38
- offset?: string | undefined;
39
- };
40
- };
41
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -76,6 +64,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
76
64
  offset?: string | undefined;
77
65
  };
78
66
  };
67
+ } | {
68
+ output: {
69
+ error: string;
70
+ code?: "invalid_input" | undefined;
71
+ };
72
+ outputFormat: "json";
73
+ status: 400;
74
+ input: {
75
+ query: {
76
+ offset?: string | undefined;
77
+ };
78
+ };
79
79
  };
80
80
  };
81
81
  } & {
@@ -221,13 +221,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
221
221
  status: 200;
222
222
  input: {
223
223
  json: {
224
- requestIds: string[];
225
- mode?: "all" | "any" | "one" | undefined;
226
- timeoutSeconds?: number | undefined;
227
- } | {
228
224
  workerIds: string[];
229
225
  timeoutSeconds?: number | undefined;
230
226
  mode?: "all" | "any" | "one" | undefined;
227
+ } | {
228
+ requestIds: string[];
229
+ mode?: "all" | "any" | "one" | undefined;
230
+ timeoutSeconds?: number | undefined;
231
231
  } | {
232
232
  peerIds: string[];
233
233
  timeoutSeconds?: number | undefined;
@@ -613,18 +613,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
613
613
  } & {
614
614
  "/:workerId": {
615
615
  $get: {
616
- output: {
617
- error: string;
618
- code?: "invalid_input" | undefined;
619
- };
620
- outputFormat: "json";
621
- status: 400;
622
- input: {
623
- param: {
624
- workerId: string;
625
- };
626
- };
627
- } | {
628
616
  output: {
629
617
  workerId: string;
630
618
  parentRunId: string;
@@ -732,11 +720,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
732
720
  workerId: string;
733
721
  };
734
722
  };
735
- };
736
- };
737
- } & {
738
- "/:workerId/collect": {
739
- $post: {
723
+ } | {
740
724
  output: {
741
725
  error: string;
742
726
  code?: "invalid_input" | undefined;
@@ -747,10 +731,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
747
731
  param: {
748
732
  workerId: string;
749
733
  };
750
- } & {
751
- json: Record<string, never>;
752
734
  };
753
- } | {
735
+ };
736
+ };
737
+ } & {
738
+ "/:workerId/collect": {
739
+ $post: {
754
740
  output: {
755
741
  workerId: string;
756
742
  parentRunId: string;
@@ -852,11 +838,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
852
838
  } & {
853
839
  json: Record<string, never>;
854
840
  };
855
- };
856
- };
857
- } & {
858
- "/:workerId/steer": {
859
- $post: {
841
+ } | {
860
842
  output: {
861
843
  error: string;
862
844
  code?: "invalid_input" | undefined;
@@ -868,11 +850,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
868
850
  workerId: string;
869
851
  };
870
852
  } & {
871
- json: {
872
- text: string;
873
- };
853
+ json: Record<string, never>;
874
854
  };
875
- } | {
855
+ };
856
+ };
857
+ } & {
858
+ "/:workerId/steer": {
859
+ $post: {
876
860
  output: {
877
861
  workerId: string;
878
862
  state: "delivered" | "queued";
@@ -888,11 +872,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
888
872
  text: string;
889
873
  };
890
874
  };
891
- };
892
- };
893
- } & {
894
- "/:workerId/stop": {
895
- $post: {
875
+ } | {
896
876
  output: {
897
877
  error: string;
898
878
  code?: "invalid_input" | undefined;
@@ -904,9 +884,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
904
884
  workerId: string;
905
885
  };
906
886
  } & {
907
- json: Record<string, never>;
887
+ json: {
888
+ text: string;
889
+ };
908
890
  };
909
- } | {
891
+ };
892
+ };
893
+ } & {
894
+ "/:workerId/stop": {
895
+ $post: {
910
896
  output: {
911
897
  workerId: string;
912
898
  state: "stopping" | "terminated";
@@ -920,11 +906,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
920
906
  } & {
921
907
  json: Record<string, never>;
922
908
  };
923
- };
924
- };
925
- } & {
926
- "/:workerId/destroy": {
927
- $post: {
909
+ } | {
928
910
  output: {
929
911
  error: string;
930
912
  code?: "invalid_input" | undefined;
@@ -938,7 +920,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
938
920
  } & {
939
921
  json: Record<string, never>;
940
922
  };
941
- } | {
923
+ };
924
+ };
925
+ } & {
926
+ "/:workerId/destroy": {
927
+ $post: {
942
928
  output: {
943
929
  workerId: string;
944
930
  state: "complete" | "incomplete";
@@ -961,6 +947,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
961
947
  } & {
962
948
  json: Record<string, never>;
963
949
  };
950
+ } | {
951
+ output: {
952
+ error: string;
953
+ code?: "invalid_input" | undefined;
954
+ };
955
+ outputFormat: "json";
956
+ status: 400;
957
+ input: {
958
+ param: {
959
+ workerId: string;
960
+ };
961
+ } & {
962
+ json: Record<string, never>;
963
+ };
964
964
  } | {
965
965
  output: {
966
966
  workerId: string;
@@ -990,11 +990,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
990
990
  "/:workerId/diff": {
991
991
  $get: {
992
992
  output: {
993
- error: string;
994
- code?: "invalid_input" | undefined;
993
+ workerId: string;
994
+ baselineSha: string;
995
+ diff: string;
996
+ truncated: boolean;
995
997
  };
996
998
  outputFormat: "json";
997
- status: 400;
999
+ status: 200;
998
1000
  input: {
999
1001
  param: {
1000
1002
  workerId: string;
@@ -1002,13 +1004,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1002
1004
  };
1003
1005
  } | {
1004
1006
  output: {
1005
- workerId: string;
1006
- baselineSha: string;
1007
- diff: string;
1008
- truncated: boolean;
1007
+ error: string;
1008
+ code?: "invalid_input" | undefined;
1009
1009
  };
1010
1010
  outputFormat: "json";
1011
- status: 200;
1011
+ status: 400;
1012
1012
  input: {
1013
1013
  param: {
1014
1014
  workerId: string;
@@ -57,6 +57,17 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
57
57
  "/discover": {
58
58
  $post: {
59
59
  output: {
60
+ runner: "claude" | "codex" | "omp" | "opencode" | "pi";
61
+ models: {
62
+ id: string;
63
+ label: string;
64
+ description: string;
65
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
66
+ }[];
67
+ source: "cache" | "live" | "unavailable";
68
+ stale: boolean;
69
+ reason?: string | undefined;
70
+ } | {
60
71
  tasks: {
61
72
  id: string;
62
73
  title: string;
@@ -77,17 +88,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
77
88
  authFailureId?: string | undefined;
78
89
  runner: "claude" | "codex" | "omp" | "opencode" | "pi";
79
90
  }[];
80
- } | {
81
- runner: "claude" | "codex" | "omp" | "opencode" | "pi";
82
- models: {
83
- id: string;
84
- label: string;
85
- description: string;
86
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
87
- }[];
88
- source: "cache" | "live" | "unavailable";
89
- stale: boolean;
90
- reason?: string | undefined;
91
91
  };
92
92
  outputFormat: "json";
93
93
  status: 200;
@@ -16,6 +16,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
16
16
  output: {
17
17
  generation: string;
18
18
  results: ({
19
+ projectId: string;
20
+ runId: string;
21
+ type: "error" | "reset";
22
+ status: 400 | 404 | 409 | 413 | 503;
23
+ error: string;
24
+ } | {
19
25
  projectId: string;
20
26
  runId: string;
21
27
  type: "batch";
@@ -29,12 +35,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
29
35
  cursor: string;
30
36
  afterSeq: number;
31
37
  hasMore: boolean;
32
- } | {
33
- projectId: string;
34
- runId: string;
35
- type: "error" | "reset";
36
- status: 400 | 404 | 409 | 413 | 503;
37
- error: string;
38
38
  })[];
39
39
  };
40
40
  outputFormat: "json";
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 409;
43
+ status: 400;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 400;
56
+ status: 409;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;