@hearsay-tools/squawk 0.18.0-pr3982.7564 → 0.18.0-pr3983.7569
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.
|
@@ -285,11 +285,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
285
285
|
"/api/v1/tools/ask": {
|
|
286
286
|
$post: {
|
|
287
287
|
output: {
|
|
288
|
-
|
|
288
|
+
ok: false;
|
|
289
|
+
code: 'unavailable';
|
|
289
290
|
message: string;
|
|
290
291
|
};
|
|
291
292
|
outputFormat: "json";
|
|
292
|
-
status:
|
|
293
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
293
294
|
input: {
|
|
294
295
|
json: {
|
|
295
296
|
questions: {
|
|
@@ -307,12 +308,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
307
308
|
};
|
|
308
309
|
} | {
|
|
309
310
|
output: {
|
|
310
|
-
|
|
311
|
-
code: 'unavailable';
|
|
311
|
+
code: 'capability_revoked';
|
|
312
312
|
message: string;
|
|
313
313
|
};
|
|
314
314
|
outputFormat: "json";
|
|
315
|
-
status:
|
|
315
|
+
status: 401;
|
|
316
316
|
input: {
|
|
317
317
|
json: {
|
|
318
318
|
questions: {
|
|
@@ -380,11 +380,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
380
380
|
"/api/v1/tools/cancel-wait": {
|
|
381
381
|
$post: {
|
|
382
382
|
output: {
|
|
383
|
-
|
|
383
|
+
cancelled: false;
|
|
384
|
+
code: 'unavailable';
|
|
384
385
|
message: string;
|
|
385
386
|
};
|
|
386
387
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
388
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
388
389
|
input: {
|
|
389
390
|
json: {
|
|
390
391
|
wait_id: string;
|
|
@@ -392,12 +393,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
392
393
|
};
|
|
393
394
|
} | {
|
|
394
395
|
output: {
|
|
395
|
-
|
|
396
|
-
code: 'unavailable';
|
|
396
|
+
code: 'capability_revoked';
|
|
397
397
|
message: string;
|
|
398
398
|
};
|
|
399
399
|
outputFormat: "json";
|
|
400
|
-
status:
|
|
400
|
+
status: 401;
|
|
401
401
|
input: {
|
|
402
402
|
json: {
|
|
403
403
|
wait_id: string;
|
|
@@ -445,11 +445,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
445
445
|
"/api/v1/tools/done": {
|
|
446
446
|
$post: {
|
|
447
447
|
output: {
|
|
448
|
-
|
|
448
|
+
ok: false;
|
|
449
|
+
code: 'unavailable';
|
|
449
450
|
message: string;
|
|
450
451
|
};
|
|
451
452
|
outputFormat: "json";
|
|
452
|
-
status:
|
|
453
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
453
454
|
input: {
|
|
454
455
|
json: {
|
|
455
456
|
summary?: string | undefined;
|
|
@@ -457,12 +458,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
457
458
|
};
|
|
458
459
|
} | {
|
|
459
460
|
output: {
|
|
460
|
-
|
|
461
|
-
code: 'unavailable';
|
|
461
|
+
code: 'capability_revoked';
|
|
462
462
|
message: string;
|
|
463
463
|
};
|
|
464
464
|
outputFormat: "json";
|
|
465
|
-
status:
|
|
465
|
+
status: 401;
|
|
466
466
|
input: {
|
|
467
467
|
json: {
|
|
468
468
|
summary?: string | undefined;
|
|
@@ -545,11 +545,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
545
545
|
"/api/v1/tools/preview-stop": {
|
|
546
546
|
$post: {
|
|
547
547
|
output: {
|
|
548
|
-
|
|
548
|
+
ok: boolean;
|
|
549
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
549
550
|
message: string;
|
|
551
|
+
hint: string;
|
|
550
552
|
};
|
|
551
553
|
outputFormat: "json";
|
|
552
|
-
status:
|
|
554
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
553
555
|
input: {
|
|
554
556
|
json: {
|
|
555
557
|
port: number;
|
|
@@ -558,13 +560,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
558
560
|
};
|
|
559
561
|
} | {
|
|
560
562
|
output: {
|
|
561
|
-
|
|
562
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
563
|
+
code: 'capability_revoked';
|
|
563
564
|
message: string;
|
|
564
|
-
hint: string;
|
|
565
565
|
};
|
|
566
566
|
outputFormat: "json";
|
|
567
|
-
status:
|
|
567
|
+
status: 401;
|
|
568
568
|
input: {
|
|
569
569
|
json: {
|
|
570
570
|
port: number;
|
|
@@ -577,11 +577,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
577
577
|
"/api/v1/tools/preview-serve": {
|
|
578
578
|
$post: {
|
|
579
579
|
output: {
|
|
580
|
-
|
|
580
|
+
ok: boolean;
|
|
581
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
581
582
|
message: string;
|
|
583
|
+
hint: string;
|
|
582
584
|
};
|
|
583
585
|
outputFormat: "json";
|
|
584
|
-
status:
|
|
586
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
585
587
|
input: {
|
|
586
588
|
json: {
|
|
587
589
|
command: string;
|
|
@@ -593,13 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
593
595
|
};
|
|
594
596
|
} | {
|
|
595
597
|
output: {
|
|
596
|
-
|
|
597
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
598
|
+
code: 'capability_revoked';
|
|
598
599
|
message: string;
|
|
599
|
-
hint: string;
|
|
600
600
|
};
|
|
601
601
|
outputFormat: "json";
|
|
602
|
-
status:
|
|
602
|
+
status: 401;
|
|
603
603
|
input: {
|
|
604
604
|
json: {
|
|
605
605
|
command: string;
|
|
@@ -615,11 +615,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
615
615
|
"/api/v1/tools/automation": {
|
|
616
616
|
$post: {
|
|
617
617
|
output: {
|
|
618
|
-
|
|
618
|
+
ok: false;
|
|
619
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
619
620
|
message: string;
|
|
620
621
|
};
|
|
621
622
|
outputFormat: "json";
|
|
622
|
-
status:
|
|
623
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
623
624
|
input: {
|
|
624
625
|
json: {
|
|
625
626
|
action: "create";
|
|
@@ -699,12 +700,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
699
700
|
};
|
|
700
701
|
} | {
|
|
701
702
|
output: {
|
|
702
|
-
|
|
703
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
703
|
+
code: 'capability_revoked';
|
|
704
704
|
message: string;
|
|
705
705
|
};
|
|
706
706
|
outputFormat: "json";
|
|
707
|
-
status:
|
|
707
|
+
status: 401;
|
|
708
708
|
input: {
|
|
709
709
|
json: {
|
|
710
710
|
action: "create";
|
|
@@ -960,11 +960,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
960
960
|
"/api/v1/tools/schedule-task": {
|
|
961
961
|
$post: {
|
|
962
962
|
output: {
|
|
963
|
-
|
|
963
|
+
ok: false;
|
|
964
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
964
965
|
message: string;
|
|
965
966
|
};
|
|
966
967
|
outputFormat: "json";
|
|
967
|
-
status:
|
|
968
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
968
969
|
input: {
|
|
969
970
|
json: {
|
|
970
971
|
at?: string | undefined;
|
|
@@ -981,12 +982,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
981
982
|
};
|
|
982
983
|
} | {
|
|
983
984
|
output: {
|
|
984
|
-
|
|
985
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
985
|
+
code: 'capability_revoked';
|
|
986
986
|
message: string;
|
|
987
987
|
};
|
|
988
988
|
outputFormat: "json";
|
|
989
|
-
status:
|
|
989
|
+
status: 401;
|
|
990
990
|
input: {
|
|
991
991
|
json: {
|
|
992
992
|
at?: string | undefined;
|
|
@@ -1041,11 +1041,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1041
1041
|
"/api/v1/tools/scheduled-tasks": {
|
|
1042
1042
|
$post: {
|
|
1043
1043
|
output: {
|
|
1044
|
-
|
|
1044
|
+
ok: false;
|
|
1045
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1045
1046
|
message: string;
|
|
1046
1047
|
};
|
|
1047
1048
|
outputFormat: "json";
|
|
1048
|
-
status:
|
|
1049
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1049
1050
|
input: {
|
|
1050
1051
|
json: {
|
|
1051
1052
|
at?: string | undefined;
|
|
@@ -1078,12 +1079,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1078
1079
|
};
|
|
1079
1080
|
} | {
|
|
1080
1081
|
output: {
|
|
1081
|
-
|
|
1082
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1082
|
+
code: 'capability_revoked';
|
|
1083
1083
|
message: string;
|
|
1084
1084
|
};
|
|
1085
1085
|
outputFormat: "json";
|
|
1086
|
-
status:
|
|
1086
|
+
status: 401;
|
|
1087
1087
|
input: {
|
|
1088
1088
|
json: {
|
|
1089
1089
|
at?: string | undefined;
|
|
@@ -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;
|
|
@@ -48,18 +60,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
48
60
|
offset?: string | undefined;
|
|
49
61
|
};
|
|
50
62
|
};
|
|
51
|
-
} | {
|
|
52
|
-
output: {
|
|
53
|
-
error: string;
|
|
54
|
-
code?: "invalid_input" | undefined;
|
|
55
|
-
};
|
|
56
|
-
outputFormat: "json";
|
|
57
|
-
status: 400;
|
|
58
|
-
input: {
|
|
59
|
-
query: {
|
|
60
|
-
offset?: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
} & {
|
|
@@ -598,6 +598,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
598
598
|
} & {
|
|
599
599
|
"/:workerId": {
|
|
600
600
|
$get: {
|
|
601
|
+
output: {
|
|
602
|
+
error: string;
|
|
603
|
+
code?: "invalid_input" | undefined;
|
|
604
|
+
};
|
|
605
|
+
outputFormat: "json";
|
|
606
|
+
status: 400;
|
|
607
|
+
input: {
|
|
608
|
+
param: {
|
|
609
|
+
workerId: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
} | {
|
|
601
613
|
output: {
|
|
602
614
|
workerId: string;
|
|
603
615
|
settled: boolean;
|
|
@@ -715,7 +727,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
715
727
|
workerId: string;
|
|
716
728
|
};
|
|
717
729
|
};
|
|
718
|
-
}
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
} & {
|
|
733
|
+
"/:workerId/collect": {
|
|
734
|
+
$post: {
|
|
719
735
|
output: {
|
|
720
736
|
error: string;
|
|
721
737
|
code?: "invalid_input" | undefined;
|
|
@@ -726,12 +742,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
726
742
|
param: {
|
|
727
743
|
workerId: string;
|
|
728
744
|
};
|
|
745
|
+
} & {
|
|
746
|
+
json: Record<string, never>;
|
|
729
747
|
};
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
} & {
|
|
733
|
-
"/:workerId/collect": {
|
|
734
|
-
$post: {
|
|
748
|
+
} | {
|
|
735
749
|
output: {
|
|
736
750
|
workerId: string;
|
|
737
751
|
parentRunId: string;
|
|
@@ -854,7 +868,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
854
868
|
} & {
|
|
855
869
|
json: Record<string, never>;
|
|
856
870
|
};
|
|
857
|
-
}
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
} & {
|
|
874
|
+
"/:workerId/steer": {
|
|
875
|
+
$post: {
|
|
858
876
|
output: {
|
|
859
877
|
error: string;
|
|
860
878
|
code?: "invalid_input" | undefined;
|
|
@@ -866,13 +884,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
866
884
|
workerId: string;
|
|
867
885
|
};
|
|
868
886
|
} & {
|
|
869
|
-
json:
|
|
887
|
+
json: {
|
|
888
|
+
text: string;
|
|
889
|
+
};
|
|
870
890
|
};
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
} & {
|
|
874
|
-
"/:workerId/steer": {
|
|
875
|
-
$post: {
|
|
891
|
+
} | {
|
|
876
892
|
output: {
|
|
877
893
|
workerId: string;
|
|
878
894
|
state: "delivered" | "queued";
|
|
@@ -888,7 +904,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
888
904
|
text: string;
|
|
889
905
|
};
|
|
890
906
|
};
|
|
891
|
-
}
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
} & {
|
|
910
|
+
"/:workerId/stop": {
|
|
911
|
+
$post: {
|
|
892
912
|
output: {
|
|
893
913
|
error: string;
|
|
894
914
|
code?: "invalid_input" | undefined;
|
|
@@ -900,15 +920,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
900
920
|
workerId: string;
|
|
901
921
|
};
|
|
902
922
|
} & {
|
|
903
|
-
json:
|
|
904
|
-
text: string;
|
|
905
|
-
};
|
|
923
|
+
json: Record<string, never>;
|
|
906
924
|
};
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
} & {
|
|
910
|
-
"/:workerId/stop": {
|
|
911
|
-
$post: {
|
|
925
|
+
} | {
|
|
912
926
|
output: {
|
|
913
927
|
workerId: string;
|
|
914
928
|
state: "stopping" | "terminated";
|
|
@@ -922,7 +936,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
922
936
|
} & {
|
|
923
937
|
json: Record<string, never>;
|
|
924
938
|
};
|
|
925
|
-
}
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
} & {
|
|
942
|
+
"/:workerId/destroy": {
|
|
943
|
+
$post: {
|
|
926
944
|
output: {
|
|
927
945
|
error: string;
|
|
928
946
|
code?: "invalid_input" | undefined;
|
|
@@ -934,13 +952,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
934
952
|
workerId: string;
|
|
935
953
|
};
|
|
936
954
|
} & {
|
|
937
|
-
json:
|
|
955
|
+
json: {
|
|
956
|
+
discardWork?: true | undefined;
|
|
957
|
+
};
|
|
938
958
|
};
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
} & {
|
|
942
|
-
"/:workerId/destroy": {
|
|
943
|
-
$post: {
|
|
959
|
+
} | {
|
|
944
960
|
output: {
|
|
945
961
|
workerId: string;
|
|
946
962
|
state: "complete" | "incomplete";
|
|
@@ -969,22 +985,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
969
985
|
discardWork?: true | undefined;
|
|
970
986
|
};
|
|
971
987
|
};
|
|
972
|
-
} | {
|
|
973
|
-
output: {
|
|
974
|
-
error: string;
|
|
975
|
-
code?: "invalid_input" | undefined;
|
|
976
|
-
};
|
|
977
|
-
outputFormat: "json";
|
|
978
|
-
status: 400;
|
|
979
|
-
input: {
|
|
980
|
-
param: {
|
|
981
|
-
workerId: string;
|
|
982
|
-
};
|
|
983
|
-
} & {
|
|
984
|
-
json: {
|
|
985
|
-
discardWork?: true | undefined;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
988
|
} | {
|
|
989
989
|
output: {
|
|
990
990
|
workerId: string;
|
|
@@ -1020,13 +1020,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1020
1020
|
"/:workerId/diff": {
|
|
1021
1021
|
$get: {
|
|
1022
1022
|
output: {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
diff: string;
|
|
1026
|
-
truncated: boolean;
|
|
1023
|
+
error: string;
|
|
1024
|
+
code?: "invalid_input" | undefined;
|
|
1027
1025
|
};
|
|
1028
1026
|
outputFormat: "json";
|
|
1029
|
-
status:
|
|
1027
|
+
status: 400;
|
|
1030
1028
|
input: {
|
|
1031
1029
|
param: {
|
|
1032
1030
|
workerId: string;
|
|
@@ -1034,11 +1032,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1034
1032
|
};
|
|
1035
1033
|
} | {
|
|
1036
1034
|
output: {
|
|
1037
|
-
|
|
1038
|
-
|
|
1035
|
+
workerId: string;
|
|
1036
|
+
baselineSha: string;
|
|
1037
|
+
diff: string;
|
|
1038
|
+
truncated: boolean;
|
|
1039
1039
|
};
|
|
1040
1040
|
outputFormat: "json";
|
|
1041
|
-
status:
|
|
1041
|
+
status: 200;
|
|
1042
1042
|
input: {
|
|
1043
1043
|
param: {
|
|
1044
1044
|
workerId: string;
|
|
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
|
|
|
58
58
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
59
59
|
"/workspace/activity": {
|
|
60
60
|
$get: {
|
|
61
|
+
output: {
|
|
62
|
+
error: string;
|
|
63
|
+
code?: "invalid_input" | undefined;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: 400;
|
|
67
|
+
input: {
|
|
68
|
+
query: {
|
|
69
|
+
project?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
output: {
|
|
74
|
+
error: string;
|
|
75
|
+
};
|
|
76
|
+
outputFormat: "json";
|
|
77
|
+
status: 404 | 409 | 503;
|
|
78
|
+
input: {
|
|
79
|
+
query: {
|
|
80
|
+
project?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
61
84
|
output: {
|
|
62
85
|
generatedAt: string;
|
|
63
86
|
projects: {
|
|
@@ -288,29 +311,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
288
311
|
project?: string | undefined;
|
|
289
312
|
};
|
|
290
313
|
};
|
|
291
|
-
} | {
|
|
292
|
-
output: {
|
|
293
|
-
error: string;
|
|
294
|
-
code?: "invalid_input" | undefined;
|
|
295
|
-
};
|
|
296
|
-
outputFormat: "json";
|
|
297
|
-
status: 400;
|
|
298
|
-
input: {
|
|
299
|
-
query: {
|
|
300
|
-
project?: string | undefined;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
} | {
|
|
304
|
-
output: {
|
|
305
|
-
error: string;
|
|
306
|
-
};
|
|
307
|
-
outputFormat: "json";
|
|
308
|
-
status: 404 | 409 | 503;
|
|
309
|
-
input: {
|
|
310
|
-
query: {
|
|
311
|
-
project?: string | undefined;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
316
|
}, "/", "/workspace/activity">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-pr3983.7569",
|
|
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",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/parser": "^8.0.8",
|
|
65
65
|
"@babel/types": "^8.0.8",
|
|
66
|
-
"@open-mercato/cezar-api-client": "0.18.0-
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr3983.7569",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-pr3983.7569",
|
|
68
68
|
"@types/node": "^24.19.1",
|
|
69
69
|
"@types/ws": "^8.18.1",
|
|
70
70
|
"esbuild": "^0.28.1",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "9106027e76a5e0c6b15b1733d12302f7d7e9ab88"
|
|
85
85
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The fixture runner's native mock (src/runners/fixture/): newline-delimited JSON over stdio.
|
|
3
|
+
// stdin takes `{"type":"prompt","text":"..."}`; stdout answers `ready`, then per prompt
|
|
4
|
+
// `turn-start`, `text`, `usage` and `turn-end`. `mock:hold` waits before the reply, and
|
|
5
|
+
// `mock:provider-error` answers with an `error` frame. Any other prompt is a plain reply.
|
|
6
|
+
import readline from 'node:readline';
|
|
7
|
+
|
|
8
|
+
const write = (value) => process.stdout.write(`${JSON.stringify(value)}\n`);
|
|
9
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
10
|
+
|
|
11
|
+
process.on('SIGTERM', () => process.exit(143));
|
|
12
|
+
write({ type: 'ready', sessionId: 'fixture-session-1' });
|
|
13
|
+
|
|
14
|
+
const lines = readline.createInterface({ input: process.stdin });
|
|
15
|
+
let chain = Promise.resolve();
|
|
16
|
+
lines.on('line', (line) => {
|
|
17
|
+
let message;
|
|
18
|
+
try { message = JSON.parse(line); } catch { return; }
|
|
19
|
+
if (message?.type !== 'prompt') return;
|
|
20
|
+
chain = chain.then(async () => {
|
|
21
|
+
write({ type: 'turn-start' });
|
|
22
|
+
if (message.text.includes('mock:provider-error')) { write({ type: 'error', message: 'fixture provider rejected the request' }); return; }
|
|
23
|
+
if (message.text.includes('mock:hold')) await sleep(300);
|
|
24
|
+
write({ type: 'text', text: `fixture reply to: ${message.text}` });
|
|
25
|
+
write({ type: 'usage', input: 12, output: 8 });
|
|
26
|
+
write({ type: 'turn-end' });
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
lines.on('close', () => { chain.then(() => process.exit(0)); });
|