@hearsay-tools/squawk 0.18.0-pr4051.7719 → 0.18.0-pr4052.7721

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.
Files changed (44) hide show
  1. package/dist/core/runner-definition.d.ts +1 -1
  2. package/dist/delegation/routes.d.ts +65 -65
  3. package/dist/server/activity-routes.d.ts +23 -23
  4. package/dist/server/brand-file-routes.d.ts +7 -0
  5. package/dist/server/brand-file-routes.js +19 -0
  6. package/dist/server/brand-file-routes.js.map +1 -0
  7. package/dist/server/models-routes.d.ts +13 -13
  8. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  9. package/dist/server/server.d.ts +2253 -2253
  10. package/dist/server/server.js +2 -7
  11. package/dist/server/server.js.map +1 -1
  12. package/dist/server/static-ui.js +7 -4
  13. package/dist/server/static-ui.js.map +1 -1
  14. package/dist/server/web-app-manifest.d.ts +23 -0
  15. package/dist/server/web-app-manifest.js +27 -0
  16. package/dist/server/web-app-manifest.js.map +1 -0
  17. package/package.json +4 -4
  18. package/web/dist/app-icon.png +0 -0
  19. package/web/dist/assets/{activity-motion-4jefGnf3.js → activity-motion-CHWLFQui.js} +1 -1
  20. package/web/dist/assets/{activity-route-CrgEEOkP.js → activity-route-CDZ8vEvw.js} +1 -1
  21. package/web/dist/assets/{commit-diff-panel-BhqIhVpi.js → commit-diff-panel-BiFrj_Kg.js} +1 -1
  22. package/web/dist/assets/{diff-Dtz4yPu-.js → diff-Bp_ZwIlK.js} +2 -2
  23. package/web/dist/assets/{diff-view-01iQrxA3.js → diff-view-BLWY32aP.js} +1 -1
  24. package/web/dist/assets/{file-preview-Bqu0JXBY.js → file-preview-BMb-p58M.js} +1 -1
  25. package/web/dist/assets/{git-toolbar-zEjeF-_V.js → git-toolbar-BLOs2P23.js} +1 -1
  26. package/web/dist/assets/{github-D3a22EyV.js → github-DLd49gwL.js} +1 -1
  27. package/web/dist/assets/{global-activity-route-DXD818_k.js → global-activity-route-C6qUGiQ-.js} +1 -1
  28. package/web/dist/assets/{index-DPA7Ibhf.js → index-D9Yu2XLO.js} +11 -11
  29. package/web/dist/assets/{markdown-Dzq31k8-.js → markdown-HUI2AGRH.js} +1 -1
  30. package/web/dist/assets/{preview-pane-connected-TaIGMKvt.js → preview-pane-connected-Br0FHHb0.js} +1 -1
  31. package/web/dist/assets/{repo-git-BvN7c_-7.js → repo-git-CXxRkRrr.js} +1 -1
  32. package/web/dist/assets/{report-reader-BEGToSIA.js → report-reader-DK9rxnu_.js} +1 -1
  33. package/web/dist/assets/{reports-D61rDO35.js → reports-DyqYeCfW.js} +1 -1
  34. package/web/dist/assets/{run-header-gwQQqs03.js → run-header-DI2Zp-1g.js} +1 -1
  35. package/web/dist/assets/{skills-DB3DAhWt.js → skills-BsojRHiF.js} +1 -1
  36. package/web/dist/assets/{task-changes-C4Hp9Bog.js → task-changes-D0fhNQ8e.js} +1 -1
  37. package/web/dist/assets/{task-commits-IGZ1CJcy.js → task-commits-DfPvhSgU.js} +1 -1
  38. package/web/dist/assets/{task-files-CBrQO4v2.js → task-files-Do9eS-uO.js} +1 -1
  39. package/web/dist/assets/{task-github-item-BJwFCJMl.js → task-github-item-IDiDedZh.js} +1 -1
  40. package/web/dist/assets/{task-thread-Dkn8HN1R.js → task-thread-BK0lz7hd.js} +1 -1
  41. package/web/dist/assets/{thread-state-DVfKElYJ.js → thread-state-D2FZC_j9.js} +1 -1
  42. package/web/dist/assets/{use-hand-to-agent-state-ChF_oDo3.js → use-hand-to-agent-state-CntaNwZk.js} +1 -1
  43. package/web/dist/assets/{workflows-BTzKBfs-.js → workflows-BnU1T_ay.js} +1 -1
  44. package/web/dist/index.html +13 -1
@@ -69,7 +69,7 @@ export interface RunnerDefinition {
69
69
  * A runner's native mock (the `mock` part): the script in `packages/cezar/scripts/`, the variable
70
70
  * that points the runner at it, and the prompt each shared parity scenario sends it. Plain data in
71
71
  * `runners/<id>/mock.ts`. `core/skill-probe.ts` and the parity kit read it from the registry, and
72
- * `lint/mock-scenario-boundary.ts` parses `script` from the source of `runners/<id>/mock.ts`.
72
+ * `lint/mock-scenario-boundary.ts` reads it from the built-in list.
73
73
  */
74
74
  export interface RunnerMock {
75
75
  /** The mock script's file name in `packages/cezar/scripts/`. */
@@ -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;
@@ -85,6 +73,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
85
73
  offset?: string | undefined;
86
74
  };
87
75
  };
76
+ } | {
77
+ output: {
78
+ error: string;
79
+ code?: "invalid_input" | undefined;
80
+ };
81
+ outputFormat: "json";
82
+ status: 400;
83
+ input: {
84
+ query: {
85
+ offset?: string | undefined;
86
+ };
87
+ };
88
88
  };
89
89
  };
90
90
  } & {
@@ -629,18 +629,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
629
629
  } & {
630
630
  "/:workerId": {
631
631
  $get: {
632
- output: {
633
- error: string;
634
- code?: "invalid_input" | undefined;
635
- };
636
- outputFormat: "json";
637
- status: 400;
638
- input: {
639
- param: {
640
- workerId: string;
641
- };
642
- };
643
- } | {
644
632
  output: {
645
633
  workerId: string;
646
634
  settled: boolean;
@@ -758,11 +746,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
758
746
  workerId: string;
759
747
  };
760
748
  };
761
- };
762
- };
763
- } & {
764
- "/:workerId/collect": {
765
- $post: {
749
+ } | {
766
750
  output: {
767
751
  error: string;
768
752
  code?: "invalid_input" | undefined;
@@ -773,10 +757,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
773
757
  param: {
774
758
  workerId: string;
775
759
  };
776
- } & {
777
- json: Record<string, never>;
778
760
  };
779
- } | {
761
+ };
762
+ };
763
+ } & {
764
+ "/:workerId/collect": {
765
+ $post: {
780
766
  output: {
781
767
  workerId: string;
782
768
  parentRunId: string;
@@ -899,11 +885,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
899
885
  } & {
900
886
  json: Record<string, never>;
901
887
  };
902
- };
903
- };
904
- } & {
905
- "/:workerId/steer": {
906
- $post: {
888
+ } | {
907
889
  output: {
908
890
  error: string;
909
891
  code?: "invalid_input" | undefined;
@@ -915,11 +897,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
915
897
  workerId: string;
916
898
  };
917
899
  } & {
918
- json: {
919
- text: string;
920
- };
900
+ json: Record<string, never>;
921
901
  };
922
- } | {
902
+ };
903
+ };
904
+ } & {
905
+ "/:workerId/steer": {
906
+ $post: {
923
907
  output: {
924
908
  workerId: string;
925
909
  state: "delivered" | "queued";
@@ -935,11 +919,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
935
919
  text: string;
936
920
  };
937
921
  };
938
- };
939
- };
940
- } & {
941
- "/:workerId/stop": {
942
- $post: {
922
+ } | {
943
923
  output: {
944
924
  error: string;
945
925
  code?: "invalid_input" | undefined;
@@ -951,9 +931,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
951
931
  workerId: string;
952
932
  };
953
933
  } & {
954
- json: Record<string, never>;
934
+ json: {
935
+ text: string;
936
+ };
955
937
  };
956
- } | {
938
+ };
939
+ };
940
+ } & {
941
+ "/:workerId/stop": {
942
+ $post: {
957
943
  output: {
958
944
  workerId: string;
959
945
  state: "stopping" | "terminated";
@@ -967,11 +953,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
967
953
  } & {
968
954
  json: Record<string, never>;
969
955
  };
970
- };
971
- };
972
- } & {
973
- "/:workerId/destroy": {
974
- $post: {
956
+ } | {
975
957
  output: {
976
958
  error: string;
977
959
  code?: "invalid_input" | undefined;
@@ -983,11 +965,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
983
965
  workerId: string;
984
966
  };
985
967
  } & {
986
- json: {
987
- discardWork?: true | undefined;
988
- };
968
+ json: Record<string, never>;
989
969
  };
990
- } | {
970
+ };
971
+ };
972
+ } & {
973
+ "/:workerId/destroy": {
974
+ $post: {
991
975
  output: {
992
976
  workerId: string;
993
977
  state: "complete" | "incomplete";
@@ -1016,6 +1000,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1016
1000
  discardWork?: true | undefined;
1017
1001
  };
1018
1002
  };
1003
+ } | {
1004
+ output: {
1005
+ error: string;
1006
+ code?: "invalid_input" | undefined;
1007
+ };
1008
+ outputFormat: "json";
1009
+ status: 400;
1010
+ input: {
1011
+ param: {
1012
+ workerId: string;
1013
+ };
1014
+ } & {
1015
+ json: {
1016
+ discardWork?: true | undefined;
1017
+ };
1018
+ };
1019
1019
  } | {
1020
1020
  output: {
1021
1021
  workerId: string;
@@ -1051,11 +1051,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1051
1051
  "/:workerId/diff": {
1052
1052
  $get: {
1053
1053
  output: {
1054
- error: string;
1055
- code?: "invalid_input" | undefined;
1054
+ workerId: string;
1055
+ baselineSha: string;
1056
+ diff: string;
1057
+ truncated: boolean;
1056
1058
  };
1057
1059
  outputFormat: "json";
1058
- status: 400;
1060
+ status: 200;
1059
1061
  input: {
1060
1062
  param: {
1061
1063
  workerId: string;
@@ -1063,13 +1065,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1063
1065
  };
1064
1066
  } | {
1065
1067
  output: {
1066
- workerId: string;
1067
- baselineSha: string;
1068
- diff: string;
1069
- truncated: boolean;
1068
+ error: string;
1069
+ code?: "invalid_input" | undefined;
1070
1070
  };
1071
1071
  outputFormat: "json";
1072
- status: 200;
1072
+ status: 400;
1073
1073
  input: {
1074
1074
  param: {
1075
1075
  workerId: string;
@@ -58,29 +58,6 @@ 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
- } | {
84
61
  output: {
85
62
  generatedAt: string;
86
63
  projects: {
@@ -311,6 +288,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
311
288
  project?: string | undefined;
312
289
  };
313
290
  };
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">;
@@ -0,0 +1,7 @@
1
+ import type { Context, Hono } from 'hono';
2
+ type StaticFile = (name: string, type: string) => (c: Context) => Response;
3
+ /** The fixed-name files of the web build: the brand marks and the home-screen install pair.
4
+ * `staticFile` reads each one from `web/dist`. static-ui.ts lists the same paths, so the shell
5
+ * catch-all passes them through. */
6
+ export declare function registerBrandFileRoutes(app: Hono, staticFile: StaticFile): void;
7
+ export {};
@@ -0,0 +1,19 @@
1
+ import { productIdentity } from '../home/identity.js';
2
+ import { webAppManifest } from './web-app-manifest.js';
3
+ /** The fixed-name files of the web build: the brand marks and the home-screen install pair.
4
+ * `staticFile` reads each one from `web/dist`. static-ui.ts lists the same paths, so the shell
5
+ * catch-all passes them through. */
6
+ export function registerBrandFileRoutes(app, staticFile) {
7
+ // The themed brand SVGs (#143): the sidebar lockup pair and the favicon pair. The cockpit
8
+ // picks light or dark by its RESOLVED theme, so both files of each pair must be served —
9
+ // a `<link media>` pair would follow the OS, which the stored theme can disagree with.
10
+ app.get('/cezarion-lockup-light.svg', staticFile('cezarion-lockup-light.svg', 'image/svg+xml'));
11
+ app.get('/cezarion-lockup-dark.svg', staticFile('cezarion-lockup-dark.svg', 'image/svg+xml'));
12
+ app.get('/cezarion-mark-light.svg', staticFile('cezarion-mark-light.svg', 'image/svg+xml'));
13
+ app.get('/cezarion-mark-dark.svg', staticFile('cezarion-mark-dark.svg', 'image/svg+xml'));
14
+ // Home-screen install (web-app-manifest.ts): the manifest scopes the app to `/`, and the
15
+ // opaque PNG is the iOS touch icon, which takes no SVG and paints transparent corners black.
16
+ app.get('/app-icon.png', staticFile('app-icon.png', 'image/png'));
17
+ app.get('/manifest.webmanifest', (c) => c.body(JSON.stringify(webAppManifest(productIdentity().displayName)), 200, { 'content-type': 'application/manifest+json' }));
18
+ }
19
+ //# sourceMappingURL=brand-file-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-file-routes.js","sourceRoot":"","sources":["../../src/server/brand-file-routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD;;qCAEqC;AACrC,MAAM,UAAU,uBAAuB,CAAC,GAAS,EAAE,UAAsB;IACvE,0FAA0F;IAC1F,yFAAyF;IACzF,uFAAuF;IACvF,GAAG,CAAC,GAAG,CAAC,4BAA4B,EAAE,UAAU,CAAC,2BAA2B,EAAE,eAAe,CAAC,CAAC,CAAC;IAChG,GAAG,CAAC,GAAG,CAAC,2BAA2B,EAAE,UAAU,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAC,CAAC;IAC9F,GAAG,CAAC,GAAG,CAAC,0BAA0B,EAAE,UAAU,CAAC,yBAAyB,EAAE,eAAe,CAAC,CAAC,CAAC;IAC5F,GAAG,CAAC,GAAG,CAAC,yBAAyB,EAAE,UAAU,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC,CAAC;IAC1F,yFAAyF;IACzF,6FAA6F;IAC7F,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC;IAClE,GAAG,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC,CAAC,EAAE,EAAE,CACrC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE,CAAC,CAAC,CAAC;AACjI,CAAC"}
@@ -30,19 +30,10 @@ export declare function createModelsRoutes(options: {
30
30
  };
31
31
  } | {
32
32
  output: {
33
- runner: string;
34
- models: {
35
- id: string;
36
- label: string;
37
- description: string;
38
- effortLevels?: import('../contract/index.js').EffortLevel[];
39
- }[];
40
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
41
- stale: boolean;
42
- reason?: string;
33
+ error: string;
43
34
  };
44
35
  outputFormat: "json";
45
- status: import("hono/utils/http-status").ContentfulStatusCode;
36
+ status: 400;
46
37
  input: {
47
38
  query: {
48
39
  runner: string | string[];
@@ -63,10 +54,19 @@ export declare function createModelsRoutes(options: {
63
54
  };
64
55
  } | {
65
56
  output: {
66
- error: string;
57
+ runner: string;
58
+ models: {
59
+ id: string;
60
+ label: string;
61
+ description: string;
62
+ effortLevels?: import('../contract/index.js').EffortLevel[];
63
+ }[];
64
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
65
+ stale: boolean;
66
+ reason?: string;
67
67
  };
68
68
  outputFormat: "json";
69
- status: 400;
69
+ status: import("hono/utils/http-status").ContentfulStatusCode;
70
70
  input: {
71
71
  query: {
72
72
  runner: string | string[];
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 409;
21
+ status: 400;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 400;
33
+ status: 409;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;