@hearsay-tools/squawk 0.19.0-dev.9102 → 0.19.0-dev.9112

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 (43) hide show
  1. package/dist/contract/hosts.d.ts +47 -5
  2. package/dist/contract/index.js +19 -1
  3. package/dist/delegation/routes.d.ts +78 -78
  4. package/dist/features/hosts/bootstrap.d.ts +120 -0
  5. package/dist/features/hosts/bootstrap.js +469 -0
  6. package/dist/features/hosts/bootstrap.js.map +1 -0
  7. package/dist/features/hosts/cli.d.ts +13 -3
  8. package/dist/features/hosts/cli.js +199 -27
  9. package/dist/features/hosts/cli.js.map +1 -1
  10. package/dist/features/hosts/host-actions.d.ts +56 -0
  11. package/dist/features/hosts/host-actions.js +367 -0
  12. package/dist/features/hosts/host-actions.js.map +1 -0
  13. package/dist/features/hosts/host-server-cli.js +21 -3
  14. package/dist/features/hosts/host-server-cli.js.map +1 -1
  15. package/dist/features/hosts/host-server.d.ts +10 -1
  16. package/dist/features/hosts/host-server.js +74 -0
  17. package/dist/features/hosts/host-server.js.map +1 -1
  18. package/dist/features/hosts/index.d.ts +4 -2
  19. package/dist/features/hosts/index.js +14 -2
  20. package/dist/features/hosts/index.js.map +1 -1
  21. package/dist/features/hosts/registry.d.ts +28 -0
  22. package/dist/features/hosts/registry.js +42 -1
  23. package/dist/features/hosts/registry.js.map +1 -1
  24. package/dist/features/hosts/routes.d.ts +5 -3
  25. package/dist/features/hosts/routes.js +14 -7
  26. package/dist/features/hosts/routes.js.map +1 -1
  27. package/dist/features/hosts/ssh.d.ts +85 -0
  28. package/dist/features/hosts/ssh.js +271 -0
  29. package/dist/features/hosts/ssh.js.map +1 -0
  30. package/dist/features/hosts/supervisor.d.ts +191 -0
  31. package/dist/features/hosts/supervisor.js +620 -0
  32. package/dist/features/hosts/supervisor.js.map +1 -0
  33. package/dist/features/hosts/tunnel.d.ts +46 -0
  34. package/dist/features/hosts/tunnel.js +244 -0
  35. package/dist/features/hosts/tunnel.js.map +1 -0
  36. package/dist/features/reports/routes.d.ts +2 -2
  37. package/dist/features/webhooks/routes.d.ts +13 -13
  38. package/dist/server/models-routes.d.ts +12 -12
  39. package/dist/server/providers-routes.d.ts +58 -58
  40. package/dist/server/runners-routes.d.ts +10 -10
  41. package/dist/server/workspace-live-routes.d.ts +5 -5
  42. package/dist/server/workspace-routes.d.ts +85 -85
  43. package/package.json +4 -4
@@ -0,0 +1,46 @@
1
+ import { type WorkspaceIdentityResponse } from '../../contract/index.js';
2
+ import { type SshTransportDeps } from './ssh.ts';
3
+ export interface TunnelExitInfo {
4
+ readonly code: number | null;
5
+ readonly signal: NodeJS.Signals | null;
6
+ readonly reason: string;
7
+ }
8
+ export interface HostTunnel {
9
+ readonly localPort: number;
10
+ readonly remotePort: number;
11
+ readonly pid: number | undefined;
12
+ readonly exited: Promise<TunnelExitInfo>;
13
+ close(): Promise<void>;
14
+ }
15
+ export interface TunnelDeps extends SshTransportDeps {
16
+ pickLocalPort?: (() => Promise<number>) | undefined;
17
+ fetch?: typeof fetch | undefined;
18
+ nowMs?: (() => number) | undefined;
19
+ waitMs?: ((ms: number) => Promise<void>) | undefined;
20
+ }
21
+ export type OpenTunnelResult = {
22
+ ok: true;
23
+ tunnel: HostTunnel;
24
+ identity: WorkspaceIdentityResponse;
25
+ localHandoff: boolean;
26
+ } | {
27
+ ok: false;
28
+ state: 'unreachable' | 'not-hosted';
29
+ reason: string;
30
+ };
31
+ /** Ask the operating system for an ephemeral loopback TCP port. Never stored on disk. */
32
+ export declare function pickFreeLoopbackPort(): Promise<number>;
33
+ /**
34
+ * Open an SSH loopback tunnel to `127.0.0.1:<remotePort>` on `sshAlias` and verify it via
35
+ * `GET /api/v1/workspace/identity` (requiring an exact match with `expectedInstallId` from
36
+ * `ensure` over SSH while the SSH child stays alive) and `GET /api/v1/health`. Retries on a
37
+ * fresh ephemeral port if another local process claimed the port first.
38
+ */
39
+ export declare function openSshTunnel(input: {
40
+ sshAlias: string;
41
+ remotePort: number;
42
+ expectedInstallId: string;
43
+ timeoutMs?: number | undefined;
44
+ signal?: AbortSignal | undefined;
45
+ deps?: TunnelDeps | undefined;
46
+ }): Promise<OpenTunnelResult>;
@@ -0,0 +1,244 @@
1
+ /**
2
+ * Managed SSH loopback tunnel (`ssh -N -L 127.0.0.1:<local>:127.0.0.1:<remote>`) and remote
3
+ * server verification (`GET /api/v1/workspace/identity` + `GET /api/v1/health`,
4
+ * spec § Architecture 2 steps 4–5, hearsay-tools/squawk#4539).
5
+ *
6
+ * The local port is picked by the operating system and never persisted to disk. The tunnel runs
7
+ * as a direct child of the main server and terminates when the supervisor or server stops.
8
+ */
9
+ import { spawn } from 'node:child_process';
10
+ import { createServer } from 'node:net';
11
+ import { setTimeout as delay } from 'node:timers/promises';
12
+ import { workspaceIdentityResponseSchema } from '../../contract/index.js';
13
+ import { SSH_TUNNEL_READY_TIMEOUT_MS, buildSshLocalEnv, buildSshTunnelArgv, firstStderrLine, resolveIsolatedSshConfigPath, terminateSshChild, } from './ssh.js';
14
+ const TUNNEL_POLL_INTERVAL_MS = 50;
15
+ const TUNNEL_VERIFY_FETCH_TIMEOUT_MS = 4_000;
16
+ const MAX_TUNNEL_STDERR_BYTES = 32 * 1024;
17
+ const MAX_BIND_ATTEMPTS = 2;
18
+ /** Ask the operating system for an ephemeral loopback TCP port. Never stored on disk. */
19
+ export function pickFreeLoopbackPort() {
20
+ return new Promise((resolve, reject) => {
21
+ const server = createServer();
22
+ server.once('error', reject);
23
+ server.listen(0, '127.0.0.1', () => {
24
+ const address = server.address();
25
+ if (!address || typeof address === 'string') {
26
+ server.close(() => reject(new Error('Could not allocate an ephemeral loopback port.')));
27
+ return;
28
+ }
29
+ const { port } = address;
30
+ server.close((error) => {
31
+ if (error)
32
+ reject(error);
33
+ else
34
+ resolve(port);
35
+ });
36
+ });
37
+ });
38
+ }
39
+ async function readHealthHostedFlag(localPort, fetchFn, signal) {
40
+ const fetchSignal = signal
41
+ ? AbortSignal.any([signal, AbortSignal.timeout(TUNNEL_VERIFY_FETCH_TIMEOUT_MS)])
42
+ : AbortSignal.timeout(TUNNEL_VERIFY_FETCH_TIMEOUT_MS);
43
+ let res;
44
+ try {
45
+ res = await fetchFn(`http://127.0.0.1:${localPort}/api/v1/health`, { signal: fetchSignal });
46
+ }
47
+ catch (error) {
48
+ return {
49
+ ok: false,
50
+ state: 'unreachable',
51
+ reason: `Could not verify remote server health through tunnel: ${error instanceof Error ? error.message : String(error)}`,
52
+ };
53
+ }
54
+ if (!res.ok) {
55
+ return { ok: false, state: 'unreachable', reason: `Remote /api/v1/health answered HTTP ${res.status}` };
56
+ }
57
+ let body;
58
+ try {
59
+ body = await res.json();
60
+ }
61
+ catch {
62
+ return { ok: false, state: 'not-hosted', reason: 'Remote /api/v1/health did not return valid JSON; cannot verify hosted mode.' };
63
+ }
64
+ const caps = body?.capabilities;
65
+ if (typeof caps?.localHandoff !== 'boolean') {
66
+ return { ok: false, state: 'not-hosted', reason: 'Remote /api/v1/health omitted capabilities.localHandoff; refusing non-hosted server.' };
67
+ }
68
+ return { ok: true, localHandoff: caps.localHandoff };
69
+ }
70
+ async function probeTunnelIdentity(localPort, fetchFn, signal) {
71
+ const fetchSignal = signal
72
+ ? AbortSignal.any([signal, AbortSignal.timeout(TUNNEL_VERIFY_FETCH_TIMEOUT_MS)])
73
+ : AbortSignal.timeout(TUNNEL_VERIFY_FETCH_TIMEOUT_MS);
74
+ let res;
75
+ try {
76
+ res = await fetchFn(`http://127.0.0.1:${localPort}/api/v1/workspace/identity`, { signal: fetchSignal });
77
+ }
78
+ catch {
79
+ return { status: 'retry' };
80
+ }
81
+ if (!res.ok) {
82
+ return {
83
+ status: 'failed',
84
+ state: 'unreachable',
85
+ reason: `Remote /api/v1/workspace/identity answered HTTP ${res.status}`,
86
+ };
87
+ }
88
+ let raw;
89
+ try {
90
+ raw = await res.json();
91
+ }
92
+ catch {
93
+ return {
94
+ status: 'failed',
95
+ state: 'unreachable',
96
+ reason: 'Remote /api/v1/workspace/identity returned invalid JSON.',
97
+ };
98
+ }
99
+ const parsed = workspaceIdentityResponseSchema.safeParse(raw);
100
+ if (!parsed.success) {
101
+ return {
102
+ status: 'failed',
103
+ state: 'unreachable',
104
+ reason: 'Remote /api/v1/workspace/identity returned an unexpected shape.',
105
+ };
106
+ }
107
+ const health = await readHealthHostedFlag(localPort, fetchFn, signal);
108
+ if (!health.ok) {
109
+ return { status: 'failed', state: health.state, reason: health.reason };
110
+ }
111
+ return { status: 'ready', identity: parsed.data, localHandoff: health.localHandoff };
112
+ }
113
+ function spawnTunnelChild(sshAlias, localPort, remotePort, deps) {
114
+ const spawnFn = deps.spawn ?? spawn;
115
+ const argv = buildSshTunnelArgv(sshAlias, localPort, remotePort, {
116
+ connectTimeoutSeconds: deps.connectTimeoutSeconds,
117
+ sshConfigPath: resolveIsolatedSshConfigPath(deps.env),
118
+ });
119
+ const child = spawnFn(deps.sshBin ?? 'ssh', argv, {
120
+ env: buildSshLocalEnv(deps.env),
121
+ stdio: ['ignore', 'ignore', 'pipe'],
122
+ });
123
+ let stderr = '';
124
+ child.stderr?.on('data', (chunk) => {
125
+ if (stderr.length < MAX_TUNNEL_STDERR_BYTES) {
126
+ stderr += chunk.toString('utf8');
127
+ }
128
+ });
129
+ let exitInfo;
130
+ const exited = new Promise((resolve) => {
131
+ const finish = (info) => {
132
+ if (exitInfo)
133
+ return;
134
+ exitInfo = info;
135
+ resolve(info);
136
+ };
137
+ child.once('error', (error) => {
138
+ finish({ code: null, signal: null, reason: firstStderrLine(stderr, error.message) });
139
+ });
140
+ child.once('close', (code, signal) => {
141
+ const fallback = signal
142
+ ? `SSH tunnel exited with signal ${signal}`
143
+ : `SSH tunnel exited with code ${String(code ?? 'unknown')}`;
144
+ finish({ code, signal, reason: firstStderrLine(stderr, fallback) });
145
+ });
146
+ });
147
+ const tunnel = {
148
+ localPort,
149
+ remotePort,
150
+ pid: child.pid,
151
+ exited,
152
+ close: async () => {
153
+ await terminateSshChild(child);
154
+ await exited;
155
+ },
156
+ };
157
+ return {
158
+ tunnel,
159
+ exitedNow: () => exitInfo,
160
+ isAlive: () => exitInfo === undefined && child.exitCode === null && child.signalCode === null,
161
+ };
162
+ }
163
+ function isBindRaceReason(reason) {
164
+ return /address already in use|could not request local forwarding/i.test(reason);
165
+ }
166
+ async function openTunnelOnce(input) {
167
+ const { sshAlias, remotePort, expectedInstallId, timeoutMs, signal, deps } = input;
168
+ const pickPort = deps.pickLocalPort ?? pickFreeLoopbackPort;
169
+ const fetchFn = deps.fetch ?? fetch;
170
+ const nowMs = deps.nowMs ?? Date.now;
171
+ const waitMs = deps.waitMs ?? ((ms) => delay(ms));
172
+ const localPort = await pickPort();
173
+ const { tunnel, exitedNow, isAlive } = spawnTunnelChild(sshAlias, localPort, remotePort, deps);
174
+ const deadline = nowMs() + timeoutMs;
175
+ while (true) {
176
+ if (signal?.aborted) {
177
+ await tunnel.close();
178
+ return { ok: false, state: 'unreachable', reason: 'Tunnel setup aborted' };
179
+ }
180
+ const earlyExit = exitedNow();
181
+ if (earlyExit) {
182
+ return { ok: false, state: 'unreachable', reason: earlyExit.reason, bindRace: isBindRaceReason(earlyExit.reason) };
183
+ }
184
+ const probe = await probeTunnelIdentity(localPort, fetchFn, signal);
185
+ if (probe.status === 'ready') {
186
+ const exitAfterProbe = exitedNow();
187
+ if (exitAfterProbe || !isAlive()) {
188
+ const reason = exitAfterProbe?.reason ?? 'SSH tunnel exited during identity verification.';
189
+ await tunnel.close();
190
+ return { ok: false, state: 'unreachable', reason, bindRace: isBindRaceReason(reason) };
191
+ }
192
+ if (probe.identity.installId !== expectedInstallId) {
193
+ await tunnel.close();
194
+ return {
195
+ ok: false,
196
+ state: 'unreachable',
197
+ reason: 'Local tunnel port answered with an unexpected install id (port collision).',
198
+ bindRace: true,
199
+ };
200
+ }
201
+ return { ok: true, tunnel, identity: probe.identity, localHandoff: probe.localHandoff };
202
+ }
203
+ if (probe.status === 'failed') {
204
+ const exitAfterFail = exitedNow();
205
+ await tunnel.close();
206
+ if (exitAfterFail) {
207
+ return { ok: false, state: 'unreachable', reason: exitAfterFail.reason, bindRace: isBindRaceReason(exitAfterFail.reason) };
208
+ }
209
+ return { ok: false, state: probe.state, reason: probe.reason };
210
+ }
211
+ if (nowMs() >= deadline) {
212
+ await tunnel.close();
213
+ return { ok: false, state: 'unreachable', reason: `SSH tunnel timed out after ${timeoutMs}ms` };
214
+ }
215
+ await waitMs(TUNNEL_POLL_INTERVAL_MS);
216
+ }
217
+ }
218
+ /**
219
+ * Open an SSH loopback tunnel to `127.0.0.1:<remotePort>` on `sshAlias` and verify it via
220
+ * `GET /api/v1/workspace/identity` (requiring an exact match with `expectedInstallId` from
221
+ * `ensure` over SSH while the SSH child stays alive) and `GET /api/v1/health`. Retries on a
222
+ * fresh ephemeral port if another local process claimed the port first.
223
+ */
224
+ export async function openSshTunnel(input) {
225
+ const timeoutMs = input.timeoutMs ?? SSH_TUNNEL_READY_TIMEOUT_MS;
226
+ const deps = input.deps ?? {};
227
+ for (let attempt = 0; attempt < MAX_BIND_ATTEMPTS; attempt++) {
228
+ const result = await openTunnelOnce({
229
+ sshAlias: input.sshAlias,
230
+ remotePort: input.remotePort,
231
+ expectedInstallId: input.expectedInstallId,
232
+ timeoutMs,
233
+ signal: input.signal,
234
+ deps,
235
+ });
236
+ if (result.ok || !result.bindRace || attempt + 1 >= MAX_BIND_ATTEMPTS) {
237
+ return result.ok
238
+ ? { ok: true, tunnel: result.tunnel, identity: result.identity, localHandoff: result.localHandoff }
239
+ : { ok: false, state: result.state, reason: result.reason };
240
+ }
241
+ }
242
+ return { ok: false, state: 'unreachable', reason: 'SSH tunnel failed to bind a local loopback port.' };
243
+ }
244
+ //# sourceMappingURL=tunnel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnel.js","sourceRoot":"","sources":["../../../src/features/hosts/tunnel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,EAAE,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,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,iBAAiB,EAAE,CAAC;YACtE,OAAO,MAAM,CAAC,EAAE;gBACd,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE;gBACnG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAChE,CAAC;IACH,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,kDAAkD,EAAE,CAAC;AACzG,CAAC"}
@@ -42,7 +42,7 @@ export declare function createReportsRoutes(): import("hono/hono-base").HonoBase
42
42
  error: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 409;
45
+ status: 400;
46
46
  input: {
47
47
  query: {
48
48
  q?: string | undefined;
@@ -55,7 +55,7 @@ export declare function createReportsRoutes(): import("hono/hono-base").HonoBase
55
55
  error: string;
56
56
  };
57
57
  outputFormat: "json";
58
- status: 400;
58
+ status: 409;
59
59
  input: {
60
60
  query: {
61
61
  q?: string | undefined;
@@ -348,19 +348,6 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
348
348
  webhookId: string;
349
349
  };
350
350
  };
351
- } | {
352
- output: {
353
- error: string;
354
- code?: "no-boot-project" | undefined;
355
- };
356
- outputFormat: "json";
357
- status: 400 | 404 | 409 | 500;
358
- input: {
359
- param: {
360
- projectId: string;
361
- webhookId: string;
362
- };
363
- };
364
351
  } | {
365
352
  output: {
366
353
  project: {
@@ -401,6 +388,19 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
401
388
  webhookId: string;
402
389
  };
403
390
  };
391
+ } | {
392
+ output: {
393
+ error: string;
394
+ code?: "no-boot-project" | undefined;
395
+ };
396
+ outputFormat: "json";
397
+ status: 400 | 404 | 409 | 500;
398
+ input: {
399
+ param: {
400
+ projectId: string;
401
+ webhookId: string;
402
+ };
403
+ };
404
404
  };
405
405
  };
406
406
  } & {
@@ -22,6 +22,18 @@ export declare function createModelsRoutes(options: {
22
22
  profileId?: string | undefined;
23
23
  };
24
24
  };
25
+ } | {
26
+ output: {
27
+ error: string;
28
+ };
29
+ outputFormat: "json";
30
+ status: 400;
31
+ input: {
32
+ query: {
33
+ runner: string | string[];
34
+ profileId?: string | undefined;
35
+ };
36
+ };
25
37
  } | {
26
38
  output: {
27
39
  runner: string;
@@ -43,18 +55,6 @@ export declare function createModelsRoutes(options: {
43
55
  profileId?: string | undefined;
44
56
  };
45
57
  };
46
- } | {
47
- output: {
48
- error: string;
49
- };
50
- outputFormat: "json";
51
- status: 400;
52
- input: {
53
- query: {
54
- runner: string | string[];
55
- profileId?: string | undefined;
56
- };
57
- };
58
58
  };
59
59
  };
60
60
  }, "/", "/models">;
@@ -70,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
70
70
  };
71
71
  } | {
72
72
  output: {
73
- providers: {
74
- requiresAccountHome?: boolean | undefined;
75
- provider: string;
76
- status: "connected" | "disconnected" | "not-installed" | "unknown";
77
- enabled?: boolean | undefined;
78
- hint?: string | undefined;
79
- authFailureId?: string | undefined;
80
- profileId?: string | undefined;
81
- }[];
73
+ error: string;
82
74
  };
83
75
  outputFormat: "json";
84
- status: import("hono/utils/http-status").ContentfulStatusCode;
76
+ status: 500;
85
77
  input: {
86
78
  param: {
87
79
  provider: string;
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
93
85
  };
94
86
  } | {
95
87
  output: {
96
- error: string;
88
+ providers: {
89
+ requiresAccountHome?: boolean | undefined;
90
+ provider: string;
91
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
92
+ enabled?: boolean | undefined;
93
+ hint?: string | undefined;
94
+ authFailureId?: string | undefined;
95
+ profileId?: string | undefined;
96
+ }[];
97
97
  };
98
98
  outputFormat: "json";
99
- status: 500;
99
+ status: import("hono/utils/http-status").ContentfulStatusCode;
100
100
  input: {
101
101
  param: {
102
102
  provider: string;
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
128
128
  };
129
129
  } | {
130
130
  output: {
131
- providers: {
132
- requiresAccountHome?: boolean | undefined;
133
- provider: string;
134
- status: "connected" | "disconnected" | "not-installed" | "unknown";
135
- enabled?: boolean | undefined;
136
- hint?: string | undefined;
137
- authFailureId?: string | undefined;
138
- profileId?: string | undefined;
139
- }[];
131
+ error: string;
140
132
  };
141
133
  outputFormat: "json";
142
- status: import("hono/utils/http-status").ContentfulStatusCode;
134
+ status: 409;
143
135
  input: {
144
136
  param: {
145
137
  provider: string;
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
151
143
  };
152
144
  } | {
153
145
  output: {
154
- error: string;
146
+ providers: {
147
+ requiresAccountHome?: boolean | undefined;
148
+ provider: string;
149
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
150
+ enabled?: boolean | undefined;
151
+ hint?: string | undefined;
152
+ authFailureId?: string | undefined;
153
+ profileId?: string | undefined;
154
+ }[];
155
155
  };
156
156
  outputFormat: "json";
157
- status: 409;
157
+ status: import("hono/utils/http-status").ContentfulStatusCode;
158
158
  input: {
159
159
  param: {
160
160
  provider: string;
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
173
173
  error: string;
174
174
  };
175
175
  outputFormat: "json";
176
- status: 409;
176
+ status: 400;
177
177
  input: {
178
178
  json: {
179
179
  provider: string;
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
185
185
  error: string;
186
186
  };
187
187
  outputFormat: "json";
188
- status: 400;
188
+ status: 409;
189
189
  input: {
190
190
  json: {
191
191
  provider: string;
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
290
290
  "/workspace/agent-profiles": {
291
291
  $post: {
292
292
  output: {
293
- error: string;
293
+ profile: {
294
+ id: string;
295
+ provider: string;
296
+ label: string;
297
+ configDir?: string | undefined;
298
+ path?: string | undefined;
299
+ exists: boolean;
300
+ looksValid: boolean;
301
+ isDefault: boolean;
302
+ status?: {
303
+ requiresAccountHome?: boolean | undefined;
304
+ provider: string;
305
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
306
+ enabled?: boolean | undefined;
307
+ hint?: string | undefined;
308
+ authFailureId?: string | undefined;
309
+ profileId?: string | undefined;
310
+ } | undefined;
311
+ };
294
312
  };
295
313
  outputFormat: "json";
296
- status: 409;
314
+ status: 201;
297
315
  input: {
298
316
  json: {
299
317
  provider: string;
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
319
337
  error: string;
320
338
  };
321
339
  outputFormat: "json";
322
- status: 500;
340
+ status: 409;
323
341
  input: {
324
342
  json: {
325
343
  provider: string;
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
329
347
  };
330
348
  } | {
331
349
  output: {
332
- profile: {
333
- id: string;
334
- provider: string;
335
- label: string;
336
- configDir?: string | undefined;
337
- path?: string | undefined;
338
- exists: boolean;
339
- looksValid: boolean;
340
- isDefault: boolean;
341
- status?: {
342
- requiresAccountHome?: boolean | undefined;
343
- provider: string;
344
- status: "connected" | "disconnected" | "not-installed" | "unknown";
345
- enabled?: boolean | undefined;
346
- hint?: string | undefined;
347
- authFailureId?: string | undefined;
348
- profileId?: string | undefined;
349
- } | undefined;
350
- };
350
+ error: string;
351
351
  };
352
352
  outputFormat: "json";
353
- status: 201;
353
+ status: 500;
354
354
  input: {
355
355
  json: {
356
356
  provider: string;
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
384
384
  error: string;
385
385
  };
386
386
  outputFormat: "json";
387
- status: 409;
387
+ status: 400;
388
388
  input: {
389
389
  param: {
390
390
  id: string;
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
400
400
  error: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 400;
403
+ status: 404;
404
404
  input: {
405
405
  param: {
406
406
  id: string;
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
416
416
  error: string;
417
417
  };
418
418
  outputFormat: "json";
419
- status: 404;
419
+ status: 409;
420
420
  input: {
421
421
  param: {
422
422
  id: string;
@@ -542,10 +542,9 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
542
542
  $put: {
543
543
  output: {
544
544
  error: string;
545
- code: "no-boot-project";
546
545
  };
547
546
  outputFormat: "json";
548
- status: 409;
547
+ status: 400;
549
548
  input: {
550
549
  json: {
551
550
  projectId: string;
@@ -569,9 +568,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
569
568
  } | {
570
569
  output: {
571
570
  error: string;
571
+ code: "no-boot-project";
572
572
  };
573
573
  outputFormat: "json";
574
- status: 400;
574
+ status: 409;
575
575
  input: {
576
576
  json: {
577
577
  projectId: string;
@@ -635,7 +635,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
635
635
  error: string;
636
636
  };
637
637
  outputFormat: "json";
638
- status: 409;
638
+ status: 404;
639
639
  input: {
640
640
  param: {
641
641
  id: string;
@@ -646,7 +646,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
646
646
  error: string;
647
647
  };
648
648
  outputFormat: "json";
649
- status: 500;
649
+ status: 409;
650
650
  input: {
651
651
  param: {
652
652
  id: string;
@@ -657,7 +657,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
657
657
  error: string;
658
658
  };
659
659
  outputFormat: "json";
660
- status: 404;
660
+ status: 500;
661
661
  input: {
662
662
  param: {
663
663
  id: string;