@wjarka/cezarion 0.14.6 → 0.14.7-pr488.741
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 +37 -2
- package/dist/agent-config/model-settings/shared.d.ts +2 -1
- package/dist/agent-config/model-settings/shared.js +1 -1
- package/dist/agent-config/model-settings/shared.js.map +1 -1
- package/dist/ci-wait/client.d.ts +4 -0
- package/dist/ci-wait/client.js +67 -0
- package/dist/ci-wait/client.js.map +1 -0
- package/dist/ci-wait/controller.d.ts +78 -0
- package/dist/ci-wait/controller.js +148 -0
- package/dist/ci-wait/controller.js.map +1 -0
- package/dist/ci-wait/github.d.ts +61 -0
- package/dist/ci-wait/github.js +209 -0
- package/dist/ci-wait/github.js.map +1 -0
- package/dist/ci-wait/injection.d.ts +3 -0
- package/dist/ci-wait/injection.js +26 -0
- package/dist/ci-wait/injection.js.map +1 -0
- package/dist/ci-wait/mcp.d.ts +97 -0
- package/dist/ci-wait/mcp.js +35 -0
- package/dist/ci-wait/mcp.js.map +1 -0
- package/dist/ci-wait/resources.d.ts +7 -0
- package/dist/ci-wait/resources.js +32 -0
- package/dist/ci-wait/resources.js.map +1 -0
- package/dist/ci-wait/supervisor.d.ts +21 -0
- package/dist/ci-wait/supervisor.js +163 -0
- package/dist/ci-wait/supervisor.js.map +1 -0
- package/dist/contract/ci-wait.d.ts +151 -0
- package/dist/contract/conversations.d.ts +105 -0
- package/dist/contract/delegation.d.ts +17 -0
- package/dist/contract/events.d.ts +10 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +1046 -936
- package/dist/contract/runs.d.ts +496 -0
- package/dist/contract/skills.d.ts +99 -0
- package/dist/core/agent-env.js +2 -0
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-runner.d.ts +6 -0
- package/dist/core/agent-runner.js +1 -0
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.js +10 -0
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +5 -1
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.js +3 -1
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/cursor-acp-runner.js +9 -1
- package/dist/core/cursor-acp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.js +6 -2
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-runner.js +7 -1
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/delegation/cli.js +110 -10
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.js +2 -1
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/input.d.ts +7 -0
- package/dist/delegation/input.js +27 -0
- package/dist/delegation/input.js.map +1 -1
- package/dist/delegation/provision.js +4 -1
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/routes.d.ts +78 -0
- package/dist/delegation/routes.js +4 -1
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.d.ts +6 -2
- package/dist/delegation/service.js +113 -9
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +78 -0
- package/dist/runs/delegation-state.d.ts +2 -0
- package/dist/runs/run-index.js +2 -3
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/store.d.ts +534 -3
- package/dist/runs/store.js +186 -6
- package/dist/runs/store.js.map +1 -1
- package/dist/server/server.d.ts +1530 -12
- package/dist/workflows/run.d.ts +39 -1
- package/dist/workflows/run.js +606 -50
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -3
- package/scripts/mock-ci-tool.mjs +53 -0
- package/scripts/mock-claude.mjs +8 -0
- package/scripts/mock-codex-app-server.mjs +212 -0
- package/scripts/mock-cursor-acp.mjs +6 -2
- package/scripts/mock-opencode-serve.mjs +392 -0
- package/scripts/mock-pi-rpc.mjs +7 -0
- package/scripts/pi-ci-wait.mjs +14 -0
- package/web/dist/assets/{agent-accounts-lP_xK83o.js → agent-accounts-DveiLHoy.js} +1 -1
- package/web/dist/assets/{alert-dialog-CmDuefYh.js → alert-dialog-BRmsCA3M.js} +1 -1
- package/web/dist/assets/{collapsible-BqX8REmY.js → collapsible-BWfM2PdZ.js} +1 -1
- package/web/dist/assets/{commit-list-BWvv1H7A.js → commit-list-C-rCgcKm.js} +1 -1
- package/web/dist/assets/{compare-variants-Bg7eLW3z.js → compare-variants-Ccp9IYp-.js} +1 -1
- package/web/dist/assets/{diff-0GBum40Q2.js → diff-BvZErqfg2.js} +2 -2
- package/web/dist/assets/{diff-controls-HwWHHait.js → diff-controls-BFI8ngtw.js} +1 -1
- package/web/dist/assets/{diff-stat-mNkhAc5m.js → diff-stat-CVFxf2Ar.js} +1 -1
- package/web/dist/assets/{diff-view-DW64doDY.js → diff-view-B35r8kQK.js} +1 -1
- package/web/dist/assets/{dropdown-menu-sZjYPcLh.js → dropdown-menu-C_fj6kzP.js} +1 -1
- package/web/dist/assets/{git-toolbar-DBW5EIcY.js → git-toolbar-BaqAvRC1.js} +1 -1
- package/web/dist/assets/{github-CkZ4hWI5.js → github-DIkBazPA.js} +1 -1
- package/web/dist/assets/{image-preview-DZicGNkU.js → image-preview-BBqbaKaq.js} +1 -1
- package/web/dist/assets/{index-DWWI-B9n.js → index-BIae70yp.js} +3 -3
- package/web/dist/assets/index-CXZukB1O.css +1 -0
- package/web/dist/assets/{markdown-AY2K3kIV.js → markdown-kouQNPB6.js} +1 -1
- package/web/dist/assets/{pill-CcJqA1cL.js → pill-mHX_rKXP.js} +1 -1
- package/web/dist/assets/{project-router-SwsXRKXs.js → project-router-Ds9EvxjN.js} +1 -1
- package/web/dist/assets/{prompt-templates-iV2WD2jy.js → prompt-templates-AaKKdIiY.js} +1 -1
- package/web/dist/assets/{repo-git-BW3TOs3U.js → repo-git-6StCwqhj.js} +1 -1
- package/web/dist/assets/{run-diff-DPUNj56q.js → run-diff-fChfUdwr.js} +1 -1
- package/web/dist/assets/run-header-B3ZPhDZr.js +1 -0
- package/web/dist/assets/{run-header-CSaJIGXl.css → run-header-BJQfFL2l.css} +1 -1
- package/web/dist/assets/{skills-Dv8Vwv5D.js → skills-DSWaVvcu.js} +1 -1
- package/web/dist/assets/{tab-link-DSftvkZS.js → tab-link-Db6yDTIQ.js} +1 -1
- package/web/dist/assets/{task-changes-CTCuVls1.js → task-changes-DdmerESW.js} +1 -1
- package/web/dist/assets/{task-commits-weJQ5GSl.js → task-commits-Co-bb1P6.js} +1 -1
- package/web/dist/assets/{task-files-B4bUimY8.js → task-files-B2KASfyL.js} +1 -1
- package/web/dist/assets/{task-thread-BuXrVB9K.js → task-thread-8kGLJO4Q.js} +4 -4
- package/web/dist/assets/task-thread-Dc3wplva.css +1 -0
- package/web/dist/assets/{textarea-CxRdTWlq.js → textarea-Qhdzn_oU.js} +1 -1
- package/web/dist/assets/thread-loading-C6ENzZYk.js +1 -0
- package/web/dist/assets/{token-metrics-Z3UFYbuD.js → token-metrics-BsT6Rqji.js} +1 -1
- package/web/dist/assets/utils-VFstALJW.js +64 -0
- package/web/dist/assets/{workflows-vA27Yi8W.js → workflows-UKoofNFJ.js} +1 -1
- package/web/dist/assets/{zoomable-image-DUE1KFJ0.js → zoomable-image-DpL5gtv4.js} +1 -1
- package/web/dist/index.html +14 -14
- package/web/dist/assets/index-DK0Mkv2m.css +0 -1
- package/web/dist/assets/run-header-DbDluWoV.js +0 -1
- package/web/dist/assets/task-thread-DMRD0IVt.css +0 -1
- package/web/dist/assets/thread-loading-JlP6dUpX.js +0 -1
- package/web/dist/assets/utils-CUnaAifW.js +0 -64
package/dist/workflows/run.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CiWait, type CiWaitRequest } from '../contract/index.js';
|
|
1
2
|
import { type WorkerAccountBinding } from '../delegation/execution-identity.ts';
|
|
2
3
|
import type { DelegationProvisioner } from '../delegation/provision.ts';
|
|
3
4
|
import type { RunnerId } from '../core/agent-runner.ts';
|
|
@@ -255,10 +256,18 @@ export declare class RunManager {
|
|
|
255
256
|
/** Durable monitoring subset. Only the configured number receives the waiting-slot exemption. */
|
|
256
257
|
private readonly monitoring;
|
|
257
258
|
/** Separate from human waiting: these resumes MUST reacquire scheduler capacity. */
|
|
259
|
+
private readonly ciWakeQueuedAt;
|
|
260
|
+
private readonly ciWakeAdmitted;
|
|
261
|
+
private readonly ciWatches;
|
|
262
|
+
private readonly ciRegistrations;
|
|
263
|
+
private readonly ciRetries;
|
|
264
|
+
private readonly ciResources;
|
|
265
|
+
private ciSupervisor;
|
|
258
266
|
private readonly workerWaiting;
|
|
259
267
|
private readonly workerWakeAdmitted;
|
|
260
268
|
private readonly workerWakeQueuedAt;
|
|
261
269
|
private readonly workerWaitTimers;
|
|
270
|
+
private readonly inboxClaimTimers;
|
|
262
271
|
private reconcilingWorkers;
|
|
263
272
|
private recovering;
|
|
264
273
|
private disposed;
|
|
@@ -400,6 +409,15 @@ export declare class RunManager {
|
|
|
400
409
|
private delegationProvisioner?;
|
|
401
410
|
setDelegationProvisioner(provisioner: DelegationProvisioner): () => void;
|
|
402
411
|
private provisionSession;
|
|
412
|
+
/** Provision the same capability and descriptor on every start, Continue and recovered launch. */
|
|
413
|
+
private provisionCiSession;
|
|
414
|
+
/** Trusted capability callbacks supply run identity; the model supplies only a PR and deadline. */
|
|
415
|
+
registerCiWait(runId: string, request: CiWaitRequest, generation: string, capabilitySignal?: AbortSignal): Promise<CiWait>;
|
|
416
|
+
private startCiWatch;
|
|
417
|
+
private retryCiAdmission;
|
|
418
|
+
private parkCiWait;
|
|
419
|
+
private queueCiWake;
|
|
420
|
+
private withdrawCiWait;
|
|
403
421
|
/** Snapshot of the actual active session, never guessed from partial run settings. */
|
|
404
422
|
delegationExecutionSettings(runId: string): DelegationExecutionSettings;
|
|
405
423
|
/**
|
|
@@ -725,8 +743,26 @@ export declare class RunManager {
|
|
|
725
743
|
* results retain attention. Human input starts a fresh completion cycle. */
|
|
726
744
|
private deferParentCompletion;
|
|
727
745
|
registerWorkerWait(parentId: string, request: WorkerWaitRequest): WorkerWait;
|
|
746
|
+
private assertCanRegisterWorkerWait;
|
|
747
|
+
/** An answer already executing in this generation is not an unanswered question.
|
|
748
|
+
* Keep the durable checkpoint at turn-end for crash recovery, and match its exact
|
|
749
|
+
* sequence so it can never hide a newer question. */
|
|
750
|
+
private hasUnansweredHumanAsk;
|
|
728
751
|
/** Both roles can select their own requests without acquiring worker-management authority. */
|
|
729
752
|
registerRequestWait(runId: string, request: RequestWaitRequest): WorkerWait;
|
|
753
|
+
/** A wait wake is only a pointer. Only provider submission/opening prompts own delivery. */
|
|
754
|
+
private providerOwnsInboxInput;
|
|
755
|
+
canClaimInboxInput(runId: string, id: string): boolean;
|
|
756
|
+
/** The service supplies authorized, bounded IDs; claim and flight reservations are synchronous. */
|
|
757
|
+
reserveInboxInputs(runId: string, generation: string, ids: readonly string[]): {
|
|
758
|
+
receiptId: string;
|
|
759
|
+
expiresAt: string;
|
|
760
|
+
inputIds: string[];
|
|
761
|
+
} | undefined;
|
|
762
|
+
acknowledgeInbox(runId: string, generation: string, receiptId: string): 'acknowledged' | 'already-acknowledged';
|
|
763
|
+
releaseInbox(runId: string, generation: string, receiptId: string): 'released';
|
|
764
|
+
/** Expiry is an independent wake source, including after the provider's last turn. */
|
|
765
|
+
private armInboxClaimExpiry;
|
|
730
766
|
/** Accepted conversation input uses the existing scheduler admission for idle recipients. */
|
|
731
767
|
deliverConversationInput(runId: string): void;
|
|
732
768
|
/** Cancel only the wait; persist its settlement before ordinary wake admission. */
|
|
@@ -761,6 +797,8 @@ export declare class RunManager {
|
|
|
761
797
|
private submitAgentInput;
|
|
762
798
|
/** False leaves the durable entry untouched. No human-answer/slash-expansion fallback. */
|
|
763
799
|
private flushAgentInputs;
|
|
800
|
+
private formatAgentInput;
|
|
801
|
+
private agentInputOutcomeText;
|
|
764
802
|
/** Deliver anything `deferMessage` buffered, once the session is live. */
|
|
765
803
|
private flushDeferred;
|
|
766
804
|
/**
|
|
@@ -808,7 +846,7 @@ export declare class RunManager {
|
|
|
808
846
|
},
|
|
809
847
|
/** Restart recovery may discover several interrupted tasks at once. Those
|
|
810
848
|
* continuations are queued; an explicit user Continue remains immediate. */
|
|
811
|
-
deferForCapacity?: boolean): {
|
|
849
|
+
deferForCapacity?: boolean, conversation?: Parameters<RunStore['commitWorkerContinuation']>[3]): {
|
|
812
850
|
ok: boolean;
|
|
813
851
|
error?: string;
|
|
814
852
|
};
|