@wjarka/cezarion 0.13.5-pr376.573 → 0.13.5-pr376.574
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.
- package/README.md +1 -1
- package/dist/contract/index.js +2 -0
- package/dist/contract/runs.d.ts +5 -3
- package/dist/delegation/provision.js +1 -1
- package/dist/delegation/provision.js.map +1 -1
- package/dist/server/server.d.ts +28 -9
- package/dist/server/server.js +3 -1
- package/dist/server/server.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{agent-accounts-Cxtuya3A.js → agent-accounts-MT-jtwOU.js} +1 -1
- package/web/dist/assets/{alert-dialog-DOZM0zjL.js → alert-dialog-KUiPIBmb.js} +1 -1
- package/web/dist/assets/{collapsible-DDQ8OoKD.js → collapsible-CkSaP6_n.js} +1 -1
- package/web/dist/assets/{commit-list-ChMFn-eU.js → commit-list-BUstdSh-.js} +1 -1
- package/web/dist/assets/{compare-variants-D30MM4nJ.js → compare-variants-CZT46X6N.js} +1 -1
- package/web/dist/assets/{diff-BqgUPeDz2.js → diff-C4aSZfrQ2.js} +2 -2
- package/web/dist/assets/{diff-controls-C3A83P60.js → diff-controls-D5b8ocJ0.js} +1 -1
- package/web/dist/assets/{diff-stat-B22UACI8.js → diff-stat-B7f-F8cC.js} +1 -1
- package/web/dist/assets/{diff-view-DkUXS7j2.js → diff-view-BPKHTL85.js} +1 -1
- package/web/dist/assets/{dropdown-menu-Cy4CaNVF.js → dropdown-menu-xYcDecNM.js} +1 -1
- package/web/dist/assets/{git-toolbar-DFodbb67.js → git-toolbar-C4zVVSpl.js} +1 -1
- package/web/dist/assets/{github-Dl8aHDSi.js → github-CvoBxI3I.js} +1 -1
- package/web/dist/assets/{image-preview-BUfHQUPY.js → image-preview-BhuwWeyP.js} +1 -1
- package/web/dist/assets/{index-DaaPskK1.js → index-Dy0U2xHI.js} +3 -3
- package/web/dist/assets/{markdown-CL8TDk1c.js → markdown-CIi0LXvU.js} +1 -1
- package/web/dist/assets/{pill-BoKhhXAG.js → pill-BmEVtSWL.js} +1 -1
- package/web/dist/assets/{project-router-CkUMQt8C.js → project-router-BOglfKgF.js} +1 -1
- package/web/dist/assets/{prompt-templates-C85Cfa3e.js → prompt-templates-ByGhlTfK.js} +1 -1
- package/web/dist/assets/{repo-git-DBgY4Wx3.js → repo-git-DXLNv3Vn.js} +1 -1
- package/web/dist/assets/{run-diff-Di8XruXs.js → run-diff-DEVs-zV1.js} +1 -1
- package/web/dist/assets/{run-header-WEdjA5_P.js → run-header-1bJf1iVi.js} +1 -1
- package/web/dist/assets/{skills-7gAMNbX9.js → skills-COTm-cfB.js} +1 -1
- package/web/dist/assets/{tab-link-BOk00_g2.js → tab-link-ChqeHA8K.js} +1 -1
- package/web/dist/assets/{task-changes-DyiW-x3Y.js → task-changes-DR3jTgC0.js} +1 -1
- package/web/dist/assets/{task-commits-CrrCU9w-.js → task-commits-Cs8Qz4aZ.js} +1 -1
- package/web/dist/assets/{task-files-DdmYv2U0.js → task-files-DT_IPxHT.js} +1 -1
- package/web/dist/assets/{task-thread--4KwgbDg.js → task-thread-DuMGwkH8.js} +1 -1
- package/web/dist/assets/{textarea-THjzwaIm.js → textarea-DdKiIORK.js} +1 -1
- package/web/dist/assets/{thread-loading-BDcNsKX_.js → thread-loading-NLtIo_pi.js} +1 -1
- package/web/dist/assets/{token-metrics-CI80f432.js → token-metrics-DDvhrHmK.js} +1 -1
- package/web/dist/assets/{utils-m4NWSvZs.js → utils-CG8vWc5K.js} +1 -1
- package/web/dist/assets/{workflows-BE7KLZih.js → workflows-CrZ1s6EX.js} +1 -1
- package/web/dist/assets/{zoomable-image-AY1daIRu.js → zoomable-image-BXioMWqb.js} +1 -1
- package/web/dist/index.html +13 -13
package/README.md
CHANGED
|
@@ -494,7 +494,7 @@ cez worker destroy <worker-id>
|
|
|
494
494
|
|
|
495
495
|
Commands return bounded JSON and a nonzero exit on failure or incomplete cleanup. Spawn requires a committed baseline (`parent-head` or an explicit ref) and pins its SHA at acceptance; dirty parent edits are excluded. Optional `--context '<text>'` or `--context-file <UTF-8-file>` supplies selected context, not the parent's conversation. The two flags are mutually exclusive, and combined task/context text is limited to 100,000 characters. The API also accepts up to 32 pinned-baseline file or parent-attachment references, with at most 8 MiB of copied attachments. Inspect reports worker-local input locations. Reuse a request ID only with the same task, baseline, context, backend, model and effort when retrying a lost response. There are at most 32 accepted creations per parent, counting destroyed workers, and 32 undelivered steering messages per worker.
|
|
496
496
|
|
|
497
|
-
Omitted `--backend` inherits the parent's active backend. Same-backend workers inherit omitted model/account/effort; `--backend <claude|codex|opencode|pi>` selecting another backend resolves that backend's project/default account and model without forwarding another provider's settings. `--model <model>` selects a supported model, subject to existing locks. `--effort <low|medium|high|xhigh|max>` pins reasoning effort on same-backend and mixed-backend spawn; omitted `--effort` still inherits the parent pin on same-backend spawn and drops it on mixed-backend spawn. Accepted identity and grants remain fixed across queuing, restart and Continue, including explicit empty grants. Changing or deleting an account registry entry does not rebind a worker. Missing accepted identity evidence or account homes, incompatible Claude state-file layouts, and conflicting later model locks refuse execution explicitly. Credentials and vendor configuration are never copied; each worker receives its own delegation credential, and unspecified native models stay unspecified.
|
|
497
|
+
Omitted `--backend` inherits the parent's active backend. Same-backend workers inherit omitted model/account/effort; `--backend <claude|codex|opencode|pi|cursor>` selecting another backend resolves that backend's project/default account and model without forwarding another provider's settings. `--model <model>` selects a supported model, subject to existing locks. `--effort <low|medium|high|xhigh|max>` pins reasoning effort on same-backend and mixed-backend spawn; omitted `--effort` still inherits the parent pin on same-backend spawn and drops it on mixed-backend spawn. Accepted identity and grants remain fixed across queuing, restart and Continue, including explicit empty grants. Changing or deleting an account registry entry does not rebind a worker. Missing accepted identity evidence or account homes, incompatible Claude state-file layouts, and conflicting later model locks refuse execution explicitly. Credentials and vendor configuration are never copied; each worker receives its own delegation credential, and unspecified native models stay unspecified.
|
|
498
498
|
|
|
499
499
|
Wait registers immediately. End the parent turn to release scheduler capacity; Cezar resumes it on a selected settled outcome or the finite deadline. `any` is the default, `one` requires exactly one worker, and `all` waits for every selected worker. Review, completion, failure, cancellation with proven termination, and destruction are outcomes. Timeout defaults to 600 seconds (1–1800 accepted). `cancel-wait` is idempotent for the retained wait ID and cannot cancel a newer wait. Timeout and wait cancellation report partial outcomes and unresolved workers, never cancel workers, and never automatically re-wait. Steering is attributed agent input and cannot answer a pending human question.
|
|
500
500
|
|
package/dist/contract/index.js
CHANGED
|
@@ -1035,6 +1035,8 @@ var runRecordSchema = z9.object({
|
|
|
1035
1035
|
workflowDef: workflowDefSchema.optional()
|
|
1036
1036
|
});
|
|
1037
1037
|
var apiRunSchema = runRecordSchema.extend({
|
|
1038
|
+
/** Server-resolved Cursor CLI command, including the configured executable. Never persisted. */
|
|
1039
|
+
cliResumeCommand: z9.string().optional(),
|
|
1038
1040
|
usage: processUsageSchema.optional()
|
|
1039
1041
|
});
|
|
1040
1042
|
var runIndexEntrySchema = z9.object({
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -702,9 +702,10 @@ export declare const runRecordSchema: z.ZodObject<{
|
|
|
702
702
|
}, z.core.$strip>;
|
|
703
703
|
export type RunRecord = z.infer<typeof runRecordSchema>;
|
|
704
704
|
/**
|
|
705
|
-
* What `GET /runs` and `GET /runs/:id` answer: the stored record plus
|
|
706
|
-
*
|
|
707
|
-
*
|
|
705
|
+
* What `GET /runs` and `GET /runs/:id` answer: the stored record plus host-derived fields.
|
|
706
|
+
* The live `usage` sample is absent for finished runs and wherever `ps` yields nothing.
|
|
707
|
+
* Cursor resume commands use the server executable override. Neither field is persisted
|
|
708
|
+
* or attached by mutation routes.
|
|
708
709
|
*/
|
|
709
710
|
export declare const apiRunSchema: z.ZodObject<{
|
|
710
711
|
id: z.ZodString;
|
|
@@ -1273,6 +1274,7 @@ export declare const apiRunSchema: z.ZodObject<{
|
|
|
1273
1274
|
}>;
|
|
1274
1275
|
path: z.ZodOptional<z.ZodString>;
|
|
1275
1276
|
}, z.core.$strip>>;
|
|
1277
|
+
cliResumeCommand: z.ZodOptional<z.ZodString>;
|
|
1276
1278
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1277
1279
|
cpuPct: z.ZodNumber;
|
|
1278
1280
|
rssBytes: z.ZodNumber;
|
|
@@ -63,7 +63,7 @@ export function provisionDelegationSession(options) {
|
|
|
63
63
|
conversationGuidance,
|
|
64
64
|
`Use ${invocation} spawn --baseline parent-head --request-id <UUID> '<task>' (or an explicit committed ref).`,
|
|
65
65
|
`Reuse the request ID only for the exact same task/baseline/context/backend/model/effort on a retry.`,
|
|
66
|
-
`Optional spawn flags: --context '<selected text>' or --context-file <local-UTF-8-file> (mutually exclusive), --backend <claude|codex|opencode|pi>, --model <model>, --effort <low|medium|high|xhigh|max>.`,
|
|
66
|
+
`Optional spawn flags: --context '<selected text>' or --context-file <local-UTF-8-file> (mutually exclusive), --backend <claude|codex|opencode|pi|cursor>, --model <model>, --effort <low|medium|high|xhigh|max>.`,
|
|
67
67
|
`Example: spawn --baseline parent-head --request-id <UUID> --backend codex --context 'Inspect only the parser' 'Review parser'.`,
|
|
68
68
|
`Task plus context text is limited to 100,000 characters.`,
|
|
69
69
|
`The API also accepts up to 32 baseline-file or parent-attachment references, with at most 8 MiB of copied attachments.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision.js","sourceRoot":"","sources":["../../src/delegation/provision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAA0B,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM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AM,EAAE,CAAC;YAAE,MAAM,EAAE,CAAC;QAC/D,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7D,MAAM,SAAS,EAAE,KAAK,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { Hono } from 'hono';
|
|
|
5
5
|
import { type ServerType } from '@hono/node-server';
|
|
6
6
|
import { ProviderAuthService, type ProviderId } from '../core/provider-auth.ts';
|
|
7
7
|
import { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
|
|
8
|
-
import { currentUsage } from '../core/process-usage.ts';
|
|
9
8
|
import { SkillsUpdateService } from '../skills-update.ts';
|
|
10
9
|
import type { RunStore } from '../runs/store.ts';
|
|
11
10
|
import { type RunManager } from '../workflows/run.ts';
|
|
@@ -5670,6 +5669,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5670
5669
|
images?: string[] | undefined;
|
|
5671
5670
|
createdAt: string;
|
|
5672
5671
|
}[] | undefined;
|
|
5672
|
+
stopping?: boolean | undefined;
|
|
5673
5673
|
continuationMessage?: {
|
|
5674
5674
|
id: string;
|
|
5675
5675
|
text: string;
|
|
@@ -5907,7 +5907,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5907
5907
|
githubUrl: string;
|
|
5908
5908
|
} | undefined;
|
|
5909
5909
|
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
5910
|
-
stopping?: boolean | undefined;
|
|
5911
5910
|
activity?: "monitoring" | undefined;
|
|
5912
5911
|
hasPendingHumanAsk?: boolean | undefined;
|
|
5913
5912
|
monitoringWakeAt?: string | undefined;
|
|
@@ -5995,7 +5994,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
5995
5994
|
source: "built-in" | "file";
|
|
5996
5995
|
path?: string | undefined;
|
|
5997
5996
|
} | undefined;
|
|
5998
|
-
|
|
5997
|
+
cliResumeCommand?: string | undefined;
|
|
5998
|
+
usage?: {
|
|
5999
|
+
cpuPct: number;
|
|
6000
|
+
rssBytes: number;
|
|
6001
|
+
procCount: number;
|
|
6002
|
+
} | undefined;
|
|
5999
6003
|
}[];
|
|
6000
6004
|
outputFormat: "json";
|
|
6001
6005
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -8688,6 +8692,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8688
8692
|
images?: string[] | undefined;
|
|
8689
8693
|
createdAt: string;
|
|
8690
8694
|
}[] | undefined;
|
|
8695
|
+
stopping?: boolean | undefined;
|
|
8691
8696
|
continuationMessage?: {
|
|
8692
8697
|
id: string;
|
|
8693
8698
|
text: string;
|
|
@@ -8925,7 +8930,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8925
8930
|
githubUrl: string;
|
|
8926
8931
|
} | undefined;
|
|
8927
8932
|
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
8928
|
-
stopping?: boolean | undefined;
|
|
8929
8933
|
activity?: "monitoring" | undefined;
|
|
8930
8934
|
hasPendingHumanAsk?: boolean | undefined;
|
|
8931
8935
|
monitoringWakeAt?: string | undefined;
|
|
@@ -9013,7 +9017,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
9013
9017
|
source: "built-in" | "file";
|
|
9014
9018
|
path?: string | undefined;
|
|
9015
9019
|
} | undefined;
|
|
9016
|
-
|
|
9020
|
+
cliResumeCommand?: string | undefined;
|
|
9021
|
+
usage?: {
|
|
9022
|
+
cpuPct: number;
|
|
9023
|
+
rssBytes: number;
|
|
9024
|
+
procCount: number;
|
|
9025
|
+
} | undefined;
|
|
9017
9026
|
};
|
|
9018
9027
|
outputFormat: "json";
|
|
9019
9028
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -14237,6 +14246,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14237
14246
|
images?: string[] | undefined;
|
|
14238
14247
|
createdAt: string;
|
|
14239
14248
|
}[] | undefined;
|
|
14249
|
+
stopping?: boolean | undefined;
|
|
14240
14250
|
continuationMessage?: {
|
|
14241
14251
|
id: string;
|
|
14242
14252
|
text: string;
|
|
@@ -14474,7 +14484,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14474
14484
|
githubUrl: string;
|
|
14475
14485
|
} | undefined;
|
|
14476
14486
|
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
14477
|
-
stopping?: boolean | undefined;
|
|
14478
14487
|
activity?: "monitoring" | undefined;
|
|
14479
14488
|
hasPendingHumanAsk?: boolean | undefined;
|
|
14480
14489
|
monitoringWakeAt?: string | undefined;
|
|
@@ -14562,7 +14571,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
14562
14571
|
source: "built-in" | "file";
|
|
14563
14572
|
path?: string | undefined;
|
|
14564
14573
|
} | undefined;
|
|
14565
|
-
|
|
14574
|
+
cliResumeCommand?: string | undefined;
|
|
14575
|
+
usage?: {
|
|
14576
|
+
cpuPct: number;
|
|
14577
|
+
rssBytes: number;
|
|
14578
|
+
procCount: number;
|
|
14579
|
+
} | undefined;
|
|
14566
14580
|
}[];
|
|
14567
14581
|
outputFormat: "json";
|
|
14568
14582
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -17255,6 +17269,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17255
17269
|
images?: string[] | undefined;
|
|
17256
17270
|
createdAt: string;
|
|
17257
17271
|
}[] | undefined;
|
|
17272
|
+
stopping?: boolean | undefined;
|
|
17258
17273
|
continuationMessage?: {
|
|
17259
17274
|
id: string;
|
|
17260
17275
|
text: string;
|
|
@@ -17492,7 +17507,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17492
17507
|
githubUrl: string;
|
|
17493
17508
|
} | undefined;
|
|
17494
17509
|
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
17495
|
-
stopping?: boolean | undefined;
|
|
17496
17510
|
activity?: "monitoring" | undefined;
|
|
17497
17511
|
hasPendingHumanAsk?: boolean | undefined;
|
|
17498
17512
|
monitoringWakeAt?: string | undefined;
|
|
@@ -17580,7 +17594,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
17580
17594
|
source: "built-in" | "file";
|
|
17581
17595
|
path?: string | undefined;
|
|
17582
17596
|
} | undefined;
|
|
17583
|
-
|
|
17597
|
+
cliResumeCommand?: string | undefined;
|
|
17598
|
+
usage?: {
|
|
17599
|
+
cpuPct: number;
|
|
17600
|
+
rssBytes: number;
|
|
17601
|
+
procCount: number;
|
|
17602
|
+
} | undefined;
|
|
17584
17603
|
};
|
|
17585
17604
|
outputFormat: "json";
|
|
17586
17605
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
package/dist/server/server.js
CHANGED
|
@@ -3015,7 +3015,9 @@ export function createApp(deps) {
|
|
|
3015
3015
|
// nothing. The stored record itself is never touched.
|
|
3016
3016
|
const withUsage = (run) => {
|
|
3017
3017
|
const usage = currentUsage(run.id);
|
|
3018
|
-
|
|
3018
|
+
const sessionId = [...run.steps].reverse().find(step => step.sessionId)?.sessionId;
|
|
3019
|
+
const command = run.runner === 'cursor' && sessionId ? resumeCommand('cursor', sessionId) : null;
|
|
3020
|
+
return { ...run, ...(usage ? { usage } : {}), ...(command ? { cliResumeCommand: command } : {}) };
|
|
3019
3021
|
};
|
|
3020
3022
|
// The inbox half of a composer launch (#374). Since the cockpit's "▶ Run"
|
|
3021
3023
|
// prefills `/new` instead of calling POST /api/todos/:id/start (never launch
|