@hearsay-tools/squawk 0.18.0-dev.7128 → 0.18.0-dev.7131
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/dist/contract/config-requests.d.ts +4 -0
- package/dist/contract/index.js +11 -2
- package/dist/contract/workspace.d.ts +14 -0
- package/dist/delegation/routes.d.ts +62 -62
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/config-merge.js +7 -6
- package/dist/server/config-merge.js.map +1 -1
- package/dist/server/server.d.ts +102 -58
- package/dist/server/server.js +11 -11
- package/dist/server/server.js.map +1 -1
- package/dist/worktree-setup.d.ts +9 -0
- package/dist/worktree-setup.js +8 -0
- package/dist/worktree-setup.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-CRjdIuq0.js → activity-motion-CyEX8rL6.js} +1 -1
- package/web/dist/assets/{activity-route-4yon6jwC.js → activity-route-DcTRaRgj.js} +1 -1
- package/web/dist/assets/{agent-accounts-l_Gn-Dja.js → agent-accounts-Ck78cTaG.js} +1 -1
- package/web/dist/assets/attention-DLIMAzlf.js +1 -0
- package/web/dist/assets/{cez-idle-BEO5j8ow.js → cez-idle-Catc8I8F.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Cfnt30Tt.js → commit-diff-panel-Bi6YXh5g.js} +1 -1
- package/web/dist/assets/{diff-Dx1bGt0w.js → diff-DwvN-01t.js} +2 -2
- package/web/dist/assets/{diff-view-DJ4iFfkd.js → diff-view-BcR4y84T.js} +1 -1
- package/web/dist/assets/{file-preview-6POBIfS-.js → file-preview-ByaoVbYu.js} +1 -1
- package/web/dist/assets/{git-toolbar-DwK9tJOu.js → git-toolbar-YtHcdCIz.js} +1 -1
- package/web/dist/assets/{github-shozEZ-Z.js → github-DCgnacFq.js} +1 -1
- package/web/dist/assets/{global-activity-route-D_JqpAAR.js → global-activity-route-DXKVtPJS.js} +1 -1
- package/web/dist/assets/{index-DMq98FV0.js → index-DetUdPPg.js} +8 -8
- package/web/dist/assets/{live-protocol-Bn-xWBmZ.js → live-protocol-B8HJ-VW8.js} +1 -1
- package/web/dist/assets/{markdown-fN_tqxh3.js → markdown-DuG8dQwY.js} +1 -1
- package/web/dist/assets/{picker-pill-BuYiT3fS.js → picker-pill-Bd3Q9PFA.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-D81HxFOI.js → preview-pane-connected-g2INxRgP.js} +1 -1
- package/web/dist/assets/{project-router-C68VktrY.js → project-router-BKoMKwmx.js} +1 -1
- package/web/dist/assets/{project-scope-context-Vv8ygMl6.js → project-scope-context-Cb2B_LxQ.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-hXOsL4ia.js → prompt-template-menu-BBSaimz3.js} +1 -1
- package/web/dist/assets/{queries-Drt3XAiW.js → queries-Bb9GjWMQ.js} +1 -1
- package/web/dist/assets/{reference-chip-oVw9Lal9.js → reference-chip-AYFrAylA.js} +1 -1
- package/web/dist/assets/{repo-git-B295X5Wv.js → repo-git-DSWWu3vz.js} +1 -1
- package/web/dist/assets/{report-reader-HocN04sH.js → report-reader-Ppsa0oCh.js} +1 -1
- package/web/dist/assets/{reports-B1KiT5at.js → reports-DUQMFaO3.js} +1 -1
- package/web/dist/assets/{run-header-DyKGLM8b.js → run-header-DKNoRlDo.js} +1 -1
- package/web/dist/assets/{skills-BRDqkbTt.js → skills-BibW5PT7.js} +1 -1
- package/web/dist/assets/{tab-link-B4u5eY7O.js → tab-link-CekOt2NF.js} +1 -1
- package/web/dist/assets/{task-changes-Bx8mrihw.js → task-changes-CVLI5qI-.js} +1 -1
- package/web/dist/assets/{task-commits-bARHGfsG.js → task-commits-Sn6Z1U8s.js} +1 -1
- package/web/dist/assets/{task-files-_SX670LL.js → task-files-CH6dpey9.js} +1 -1
- package/web/dist/assets/{task-github-item-Cw8-5BXV.js → task-github-item-DCh49ITV.js} +1 -1
- package/web/dist/assets/{task-thread-BAeGEFEe.js → task-thread-oELdc5YR.js} +1 -1
- package/web/dist/assets/{thread-state-BpW3fVNR.js → thread-state-CtGUZehD.js} +1 -1
- package/web/dist/assets/{use-desktop-CuYLi0j4.js → use-desktop-tg8hhNdq.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DU4XEkhv.js → use-hand-to-agent-state-YpAMIZ2r.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-LV3jJNT5.js → useInfiniteQuery-De6BP_4x.js} +1 -1
- package/web/dist/assets/useQuery-BsOmvrd_.js +1 -0
- package/web/dist/assets/{workflows-B_b47Jog.js → workflows-DQBGigNM.js} +1 -1
- package/web/dist/assets/{ws-DfYRWmd-.js → ws-2N3miuuZ.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/attention-DcMKBngT.js +0 -1
- package/web/dist/assets/useQuery-DdfGRa2n.js +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -3684,6 +3684,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3684
3684
|
timeoutSeconds: number;
|
|
3685
3685
|
} | null;
|
|
3686
3686
|
worktreeSetupIssue: string | null;
|
|
3687
|
+
worktreeTeardown: {
|
|
3688
|
+
commands: string[];
|
|
3689
|
+
timeoutSeconds: number;
|
|
3690
|
+
} | null;
|
|
3691
|
+
worktreeTeardownIssue: string | null;
|
|
3687
3692
|
};
|
|
3688
3693
|
outputFormat: "json";
|
|
3689
3694
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -3718,6 +3723,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3718
3723
|
timeoutSeconds: number;
|
|
3719
3724
|
} | null;
|
|
3720
3725
|
worktreeSetupIssue: string | null;
|
|
3726
|
+
worktreeTeardown: {
|
|
3727
|
+
commands: string[];
|
|
3728
|
+
timeoutSeconds: number;
|
|
3729
|
+
} | null;
|
|
3730
|
+
worktreeTeardownIssue: string | null;
|
|
3721
3731
|
};
|
|
3722
3732
|
outputFormat: "json";
|
|
3723
3733
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -3742,6 +3752,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3742
3752
|
commands: string[];
|
|
3743
3753
|
timeoutSeconds?: number | undefined;
|
|
3744
3754
|
} | null | undefined;
|
|
3755
|
+
worktreeTeardown?: {
|
|
3756
|
+
commands: string[];
|
|
3757
|
+
timeoutSeconds?: number | undefined;
|
|
3758
|
+
} | null | undefined;
|
|
3745
3759
|
systemPrompt?: string | null | undefined;
|
|
3746
3760
|
};
|
|
3747
3761
|
};
|
|
@@ -3772,6 +3786,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3772
3786
|
commands: string[];
|
|
3773
3787
|
timeoutSeconds?: number | undefined;
|
|
3774
3788
|
} | null | undefined;
|
|
3789
|
+
worktreeTeardown?: {
|
|
3790
|
+
commands: string[];
|
|
3791
|
+
timeoutSeconds?: number | undefined;
|
|
3792
|
+
} | null | undefined;
|
|
3775
3793
|
systemPrompt?: string | null | undefined;
|
|
3776
3794
|
};
|
|
3777
3795
|
};
|
|
@@ -3802,6 +3820,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3802
3820
|
commands: string[];
|
|
3803
3821
|
timeoutSeconds?: number | undefined;
|
|
3804
3822
|
} | null | undefined;
|
|
3823
|
+
worktreeTeardown?: {
|
|
3824
|
+
commands: string[];
|
|
3825
|
+
timeoutSeconds?: number | undefined;
|
|
3826
|
+
} | null | undefined;
|
|
3805
3827
|
systemPrompt?: string | null | undefined;
|
|
3806
3828
|
};
|
|
3807
3829
|
};
|
|
@@ -4516,6 +4538,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4516
4538
|
} & {
|
|
4517
4539
|
"/repo/commit/:sha": {
|
|
4518
4540
|
$get: {
|
|
4541
|
+
output: string;
|
|
4542
|
+
outputFormat: "text";
|
|
4543
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4544
|
+
input: {
|
|
4545
|
+
query: {
|
|
4546
|
+
structured?: string | undefined;
|
|
4547
|
+
};
|
|
4548
|
+
} & {
|
|
4549
|
+
param: {
|
|
4550
|
+
sha: string;
|
|
4551
|
+
};
|
|
4552
|
+
};
|
|
4553
|
+
} | {
|
|
4519
4554
|
output: {
|
|
4520
4555
|
error: string;
|
|
4521
4556
|
code?: "invalid_input" | undefined;
|
|
@@ -4579,19 +4614,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4579
4614
|
sha: string;
|
|
4580
4615
|
};
|
|
4581
4616
|
};
|
|
4582
|
-
} | {
|
|
4583
|
-
output: string;
|
|
4584
|
-
outputFormat: "text";
|
|
4585
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4586
|
-
input: {
|
|
4587
|
-
query: {
|
|
4588
|
-
structured?: string | undefined;
|
|
4589
|
-
};
|
|
4590
|
-
} & {
|
|
4591
|
-
param: {
|
|
4592
|
-
sha: string;
|
|
4593
|
-
};
|
|
4594
|
-
};
|
|
4595
4617
|
};
|
|
4596
4618
|
};
|
|
4597
4619
|
} & {
|
|
@@ -18100,20 +18122,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18100
18122
|
} & {
|
|
18101
18123
|
"/runs/:id/handoff": {
|
|
18102
18124
|
$get: {
|
|
18103
|
-
output:
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
outputFormat: "json";
|
|
18107
|
-
status: 404;
|
|
18125
|
+
output: string;
|
|
18126
|
+
outputFormat: "text";
|
|
18127
|
+
status: 200;
|
|
18108
18128
|
input: {
|
|
18109
18129
|
param: {
|
|
18110
18130
|
id: string;
|
|
18111
18131
|
};
|
|
18112
18132
|
};
|
|
18113
18133
|
} | {
|
|
18114
|
-
output:
|
|
18115
|
-
|
|
18116
|
-
|
|
18134
|
+
output: {
|
|
18135
|
+
error: string;
|
|
18136
|
+
};
|
|
18137
|
+
outputFormat: "json";
|
|
18138
|
+
status: 404;
|
|
18117
18139
|
input: {
|
|
18118
18140
|
param: {
|
|
18119
18141
|
id: string;
|
|
@@ -18151,20 +18173,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18151
18173
|
} & {
|
|
18152
18174
|
"/runs/:id/diff": {
|
|
18153
18175
|
$get: {
|
|
18154
|
-
output:
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
outputFormat: "json";
|
|
18158
|
-
status: 404 | 409;
|
|
18176
|
+
output: string;
|
|
18177
|
+
outputFormat: "text";
|
|
18178
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18159
18179
|
input: {
|
|
18160
18180
|
param: {
|
|
18161
18181
|
id: string;
|
|
18162
18182
|
};
|
|
18163
18183
|
};
|
|
18164
18184
|
} | {
|
|
18165
|
-
output:
|
|
18166
|
-
|
|
18167
|
-
|
|
18185
|
+
output: {
|
|
18186
|
+
error: string;
|
|
18187
|
+
};
|
|
18188
|
+
outputFormat: "json";
|
|
18189
|
+
status: 404 | 409;
|
|
18168
18190
|
input: {
|
|
18169
18191
|
param: {
|
|
18170
18192
|
id: string;
|
|
@@ -19354,6 +19376,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19354
19376
|
timeoutSeconds: number;
|
|
19355
19377
|
} | null;
|
|
19356
19378
|
worktreeSetupIssue: string | null;
|
|
19379
|
+
worktreeTeardown: {
|
|
19380
|
+
commands: string[];
|
|
19381
|
+
timeoutSeconds: number;
|
|
19382
|
+
} | null;
|
|
19383
|
+
worktreeTeardownIssue: string | null;
|
|
19357
19384
|
};
|
|
19358
19385
|
outputFormat: "json";
|
|
19359
19386
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -19388,6 +19415,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19388
19415
|
timeoutSeconds: number;
|
|
19389
19416
|
} | null;
|
|
19390
19417
|
worktreeSetupIssue: string | null;
|
|
19418
|
+
worktreeTeardown: {
|
|
19419
|
+
commands: string[];
|
|
19420
|
+
timeoutSeconds: number;
|
|
19421
|
+
} | null;
|
|
19422
|
+
worktreeTeardownIssue: string | null;
|
|
19391
19423
|
};
|
|
19392
19424
|
outputFormat: "json";
|
|
19393
19425
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -19412,6 +19444,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19412
19444
|
commands: string[];
|
|
19413
19445
|
timeoutSeconds?: number | undefined;
|
|
19414
19446
|
} | null | undefined;
|
|
19447
|
+
worktreeTeardown?: {
|
|
19448
|
+
commands: string[];
|
|
19449
|
+
timeoutSeconds?: number | undefined;
|
|
19450
|
+
} | null | undefined;
|
|
19415
19451
|
systemPrompt?: string | null | undefined;
|
|
19416
19452
|
};
|
|
19417
19453
|
};
|
|
@@ -19442,6 +19478,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19442
19478
|
commands: string[];
|
|
19443
19479
|
timeoutSeconds?: number | undefined;
|
|
19444
19480
|
} | null | undefined;
|
|
19481
|
+
worktreeTeardown?: {
|
|
19482
|
+
commands: string[];
|
|
19483
|
+
timeoutSeconds?: number | undefined;
|
|
19484
|
+
} | null | undefined;
|
|
19445
19485
|
systemPrompt?: string | null | undefined;
|
|
19446
19486
|
};
|
|
19447
19487
|
};
|
|
@@ -19472,6 +19512,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19472
19512
|
commands: string[];
|
|
19473
19513
|
timeoutSeconds?: number | undefined;
|
|
19474
19514
|
} | null | undefined;
|
|
19515
|
+
worktreeTeardown?: {
|
|
19516
|
+
commands: string[];
|
|
19517
|
+
timeoutSeconds?: number | undefined;
|
|
19518
|
+
} | null | undefined;
|
|
19475
19519
|
systemPrompt?: string | null | undefined;
|
|
19476
19520
|
};
|
|
19477
19521
|
};
|
|
@@ -20186,6 +20230,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20186
20230
|
} & {
|
|
20187
20231
|
"/repo/commit/:sha": {
|
|
20188
20232
|
$get: {
|
|
20233
|
+
output: string;
|
|
20234
|
+
outputFormat: "text";
|
|
20235
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20236
|
+
input: {
|
|
20237
|
+
query: {
|
|
20238
|
+
structured?: string | undefined;
|
|
20239
|
+
};
|
|
20240
|
+
} & {
|
|
20241
|
+
param: {
|
|
20242
|
+
sha: string;
|
|
20243
|
+
};
|
|
20244
|
+
};
|
|
20245
|
+
} | {
|
|
20189
20246
|
output: {
|
|
20190
20247
|
error: string;
|
|
20191
20248
|
code?: "invalid_input" | undefined;
|
|
@@ -20249,19 +20306,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20249
20306
|
sha: string;
|
|
20250
20307
|
};
|
|
20251
20308
|
};
|
|
20252
|
-
} | {
|
|
20253
|
-
output: string;
|
|
20254
|
-
outputFormat: "text";
|
|
20255
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20256
|
-
input: {
|
|
20257
|
-
query: {
|
|
20258
|
-
structured?: string | undefined;
|
|
20259
|
-
};
|
|
20260
|
-
} & {
|
|
20261
|
-
param: {
|
|
20262
|
-
sha: string;
|
|
20263
|
-
};
|
|
20264
|
-
};
|
|
20265
20309
|
};
|
|
20266
20310
|
};
|
|
20267
20311
|
} & {
|
|
@@ -33770,20 +33814,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
33770
33814
|
} & {
|
|
33771
33815
|
"/runs/:id/handoff": {
|
|
33772
33816
|
$get: {
|
|
33773
|
-
output:
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
outputFormat: "json";
|
|
33777
|
-
status: 404;
|
|
33817
|
+
output: string;
|
|
33818
|
+
outputFormat: "text";
|
|
33819
|
+
status: 200;
|
|
33778
33820
|
input: {
|
|
33779
33821
|
param: {
|
|
33780
33822
|
id: string;
|
|
33781
33823
|
};
|
|
33782
33824
|
};
|
|
33783
33825
|
} | {
|
|
33784
|
-
output:
|
|
33785
|
-
|
|
33786
|
-
|
|
33826
|
+
output: {
|
|
33827
|
+
error: string;
|
|
33828
|
+
};
|
|
33829
|
+
outputFormat: "json";
|
|
33830
|
+
status: 404;
|
|
33787
33831
|
input: {
|
|
33788
33832
|
param: {
|
|
33789
33833
|
id: string;
|
|
@@ -33821,20 +33865,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
33821
33865
|
} & {
|
|
33822
33866
|
"/runs/:id/diff": {
|
|
33823
33867
|
$get: {
|
|
33824
|
-
output:
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
outputFormat: "json";
|
|
33828
|
-
status: 404 | 409;
|
|
33868
|
+
output: string;
|
|
33869
|
+
outputFormat: "text";
|
|
33870
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
33829
33871
|
input: {
|
|
33830
33872
|
param: {
|
|
33831
33873
|
id: string;
|
|
33832
33874
|
};
|
|
33833
33875
|
};
|
|
33834
33876
|
} | {
|
|
33835
|
-
output:
|
|
33836
|
-
|
|
33837
|
-
|
|
33877
|
+
output: {
|
|
33878
|
+
error: string;
|
|
33879
|
+
};
|
|
33880
|
+
outputFormat: "json";
|
|
33881
|
+
status: 404 | 409;
|
|
33838
33882
|
input: {
|
|
33839
33883
|
param: {
|
|
33840
33884
|
id: string;
|
package/dist/server/server.js
CHANGED
|
@@ -117,7 +117,7 @@ import { attributeLog, classifyInputFor, deleteBranches, forgetRepoBranches, rea
|
|
|
117
117
|
import { claimRepoGitMutation, localPullBranches, pullRepoCheckout } from './repo-pull.js';
|
|
118
118
|
import { collectChanges, collectCommitChanges, collectRunCommits, commitAll, createOrSwitchBranch, pushCurrentBranch, readWorktreePath, } from './git-changes.js';
|
|
119
119
|
import { healthConfig, loadConfig, resolveWorktreeRetention } from '../config.js';
|
|
120
|
-
import {
|
|
120
|
+
import { reportWorktreeCommands } from '../worktree-setup.js';
|
|
121
121
|
import { readConfigFile, statConfigPath, writeConfigFile } from '../agent-config/files.js';
|
|
122
122
|
import { readAgentModelDefaults } from '../agent-config/models.js';
|
|
123
123
|
import { listAgentConfig } from '../agent-config/service.js';
|
|
@@ -3985,14 +3985,15 @@ export function createApp(deps) {
|
|
|
3985
3985
|
release();
|
|
3986
3986
|
}
|
|
3987
3987
|
});
|
|
3988
|
-
/** #917: setup commands run on the host
|
|
3989
|
-
const
|
|
3988
|
+
/** #917, hearsay-tools/squawk#914: setup and teardown commands run on the host. */
|
|
3989
|
+
const WORKTREE_COMMANDS_HOSTED_ERROR = `Worktree setup and teardown commands are read-only on this remote cockpit. To allow remote edits, run \`${productIdentity().command} remote-settings enable\` on the machine running ${productName('cezar')}.`;
|
|
3990
3990
|
// The Settings → Agents knobs in one read (R6 Step 1.5) — an ADDITIVE
|
|
3991
3991
|
// sibling of PUT /api/config below; /api/health keeps its protected shape.
|
|
3992
3992
|
const configAnswer = async (repoRoot, config) => {
|
|
3993
3993
|
const archive = resolveArchiveOnMerge(config, await loadWorkspaceConfig(deps.home.workspaceConfig));
|
|
3994
3994
|
const nativeModels = await readAgentModelDefaults(repoRoot);
|
|
3995
|
-
const setup =
|
|
3995
|
+
const setup = reportWorktreeCommands(config.worktreeSetup);
|
|
3996
|
+
const teardown = reportWorktreeCommands(config.worktreeTeardown);
|
|
3996
3997
|
const modelsLocked = agentModelsLocked(repoRoot, process.env, deps.home);
|
|
3997
3998
|
return {
|
|
3998
3999
|
archiveOnMerge: config.archiveOnMerge ?? null,
|
|
@@ -4018,9 +4019,9 @@ export function createApp(deps) {
|
|
|
4018
4019
|
// Optional review gate (#489): tri-state — null means "no config key, the
|
|
4019
4020
|
// CEZ_REVIEW_GATE env default (OFF) decides".
|
|
4020
4021
|
reviewGate: config.reviewGate ?? null,
|
|
4021
|
-
// Worktree setup (#917): an invalid value is reported
|
|
4022
|
-
worktreeSetup: setup.
|
|
4023
|
-
|
|
4022
|
+
// Worktree setup (#917) and teardown (hearsay-tools/squawk#914): an invalid value is reported.
|
|
4023
|
+
worktreeSetup: setup.value, worktreeSetupIssue: setup.issue,
|
|
4024
|
+
worktreeTeardown: teardown.value, worktreeTeardownIssue: teardown.issue,
|
|
4024
4025
|
};
|
|
4025
4026
|
};
|
|
4026
4027
|
// ---- chained family: per-repo config (project-scoped) ----
|
|
@@ -4035,10 +4036,9 @@ export function createApp(deps) {
|
|
|
4035
4036
|
if (agentModelsLocked(repoRoot, process.env, deps.home) && parsed.data.defaultModels !== undefined) {
|
|
4036
4037
|
return c.json({ error: AGENT_MODELS_LOCKED_ERROR }, 409);
|
|
4037
4038
|
}
|
|
4038
|
-
//
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
return c.json({ error: WORKTREE_SETUP_HOSTED_ERROR }, 409);
|
|
4039
|
+
// Host commands need settings administration (hearsay-tools/cezarion#2428), checked before any write.
|
|
4040
|
+
if ([parsed.data.worktreeSetup, parsed.data.worktreeTeardown].some((v) => v !== undefined) && !capabilities().settingsAdmin) {
|
|
4041
|
+
return c.json({ error: WORKTREE_COMMANDS_HOSTED_ERROR }, 409);
|
|
4042
4042
|
}
|
|
4043
4043
|
const refused = await writeMergedConfig(dataDir, parsed.data).catch((err) => ({ failed: err instanceof Error ? err.message : String(err) }));
|
|
4044
4044
|
if (typeof refused === 'object')
|