@hearsay-tools/squawk 0.18.0-dev.7128 → 0.18.0-dev.7133
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 +44 -0
- 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
|
};
|
|
@@ -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
|
};
|
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')
|