@hearsay-tools/squawk 0.18.0-pr4358.8559 → 0.18.0-pr4358.8568

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/contract/index.js +23 -2
  2. package/dist/contract/session-context.d.ts +54 -8
  3. package/dist/data-gitignore.js +1 -0
  4. package/dist/data-gitignore.js.map +1 -1
  5. package/dist/delegation/routes.d.ts +65 -65
  6. package/dist/server/projects-routes.d.ts +45 -45
  7. package/dist/server/repo-routes.d.ts +13 -13
  8. package/dist/server/runners-routes.d.ts +10 -10
  9. package/dist/server/runs-routes.d.ts +16 -16
  10. package/dist/server/server.d.ts +122 -82
  11. package/dist/server/session-context-routes.d.ts +35 -15
  12. package/dist/server/session-context-routes.js +6 -6
  13. package/dist/server/session-context-routes.js.map +1 -1
  14. package/dist/session-context-file.d.ts +3 -3
  15. package/dist/session-context-file.js +45 -16
  16. package/dist/session-context-file.js.map +1 -1
  17. package/dist/session-context.d.ts +18 -9
  18. package/dist/session-context.js +118 -47
  19. package/dist/session-context.js.map +1 -1
  20. package/package.json +4 -4
  21. package/web/dist/assets/{accounts-section-AHiwnrqA.js → accounts-section-VLKEYGPj.js} +1 -1
  22. package/web/dist/assets/{activity-motion-DuUXo_fX.js → activity-motion-IiyiWtXq.js} +1 -1
  23. package/web/dist/assets/{activity-route-BFl6F4Lu.js → activity-route-QCPCR9kZ.js} +1 -1
  24. package/web/dist/assets/{agent-config-section-B9ij5XUt.js → agent-config-section-BK0gs0uc.js} +1 -1
  25. package/web/dist/assets/{agent-defaults-section-BL5axoK7.js → agent-defaults-section-BoluhHkE.js} +1 -1
  26. package/web/dist/assets/{appearance-BdF0mo9V.js → appearance-CEFPwlnq.js} +1 -1
  27. package/web/dist/assets/{archive-on-merge-field-BKFGWhTW.js → archive-on-merge-field-BEt4jVZt.js} +1 -1
  28. package/web/dist/assets/{automations-route-Xusdh9RP.js → automations-route-F58YdVbC.js} +1 -1
  29. package/web/dist/assets/{commit-list-DNXq8Wgs.js → commit-list-BZ6wfGPz.js} +1 -1
  30. package/web/dist/assets/{diff-C1wKJ5AH.js → diff-BbD04q_C.js} +2 -2
  31. package/web/dist/assets/{diff-controls-Du09ZD1K.js → diff-controls-CW1hOWET.js} +1 -1
  32. package/web/dist/assets/{diff-view-D5esnwHT.js → diff-view-C3XewBZ4.js} +1 -1
  33. package/web/dist/assets/{file-preview-DmgDJn82.js → file-preview-B3r8zavn.js} +1 -1
  34. package/web/dist/assets/{folder-browser-Dg4CmonF.js → folder-browser-6LK4AIPp.js} +1 -1
  35. package/web/dist/assets/{git-toolbar-D2uMxLAD.js → git-toolbar-CCZtGd6H.js} +1 -1
  36. package/web/dist/assets/{github-2g3W6ycO.js → github-CzZZ-wwm.js} +1 -1
  37. package/web/dist/assets/{global-activity-route-9lfwsKE2.js → global-activity-route-BNyhS-a8.js} +1 -1
  38. package/web/dist/assets/{image-preview-DK8CeCRn.js → image-preview-CMk53HOX.js} +1 -1
  39. package/web/dist/assets/{index-D06X-OoO.js → index-DaJ5iats.js} +5 -5
  40. package/web/dist/assets/{label-D1xUdJjL.js → label-YDZzSz0S.js} +1 -1
  41. package/web/dist/assets/{markdown-D-hVmnwQ.js → markdown-q0pVKAO0.js} +1 -1
  42. package/web/dist/assets/{notifications-section-fNt0kDTB.js → notifications-section-n3Xb47pL.js} +1 -1
  43. package/web/dist/assets/{preview-pane-connected-ClJma202.js → preview-pane-connected-VmfC04wB.js} +1 -1
  44. package/web/dist/assets/{project-location-CDQm9Gul.js → project-location-GPzDWXuH.js} +1 -1
  45. package/web/dist/assets/{projects-section-LfAk73FY.js → projects-section-BotQxpQ6.js} +1 -1
  46. package/web/dist/assets/{prompt-templates-section-BGPpireM.js → prompt-templates-section-B8pr6Ue3.js} +1 -1
  47. package/web/dist/assets/queries-DDhFFTvR.js +1 -0
  48. package/web/dist/assets/{reference-chip-Clhghu8I.js → reference-chip-90x9Bq44.js} +1 -1
  49. package/web/dist/assets/{remote-settings-notice-EZ382VXA.js → remote-settings-notice-F_onp6Yr.js} +1 -1
  50. package/web/dist/assets/{repo-git-3BV6yXp9.js → repo-git-B5Bse6ld.js} +1 -1
  51. package/web/dist/assets/{report-reader-BtMDZSxx.js → report-reader-B_kyYgIY.js} +1 -1
  52. package/web/dist/assets/{reports-CJIw7o8_.js → reports-D0E8DWXQ.js} +1 -1
  53. package/web/dist/assets/{resources-section-D2xgeg1K.js → resources-section-DcfHTNpN.js} +1 -1
  54. package/web/dist/assets/{run-header-B65PhE5J.js → run-header-OhEYfuQX.js} +1 -1
  55. package/web/dist/assets/{select-BQ0b8D0M.js → select-r1KS5cjs.js} +1 -1
  56. package/web/dist/assets/session-context-section-PCOCiOTV.js +119 -0
  57. package/web/dist/assets/{settings-agent-picker-rRKtgEym.js → settings-agent-picker-D0UKjmOj.js} +1 -1
  58. package/web/dist/assets/{settings-shell-CbXRegSQ.js → settings-shell-BiPh5fg6.js} +1 -1
  59. package/web/dist/assets/{sidebar-section-y3wevbWE.js → sidebar-section-DmOlTUs8.js} +1 -1
  60. package/web/dist/assets/{skills-D9rmPjwB.js → skills-CSLg7E0x.js} +1 -1
  61. package/web/dist/assets/{task-changes-1M-8Nih4.js → task-changes-DuOb61QV.js} +1 -1
  62. package/web/dist/assets/{task-commits-DbJNq4EA.js → task-commits-CiGYJpqo.js} +1 -1
  63. package/web/dist/assets/{task-files-Bq5k3QiX.js → task-files-fJSQ4Abg.js} +1 -1
  64. package/web/dist/assets/{task-github-item-B4EEYok0.js → task-github-item-CRxN82Yw.js} +1 -1
  65. package/web/dist/assets/{task-groups-fk4Gq4hX.js → task-groups-B3Z2qfE6.js} +1 -1
  66. package/web/dist/assets/task-thread-CqjKwRuV.js +9 -0
  67. package/web/dist/assets/{tasks-table-JFvtNCc1.js → tasks-table-Cm6YZBUB.js} +1 -1
  68. package/web/dist/assets/{thread-state-CgZtq0-9.js → thread-state-DcHyKcQ-.js} +1 -1
  69. package/web/dist/assets/{use-hand-to-agent-state-BCjj7r3n.js → use-hand-to-agent-state-DuefXU2m.js} +1 -1
  70. package/web/dist/assets/{workflows-CuNxWGhE.js → workflows-CC3TZmBS.js} +1 -1
  71. package/web/dist/assets/{workspace-tools-BmyQFlI8.js → workspace-tools-kscvD6KC.js} +1 -1
  72. package/web/dist/assets/{worktrees-section-CByb6iJZ.js → worktrees-section-CoKimDBt.js} +1 -1
  73. package/web/dist/index.html +7 -7
  74. package/web/dist/assets/queries-BvWsZhaH.js +0 -1
  75. package/web/dist/assets/session-context-section-BTWK-HXW.js +0 -119
  76. package/web/dist/assets/task-thread-B-yxE86v.js +0 -9
@@ -4020,10 +4020,11 @@ var setAgentConfigInputSchema = z30.object({
4020
4020
  import { z as z31 } from "zod";
4021
4021
  var SESSION_CONTEXT_FILE_MAX_BYTES = 256 * 1024;
4022
4022
  var fileContentSchema = z31.string().refine((text) => utf8Bytes(text) <= SESSION_CONTEXT_FILE_MAX_BYTES, {
4023
- error: `context.yaml must be at most ${SESSION_CONTEXT_FILE_MAX_BYTES} bytes`
4023
+ error: `context.local.yaml must be at most ${SESSION_CONTEXT_FILE_MAX_BYTES} bytes`
4024
4024
  });
4025
+ var sessionContextSourceSchema = z31.enum(["built-in", "shared", "local"]);
4025
4026
  var sessionContextFileSchema = z31.object({
4026
- /** Relative to the project root: `.ai/squawk/context.yaml` or `.ai/cezar/context.yaml`. */
4027
+ /** Relative to the project root: `.ai/squawk/context.local.yaml` or `.ai/cezar/context.local.yaml`. */
4027
4028
  path: z31.string(),
4028
4029
  exists: z31.boolean(),
4029
4030
  content: z31.string(),
@@ -4033,6 +4034,20 @@ var sessionContextFileSchema = z31.object({
4033
4034
  writable: z31.boolean(),
4034
4035
  readOnlyReason: z31.string().nullable()
4035
4036
  });
4037
+ var sessionContextSharedFileSchema = z31.object({
4038
+ /** Relative to the project root: `.ai/squawk/context.yaml` or `.ai/cezar/context.yaml`. */
4039
+ path: z31.string(),
4040
+ exists: z31.boolean(),
4041
+ content: z31.string(),
4042
+ /** True when Git tracks this file in the repository index. */
4043
+ tracked: z31.boolean(),
4044
+ /** Non-null when the file cannot be read as UTF-8 text (e.g. symlink, binary, oversized). */
4045
+ unreadableReason: z31.string().nullable()
4046
+ });
4047
+ var sessionContextStateSchema = z31.object({
4048
+ local: sessionContextFileSchema,
4049
+ shared: sessionContextSharedFileSchema
4050
+ });
4036
4051
  var setSessionContextSchema = z31.object({
4037
4052
  content: fileContentSchema,
4038
4053
  version: z31.string().nullable()
@@ -4049,9 +4064,12 @@ var sessionContextProblemSchema = z31.object({
4049
4064
  });
4050
4065
  var sessionContextPreviewBlockSchema = z31.object({
4051
4066
  id: z31.string(),
4067
+ source: sessionContextSourceSchema,
4052
4068
  /** `built-in` for the handoff block; null when the file names no target for the entry. */
4053
4069
  target: z31.enum(["built-in", "parent", "worker", "both"]).nullable(),
4054
4070
  status: z31.enum(["applied", "skipped", "not-for-role"]),
4071
+ /** True when a local rule replaced or muted a shared rule with the same id. */
4072
+ overridesShared: z31.boolean(),
4055
4073
  bytes: z31.number().nullable(),
4056
4074
  reason: z31.string().nullable(),
4057
4075
  sources: z31.array(z31.string()),
@@ -6921,6 +6939,9 @@ export {
6921
6939
  sessionContextPreviewSchema,
6922
6940
  sessionContextProblemSchema,
6923
6941
  sessionContextRoleSchema,
6942
+ sessionContextSharedFileSchema,
6943
+ sessionContextSourceSchema,
6944
+ sessionContextStateSchema,
6924
6945
  sessionRunner,
6925
6946
  setAgentConfigInputSchema,
6926
6947
  setAgentConfigSchema,
@@ -1,12 +1,18 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * Settings → Session context (hearsay-tools/squawk#4308): read, preview and save the project's
4
- * `context.yaml` rules (docs/context-injection.md) through
5
- * `GET/PUT /session-context` and `POST /session-context/preview`.
3
+ * Settings → Session context (hearsay-tools/squawk#4308, hearsay-tools/squawk#4341): read shared
4
+ * `context.yaml` and local `context.local.yaml`, preview their combined launch output, and save
5
+ * `context.local.yaml` through `GET/PUT /session-context` and `POST /session-context/preview`.
6
6
  */
7
- /** The largest `context.yaml` a launch reads, in UTF-8 bytes. The editor cannot save a larger one. */
7
+ /** The largest context YAML file a launch reads, in UTF-8 bytes. The editor cannot save a larger one. */
8
8
  export declare const SESSION_CONTEXT_FILE_MAX_BYTES: number;
9
- /** `GET /session-context` and the `PUT` answer: the file as it is on disk, with its stale-write token. */
9
+ export declare const sessionContextSourceSchema: z.ZodEnum<{
10
+ "built-in": "built-in";
11
+ local: "local";
12
+ shared: "shared";
13
+ }>;
14
+ export type SessionContextSource = z.infer<typeof sessionContextSourceSchema>;
15
+ /** The editable local file (`context.local.yaml`) as it is on disk, with its stale-write token. */
10
16
  export declare const sessionContextFileSchema: z.ZodObject<{
11
17
  path: z.ZodString;
12
18
  exists: z.ZodBoolean;
@@ -16,7 +22,35 @@ export declare const sessionContextFileSchema: z.ZodObject<{
16
22
  readOnlyReason: z.ZodNullable<z.ZodString>;
17
23
  }, z.core.$strip>;
18
24
  export type SessionContextFile = z.infer<typeof sessionContextFileSchema>;
19
- /** `PUT /session-context`. `version` is the token the editor read; null creates the file. */
25
+ /** The shared repository file (`context.yaml`), shown read-only in Project Settings. */
26
+ export declare const sessionContextSharedFileSchema: z.ZodObject<{
27
+ path: z.ZodString;
28
+ exists: z.ZodBoolean;
29
+ content: z.ZodString;
30
+ tracked: z.ZodBoolean;
31
+ unreadableReason: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ export type SessionContextSharedFile = z.infer<typeof sessionContextSharedFileSchema>;
34
+ /** `GET /session-context` and the `PUT` answer: both local and shared layers as they stand on disk. */
35
+ export declare const sessionContextStateSchema: z.ZodObject<{
36
+ local: z.ZodObject<{
37
+ path: z.ZodString;
38
+ exists: z.ZodBoolean;
39
+ content: z.ZodString;
40
+ version: z.ZodNullable<z.ZodString>;
41
+ writable: z.ZodBoolean;
42
+ readOnlyReason: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ shared: z.ZodObject<{
45
+ path: z.ZodString;
46
+ exists: z.ZodBoolean;
47
+ content: z.ZodString;
48
+ tracked: z.ZodBoolean;
49
+ unreadableReason: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>;
52
+ export type SessionContextState = z.infer<typeof sessionContextStateSchema>;
53
+ /** `PUT /session-context`. Saves `context.local.yaml`; `version` is the token the editor read (null creates it). */
20
54
  export declare const setSessionContextSchema: z.ZodObject<{
21
55
  content: z.ZodString;
22
56
  version: z.ZodNullable<z.ZodString>;
@@ -27,7 +61,7 @@ export declare const sessionContextRoleSchema: z.ZodEnum<{
27
61
  worker: "worker";
28
62
  }>;
29
63
  export type SessionContextRole = z.infer<typeof sessionContextRoleSchema>;
30
- /** `POST /session-context/preview`: render a draft for one role. */
64
+ /** `POST /session-context/preview`: render the combined launch output for one role with an unsaved local draft. */
31
65
  export declare const sessionContextPreviewRequestSchema: z.ZodObject<{
32
66
  content: z.ZodString;
33
67
  role: z.ZodEnum<{
@@ -36,7 +70,7 @@ export declare const sessionContextPreviewRequestSchema: z.ZodObject<{
36
70
  }>;
37
71
  }, z.core.$strip>;
38
72
  export type SessionContextPreviewRequest = z.infer<typeof sessionContextPreviewRequestSchema>;
39
- /** One thing the draft must fix before it saves. `line` and `rule` count from 1. */
73
+ /** One thing the local draft must fix before it saves. `line` and `rule` count from 1. */
40
74
  export declare const sessionContextProblemSchema: z.ZodObject<{
41
75
  line: z.ZodNullable<z.ZodNumber>;
42
76
  rule: z.ZodNullable<z.ZodNumber>;
@@ -45,6 +79,11 @@ export declare const sessionContextProblemSchema: z.ZodObject<{
45
79
  export type SessionContextProblem = z.infer<typeof sessionContextProblemSchema>;
46
80
  export declare const sessionContextPreviewBlockSchema: z.ZodObject<{
47
81
  id: z.ZodString;
82
+ source: z.ZodEnum<{
83
+ "built-in": "built-in";
84
+ local: "local";
85
+ shared: "shared";
86
+ }>;
48
87
  target: z.ZodNullable<z.ZodEnum<{
49
88
  both: "both";
50
89
  "built-in": "built-in";
@@ -56,6 +95,7 @@ export declare const sessionContextPreviewBlockSchema: z.ZodObject<{
56
95
  "not-for-role": "not-for-role";
57
96
  skipped: "skipped";
58
97
  }>;
98
+ overridesShared: z.ZodBoolean;
59
99
  bytes: z.ZodNullable<z.ZodNumber>;
60
100
  reason: z.ZodNullable<z.ZodString>;
61
101
  sources: z.ZodArray<z.ZodString>;
@@ -71,6 +111,11 @@ export declare const sessionContextPreviewSchema: z.ZodObject<{
71
111
  }, z.core.$strip>>;
72
112
  blocks: z.ZodArray<z.ZodObject<{
73
113
  id: z.ZodString;
114
+ source: z.ZodEnum<{
115
+ "built-in": "built-in";
116
+ local: "local";
117
+ shared: "shared";
118
+ }>;
74
119
  target: z.ZodNullable<z.ZodEnum<{
75
120
  both: "both";
76
121
  "built-in": "built-in";
@@ -82,6 +127,7 @@ export declare const sessionContextPreviewSchema: z.ZodObject<{
82
127
  "not-for-role": "not-for-role";
83
128
  skipped: "skipped";
84
129
  }>;
130
+ overridesShared: z.ZodBoolean;
85
131
  bytes: z.ZodNullable<z.ZodNumber>;
86
132
  reason: z.ZodNullable<z.ZodString>;
87
133
  sources: z.ZodArray<z.ZodString>;
@@ -44,6 +44,7 @@ export function ensureDataGitignore(repoRoot) {
44
44
  'automations.reclaim*/',
45
45
  'automation-state.lock',
46
46
  'automation-state.reclaim*/',
47
+ 'context.local.yaml', // host-local session context overrides (hearsay-tools/squawk#4341)
47
48
  ];
48
49
  try {
49
50
  // A tracked copy left in the fallback directory awaits the user's `git mv`: a new file at its
@@ -1 +1 @@
1
- {"version":3,"file":"data-gitignore.js","sourceRoot":"","sources":["../src/data-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,O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Q,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,EAAE,4BAA4B,EAAE,6BAA6B,CAAC,CAAC;QACtK,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9E,IAAI,MAAM,CAAC,MAAM;YAAE,aAAa,CAAC,UAAU,EAAE,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACzI,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;AACH,CAAC"}
@@ -27,6 +27,18 @@ 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
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -79,18 +91,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
79
91
  offset?: string | undefined;
80
92
  };
81
93
  };
82
- } | {
83
- output: {
84
- error: string;
85
- code?: "invalid_input" | undefined;
86
- };
87
- outputFormat: "json";
88
- status: 400;
89
- input: {
90
- query: {
91
- offset?: string | undefined;
92
- };
93
- };
94
94
  };
95
95
  };
96
96
  } & {
@@ -677,6 +677,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
+ output: {
681
+ error: string;
682
+ code?: "invalid_input" | undefined;
683
+ };
684
+ outputFormat: "json";
685
+ status: 400;
686
+ input: {
687
+ param: {
688
+ workerId: string;
689
+ };
690
+ };
691
+ } | {
680
692
  output: {
681
693
  workerId: string;
682
694
  settled: boolean;
@@ -801,7 +813,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
801
813
  workerId: string;
802
814
  };
803
815
  };
804
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
805
821
  output: {
806
822
  error: string;
807
823
  code?: "invalid_input" | undefined;
@@ -812,12 +828,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
812
828
  param: {
813
829
  workerId: string;
814
830
  };
831
+ } & {
832
+ json: Record<string, never>;
815
833
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
834
+ } | {
821
835
  output: {
822
836
  workerId: string;
823
837
  parentRunId: string;
@@ -940,7 +954,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
940
954
  } & {
941
955
  json: Record<string, never>;
942
956
  };
943
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/steer": {
961
+ $post: {
944
962
  output: {
945
963
  error: string;
946
964
  code?: "invalid_input" | undefined;
@@ -952,13 +970,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
952
970
  workerId: string;
953
971
  };
954
972
  } & {
955
- json: Record<string, never>;
973
+ json: {
974
+ text: string;
975
+ };
956
976
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/steer": {
961
- $post: {
977
+ } | {
962
978
  output: {
963
979
  workerId: string;
964
980
  state: "delivered" | "queued";
@@ -974,7 +990,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
974
990
  text: string;
975
991
  };
976
992
  };
977
- } | {
993
+ };
994
+ };
995
+ } & {
996
+ "/:workerId/stop": {
997
+ $post: {
978
998
  output: {
979
999
  error: string;
980
1000
  code?: "invalid_input" | undefined;
@@ -986,15 +1006,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
1006
  workerId: string;
987
1007
  };
988
1008
  } & {
989
- json: {
990
- text: string;
991
- };
1009
+ json: Record<string, never>;
992
1010
  };
993
- };
994
- };
995
- } & {
996
- "/:workerId/stop": {
997
- $post: {
1011
+ } | {
998
1012
  output: {
999
1013
  workerId: string;
1000
1014
  state: "stopping" | "terminated";
@@ -1008,7 +1022,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1008
1022
  } & {
1009
1023
  json: Record<string, never>;
1010
1024
  };
1011
- } | {
1025
+ };
1026
+ };
1027
+ } & {
1028
+ "/:workerId/destroy": {
1029
+ $post: {
1012
1030
  output: {
1013
1031
  error: string;
1014
1032
  code?: "invalid_input" | undefined;
@@ -1020,13 +1038,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1020
1038
  workerId: string;
1021
1039
  };
1022
1040
  } & {
1023
- json: Record<string, never>;
1041
+ json: {
1042
+ discardWork?: true | undefined;
1043
+ };
1024
1044
  };
1025
- };
1026
- };
1027
- } & {
1028
- "/:workerId/destroy": {
1029
- $post: {
1045
+ } | {
1030
1046
  output: {
1031
1047
  workerId: string;
1032
1048
  state: "complete" | "incomplete";
@@ -1055,22 +1071,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1055
1071
  discardWork?: true | undefined;
1056
1072
  };
1057
1073
  };
1058
- } | {
1059
- output: {
1060
- error: string;
1061
- code?: "invalid_input" | undefined;
1062
- };
1063
- outputFormat: "json";
1064
- status: 400;
1065
- input: {
1066
- param: {
1067
- workerId: string;
1068
- };
1069
- } & {
1070
- json: {
1071
- discardWork?: true | undefined;
1072
- };
1073
- };
1074
1074
  } | {
1075
1075
  output: {
1076
1076
  workerId: string;
@@ -1106,13 +1106,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1106
1106
  "/:workerId/diff": {
1107
1107
  $get: {
1108
1108
  output: {
1109
- workerId: string;
1110
- baselineSha: string;
1111
- diff: string;
1112
- truncated: boolean;
1109
+ error: string;
1110
+ code?: "invalid_input" | undefined;
1113
1111
  };
1114
1112
  outputFormat: "json";
1115
- status: 200;
1113
+ status: 400;
1116
1114
  input: {
1117
1115
  param: {
1118
1116
  workerId: string;
@@ -1120,11 +1118,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1120
1118
  };
1121
1119
  } | {
1122
1120
  output: {
1123
- error: string;
1124
- code?: "invalid_input" | undefined;
1121
+ workerId: string;
1122
+ baselineSha: string;
1123
+ diff: string;
1124
+ truncated: boolean;
1125
1125
  };
1126
1126
  outputFormat: "json";
1127
- status: 400;
1127
+ status: 200;
1128
1128
  input: {
1129
1129
  param: {
1130
1130
  workerId: string;
@@ -63,6 +63,17 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
63
63
  } & {
64
64
  "/projects": {
65
65
  $post: {
66
+ output: {
67
+ error: string;
68
+ };
69
+ outputFormat: "json";
70
+ status: 400 | 500;
71
+ input: {
72
+ json: {
73
+ root: string;
74
+ };
75
+ };
76
+ } | {
66
77
  output: {
67
78
  project: {
68
79
  id: string;
@@ -93,10 +104,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
93
104
  agent: boolean;
94
105
  }[] | undefined;
95
106
  };
96
- error?: string | undefined;
107
+ error: string;
97
108
  };
98
109
  outputFormat: "json";
99
- status: 200;
110
+ status: 409;
100
111
  input: {
101
112
  json: {
102
113
  root: string;
@@ -133,21 +144,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
133
144
  agent: boolean;
134
145
  }[] | undefined;
135
146
  };
136
- error: string;
137
- };
138
- outputFormat: "json";
139
- status: 409;
140
- input: {
141
- json: {
142
- root: string;
143
- };
144
- };
145
- } | {
146
- output: {
147
- error: string;
147
+ error?: string | undefined;
148
148
  };
149
149
  outputFormat: "json";
150
- status: 400 | 500;
150
+ status: 200;
151
151
  input: {
152
152
  json: {
153
153
  root: string;
@@ -306,7 +306,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
306
306
  error: string;
307
307
  };
308
308
  outputFormat: "json";
309
- status: 400;
309
+ status: 404;
310
310
  input: {
311
311
  param: {
312
312
  projectId: string;
@@ -317,7 +317,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
317
317
  error: string;
318
318
  };
319
319
  outputFormat: "json";
320
- status: 404;
320
+ status: 400;
321
321
  input: {
322
322
  param: {
323
323
  projectId: string;
@@ -342,6 +342,27 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
342
342
  } & {
343
343
  "/projects/:projectId/webhooks": {
344
344
  $post: {
345
+ output: {
346
+ error: string;
347
+ };
348
+ outputFormat: "json";
349
+ status: 400 | 404 | 409 | 500;
350
+ input: {
351
+ json: {
352
+ name: string;
353
+ description?: string | undefined;
354
+ url: string;
355
+ token?: string | undefined;
356
+ tasks?: boolean | undefined;
357
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
358
+ agent?: boolean | undefined;
359
+ };
360
+ } & {
361
+ param: {
362
+ projectId: string;
363
+ };
364
+ };
365
+ } | {
345
366
  output: {
346
367
  project: {
347
368
  id: string;
@@ -400,27 +421,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
400
421
  projectId: string;
401
422
  };
402
423
  };
403
- } | {
404
- output: {
405
- error: string;
406
- };
407
- outputFormat: "json";
408
- status: 400 | 404 | 409 | 500;
409
- input: {
410
- json: {
411
- name: string;
412
- description?: string | undefined;
413
- url: string;
414
- token?: string | undefined;
415
- tasks?: boolean | undefined;
416
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
417
- agent?: boolean | undefined;
418
- };
419
- } & {
420
- param: {
421
- projectId: string;
422
- };
423
- };
424
424
  };
425
425
  };
426
426
  } & {
@@ -618,10 +618,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
618
618
  };
619
619
  } | {
620
620
  output: {
621
- error: string;
621
+ ok: boolean;
622
+ status?: number | undefined;
623
+ error?: string | undefined;
624
+ dryRun?: boolean | undefined;
622
625
  };
623
626
  outputFormat: "json";
624
- status: 404;
627
+ status: import("hono/utils/http-status").ContentfulStatusCode;
625
628
  input: {
626
629
  param: {
627
630
  projectId: string;
@@ -630,13 +633,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
630
633
  };
631
634
  } | {
632
635
  output: {
633
- ok: boolean;
634
- status?: number | undefined;
635
- error?: string | undefined;
636
- dryRun?: boolean | undefined;
636
+ error: string;
637
637
  };
638
638
  outputFormat: "json";
639
- status: import("hono/utils/http-status").ContentfulStatusCode;
639
+ status: 404;
640
640
  input: {
641
641
  param: {
642
642
  projectId: string;
@@ -315,6 +315,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
315
315
  } & {
316
316
  "/repo/commit/:sha": {
317
317
  $get: {
318
+ output: string;
319
+ outputFormat: "text";
320
+ status: import("hono/utils/http-status").ContentfulStatusCode;
321
+ input: {
322
+ query: {
323
+ structured?: string | undefined;
324
+ };
325
+ } & {
326
+ param: {
327
+ sha: string;
328
+ };
329
+ };
330
+ } | {
318
331
  output: {
319
332
  error: string;
320
333
  code?: "invalid_input" | undefined;
@@ -378,19 +391,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
378
391
  sha: string;
379
392
  };
380
393
  };
381
- } | {
382
- output: string;
383
- outputFormat: "text";
384
- status: import("hono/utils/http-status").ContentfulStatusCode;
385
- input: {
386
- query: {
387
- structured?: string | undefined;
388
- };
389
- } & {
390
- param: {
391
- sha: string;
392
- };
393
- };
394
394
  };
395
395
  };
396
396
  } & {
@@ -58,15 +58,11 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- supported: boolean;
62
- installedVersion: string | null;
63
- latestVersion: string | null;
64
- updateAvailable: boolean;
65
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
66
- error: string | null;
61
+ error: string;
62
+ code?: "invalid_input" | undefined;
67
63
  };
68
64
  outputFormat: "json";
69
- status: 202;
65
+ status: 400;
70
66
  input: {
71
67
  param: {
72
68
  runner: string;
@@ -78,11 +74,15 @@ export declare function createRunnersRoutes(options: {
78
74
  };
79
75
  } | {
80
76
  output: {
81
- error: string;
82
- code?: "invalid_input" | undefined;
77
+ supported: boolean;
78
+ installedVersion: string | null;
79
+ latestVersion: string | null;
80
+ updateAvailable: boolean;
81
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
82
+ error: string | null;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 400;
85
+ status: 202;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;