@open-mercato/cezar 0.18.0-pr1983.4521 → 0.18.0-pr1990.4537

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 (93) hide show
  1. package/dist/automations/paused-work.d.ts +24 -0
  2. package/dist/automations/paused-work.js +61 -0
  3. package/dist/automations/paused-work.js.map +1 -0
  4. package/dist/contract/automations.d.ts +69 -0
  5. package/dist/contract/index.js +15 -0
  6. package/dist/server/server.d.ts +6106 -5974
  7. package/dist/server/server.js +24 -2
  8. package/dist/server/server.js.map +1 -1
  9. package/dist/workflows/run.d.ts +3 -0
  10. package/dist/workflows/run.js +6 -0
  11. package/dist/workflows/run.js.map +1 -1
  12. package/package.json +3 -3
  13. package/web/dist/assets/{agent-task-pickers-DbNIzx20.js → agent-task-pickers-CoUyKYSt.js} +1 -1
  14. package/web/dist/assets/{alert-dialog-4Kna6Hd7.js → alert-dialog-_yjgqjT3.js} +1 -1
  15. package/web/dist/assets/arrow-left-DQGv5KBG.js +1 -0
  16. package/web/dist/assets/{automation-format-CXffJGqm.js → automation-format-CLdySH9y.js} +1 -1
  17. package/web/dist/assets/automations-route-CtlhpzTv.js +1 -0
  18. package/web/dist/assets/{button-wdWSPx_B.js → button-BgD8gvBM.js} +11 -11
  19. package/web/dist/assets/{centered-state-D-wDs7Y1.js → centered-state-DRJzf0HP.js} +1 -1
  20. package/web/dist/assets/check-DtXZDe5i.js +1 -0
  21. package/web/dist/assets/chevron-left-Udi6h2b0.js +1 -0
  22. package/web/dist/assets/chevron-right-VRixI0hJ.js +1 -0
  23. package/web/dist/assets/circle-check-B5vTGXIi.js +1 -0
  24. package/web/dist/assets/{clipboard-DQGL_gUp.js → clipboard-Bvw7HAtC.js} +1 -1
  25. package/web/dist/assets/{collapsible-D7qsttC5.js → collapsible-DobgrGJI.js} +1 -1
  26. package/web/dist/assets/{commit-list-DTMGEn0-.js → commit-list-BVyjVvue.js} +1 -1
  27. package/web/dist/assets/{compare-variants-DqlkpLFs.js → compare-variants-Cak0C2z1.js} +1 -1
  28. package/web/dist/assets/{dashboard-BX4228zB.js → dashboard-VDfs5d3j.js} +2 -2
  29. package/web/dist/assets/{diff-DY-_mmb0.js → diff-i-GlsXcY.js} +2 -2
  30. package/web/dist/assets/{diff-view-oTEcZZ_O.js → diff-view-gm8G49ce.js} +1 -1
  31. package/web/dist/assets/{download-BBtWFvsh.js → download-D2014lsW.js} +1 -1
  32. package/web/dist/assets/facet-filter-Dw7iIhQ5.js +5 -0
  33. package/web/dist/assets/{file-CbWEaOku.js → file-BEyrPCxg.js} +1 -1
  34. package/web/dist/assets/{file-preview-DEKEA-Hk.js → file-preview-zip5EKMG.js} +1 -1
  35. package/web/dist/assets/{git-pull-request-draft-Dwhm6Vhn.js → git-pull-request-draft-Df7kH7EA.js} +1 -1
  36. package/web/dist/assets/git-tab-loading-CH47oigU.js +1 -0
  37. package/web/dist/assets/{git-toolbar-C3vpZJaZ.js → git-toolbar-BbFSycwl.js} +1 -1
  38. package/web/dist/assets/{github-Hshin4wG.js → github-ByH0ANXX.js} +1 -1
  39. package/web/dist/assets/{host-usage-CI_ZlJQu.js → host-usage-DmF7q4hx.js} +1 -1
  40. package/web/dist/assets/{icon-tooltip-CgAWLDxo.js → icon-tooltip-CVFmi6gu.js} +1 -1
  41. package/web/dist/assets/index-BEovRL_E.js +31 -0
  42. package/web/dist/assets/{input-Br4NQpZK.js → input-C0iBw_Su.js} +1 -1
  43. package/web/dist/assets/{layout-cards-fdJa2H62.js → layout-cards-CeR0nv-Q.js} +1 -1
  44. package/web/dist/assets/{lib-w_5wfsBF.js → lib-BYTPx9GK.js} +1 -1
  45. package/web/dist/assets/loader-circle-CuN1mI16.js +1 -0
  46. package/web/dist/assets/{markdown-BfZORc0a.js → markdown-0qNWOIAt.js} +1 -1
  47. package/web/dist/assets/{markdown-G3dvGJao.js → markdown-BQ_2yqQ3.js} +1 -1
  48. package/web/dist/assets/{message-square-Dl-ol3uz.js → message-square-3P8VK4pd.js} +1 -1
  49. package/web/dist/assets/plus-9A4huSkV.js +1 -0
  50. package/web/dist/assets/{project-router-DgQSavhI.js → project-router-BajvtV6L.js} +1 -1
  51. package/web/dist/assets/{queries-BTgOLNTK.js → queries-ZGG5XKqE.js} +1 -1
  52. package/web/dist/assets/{reference-chip-BxUGeHDa.js → reference-chip-fldxZuTW.js} +1 -1
  53. package/web/dist/assets/{repo-git-B47L82oV.js → repo-git-CBNRgOkx.js} +1 -1
  54. package/web/dist/assets/{run-diff-CqXLVaDj.js → run-diff-DdNt3bKJ.js} +1 -1
  55. package/web/dist/assets/{save-ByUa-aAl.js → save-oJ_H02EF.js} +1 -1
  56. package/web/dist/assets/{scroll-within-Dexi68h1.js → scroll-within-CqUBNnKa.js} +1 -1
  57. package/web/dist/assets/{search-x-CLuL49ms.js → search-x-B7J3Djjl.js} +1 -1
  58. package/web/dist/assets/{settings-2-BvalJGW-.js → settings-2-DNED66E9.js} +1 -1
  59. package/web/dist/assets/{skills-Bu12y3Zp.js → skills-DKtRVRg_.js} +1 -1
  60. package/web/dist/assets/{square-FwRsgrg-.js → square-RYNABrOy.js} +1 -1
  61. package/web/dist/assets/{tabs-nC1VLjcX.js → tabs-BkqSX19d.js} +1 -1
  62. package/web/dist/assets/{tag-CteJEZQp.js → tag-C_GLaWd9.js} +1 -1
  63. package/web/dist/assets/{task-commits-CYcqwz-f.js → task-commits-C_sodTFq.js} +1 -1
  64. package/web/dist/assets/{task-graph-CJfTnzUp.js → task-graph-CBzypfRt.js} +1 -1
  65. package/web/dist/assets/{task-notes-DxH2q3Hr.js → task-notes-Bl_l-0FH.js} +1 -1
  66. package/web/dist/assets/task-workspace-D2zcWwZu.js +29 -0
  67. package/web/dist/assets/{terminal-aoRx5eKS.js → terminal-CWtA3vyS.js} +1 -1
  68. package/web/dist/assets/{terminal-drawer-CuGVJS-l.js → terminal-drawer-BiQ_eb4C.js} +2 -2
  69. package/web/dist/assets/{textarea-X_NVmVlZ.js → textarea-JeFDL4N9.js} +1 -1
  70. package/web/dist/assets/{token-metrics-CdH7TbLP.js → token-metrics-3FcC6Ucn.js} +1 -1
  71. package/web/dist/assets/{tooltip-C2bzSwbQ.js → tooltip-D3cW2C88.js} +1 -1
  72. package/web/dist/assets/tracker-BOrs0A5l.js +4 -0
  73. package/web/dist/assets/{triangle-alert-BdMPm9Jb.js → triangle-alert-CyZR6IMB.js} +1 -1
  74. package/web/dist/assets/{upload-DrvICo_K.js → upload-zWSnXoBH.js} +1 -1
  75. package/web/dist/assets/{use-now-Byfm730u.js → use-now-M9WMSdS7.js} +1 -1
  76. package/web/dist/assets/{use-submit-shortcut-B41NLqM4.js → use-submit-shortcut-Cm3_7vym.js} +1 -1
  77. package/web/dist/assets/{workflow-graph-ppdi5xyK.js → workflow-graph-BELaKW79.js} +3 -3
  78. package/web/dist/assets/worktree-lifecycle-operation-B74PTttm.js +18 -0
  79. package/web/dist/index.html +38 -38
  80. package/web/dist/assets/arrow-left-B1Ed0tpu.js +0 -1
  81. package/web/dist/assets/automations-route-ruFF7d59.js +0 -1
  82. package/web/dist/assets/check-DvAMBXJe.js +0 -1
  83. package/web/dist/assets/chevron-left-Dqb1lvgZ.js +0 -1
  84. package/web/dist/assets/chevron-right-DDQuVTY1.js +0 -1
  85. package/web/dist/assets/circle-check-BiVc-j8x.js +0 -1
  86. package/web/dist/assets/facet-filter-B_AsFqFx.js +0 -5
  87. package/web/dist/assets/git-tab-loading-w5Ne43J6.js +0 -1
  88. package/web/dist/assets/index-D-pGbO9R.js +0 -31
  89. package/web/dist/assets/loader-circle-CwT0JWiv.js +0 -1
  90. package/web/dist/assets/plus-BwQyZgNP.js +0 -1
  91. package/web/dist/assets/task-workspace-7NHIdOyT.js +0 -29
  92. package/web/dist/assets/tracker-BYs-vq6-.js +0 -4
  93. package/web/dist/assets/worktree-lifecycle-operation-CvU6xu3u.js +0 -18
@@ -0,0 +1,24 @@
1
+ /**
2
+ * What a paused automation still has in flight (#1980). Pausing stops the timer only; the tasks
3
+ * it already launched are ordinary tasks (spec 2026-09-14), so the cockpit discloses them and an
4
+ * agent under a paused automation's tree may no longer dispatch fresh children.
5
+ */
6
+ import type { AutomationWork } from '../contract/index.js';
7
+ import type { RunRecord } from '../runs/store.ts';
8
+ import { type AutomationDefinition } from './types.ts';
9
+ /** The automation that launched this run on its own, or `undefined`. A by-hand `Run now`
10
+ * (trigger `manual`) is the user's own task, so it is never attributed here. */
11
+ export declare function launchingAutomationId(run: RunRecord): string | undefined;
12
+ /** Every live run in the trees this automation launched, split into pending and active. */
13
+ export declare function automationWork(runs: readonly RunRecord[], automationId: string): AutomationWork;
14
+ /** The queued work `cancel-queued` may stop without touching active work, and what it keeps. */
15
+ export declare function queuedToCancel(runs: readonly RunRecord[], automationId: string): {
16
+ cancel: string[];
17
+ keep: string[];
18
+ };
19
+ /** Does this definition's paused state hold its trees' dispatch? Only a pause the user chose: a
20
+ * `once` schedule pauses itself after firing, and a composer-scheduled task is not a rule. */
21
+ export declare function pauseHoldsDispatch(definition: AutomationDefinition | undefined): boolean;
22
+ /** Why an agent under this run may not dispatch, or `undefined`. Read live on every dispatch,
23
+ * so re-enabling the automation lifts it and a restart cannot lose it. */
24
+ export declare function pausedAutomationHold(runs: readonly RunRecord[], run: RunRecord, isPaused: (automationId: string) => boolean): string | undefined;
@@ -0,0 +1,61 @@
1
+ import { isScheduleAutomation } from './types.js';
2
+ /** The automation that launched this run on its own, or `undefined`. A by-hand `Run now`
3
+ * (trigger `manual`) is the user's own task, so it is never attributed here. */
4
+ export function launchingAutomationId(run) {
5
+ if (run.automationTrigger)
6
+ return run.automationTrigger.trigger === 'manual' ? undefined : run.automationTrigger.automationId;
7
+ return run.automation?.automationId ?? run.automationTracker?.automationId;
8
+ }
9
+ const rootIdOf = (run) => run.dispatch?.rootRunId ?? run.id;
10
+ /** A queued run that already had a session (or a reserved `continue-*` step) resumes work rather
11
+ * than starting it — the same signal `reviveQueuedRun` keys on. */
12
+ function isContinuation(run) {
13
+ return run.steps.some((step) => Boolean(step.sessionId) || step.id.startsWith('continue-'));
14
+ }
15
+ /** Every live run in the trees this automation launched, split into pending and active. */
16
+ export function automationWork(runs, automationId) {
17
+ const roots = new Set(runs.filter((run) => launchingAutomationId(run) === automationId).map((run) => run.id));
18
+ const queued = [];
19
+ const active = [];
20
+ for (const run of runs) {
21
+ if (!roots.has(rootIdOf(run)))
22
+ continue;
23
+ const entry = { id: run.id, title: run.title, status: run.status, ...(run.id === rootIdOf(run) ? {} : { rootRunId: rootIdOf(run) }) };
24
+ if (run.status === 'queued')
25
+ queued.push({ ...entry, kind: isContinuation(run) ? 'continuation' : 'never-started' });
26
+ else if (run.status === 'running' || run.status === 'waiting')
27
+ active.push(entry);
28
+ }
29
+ return { queued, active };
30
+ }
31
+ /** Does any descendant of `runId` still run or wait? Cancelling a run cancels its subtree, so a
32
+ * queued parent with live children is left for an explicit tree cancel in Tasks. */
33
+ function hasActiveDescendant(runs, runId) {
34
+ const children = runs.filter((run) => run.dispatch?.parentRunId === runId);
35
+ return children.some((child) => child.status === 'running' || child.status === 'waiting' || hasActiveDescendant(runs, child.id));
36
+ }
37
+ /** The queued work `cancel-queued` may stop without touching active work, and what it keeps. */
38
+ export function queuedToCancel(runs, automationId) {
39
+ const cancel = [];
40
+ const keep = [];
41
+ for (const run of automationWork(runs, automationId).queued)
42
+ (hasActiveDescendant(runs, run.id) ? keep : cancel).push(run.id);
43
+ return { cancel, keep };
44
+ }
45
+ /** Does this definition's paused state hold its trees' dispatch? Only a pause the user chose: a
46
+ * `once` schedule pauses itself after firing, and a composer-scheduled task is not a rule. */
47
+ export function pauseHoldsDispatch(definition) {
48
+ if (!definition || definition.enabled || definition.deferredStart)
49
+ return false;
50
+ return !(isScheduleAutomation(definition) && definition.schedule.type === 'once');
51
+ }
52
+ /** Why an agent under this run may not dispatch, or `undefined`. Read live on every dispatch,
53
+ * so re-enabling the automation lifts it and a restart cannot lose it. */
54
+ export function pausedAutomationHold(runs, run, isPaused) {
55
+ const root = runs.find((candidate) => candidate.id === rootIdOf(run)) ?? run;
56
+ const automationId = launchingAutomationId(root);
57
+ if (!automationId || !isPaused(automationId))
58
+ return undefined;
59
+ return 'the automation that launched this task tree is paused, so it may not start new tasks. Do not substitute sub-agents or do the delegated work yourself: finish with what exists and report.';
60
+ }
61
+ //# sourceMappingURL=paused-work.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paused-work.js","sourceRoot":"","sources":["../../src/automations/paused-work.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAA6B,MAAM,YAAY,CAAC;AAE7E;iFACiF;AACjF,MAAM,UAAU,qBAAqB,CAAC,GAAc;IAClD,IAAI,GAAG,CAAC,iBAAiB;QAAE,OAAO,GAAG,CAAC,iBAAiB,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,YAAY,CAAC;IAC9H,OAAO,GAAG,CAAC,UAAU,EAAE,YAAY,IAAI,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC;AAC7E,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,GAAc,EAAU,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,IAAI,GAAG,CAAC,EAAE,CAAC;AAE/E;oEACoE;AACpE,SAAS,cAAc,CAAC,GAAc;IACpC,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,cAAc,CAAC,IAA0B,EAAE,YAAoB;IAC7E,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,qBAAqB,CAAC,GAAG,CAAC,KAAK,YA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AC,QAAQ,CAAC,YAAY,CAAC;QAAE,OAAO,SAAS,CAAC;IAC/D,OAAO,2LAA2L,CAAC;AACrM,CAAC"}
@@ -1804,6 +1804,75 @@ export declare const automationRunResponseSchema: z.ZodObject<{
1804
1804
  runId: z.ZodString;
1805
1805
  }, z.core.$strip>;
1806
1806
  export type AutomationRunResponse = z.infer<typeof automationRunResponseSchema>;
1807
+ /** One live run in a tree the automation launched on its own (#1980). `rootRunId` is present
1808
+ * only for a dispatched descendant; `kind` only for queued work. */
1809
+ export declare const automationWorkRunSchema: z.ZodObject<{
1810
+ id: z.ZodString;
1811
+ title: z.ZodString;
1812
+ status: z.ZodEnum<{
1813
+ cancelled: "cancelled";
1814
+ done: "done";
1815
+ failed: "failed";
1816
+ queued: "queued";
1817
+ review: "review";
1818
+ running: "running";
1819
+ waiting: "waiting";
1820
+ }>;
1821
+ rootRunId: z.ZodOptional<z.ZodString>;
1822
+ kind: z.ZodOptional<z.ZodEnum<{
1823
+ continuation: "continuation";
1824
+ "never-started": "never-started";
1825
+ }>>;
1826
+ }, z.core.$strip>;
1827
+ export type AutomationWorkRun = z.infer<typeof automationWorkRunSchema>;
1828
+ /** `GET /automations/:id/work` — what still runs after a pause: queued (pending) and
1829
+ * running/waiting (active) tasks of its trees. A by-hand `Run now` is not listed. */
1830
+ export declare const automationWorkSchema: z.ZodObject<{
1831
+ queued: z.ZodArray<z.ZodObject<{
1832
+ id: z.ZodString;
1833
+ title: z.ZodString;
1834
+ status: z.ZodEnum<{
1835
+ cancelled: "cancelled";
1836
+ done: "done";
1837
+ failed: "failed";
1838
+ queued: "queued";
1839
+ review: "review";
1840
+ running: "running";
1841
+ waiting: "waiting";
1842
+ }>;
1843
+ rootRunId: z.ZodOptional<z.ZodString>;
1844
+ kind: z.ZodOptional<z.ZodEnum<{
1845
+ continuation: "continuation";
1846
+ "never-started": "never-started";
1847
+ }>>;
1848
+ }, z.core.$strip>>;
1849
+ active: z.ZodArray<z.ZodObject<{
1850
+ id: z.ZodString;
1851
+ title: z.ZodString;
1852
+ status: z.ZodEnum<{
1853
+ cancelled: "cancelled";
1854
+ done: "done";
1855
+ failed: "failed";
1856
+ queued: "queued";
1857
+ review: "review";
1858
+ running: "running";
1859
+ waiting: "waiting";
1860
+ }>;
1861
+ rootRunId: z.ZodOptional<z.ZodString>;
1862
+ kind: z.ZodOptional<z.ZodEnum<{
1863
+ continuation: "continuation";
1864
+ "never-started": "never-started";
1865
+ }>>;
1866
+ }, z.core.$strip>>;
1867
+ }, z.core.$strip>;
1868
+ export type AutomationWork = z.infer<typeof automationWorkSchema>;
1869
+ /** `POST /automations/:id/cancel-queued` — the queued runs it cancelled, and those it kept
1870
+ * because cancelling them would also stop their running children. */
1871
+ export declare const automationCancelQueuedResponseSchema: z.ZodObject<{
1872
+ cancelled: z.ZodArray<z.ZodString>;
1873
+ kept: z.ZodArray<z.ZodString>;
1874
+ }, z.core.$strip>;
1875
+ export type AutomationCancelQueuedResponse = z.infer<typeof automationCancelQueuedResponseSchema>;
1807
1876
  /**
1808
1877
  * `GET /workspace/automation-templates` — the other registered projects' automations, as the
1809
1878
  * editor's "From your other projects" palette lists them (spec 2026-09-14 Q7). Read-only.
@@ -3830,6 +3830,18 @@ var automationRetryResponseSchema = z21.object({
3830
3830
  runId: z21.string()
3831
3831
  });
3832
3832
  var automationRunResponseSchema = z21.object({ runId: z21.string() });
3833
+ var automationWorkRunSchema = z21.object({
3834
+ id: z21.string(),
3835
+ title: z21.string(),
3836
+ status: runStatusSchema,
3837
+ rootRunId: z21.string().optional(),
3838
+ kind: z21.enum(["never-started", "continuation"]).optional()
3839
+ });
3840
+ var automationWorkSchema = z21.object({
3841
+ queued: z21.array(automationWorkRunSchema),
3842
+ active: z21.array(automationWorkRunSchema)
3843
+ });
3844
+ var automationCancelQueuedResponseSchema = z21.object({ cancelled: z21.array(z21.string()), kept: z21.array(z21.string()) });
3833
3845
  var automationTemplateSchema = z21.object({
3834
3846
  project: z21.object({ id: z21.string(), name: z21.string() }),
3835
3847
  id: z21.string(),
@@ -4829,6 +4841,7 @@ export {
4829
4841
  attachmentInputSchema,
4830
4842
  attachmentListSchema,
4831
4843
  attachmentRefSchema,
4844
+ automationCancelQueuedResponseSchema,
4832
4845
  automationCheckInputSchema,
4833
4846
  automationCheckQueuedResponseSchema,
4834
4847
  automationCheckSchema,
@@ -4855,6 +4868,8 @@ export {
4855
4868
  automationTaskSchema,
4856
4869
  automationTemplateSchema,
4857
4870
  automationTemplatesResponseSchema,
4871
+ automationWorkRunSchema,
4872
+ automationWorkSchema,
4858
4873
  automationsResponseSchema,
4859
4874
  availableVersionSchema,
4860
4875
  backendCheckSchema,