@wjarka/cezarion 0.14.2-pr391.606.2 → 0.14.2-pr397.611

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 (51) hide show
  1. package/README.md +9 -1
  2. package/dist/contract/delegation.d.ts +9 -0
  3. package/dist/contract/index.js +4 -2
  4. package/dist/contract/runs.d.ts +18 -0
  5. package/dist/delegation/transport.d.ts +50 -50
  6. package/dist/server/server.d.ts +1187 -1182
  7. package/package.json +3 -3
  8. package/web/dist/assets/{agent-accounts-BP0XBzQP.js → agent-accounts-CAvfK32A.js} +1 -1
  9. package/web/dist/assets/alert-dialog-D462fSLz.js +43 -0
  10. package/web/dist/assets/{collapsible-D7QXWXZq.js → collapsible-CnnwtcIx.js} +1 -1
  11. package/web/dist/assets/{commit-list-AwLNQE91.js → commit-list-Cfa0qNJH.js} +1 -1
  12. package/web/dist/assets/{compare-variants-CBggabVc.js → compare-variants-C0tkqHWA.js} +1 -1
  13. package/web/dist/assets/{diff-C4aSZfrQ2.js → diff-BjLZHKfD2.js} +2 -2
  14. package/web/dist/assets/{diff-controls-74Z0C3ay.js → diff-controls-BytucirW.js} +1 -1
  15. package/web/dist/assets/{diff-stat-B7f-F8cC.js → diff-stat-DpHwISUB.js} +1 -1
  16. package/web/dist/assets/{diff-view-BPKHTL85.js → diff-view-BaYxuP8L.js} +1 -1
  17. package/web/dist/assets/{dropdown-menu-DkzcT6aO.js → dropdown-menu-CaZoVoYa.js} +1 -1
  18. package/web/dist/assets/{git-toolbar-Dntzprrr.js → git-toolbar-BtyvMcSw.js} +1 -1
  19. package/web/dist/assets/github-CgbX4Imb.js +1 -0
  20. package/web/dist/assets/{image-preview-BhuwWeyP.js → image-preview-CFHgISfb.js} +1 -1
  21. package/web/dist/assets/index-CKlTZ-5K.js +7 -0
  22. package/web/dist/assets/{markdown-BssEOroY.js → markdown-CiblnXIm.js} +1 -1
  23. package/web/dist/assets/pill-BCqO0w_C.js +1 -0
  24. package/web/dist/assets/{project-router-a1gx3dfP.js → project-router-CGCiwPxm.js} +1 -1
  25. package/web/dist/assets/{prompt-templates-B4eJ8kQZ.js → prompt-templates-BQthKse9.js} +1 -1
  26. package/web/dist/assets/repo-git-DM50xrWt.js +1 -0
  27. package/web/dist/assets/{run-diff-CHDwMBEQ.js → run-diff-BmyuiI9l.js} +2 -2
  28. package/web/dist/assets/run-header-B_6-8qQH.js +1 -0
  29. package/web/dist/assets/skills-RTULzDBG.js +1 -0
  30. package/web/dist/assets/{tab-link-DRP4FV8D.js → tab-link-CVVHvUYC.js} +1 -1
  31. package/web/dist/assets/{task-changes-CEyHhiK1.js → task-changes-BW5bo3YA.js} +1 -1
  32. package/web/dist/assets/{task-commits-DTdRtZur.js → task-commits-Bz1l5GUY.js} +1 -1
  33. package/web/dist/assets/{task-files-Cr2qKUk2.js → task-files-ETb1FM_W.js} +2 -2
  34. package/web/dist/assets/task-thread-Dh6fWv0Y.js +9 -0
  35. package/web/dist/assets/{textarea-DAHMUyAp.js → textarea-DLwc8cdo.js} +1 -1
  36. package/web/dist/assets/thread-loading-7xLQnmXV.js +1 -0
  37. package/web/dist/assets/{token-metrics-Q0paVq5n.js → token-metrics-HEJ_HYHI.js} +1 -1
  38. package/web/dist/assets/{utils-CG8vWc5K.js → utils-GZNjgma4.js} +1 -1
  39. package/web/dist/assets/workflows-G6kC_597.js +11 -0
  40. package/web/dist/assets/{zoomable-image-BXioMWqb.js → zoomable-image-COhBxkky.js} +1 -1
  41. package/web/dist/index.html +13 -13
  42. package/web/dist/assets/alert-dialog-Bv9zV9w1.js +0 -43
  43. package/web/dist/assets/github-CBYawanT.js +0 -1
  44. package/web/dist/assets/index-BpI26cbM.js +0 -7
  45. package/web/dist/assets/pill-C7gWe96Z.js +0 -1
  46. package/web/dist/assets/repo-git-D8GN9ork.js +0 -1
  47. package/web/dist/assets/run-header-BlqnTQeP.js +0 -1
  48. package/web/dist/assets/skills-CkWBfIfQ.js +0 -1
  49. package/web/dist/assets/task-thread-C8XeQXO4.js +0 -9
  50. package/web/dist/assets/thread-loading-OtvWGq9Y.js +0 -1
  51. package/web/dist/assets/workflows-uDL1z3Qp.js +0 -11
package/README.md CHANGED
@@ -905,13 +905,21 @@ npm run dev # server (API :4321) + Vite dev server, opens the cockpit i
905
905
  npm run dev:server # tsx packages/cezar/src/index.ts — the API server alone
906
906
  npm run dev:web # Vite dev server alone (proxies /api to :4321)
907
907
  npm run build # tsc → packages/cezar/dist/, vite build → packages/cezar/web/dist/, then the pack gate
908
- npm run typecheck # server + web (tsc --noEmit)
908
+ npm run typecheck # refresh server declarations, then check all four workspaces
909
+ npm run typecheck:web # refresh server declarations, then check web sources
909
910
  npm test # vitest — server + cockpit unit suites
910
911
  npm run test:unit # node:test — fast core-module tests
911
912
  npm run test:package # pack/install and exercise the built CLI
912
913
  npm run test:e2e # real-browser cockpit suite (agent-browser)
913
914
  ```
914
915
 
916
+ Both `npm run typecheck:web` and
917
+ `npm run typecheck -w @open-mercato/cezar-web` rebuild server declarations from
918
+ the current checkout before checking web sources. Run `npm ci` in each new
919
+ worktree first. The full `npm run typecheck` starts with the web check, so it
920
+ prepares declarations once before checking the remaining workspaces. Calling
921
+ `tsc --noEmit` directly skips this preparation and can consume stale declarations.
922
+
915
923
  CI runs two duration-balanced Vitest shards alongside the build and package checks.
916
924
  See [CI verification](docs/sdlc/ci.md) for the job graph and local commands.
917
925
 
@@ -883,6 +883,7 @@ export type DelegationState = z.infer<typeof delegationStateSchema>;
883
883
  export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
884
884
  role: z.ZodLiteral<"root">;
885
885
  wait: z.ZodOptional<z.ZodObject<{
886
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
886
887
  phase: z.ZodEnum<{
887
888
  parked: "parked";
888
889
  registered: "registered";
@@ -891,6 +892,14 @@ export declare const runDelegationSummarySchema: z.ZodDiscriminatedUnion<[z.ZodO
891
892
  }, z.core.$strip>>;
892
893
  }, z.core.$strip>, z.ZodObject<{
893
894
  role: z.ZodLiteral<"worker">;
895
+ wait: z.ZodOptional<z.ZodObject<{
896
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
897
+ phase: z.ZodEnum<{
898
+ parked: "parked";
899
+ registered: "registered";
900
+ "wake-pending": "wake-pending";
901
+ }>;
902
+ }, z.core.$strip>>;
894
903
  }, z.core.$strip>, z.ZodObject<{
895
904
  role: z.ZodLiteral<"invalid">;
896
905
  }, z.core.$strip>], "role">;
@@ -214,9 +214,11 @@ var delegationStateSchema = z3.discriminatedUnion("role", [
214
214
  ]);
215
215
  var runDelegationSummarySchema = z3.discriminatedUnion("role", [
216
216
  delegationStateSchema.options[0].pick({ role: true }).strip().extend({
217
- wait: workerWaitSchema.pick({ phase: true }).strip().optional()
217
+ wait: workerWaitSchema.pick({ phase: true, requestIds: true }).strip().optional()
218
+ }),
219
+ delegationStateSchema.options[1].pick({ role: true }).strip().extend({
220
+ wait: workerWaitSchema.pick({ phase: true, requestIds: true }).strip().optional()
218
221
  }),
219
- delegationStateSchema.options[1].pick({ role: true }).strip(),
220
222
  delegationStateSchema.options[2].strip()
221
223
  ]);
222
224
  var workerSpawnRequestSchema = z3.object({
@@ -1325,6 +1325,7 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1325
1325
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1326
1326
  role: z.ZodLiteral<"root">;
1327
1327
  wait: z.ZodOptional<z.ZodObject<{
1328
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1328
1329
  phase: z.ZodEnum<{
1329
1330
  parked: "parked";
1330
1331
  registered: "registered";
@@ -1333,6 +1334,14 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1333
1334
  }, z.core.$strip>>;
1334
1335
  }, z.core.$strip>, z.ZodObject<{
1335
1336
  role: z.ZodLiteral<"worker">;
1337
+ wait: z.ZodOptional<z.ZodObject<{
1338
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1339
+ phase: z.ZodEnum<{
1340
+ parked: "parked";
1341
+ registered: "registered";
1342
+ "wake-pending": "wake-pending";
1343
+ }>;
1344
+ }, z.core.$strip>>;
1336
1345
  }, z.core.$strip>, z.ZodObject<{
1337
1346
  role: z.ZodLiteral<"invalid">;
1338
1347
  }, z.core.$strip>], "role">>;
@@ -1435,6 +1444,7 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
1435
1444
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1436
1445
  role: z.ZodLiteral<"root">;
1437
1446
  wait: z.ZodOptional<z.ZodObject<{
1447
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1438
1448
  phase: z.ZodEnum<{
1439
1449
  parked: "parked";
1440
1450
  registered: "registered";
@@ -1443,6 +1453,14 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
1443
1453
  }, z.core.$strip>>;
1444
1454
  }, z.core.$strip>, z.ZodObject<{
1445
1455
  role: z.ZodLiteral<"worker">;
1456
+ wait: z.ZodOptional<z.ZodObject<{
1457
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1458
+ phase: z.ZodEnum<{
1459
+ parked: "parked";
1460
+ registered: "registered";
1461
+ "wake-pending": "wake-pending";
1462
+ }>;
1463
+ }, z.core.$strip>>;
1446
1464
  }, z.core.$strip>, z.ZodObject<{
1447
1465
  role: z.ZodLiteral<"invalid">;
1448
1466
  }, z.core.$strip>], "role">>;
@@ -286,6 +286,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
286
286
  } & {
287
287
  "/:workerId": {
288
288
  $get: {
289
+ output: {
290
+ error: string;
291
+ code?: "invalid_input" | undefined;
292
+ };
293
+ outputFormat: "json";
294
+ status: 400;
295
+ input: {
296
+ param: {
297
+ workerId: string;
298
+ };
299
+ };
300
+ } | {
289
301
  output: {
290
302
  workerId: string;
291
303
  parentRunId: string;
@@ -362,7 +374,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
362
374
  workerId: string;
363
375
  };
364
376
  };
365
- } | {
377
+ };
378
+ };
379
+ } & {
380
+ "/:workerId/collect": {
381
+ $post: {
366
382
  output: {
367
383
  error: string;
368
384
  code?: "invalid_input" | undefined;
@@ -373,12 +389,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
373
389
  param: {
374
390
  workerId: string;
375
391
  };
392
+ } & {
393
+ json: Record<string, never>;
376
394
  };
377
- };
378
- };
379
- } & {
380
- "/:workerId/collect": {
381
- $post: {
395
+ } | {
382
396
  output: {
383
397
  workerId: string;
384
398
  parentRunId: string;
@@ -480,7 +494,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
480
494
  } & {
481
495
  json: Record<string, never>;
482
496
  };
483
- } | {
497
+ };
498
+ };
499
+ } & {
500
+ "/:workerId/steer": {
501
+ $post: {
484
502
  output: {
485
503
  error: string;
486
504
  code?: "invalid_input" | undefined;
@@ -492,13 +510,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
492
510
  workerId: string;
493
511
  };
494
512
  } & {
495
- json: Record<string, never>;
513
+ json: {
514
+ text: string;
515
+ };
496
516
  };
497
- };
498
- };
499
- } & {
500
- "/:workerId/steer": {
501
- $post: {
517
+ } | {
502
518
  output: {
503
519
  workerId: string;
504
520
  state: "delivered" | "queued";
@@ -514,7 +530,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
514
530
  text: string;
515
531
  };
516
532
  };
517
- } | {
533
+ };
534
+ };
535
+ } & {
536
+ "/:workerId/stop": {
537
+ $post: {
518
538
  output: {
519
539
  error: string;
520
540
  code?: "invalid_input" | undefined;
@@ -526,15 +546,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
526
546
  workerId: string;
527
547
  };
528
548
  } & {
529
- json: {
530
- text: string;
531
- };
549
+ json: Record<string, never>;
532
550
  };
533
- };
534
- };
535
- } & {
536
- "/:workerId/stop": {
537
- $post: {
551
+ } | {
538
552
  output: {
539
553
  workerId: string;
540
554
  state: "stopping" | "terminated";
@@ -548,7 +562,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
548
562
  } & {
549
563
  json: Record<string, never>;
550
564
  };
551
- } | {
565
+ };
566
+ };
567
+ } & {
568
+ "/:workerId/destroy": {
569
+ $post: {
552
570
  output: {
553
571
  error: string;
554
572
  code?: "invalid_input" | undefined;
@@ -562,11 +580,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
562
580
  } & {
563
581
  json: Record<string, never>;
564
582
  };
565
- };
566
- };
567
- } & {
568
- "/:workerId/destroy": {
569
- $post: {
583
+ } | {
570
584
  output: {
571
585
  workerId: string;
572
586
  state: "complete" | "incomplete";
@@ -589,20 +603,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
589
603
  } & {
590
604
  json: Record<string, never>;
591
605
  };
592
- } | {
593
- output: {
594
- error: string;
595
- code?: "invalid_input" | undefined;
596
- };
597
- outputFormat: "json";
598
- status: 400;
599
- input: {
600
- param: {
601
- workerId: string;
602
- };
603
- } & {
604
- json: Record<string, never>;
605
- };
606
606
  } | {
607
607
  output: {
608
608
  workerId: string;
@@ -632,13 +632,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
632
632
  "/:workerId/diff": {
633
633
  $get: {
634
634
  output: {
635
- workerId: string;
636
- baselineSha: string;
637
- diff: string;
638
- truncated: boolean;
635
+ error: string;
636
+ code?: "invalid_input" | undefined;
639
637
  };
640
638
  outputFormat: "json";
641
- status: 200;
639
+ status: 400;
642
640
  input: {
643
641
  param: {
644
642
  workerId: string;
@@ -646,11 +644,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
646
644
  };
647
645
  } | {
648
646
  output: {
649
- error: string;
650
- code?: "invalid_input" | undefined;
647
+ workerId: string;
648
+ baselineSha: string;
649
+ diff: string;
650
+ truncated: boolean;
651
651
  };
652
652
  outputFormat: "json";
653
- status: 400;
653
+ status: 200;
654
654
  input: {
655
655
  param: {
656
656
  workerId: string;