@hearsay-tools/squawk 0.18.0-pr3544.6400 → 0.18.0-pr3545.6411
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/autosave-cleanup.d.ts +2 -1
- package/dist/autosave-cleanup.js +22 -3
- package/dist/autosave-cleanup.js.map +1 -1
- package/dist/autosave-commit.js +4 -4
- package/dist/autosave-commit.js.map +1 -1
- package/dist/autosave-git.d.ts +15 -8
- package/dist/autosave-git.js +141 -45
- package/dist/autosave-git.js.map +1 -1
- package/dist/autosave-holders.d.ts +2 -0
- package/dist/autosave-holders.js +5 -3
- package/dist/autosave-holders.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +41 -41
- package/dist/ci-wait/tools.d.ts +4 -4
- 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/delegation/service.js +1 -1
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runs/run-exits.d.ts +290 -290
- package/dist/runs/run-index.d.ts +0 -10
- package/dist/runs/run-index.js +0 -24
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/store.d.ts +1 -1
- package/dist/runs/store.js +13 -8
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/worker-execution.d.ts +0 -17
- package/dist/runs/worker-execution.js +0 -32
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- 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/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +2 -59
- 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-live-routes.d.ts +6 -6
- 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/workflows/continuation-admission.d.ts +0 -7
- package/dist/workflows/continuation-admission.js +3 -5
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/compose.js +4 -1
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.d.ts +5 -1
- package/dist/workflows/run/continuation-acceptance.js +4 -8
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/run-line.d.ts +1 -0
- package/dist/workflows/run/run-line.js +1 -2
- package/dist/workflows/run/run-line.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run/worker-executions.d.ts +1 -0
- package/dist/workflows/run/worker-executions.js +3 -4
- package/dist/workflows/run/worker-executions.js.map +1 -1
- package/dist/workflows/run/worker-orphans.d.ts +6 -3
- package/dist/workflows/run/worker-orphans.js +10 -8
- package/dist/workflows/run/worker-orphans.js.map +1 -1
- package/dist/workflows/run.d.ts +5 -2
- 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
|
@@ -280,12 +280,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
280
280
|
"/api/v1/tools/ask": {
|
|
281
281
|
$post: {
|
|
282
282
|
output: {
|
|
283
|
-
|
|
284
|
-
code: 'unavailable';
|
|
283
|
+
code: 'capability_revoked';
|
|
285
284
|
message: string;
|
|
286
285
|
};
|
|
287
286
|
outputFormat: "json";
|
|
288
|
-
status:
|
|
287
|
+
status: 401;
|
|
289
288
|
input: {
|
|
290
289
|
json: {
|
|
291
290
|
questions: {
|
|
@@ -303,11 +302,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
303
302
|
};
|
|
304
303
|
} | {
|
|
305
304
|
output: {
|
|
306
|
-
|
|
305
|
+
ok: false;
|
|
306
|
+
code: 'unavailable';
|
|
307
307
|
message: string;
|
|
308
308
|
};
|
|
309
309
|
outputFormat: "json";
|
|
310
|
-
status:
|
|
310
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
311
311
|
input: {
|
|
312
312
|
json: {
|
|
313
313
|
questions: {
|
|
@@ -375,12 +375,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
375
375
|
"/api/v1/tools/cancel-wait": {
|
|
376
376
|
$post: {
|
|
377
377
|
output: {
|
|
378
|
-
|
|
379
|
-
code: 'unavailable';
|
|
378
|
+
code: 'capability_revoked';
|
|
380
379
|
message: string;
|
|
381
380
|
};
|
|
382
381
|
outputFormat: "json";
|
|
383
|
-
status:
|
|
382
|
+
status: 401;
|
|
384
383
|
input: {
|
|
385
384
|
json: {
|
|
386
385
|
wait_id: string;
|
|
@@ -388,11 +387,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
388
387
|
};
|
|
389
388
|
} | {
|
|
390
389
|
output: {
|
|
391
|
-
|
|
390
|
+
cancelled: false;
|
|
391
|
+
code: 'unavailable';
|
|
392
392
|
message: string;
|
|
393
393
|
};
|
|
394
394
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
395
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
396
396
|
input: {
|
|
397
397
|
json: {
|
|
398
398
|
wait_id: string;
|
|
@@ -440,12 +440,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
440
440
|
"/api/v1/tools/done": {
|
|
441
441
|
$post: {
|
|
442
442
|
output: {
|
|
443
|
-
|
|
444
|
-
code: 'unavailable';
|
|
443
|
+
code: 'capability_revoked';
|
|
445
444
|
message: string;
|
|
446
445
|
};
|
|
447
446
|
outputFormat: "json";
|
|
448
|
-
status:
|
|
447
|
+
status: 401;
|
|
449
448
|
input: {
|
|
450
449
|
json: {
|
|
451
450
|
summary?: string | undefined;
|
|
@@ -453,11 +452,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
453
452
|
};
|
|
454
453
|
} | {
|
|
455
454
|
output: {
|
|
456
|
-
|
|
455
|
+
ok: false;
|
|
456
|
+
code: 'unavailable';
|
|
457
457
|
message: string;
|
|
458
458
|
};
|
|
459
459
|
outputFormat: "json";
|
|
460
|
-
status:
|
|
460
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
461
461
|
input: {
|
|
462
462
|
json: {
|
|
463
463
|
summary?: string | undefined;
|
|
@@ -525,13 +525,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
525
525
|
"/api/v1/tools/preview-stop": {
|
|
526
526
|
$post: {
|
|
527
527
|
output: {
|
|
528
|
-
|
|
529
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
528
|
+
code: 'capability_revoked';
|
|
530
529
|
message: string;
|
|
531
|
-
hint: string;
|
|
532
530
|
};
|
|
533
531
|
outputFormat: "json";
|
|
534
|
-
status:
|
|
532
|
+
status: 401;
|
|
535
533
|
input: {
|
|
536
534
|
json: {
|
|
537
535
|
port: number;
|
|
@@ -540,11 +538,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
540
538
|
};
|
|
541
539
|
} | {
|
|
542
540
|
output: {
|
|
543
|
-
|
|
541
|
+
ok: boolean;
|
|
542
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
544
543
|
message: string;
|
|
544
|
+
hint: string;
|
|
545
545
|
};
|
|
546
546
|
outputFormat: "json";
|
|
547
|
-
status:
|
|
547
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
548
548
|
input: {
|
|
549
549
|
json: {
|
|
550
550
|
port: number;
|
|
@@ -557,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
557
557
|
"/api/v1/tools/preview-serve": {
|
|
558
558
|
$post: {
|
|
559
559
|
output: {
|
|
560
|
-
|
|
561
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
560
|
+
code: 'capability_revoked';
|
|
562
561
|
message: string;
|
|
563
|
-
hint: string;
|
|
564
562
|
};
|
|
565
563
|
outputFormat: "json";
|
|
566
|
-
status:
|
|
564
|
+
status: 401;
|
|
567
565
|
input: {
|
|
568
566
|
json: {
|
|
569
567
|
command: string;
|
|
@@ -575,11 +573,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
575
573
|
};
|
|
576
574
|
} | {
|
|
577
575
|
output: {
|
|
578
|
-
|
|
576
|
+
ok: boolean;
|
|
577
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
579
578
|
message: string;
|
|
579
|
+
hint: string;
|
|
580
580
|
};
|
|
581
581
|
outputFormat: "json";
|
|
582
|
-
status:
|
|
582
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
583
583
|
input: {
|
|
584
584
|
json: {
|
|
585
585
|
command: string;
|
|
@@ -595,12 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
595
595
|
"/api/v1/tools/schedule-task": {
|
|
596
596
|
$post: {
|
|
597
597
|
output: {
|
|
598
|
-
|
|
599
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
598
|
+
code: 'capability_revoked';
|
|
600
599
|
message: string;
|
|
601
600
|
};
|
|
602
601
|
outputFormat: "json";
|
|
603
|
-
status:
|
|
602
|
+
status: 401;
|
|
604
603
|
input: {
|
|
605
604
|
json: {
|
|
606
605
|
at?: string | undefined;
|
|
@@ -617,11 +616,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
617
616
|
};
|
|
618
617
|
} | {
|
|
619
618
|
output: {
|
|
620
|
-
|
|
619
|
+
ok: false;
|
|
620
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
621
621
|
message: string;
|
|
622
622
|
};
|
|
623
623
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
624
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
625
625
|
input: {
|
|
626
626
|
json: {
|
|
627
627
|
at?: string | undefined;
|
|
@@ -638,6 +638,10 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
638
638
|
};
|
|
639
639
|
} | {
|
|
640
640
|
output: {
|
|
641
|
+
ok: false;
|
|
642
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
643
|
+
message: string;
|
|
644
|
+
} | {
|
|
641
645
|
ok: true;
|
|
642
646
|
task: {
|
|
643
647
|
id: string;
|
|
@@ -649,10 +653,6 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
649
653
|
url?: string | undefined;
|
|
650
654
|
};
|
|
651
655
|
note: string;
|
|
652
|
-
} | {
|
|
653
|
-
ok: false;
|
|
654
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
655
|
-
message: string;
|
|
656
656
|
};
|
|
657
657
|
outputFormat: "json";
|
|
658
658
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -676,12 +676,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
676
676
|
"/api/v1/tools/scheduled-tasks": {
|
|
677
677
|
$post: {
|
|
678
678
|
output: {
|
|
679
|
-
|
|
680
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
679
|
+
code: 'capability_revoked';
|
|
681
680
|
message: string;
|
|
682
681
|
};
|
|
683
682
|
outputFormat: "json";
|
|
684
|
-
status:
|
|
683
|
+
status: 401;
|
|
685
684
|
input: {
|
|
686
685
|
json: {
|
|
687
686
|
at?: string | undefined;
|
|
@@ -714,11 +713,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
714
713
|
};
|
|
715
714
|
} | {
|
|
716
715
|
output: {
|
|
717
|
-
|
|
716
|
+
ok: false;
|
|
717
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
718
718
|
message: string;
|
|
719
719
|
};
|
|
720
720
|
outputFormat: "json";
|
|
721
|
-
status:
|
|
721
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
722
722
|
input: {
|
|
723
723
|
json: {
|
|
724
724
|
at?: string | undefined;
|
package/dist/ci-wait/tools.d.ts
CHANGED
|
@@ -248,10 +248,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
248
248
|
}[];
|
|
249
249
|
isError: boolean;
|
|
250
250
|
details: {
|
|
251
|
-
ok: false;
|
|
252
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
253
|
-
message: string;
|
|
254
|
-
} | {
|
|
255
251
|
ok: true;
|
|
256
252
|
task: {
|
|
257
253
|
id: string;
|
|
@@ -263,6 +259,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
263
259
|
url?: string | undefined;
|
|
264
260
|
};
|
|
265
261
|
note: string;
|
|
262
|
+
} | {
|
|
263
|
+
ok: false;
|
|
264
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
265
|
+
message: string;
|
|
266
266
|
};
|
|
267
267
|
}>;
|
|
268
268
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
package/dist/cli-dispatch.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { parseArgs } from 'node:util';
|
|
2
|
-
import { productEnv } from './core/product-env.ts';
|
|
3
2
|
import { operatorHomeEntry, prepareOperatorHome } from './home/entry.ts';
|
|
4
3
|
import type { Home } from './home/home.ts';
|
|
5
4
|
import { runSubcommand } from './subcommands.ts';
|
|
@@ -9,7 +8,6 @@ import type { serverCommand } from './server-command.ts';
|
|
|
9
8
|
import type { TaskAccess } from './headless-run.ts';
|
|
10
9
|
export declare const defaultCliDeps: {
|
|
11
10
|
parseArgs: typeof parseArgs;
|
|
12
|
-
productEnv: typeof productEnv;
|
|
13
11
|
operatorHomeEntry: typeof operatorHomeEntry;
|
|
14
12
|
prepareOperatorHome: typeof prepareOperatorHome;
|
|
15
13
|
runSubcommand: typeof runSubcommand;
|
|
@@ -25,6 +23,5 @@ export type CliDeps = typeof defaultCliDeps & {
|
|
|
25
23
|
serverCommand: typeof serverCommand;
|
|
26
24
|
runCommand: (home: Home, root: string, task: string, workflow: string | undefined, model: string | undefined, access: TaskAccess) => Promise<void>;
|
|
27
25
|
initCommand: (root: string) => void | Promise<void>;
|
|
28
|
-
initWorkspace: (root: string, home: Home) => Promise<string | undefined>;
|
|
29
26
|
};
|
|
30
27
|
export declare function main(deps: CliDeps): Promise<void>;
|
package/dist/cli-dispatch.js
CHANGED
|
@@ -2,7 +2,6 @@ import { productName } from './home/display.js';
|
|
|
2
2
|
import { commandText, oldCommandNotice } from './home/command.js';
|
|
3
3
|
import { parseArgs } from 'node:util';
|
|
4
4
|
import { resolve } from 'node:path';
|
|
5
|
-
import { productEnv } from './core/product-env.js';
|
|
6
5
|
import { operatorHomeEntry, prepareOperatorHome } from './home/entry.js';
|
|
7
6
|
import { runSubcommand } from './subcommands.js';
|
|
8
7
|
import { getRepoInfo } from './server/git.js';
|
|
@@ -10,7 +9,7 @@ import { runProjectsCommand } from './workspace/projects-cli.js';
|
|
|
10
9
|
import { projectPaths } from './project-paths.js';
|
|
11
10
|
import { assertProjectAdmitted, projectAdmissionRefusal } from './server/cockpit-ownership.js';
|
|
12
11
|
export const defaultCliDeps = {
|
|
13
|
-
parseArgs,
|
|
12
|
+
parseArgs, operatorHomeEntry, prepareOperatorHome,
|
|
14
13
|
runSubcommand, getRepoInfo, runProjectsCommand, process, console,
|
|
15
14
|
};
|
|
16
15
|
function cliHelp() {
|
|
@@ -77,9 +76,8 @@ workflows in .ai/squawk/workflows/. A project also reads .ai/cezar/, the old fol
|
|
|
77
76
|
* migration fence before they touch it; each re-checks right before its first project write.
|
|
78
77
|
* `serve` recovers and checks in its ownership claim. The recovery module loads only when a
|
|
79
78
|
* journal exists. */
|
|
80
|
-
async function admitProjectCommand(command,
|
|
81
|
-
|
|
82
|
-
if (command !== 'run' && command !== 'init' && !projectList)
|
|
79
|
+
async function admitProjectCommand(command, repoRoot) {
|
|
80
|
+
if (command !== 'run' && command !== 'init')
|
|
83
81
|
return;
|
|
84
82
|
const dataDir = projectPaths(repoRoot).write;
|
|
85
83
|
if (projectAdmissionRefusal(dataDir)?.reason === 'journal')
|
|
@@ -160,7 +158,7 @@ async function dispatch(deps) {
|
|
|
160
158
|
const cwd = resolve(values.repo ?? deps.process.cwd());
|
|
161
159
|
const repoInfo = await deps.getRepoInfo(cwd);
|
|
162
160
|
const repoRoot = repoInfo?.root ?? cwd;
|
|
163
|
-
await admitProjectCommand(command,
|
|
161
|
+
await admitProjectCommand(command, repoRoot);
|
|
164
162
|
switch (command) {
|
|
165
163
|
case 'serve':
|
|
166
164
|
await deps.serveCommand(home(), repoRoot, Number(values.port), !values['no-open'], values['bind-host'], Boolean(values['restart-exact']));
|
|
@@ -172,19 +170,10 @@ async function dispatch(deps) {
|
|
|
172
170
|
home();
|
|
173
171
|
await deps.initCommand(repoRoot);
|
|
174
172
|
return;
|
|
175
|
-
case 'projects':
|
|
173
|
+
case 'projects':
|
|
176
174
|
// Registry-only (no server, no HTTP) — see workspace/projects-cli.ts.
|
|
177
|
-
|
|
178
|
-
// the boot repo through the normal self-healing path and pin the output
|
|
179
|
-
// to that explicit identity. Mutations are left to their own guards.
|
|
180
|
-
const projectArgs = positionals.slice(1);
|
|
181
|
-
const isList = projectArgs.length === 0 || projectArgs[0] === 'list';
|
|
182
|
-
const bootProjectId = deps.productEnv('SINGLE_PROJECT') === '1' && isList
|
|
183
|
-
? await deps.initWorkspace(repoRoot, home())
|
|
184
|
-
: undefined;
|
|
185
|
-
deps.process.exitCode = await deps.runProjectsCommand(projectArgs, { defaultRoot: repoRoot, bootProjectId, home: home() });
|
|
175
|
+
deps.process.exitCode = await deps.runProjectsCommand(positionals.slice(1), { defaultRoot: repoRoot, home: home() });
|
|
186
176
|
return;
|
|
187
|
-
}
|
|
188
177
|
case 'server-install':
|
|
189
178
|
await deps.serverCommand('install', home(), repoRoot, values.platform, {
|
|
190
179
|
yes: Boolean(values.yes),
|
package/dist/cli-dispatch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,mBAA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z.ZodBoolean;
|
|
30
30
|
settingsAdmin: z.ZodBoolean;
|
|
31
31
|
remoteSettingsAdmin: z.ZodBoolean;
|
|
32
|
-
singleProject: z.ZodBoolean;
|
|
33
32
|
automations: z.ZodBoolean;
|
|
34
33
|
preview: z.ZodBoolean;
|
|
35
34
|
voice: z.ZodBoolean;
|
|
@@ -84,7 +83,6 @@ export declare const healthResponseSchema: z.ZodObject<{
|
|
|
84
83
|
localHandoff: z.ZodBoolean;
|
|
85
84
|
settingsAdmin: z.ZodBoolean;
|
|
86
85
|
remoteSettingsAdmin: z.ZodBoolean;
|
|
87
|
-
singleProject: z.ZodBoolean;
|
|
88
86
|
automations: z.ZodBoolean;
|
|
89
87
|
preview: z.ZodBoolean;
|
|
90
88
|
voice: z.ZodBoolean;
|
package/dist/contract/index.js
CHANGED
|
@@ -1064,7 +1064,6 @@ var capabilitiesSchema = z12.object({
|
|
|
1064
1064
|
settingsAdmin: z12.boolean(),
|
|
1065
1065
|
/** `true` when `settingsAdmin` comes from the host switch on a remote cockpit, not from a local one. */
|
|
1066
1066
|
remoteSettingsAdmin: z12.boolean(),
|
|
1067
|
-
singleProject: z12.boolean(),
|
|
1068
1067
|
/**
|
|
1069
1068
|
* `true` by default; only `CEZ_AUTOMATIONS=0` disables automations. When disabled,
|
|
1070
1069
|
* the whole feature is absent: no `Automations` nav item anywhere it is rendered, the
|
|
@@ -446,7 +446,7 @@ export class DelegationService {
|
|
|
446
446
|
text: `Your parent resumed this worker with a new instruction.\n${fresh}Agent conversation ${JSON.stringify({ id: input.id, ...input.conversation })}\n${input.text}`,
|
|
447
447
|
}, true, { rootId: root.id, state: next, input });
|
|
448
448
|
if (!result.ok)
|
|
449
|
-
throw new DelegationPolicyError('incompatible_state', `Worker was not resumed: ${result.error}. No message was accepted;
|
|
449
|
+
throw new DelegationPolicyError('incompatible_state', `Worker was not resumed: ${result.error}. No message was accepted; resolve this condition and retry the same command`);
|
|
450
450
|
}
|
|
451
451
|
else
|
|
452
452
|
commitAccepted(project.store, root.id, next, enqueue ? input : undefined, peer && !recipient.delegation);
|