@hearsay-tools/squawk 0.18.0-pr3851.7194 → 0.18.0-pr3852.7195

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.
@@ -282,11 +282,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
282
282
  "/api/v1/tools/ask": {
283
283
  $post: {
284
284
  output: {
285
- code: 'capability_revoked';
285
+ ok: false;
286
+ code: 'unavailable';
286
287
  message: string;
287
288
  };
288
289
  outputFormat: "json";
289
- status: 401;
290
+ status: import("hono/utils/http-status").ContentfulStatusCode;
290
291
  input: {
291
292
  json: {
292
293
  questions: {
@@ -304,12 +305,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
304
305
  };
305
306
  } | {
306
307
  output: {
307
- ok: false;
308
- code: 'unavailable';
308
+ code: 'capability_revoked';
309
309
  message: string;
310
310
  };
311
311
  outputFormat: "json";
312
- status: import("hono/utils/http-status").ContentfulStatusCode;
312
+ status: 401;
313
313
  input: {
314
314
  json: {
315
315
  questions: {
@@ -377,11 +377,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
377
377
  "/api/v1/tools/cancel-wait": {
378
378
  $post: {
379
379
  output: {
380
- code: 'capability_revoked';
380
+ cancelled: false;
381
+ code: 'unavailable';
381
382
  message: string;
382
383
  };
383
384
  outputFormat: "json";
384
- status: 401;
385
+ status: import("hono/utils/http-status").ContentfulStatusCode;
385
386
  input: {
386
387
  json: {
387
388
  wait_id: string;
@@ -389,12 +390,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
389
390
  };
390
391
  } | {
391
392
  output: {
392
- cancelled: false;
393
- code: 'unavailable';
393
+ code: 'capability_revoked';
394
394
  message: string;
395
395
  };
396
396
  outputFormat: "json";
397
- status: import("hono/utils/http-status").ContentfulStatusCode;
397
+ status: 401;
398
398
  input: {
399
399
  json: {
400
400
  wait_id: string;
@@ -442,11 +442,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
442
442
  "/api/v1/tools/done": {
443
443
  $post: {
444
444
  output: {
445
- code: 'capability_revoked';
445
+ ok: false;
446
+ code: 'unavailable';
446
447
  message: string;
447
448
  };
448
449
  outputFormat: "json";
449
- status: 401;
450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
450
451
  input: {
451
452
  json: {
452
453
  summary?: string | undefined;
@@ -454,12 +455,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
454
455
  };
455
456
  } | {
456
457
  output: {
457
- ok: false;
458
- code: 'unavailable';
458
+ code: 'capability_revoked';
459
459
  message: string;
460
460
  };
461
461
  outputFormat: "json";
462
- status: import("hono/utils/http-status").ContentfulStatusCode;
462
+ status: 401;
463
463
  input: {
464
464
  json: {
465
465
  summary?: string | undefined;
@@ -542,11 +542,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
542
542
  "/api/v1/tools/preview-stop": {
543
543
  $post: {
544
544
  output: {
545
- code: 'capability_revoked';
545
+ ok: boolean;
546
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
546
547
  message: string;
548
+ hint: string;
547
549
  };
548
550
  outputFormat: "json";
549
- status: 401;
551
+ status: import("hono/utils/http-status").ContentfulStatusCode;
550
552
  input: {
551
553
  json: {
552
554
  port: number;
@@ -555,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
555
557
  };
556
558
  } | {
557
559
  output: {
558
- ok: boolean;
559
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
560
+ code: 'capability_revoked';
560
561
  message: string;
561
- hint: string;
562
562
  };
563
563
  outputFormat: "json";
564
- status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ status: 401;
565
565
  input: {
566
566
  json: {
567
567
  port: number;
@@ -574,11 +574,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
574
574
  "/api/v1/tools/preview-serve": {
575
575
  $post: {
576
576
  output: {
577
- code: 'capability_revoked';
577
+ ok: boolean;
578
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
578
579
  message: string;
580
+ hint: string;
579
581
  };
580
582
  outputFormat: "json";
581
- status: 401;
583
+ status: import("hono/utils/http-status").ContentfulStatusCode;
582
584
  input: {
583
585
  json: {
584
586
  command: string;
@@ -590,13 +592,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
590
592
  };
591
593
  } | {
592
594
  output: {
593
- ok: boolean;
594
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
595
+ code: 'capability_revoked';
595
596
  message: string;
596
- hint: string;
597
597
  };
598
598
  outputFormat: "json";
599
- status: import("hono/utils/http-status").ContentfulStatusCode;
599
+ status: 401;
600
600
  input: {
601
601
  json: {
602
602
  command: string;
@@ -612,11 +612,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
612
612
  "/api/v1/tools/automation": {
613
613
  $post: {
614
614
  output: {
615
- code: 'capability_revoked';
615
+ ok: false;
616
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
616
617
  message: string;
617
618
  };
618
619
  outputFormat: "json";
619
- status: 401;
620
+ status: import("hono/utils/http-status").ContentfulStatusCode;
620
621
  input: {
621
622
  json: {
622
623
  action: "create";
@@ -696,12 +697,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
696
697
  };
697
698
  } | {
698
699
  output: {
699
- ok: false;
700
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
700
+ code: 'capability_revoked';
701
701
  message: string;
702
702
  };
703
703
  outputFormat: "json";
704
- status: import("hono/utils/http-status").ContentfulStatusCode;
704
+ status: 401;
705
705
  input: {
706
706
  json: {
707
707
  action: "create";
@@ -957,11 +957,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
957
957
  "/api/v1/tools/schedule-task": {
958
958
  $post: {
959
959
  output: {
960
- code: 'capability_revoked';
960
+ ok: false;
961
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
961
962
  message: string;
962
963
  };
963
964
  outputFormat: "json";
964
- status: 401;
965
+ status: import("hono/utils/http-status").ContentfulStatusCode;
965
966
  input: {
966
967
  json: {
967
968
  at?: string | undefined;
@@ -978,12 +979,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
978
979
  };
979
980
  } | {
980
981
  output: {
981
- ok: false;
982
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
982
+ code: 'capability_revoked';
983
983
  message: string;
984
984
  };
985
985
  outputFormat: "json";
986
- status: import("hono/utils/http-status").ContentfulStatusCode;
986
+ status: 401;
987
987
  input: {
988
988
  json: {
989
989
  at?: string | undefined;
@@ -1038,11 +1038,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1038
1038
  "/api/v1/tools/scheduled-tasks": {
1039
1039
  $post: {
1040
1040
  output: {
1041
- code: 'capability_revoked';
1041
+ ok: false;
1042
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1042
1043
  message: string;
1043
1044
  };
1044
1045
  outputFormat: "json";
1045
- status: 401;
1046
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1046
1047
  input: {
1047
1048
  json: {
1048
1049
  at?: string | undefined;
@@ -1075,12 +1076,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1075
1076
  };
1076
1077
  } | {
1077
1078
  output: {
1078
- ok: false;
1079
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1079
+ code: 'capability_revoked';
1080
1080
  message: string;
1081
1081
  };
1082
1082
  outputFormat: "json";
1083
- status: import("hono/utils/http-status").ContentfulStatusCode;
1083
+ status: 401;
1084
1084
  input: {
1085
1085
  json: {
1086
1086
  at?: string | undefined;
@@ -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;
@@ -707,11 +695,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
707
695
  workerId: string;
708
696
  };
709
697
  };
710
- };
711
- };
712
- } & {
713
- "/:workerId/collect": {
714
- $post: {
698
+ } | {
715
699
  output: {
716
700
  error: string;
717
701
  code?: "invalid_input" | undefined;
@@ -722,10 +706,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
722
706
  param: {
723
707
  workerId: string;
724
708
  };
725
- } & {
726
- json: Record<string, never>;
727
709
  };
728
- } | {
710
+ };
711
+ };
712
+ } & {
713
+ "/:workerId/collect": {
714
+ $post: {
729
715
  output: {
730
716
  workerId: string;
731
717
  parentRunId: string;
@@ -827,11 +813,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
827
813
  } & {
828
814
  json: Record<string, never>;
829
815
  };
830
- };
831
- };
832
- } & {
833
- "/:workerId/steer": {
834
- $post: {
816
+ } | {
835
817
  output: {
836
818
  error: string;
837
819
  code?: "invalid_input" | undefined;
@@ -843,11 +825,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
843
825
  workerId: string;
844
826
  };
845
827
  } & {
846
- json: {
847
- text: string;
848
- };
828
+ json: Record<string, never>;
849
829
  };
850
- } | {
830
+ };
831
+ };
832
+ } & {
833
+ "/:workerId/steer": {
834
+ $post: {
851
835
  output: {
852
836
  workerId: string;
853
837
  state: "delivered" | "queued";
@@ -863,11 +847,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
863
847
  text: string;
864
848
  };
865
849
  };
866
- };
867
- };
868
- } & {
869
- "/:workerId/stop": {
870
- $post: {
850
+ } | {
871
851
  output: {
872
852
  error: string;
873
853
  code?: "invalid_input" | undefined;
@@ -879,9 +859,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
879
859
  workerId: string;
880
860
  };
881
861
  } & {
882
- json: Record<string, never>;
862
+ json: {
863
+ text: string;
864
+ };
883
865
  };
884
- } | {
866
+ };
867
+ };
868
+ } & {
869
+ "/:workerId/stop": {
870
+ $post: {
885
871
  output: {
886
872
  workerId: string;
887
873
  state: "stopping" | "terminated";
@@ -895,11 +881,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
895
881
  } & {
896
882
  json: Record<string, never>;
897
883
  };
898
- };
899
- };
900
- } & {
901
- "/:workerId/destroy": {
902
- $post: {
884
+ } | {
903
885
  output: {
904
886
  error: string;
905
887
  code?: "invalid_input" | undefined;
@@ -913,7 +895,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
913
895
  } & {
914
896
  json: Record<string, never>;
915
897
  };
916
- } | {
898
+ };
899
+ };
900
+ } & {
901
+ "/:workerId/destroy": {
902
+ $post: {
917
903
  output: {
918
904
  workerId: string;
919
905
  state: "complete" | "incomplete";
@@ -936,6 +922,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
936
922
  } & {
937
923
  json: Record<string, never>;
938
924
  };
925
+ } | {
926
+ output: {
927
+ error: string;
928
+ code?: "invalid_input" | undefined;
929
+ };
930
+ outputFormat: "json";
931
+ status: 400;
932
+ input: {
933
+ param: {
934
+ workerId: string;
935
+ };
936
+ } & {
937
+ json: Record<string, never>;
938
+ };
939
939
  } | {
940
940
  output: {
941
941
  workerId: string;
@@ -965,11 +965,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
965
965
  "/:workerId/diff": {
966
966
  $get: {
967
967
  output: {
968
- error: string;
969
- code?: "invalid_input" | undefined;
968
+ workerId: string;
969
+ baselineSha: string;
970
+ diff: string;
971
+ truncated: boolean;
970
972
  };
971
973
  outputFormat: "json";
972
- status: 400;
974
+ status: 200;
973
975
  input: {
974
976
  param: {
975
977
  workerId: string;
@@ -977,13 +979,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
977
979
  };
978
980
  } | {
979
981
  output: {
980
- workerId: string;
981
- baselineSha: string;
982
- diff: string;
983
- truncated: boolean;
982
+ error: string;
983
+ code?: "invalid_input" | undefined;
984
984
  };
985
985
  outputFormat: "json";
986
- status: 200;
986
+ status: 400;
987
987
  input: {
988
988
  param: {
989
989
  workerId: string;
@@ -59,29 +59,6 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
59
59
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
60
60
  "/workspace/activity": {
61
61
  $get: {
62
- output: {
63
- error: string;
64
- code?: "invalid_input" | undefined;
65
- };
66
- outputFormat: "json";
67
- status: 400;
68
- input: {
69
- query: {
70
- project?: string | undefined;
71
- };
72
- };
73
- } | {
74
- output: {
75
- error: string;
76
- };
77
- outputFormat: "json";
78
- status: 404 | 409 | 503;
79
- input: {
80
- query: {
81
- project?: string | undefined;
82
- };
83
- };
84
- } | {
85
62
  output: {
86
63
  generatedAt: string;
87
64
  projects: {
@@ -312,6 +289,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
312
289
  project?: string | undefined;
313
290
  };
314
291
  };
292
+ } | {
293
+ output: {
294
+ error: string;
295
+ code?: "invalid_input" | undefined;
296
+ };
297
+ outputFormat: "json";
298
+ status: 400;
299
+ input: {
300
+ query: {
301
+ project?: string | undefined;
302
+ };
303
+ };
304
+ } | {
305
+ output: {
306
+ error: string;
307
+ };
308
+ outputFormat: "json";
309
+ status: 404 | 409 | 503;
310
+ input: {
311
+ query: {
312
+ project?: string | undefined;
313
+ };
314
+ };
315
315
  };
316
316
  };
317
317
  }, "/", "/workspace/activity">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr3851.7194",
3
+ "version": "0.18.0-pr3852.7195",
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-pr3851.7194",
67
- "@open-mercato/cezar-contract": "0.18.0-pr3851.7194",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr3852.7195",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr3852.7195",
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": "d7151771c9a41a4a719e84587db0b14f70fb6856"
84
+ "gitHead": "d6ee6806a42e5d1779c3cc8bea29bb50ccac9fdc"
85
85
  }