@hearsay-tools/squawk 0.18.0-pr4230.8172 → 0.18.0-pr4230.8173
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/automations/tools.d.ts +8 -8
- package/dist/ci-wait/controller.d.ts +7 -7
- package/dist/core/json-guards.d.ts +3 -0
- package/dist/core/json-guards.js +8 -0
- package/dist/core/json-guards.js.map +1 -0
- package/dist/core/pi-rpc-wire.d.ts +2 -2
- package/dist/core/pi-rpc-wire.js +2 -6
- package/dist/core/pi-rpc-wire.js.map +1 -1
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/plugin/resolve-hook.d.ts +1 -1
- package/dist/plugin/runtime.d.ts +1 -1
- package/dist/plugin/runtime.js +1 -1
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +64 -64
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/scripts/inline-contract.mjs +7 -6
|
@@ -7,10 +7,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
7
7
|
}[];
|
|
8
8
|
isError: boolean;
|
|
9
9
|
details: {
|
|
10
|
-
ok: false;
|
|
11
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
12
|
-
message: string;
|
|
13
|
-
} | {
|
|
14
10
|
ok: true;
|
|
15
11
|
task: {
|
|
16
12
|
id: string;
|
|
@@ -22,6 +18,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
22
18
|
url?: string | undefined;
|
|
23
19
|
};
|
|
24
20
|
note: string;
|
|
21
|
+
} | {
|
|
22
|
+
ok: false;
|
|
23
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
24
|
+
message: string;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
27
|
export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof callScheduleTask>>): {
|
|
@@ -31,10 +31,6 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
31
31
|
}[];
|
|
32
32
|
isError: boolean;
|
|
33
33
|
details: {
|
|
34
|
-
ok: false;
|
|
35
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
36
|
-
message: string;
|
|
37
|
-
} | {
|
|
38
34
|
ok: true;
|
|
39
35
|
task: {
|
|
40
36
|
id: string;
|
|
@@ -46,6 +42,10 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
46
42
|
url?: string | undefined;
|
|
47
43
|
};
|
|
48
44
|
note: string;
|
|
45
|
+
} | {
|
|
46
|
+
ok: false;
|
|
47
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
48
|
+
message: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
|
@@ -119,9 +119,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
119
119
|
} & {
|
|
120
120
|
"/api/v1/tools/:name": {
|
|
121
121
|
$post: {
|
|
122
|
-
output:
|
|
122
|
+
output: {
|
|
123
|
+
code: string;
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
123
126
|
outputFormat: "json";
|
|
124
|
-
status:
|
|
127
|
+
status: 401;
|
|
125
128
|
input: {
|
|
126
129
|
json: unknown;
|
|
127
130
|
} & {
|
|
@@ -144,12 +147,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
144
147
|
};
|
|
145
148
|
};
|
|
146
149
|
} | {
|
|
147
|
-
output:
|
|
148
|
-
code: string;
|
|
149
|
-
message: string;
|
|
150
|
-
};
|
|
150
|
+
output: never;
|
|
151
151
|
outputFormat: "json";
|
|
152
|
-
status:
|
|
152
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
153
153
|
input: {
|
|
154
154
|
json: unknown;
|
|
155
155
|
} & {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Pure JSON value guards shared across runners without pulling Pi RPC wire helpers. */
|
|
2
|
+
export function isRecord(value) {
|
|
3
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
4
|
+
}
|
|
5
|
+
export function number(value) {
|
|
6
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=json-guards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-guards.js","sourceRoot":"","sources":["../../src/core/json-guards.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isRecord, number } from './json-guards.ts';
|
|
1
2
|
import type { ChildProcessWithoutNullStreams } from 'node:child_process';
|
|
2
3
|
import type { AgentEvent, ContentBlock } from './agent-runner.ts';
|
|
3
4
|
/**
|
|
@@ -26,9 +27,8 @@ export declare function truncate(value: string, max?: number): string;
|
|
|
26
27
|
export declare function piRpcError(value: Record<string, unknown>): string;
|
|
27
28
|
/** OMP's failure response carries `error` as a string (rpc-mode.ts, v18.4.11), else as pi's. */
|
|
28
29
|
export declare function ompRpcError(value: Record<string, unknown>): string;
|
|
29
|
-
export
|
|
30
|
+
export { isRecord, number };
|
|
30
31
|
export declare function string(value: unknown): string | undefined;
|
|
31
|
-
export declare function number(value: unknown): number | undefined;
|
|
32
32
|
/** OMP reports native expansion as a custom message rather than a user message. */
|
|
33
33
|
export declare function ompSkillPrompt(message: Record<string, unknown>): string | undefined;
|
|
34
34
|
/** Native expansions omit the request id. Bind once here, retaining the registered id.
|
package/dist/core/pi-rpc-wire.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isRecord, number } from './json-guards.js';
|
|
1
2
|
import { skillOf, slashSkillPrompt } from './skill-trigger.js';
|
|
2
3
|
/**
|
|
3
4
|
* Wire helpers that the Pi-family RPC runners share: pi (`pi-runner.ts`) and its fork omp
|
|
@@ -79,15 +80,10 @@ function rpcErrorFor(value, cli) {
|
|
|
79
80
|
const error = isRecord(value.error) ? value.error : undefined;
|
|
80
81
|
return string(error?.message) ?? string(value.message) ?? `${cli} RPC command ${string(value.command) ?? 'unknown'} failed`;
|
|
81
82
|
}
|
|
82
|
-
export
|
|
83
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
84
|
-
}
|
|
83
|
+
export { isRecord, number };
|
|
85
84
|
export function string(value) {
|
|
86
85
|
return typeof value === 'string' ? value : undefined;
|
|
87
86
|
}
|
|
88
|
-
export function number(value) {
|
|
89
|
-
return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
|
|
90
|
-
}
|
|
91
87
|
/** OMP reports native expansion as a custom message rather than a user message. */
|
|
92
88
|
export function ompSkillPrompt(message) {
|
|
93
89
|
if (message.role !== 'custom' || message.customType !== 'skill-prompt' || !isRecord(message.details))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi-rpc-wire.js","sourceRoot":"","sources":["../../src/core/pi-rpc-wire.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI/D;;;;GAIG;AAEH,qGAAqG;AACrG,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC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I,OAAO,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9D,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,MAAM,CAAC,IAAI,EAAE;QAClC,IAAI,CAAC,UAAU,CAAC,gBAAgB,IAAI,cAAc,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
code?: "invalid_input" | undefined;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 400;
|
|
36
|
-
input: {
|
|
37
|
-
query: {
|
|
38
|
-
offset?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
79
|
offset?: string | undefined;
|
|
92
80
|
};
|
|
93
81
|
};
|
|
82
|
+
} | {
|
|
83
|
+
output: {
|
|
84
|
+
error: string;
|
|
85
|
+
code?: "invalid_input" | undefined;
|
|
86
|
+
};
|
|
87
|
+
outputFormat: "json";
|
|
88
|
+
status: 400;
|
|
89
|
+
input: {
|
|
90
|
+
query: {
|
|
91
|
+
offset?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -677,18 +677,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
677
677
|
} & {
|
|
678
678
|
"/:workerId": {
|
|
679
679
|
$get: {
|
|
680
|
-
output: {
|
|
681
|
-
error: string;
|
|
682
|
-
code?: "invalid_input" | undefined;
|
|
683
|
-
};
|
|
684
|
-
outputFormat: "json";
|
|
685
|
-
status: 400;
|
|
686
|
-
input: {
|
|
687
|
-
param: {
|
|
688
|
-
workerId: string;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
} | {
|
|
692
680
|
output: {
|
|
693
681
|
workerId: string;
|
|
694
682
|
settled: boolean;
|
|
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
813
801
|
workerId: string;
|
|
814
802
|
};
|
|
815
803
|
};
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
} & {
|
|
819
|
-
"/:workerId/collect": {
|
|
820
|
-
$post: {
|
|
804
|
+
} | {
|
|
821
805
|
output: {
|
|
822
806
|
error: string;
|
|
823
807
|
code?: "invalid_input" | undefined;
|
|
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
828
812
|
param: {
|
|
829
813
|
workerId: string;
|
|
830
814
|
};
|
|
831
|
-
} & {
|
|
832
|
-
json: Record<string, never>;
|
|
833
815
|
};
|
|
834
|
-
}
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
} & {
|
|
819
|
+
"/:workerId/collect": {
|
|
820
|
+
$post: {
|
|
835
821
|
output: {
|
|
836
822
|
workerId: string;
|
|
837
823
|
parentRunId: string;
|
|
@@ -954,11 +940,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
954
940
|
} & {
|
|
955
941
|
json: Record<string, never>;
|
|
956
942
|
};
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
} & {
|
|
960
|
-
"/:workerId/steer": {
|
|
961
|
-
$post: {
|
|
943
|
+
} | {
|
|
962
944
|
output: {
|
|
963
945
|
error: string;
|
|
964
946
|
code?: "invalid_input" | undefined;
|
|
@@ -970,11 +952,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
970
952
|
workerId: string;
|
|
971
953
|
};
|
|
972
954
|
} & {
|
|
973
|
-
json:
|
|
974
|
-
text: string;
|
|
975
|
-
};
|
|
955
|
+
json: Record<string, never>;
|
|
976
956
|
};
|
|
977
|
-
}
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
} & {
|
|
960
|
+
"/:workerId/steer": {
|
|
961
|
+
$post: {
|
|
978
962
|
output: {
|
|
979
963
|
workerId: string;
|
|
980
964
|
state: "delivered" | "queued";
|
|
@@ -990,11 +974,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
974
|
text: string;
|
|
991
975
|
};
|
|
992
976
|
};
|
|
993
|
-
}
|
|
994
|
-
};
|
|
995
|
-
} & {
|
|
996
|
-
"/:workerId/stop": {
|
|
997
|
-
$post: {
|
|
977
|
+
} | {
|
|
998
978
|
output: {
|
|
999
979
|
error: string;
|
|
1000
980
|
code?: "invalid_input" | undefined;
|
|
@@ -1006,9 +986,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1006
986
|
workerId: string;
|
|
1007
987
|
};
|
|
1008
988
|
} & {
|
|
1009
|
-
json:
|
|
989
|
+
json: {
|
|
990
|
+
text: string;
|
|
991
|
+
};
|
|
1010
992
|
};
|
|
1011
|
-
}
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
} & {
|
|
996
|
+
"/:workerId/stop": {
|
|
997
|
+
$post: {
|
|
1012
998
|
output: {
|
|
1013
999
|
workerId: string;
|
|
1014
1000
|
state: "stopping" | "terminated";
|
|
@@ -1022,11 +1008,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1022
1008
|
} & {
|
|
1023
1009
|
json: Record<string, never>;
|
|
1024
1010
|
};
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
} & {
|
|
1028
|
-
"/:workerId/destroy": {
|
|
1029
|
-
$post: {
|
|
1011
|
+
} | {
|
|
1030
1012
|
output: {
|
|
1031
1013
|
error: string;
|
|
1032
1014
|
code?: "invalid_input" | undefined;
|
|
@@ -1038,11 +1020,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1038
1020
|
workerId: string;
|
|
1039
1021
|
};
|
|
1040
1022
|
} & {
|
|
1041
|
-
json:
|
|
1042
|
-
discardWork?: true | undefined;
|
|
1043
|
-
};
|
|
1023
|
+
json: Record<string, never>;
|
|
1044
1024
|
};
|
|
1045
|
-
}
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
} & {
|
|
1028
|
+
"/:workerId/destroy": {
|
|
1029
|
+
$post: {
|
|
1046
1030
|
output: {
|
|
1047
1031
|
workerId: string;
|
|
1048
1032
|
state: "complete" | "incomplete";
|
|
@@ -1071,6 +1055,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1071
1055
|
discardWork?: true | undefined;
|
|
1072
1056
|
};
|
|
1073
1057
|
};
|
|
1058
|
+
} | {
|
|
1059
|
+
output: {
|
|
1060
|
+
error: string;
|
|
1061
|
+
code?: "invalid_input" | undefined;
|
|
1062
|
+
};
|
|
1063
|
+
outputFormat: "json";
|
|
1064
|
+
status: 400;
|
|
1065
|
+
input: {
|
|
1066
|
+
param: {
|
|
1067
|
+
workerId: string;
|
|
1068
|
+
};
|
|
1069
|
+
} & {
|
|
1070
|
+
json: {
|
|
1071
|
+
discardWork?: true | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
1074
|
} | {
|
|
1075
1075
|
output: {
|
|
1076
1076
|
workerId: string;
|
|
@@ -1106,11 +1106,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1106
1106
|
"/:workerId/diff": {
|
|
1107
1107
|
$get: {
|
|
1108
1108
|
output: {
|
|
1109
|
-
|
|
1110
|
-
|
|
1109
|
+
workerId: string;
|
|
1110
|
+
baselineSha: string;
|
|
1111
|
+
diff: string;
|
|
1112
|
+
truncated: boolean;
|
|
1111
1113
|
};
|
|
1112
1114
|
outputFormat: "json";
|
|
1113
|
-
status:
|
|
1115
|
+
status: 200;
|
|
1114
1116
|
input: {
|
|
1115
1117
|
param: {
|
|
1116
1118
|
workerId: string;
|
|
@@ -1118,13 +1120,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1118
1120
|
};
|
|
1119
1121
|
} | {
|
|
1120
1122
|
output: {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
diff: string;
|
|
1124
|
-
truncated: boolean;
|
|
1123
|
+
error: string;
|
|
1124
|
+
code?: "invalid_input" | undefined;
|
|
1125
1125
|
};
|
|
1126
1126
|
outputFormat: "json";
|
|
1127
|
-
status:
|
|
1127
|
+
status: 400;
|
|
1128
1128
|
input: {
|
|
1129
1129
|
param: {
|
|
1130
1130
|
workerId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The primary public plugin entry (spec 2026-11-24-plugin-loader-and-runner-kit § 4). */
|
|
2
|
-
export declare const PLUGIN_ENTRY_SPECIFIER =
|
|
2
|
+
export declare const PLUGIN_ENTRY_SPECIFIER = "@hearsay-tools/squawk/plugin";
|
|
3
3
|
/**
|
|
4
4
|
* Allowed `@hearsay-tools/squawk/plugin*` specifiers and their module stem next to this file.
|
|
5
5
|
* Narrow subpaths keep `bootRuntime()` and runner `definition.ts` modules off eager
|
package/dist/plugin/runtime.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { readNdjson } from '../core/ndjson.ts';
|
|
|
19
19
|
export { InputSubmissions } from '../core/input-submissions.ts';
|
|
20
20
|
export { V1TextCoalescer } from '../core/v1-text-coalescer.ts';
|
|
21
21
|
export { ownLookup } from '../core/own-lookup.ts';
|
|
22
|
-
export { isRecord, number } from '../core/
|
|
22
|
+
export { isRecord, number } from '../core/json-guards.ts';
|
|
23
23
|
export { hookEventName, isVisibleHookItem } from '../core/hook-items.ts';
|
|
24
24
|
export { parseAskRequest, uiAskQuestions } from '../core/ask.ts';
|
|
25
25
|
export { editWriteKey } from '../core/edit-write-key.ts';
|
package/dist/plugin/runtime.js
CHANGED
|
@@ -19,7 +19,7 @@ export { readNdjson } from '../core/ndjson.js';
|
|
|
19
19
|
export { InputSubmissions } from '../core/input-submissions.js';
|
|
20
20
|
export { V1TextCoalescer } from '../core/v1-text-coalescer.js';
|
|
21
21
|
export { ownLookup } from '../core/own-lookup.js';
|
|
22
|
-
export { isRecord, number } from '../core/
|
|
22
|
+
export { isRecord, number } from '../core/json-guards.js';
|
|
23
23
|
export { hookEventName, isVisibleHookItem } from '../core/hook-items.js';
|
|
24
24
|
export { parseAskRequest, uiAskQuestions } from '../core/ask.js';
|
|
25
25
|
export { editWriteKey } from '../core/edit-write-key.js';
|
|
@@ -52,11 +52,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
52
52
|
"/runner-install/:runner": {
|
|
53
53
|
$post: {
|
|
54
54
|
output: {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
supported: boolean;
|
|
56
|
+
installedVersion: string | null;
|
|
57
|
+
latestVersion: string | null;
|
|
58
|
+
updateAvailable: boolean;
|
|
59
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
60
|
+
error: string | null;
|
|
57
61
|
};
|
|
58
62
|
outputFormat: "json";
|
|
59
|
-
status:
|
|
63
|
+
status: 202;
|
|
60
64
|
input: {
|
|
61
65
|
param: {
|
|
62
66
|
runner: string;
|
|
@@ -68,15 +72,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
68
72
|
};
|
|
69
73
|
} | {
|
|
70
74
|
output: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
latestVersion: string | null;
|
|
74
|
-
updateAvailable: boolean;
|
|
75
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
76
|
-
error: string | null;
|
|
75
|
+
error: string;
|
|
76
|
+
code?: "invalid_input" | undefined;
|
|
77
77
|
};
|
|
78
78
|
outputFormat: "json";
|
|
79
|
-
status:
|
|
79
|
+
status: 400;
|
|
80
80
|
input: {
|
|
81
81
|
param: {
|
|
82
82
|
runner: string;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3118,12 +3118,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3118
3118
|
output: {
|
|
3119
3119
|
generation: string;
|
|
3120
3120
|
results: ({
|
|
3121
|
-
projectId: string;
|
|
3122
|
-
runId: string;
|
|
3123
|
-
type: "error" | "reset";
|
|
3124
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3125
|
-
error: string;
|
|
3126
|
-
} | {
|
|
3127
3121
|
projectId: string;
|
|
3128
3122
|
runId: string;
|
|
3129
3123
|
type: "batch";
|
|
@@ -3137,6 +3131,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3137
3131
|
cursor: string;
|
|
3138
3132
|
afterSeq: number;
|
|
3139
3133
|
hasMore: boolean;
|
|
3134
|
+
} | {
|
|
3135
|
+
projectId: string;
|
|
3136
|
+
runId: string;
|
|
3137
|
+
type: "error" | "reset";
|
|
3138
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3139
|
+
error: string;
|
|
3140
3140
|
})[];
|
|
3141
3141
|
};
|
|
3142
3142
|
outputFormat: "json";
|
|
@@ -8679,24 +8679,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8679
8679
|
};
|
|
8680
8680
|
} | {
|
|
8681
8681
|
output: {
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8682
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8683
|
+
readonly error: string;
|
|
8684
|
+
readonly modelChoices?: {
|
|
8685
|
+
runner: string;
|
|
8686
|
+
requestedModel: string;
|
|
8687
|
+
availableModels: {
|
|
8688
|
+
id: string;
|
|
8689
|
+
label: string;
|
|
8690
|
+
description: string;
|
|
8691
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8692
|
+
}[];
|
|
8693
|
+
otherRunners: string[];
|
|
8687
8694
|
} | undefined;
|
|
8688
|
-
deleted?: ({
|
|
8689
|
-
kind: "worktree";
|
|
8690
|
-
path: string;
|
|
8691
|
-
} | {
|
|
8692
|
-
kind: "branch";
|
|
8693
|
-
ref: string;
|
|
8694
|
-
})[] | undefined;
|
|
8695
|
-
remaining: ("branch" | "process" | "worktree")[];
|
|
8696
|
-
error?: string | undefined;
|
|
8697
8695
|
};
|
|
8698
8696
|
outputFormat: "json";
|
|
8699
|
-
status:
|
|
8697
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8700
8698
|
input: {
|
|
8701
8699
|
query: {
|
|
8702
8700
|
[x: string]: string | string[];
|
|
@@ -8729,7 +8727,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8729
8727
|
error?: string | undefined;
|
|
8730
8728
|
};
|
|
8731
8729
|
outputFormat: "json";
|
|
8732
|
-
status:
|
|
8730
|
+
status: 200;
|
|
8733
8731
|
input: {
|
|
8734
8732
|
query: {
|
|
8735
8733
|
[x: string]: string | string[];
|
|
@@ -8745,22 +8743,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8745
8743
|
};
|
|
8746
8744
|
} | {
|
|
8747
8745
|
output: {
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
availableModels: {
|
|
8754
|
-
id: string;
|
|
8755
|
-
label: string;
|
|
8756
|
-
description: string;
|
|
8757
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8758
|
-
}[];
|
|
8759
|
-
otherRunners: string[];
|
|
8746
|
+
workerId: string;
|
|
8747
|
+
state: "complete" | "incomplete";
|
|
8748
|
+
work?: {
|
|
8749
|
+
uncommittedFiles: number;
|
|
8750
|
+
commits: number;
|
|
8760
8751
|
} | undefined;
|
|
8752
|
+
deleted?: ({
|
|
8753
|
+
kind: "worktree";
|
|
8754
|
+
path: string;
|
|
8755
|
+
} | {
|
|
8756
|
+
kind: "branch";
|
|
8757
|
+
ref: string;
|
|
8758
|
+
})[] | undefined;
|
|
8759
|
+
remaining: ("branch" | "process" | "worktree")[];
|
|
8760
|
+
error?: string | undefined;
|
|
8761
8761
|
};
|
|
8762
8762
|
outputFormat: "json";
|
|
8763
|
-
status:
|
|
8763
|
+
status: 409;
|
|
8764
8764
|
input: {
|
|
8765
8765
|
query: {
|
|
8766
8766
|
[x: string]: string | string[];
|
|
@@ -25333,24 +25333,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25333
25333
|
};
|
|
25334
25334
|
} | {
|
|
25335
25335
|
output: {
|
|
25336
|
-
|
|
25337
|
-
|
|
25338
|
-
|
|
25339
|
-
|
|
25340
|
-
|
|
25336
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
25337
|
+
readonly error: string;
|
|
25338
|
+
readonly modelChoices?: {
|
|
25339
|
+
runner: string;
|
|
25340
|
+
requestedModel: string;
|
|
25341
|
+
availableModels: {
|
|
25342
|
+
id: string;
|
|
25343
|
+
label: string;
|
|
25344
|
+
description: string;
|
|
25345
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25346
|
+
}[];
|
|
25347
|
+
otherRunners: string[];
|
|
25341
25348
|
} | undefined;
|
|
25342
|
-
deleted?: ({
|
|
25343
|
-
kind: "worktree";
|
|
25344
|
-
path: string;
|
|
25345
|
-
} | {
|
|
25346
|
-
kind: "branch";
|
|
25347
|
-
ref: string;
|
|
25348
|
-
})[] | undefined;
|
|
25349
|
-
remaining: ("branch" | "process" | "worktree")[];
|
|
25350
|
-
error?: string | undefined;
|
|
25351
25349
|
};
|
|
25352
25350
|
outputFormat: "json";
|
|
25353
|
-
status:
|
|
25351
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
25354
25352
|
input: {
|
|
25355
25353
|
query: {
|
|
25356
25354
|
[x: string]: string | string[];
|
|
@@ -25383,7 +25381,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25383
25381
|
error?: string | undefined;
|
|
25384
25382
|
};
|
|
25385
25383
|
outputFormat: "json";
|
|
25386
|
-
status:
|
|
25384
|
+
status: 200;
|
|
25387
25385
|
input: {
|
|
25388
25386
|
query: {
|
|
25389
25387
|
[x: string]: string | string[];
|
|
@@ -25399,22 +25397,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25399
25397
|
};
|
|
25400
25398
|
} | {
|
|
25401
25399
|
output: {
|
|
25402
|
-
|
|
25403
|
-
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
availableModels: {
|
|
25408
|
-
id: string;
|
|
25409
|
-
label: string;
|
|
25410
|
-
description: string;
|
|
25411
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25412
|
-
}[];
|
|
25413
|
-
otherRunners: string[];
|
|
25400
|
+
workerId: string;
|
|
25401
|
+
state: "complete" | "incomplete";
|
|
25402
|
+
work?: {
|
|
25403
|
+
uncommittedFiles: number;
|
|
25404
|
+
commits: number;
|
|
25414
25405
|
} | undefined;
|
|
25406
|
+
deleted?: ({
|
|
25407
|
+
kind: "worktree";
|
|
25408
|
+
path: string;
|
|
25409
|
+
} | {
|
|
25410
|
+
kind: "branch";
|
|
25411
|
+
ref: string;
|
|
25412
|
+
})[] | undefined;
|
|
25413
|
+
remaining: ("branch" | "process" | "worktree")[];
|
|
25414
|
+
error?: string | undefined;
|
|
25415
25415
|
};
|
|
25416
25416
|
outputFormat: "json";
|
|
25417
|
-
status:
|
|
25417
|
+
status: 409;
|
|
25418
25418
|
input: {
|
|
25419
25419
|
query: {
|
|
25420
25420
|
[x: string]: string | string[];
|
|
@@ -7,6 +7,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
+
projectId: string;
|
|
11
|
+
runId: string;
|
|
12
|
+
type: "error" | "reset";
|
|
13
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
+
error: string;
|
|
15
|
+
} | {
|
|
10
16
|
projectId: string;
|
|
11
17
|
runId: string;
|
|
12
18
|
type: "batch";
|
|
@@ -20,12 +26,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
20
26
|
cursor: string;
|
|
21
27
|
afterSeq: number;
|
|
22
28
|
hasMore: boolean;
|
|
23
|
-
} | {
|
|
24
|
-
projectId: string;
|
|
25
|
-
runId: string;
|
|
26
|
-
type: "error" | "reset";
|
|
27
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
28
|
-
error: string;
|
|
29
29
|
})[];
|
|
30
30
|
};
|
|
31
31
|
outputFormat: "json";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-pr4230.
|
|
3
|
+
"version": "0.18.0-pr4230.8173",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/parser": "^8.0.8",
|
|
70
70
|
"@babel/types": "^8.0.8",
|
|
71
|
-
"@open-mercato/cezar-api-client": "0.18.0-pr4230.
|
|
72
|
-
"@open-mercato/cezar-contract": "0.18.0-pr4230.
|
|
71
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr4230.8173",
|
|
72
|
+
"@open-mercato/cezar-contract": "0.18.0-pr4230.8173",
|
|
73
73
|
"@types/node": "^24.19.1",
|
|
74
74
|
"@types/ws": "^8.18.1",
|
|
75
75
|
"esbuild": "^0.28.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "9a621c313e3865d24343089fdd3a8ac1fe8daa1f"
|
|
90
90
|
}
|
|
@@ -40,10 +40,11 @@ const scan = (dir) => {
|
|
|
40
40
|
scan(dist);
|
|
41
41
|
|
|
42
42
|
// Emitted declarations under dist/ may reference `@hearsay-tools/squawk/plugin*`, which TypeScript
|
|
43
|
-
// cannot resolve while the workspace package name is `@wjarka/cezarion`. Repoint `.d.ts`
|
|
44
|
-
// to the sibling `dist/plugin/<stem>.js`
|
|
45
|
-
//
|
|
46
|
-
|
|
43
|
+
// cannot resolve while the workspace package name is `@wjarka/cezarion`. Repoint `.d.ts` module
|
|
44
|
+
// specifiers (`from`, `import(...)`, side-effect `import`) to the sibling `dist/plugin/<stem>.js`
|
|
45
|
+
// declaration without touching string-literal type constants; `.js` runtime imports stay on the
|
|
46
|
+
// package specifier and resolve through `installPluginResolveHook()`.
|
|
47
|
+
const PLUGIN_SPEC = /(from\s+|import\s*\(\s*|import\s+)(['"])@hearsay-tools\/squawk\/plugin(?:\/(runtime|model-settings|managed-cli|pi-rpc))?\2/g;
|
|
47
48
|
const pluginDir = join(dist, 'plugin');
|
|
48
49
|
function repointPluginDecls() {
|
|
49
50
|
if (!existsSync(join(pluginDir, 'index.d.ts'))) return 0;
|
|
@@ -57,10 +58,10 @@ function repointPluginDecls() {
|
|
|
57
58
|
const text = readFileSync(p, 'utf8');
|
|
58
59
|
PLUGIN_SPEC.lastIndex = 0;
|
|
59
60
|
if (!PLUGIN_SPEC.test(text)) continue;
|
|
60
|
-
const next = text.replace(PLUGIN_SPEC, (_match, _quote, sub) => {
|
|
61
|
+
const next = text.replace(PLUGIN_SPEC, (_match, prefix, _quote, sub) => {
|
|
61
62
|
let rel = relative(dirname(p), join(pluginDir, `${sub ?? 'index'}.js`)).replaceAll('\\', '/');
|
|
62
63
|
if (!rel.startsWith('.')) rel = `./${rel}`;
|
|
63
|
-
return
|
|
64
|
+
return `${prefix}'${rel}'`;
|
|
64
65
|
});
|
|
65
66
|
writeFileSync(p, next, 'utf8');
|
|
66
67
|
count++;
|