@hearsay-tools/squawk 0.18.0-dev.6015 → 0.18.0-dev.6035
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/core/structured-output.d.ts +9 -0
- package/dist/core/structured-output.js +64 -0
- package/dist/core/structured-output.js.map +1 -0
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/planner.d.ts +1 -8
- package/dist/planner.js +2 -63
- package/dist/planner.js.map +1 -1
- package/dist/runs/auto-name.js +1 -1
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +252 -252
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
4
|
+
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
5
|
+
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
6
|
+
* validates. Null when nothing does — the caller decides how to recover.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseStructured<T>(raw: string, schema: z.ZodType<T, unknown>): T | null;
|
|
9
|
+
export declare function extractJsonObjectCandidates(raw: string): string[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
3
|
+
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
4
|
+
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
5
|
+
* validates. Null when nothing does — the caller decides how to recover.
|
|
6
|
+
*/
|
|
7
|
+
export function parseStructured(raw, schema) {
|
|
8
|
+
const cleaned = raw
|
|
9
|
+
.replace(/^```(?:json|javascript|js|jsonl)?\s*\n?/im, '')
|
|
10
|
+
.replace(/\n?```\s*$/m, '')
|
|
11
|
+
.trim();
|
|
12
|
+
try {
|
|
13
|
+
return schema.parse(JSON.parse(cleaned));
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
for (const candidate of extractJsonObjectCandidates(raw)) {
|
|
17
|
+
try {
|
|
18
|
+
return schema.parse(JSON.parse(candidate));
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function extractJsonObjectCandidates(raw) {
|
|
28
|
+
const candidates = [];
|
|
29
|
+
let start = -1;
|
|
30
|
+
let depth = 0;
|
|
31
|
+
let inString = false;
|
|
32
|
+
let escaped = false;
|
|
33
|
+
for (let i = 0; i < raw.length; i++) {
|
|
34
|
+
const ch = raw[i];
|
|
35
|
+
if (inString) {
|
|
36
|
+
if (escaped)
|
|
37
|
+
escaped = false;
|
|
38
|
+
else if (ch === '\\')
|
|
39
|
+
escaped = true;
|
|
40
|
+
else if (ch === '"')
|
|
41
|
+
inString = false;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (ch === '"') {
|
|
45
|
+
inString = true;
|
|
46
|
+
}
|
|
47
|
+
else if (ch === '{') {
|
|
48
|
+
if (depth === 0)
|
|
49
|
+
start = i;
|
|
50
|
+
depth++;
|
|
51
|
+
}
|
|
52
|
+
else if (ch === '}') {
|
|
53
|
+
if (depth === 0)
|
|
54
|
+
continue;
|
|
55
|
+
depth--;
|
|
56
|
+
if (depth === 0 && start >= 0) {
|
|
57
|
+
candidates.push(raw.slice(start, i + 1));
|
|
58
|
+
start = -1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return candidates;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=structured-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structured-output.js","sourceRoot":"","sources":["../../src/core/structured-output.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAI,GAAW,EAAE,MAA6B;IAC3E,M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AC;aAAM,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACtB,IAAI,KAAK,KAAK,CAAC;gBAAE,KAAK,GAAG,CAAC,CAAC;YAC3B,KAAK,EAAE,CAAC;QACV,CAAC;aAAM,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACtB,IAAI,KAAK,KAAK,CAAC;gBAAE,SAAS;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;gBAC9B,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACzC,KAAK,GAAG,CAAC,CAAC,CAAC;YACb,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -2,18 +2,6 @@ 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
|
-
} | {
|
|
17
5
|
output: {
|
|
18
6
|
workers: {
|
|
19
7
|
workerId: string;
|
|
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
51
39
|
offset?: string | undefined;
|
|
52
40
|
};
|
|
53
41
|
};
|
|
42
|
+
} | {
|
|
43
|
+
output: {
|
|
44
|
+
error: string;
|
|
45
|
+
code?: "invalid_input" | undefined;
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 400;
|
|
49
|
+
input: {
|
|
50
|
+
query: {
|
|
51
|
+
offset?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -588,18 +588,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
588
588
|
} & {
|
|
589
589
|
"/:workerId": {
|
|
590
590
|
$get: {
|
|
591
|
-
output: {
|
|
592
|
-
error: string;
|
|
593
|
-
code?: "invalid_input" | undefined;
|
|
594
|
-
};
|
|
595
|
-
outputFormat: "json";
|
|
596
|
-
status: 400;
|
|
597
|
-
input: {
|
|
598
|
-
param: {
|
|
599
|
-
workerId: string;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
} | {
|
|
603
591
|
output: {
|
|
604
592
|
workerId: string;
|
|
605
593
|
parentRunId: string;
|
|
@@ -703,11 +691,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
703
691
|
workerId: string;
|
|
704
692
|
};
|
|
705
693
|
};
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
} & {
|
|
709
|
-
"/:workerId/collect": {
|
|
710
|
-
$post: {
|
|
694
|
+
} | {
|
|
711
695
|
output: {
|
|
712
696
|
error: string;
|
|
713
697
|
code?: "invalid_input" | undefined;
|
|
@@ -718,10 +702,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
718
702
|
param: {
|
|
719
703
|
workerId: string;
|
|
720
704
|
};
|
|
721
|
-
} & {
|
|
722
|
-
json: Record<string, never>;
|
|
723
705
|
};
|
|
724
|
-
}
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
} & {
|
|
709
|
+
"/:workerId/collect": {
|
|
710
|
+
$post: {
|
|
725
711
|
output: {
|
|
726
712
|
workerId: string;
|
|
727
713
|
parentRunId: string;
|
|
@@ -823,11 +809,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
823
809
|
} & {
|
|
824
810
|
json: Record<string, never>;
|
|
825
811
|
};
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
} & {
|
|
829
|
-
"/:workerId/steer": {
|
|
830
|
-
$post: {
|
|
812
|
+
} | {
|
|
831
813
|
output: {
|
|
832
814
|
error: string;
|
|
833
815
|
code?: "invalid_input" | undefined;
|
|
@@ -839,11 +821,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
839
821
|
workerId: string;
|
|
840
822
|
};
|
|
841
823
|
} & {
|
|
842
|
-
json:
|
|
843
|
-
text: string;
|
|
844
|
-
};
|
|
824
|
+
json: Record<string, never>;
|
|
845
825
|
};
|
|
846
|
-
}
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
} & {
|
|
829
|
+
"/:workerId/steer": {
|
|
830
|
+
$post: {
|
|
847
831
|
output: {
|
|
848
832
|
workerId: string;
|
|
849
833
|
state: "delivered" | "queued";
|
|
@@ -859,11 +843,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
859
843
|
text: string;
|
|
860
844
|
};
|
|
861
845
|
};
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
} & {
|
|
865
|
-
"/:workerId/stop": {
|
|
866
|
-
$post: {
|
|
846
|
+
} | {
|
|
867
847
|
output: {
|
|
868
848
|
error: string;
|
|
869
849
|
code?: "invalid_input" | undefined;
|
|
@@ -875,9 +855,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
875
855
|
workerId: string;
|
|
876
856
|
};
|
|
877
857
|
} & {
|
|
878
|
-
json:
|
|
858
|
+
json: {
|
|
859
|
+
text: string;
|
|
860
|
+
};
|
|
879
861
|
};
|
|
880
|
-
}
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
} & {
|
|
865
|
+
"/:workerId/stop": {
|
|
866
|
+
$post: {
|
|
881
867
|
output: {
|
|
882
868
|
workerId: string;
|
|
883
869
|
state: "stopping" | "terminated";
|
|
@@ -891,11 +877,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
891
877
|
} & {
|
|
892
878
|
json: Record<string, never>;
|
|
893
879
|
};
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
|
-
} & {
|
|
897
|
-
"/:workerId/destroy": {
|
|
898
|
-
$post: {
|
|
880
|
+
} | {
|
|
899
881
|
output: {
|
|
900
882
|
error: string;
|
|
901
883
|
code?: "invalid_input" | undefined;
|
|
@@ -909,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
909
891
|
} & {
|
|
910
892
|
json: Record<string, never>;
|
|
911
893
|
};
|
|
912
|
-
}
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
} & {
|
|
897
|
+
"/:workerId/destroy": {
|
|
898
|
+
$post: {
|
|
913
899
|
output: {
|
|
914
900
|
workerId: string;
|
|
915
901
|
state: "complete" | "incomplete";
|
|
@@ -932,6 +918,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
932
918
|
} & {
|
|
933
919
|
json: Record<string, never>;
|
|
934
920
|
};
|
|
921
|
+
} | {
|
|
922
|
+
output: {
|
|
923
|
+
error: string;
|
|
924
|
+
code?: "invalid_input" | undefined;
|
|
925
|
+
};
|
|
926
|
+
outputFormat: "json";
|
|
927
|
+
status: 400;
|
|
928
|
+
input: {
|
|
929
|
+
param: {
|
|
930
|
+
workerId: string;
|
|
931
|
+
};
|
|
932
|
+
} & {
|
|
933
|
+
json: Record<string, never>;
|
|
934
|
+
};
|
|
935
935
|
} | {
|
|
936
936
|
output: {
|
|
937
937
|
workerId: string;
|
|
@@ -961,11 +961,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
961
|
"/:workerId/diff": {
|
|
962
962
|
$get: {
|
|
963
963
|
output: {
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
workerId: string;
|
|
965
|
+
baselineSha: string;
|
|
966
|
+
diff: string;
|
|
967
|
+
truncated: boolean;
|
|
966
968
|
};
|
|
967
969
|
outputFormat: "json";
|
|
968
|
-
status:
|
|
970
|
+
status: 200;
|
|
969
971
|
input: {
|
|
970
972
|
param: {
|
|
971
973
|
workerId: string;
|
|
@@ -973,13 +975,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
973
975
|
};
|
|
974
976
|
} | {
|
|
975
977
|
output: {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
diff: string;
|
|
979
|
-
truncated: boolean;
|
|
978
|
+
error: string;
|
|
979
|
+
code?: "invalid_input" | undefined;
|
|
980
980
|
};
|
|
981
981
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
982
|
+
status: 400;
|
|
983
983
|
input: {
|
|
984
984
|
param: {
|
|
985
985
|
workerId: string;
|
package/dist/planner.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Home } from './home/home.ts';
|
|
2
|
-
import { z } from 'zod';
|
|
3
2
|
import type { RunnerFactory } from './core/agent-runner.ts';
|
|
4
3
|
import { type Skill } from './skills.ts';
|
|
5
4
|
import { type WorkflowStepDef } from './workflows/types.ts';
|
|
5
|
+
export { parseStructured, extractJsonObjectCandidates } from './core/structured-output.ts';
|
|
6
6
|
export interface PlanResult {
|
|
7
7
|
/** The proposed workflow title (kebab-case slug), when the planner named one. The auto chain
|
|
8
8
|
* creator pre-fills the builder's name field with it. Absent on the degraded fallback. */
|
|
@@ -21,10 +21,3 @@ export declare function slugify(name: string): string;
|
|
|
21
21
|
* name instead of blanking it.
|
|
22
22
|
*/
|
|
23
23
|
export declare function proposeWorkflowName(raw: string | undefined): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
26
|
-
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
27
|
-
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
28
|
-
* validates. Null when nothing does — the caller decides how to recover.
|
|
29
|
-
*/
|
|
30
|
-
export declare function parseStructured<T>(raw: string, schema: z.ZodType<T, unknown>): T | null;
|
package/dist/planner.js
CHANGED
|
@@ -5,6 +5,8 @@ import { loadConfig } from './config.js';
|
|
|
5
5
|
import { discoverSkills } from './skills.js';
|
|
6
6
|
import { resolveProfileEnvForRoot } from './workspace/agent-profiles.js';
|
|
7
7
|
import { workflowStepSchema } from './workflows/types.js';
|
|
8
|
+
import { parseStructured } from './core/structured-output.js';
|
|
9
|
+
export { parseStructured, extractJsonObjectCandidates } from './core/structured-output.js';
|
|
8
10
|
/**
|
|
9
11
|
* Chain-from-prompt (spec 008): one cheap `claude` call turns the user's task
|
|
10
12
|
* into a proposed chain of workflow steps built from the skills at hand plus a
|
|
@@ -204,67 +206,4 @@ function uniqueId(base, used) {
|
|
|
204
206
|
return id;
|
|
205
207
|
}
|
|
206
208
|
}
|
|
207
|
-
/**
|
|
208
|
-
* Best-effort structured-output extraction (trimmed from @cezar/core's
|
|
209
|
-
* `parseStructured`): try the whole string after stripping a ```json fence,
|
|
210
|
-
* then scan for balanced top-level `{...}` blocks and return the first that
|
|
211
|
-
* validates. Null when nothing does — the caller decides how to recover.
|
|
212
|
-
*/
|
|
213
|
-
export function parseStructured(raw, schema) {
|
|
214
|
-
const cleaned = raw
|
|
215
|
-
.replace(/^```(?:json|javascript|js|jsonl)?\s*\n?/im, '')
|
|
216
|
-
.replace(/\n?```\s*$/m, '')
|
|
217
|
-
.trim();
|
|
218
|
-
try {
|
|
219
|
-
return schema.parse(JSON.parse(cleaned));
|
|
220
|
-
}
|
|
221
|
-
catch {
|
|
222
|
-
for (const candidate of extractJsonObjectCandidates(raw)) {
|
|
223
|
-
try {
|
|
224
|
-
return schema.parse(JSON.parse(candidate));
|
|
225
|
-
}
|
|
226
|
-
catch {
|
|
227
|
-
continue;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return null;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function extractJsonObjectCandidates(raw) {
|
|
234
|
-
const candidates = [];
|
|
235
|
-
let start = -1;
|
|
236
|
-
let depth = 0;
|
|
237
|
-
let inString = false;
|
|
238
|
-
let escaped = false;
|
|
239
|
-
for (let i = 0; i < raw.length; i++) {
|
|
240
|
-
const ch = raw[i];
|
|
241
|
-
if (inString) {
|
|
242
|
-
if (escaped)
|
|
243
|
-
escaped = false;
|
|
244
|
-
else if (ch === '\\')
|
|
245
|
-
escaped = true;
|
|
246
|
-
else if (ch === '"')
|
|
247
|
-
inString = false;
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
250
|
-
if (ch === '"') {
|
|
251
|
-
inString = true;
|
|
252
|
-
}
|
|
253
|
-
else if (ch === '{') {
|
|
254
|
-
if (depth === 0)
|
|
255
|
-
start = i;
|
|
256
|
-
depth++;
|
|
257
|
-
}
|
|
258
|
-
else if (ch === '}') {
|
|
259
|
-
if (depth === 0)
|
|
260
|
-
continue;
|
|
261
|
-
depth--;
|
|
262
|
-
if (depth === 0 && start >= 0) {
|
|
263
|
-
candidates.push(raw.slice(start, i + 1));
|
|
264
|
-
start = -1;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return candidates;
|
|
269
|
-
}
|
|
270
209
|
//# sourceMappingURL=planner.js.map
|
package/dist/planner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../src/planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAc,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO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;SAChC,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,OAAO;YAAE,SAAS;QACjC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,IAAI;SACR,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAuB;IACzD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACzC,OAAO,IAAI,IAAI,SAAS,CAAC;AAC3B,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,IAAiB;IAC/C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACjC,KAAK,IAAI,CAAC,GAAG,CAAC,GAAI,CAAC,EAAE,EAAE,CAAC;QACtB,MAAM,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAAE,OAAO,EAAE,CAAC;IAC/B,CAAC;AACH,CAAC"}
|
package/dist/runs/auto-name.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { productEnv } from '../core/product-env.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { loadConfig } from '../config.js';
|
|
4
|
-
import { parseStructured } from '../
|
|
4
|
+
import { parseStructured } from '../core/structured-output.js';
|
|
5
5
|
import { resolveProfileEnvForRoot } from '../workspace/agent-profiles.js';
|
|
6
6
|
import { extractTaskRefs, refineTaskRefs, titleRefNumber } from './task-refs.js';
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-name.js","sourceRoot":"","sources":["../../src/runs/auto-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auto-name.js","sourceRoot":"","sources":["../../src/runs/auto-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAC;AAEhG;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC,4FAA4F;AAC5F,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IACnE,IAAI,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IAC5F,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;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O,IAAI,CAAC;IACjD,MAAM,IAAI,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,WAAW,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClF,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAChE,IAAI,CAAC,YAAY,IAAI,YAAY,KAAK,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3E,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -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: 400;
|
|
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: 409;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3303,6 +3303,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3303
3303
|
};
|
|
3304
3304
|
};
|
|
3305
3305
|
};
|
|
3306
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3307
|
+
"/voice/decide": {
|
|
3308
|
+
$post: {
|
|
3309
|
+
output: {
|
|
3310
|
+
error: string;
|
|
3311
|
+
};
|
|
3312
|
+
outputFormat: "json";
|
|
3313
|
+
status: 503;
|
|
3314
|
+
input: {
|
|
3315
|
+
json: {
|
|
3316
|
+
text: string;
|
|
3317
|
+
sidebarView: "active" | "automations";
|
|
3318
|
+
openRunId?: string | undefined;
|
|
3319
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3320
|
+
askRequestId?: string | null | undefined;
|
|
3321
|
+
proposal?: {
|
|
3322
|
+
decisionId: string;
|
|
3323
|
+
action: "answer" | "tell";
|
|
3324
|
+
} | undefined;
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
} | {
|
|
3328
|
+
output: {
|
|
3329
|
+
action: "open";
|
|
3330
|
+
decisionId: string;
|
|
3331
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3332
|
+
position: number | "last" | "next" | "previous";
|
|
3333
|
+
confidence: number;
|
|
3334
|
+
alternatives?: {
|
|
3335
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3336
|
+
position: number | "last" | "next" | "previous";
|
|
3337
|
+
}[] | undefined;
|
|
3338
|
+
} | {
|
|
3339
|
+
action: "answer";
|
|
3340
|
+
decisionId: string;
|
|
3341
|
+
runId: string;
|
|
3342
|
+
askRequestId: string;
|
|
3343
|
+
answers: ({
|
|
3344
|
+
question: number;
|
|
3345
|
+
kind: "option";
|
|
3346
|
+
labels: string[];
|
|
3347
|
+
} | {
|
|
3348
|
+
question: number;
|
|
3349
|
+
kind: "other";
|
|
3350
|
+
text: string;
|
|
3351
|
+
})[];
|
|
3352
|
+
confidence: number;
|
|
3353
|
+
} | {
|
|
3354
|
+
action: "tell";
|
|
3355
|
+
decisionId: string;
|
|
3356
|
+
runId: string;
|
|
3357
|
+
text: string;
|
|
3358
|
+
confidence: number;
|
|
3359
|
+
} | {
|
|
3360
|
+
action: "confirm";
|
|
3361
|
+
decisionId: string;
|
|
3362
|
+
} | {
|
|
3363
|
+
action: "cancel";
|
|
3364
|
+
decisionId: string;
|
|
3365
|
+
} | {
|
|
3366
|
+
action: "none";
|
|
3367
|
+
decisionId: string;
|
|
3368
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3369
|
+
};
|
|
3370
|
+
outputFormat: "json";
|
|
3371
|
+
status: 200;
|
|
3372
|
+
input: {
|
|
3373
|
+
json: {
|
|
3374
|
+
text: string;
|
|
3375
|
+
sidebarView: "active" | "automations";
|
|
3376
|
+
openRunId?: string | undefined;
|
|
3377
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3378
|
+
askRequestId?: string | null | undefined;
|
|
3379
|
+
proposal?: {
|
|
3380
|
+
decisionId: string;
|
|
3381
|
+
action: "answer" | "tell";
|
|
3382
|
+
} | undefined;
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
};
|
|
3387
|
+
} & {
|
|
3388
|
+
"/voice/outcome": {
|
|
3389
|
+
$post: {
|
|
3390
|
+
output: {
|
|
3391
|
+
ok: true;
|
|
3392
|
+
};
|
|
3393
|
+
outputFormat: "json";
|
|
3394
|
+
status: 200;
|
|
3395
|
+
input: {
|
|
3396
|
+
json: {
|
|
3397
|
+
decisionId: string;
|
|
3398
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3399
|
+
};
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3306
3403
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3307
3404
|
"/ui-state": {
|
|
3308
3405
|
$get: {
|
|
@@ -3733,103 +3830,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3733
3830
|
};
|
|
3734
3831
|
};
|
|
3735
3832
|
};
|
|
3736
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3737
|
-
"/voice/decide": {
|
|
3738
|
-
$post: {
|
|
3739
|
-
output: {
|
|
3740
|
-
error: string;
|
|
3741
|
-
};
|
|
3742
|
-
outputFormat: "json";
|
|
3743
|
-
status: 503;
|
|
3744
|
-
input: {
|
|
3745
|
-
json: {
|
|
3746
|
-
text: string;
|
|
3747
|
-
sidebarView: "active" | "automations";
|
|
3748
|
-
openRunId?: string | undefined;
|
|
3749
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3750
|
-
askRequestId?: string | null | undefined;
|
|
3751
|
-
proposal?: {
|
|
3752
|
-
decisionId: string;
|
|
3753
|
-
action: "answer" | "tell";
|
|
3754
|
-
} | undefined;
|
|
3755
|
-
};
|
|
3756
|
-
};
|
|
3757
|
-
} | {
|
|
3758
|
-
output: {
|
|
3759
|
-
action: "open";
|
|
3760
|
-
decisionId: string;
|
|
3761
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3762
|
-
position: number | "last" | "next" | "previous";
|
|
3763
|
-
confidence: number;
|
|
3764
|
-
alternatives?: {
|
|
3765
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
3766
|
-
position: number | "last" | "next" | "previous";
|
|
3767
|
-
}[] | undefined;
|
|
3768
|
-
} | {
|
|
3769
|
-
action: "answer";
|
|
3770
|
-
decisionId: string;
|
|
3771
|
-
runId: string;
|
|
3772
|
-
askRequestId: string;
|
|
3773
|
-
answers: ({
|
|
3774
|
-
question: number;
|
|
3775
|
-
kind: "option";
|
|
3776
|
-
labels: string[];
|
|
3777
|
-
} | {
|
|
3778
|
-
question: number;
|
|
3779
|
-
kind: "other";
|
|
3780
|
-
text: string;
|
|
3781
|
-
})[];
|
|
3782
|
-
confidence: number;
|
|
3783
|
-
} | {
|
|
3784
|
-
action: "tell";
|
|
3785
|
-
decisionId: string;
|
|
3786
|
-
runId: string;
|
|
3787
|
-
text: string;
|
|
3788
|
-
confidence: number;
|
|
3789
|
-
} | {
|
|
3790
|
-
action: "confirm";
|
|
3791
|
-
decisionId: string;
|
|
3792
|
-
} | {
|
|
3793
|
-
action: "cancel";
|
|
3794
|
-
decisionId: string;
|
|
3795
|
-
} | {
|
|
3796
|
-
action: "none";
|
|
3797
|
-
decisionId: string;
|
|
3798
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
3799
|
-
};
|
|
3800
|
-
outputFormat: "json";
|
|
3801
|
-
status: 200;
|
|
3802
|
-
input: {
|
|
3803
|
-
json: {
|
|
3804
|
-
text: string;
|
|
3805
|
-
sidebarView: "active" | "automations";
|
|
3806
|
-
openRunId?: string | undefined;
|
|
3807
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
3808
|
-
askRequestId?: string | null | undefined;
|
|
3809
|
-
proposal?: {
|
|
3810
|
-
decisionId: string;
|
|
3811
|
-
action: "answer" | "tell";
|
|
3812
|
-
} | undefined;
|
|
3813
|
-
};
|
|
3814
|
-
};
|
|
3815
|
-
};
|
|
3816
|
-
};
|
|
3817
|
-
} & {
|
|
3818
|
-
"/voice/outcome": {
|
|
3819
|
-
$post: {
|
|
3820
|
-
output: {
|
|
3821
|
-
ok: true;
|
|
3822
|
-
};
|
|
3823
|
-
outputFormat: "json";
|
|
3824
|
-
status: 200;
|
|
3825
|
-
input: {
|
|
3826
|
-
json: {
|
|
3827
|
-
decisionId: string;
|
|
3828
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
3829
|
-
};
|
|
3830
|
-
};
|
|
3831
|
-
};
|
|
3832
|
-
};
|
|
3833
3833
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3834
3834
|
"/agent-webhooks": {
|
|
3835
3835
|
$get: {
|
|
@@ -4947,6 +4947,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4947
4947
|
} & {
|
|
4948
4948
|
"/repo/commit/:sha": {
|
|
4949
4949
|
$get: {
|
|
4950
|
+
output: string;
|
|
4951
|
+
outputFormat: "text";
|
|
4952
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4953
|
+
input: {
|
|
4954
|
+
query: {
|
|
4955
|
+
structured?: string | undefined;
|
|
4956
|
+
};
|
|
4957
|
+
} & {
|
|
4958
|
+
param: {
|
|
4959
|
+
sha: string;
|
|
4960
|
+
};
|
|
4961
|
+
};
|
|
4962
|
+
} | {
|
|
4950
4963
|
output: {
|
|
4951
4964
|
error: string;
|
|
4952
4965
|
code?: "invalid_input" | undefined;
|
|
@@ -5010,19 +5023,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5010
5023
|
sha: string;
|
|
5011
5024
|
};
|
|
5012
5025
|
};
|
|
5013
|
-
} | {
|
|
5014
|
-
output: string;
|
|
5015
|
-
outputFormat: "text";
|
|
5016
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
5017
|
-
input: {
|
|
5018
|
-
query: {
|
|
5019
|
-
structured?: string | undefined;
|
|
5020
|
-
};
|
|
5021
|
-
} & {
|
|
5022
|
-
param: {
|
|
5023
|
-
sha: string;
|
|
5024
|
-
};
|
|
5025
|
-
};
|
|
5026
5026
|
};
|
|
5027
5027
|
};
|
|
5028
5028
|
} & {
|
|
@@ -18360,20 +18360,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18360
18360
|
} & {
|
|
18361
18361
|
"/runs/:id/handoff": {
|
|
18362
18362
|
$get: {
|
|
18363
|
-
output:
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
outputFormat: "json";
|
|
18367
|
-
status: 404;
|
|
18363
|
+
output: string;
|
|
18364
|
+
outputFormat: "text";
|
|
18365
|
+
status: 200;
|
|
18368
18366
|
input: {
|
|
18369
18367
|
param: {
|
|
18370
18368
|
id: string;
|
|
18371
18369
|
};
|
|
18372
18370
|
};
|
|
18373
18371
|
} | {
|
|
18374
|
-
output:
|
|
18375
|
-
|
|
18376
|
-
|
|
18372
|
+
output: {
|
|
18373
|
+
error: string;
|
|
18374
|
+
};
|
|
18375
|
+
outputFormat: "json";
|
|
18376
|
+
status: 404;
|
|
18377
18377
|
input: {
|
|
18378
18378
|
param: {
|
|
18379
18379
|
id: string;
|
|
@@ -18411,20 +18411,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18411
18411
|
} & {
|
|
18412
18412
|
"/runs/:id/diff": {
|
|
18413
18413
|
$get: {
|
|
18414
|
-
output:
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
outputFormat: "json";
|
|
18418
|
-
status: 404 | 409;
|
|
18414
|
+
output: string;
|
|
18415
|
+
outputFormat: "text";
|
|
18416
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18419
18417
|
input: {
|
|
18420
18418
|
param: {
|
|
18421
18419
|
id: string;
|
|
18422
18420
|
};
|
|
18423
18421
|
};
|
|
18424
18422
|
} | {
|
|
18425
|
-
output:
|
|
18426
|
-
|
|
18427
|
-
|
|
18423
|
+
output: {
|
|
18424
|
+
error: string;
|
|
18425
|
+
};
|
|
18426
|
+
outputFormat: "json";
|
|
18427
|
+
status: 404 | 409;
|
|
18428
18428
|
input: {
|
|
18429
18429
|
param: {
|
|
18430
18430
|
id: string;
|
|
@@ -19180,6 +19180,103 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19180
19180
|
};
|
|
19181
19181
|
};
|
|
19182
19182
|
};
|
|
19183
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19184
|
+
"/voice/decide": {
|
|
19185
|
+
$post: {
|
|
19186
|
+
output: {
|
|
19187
|
+
error: string;
|
|
19188
|
+
};
|
|
19189
|
+
outputFormat: "json";
|
|
19190
|
+
status: 503;
|
|
19191
|
+
input: {
|
|
19192
|
+
json: {
|
|
19193
|
+
text: string;
|
|
19194
|
+
sidebarView: "active" | "automations";
|
|
19195
|
+
openRunId?: string | undefined;
|
|
19196
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19197
|
+
askRequestId?: string | null | undefined;
|
|
19198
|
+
proposal?: {
|
|
19199
|
+
decisionId: string;
|
|
19200
|
+
action: "answer" | "tell";
|
|
19201
|
+
} | undefined;
|
|
19202
|
+
};
|
|
19203
|
+
};
|
|
19204
|
+
} | {
|
|
19205
|
+
output: {
|
|
19206
|
+
action: "open";
|
|
19207
|
+
decisionId: string;
|
|
19208
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19209
|
+
position: number | "last" | "next" | "previous";
|
|
19210
|
+
confidence: number;
|
|
19211
|
+
alternatives?: {
|
|
19212
|
+
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19213
|
+
position: number | "last" | "next" | "previous";
|
|
19214
|
+
}[] | undefined;
|
|
19215
|
+
} | {
|
|
19216
|
+
action: "answer";
|
|
19217
|
+
decisionId: string;
|
|
19218
|
+
runId: string;
|
|
19219
|
+
askRequestId: string;
|
|
19220
|
+
answers: ({
|
|
19221
|
+
question: number;
|
|
19222
|
+
kind: "option";
|
|
19223
|
+
labels: string[];
|
|
19224
|
+
} | {
|
|
19225
|
+
question: number;
|
|
19226
|
+
kind: "other";
|
|
19227
|
+
text: string;
|
|
19228
|
+
})[];
|
|
19229
|
+
confidence: number;
|
|
19230
|
+
} | {
|
|
19231
|
+
action: "tell";
|
|
19232
|
+
decisionId: string;
|
|
19233
|
+
runId: string;
|
|
19234
|
+
text: string;
|
|
19235
|
+
confidence: number;
|
|
19236
|
+
} | {
|
|
19237
|
+
action: "confirm";
|
|
19238
|
+
decisionId: string;
|
|
19239
|
+
} | {
|
|
19240
|
+
action: "cancel";
|
|
19241
|
+
decisionId: string;
|
|
19242
|
+
} | {
|
|
19243
|
+
action: "none";
|
|
19244
|
+
decisionId: string;
|
|
19245
|
+
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19246
|
+
};
|
|
19247
|
+
outputFormat: "json";
|
|
19248
|
+
status: 200;
|
|
19249
|
+
input: {
|
|
19250
|
+
json: {
|
|
19251
|
+
text: string;
|
|
19252
|
+
sidebarView: "active" | "automations";
|
|
19253
|
+
openRunId?: string | undefined;
|
|
19254
|
+
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19255
|
+
askRequestId?: string | null | undefined;
|
|
19256
|
+
proposal?: {
|
|
19257
|
+
decisionId: string;
|
|
19258
|
+
action: "answer" | "tell";
|
|
19259
|
+
} | undefined;
|
|
19260
|
+
};
|
|
19261
|
+
};
|
|
19262
|
+
};
|
|
19263
|
+
};
|
|
19264
|
+
} & {
|
|
19265
|
+
"/voice/outcome": {
|
|
19266
|
+
$post: {
|
|
19267
|
+
output: {
|
|
19268
|
+
ok: true;
|
|
19269
|
+
};
|
|
19270
|
+
outputFormat: "json";
|
|
19271
|
+
status: 200;
|
|
19272
|
+
input: {
|
|
19273
|
+
json: {
|
|
19274
|
+
decisionId: string;
|
|
19275
|
+
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19276
|
+
};
|
|
19277
|
+
};
|
|
19278
|
+
};
|
|
19279
|
+
};
|
|
19183
19280
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19184
19281
|
"/ui-state": {
|
|
19185
19282
|
$get: {
|
|
@@ -19610,103 +19707,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19610
19707
|
};
|
|
19611
19708
|
};
|
|
19612
19709
|
};
|
|
19613
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19614
|
-
"/voice/decide": {
|
|
19615
|
-
$post: {
|
|
19616
|
-
output: {
|
|
19617
|
-
error: string;
|
|
19618
|
-
};
|
|
19619
|
-
outputFormat: "json";
|
|
19620
|
-
status: 503;
|
|
19621
|
-
input: {
|
|
19622
|
-
json: {
|
|
19623
|
-
text: string;
|
|
19624
|
-
sidebarView: "active" | "automations";
|
|
19625
|
-
openRunId?: string | undefined;
|
|
19626
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19627
|
-
askRequestId?: string | null | undefined;
|
|
19628
|
-
proposal?: {
|
|
19629
|
-
decisionId: string;
|
|
19630
|
-
action: "answer" | "tell";
|
|
19631
|
-
} | undefined;
|
|
19632
|
-
};
|
|
19633
|
-
};
|
|
19634
|
-
} | {
|
|
19635
|
-
output: {
|
|
19636
|
-
action: "open";
|
|
19637
|
-
decisionId: string;
|
|
19638
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19639
|
-
position: number | "last" | "next" | "previous";
|
|
19640
|
-
confidence: number;
|
|
19641
|
-
alternatives?: {
|
|
19642
|
-
status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
|
|
19643
|
-
position: number | "last" | "next" | "previous";
|
|
19644
|
-
}[] | undefined;
|
|
19645
|
-
} | {
|
|
19646
|
-
action: "answer";
|
|
19647
|
-
decisionId: string;
|
|
19648
|
-
runId: string;
|
|
19649
|
-
askRequestId: string;
|
|
19650
|
-
answers: ({
|
|
19651
|
-
question: number;
|
|
19652
|
-
kind: "option";
|
|
19653
|
-
labels: string[];
|
|
19654
|
-
} | {
|
|
19655
|
-
question: number;
|
|
19656
|
-
kind: "other";
|
|
19657
|
-
text: string;
|
|
19658
|
-
})[];
|
|
19659
|
-
confidence: number;
|
|
19660
|
-
} | {
|
|
19661
|
-
action: "tell";
|
|
19662
|
-
decisionId: string;
|
|
19663
|
-
runId: string;
|
|
19664
|
-
text: string;
|
|
19665
|
-
confidence: number;
|
|
19666
|
-
} | {
|
|
19667
|
-
action: "confirm";
|
|
19668
|
-
decisionId: string;
|
|
19669
|
-
} | {
|
|
19670
|
-
action: "cancel";
|
|
19671
|
-
decisionId: string;
|
|
19672
|
-
} | {
|
|
19673
|
-
action: "none";
|
|
19674
|
-
decisionId: string;
|
|
19675
|
-
reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
|
|
19676
|
-
};
|
|
19677
|
-
outputFormat: "json";
|
|
19678
|
-
status: 200;
|
|
19679
|
-
input: {
|
|
19680
|
-
json: {
|
|
19681
|
-
text: string;
|
|
19682
|
-
sidebarView: "active" | "automations";
|
|
19683
|
-
openRunId?: string | undefined;
|
|
19684
|
-
view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
|
|
19685
|
-
askRequestId?: string | null | undefined;
|
|
19686
|
-
proposal?: {
|
|
19687
|
-
decisionId: string;
|
|
19688
|
-
action: "answer" | "tell";
|
|
19689
|
-
} | undefined;
|
|
19690
|
-
};
|
|
19691
|
-
};
|
|
19692
|
-
};
|
|
19693
|
-
};
|
|
19694
|
-
} & {
|
|
19695
|
-
"/voice/outcome": {
|
|
19696
|
-
$post: {
|
|
19697
|
-
output: {
|
|
19698
|
-
ok: true;
|
|
19699
|
-
};
|
|
19700
|
-
outputFormat: "json";
|
|
19701
|
-
status: 200;
|
|
19702
|
-
input: {
|
|
19703
|
-
json: {
|
|
19704
|
-
decisionId: string;
|
|
19705
|
-
outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
|
|
19706
|
-
};
|
|
19707
|
-
};
|
|
19708
|
-
};
|
|
19709
|
-
};
|
|
19710
19710
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19711
19711
|
"/agent-webhooks": {
|
|
19712
19712
|
$get: {
|
|
@@ -20824,6 +20824,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20824
20824
|
} & {
|
|
20825
20825
|
"/repo/commit/:sha": {
|
|
20826
20826
|
$get: {
|
|
20827
|
+
output: string;
|
|
20828
|
+
outputFormat: "text";
|
|
20829
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20830
|
+
input: {
|
|
20831
|
+
query: {
|
|
20832
|
+
structured?: string | undefined;
|
|
20833
|
+
};
|
|
20834
|
+
} & {
|
|
20835
|
+
param: {
|
|
20836
|
+
sha: string;
|
|
20837
|
+
};
|
|
20838
|
+
};
|
|
20839
|
+
} | {
|
|
20827
20840
|
output: {
|
|
20828
20841
|
error: string;
|
|
20829
20842
|
code?: "invalid_input" | undefined;
|
|
@@ -20887,19 +20900,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20887
20900
|
sha: string;
|
|
20888
20901
|
};
|
|
20889
20902
|
};
|
|
20890
|
-
} | {
|
|
20891
|
-
output: string;
|
|
20892
|
-
outputFormat: "text";
|
|
20893
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20894
|
-
input: {
|
|
20895
|
-
query: {
|
|
20896
|
-
structured?: string | undefined;
|
|
20897
|
-
};
|
|
20898
|
-
} & {
|
|
20899
|
-
param: {
|
|
20900
|
-
sha: string;
|
|
20901
|
-
};
|
|
20902
|
-
};
|
|
20903
20903
|
};
|
|
20904
20904
|
};
|
|
20905
20905
|
} & {
|
|
@@ -34237,20 +34237,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34237
34237
|
} & {
|
|
34238
34238
|
"/runs/:id/handoff": {
|
|
34239
34239
|
$get: {
|
|
34240
|
-
output:
|
|
34241
|
-
|
|
34242
|
-
|
|
34243
|
-
outputFormat: "json";
|
|
34244
|
-
status: 404;
|
|
34240
|
+
output: string;
|
|
34241
|
+
outputFormat: "text";
|
|
34242
|
+
status: 200;
|
|
34245
34243
|
input: {
|
|
34246
34244
|
param: {
|
|
34247
34245
|
id: string;
|
|
34248
34246
|
};
|
|
34249
34247
|
};
|
|
34250
34248
|
} | {
|
|
34251
|
-
output:
|
|
34252
|
-
|
|
34253
|
-
|
|
34249
|
+
output: {
|
|
34250
|
+
error: string;
|
|
34251
|
+
};
|
|
34252
|
+
outputFormat: "json";
|
|
34253
|
+
status: 404;
|
|
34254
34254
|
input: {
|
|
34255
34255
|
param: {
|
|
34256
34256
|
id: string;
|
|
@@ -34288,20 +34288,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34288
34288
|
} & {
|
|
34289
34289
|
"/runs/:id/diff": {
|
|
34290
34290
|
$get: {
|
|
34291
|
-
output:
|
|
34292
|
-
|
|
34293
|
-
|
|
34294
|
-
outputFormat: "json";
|
|
34295
|
-
status: 404 | 409;
|
|
34291
|
+
output: string;
|
|
34292
|
+
outputFormat: "text";
|
|
34293
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34296
34294
|
input: {
|
|
34297
34295
|
param: {
|
|
34298
34296
|
id: string;
|
|
34299
34297
|
};
|
|
34300
34298
|
};
|
|
34301
34299
|
} | {
|
|
34302
|
-
output:
|
|
34303
|
-
|
|
34304
|
-
|
|
34300
|
+
output: {
|
|
34301
|
+
error: string;
|
|
34302
|
+
};
|
|
34303
|
+
outputFormat: "json";
|
|
34304
|
+
status: 404 | 409;
|
|
34305
34305
|
input: {
|
|
34306
34306
|
param: {
|
|
34307
34307
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-dev.
|
|
3
|
+
"version": "0.18.0-dev.6035",
|
|
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",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/parser": "^8.0.8",
|
|
62
62
|
"@babel/types": "^8.0.8",
|
|
63
|
-
"@open-mercato/cezar-api-client": "0.18.0-dev.
|
|
64
|
-
"@open-mercato/cezar-contract": "0.18.0-dev.
|
|
63
|
+
"@open-mercato/cezar-api-client": "0.18.0-dev.6035",
|
|
64
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.6035",
|
|
65
65
|
"@types/node": "^24.19.1",
|
|
66
66
|
"@types/ws": "^8.18.1",
|
|
67
67
|
"esbuild": "^0.28.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "2b0792b3d9b5e053a1d41542ad99c4559a567ba2"
|
|
82
82
|
}
|