@hearsay-tools/squawk 0.18.0-pr4244.8211 → 0.18.0-pr4246.8210
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/delegation/transport.d.ts +65 -65
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.js +8 -9
- package/dist/server/server.js.map +1 -1
- package/package.json +4 -4
- package/scripts/profile-lint.ts +14 -116
- 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/scripts/profile-lint-compare.ts +0 -101
- 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,
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
54
66
|
offset?: string | undefined;
|
|
55
67
|
};
|
|
56
68
|
};
|
|
57
|
-
} | {
|
|
58
|
-
output: {
|
|
59
|
-
error: string;
|
|
60
|
-
code?: "invalid_input" | undefined;
|
|
61
|
-
};
|
|
62
|
-
outputFormat: "json";
|
|
63
|
-
status: 400;
|
|
64
|
-
input: {
|
|
65
|
-
query: {
|
|
66
|
-
offset?: string | undefined;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} & {
|
|
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
+
output: {
|
|
656
|
+
error: string;
|
|
657
|
+
code?: "invalid_input" | undefined;
|
|
658
|
+
};
|
|
659
|
+
outputFormat: "json";
|
|
660
|
+
status: 400;
|
|
661
|
+
input: {
|
|
662
|
+
param: {
|
|
663
|
+
workerId: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
655
667
|
output: {
|
|
656
668
|
workerId: string;
|
|
657
669
|
settled: boolean;
|
|
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
776
788
|
workerId: string;
|
|
777
789
|
};
|
|
778
790
|
};
|
|
779
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
780
796
|
output: {
|
|
781
797
|
error: string;
|
|
782
798
|
code?: "invalid_input" | undefined;
|
|
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
787
803
|
param: {
|
|
788
804
|
workerId: string;
|
|
789
805
|
};
|
|
806
|
+
} & {
|
|
807
|
+
json: Record<string, never>;
|
|
790
808
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
809
|
+
} | {
|
|
796
810
|
output: {
|
|
797
811
|
workerId: string;
|
|
798
812
|
parentRunId: string;
|
|
@@ -915,7 +929,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
915
929
|
} & {
|
|
916
930
|
json: Record<string, never>;
|
|
917
931
|
};
|
|
918
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
919
937
|
output: {
|
|
920
938
|
error: string;
|
|
921
939
|
code?: "invalid_input" | undefined;
|
|
@@ -927,13 +945,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
927
945
|
workerId: string;
|
|
928
946
|
};
|
|
929
947
|
} & {
|
|
930
|
-
json:
|
|
948
|
+
json: {
|
|
949
|
+
text: string;
|
|
950
|
+
};
|
|
931
951
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
952
|
+
} | {
|
|
937
953
|
output: {
|
|
938
954
|
workerId: string;
|
|
939
955
|
state: "delivered" | "queued";
|
|
@@ -949,7 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
949
965
|
text: string;
|
|
950
966
|
};
|
|
951
967
|
};
|
|
952
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
953
973
|
output: {
|
|
954
974
|
error: string;
|
|
955
975
|
code?: "invalid_input" | undefined;
|
|
@@ -961,15 +981,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
981
|
workerId: string;
|
|
962
982
|
};
|
|
963
983
|
} & {
|
|
964
|
-
json:
|
|
965
|
-
text: string;
|
|
966
|
-
};
|
|
984
|
+
json: Record<string, never>;
|
|
967
985
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
986
|
+
} | {
|
|
973
987
|
output: {
|
|
974
988
|
workerId: string;
|
|
975
989
|
state: "stopping" | "terminated";
|
|
@@ -983,7 +997,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
983
997
|
} & {
|
|
984
998
|
json: Record<string, never>;
|
|
985
999
|
};
|
|
986
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
987
1005
|
output: {
|
|
988
1006
|
error: string;
|
|
989
1007
|
code?: "invalid_input" | undefined;
|
|
@@ -995,13 +1013,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
995
1013
|
workerId: string;
|
|
996
1014
|
};
|
|
997
1015
|
} & {
|
|
998
|
-
json:
|
|
1016
|
+
json: {
|
|
1017
|
+
discardWork?: true | undefined;
|
|
1018
|
+
};
|
|
999
1019
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
1020
|
+
} | {
|
|
1005
1021
|
output: {
|
|
1006
1022
|
workerId: string;
|
|
1007
1023
|
state: "complete" | "incomplete";
|
|
@@ -1030,22 +1046,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1030
1046
|
discardWork?: true | undefined;
|
|
1031
1047
|
};
|
|
1032
1048
|
};
|
|
1033
|
-
} | {
|
|
1034
|
-
output: {
|
|
1035
|
-
error: string;
|
|
1036
|
-
code?: "invalid_input" | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
outputFormat: "json";
|
|
1039
|
-
status: 400;
|
|
1040
|
-
input: {
|
|
1041
|
-
param: {
|
|
1042
|
-
workerId: string;
|
|
1043
|
-
};
|
|
1044
|
-
} & {
|
|
1045
|
-
json: {
|
|
1046
|
-
discardWork?: true | undefined;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,13 +1081,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
diff: string;
|
|
1087
|
-
truncated: boolean;
|
|
1084
|
+
error: string;
|
|
1085
|
+
code?: "invalid_input" | undefined;
|
|
1088
1086
|
};
|
|
1089
1087
|
outputFormat: "json";
|
|
1090
|
-
status:
|
|
1088
|
+
status: 400;
|
|
1091
1089
|
input: {
|
|
1092
1090
|
param: {
|
|
1093
1091
|
workerId: string;
|
|
@@ -1095,11 +1093,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1095
1093
|
};
|
|
1096
1094
|
} | {
|
|
1097
1095
|
output: {
|
|
1098
|
-
|
|
1099
|
-
|
|
1096
|
+
workerId: string;
|
|
1097
|
+
baselineSha: string;
|
|
1098
|
+
diff: string;
|
|
1099
|
+
truncated: boolean;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 200;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
workerId: string;
|
|
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
40
40
|
error: string;
|
|
41
41
|
};
|
|
42
42
|
outputFormat: "json";
|
|
43
|
-
status:
|
|
43
|
+
status: 409;
|
|
44
44
|
input: {
|
|
45
45
|
query: {
|
|
46
46
|
q?: string | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
|
|
|
53
53
|
error: string;
|
|
54
54
|
};
|
|
55
55
|
outputFormat: "json";
|
|
56
|
-
status:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
|
@@ -52,15 +52,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
52
52
|
"/runner-install/:runner": {
|
|
53
53
|
$post: {
|
|
54
54
|
output: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
latestVersion: string | null;
|
|
58
|
-
updateAvailable: boolean;
|
|
59
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
60
|
-
error: string | null;
|
|
55
|
+
error: string;
|
|
56
|
+
code?: "invalid_input" | undefined;
|
|
61
57
|
};
|
|
62
58
|
outputFormat: "json";
|
|
63
|
-
status:
|
|
59
|
+
status: 400;
|
|
64
60
|
input: {
|
|
65
61
|
param: {
|
|
66
62
|
runner: string;
|
|
@@ -72,11 +68,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
72
68
|
};
|
|
73
69
|
} | {
|
|
74
70
|
output: {
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
supported: boolean;
|
|
72
|
+
installedVersion: string | null;
|
|
73
|
+
latestVersion: string | null;
|
|
74
|
+
updateAvailable: boolean;
|
|
75
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
76
|
+
error: string | null;
|
|
77
77
|
};
|
|
78
78
|
outputFormat: "json";
|
|
79
|
-
status:
|
|
79
|
+
status: 202;
|
|
80
80
|
input: {
|
|
81
81
|
param: {
|
|
82
82
|
runner: string;
|
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,
|