@hearsay-tools/squawk 0.18.0-dev.8215 → 0.18.0-dev.8217
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/index.js +2 -0
- package/dist/server/server.js +8 -9
- package/dist/server/server.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-3TFV3bKA.js → accounts-section-DpX5vTr7.js} +1 -1
- package/web/dist/assets/{activity-motion-DIEqBTn_.js → activity-motion-B7vHpK-u.js} +1 -1
- package/web/dist/assets/{activity-route-1e-zJAwF.js → activity-route-D84XrmQO.js} +1 -1
- package/web/dist/assets/{agent-config-section-BEhRUFXI.js → agent-config-section-Btyd_I6J.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-CPFpExY0.js → agent-defaults-section-D42khLKT.js} +1 -1
- package/web/dist/assets/{appearance-DmZqmV_h.js → appearance-BdWvRErI.js} +1 -1
- package/web/dist/assets/{automations-route-BQTvY9OZ.js → automations-route-CVK-f13I.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CrCQrLkj.js → commit-diff-panel-DEgRHEFl.js} +1 -1
- package/web/dist/assets/{diff-CSURjwWN.js → diff-K_Xswloe.js} +2 -2
- package/web/dist/assets/{diff-view-C0EkYWIb.js → diff-view-DQOZSURG.js} +1 -1
- package/web/dist/assets/{file-preview-Dwpny4J1.js → file-preview-PwiOYFhV.js} +1 -1
- package/web/dist/assets/{git-toolbar-Cxylz9oM.js → git-toolbar-DfFwDI49.js} +1 -1
- package/web/dist/assets/{github-QMdDPo6m.js → github-DHOg6-co.js} +1 -1
- package/web/dist/assets/{global-activity-route-CbOpfU7Q.js → global-activity-route-Bx6y-b0h.js} +1 -1
- package/web/dist/assets/{index-Bra3Zx6_.js → index-Br3WCnOm.js} +6 -6
- package/web/dist/assets/{markdown-CVLWRUFa.js → markdown-POxkTBG0.js} +1 -1
- package/web/dist/assets/{notifications-section-y0N1nPKx.js → notifications-section-B-lcEfAs.js} +1 -1
- package/web/dist/assets/preview-pane-connected-DeAYL6ND.js +3 -0
- package/web/dist/assets/{projects-section-DwrBHp8U.js → projects-section-B1MB9FoT.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-B63ytixw.js → prompt-templates-section-C6NTpSpA.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BaEqkFLb.js → remote-settings-notice-CrHduqnC.js} +1 -1
- package/web/dist/assets/repo-git-KGxu_ZKb.js +1 -0
- package/web/dist/assets/{report-reader-4K1U0nwt.js → report-reader-CnXmsiMI.js} +1 -1
- package/web/dist/assets/{reports-DzfdonA_.js → reports-CzsCz6ZC.js} +1 -1
- package/web/dist/assets/{run-header-BwxE9ges.js → run-header-BcuJbBox.js} +2 -2
- package/web/dist/assets/{settings-agent-picker-BsfSkgY9.js → settings-agent-picker-D9OiVDV3.js} +1 -1
- package/web/dist/assets/{settings-shell-DDTVjo7C.js → settings-shell-D9LDT4iY.js} +1 -1
- package/web/dist/assets/{skills-Cw_PL5-A.js → skills-Df3f4tt8.js} +1 -1
- package/web/dist/assets/{task-changes-DLzIXSTR.js → task-changes-B45GjG50.js} +1 -1
- package/web/dist/assets/{task-commits-amn0LePZ.js → task-commits-C6_f5ewJ.js} +1 -1
- package/web/dist/assets/{task-files-9b6zqJWa.js → task-files-YaD4DU-8.js} +1 -1
- package/web/dist/assets/{task-github-item-DJvWvk2q.js → task-github-item-D1QAOVjQ.js} +1 -1
- package/web/dist/assets/{task-thread-DA-IdbEA.js → task-thread-BoOE1dvx.js} +6 -6
- package/web/dist/assets/{thread-state-PGrlMiQA.js → thread-state-C3QKqNMn.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CMiYRssU.js → use-hand-to-agent-state-DGAvwfdj.js} +1 -1
- package/web/dist/assets/{workflows-DowJdAnR.js → workflows-B2pwgXHF.js} +3 -3
- package/web/dist/assets/{workspace-tools-BPmJcyzi.js → workspace-tools-DfCerd4L.js} +1 -1
- package/web/dist/assets/{worktrees-section-Bn-NIqrK.js → worktrees-section-Dhlt22RI.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/assets/preview-pane-connected-DzLCKXRK.js +0 -3
- package/web/dist/assets/repo-git-CY6YcBMo.js +0 -1
package/dist/contract/index.js
CHANGED
|
@@ -961,7 +961,9 @@ var pluginsHealthSchema = z12.object({
|
|
|
961
961
|
var healthResponseSchema = z12.object({
|
|
962
962
|
version: z12.string(),
|
|
963
963
|
latestVersion: z12.string().optional(),
|
|
964
|
+
/** Boot root path in local mode; trimmed to a basename when `capabilities.localHandoff` is false. */
|
|
964
965
|
repoRoot: z12.string(),
|
|
966
|
+
/** Boot repository facts; `repo.root` is trimmed to a basename when `capabilities.localHandoff` is false. */
|
|
965
967
|
repo: repoInfoSchema.nullable(),
|
|
966
968
|
checks: z12.array(backendCheckSchema),
|
|
967
969
|
defaultRunner: runnerSchema,
|
package/dist/server/server.js
CHANGED
|
@@ -598,6 +598,8 @@ export function createApp(deps) {
|
|
|
598
598
|
stamp: environmentStamp,
|
|
599
599
|
onChange: (checks) => { void healthCache.patch((payload) => ({ ...payload, checks })).catch(() => { }); },
|
|
600
600
|
});
|
|
601
|
+
let bootRepoRoot;
|
|
602
|
+
const trimHealthRepo = (repo, localHandoff, fullRoot) => repo ? { ...repo, root: localHandoff ? (fullRoot ?? repo.root) : basename(repo.root) } : null;
|
|
601
603
|
const healthSnapshot = async () => {
|
|
602
604
|
const [checks, repo, config, workspace] = await Promise.all([
|
|
603
605
|
backendChecks.read(),
|
|
@@ -605,6 +607,7 @@ export function createApp(deps) {
|
|
|
605
607
|
healthConfig(bootRoot, deps.home),
|
|
606
608
|
workspaceSummary(),
|
|
607
609
|
]);
|
|
610
|
+
bootRepoRoot = repo?.root;
|
|
608
611
|
// Callers outside the cockpit read this JSON.
|
|
609
612
|
const forge = resolveProjectForge(repo);
|
|
610
613
|
const caps = capabilities();
|
|
@@ -615,15 +618,11 @@ export function createApp(deps) {
|
|
|
615
618
|
// the key as always-present, which is a shape no client ever receives. The contract schema
|
|
616
619
|
// says `.optional()`, and contract-parity.test.ts holds the two together.
|
|
617
620
|
...(update?.latest !== undefined ? { latestVersion: update.latest } : {}),
|
|
618
|
-
// Health is CORS-open and, in hosted mode, reachable off the loopback
|
|
619
|
-
//
|
|
620
|
-
// checkout
|
|
621
|
-
// hosted/remote mode trims it to a basename.
|
|
622
|
-
// The field is always present and a string, but under CEZ_REMOTE it is
|
|
623
|
-
// no longer an absolute path. A hosted cockpit's paths are on a machine
|
|
624
|
-
// the reader does not have anyway.
|
|
621
|
+
// Health is CORS-open and, in hosted mode, reachable off the loopback (#431). Local mode
|
|
622
|
+
// keeps full paths; hosted/remote mode trims repoRoot and repo.root to basenames so host
|
|
623
|
+
// checkout paths and usernames are never exposed.
|
|
625
624
|
repoRoot: caps.localHandoff ? bootRoot : basename(bootRoot),
|
|
626
|
-
repo,
|
|
625
|
+
repo: trimHealthRepo(repo, caps.localHandoff),
|
|
627
626
|
checks,
|
|
628
627
|
defaultRunner: config.defaultRunner,
|
|
629
628
|
// Non-blocking: cached availability or null-until-warm — health must never pay a `gh`
|
|
@@ -651,7 +650,7 @@ export function createApp(deps) {
|
|
|
651
650
|
const inCurrentMode = (payload) => {
|
|
652
651
|
const caps = capabilities();
|
|
653
652
|
const repoRoot = caps.localHandoff ? bootRoot : basename(bootRoot);
|
|
654
|
-
return { ...payload, capabilities: caps, repoRoot, plugins: pluginHealth(pluginLoadReport(), { hostPaths: caps.localHandoff }) };
|
|
653
|
+
return { ...payload, capabilities: caps, repoRoot, repo: trimHealthRepo(payload.repo, caps.localHandoff, bootRepoRoot), plugins: pluginHealth(pluginLoadReport(), { hostPaths: caps.localHandoff }) };
|
|
655
654
|
};
|
|
656
655
|
const healthCache = createHealthCache({
|
|
657
656
|
snapshot: healthSnapshot,
|