@wjarka/cezarion 0.14.4-pr455.702 → 0.14.4-pr459.706

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 (48) hide show
  1. package/dist/contract/index.js +3 -0
  2. package/dist/contract/runs.d.ts +3 -2
  3. package/dist/delegation/routes.d.ts +50 -50
  4. package/dist/delegation/transport.d.ts +50 -50
  5. package/dist/server/server.d.ts +1119 -1115
  6. package/dist/server/server.js +6 -5
  7. package/dist/server/server.js.map +1 -1
  8. package/dist/workflows/run.d.ts +4 -0
  9. package/dist/workflows/run.js +34 -11
  10. package/dist/workflows/run.js.map +1 -1
  11. package/package.json +3 -3
  12. package/web/dist/assets/{agent-accounts-DOj8HSjE.js → agent-accounts-4EqNShyp.js} +1 -1
  13. package/web/dist/assets/{alert-dialog-DwX3l_F6.js → alert-dialog-CVF_qvQ8.js} +1 -1
  14. package/web/dist/assets/{collapsible-Cm4ZyeDl.js → collapsible-DVDGHZAE.js} +1 -1
  15. package/web/dist/assets/{commit-list-DfcoDkSs.js → commit-list-BZ35Md1j.js} +1 -1
  16. package/web/dist/assets/{compare-variants-DHj_Z_xd.js → compare-variants-ut8VZ8Wj.js} +1 -1
  17. package/web/dist/assets/{diff-DwO-iLjW2.js → diff-DWmKlqw52.js} +2 -2
  18. package/web/dist/assets/{diff-controls-CB1gIyGz.js → diff-controls-CuqRa-63.js} +1 -1
  19. package/web/dist/assets/{diff-stat-B74duZBH.js → diff-stat-BXriPIds.js} +1 -1
  20. package/web/dist/assets/{diff-view-B7RqVISE.js → diff-view-DLPDcgEV.js} +1 -1
  21. package/web/dist/assets/{dropdown-menu-DTrRi6Tq.js → dropdown-menu-IsTcumXE.js} +1 -1
  22. package/web/dist/assets/{git-toolbar-DPiD3q2A.js → git-toolbar-BjMzETip.js} +1 -1
  23. package/web/dist/assets/{github-CHiHC-Ul.js → github-DtynVepi.js} +1 -1
  24. package/web/dist/assets/{image-preview-BIrCrR_9.js → image-preview-WXKTY8KT.js} +1 -1
  25. package/web/dist/assets/index-DEp9HG5H.js +7 -0
  26. package/web/dist/assets/{markdown-CCLcdhiq.js → markdown-gFxX4dDH.js} +1 -1
  27. package/web/dist/assets/pill-BlaWNkHk.js +1 -0
  28. package/web/dist/assets/{project-router-Co4ydCGP.js → project-router-CX1jLqj-.js} +1 -1
  29. package/web/dist/assets/{prompt-templates-B93O9ZLW.js → prompt-templates-DwdQcfSc.js} +1 -1
  30. package/web/dist/assets/{repo-git-BYJGkDnL.js → repo-git-st70ABeF.js} +1 -1
  31. package/web/dist/assets/{run-diff-XvDCv2j1.js → run-diff-Mfc85irR.js} +1 -1
  32. package/web/dist/assets/run-header-CDO3LV4z.js +1 -0
  33. package/web/dist/assets/{skills-B4P6fUvq.js → skills-DqUqYjYR.js} +1 -1
  34. package/web/dist/assets/{tab-link-BUng-NBH.js → tab-link-DhREnUYE.js} +1 -1
  35. package/web/dist/assets/{task-changes-DkLcWKvN.js → task-changes-BYLff21s.js} +1 -1
  36. package/web/dist/assets/{task-commits-D9bMgMee.js → task-commits-DPwi4Ecw.js} +1 -1
  37. package/web/dist/assets/{task-files-BDJe_ZXh.js → task-files-XZRAVGJj.js} +1 -1
  38. package/web/dist/assets/{task-thread-DGJg9FEr.js → task-thread-g1vc4tKn.js} +6 -6
  39. package/web/dist/assets/{textarea-CxPEK5l-.js → textarea-DCP8bOOf.js} +1 -1
  40. package/web/dist/assets/{thread-loading-Cj2yiYc1.js → thread-loading-D9DbIsIS.js} +1 -1
  41. package/web/dist/assets/{token-metrics-DsVTrin_.js → token-metrics-PSnNTJZF.js} +1 -1
  42. package/web/dist/assets/{utils-xJM80c1H.js → utils-DNvmfH6b.js} +1 -1
  43. package/web/dist/assets/{workflows-VBAvsa8G.js → workflows-BZtzpjzt.js} +1 -1
  44. package/web/dist/assets/{zoomable-image-Bj5ZU9UB.js → zoomable-image-yNqiuVu7.js} +1 -1
  45. package/web/dist/index.html +13 -13
  46. package/web/dist/assets/index-Bff_uxww.js +0 -7
  47. package/web/dist/assets/pill-BaGyQ4aZ.js +0 -1
  48. package/web/dist/assets/run-header-CdjwxiKT.js +0 -1
@@ -1038,6 +1038,9 @@ var runRecordSchema = z9.object({
1038
1038
  workflowDef: workflowDefSchema.optional()
1039
1039
  });
1040
1040
  var apiRunSchema = runRecordSchema.extend({
1041
+ /** Read-only GET /runs/:id verdict: null permits Finish, a string explains refusal.
1042
+ * Absent on lists, stored records and mutation responses; absence is not permission. */
1043
+ finishBlocked: z9.string().nullable().optional(),
1041
1044
  /** Server-resolved Cursor CLI command, including the configured executable. Never persisted. */
1042
1045
  cliResumeCommand: z9.string().optional(),
1043
1046
  usage: processUsageSchema.optional()
@@ -705,8 +705,8 @@ export type RunRecord = z.infer<typeof runRecordSchema>;
705
705
  /**
706
706
  * What `GET /runs` and `GET /runs/:id` answer: the stored record plus host-derived fields.
707
707
  * The live `usage` sample is absent for finished runs and wherever `ps` yields nothing.
708
- * Cursor resume commands use the server executable override. Neither field is persisted
709
- * or attached by mutation routes.
708
+ * Cursor resume commands use the server executable override. Finish eligibility is computed
709
+ * only for detail reads. These fields are never persisted or attached by mutation routes.
710
710
  */
711
711
  export declare const apiRunSchema: z.ZodObject<{
712
712
  id: z.ZodString;
@@ -1276,6 +1276,7 @@ export declare const apiRunSchema: z.ZodObject<{
1276
1276
  }>;
1277
1277
  path: z.ZodOptional<z.ZodString>;
1278
1278
  }, z.core.$strip>>;
1279
+ finishBlocked: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
1280
  cliResumeCommand: z.ZodOptional<z.ZodString>;
1280
1281
  usage: z.ZodOptional<z.ZodObject<{
1281
1282
  cpuPct: z.ZodNumber;
@@ -300,6 +300,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
300
300
  } & {
301
301
  "/:workerId": {
302
302
  $get: {
303
+ output: {
304
+ error: string;
305
+ code?: "invalid_input" | undefined;
306
+ };
307
+ outputFormat: "json";
308
+ status: 400;
309
+ input: {
310
+ param: {
311
+ workerId: string;
312
+ };
313
+ };
314
+ } | {
303
315
  output: {
304
316
  workerId: string;
305
317
  parentRunId: string;
@@ -376,7 +388,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
376
388
  workerId: string;
377
389
  };
378
390
  };
379
- } | {
391
+ };
392
+ };
393
+ } & {
394
+ "/:workerId/collect": {
395
+ $post: {
380
396
  output: {
381
397
  error: string;
382
398
  code?: "invalid_input" | undefined;
@@ -387,12 +403,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
387
403
  param: {
388
404
  workerId: string;
389
405
  };
406
+ } & {
407
+ json: Record<string, never>;
390
408
  };
391
- };
392
- };
393
- } & {
394
- "/:workerId/collect": {
395
- $post: {
409
+ } | {
396
410
  output: {
397
411
  workerId: string;
398
412
  parentRunId: string;
@@ -494,7 +508,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
494
508
  } & {
495
509
  json: Record<string, never>;
496
510
  };
497
- } | {
511
+ };
512
+ };
513
+ } & {
514
+ "/:workerId/steer": {
515
+ $post: {
498
516
  output: {
499
517
  error: string;
500
518
  code?: "invalid_input" | undefined;
@@ -506,13 +524,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
506
524
  workerId: string;
507
525
  };
508
526
  } & {
509
- json: Record<string, never>;
527
+ json: {
528
+ text: string;
529
+ };
510
530
  };
511
- };
512
- };
513
- } & {
514
- "/:workerId/steer": {
515
- $post: {
531
+ } | {
516
532
  output: {
517
533
  workerId: string;
518
534
  state: "delivered" | "queued";
@@ -528,7 +544,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
528
544
  text: string;
529
545
  };
530
546
  };
531
- } | {
547
+ };
548
+ };
549
+ } & {
550
+ "/:workerId/stop": {
551
+ $post: {
532
552
  output: {
533
553
  error: string;
534
554
  code?: "invalid_input" | undefined;
@@ -540,15 +560,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
540
560
  workerId: string;
541
561
  };
542
562
  } & {
543
- json: {
544
- text: string;
545
- };
563
+ json: Record<string, never>;
546
564
  };
547
- };
548
- };
549
- } & {
550
- "/:workerId/stop": {
551
- $post: {
565
+ } | {
552
566
  output: {
553
567
  workerId: string;
554
568
  state: "stopping" | "terminated";
@@ -562,7 +576,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
562
576
  } & {
563
577
  json: Record<string, never>;
564
578
  };
565
- } | {
579
+ };
580
+ };
581
+ } & {
582
+ "/:workerId/destroy": {
583
+ $post: {
566
584
  output: {
567
585
  error: string;
568
586
  code?: "invalid_input" | undefined;
@@ -576,11 +594,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
576
594
  } & {
577
595
  json: Record<string, never>;
578
596
  };
579
- };
580
- };
581
- } & {
582
- "/:workerId/destroy": {
583
- $post: {
597
+ } | {
584
598
  output: {
585
599
  workerId: string;
586
600
  state: "complete" | "incomplete";
@@ -603,20 +617,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
603
617
  } & {
604
618
  json: Record<string, never>;
605
619
  };
606
- } | {
607
- output: {
608
- error: string;
609
- code?: "invalid_input" | undefined;
610
- };
611
- outputFormat: "json";
612
- status: 400;
613
- input: {
614
- param: {
615
- workerId: string;
616
- };
617
- } & {
618
- json: Record<string, never>;
619
- };
620
620
  } | {
621
621
  output: {
622
622
  workerId: string;
@@ -646,13 +646,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
646
646
  "/:workerId/diff": {
647
647
  $get: {
648
648
  output: {
649
- workerId: string;
650
- baselineSha: string;
651
- diff: string;
652
- truncated: boolean;
649
+ error: string;
650
+ code?: "invalid_input" | undefined;
653
651
  };
654
652
  outputFormat: "json";
655
- status: 200;
653
+ status: 400;
656
654
  input: {
657
655
  param: {
658
656
  workerId: string;
@@ -660,11 +658,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
660
658
  };
661
659
  } | {
662
660
  output: {
663
- error: string;
664
- code?: "invalid_input" | undefined;
661
+ workerId: string;
662
+ baselineSha: string;
663
+ diff: string;
664
+ truncated: boolean;
665
665
  };
666
666
  outputFormat: "json";
667
- status: 400;
667
+ status: 200;
668
668
  input: {
669
669
  param: {
670
670
  workerId: string;
@@ -286,18 +286,6 @@ 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
- } | {
301
289
  output: {
302
290
  workerId: string;
303
291
  parentRunId: string;
@@ -374,11 +362,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
374
362
  workerId: string;
375
363
  };
376
364
  };
377
- };
378
- };
379
- } & {
380
- "/:workerId/collect": {
381
- $post: {
365
+ } | {
382
366
  output: {
383
367
  error: string;
384
368
  code?: "invalid_input" | undefined;
@@ -389,10 +373,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
389
373
  param: {
390
374
  workerId: string;
391
375
  };
392
- } & {
393
- json: Record<string, never>;
394
376
  };
395
- } | {
377
+ };
378
+ };
379
+ } & {
380
+ "/:workerId/collect": {
381
+ $post: {
396
382
  output: {
397
383
  workerId: string;
398
384
  parentRunId: string;
@@ -494,11 +480,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
494
480
  } & {
495
481
  json: Record<string, never>;
496
482
  };
497
- };
498
- };
499
- } & {
500
- "/:workerId/steer": {
501
- $post: {
483
+ } | {
502
484
  output: {
503
485
  error: string;
504
486
  code?: "invalid_input" | undefined;
@@ -510,11 +492,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
510
492
  workerId: string;
511
493
  };
512
494
  } & {
513
- json: {
514
- text: string;
515
- };
495
+ json: Record<string, never>;
516
496
  };
517
- } | {
497
+ };
498
+ };
499
+ } & {
500
+ "/:workerId/steer": {
501
+ $post: {
518
502
  output: {
519
503
  workerId: string;
520
504
  state: "delivered" | "queued";
@@ -530,11 +514,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
530
514
  text: string;
531
515
  };
532
516
  };
533
- };
534
- };
535
- } & {
536
- "/:workerId/stop": {
537
- $post: {
517
+ } | {
538
518
  output: {
539
519
  error: string;
540
520
  code?: "invalid_input" | undefined;
@@ -546,9 +526,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
546
526
  workerId: string;
547
527
  };
548
528
  } & {
549
- json: Record<string, never>;
529
+ json: {
530
+ text: string;
531
+ };
550
532
  };
551
- } | {
533
+ };
534
+ };
535
+ } & {
536
+ "/:workerId/stop": {
537
+ $post: {
552
538
  output: {
553
539
  workerId: string;
554
540
  state: "stopping" | "terminated";
@@ -562,11 +548,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
562
548
  } & {
563
549
  json: Record<string, never>;
564
550
  };
565
- };
566
- };
567
- } & {
568
- "/:workerId/destroy": {
569
- $post: {
551
+ } | {
570
552
  output: {
571
553
  error: string;
572
554
  code?: "invalid_input" | undefined;
@@ -580,7 +562,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
580
562
  } & {
581
563
  json: Record<string, never>;
582
564
  };
583
- } | {
565
+ };
566
+ };
567
+ } & {
568
+ "/:workerId/destroy": {
569
+ $post: {
584
570
  output: {
585
571
  workerId: string;
586
572
  state: "complete" | "incomplete";
@@ -603,6 +589,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
603
589
  } & {
604
590
  json: Record<string, never>;
605
591
  };
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,11 +632,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
632
632
  "/:workerId/diff": {
633
633
  $get: {
634
634
  output: {
635
- error: string;
636
- code?: "invalid_input" | undefined;
635
+ workerId: string;
636
+ baselineSha: string;
637
+ diff: string;
638
+ truncated: boolean;
637
639
  };
638
640
  outputFormat: "json";
639
- status: 400;
641
+ status: 200;
640
642
  input: {
641
643
  param: {
642
644
  workerId: string;
@@ -644,13 +646,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
644
646
  };
645
647
  } | {
646
648
  output: {
647
- workerId: string;
648
- baselineSha: string;
649
- diff: string;
650
- truncated: boolean;
649
+ error: string;
650
+ code?: "invalid_input" | undefined;
651
651
  };
652
652
  outputFormat: "json";
653
- status: 200;
653
+ status: 400;
654
654
  input: {
655
655
  param: {
656
656
  workerId: string;