omnius 1.0.966 → 1.0.968
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/dist/_types/execution/shell-runs.d.ts +1 -1
- package/dist/_types/execution/types.d.ts +18 -0
- package/dist/_types/orchestrator/agenticRunner.d.ts +8 -0
- package/dist/_types/orchestrator/owned-inference-wait.d.ts +27 -9
- package/dist/_types/orchestrator/owned-model-wait.d.ts +10 -0
- package/dist/_types/orchestrator/taskRequirements.d.ts +12 -0
- package/dist/index.js +2 -2
- package/dist/library.js +713 -134
- package/dist/postinstall-daemon.cjs +34 -31
- package/dist/update-worker-runtime.js +133 -76
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -51,7 +51,7 @@ export interface ShellRunSource {
|
|
|
51
51
|
}
|
|
52
52
|
export declare const SHELL_RUN_TAIL_BYTES = 65536;
|
|
53
53
|
export declare const SHELL_RUN_TERMINAL_RETENTION = 32;
|
|
54
|
-
export declare const SHELL_MODEL_GUIDANCE = "Run command:string with required timeout: positive integer milliseconds or null for no deadline. Example: {\"command\":\"pwd\",\"timeout\":null}. Optional stdin:string. No cwd/workdir/yield fields; use cd inside command. Persistent jobs: background_run.";
|
|
54
|
+
export declare const SHELL_MODEL_GUIDANCE = "Run command:string with required timeout: positive integer milliseconds or null for no deadline. Example: {\"command\":\"pwd\",\"timeout\":null}. Optional stdin:string. Use focused_check only when an active source contract requests it. No cwd/workdir/yield fields; use cd inside command. Persistent jobs: background_run.";
|
|
55
55
|
/** Preserve exact intent for a small set of historical spellings. Never
|
|
56
56
|
* supply a deadline, coerce values, or choose between conflicting arguments. */
|
|
57
57
|
export declare function normalizeShellInput(args: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -89,6 +89,15 @@ export interface CommandEvidenceReceipt {
|
|
|
89
89
|
/** Authenticated direct invocation with a framework-identified outcome. */
|
|
90
90
|
orderedOutcome?: "assertion_failure" | "pass";
|
|
91
91
|
};
|
|
92
|
+
/** Executor-observed direct boundary assertion on current workspace bytes. */
|
|
93
|
+
focusedVerification?: {
|
|
94
|
+
requirementId: string;
|
|
95
|
+
implementationPath: string;
|
|
96
|
+
sourceQuote: string;
|
|
97
|
+
sourceSha256: string;
|
|
98
|
+
testedRevision: string;
|
|
99
|
+
outputRef: string;
|
|
100
|
+
};
|
|
92
101
|
/** Exact explicit task artifacts observed by this local command, when the
|
|
93
102
|
* controller can attest the relationship. This is never inferred from
|
|
94
103
|
* display output and never grants verification authority by itself. */
|
|
@@ -271,6 +280,15 @@ export interface ToolInvocationContext {
|
|
|
271
280
|
command: string;
|
|
272
281
|
invocationCwd: string;
|
|
273
282
|
}>;
|
|
283
|
+
/** Host-bound source quote and requirement for a single scoped assertion. */
|
|
284
|
+
focusedVerifier?: Readonly<{
|
|
285
|
+
command: string;
|
|
286
|
+
cwd: string;
|
|
287
|
+
requirementId: string;
|
|
288
|
+
implementationPath: string;
|
|
289
|
+
sourceQuote: string;
|
|
290
|
+
sourceSha256: string;
|
|
291
|
+
}>;
|
|
274
292
|
/** Current runner-owned task context for bounded UI policy requests. Never tool/page input. */
|
|
275
293
|
uiTaskContext?: {
|
|
276
294
|
goal: string;
|
|
@@ -1430,6 +1430,11 @@ export interface AgenticResult {
|
|
|
1430
1430
|
summary: string;
|
|
1431
1431
|
/** The run ended at a saved local pause, with no terminal completion. */
|
|
1432
1432
|
ownedModelBlocker?: Readonly<OwnedModelBlocker>;
|
|
1433
|
+
finalDelivery?: {
|
|
1434
|
+
status: "pending";
|
|
1435
|
+
originalRequestId: string;
|
|
1436
|
+
testsRun: string[];
|
|
1437
|
+
};
|
|
1433
1438
|
runtimeFailure?: TerminalRuntimeFailure;
|
|
1434
1439
|
decisionStopReason?: DecisionStopReason;
|
|
1435
1440
|
/** A user answer owned by the exact task_complete call whose success was
|
|
@@ -2484,6 +2489,7 @@ export declare class AgenticRunner {
|
|
|
2484
2489
|
private _standaloneLocalDraftTaskIsCurrent;
|
|
2485
2490
|
private _standaloneDraftWorkspaceRevision;
|
|
2486
2491
|
private _standaloneDraftVerification;
|
|
2492
|
+
private _verifiedFinalDelivery;
|
|
2487
2493
|
private _retainStandaloneDraftReview;
|
|
2488
2494
|
private _routineCodingCloseout;
|
|
2489
2495
|
private _completionReadinessSnapshot;
|
|
@@ -2663,6 +2669,7 @@ export declare class AgenticRunner {
|
|
|
2663
2669
|
private _persistOwnedModelWait;
|
|
2664
2670
|
private _ownedModelWaitTicket;
|
|
2665
2671
|
private _restorableBlockedModelObservation;
|
|
2672
|
+
private _canObserveFinalResponse;
|
|
2666
2673
|
private _blockOwnedModelWait;
|
|
2667
2674
|
private _ownedModelBlockerSummary;
|
|
2668
2675
|
private _observeOwnedModelWait;
|
|
@@ -3298,6 +3305,7 @@ export declare class AgenticRunner {
|
|
|
3298
3305
|
private _shellCommandFromArgsKey;
|
|
3299
3306
|
private _refreshTodoVerificationFailure;
|
|
3300
3307
|
private _isProjectEditTool;
|
|
3308
|
+
private _taskEditScopeProblem;
|
|
3301
3309
|
private _activeMutationContract;
|
|
3302
3310
|
private _cleanupExpiredMutationLeases;
|
|
3303
3311
|
private _claimMutationWorkerLease;
|
|
@@ -9,6 +9,7 @@ export interface OwnedInferenceWaitOwnerV1 {
|
|
|
9
9
|
}
|
|
10
10
|
export type OwnedInferenceWaitState = "ambiguous" | "retained_queue" | "in_progress" | "completed" | "completed_unavailable" | "unresolved";
|
|
11
11
|
export declare const OWNED_INFERENCE_OBSERVATION_ROUTE_UNAVAILABLE = "original_observation_route_unavailable";
|
|
12
|
+
export declare const OWNED_FINAL_RESPONSE_CONFIRMED_UNAVAILABLE = "original_final_response_confirmed_unavailable";
|
|
12
13
|
export interface OwnedInferenceWaitReceiptV1 {
|
|
13
14
|
readonly schema: "omnius.owned-inference-wait.v1";
|
|
14
15
|
readonly custodyRef: string;
|
|
@@ -36,7 +37,7 @@ export interface OwnedInferenceWaitContext {
|
|
|
36
37
|
owner: OwnedInferenceWaitOwnerV1;
|
|
37
38
|
stateDir: string;
|
|
38
39
|
onObservation?: (receipt: OwnedInferenceWaitReceiptV1) => void;
|
|
39
|
-
/**
|
|
40
|
+
/** Optional host policy. Without a policy the backing filesystem determines store capacity. */
|
|
40
41
|
storageLimits?: {
|
|
41
42
|
maxBytes?: number;
|
|
42
43
|
maxCaptures?: number;
|
|
@@ -72,6 +73,8 @@ export interface OwnedInferenceWaitObserveOptions {
|
|
|
72
73
|
signal?: AbortSignal;
|
|
73
74
|
/** Initial readiness interval for this body-free lookup. The host signal also bounds semantic idle and total time. */
|
|
74
75
|
timeoutMs: number;
|
|
76
|
+
/** Exact response lookup for a verified closeout whose original wire request had no tools. */
|
|
77
|
+
finalDelivery?: boolean;
|
|
75
78
|
assertCurrent?: () => void;
|
|
76
79
|
onObservation?: (receipt: OwnedInferenceWaitReceiptV1) => void;
|
|
77
80
|
/** A native decoded semantic transition under the current original response's issued receipt. */
|
|
@@ -92,8 +95,6 @@ interface Custody {
|
|
|
92
95
|
captureNonce: string;
|
|
93
96
|
}
|
|
94
97
|
type TransportObservationFields = "fetchInvocationCount" | "relayScopeSha256" | "preForwardProofSha256";
|
|
95
|
-
export declare const OWNED_INFERENCE_STORE_MAX_BYTES: number;
|
|
96
|
-
export declare const OWNED_INFERENCE_STORE_MAX_CAPTURES = 2048;
|
|
97
98
|
type OwnerEpoch = Omit<OwnedInferenceWaitOwnerV1, "operationId">;
|
|
98
99
|
/** Credential material is hashed, never persisted. Scope includes client/GPU/queue constraints. */
|
|
99
100
|
export declare function ownedInferenceScopeSha256(url: string, headers: ConstructorParameters<typeof Headers>[0] | undefined): string;
|
|
@@ -107,6 +108,9 @@ declare function captureOwnedInferenceWaitInternal(input: {
|
|
|
107
108
|
body: string;
|
|
108
109
|
scopeSha256: string;
|
|
109
110
|
request: Record<string, unknown>;
|
|
111
|
+
}, storage: {
|
|
112
|
+
root?: string;
|
|
113
|
+
archiveBytes: number;
|
|
110
114
|
}): OwnedInferenceWaitReceiptV1;
|
|
111
115
|
/** Only this pre-fetch capture boundary can issue confirmed non-dispatch failure. */
|
|
112
116
|
export declare function captureOwnedInferenceWait(input: Parameters<typeof captureOwnedInferenceWaitInternal>[0]): OwnedInferenceWaitReceiptV1;
|
|
@@ -118,6 +122,12 @@ export declare function restoreOwnedInferenceWait(input: {
|
|
|
118
122
|
endpoint: string;
|
|
119
123
|
model: string;
|
|
120
124
|
}): OwnedInferenceWaitReceiptV1;
|
|
125
|
+
/** Repack signed legacy envelopes in place. References and all recovery fences stay intact. */
|
|
126
|
+
export declare function compactOwnedInferenceArchives(stateDir: string): Promise<{
|
|
127
|
+
compressedCaptures: number;
|
|
128
|
+
reclaimedBytes: number;
|
|
129
|
+
failedCaptures: number;
|
|
130
|
+
}>;
|
|
121
131
|
/** The caller must re-open its durable successor or terminal record, and
|
|
122
132
|
* exclude the current and retired-but-recoverable checkpoint references. */
|
|
123
133
|
export declare function retireConsumedOwnedInferenceWait(receipt: OwnedInferenceWaitReceiptV1, proof: {
|
|
@@ -145,23 +155,31 @@ export declare function retireLegacyConsumedOwnedInferenceWaits(proof: OwnedInfe
|
|
|
145
155
|
retiredCaptures: number;
|
|
146
156
|
reclaimedBytes: number;
|
|
147
157
|
};
|
|
148
|
-
|
|
149
|
-
* only after authentic terminal reclamation and a fresh writable-capacity
|
|
150
|
-
* probe. The retry still acquires its own normal reservation. */
|
|
151
|
-
export declare function reconcileOwnedInferenceCapacity(stateDir: string, dispatchError: unknown): {
|
|
158
|
+
interface CapacityRecoveryResult {
|
|
152
159
|
canRetry: boolean;
|
|
153
160
|
reclaimedBytes: number;
|
|
154
161
|
chargedBytes: number;
|
|
155
162
|
availableBytes: number;
|
|
156
163
|
reason: "capacity_available" | "still_over_quota" | "storage_unavailable" | "unqualified_failure";
|
|
157
|
-
}
|
|
164
|
+
}
|
|
165
|
+
/** A confirmed request rejected by the logical cap may be considered again
|
|
166
|
+
* only after authentic terminal reclamation and a fresh writable-capacity
|
|
167
|
+
* probe. The retry still acquires its own normal reservation. */
|
|
168
|
+
export declare function reconcileOwnedInferenceCapacity(stateDir: string, dispatchError: unknown): CapacityRecoveryResult;
|
|
169
|
+
/** Repair only a pressure failure issued by a real capture before transport. */
|
|
170
|
+
export declare function recoverOwnedInferenceCapacity(stateDir: string, dispatchError: unknown, options: {
|
|
171
|
+
owner: OwnedInferenceWaitOwnerV1;
|
|
172
|
+
signal?: AbortSignal;
|
|
173
|
+
assertCurrent: () => void;
|
|
174
|
+
}): Promise<CapacityRecoveryResult>;
|
|
158
175
|
export declare function readIssuedOwnedInferenceWait(value: unknown): OwnedInferenceWaitReceiptV1 | undefined;
|
|
159
176
|
export declare function readOwnedInferenceWait(error: unknown): OwnedInferenceWaitReceiptV1 | undefined;
|
|
160
177
|
export declare function attachOwnedInferenceWait(error: unknown, receipt: OwnedInferenceWaitReceiptV1): void;
|
|
178
|
+
export declare function inspectOwnedInferenceWaitObservation(receipt: OwnedInferenceWaitReceiptV1, owner: OwnedInferenceWaitOwnerV1): OwnedInferenceWaitReceiptV1;
|
|
161
179
|
export declare function inspectOwnedInferenceWait(receipt: OwnedInferenceWaitReceiptV1, owner: OwnedInferenceWaitOwnerV1): {
|
|
180
|
+
stateDir: string;
|
|
162
181
|
custody: Custody;
|
|
163
182
|
observation: OwnedInferenceWaitReceiptV1;
|
|
164
|
-
stateDir: string;
|
|
165
183
|
};
|
|
166
184
|
export declare function observeOwnedInferenceWaitReceipt(receipt: OwnedInferenceWaitReceiptV1, observation: Pick<OwnedInferenceWaitReceiptV1, "state" | "reason"> & Partial<Pick<OwnedInferenceWaitReceiptV1, "semanticProgress" | "brokerRequestId" | "retryAfterMs" | TransportObservationFields>>): OwnedInferenceWaitReceiptV1;
|
|
167
185
|
export declare function notifyOwnedInferenceWait(handler: OwnedInferenceWaitContext["onObservation"], receipt: OwnedInferenceWaitReceiptV1): void;
|
|
@@ -5,8 +5,17 @@ export interface OwnedModelBlocker {
|
|
|
5
5
|
disposition: "confirmed_unsent" | "observe_original" | "unresolved";
|
|
6
6
|
checkpointSaved: boolean;
|
|
7
7
|
canResume: boolean;
|
|
8
|
+
phase?: "final_delivery_pending";
|
|
9
|
+
storageCode?: string;
|
|
8
10
|
transportStage?: OwnedInferenceWaitReceiptV1["transportStage"];
|
|
9
11
|
}
|
|
12
|
+
/** Explain the failure observed at the durable store, independently of the Resume action. */
|
|
13
|
+
export declare function describeOwnedModelStorageBlocker(reason: string, storageCode?: string): string | undefined;
|
|
14
|
+
export interface VerifiedFinalDelivery {
|
|
15
|
+
workspaceRevision: string;
|
|
16
|
+
evidenceKey: string;
|
|
17
|
+
testsRun: string[];
|
|
18
|
+
}
|
|
10
19
|
/** Host attempt custody. This is not a provider admission or observer grant. */
|
|
11
20
|
export interface OwnedModelWaitCheckpointV1 {
|
|
12
21
|
schema: "omnius.owned-model-wait-checkpoint.v1";
|
|
@@ -36,6 +45,7 @@ export interface OwnedModelWaitCheckpointV1 {
|
|
|
36
45
|
retiredByInputId?: string;
|
|
37
46
|
startedAtMs: number;
|
|
38
47
|
observationBudgetMs: number;
|
|
48
|
+
finalDelivery?: VerifiedFinalDelivery;
|
|
39
49
|
}
|
|
40
50
|
export declare function isOwnedModelWaitCheckpointV1(value: unknown): value is OwnedModelWaitCheckpointV1;
|
|
41
51
|
export declare function isMatchingOwnedModelDispatchFailure(record: OwnedModelWaitCheckpointV1, receipt: OwnedInferenceDispatchFailureV1): boolean;
|
|
@@ -17,6 +17,18 @@ export type TaskNativeCheckV1 = {
|
|
|
17
17
|
mode: "unchanged" | "untouched";
|
|
18
18
|
evidenceRef: string;
|
|
19
19
|
quote: string;
|
|
20
|
+
} | {
|
|
21
|
+
kind: "edit_allowlist";
|
|
22
|
+
paths: string[];
|
|
23
|
+
evidenceRef: string;
|
|
24
|
+
quote: string;
|
|
25
|
+
} | {
|
|
26
|
+
kind: "focused_verification";
|
|
27
|
+
implementationPath: string;
|
|
28
|
+
evidenceRef: string;
|
|
29
|
+
quote: string;
|
|
30
|
+
suiteCommand: string;
|
|
31
|
+
suiteQuote: string;
|
|
20
32
|
} | {
|
|
21
33
|
kind: "ordered_verification";
|
|
22
34
|
phase: "red" | "green" | "suite";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43035945 bytes
|
|
4
|
+
sha256: 093a27ec16805b99e113bebf7844c9225ad8a145b32ad42d6c2bbabe290d500f
|