@hearsay-tools/squawk 0.18.0-dev.6390 → 0.18.0-dev.6403
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.
- package/README.md +0 -1
- package/dist/cli-dispatch.d.ts +0 -3
- package/dist/cli-dispatch.js +6 -17
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/contract/health.d.ts +0 -2
- package/dist/contract/index.js +0 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runs/run-index.js +16 -46
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-references.d.ts +3 -0
- package/dist/runs/run-references.js +8 -1
- package/dist/runs/run-references.js.map +1 -1
- package/dist/runs/store.d.ts +10 -0
- package/dist/runs/store.js +18 -21
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-sources.d.ts +2 -2
- package/dist/server/activity-sources.js +4 -4
- package/dist/server/activity-sources.js.map +1 -1
- package/dist/server/capabilities.d.ts +0 -5
- package/dist/server/capabilities.js +0 -1
- package/dist/server/capabilities.js.map +1 -1
- package/dist/server/server.d.ts +60 -117
- package/dist/server/server.js +8 -37
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-server.js +7 -10
- package/dist/server/start-server.js.map +1 -1
- package/dist/server/workspace-projects.d.ts +1 -6
- package/dist/server/workspace-projects.js +3 -14
- package/dist/server/workspace-projects.js.map +1 -1
- package/dist/workspace/projects-cli.d.ts +0 -2
- package/dist/workspace/projects-cli.js +4 -27
- package/dist/workspace/projects-cli.js.map +1 -1
- package/dist/workspace/projects.d.ts +1 -5
- package/dist/workspace/projects.js +8 -5
- package/dist/workspace/projects.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-project-probes.mjs +1 -1
- package/scripts/benchmark-workspace-events.ts +1 -1
- package/web/dist/assets/{activity-motion-DdE0kJi3.js → activity-motion-u7cCOvIh.js} +1 -1
- package/web/dist/assets/{activity-route-DLSJeSnu.js → activity-route-BthlzLJS.js} +1 -1
- package/web/dist/assets/{agent-accounts-CH91aYcr.js → agent-accounts-CbqP0u9A.js} +1 -1
- package/web/dist/assets/attention-CCx8Iagl.js +1 -0
- package/web/dist/assets/{commit-diff-panel-1KsqfPQm.js → commit-diff-panel-B1FnfuXx.js} +1 -1
- package/web/dist/assets/{diff-BcgZstvZ.js → diff-DwhVa59f.js} +2 -2
- package/web/dist/assets/{diff-view-Bf81mon2.js → diff-view-C4JhxweA.js} +1 -1
- package/web/dist/assets/{file-preview-CWH2pPkO.js → file-preview-xqxo9aYs.js} +1 -1
- package/web/dist/assets/{git-toolbar-BDazbdBO.js → git-toolbar-B5EhJG95.js} +1 -1
- package/web/dist/assets/{github-DYA-wBvz.js → github-CGvl-B9Z.js} +1 -1
- package/web/dist/assets/{global-activity-route-CalieTgD.js → global-activity-route-n_BdJZWx.js} +1 -1
- package/web/dist/assets/index-O1VoICYw.js +17 -0
- package/web/dist/assets/{preview-pane-connected-BUPElme2.js → preview-pane-connected-OWg6VXKi.js} +1 -1
- package/web/dist/assets/{project-router-DZfQkmEw.js → project-router-Coo_s3l-.js} +1 -1
- package/web/dist/assets/{project-scope-context-DHDNqsXD.js → project-scope-context-WiGQMFsB.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-Dyu7XblO.js → prompt-template-menu-Ch7UoIKH.js} +1 -1
- package/web/dist/assets/{queries-BvZol9tf.js → queries-BLvbAnL8.js} +1 -1
- package/web/dist/assets/{reference-chip-BD5-b_CU.js → reference-chip-P6ytqWNt.js} +1 -1
- package/web/dist/assets/{repo-git-B-pzLLjM.js → repo-git-ZeZnpwuR.js} +1 -1
- package/web/dist/assets/{report-reader-BKo8xIqy.js → report-reader-D_uzPRmR.js} +1 -1
- package/web/dist/assets/{reports-CHoco8IF.js → reports-C49_pROg.js} +1 -1
- package/web/dist/assets/{run-header-Co7v26sT.js → run-header-BR1PGTJB.js} +1 -1
- package/web/dist/assets/{skills-BVSRZ4Fr.js → skills-BHpdpRR-.js} +1 -1
- package/web/dist/assets/{tab-link-CXiNVJ5a.js → tab-link-CONf2d_z.js} +1 -1
- package/web/dist/assets/{task-changes-CItEr9td.js → task-changes-DqcCJDTC.js} +1 -1
- package/web/dist/assets/{task-commits-BYAybF0L.js → task-commits-Jmpz5NtV.js} +1 -1
- package/web/dist/assets/{task-files-CW8lh-Jp.js → task-files-BFSteFDh.js} +1 -1
- package/web/dist/assets/{task-github-item-FWzM8NKC.js → task-github-item-CIno99eX.js} +1 -1
- package/web/dist/assets/{task-thread-CCUIMhcV.js → task-thread-BKkxwKd_.js} +1 -1
- package/web/dist/assets/{thread-state-CFLv_VQJ.js → thread-state-Bwt_th_-.js} +1 -1
- package/web/dist/assets/{use-desktop-DhAwfRfO.js → use-desktop-CW-Femww.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CqFlsg5z.js → use-hand-to-agent-state-XV1UwyxH.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-BmndP0ve.js → useInfiniteQuery-BgLdxmcZ.js} +1 -1
- package/web/dist/assets/useQuery-CY8bJTYi.js +1 -0
- package/web/dist/assets/{workflows-DJgvKk6C.js → workflows-DUCROjgb.js} +1 -1
- package/web/dist/assets/{ws-DBsqEdPb.js → ws-8bmD25V4.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/attention-BQflw45i.js +0 -1
- package/web/dist/assets/index-B7K7I3e9.js +0 -17
- package/web/dist/assets/useQuery-CsEdg2zt.js +0 -1
|
@@ -8,7 +8,7 @@ export interface ActivitySourceDeps {
|
|
|
8
8
|
contexts: {
|
|
9
9
|
peek(projectId: string): LoadedProject | undefined;
|
|
10
10
|
};
|
|
11
|
-
workspaceProjects: Pick<WorkspaceProjects, '
|
|
11
|
+
workspaceProjects: Pick<WorkspaceProjects, 'listProjects' | 'resolveBootProject' | 'projectFailure'>;
|
|
12
12
|
/** The check progress of a loaded project's own CI watchers. */
|
|
13
13
|
ciOf?: (project: LoadedProject) => CiProgressSource | undefined;
|
|
14
14
|
}
|
|
@@ -21,6 +21,6 @@ export declare function createActivitySources({ bootContext, contexts, workspace
|
|
|
21
21
|
loadedSource: (project: LoadedProject, name: string) => LiveActivitySource;
|
|
22
22
|
/** One loaded project, named from the registry. */
|
|
23
23
|
project: (project: LoadedProject) => Promise<LiveActivitySource>;
|
|
24
|
-
/** Every
|
|
24
|
+
/** Every registered project; the ones this process has not loaded answer `loaded: false`. */
|
|
25
25
|
workspace: () => Promise<LiveActivitySource[]>;
|
|
26
26
|
};
|
|
@@ -20,15 +20,15 @@ export function createActivitySources({ bootContext, contexts, workspaceProjects
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
/** The registry, or undefined when it cannot be read. */
|
|
23
|
-
const
|
|
23
|
+
const registeredProjects = () => workspaceProjects.listProjects().catch(() => undefined);
|
|
24
24
|
const projectName = (projects, id, root) => projects?.find((project) => project.id === id)?.name ?? basename(root);
|
|
25
25
|
return {
|
|
26
26
|
loadedSource,
|
|
27
27
|
/** One loaded project, named from the registry. */
|
|
28
|
-
project: async (project) => loadedSource(project, projectName(await
|
|
29
|
-
/** Every
|
|
28
|
+
project: async (project) => loadedSource(project, projectName(await registeredProjects(), project.id, project.root)),
|
|
29
|
+
/** Every registered project; the ones this process has not loaded answer `loaded: false`. */
|
|
30
30
|
workspace: async () => {
|
|
31
|
-
const projects = await
|
|
31
|
+
const projects = await registeredProjects();
|
|
32
32
|
const bootId = await workspaceProjects.resolveBootProject(projects);
|
|
33
33
|
const sources = (projects ?? []).map((entry) => {
|
|
34
34
|
const owned = entry.id === bootId ? { ...bootContext, id: bootId } : contexts.peek(entry.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-sources.js","sourceRoot":"","sources":["../../src/server/activity-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGrC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM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.
|
|
11
11
|
*
|
|
12
|
-
* `singleProject` (spec 2026-07-21-cez-single-project): the workspace is
|
|
13
|
-
* deliberately constrained to the launch project when `CEZ_SINGLE_PROJECT=1`.
|
|
14
|
-
* Like the other opt-in capabilities, activation is strict: no other spelling
|
|
15
|
-
* enables it.
|
|
16
|
-
*
|
|
17
12
|
* `automations` (spec 2026-07-25-github-automations, #801): GitHub automations
|
|
18
13
|
* are on by default; only `CEZ_AUTOMATIONS=0` disables them. Off, the
|
|
19
14
|
* `Automations` nav item is gone everywhere it is rendered, the
|
|
@@ -98,7 +98,6 @@ export function resolveCapabilities(env = process.env, bindHost, port, home) {
|
|
|
98
98
|
localHandoff,
|
|
99
99
|
settingsAdmin: localHandoff || remoteSettingsAdmin,
|
|
100
100
|
remoteSettingsAdmin,
|
|
101
|
-
singleProject: productEnv('SINGLE_PROJECT', env) === '1',
|
|
102
101
|
automations: automationsEnabled(env),
|
|
103
102
|
preview: productEnv('PREVIEW', env) === '1',
|
|
104
103
|
// Boot-time flag, like `automations`. The key is read here only as present or absent; the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/server/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/server/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAqC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;0CAG0C;AAC1C,MAAM,WAAW,GAAG,4CAA4C,CAAC;AAEjE,kEAAkE;AAClE,MAAM,WAAW,GAAG,iBAAiB,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gB,IAAI,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC;QACzG,YAAY,EAAE,iBAAiB,IAAI,WAAW;QAC9C,iBAAiB;QACjB,WAAW;KACZ,CAAC;AACJ,CAAC"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -208,7 +208,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
208
208
|
localHandoff: boolean;
|
|
209
209
|
settingsAdmin: boolean;
|
|
210
210
|
remoteSettingsAdmin: boolean;
|
|
211
|
-
singleProject: boolean;
|
|
212
211
|
automations: boolean;
|
|
213
212
|
preview: boolean;
|
|
214
213
|
voice: boolean;
|
|
@@ -278,18 +277,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
278
277
|
showHidden?: string | undefined;
|
|
279
278
|
};
|
|
280
279
|
};
|
|
281
|
-
} | {
|
|
282
|
-
output: {
|
|
283
|
-
error: string;
|
|
284
|
-
};
|
|
285
|
-
outputFormat: "json";
|
|
286
|
-
status: 409;
|
|
287
|
-
input: {
|
|
288
|
-
query: {
|
|
289
|
-
path?: string | undefined;
|
|
290
|
-
showHidden?: string | undefined;
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
280
|
} | {
|
|
294
281
|
output: {
|
|
295
282
|
error: string;
|
|
@@ -2319,7 +2306,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2319
2306
|
error: string;
|
|
2320
2307
|
};
|
|
2321
2308
|
outputFormat: "json";
|
|
2322
|
-
status:
|
|
2309
|
+
status: 404;
|
|
2323
2310
|
input: {
|
|
2324
2311
|
param: {
|
|
2325
2312
|
projectId: string;
|
|
@@ -2330,7 +2317,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2330
2317
|
error: string;
|
|
2331
2318
|
};
|
|
2332
2319
|
outputFormat: "json";
|
|
2333
|
-
status:
|
|
2320
|
+
status: 409;
|
|
2334
2321
|
input: {
|
|
2335
2322
|
param: {
|
|
2336
2323
|
projectId: string;
|
|
@@ -2364,27 +2351,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2364
2351
|
} & {
|
|
2365
2352
|
"/projects/:projectId": {
|
|
2366
2353
|
$patch: {
|
|
2367
|
-
output: {
|
|
2368
|
-
error: string;
|
|
2369
|
-
};
|
|
2370
|
-
outputFormat: "json";
|
|
2371
|
-
status: 409;
|
|
2372
|
-
input: {
|
|
2373
|
-
json: {
|
|
2374
|
-
maxParallel?: number | null | undefined;
|
|
2375
|
-
tags?: string[] | null | undefined;
|
|
2376
|
-
webhook?: {
|
|
2377
|
-
url: string;
|
|
2378
|
-
token?: string | undefined;
|
|
2379
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2380
|
-
} | null | undefined;
|
|
2381
|
-
};
|
|
2382
|
-
} & {
|
|
2383
|
-
param: {
|
|
2384
|
-
projectId: string;
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
} | {
|
|
2388
2354
|
output: {
|
|
2389
2355
|
error: string;
|
|
2390
2356
|
};
|
|
@@ -2480,17 +2446,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2480
2446
|
} & {
|
|
2481
2447
|
"/projects/:projectId/webhook/test": {
|
|
2482
2448
|
$post: {
|
|
2483
|
-
output: {
|
|
2484
|
-
error: string;
|
|
2485
|
-
};
|
|
2486
|
-
outputFormat: "json";
|
|
2487
|
-
status: 409;
|
|
2488
|
-
input: {
|
|
2489
|
-
param: {
|
|
2490
|
-
projectId: string;
|
|
2491
|
-
};
|
|
2492
|
-
};
|
|
2493
|
-
} | {
|
|
2494
2449
|
output: {
|
|
2495
2450
|
error: string;
|
|
2496
2451
|
};
|
|
@@ -2805,18 +2760,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2805
2760
|
webhookId: string;
|
|
2806
2761
|
};
|
|
2807
2762
|
};
|
|
2808
|
-
} | {
|
|
2809
|
-
output: {
|
|
2810
|
-
error: string;
|
|
2811
|
-
};
|
|
2812
|
-
outputFormat: "json";
|
|
2813
|
-
status: 409;
|
|
2814
|
-
input: {
|
|
2815
|
-
param: {
|
|
2816
|
-
projectId: string;
|
|
2817
|
-
webhookId: string;
|
|
2818
|
-
};
|
|
2819
|
-
};
|
|
2820
2763
|
} | {
|
|
2821
2764
|
output: {
|
|
2822
2765
|
ok: boolean;
|
|
@@ -4950,6 +4893,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4950
4893
|
} & {
|
|
4951
4894
|
"/repo/commit/:sha": {
|
|
4952
4895
|
$get: {
|
|
4896
|
+
output: string;
|
|
4897
|
+
outputFormat: "text";
|
|
4898
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4899
|
+
input: {
|
|
4900
|
+
query: {
|
|
4901
|
+
structured?: string | undefined;
|
|
4902
|
+
};
|
|
4903
|
+
} & {
|
|
4904
|
+
param: {
|
|
4905
|
+
sha: string;
|
|
4906
|
+
};
|
|
4907
|
+
};
|
|
4908
|
+
} | {
|
|
4953
4909
|
output: {
|
|
4954
4910
|
error: string;
|
|
4955
4911
|
code?: "invalid_input" | undefined;
|
|
@@ -5013,19 +4969,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5013
4969
|
sha: string;
|
|
5014
4970
|
};
|
|
5015
4971
|
};
|
|
5016
|
-
} | {
|
|
5017
|
-
output: string;
|
|
5018
|
-
outputFormat: "text";
|
|
5019
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
5020
|
-
input: {
|
|
5021
|
-
query: {
|
|
5022
|
-
structured?: string | undefined;
|
|
5023
|
-
};
|
|
5024
|
-
} & {
|
|
5025
|
-
param: {
|
|
5026
|
-
sha: string;
|
|
5027
|
-
};
|
|
5028
|
-
};
|
|
5029
4972
|
};
|
|
5030
4973
|
};
|
|
5031
4974
|
} & {
|
|
@@ -18363,20 +18306,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18363
18306
|
} & {
|
|
18364
18307
|
"/runs/:id/handoff": {
|
|
18365
18308
|
$get: {
|
|
18366
|
-
output:
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
outputFormat: "json";
|
|
18370
|
-
status: 404;
|
|
18309
|
+
output: string;
|
|
18310
|
+
outputFormat: "text";
|
|
18311
|
+
status: 200;
|
|
18371
18312
|
input: {
|
|
18372
18313
|
param: {
|
|
18373
18314
|
id: string;
|
|
18374
18315
|
};
|
|
18375
18316
|
};
|
|
18376
18317
|
} | {
|
|
18377
|
-
output:
|
|
18378
|
-
|
|
18379
|
-
|
|
18318
|
+
output: {
|
|
18319
|
+
error: string;
|
|
18320
|
+
};
|
|
18321
|
+
outputFormat: "json";
|
|
18322
|
+
status: 404;
|
|
18380
18323
|
input: {
|
|
18381
18324
|
param: {
|
|
18382
18325
|
id: string;
|
|
@@ -18414,20 +18357,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18414
18357
|
} & {
|
|
18415
18358
|
"/runs/:id/diff": {
|
|
18416
18359
|
$get: {
|
|
18417
|
-
output:
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
outputFormat: "json";
|
|
18421
|
-
status: 404 | 409;
|
|
18360
|
+
output: string;
|
|
18361
|
+
outputFormat: "text";
|
|
18362
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18422
18363
|
input: {
|
|
18423
18364
|
param: {
|
|
18424
18365
|
id: string;
|
|
18425
18366
|
};
|
|
18426
18367
|
};
|
|
18427
18368
|
} | {
|
|
18428
|
-
output:
|
|
18429
|
-
|
|
18430
|
-
|
|
18369
|
+
output: {
|
|
18370
|
+
error: string;
|
|
18371
|
+
};
|
|
18372
|
+
outputFormat: "json";
|
|
18373
|
+
status: 404 | 409;
|
|
18431
18374
|
input: {
|
|
18432
18375
|
param: {
|
|
18433
18376
|
id: string;
|
|
@@ -20827,6 +20770,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20827
20770
|
} & {
|
|
20828
20771
|
"/repo/commit/:sha": {
|
|
20829
20772
|
$get: {
|
|
20773
|
+
output: string;
|
|
20774
|
+
outputFormat: "text";
|
|
20775
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20776
|
+
input: {
|
|
20777
|
+
query: {
|
|
20778
|
+
structured?: string | undefined;
|
|
20779
|
+
};
|
|
20780
|
+
} & {
|
|
20781
|
+
param: {
|
|
20782
|
+
sha: string;
|
|
20783
|
+
};
|
|
20784
|
+
};
|
|
20785
|
+
} | {
|
|
20830
20786
|
output: {
|
|
20831
20787
|
error: string;
|
|
20832
20788
|
code?: "invalid_input" | undefined;
|
|
@@ -20890,19 +20846,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20890
20846
|
sha: string;
|
|
20891
20847
|
};
|
|
20892
20848
|
};
|
|
20893
|
-
} | {
|
|
20894
|
-
output: string;
|
|
20895
|
-
outputFormat: "text";
|
|
20896
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20897
|
-
input: {
|
|
20898
|
-
query: {
|
|
20899
|
-
structured?: string | undefined;
|
|
20900
|
-
};
|
|
20901
|
-
} & {
|
|
20902
|
-
param: {
|
|
20903
|
-
sha: string;
|
|
20904
|
-
};
|
|
20905
|
-
};
|
|
20906
20849
|
};
|
|
20907
20850
|
};
|
|
20908
20851
|
} & {
|
|
@@ -34240,20 +34183,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34240
34183
|
} & {
|
|
34241
34184
|
"/runs/:id/handoff": {
|
|
34242
34185
|
$get: {
|
|
34243
|
-
output:
|
|
34244
|
-
|
|
34245
|
-
|
|
34246
|
-
outputFormat: "json";
|
|
34247
|
-
status: 404;
|
|
34186
|
+
output: string;
|
|
34187
|
+
outputFormat: "text";
|
|
34188
|
+
status: 200;
|
|
34248
34189
|
input: {
|
|
34249
34190
|
param: {
|
|
34250
34191
|
id: string;
|
|
34251
34192
|
};
|
|
34252
34193
|
};
|
|
34253
34194
|
} | {
|
|
34254
|
-
output:
|
|
34255
|
-
|
|
34256
|
-
|
|
34195
|
+
output: {
|
|
34196
|
+
error: string;
|
|
34197
|
+
};
|
|
34198
|
+
outputFormat: "json";
|
|
34199
|
+
status: 404;
|
|
34257
34200
|
input: {
|
|
34258
34201
|
param: {
|
|
34259
34202
|
id: string;
|
|
@@ -34291,20 +34234,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34291
34234
|
} & {
|
|
34292
34235
|
"/runs/:id/diff": {
|
|
34293
34236
|
$get: {
|
|
34294
|
-
output:
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
outputFormat: "json";
|
|
34298
|
-
status: 404 | 409;
|
|
34237
|
+
output: string;
|
|
34238
|
+
outputFormat: "text";
|
|
34239
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34299
34240
|
input: {
|
|
34300
34241
|
param: {
|
|
34301
34242
|
id: string;
|
|
34302
34243
|
};
|
|
34303
34244
|
};
|
|
34304
34245
|
} | {
|
|
34305
|
-
output:
|
|
34306
|
-
|
|
34307
|
-
|
|
34246
|
+
output: {
|
|
34247
|
+
error: string;
|
|
34248
|
+
};
|
|
34249
|
+
outputFormat: "json";
|
|
34250
|
+
status: 404 | 409;
|
|
34308
34251
|
input: {
|
|
34309
34252
|
param: {
|
|
34310
34253
|
id: string;
|
package/dist/server/server.js
CHANGED
|
@@ -355,7 +355,7 @@ export function createApp(deps) {
|
|
|
355
355
|
// The host-wide services and the provider closures built on them live in `./server-deps.ts`.
|
|
356
356
|
const { modelCatalog, providerAuth, workspaceConfig, openTerminal, openFile, openApp, detectEnvironment } = resolveServerDeps(deps, bootRoot);
|
|
357
357
|
const { providerStatus, providerActionError, invalidateHostModels } = createProviderStatus({ modelCatalog, providerAuth, workspaceConfig });
|
|
358
|
-
const workspaceProjects = deps.workspaceProjects ?? createWorkspaceProjects({ bootRoot, bootProjectId,
|
|
358
|
+
const workspaceProjects = deps.workspaceProjects ?? createWorkspaceProjects({ bootRoot, bootProjectId, home: deps.home });
|
|
359
359
|
const { resolveBootProject } = workspaceProjects;
|
|
360
360
|
// Health's workspace garnish: id+name ONLY — never `root` (#431, see the
|
|
361
361
|
// health route). Reads only the registry file; no per-root status probes,
|
|
@@ -364,11 +364,10 @@ export function createApp(deps) {
|
|
|
364
364
|
try {
|
|
365
365
|
const registry = (await loadWorkspaceConfig(deps.home.workspaceConfig)).projects;
|
|
366
366
|
const bootProject = await resolveBootProject(registry);
|
|
367
|
-
const visible = await workspaceProjects.visibleProjects(registry, bootProject);
|
|
368
367
|
return {
|
|
369
368
|
// Explicit picks, not a spread: the registry schema passes unknown
|
|
370
369
|
// keys through, and `root` must never ride along onto health.
|
|
371
|
-
projects:
|
|
370
|
+
projects: registry.map((p) => ({
|
|
372
371
|
id: p.id,
|
|
373
372
|
name: p.name || basename(p.root),
|
|
374
373
|
})),
|
|
@@ -382,7 +381,6 @@ export function createApp(deps) {
|
|
|
382
381
|
// Hosted-mode gate (spec §"Deployment modes") — read per request so
|
|
383
382
|
// CEZ_REMOTE flips take effect live (and tests can toggle it).
|
|
384
383
|
const capabilities = () => resolveCapabilities(process.env, bindHost, deps.squawkPort?.(), deps.home);
|
|
385
|
-
const singleProjectRefusal = (action) => ({ error: `single-project mode is enabled; ${action} is disabled` });
|
|
386
384
|
// Inbox live updates (spec 007). Opt-in (#471): no capability, no watcher —
|
|
387
385
|
// and since step 2.3 the per-dataDir watch is created lazily by the first
|
|
388
386
|
// SSE subscription (and torn down with the last), nothing to start here.
|
|
@@ -397,7 +395,7 @@ export function createApp(deps) {
|
|
|
397
395
|
// Non-boot projects build lazily on first scoped request; their managers
|
|
398
396
|
// count against the same workspace semaphore as the boot manager (step 2.5).
|
|
399
397
|
const contexts = createWorkspaceProjectContexts(deps, taskWebhooks, {
|
|
400
|
-
listProjects: () => workspaceProjects.
|
|
398
|
+
listProjects: () => workspaceProjects.listProjects(),
|
|
401
399
|
squawkPort: deps.squawkPort,
|
|
402
400
|
});
|
|
403
401
|
// Workspace-level SSE bus (step 2.8) — the registry mutators and the
|
|
@@ -444,12 +442,10 @@ export function createApp(deps) {
|
|
|
444
442
|
};
|
|
445
443
|
/**
|
|
446
444
|
* Read-modify-write one project's webhook list (hearsay-tools/cezarion#1576), with the PATCH
|
|
447
|
-
* route's guards:
|
|
445
|
+
* route's guards: an unknown project 404s without a write, and a
|
|
448
446
|
* failed write (a read-only home) answers 500 having persisted nothing.
|
|
449
447
|
*/
|
|
450
448
|
const editProjectWebhooks = async (raw, edit) => {
|
|
451
|
-
if (capabilities().singleProject)
|
|
452
|
-
return { ...singleProjectRefusal('editing projects'), status: 409 };
|
|
453
449
|
const resolved = await workspaceProjects.resolveProjectId(raw);
|
|
454
450
|
if ('error' in resolved)
|
|
455
451
|
return { ...resolved, status: 404 };
|
|
@@ -1623,7 +1619,7 @@ export function createApp(deps) {
|
|
|
1623
1619
|
let projectsDir = defaultWorkspaceConfig().projectsDir;
|
|
1624
1620
|
try {
|
|
1625
1621
|
projectsDir = (await loadWorkspaceConfig(deps.home.workspaceConfig)).projectsDir;
|
|
1626
|
-
projects = await workspaceProjects.
|
|
1622
|
+
projects = await workspaceProjects.listProjects();
|
|
1627
1623
|
}
|
|
1628
1624
|
catch {
|
|
1629
1625
|
// unreadable workspace — degrade to the empty registry + defaults
|
|
@@ -1643,9 +1639,6 @@ export function createApp(deps) {
|
|
|
1643
1639
|
return c.json(registered.body, 200);
|
|
1644
1640
|
})
|
|
1645
1641
|
.delete('/projects/:projectId', async (c) => {
|
|
1646
|
-
if (capabilities().singleProject) {
|
|
1647
|
-
return c.json(singleProjectRefusal('removing projects'), 409);
|
|
1648
|
-
}
|
|
1649
1642
|
const raw = c.req.param('projectId');
|
|
1650
1643
|
// Same gate the scoped-route resolver applies, and the same 404 wording —
|
|
1651
1644
|
// a malformed id is an unknown project, not a validation essay.
|
|
@@ -1718,9 +1711,6 @@ export function createApp(deps) {
|
|
|
1718
1711
|
// `~/.cezar/agent-accounts.json` beside the accounts it names, so a Squawk version that has
|
|
1719
1712
|
// never heard of accounts cannot drop it (see workspace/agent-accounts.ts).
|
|
1720
1713
|
.patch('/projects/:projectId', jsonZodValidator(updateProjectInputSchema), async (c) => {
|
|
1721
|
-
if (capabilities().singleProject) {
|
|
1722
|
-
return c.json(singleProjectRefusal('editing projects'), 409);
|
|
1723
|
-
}
|
|
1724
1714
|
const raw = c.req.param('projectId');
|
|
1725
1715
|
// Same gate + 404 wording as DELETE: a malformed id is an unknown project.
|
|
1726
1716
|
const resolved = await workspaceProjects.resolveProjectId(raw);
|
|
@@ -1799,11 +1789,7 @@ export function createApp(deps) {
|
|
|
1799
1789
|
})
|
|
1800
1790
|
// "Send test" (#589): one `task.test` delivery to the STORED webhook, now, with the timeout
|
|
1801
1791
|
// the real deliveries use and no retries — the settings page wants the answer, not a queue.
|
|
1802
|
-
// Refused in single-project mode like every other registry edit route.
|
|
1803
1792
|
.post('/projects/:projectId/webhook/test', async (c) => {
|
|
1804
|
-
if (capabilities().singleProject) {
|
|
1805
|
-
return c.json(singleProjectRefusal('editing projects'), 409);
|
|
1806
|
-
}
|
|
1807
1793
|
const raw = c.req.param('projectId');
|
|
1808
1794
|
const entry = await workspaceProjects.resolveRegistryEntry(raw);
|
|
1809
1795
|
if (!entry)
|
|
@@ -1817,8 +1803,8 @@ export function createApp(deps) {
|
|
|
1817
1803
|
})
|
|
1818
1804
|
// ---- project webhooks (hearsay-tools/cezarion#1576) ----
|
|
1819
1805
|
// Several webhooks per project, each with its own task-state selection and an explicit
|
|
1820
|
-
// "Expose to agents" switch. Registry edits like the PATCH above:
|
|
1821
|
-
//
|
|
1806
|
+
// "Expose to agents" switch. Registry edits like the PATCH above:
|
|
1807
|
+
// 404 on an unknown project or webhook, and a write that names nothing else leaves the
|
|
1822
1808
|
// rest of the entry alone. The first write stores `webhooks` and drops the old `webhook` key.
|
|
1823
1809
|
.post('/projects/:projectId/webhooks', jsonZodValidator(createProjectWebhookInputSchema), async (c) => {
|
|
1824
1810
|
const input = c.req.valid('json');
|
|
@@ -1868,9 +1854,6 @@ export function createApp(deps) {
|
|
|
1868
1854
|
})
|
|
1869
1855
|
// "Send test" for one webhook: one `task.test` delivery, now, no retries.
|
|
1870
1856
|
.post('/projects/:projectId/webhooks/:webhookId/test', paramZodValidator(projectWebhookParamsSchema), async (c) => {
|
|
1871
|
-
if (capabilities().singleProject) {
|
|
1872
|
-
return c.json(singleProjectRefusal('editing projects'), 409);
|
|
1873
|
-
}
|
|
1874
1857
|
const { projectId, webhookId } = c.req.valid('param');
|
|
1875
1858
|
const entry = await workspaceProjects.resolveRegistryEntry(projectId);
|
|
1876
1859
|
if (!entry)
|
|
@@ -1883,9 +1866,6 @@ export function createApp(deps) {
|
|
|
1883
1866
|
})
|
|
1884
1867
|
.get('/projects/checkout/:checkoutId/progress', paramZodValidator(checkoutProgressParamsSchema), c => c.json({ progress: checkoutProgress.get(c.req.valid('param').checkoutId) }))
|
|
1885
1868
|
.post('/projects/checkout', jsonZodValidator(() => checkoutSchema, { message: 'url must be a GitHub repository' }), async (c) => {
|
|
1886
|
-
if (capabilities().singleProject) {
|
|
1887
|
-
return c.json(singleProjectRefusal('adding projects'), 409);
|
|
1888
|
-
}
|
|
1889
1869
|
const parsed = { data: c.req.valid('json') };
|
|
1890
1870
|
const { url, name, checkoutId } = parsed.data;
|
|
1891
1871
|
const result = await checkoutRepo({
|
|
@@ -1934,9 +1914,6 @@ export function createApp(deps) {
|
|
|
1934
1914
|
return c.json(await listGithubOwners(deps.projectCommandRunner));
|
|
1935
1915
|
})
|
|
1936
1916
|
.post('/projects/create', jsonZodValidator(() => createProjectInputSchema, { message: 'project name must be a valid GitHub repository name — letters, digits, ".", "-" and "_" only, no spaces' }), async (c) => {
|
|
1937
|
-
if (capabilities().singleProject) {
|
|
1938
|
-
return c.json(singleProjectRefusal('adding projects'), 409);
|
|
1939
|
-
}
|
|
1940
1917
|
const { name, github, checkoutId } = c.req.valid('json');
|
|
1941
1918
|
if (github && !capabilities().localHandoff) {
|
|
1942
1919
|
return c.json({ error: HOSTED_GITHUB_CREATE_REFUSAL }, 409);
|
|
@@ -2011,9 +1988,6 @@ export function createApp(deps) {
|
|
|
2011
1988
|
* Returns the status + body for the caller to answer with.
|
|
2012
1989
|
*/
|
|
2013
1990
|
const registerFolder = async (spelled, source) => {
|
|
2014
|
-
if (capabilities().singleProject) {
|
|
2015
|
-
return { status: 409, body: singleProjectRefusal('adding projects') };
|
|
2016
|
-
}
|
|
2017
1991
|
// `~` is expanded for the same reason `/api/fs/browse` expands it: the
|
|
2018
1992
|
// dialog hands back absolute paths, but a hand-written body (curl, a
|
|
2019
1993
|
// future CLI) spells home the way a shell does.
|
|
@@ -2282,9 +2256,6 @@ export function createApp(deps) {
|
|
|
2282
2256
|
// ---- chained family: filesystem browse (workspace-level) ----
|
|
2283
2257
|
const fsBrowseRoutes = new Hono()
|
|
2284
2258
|
.get('/fs/browse', queryZodValidator(browseQuerySchema), async (c) => {
|
|
2285
|
-
if (capabilities().singleProject) {
|
|
2286
|
-
return c.json(singleProjectRefusal('folder browsing'), 409);
|
|
2287
|
-
}
|
|
2288
2259
|
const query = c.req.valid('query');
|
|
2289
2260
|
const root = resolveBrowseRoot(await workspaceBrowseRoot());
|
|
2290
2261
|
const result = await browseDirectory({
|
|
@@ -4357,7 +4328,7 @@ export function createApp(deps) {
|
|
|
4357
4328
|
const projectRunSources = async () => {
|
|
4358
4329
|
let projects = [];
|
|
4359
4330
|
try {
|
|
4360
|
-
projects = await workspaceProjects.
|
|
4331
|
+
projects = await workspaceProjects.listProjects();
|
|
4361
4332
|
}
|
|
4362
4333
|
catch {
|
|
4363
4334
|
// unreadable workspace — no rows, never a 500. The palette degrades to the active
|