@hearsay-tools/squawk 0.18.0-pr4344.8477 → 0.18.0-pr4345.8484

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 (81) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/index.js +23 -2
  3. package/dist/contract/session-context.d.ts +54 -8
  4. package/dist/data-gitignore.js +1 -0
  5. package/dist/data-gitignore.js.map +1 -1
  6. package/dist/delegation/transport.d.ts +65 -65
  7. package/dist/server/activity-routes.d.ts +23 -23
  8. package/dist/server/automations-routes.d.ts +150 -150
  9. package/dist/server/models-routes.d.ts +12 -12
  10. package/dist/server/project-settings-routes.d.ts +107 -107
  11. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  12. package/dist/server/providers-routes.d.ts +57 -57
  13. package/dist/server/repo-routes.d.ts +34 -34
  14. package/dist/server/reports-api.d.ts +2 -2
  15. package/dist/server/runner-install-routes.d.ts +10 -10
  16. package/dist/server/runs-routes.d.ts +303 -303
  17. package/dist/server/server.d.ts +1496 -1456
  18. package/dist/server/session-context-routes.d.ts +35 -15
  19. package/dist/server/session-context-routes.js +6 -6
  20. package/dist/server/session-context-routes.js.map +1 -1
  21. package/dist/server/workspace-routes.d.ts +84 -84
  22. package/dist/session-context-file.d.ts +3 -3
  23. package/dist/session-context-file.js +45 -16
  24. package/dist/session-context-file.js.map +1 -1
  25. package/dist/session-context.d.ts +18 -9
  26. package/dist/session-context.js +118 -47
  27. package/dist/session-context.js.map +1 -1
  28. package/package.json +4 -4
  29. package/web/dist/assets/{accounts-section-CuihHvuE.js → accounts-section-BT-KA5Aw.js} +1 -1
  30. package/web/dist/assets/{activity-motion-bKmIl_Ai.js → activity-motion-BL2bQufZ.js} +1 -1
  31. package/web/dist/assets/{activity-route-Bnz_NdUs.js → activity-route-CfLjbvX-.js} +1 -1
  32. package/web/dist/assets/{agent-config-section-uQrQrvBR.js → agent-config-section-isgedTYT.js} +1 -1
  33. package/web/dist/assets/{agent-defaults-section-1UTSo5HV.js → agent-defaults-section-DnGa0vZn.js} +1 -1
  34. package/web/dist/assets/{appearance-CZ0kce28.js → appearance-BE_8n1rr.js} +1 -1
  35. package/web/dist/assets/{archive-on-merge-field-CEyCpweg.js → archive-on-merge-field-C83q8HKD.js} +1 -1
  36. package/web/dist/assets/{automations-route-Dq90emTh.js → automations-route-CpDyl3jW.js} +1 -1
  37. package/web/dist/assets/{commit-diff-panel-Btc38N2Q.js → commit-diff-panel-ZJL9SvlZ.js} +1 -1
  38. package/web/dist/assets/{diff-C3-63Zgu.js → diff-t0VC73su.js} +2 -2
  39. package/web/dist/assets/{diff-view-D2O2Nm5P.js → diff-view-BxNyE6ve.js} +1 -1
  40. package/web/dist/assets/{file-preview-Bnq2OKGK.js → file-preview-DQ-T-D8H.js} +1 -1
  41. package/web/dist/assets/{folder-browser-Bn83Rjyn.js → folder-browser-CbWAXTsX.js} +1 -1
  42. package/web/dist/assets/{git-toolbar-RA8rF90D.js → git-toolbar-iZ2mG7oO.js} +1 -1
  43. package/web/dist/assets/{github-BRAMTLRU.js → github-BnHg2x4a.js} +1 -1
  44. package/web/dist/assets/{global-activity-route-Ii_-Fqqo.js → global-activity-route-6Fpj2ek4.js} +1 -1
  45. package/web/dist/assets/{index-DCw_bX8I.js → index-CMHOE-jE.js} +5 -5
  46. package/web/dist/assets/{label-tOtTf55G.js → label-Dbp-6aiT.js} +1 -1
  47. package/web/dist/assets/{markdown-G8tjpJd_.js → markdown-D1BGpE3v.js} +1 -1
  48. package/web/dist/assets/{notifications-section-Fk_ebhy_.js → notifications-section-DnC9npL3.js} +1 -1
  49. package/web/dist/assets/{open-in-menu-xzDJ4_Tv.js → open-in-menu-mDtfa4ES.js} +1 -1
  50. package/web/dist/assets/{preview-pane-connected-8HkdMxOW.js → preview-pane-connected-Ba2Tc4Uw.js} +1 -1
  51. package/web/dist/assets/{project-location-C9WLgY3A.js → project-location-c1oHm2yu.js} +1 -1
  52. package/web/dist/assets/{projects-section-Dmj4JFoi.js → projects-section-DwabmXYr.js} +1 -1
  53. package/web/dist/assets/{prompt-templates-section-DzfD2GES.js → prompt-templates-section-Dy3jde_2.js} +1 -1
  54. package/web/dist/assets/queries-dOBokhuR.js +1 -0
  55. package/web/dist/assets/{reference-chip-zRuFkaGy.js → reference-chip-1BEDWxcS.js} +1 -1
  56. package/web/dist/assets/{remote-settings-notice-CYiMrnys.js → remote-settings-notice-B07kuoGY.js} +1 -1
  57. package/web/dist/assets/{repo-git-B3tTtvIQ.js → repo-git-CIWMWcB1.js} +1 -1
  58. package/web/dist/assets/{report-reader-DBGA_8LA.js → report-reader-au3hsVnq.js} +1 -1
  59. package/web/dist/assets/{reports-B-Q6u2X6.js → reports-DhKekN8B.js} +1 -1
  60. package/web/dist/assets/{resources-section-C5ndEonC.js → resources-section-CaTs8f4X.js} +1 -1
  61. package/web/dist/assets/{run-header-DK4CZ3hY.js → run-header-oFGKOVQR.js} +1 -1
  62. package/web/dist/assets/session-context-section-DBB1qz9r.js +119 -0
  63. package/web/dist/assets/{settings-agent-picker-fkaIrncp.js → settings-agent-picker-B-bLF5nf.js} +1 -1
  64. package/web/dist/assets/{settings-shell-dzuuT5tw.js → settings-shell-FcgFxanP.js} +1 -1
  65. package/web/dist/assets/{sidebar-section-BIQilcgt.js → sidebar-section-C_-EzQXK.js} +1 -1
  66. package/web/dist/assets/{skills-C-jo20DK.js → skills-Js4Ees5K.js} +1 -1
  67. package/web/dist/assets/{task-changes-DnG-9vJh.js → task-changes-G0A9NfV-.js} +1 -1
  68. package/web/dist/assets/{task-commits-mqs3nfjk.js → task-commits-YYe7KUYB.js} +1 -1
  69. package/web/dist/assets/{task-files-DKB3Xp3N.js → task-files-BKgN092S.js} +1 -1
  70. package/web/dist/assets/{task-github-item-BA7W64bU.js → task-github-item-gznr9Fxa.js} +1 -1
  71. package/web/dist/assets/{task-groups-ClNnAPRA.js → task-groups-Ziytm1Sm.js} +1 -1
  72. package/web/dist/assets/{task-thread-B8zgMgtO.js → task-thread-CrFj20JU.js} +1 -1
  73. package/web/dist/assets/{tasks-table-CE_VVk0w.js → tasks-table-wTQZb7nJ.js} +1 -1
  74. package/web/dist/assets/{thread-state-8okW1FLM.js → thread-state-B0bNtkoV.js} +1 -1
  75. package/web/dist/assets/{use-hand-to-agent-state-BwLk3gNd.js → use-hand-to-agent-state-BAOFoVNc.js} +1 -1
  76. package/web/dist/assets/{workflows-BhQJM4JW.js → workflows-DpRgaKR7.js} +1 -1
  77. package/web/dist/assets/{workspace-tools-BZs10pQZ.js → workspace-tools-D6UQj5mq.js} +1 -1
  78. package/web/dist/assets/{worktrees-section-BTNZUVnW.js → worktrees-section-DXMfub26.js} +1 -1
  79. package/web/dist/index.html +8 -8
  80. package/web/dist/assets/queries-DRpvYgai.js +0 -1
  81. package/web/dist/assets/session-context-section-BAw6x6P2.js +0 -119
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -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,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB;IAClD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;IAC3B,IAAI,mBAAmB,CAAC,KAAK,CAAC;QAAE,OAAO;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG;QACb,WAAW;QACX,eAAe;QACf,0BAA0B,EAAE,gEAAgE;QAC5F,wBAAwB,EAAE,gEAAgE;QAC1F,SAAS;QACT,aAAa;QACb,aAAa;QACb,OAAO;QACP,YAAY;QACZ,MAAM,EAAE,gDAAgD;QACxD,IAA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I,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;AACH,CAAC"}
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
+ output: {
6
+ error: string;
7
+ code?: "invalid_input" | undefined;
8
+ };
9
+ outputFormat: "json";
10
+ status: 400;
11
+ input: {
12
+ query: {
13
+ offset?: string | undefined;
14
+ };
15
+ };
16
+ } | {
5
17
  output: {
6
18
  workers: {
7
19
  workerId: string;
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
54
66
  offset?: string | undefined;
55
67
  };
56
68
  };
57
- } | {
58
- output: {
59
- error: string;
60
- code?: "invalid_input" | undefined;
61
- };
62
- outputFormat: "json";
63
- status: 400;
64
- input: {
65
- query: {
66
- offset?: string | undefined;
67
- };
68
- };
69
69
  };
70
70
  };
71
71
  } & {
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
652
652
  } & {
653
653
  "/:workerId": {
654
654
  $get: {
655
+ output: {
656
+ error: string;
657
+ code?: "invalid_input" | undefined;
658
+ };
659
+ outputFormat: "json";
660
+ status: 400;
661
+ input: {
662
+ param: {
663
+ workerId: string;
664
+ };
665
+ };
666
+ } | {
655
667
  output: {
656
668
  workerId: string;
657
669
  settled: boolean;
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
776
788
  workerId: string;
777
789
  };
778
790
  };
779
- } | {
791
+ };
792
+ };
793
+ } & {
794
+ "/:workerId/collect": {
795
+ $post: {
780
796
  output: {
781
797
  error: string;
782
798
  code?: "invalid_input" | undefined;
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
787
803
  param: {
788
804
  workerId: string;
789
805
  };
806
+ } & {
807
+ json: Record<string, never>;
790
808
  };
791
- };
792
- };
793
- } & {
794
- "/:workerId/collect": {
795
- $post: {
809
+ } | {
796
810
  output: {
797
811
  workerId: string;
798
812
  parentRunId: string;
@@ -915,7 +929,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
915
929
  } & {
916
930
  json: Record<string, never>;
917
931
  };
918
- } | {
932
+ };
933
+ };
934
+ } & {
935
+ "/:workerId/steer": {
936
+ $post: {
919
937
  output: {
920
938
  error: string;
921
939
  code?: "invalid_input" | undefined;
@@ -927,13 +945,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
927
945
  workerId: string;
928
946
  };
929
947
  } & {
930
- json: Record<string, never>;
948
+ json: {
949
+ text: string;
950
+ };
931
951
  };
932
- };
933
- };
934
- } & {
935
- "/:workerId/steer": {
936
- $post: {
952
+ } | {
937
953
  output: {
938
954
  workerId: string;
939
955
  state: "delivered" | "queued";
@@ -949,7 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
949
965
  text: string;
950
966
  };
951
967
  };
952
- } | {
968
+ };
969
+ };
970
+ } & {
971
+ "/:workerId/stop": {
972
+ $post: {
953
973
  output: {
954
974
  error: string;
955
975
  code?: "invalid_input" | undefined;
@@ -961,15 +981,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
961
981
  workerId: string;
962
982
  };
963
983
  } & {
964
- json: {
965
- text: string;
966
- };
984
+ json: Record<string, never>;
967
985
  };
968
- };
969
- };
970
- } & {
971
- "/:workerId/stop": {
972
- $post: {
986
+ } | {
973
987
  output: {
974
988
  workerId: string;
975
989
  state: "stopping" | "terminated";
@@ -983,7 +997,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
983
997
  } & {
984
998
  json: Record<string, never>;
985
999
  };
986
- } | {
1000
+ };
1001
+ };
1002
+ } & {
1003
+ "/:workerId/destroy": {
1004
+ $post: {
987
1005
  output: {
988
1006
  error: string;
989
1007
  code?: "invalid_input" | undefined;
@@ -995,13 +1013,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
995
1013
  workerId: string;
996
1014
  };
997
1015
  } & {
998
- json: Record<string, never>;
1016
+ json: {
1017
+ discardWork?: true | undefined;
1018
+ };
999
1019
  };
1000
- };
1001
- };
1002
- } & {
1003
- "/:workerId/destroy": {
1004
- $post: {
1020
+ } | {
1005
1021
  output: {
1006
1022
  workerId: string;
1007
1023
  state: "complete" | "incomplete";
@@ -1030,22 +1046,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1030
1046
  discardWork?: true | undefined;
1031
1047
  };
1032
1048
  };
1033
- } | {
1034
- output: {
1035
- error: string;
1036
- code?: "invalid_input" | undefined;
1037
- };
1038
- outputFormat: "json";
1039
- status: 400;
1040
- input: {
1041
- param: {
1042
- workerId: string;
1043
- };
1044
- } & {
1045
- json: {
1046
- discardWork?: true | undefined;
1047
- };
1048
- };
1049
1049
  } | {
1050
1050
  output: {
1051
1051
  workerId: string;
@@ -1081,13 +1081,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1081
1081
  "/:workerId/diff": {
1082
1082
  $get: {
1083
1083
  output: {
1084
- workerId: string;
1085
- baselineSha: string;
1086
- diff: string;
1087
- truncated: boolean;
1084
+ error: string;
1085
+ code?: "invalid_input" | undefined;
1088
1086
  };
1089
1087
  outputFormat: "json";
1090
- status: 200;
1088
+ status: 400;
1091
1089
  input: {
1092
1090
  param: {
1093
1091
  workerId: string;
@@ -1095,11 +1093,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1095
1093
  };
1096
1094
  } | {
1097
1095
  output: {
1098
- error: string;
1099
- code?: "invalid_input" | undefined;
1096
+ workerId: string;
1097
+ baselineSha: string;
1098
+ diff: string;
1099
+ truncated: boolean;
1100
1100
  };
1101
1101
  outputFormat: "json";
1102
- status: 400;
1102
+ status: 200;
1103
1103
  input: {
1104
1104
  param: {
1105
1105
  workerId: string;
@@ -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">;