omnius 1.0.955 → 1.0.957
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/native-child-evidence.d.ts +44 -0
- package/dist/_types/execution/types.d.ts +4 -0
- package/dist/_types/memory/memorySourceResolver.d.ts +2 -0
- package/dist/_types/orchestrator/agenticRunner.d.ts +20 -0
- package/dist/_types/orchestrator/model-facing-metadata.d.ts +113 -0
- package/dist/api/py-embed.js +8 -8
- package/dist/index.js +2 -2
- package/dist/library.js +2506 -2232
- package/dist/omni-setup-worker.js +8 -8
- package/dist/update-worker-runtime.js +73 -51
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** Exact host invocation identity. Model arguments and JSON cannot issue it. */
|
|
2
|
+
export interface NativeChildInvocation {
|
|
3
|
+
readonly runId: string;
|
|
4
|
+
readonly taskEpoch: number;
|
|
5
|
+
readonly toolCallId: string;
|
|
6
|
+
readonly toolName: 'agent' | 'full_sub_agent';
|
|
7
|
+
readonly assertCurrent: () => void;
|
|
8
|
+
}
|
|
9
|
+
export type NativeChildParentInvocation = Readonly<Pick<NativeChildInvocation, 'runId' | 'taskEpoch' | 'toolCallId' | 'toolName'>>;
|
|
10
|
+
export interface NativeChildEvidenceV1 {
|
|
11
|
+
readonly schema: 'omnius.native-child-evidence.v1';
|
|
12
|
+
readonly toolName: 'agent' | 'full_sub_agent';
|
|
13
|
+
readonly childId: string;
|
|
14
|
+
readonly state: 'created' | 'started' | 'completed' | 'failed' | 'stopped';
|
|
15
|
+
readonly observedAt: string;
|
|
16
|
+
/** Original spawn identity, including for later status/output observations. */
|
|
17
|
+
readonly parentInvocation: NativeChildParentInvocation;
|
|
18
|
+
readonly observedInvocation: NativeChildParentInvocation;
|
|
19
|
+
readonly completionBoundary: 'native_runner_return' | 'process_exit';
|
|
20
|
+
/** Agent returns require the CLI's independently issued original-return witness. */
|
|
21
|
+
readonly terminalProof: 'unavailable' | 'original_process_return';
|
|
22
|
+
readonly childRunId?: string;
|
|
23
|
+
readonly childTaskEpoch?: number;
|
|
24
|
+
readonly terminalReceiptRef?: string;
|
|
25
|
+
readonly summary?: string;
|
|
26
|
+
readonly modifiedFiles: readonly string[];
|
|
27
|
+
readonly artifactRefs: readonly string[];
|
|
28
|
+
}
|
|
29
|
+
/** Reader only. Minting state stays inside the actual native producer modules. */
|
|
30
|
+
export declare function readIssuedNativeChildEvidence(value: unknown): Readonly<NativeChildEvidenceV1> | undefined;
|
|
31
|
+
/** Original producer return identity, never serialized data or a permission. */
|
|
32
|
+
export declare function readNativeChildTerminalSource(value: unknown): unknown;
|
|
33
|
+
export declare function nativeChildResultIdentity(result: {
|
|
34
|
+
success: boolean;
|
|
35
|
+
output: string;
|
|
36
|
+
error?: string;
|
|
37
|
+
llmContent?: string;
|
|
38
|
+
mutated?: boolean;
|
|
39
|
+
mutatedFiles?: string[];
|
|
40
|
+
partial?: boolean;
|
|
41
|
+
noop?: boolean;
|
|
42
|
+
dryRun?: boolean;
|
|
43
|
+
data?: unknown;
|
|
44
|
+
}): string;
|
|
@@ -227,6 +227,8 @@ export interface AuxiliaryOperationBinding {
|
|
|
227
227
|
readonly __auxiliaryOperationBinding?: never;
|
|
228
228
|
}
|
|
229
229
|
export interface ToolInvocationContext {
|
|
230
|
+
/** Original host child-dispatch identity; preserve by reference through adapters. */
|
|
231
|
+
nativeChildInvocation?: Readonly<import("./native-child-evidence.js").NativeChildInvocation>;
|
|
230
232
|
/** Native FileWrite result correlation only; never supplied by model arguments. */
|
|
231
233
|
nativeFileWriteInvocation?: Readonly<import("./native-file-write-observation.js").NativeFileWriteInvocationScope>;
|
|
232
234
|
/** Preserve this exact host identity while composing cell-local guards. JSON copies grant nothing. */
|
|
@@ -467,6 +469,8 @@ export interface Tool {
|
|
|
467
469
|
getCommandExecutionObservation?: (args: Record<string, unknown>, result: ToolResult) => unknown;
|
|
468
470
|
/** Original native FileWrite result proof; JSON/copies cannot issue it. */
|
|
469
471
|
getNativeFileWriteObservation?: (args: Record<string, unknown>, result: ToolResult) => unknown;
|
|
472
|
+
/** Original producer result custody; returned JSON never grants child evidence. */
|
|
473
|
+
readIssuedChildEvidence?: (result: ToolResult) => readonly import("./native-child-evidence.js").NativeChildEvidenceV1[];
|
|
470
474
|
/** Current provider desktop/session identity. Host-only; unavailable is fail-closed. */
|
|
471
475
|
getDesktopVerificationScope?: () => DesktopVerificationScope | undefined;
|
|
472
476
|
/** Host-owned semantic identity evaluated before external-effect dispatch. */
|
|
@@ -104,6 +104,7 @@ export declare class MemorySourceResolver {
|
|
|
104
104
|
private open;
|
|
105
105
|
private mac;
|
|
106
106
|
private verified;
|
|
107
|
+
private retainEntry;
|
|
107
108
|
admit(issuer: MemoryContractIssuer, result: MemorySearchResultV1, admissions: readonly MemorySourceAdmission[]): Promise<Array<{
|
|
108
109
|
sourceRef: string;
|
|
109
110
|
status: "ready" | "unavailable";
|
|
@@ -128,4 +129,5 @@ export declare class MemorySourceResolver {
|
|
|
128
129
|
items: MemorySourceOpenItem[];
|
|
129
130
|
matches: MemorySearchMatchV1[];
|
|
130
131
|
}>;
|
|
132
|
+
private expandRanges;
|
|
131
133
|
}
|
|
@@ -190,6 +190,7 @@ export interface AgenticTool {
|
|
|
190
190
|
/** Private execution-time identity; never permission, progress or effect authority. */
|
|
191
191
|
getHistoryObservationIdentity?: (args: Record<string, unknown>, result: AgenticToolResult) => string | null;
|
|
192
192
|
getCommandExecutionObservation?: (args: Record<string, unknown>, result: AgenticToolResult) => unknown;
|
|
193
|
+
readIssuedChildEvidence?: (result: AgenticToolResult) => readonly import("../execution/native-child-evidence.js").NativeChildEvidenceV1[];
|
|
193
194
|
getNativeFileWriteObservation?: (args: Record<string, unknown>, result: AgenticToolResult) => unknown;
|
|
194
195
|
getDesktopVerificationScope?: () => DesktopVerificationScope | undefined;
|
|
195
196
|
/**
|
|
@@ -445,6 +446,12 @@ export interface AgenticRunnerOptions {
|
|
|
445
446
|
admitted: false;
|
|
446
447
|
feedback: string;
|
|
447
448
|
}>;
|
|
449
|
+
/** Host-only negative readiness from an original current native review.
|
|
450
|
+
* Absence grants nothing; this callback never starts inference or work. */
|
|
451
|
+
readCurrentNativeCompletionDeficit?: () => Readonly<{
|
|
452
|
+
revision: string;
|
|
453
|
+
reason: string;
|
|
454
|
+
}> | undefined;
|
|
448
455
|
/**
|
|
449
456
|
* Typed host decision describing which runtime effects must exist before a
|
|
450
457
|
* declared successful outcome is authoritative. The runner never derives
|
|
@@ -782,6 +789,15 @@ export interface AgenticRunnerOptions {
|
|
|
782
789
|
* path must never block tool calls.
|
|
783
790
|
*/
|
|
784
791
|
disableAdversaryCritic?: boolean;
|
|
792
|
+
/** Host-observed native children for factual display; never a permission or completion grant. */
|
|
793
|
+
currentNativeChildFacts?: () => readonly import("./model-facing-metadata.js").ModelFacingChildFacts[] | undefined;
|
|
794
|
+
currentNativeChildCoverage?: () => import("./model-facing-metadata.js").ModelFacingChildCoverage | undefined;
|
|
795
|
+
/** Exact authenticated frontend goal; no parsing of formatted task/history is required. */
|
|
796
|
+
currentAcceptedNativeGoal?: () => string | undefined;
|
|
797
|
+
currentAdoptedNativeHumanInputs?: () => readonly {
|
|
798
|
+
inputId: string;
|
|
799
|
+
text: string;
|
|
800
|
+
}[] | undefined;
|
|
785
801
|
/** @deprecated Use disableAdversaryCritic. */
|
|
786
802
|
disableStepCritic?: boolean;
|
|
787
803
|
/**
|
|
@@ -2391,6 +2407,7 @@ export declare class AgenticRunner {
|
|
|
2391
2407
|
private _lastVerificationInvalidatingMutation;
|
|
2392
2408
|
private _completionReadinessVerificationAuthority;
|
|
2393
2409
|
private _completionReadinessDeliveryAuthority;
|
|
2410
|
+
private _readCurrentNativeCompletionDeficit;
|
|
2394
2411
|
private _currentFactualCompletionDeficit;
|
|
2395
2412
|
private _completionReadinessSnapshot;
|
|
2396
2413
|
/**
|
|
@@ -4649,6 +4666,7 @@ export declare class AgenticRunner {
|
|
|
4649
4666
|
* adversary buffer, this is populated directly after tool execution and does
|
|
4650
4667
|
* not depend on raw tool messages surviving compaction. */
|
|
4651
4668
|
private _recentToolOutcomes;
|
|
4669
|
+
private readonly _nativeShellProgressProofs;
|
|
4652
4670
|
/** Recent successful user-work mutations suppress generic "create again" nudges. */
|
|
4653
4671
|
private _groundTruthSuccessPaths;
|
|
4654
4672
|
/** Monotonic counter for observed local state changes.
|
|
@@ -4711,6 +4729,8 @@ export declare class AgenticRunner {
|
|
|
4711
4729
|
* changing user messages, assistant history, or linked tool results.
|
|
4712
4730
|
*/
|
|
4713
4731
|
private _buildRecentActionGroundTruth;
|
|
4732
|
+
private _nativeShellProgressIsCurrent;
|
|
4733
|
+
private _equivalentNativeObservations;
|
|
4714
4734
|
/** Legacy REG/recovery prose is retained in telemetry only, never in model history. */
|
|
4715
4735
|
private _isLegacyControlMessage;
|
|
4716
4736
|
private _stripLegacyControlMessages;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type CanonicalEvidenceReceiptInput, type CanonicalTaskFrameProjection } from "./canonical-context-projection.js";
|
|
2
|
+
export interface ModelFacingCanonicalMetadataProjection {
|
|
3
|
+
content: string | null;
|
|
4
|
+
audit: {
|
|
5
|
+
reason: "projected" | "unchanged_unmatched_producer_frame" | "empty";
|
|
6
|
+
originalBytes: number;
|
|
7
|
+
modelFacingBytes: number;
|
|
8
|
+
/** Internal identities stay available to custody/trace code, outside the model text. */
|
|
9
|
+
includedSignalIds: string[];
|
|
10
|
+
compactedReceiptSignalIds: string[];
|
|
11
|
+
duplicateReceiptSignalIds: string[];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Takes the authentic producer's structured frame, never arbitrary message text.
|
|
16
|
+
* Re-rendering verifies the descriptor/content binding before any projection.
|
|
17
|
+
* Non-receipt bodies are opaque and byte-exact. Only verified receipt display
|
|
18
|
+
* metadata is reduced; native messages, pending calls and protocol IDs are not
|
|
19
|
+
* inputs to this function and cannot be changed by it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function projectModelFacingCanonicalFrame(input: {
|
|
22
|
+
projection: Readonly<CanonicalTaskFrameProjection>;
|
|
23
|
+
receiptsBySignalId?: ReadonlyMap<string, Readonly<CanonicalEvidenceReceiptInput>>;
|
|
24
|
+
}): ModelFacingCanonicalMetadataProjection;
|
|
25
|
+
export interface ModelFacingTodoFacts {
|
|
26
|
+
id: string;
|
|
27
|
+
content: string;
|
|
28
|
+
status: string;
|
|
29
|
+
parentId?: string;
|
|
30
|
+
blockedBy?: readonly string[];
|
|
31
|
+
owner?: string;
|
|
32
|
+
activeForm?: string;
|
|
33
|
+
blocker?: string;
|
|
34
|
+
completionJustification?: string;
|
|
35
|
+
verifyCommand?: string;
|
|
36
|
+
declaredArtifacts?: readonly string[];
|
|
37
|
+
sourceRefs?: readonly string[];
|
|
38
|
+
targetRefs?: readonly unknown[];
|
|
39
|
+
requirementIds?: readonly string[];
|
|
40
|
+
acceptanceIds?: readonly string[];
|
|
41
|
+
workKind?: string;
|
|
42
|
+
actionContract?: unknown;
|
|
43
|
+
}
|
|
44
|
+
export interface ModelFacingRequirementFacts {
|
|
45
|
+
id: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
status: string;
|
|
48
|
+
mode?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ModelFacingVerificationFacts {
|
|
51
|
+
passed?: boolean;
|
|
52
|
+
summary?: string;
|
|
53
|
+
error?: string;
|
|
54
|
+
exitCode?: number;
|
|
55
|
+
artifact?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface ModelFacingEquivalentObservationFacts {
|
|
58
|
+
tool: string;
|
|
59
|
+
argumentSha256: string;
|
|
60
|
+
observationSha256: string;
|
|
61
|
+
callIds: string[];
|
|
62
|
+
occurrences: {
|
|
63
|
+
count: number;
|
|
64
|
+
firstTurn: number;
|
|
65
|
+
lastTurn: number;
|
|
66
|
+
firstObservedAt?: string;
|
|
67
|
+
lastObservedAt?: string;
|
|
68
|
+
};
|
|
69
|
+
outcome: {
|
|
70
|
+
success: boolean;
|
|
71
|
+
exitCode: number | null;
|
|
72
|
+
capture: string;
|
|
73
|
+
stdout: {
|
|
74
|
+
bytes: number;
|
|
75
|
+
sha256?: string;
|
|
76
|
+
};
|
|
77
|
+
stderr: {
|
|
78
|
+
bytes: number;
|
|
79
|
+
sha256?: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export interface ModelFacingChildFacts {
|
|
84
|
+
childId: string;
|
|
85
|
+
state: string;
|
|
86
|
+
toolCallId?: string;
|
|
87
|
+
summary?: string;
|
|
88
|
+
modifiedFiles: readonly string[];
|
|
89
|
+
artifactRefs: readonly string[];
|
|
90
|
+
nativeCompletionVerified?: boolean;
|
|
91
|
+
completionBoundary?: string;
|
|
92
|
+
terminalProof?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface ModelFacingChildCoverage {
|
|
95
|
+
status: 'available' | 'partial';
|
|
96
|
+
maxWorkers: number;
|
|
97
|
+
omittedObservations: number;
|
|
98
|
+
}
|
|
99
|
+
/** Explicit producer fields only; no recursive key/text stripping of source data. */
|
|
100
|
+
export declare function renderModelFacingRunObservations(input: {
|
|
101
|
+
acceptedGoal?: string;
|
|
102
|
+
adoptedHumanInputs?: readonly {
|
|
103
|
+
inputId: string;
|
|
104
|
+
text: string;
|
|
105
|
+
}[];
|
|
106
|
+
equivalentObservations?: readonly ModelFacingEquivalentObservationFacts[];
|
|
107
|
+
childEvidence?: readonly ModelFacingChildFacts[];
|
|
108
|
+
childEvidenceCoverage?: ModelFacingChildCoverage;
|
|
109
|
+
modifiedFiles?: readonly string[];
|
|
110
|
+
todos?: readonly ModelFacingTodoFacts[];
|
|
111
|
+
verification?: ModelFacingVerificationFacts | null;
|
|
112
|
+
requirements?: readonly ModelFacingRequirementFacts[];
|
|
113
|
+
}): string | null;
|
package/dist/api/py-embed.js
CHANGED
|
@@ -248945,6 +248945,14 @@ var UTF8_DECODER = new TextDecoder2("utf-8", { fatal: true });
|
|
|
248945
248945
|
import { TextDecoder as TextDecoder3 } from "node:util";
|
|
248946
248946
|
var utf8 = new TextDecoder3("utf-8", { fatal: true, ignoreBOM: true });
|
|
248947
248947
|
|
|
248948
|
+
// packages/execution/dist/tools/agent-tool.js
|
|
248949
|
+
init_model_broker();
|
|
248950
|
+
|
|
248951
|
+
// packages/execution/dist/tools/full-sub-agent.js
|
|
248952
|
+
init_process_kill();
|
|
248953
|
+
init_model_broker();
|
|
248954
|
+
init_process_lifecycle();
|
|
248955
|
+
|
|
248948
248956
|
// packages/execution/dist/tools/archive-extract.js
|
|
248949
248957
|
init_process_async();
|
|
248950
248958
|
var EXTRACT = String.raw`
|
|
@@ -300724,14 +300732,6 @@ var REQUEST_TIMEOUT_MS = 90 * 6e4;
|
|
|
300724
300732
|
init_hf_media_models();
|
|
300725
300733
|
init_cuda_device_filter();
|
|
300726
300734
|
|
|
300727
|
-
// packages/execution/dist/tools/full-sub-agent.js
|
|
300728
|
-
init_process_kill();
|
|
300729
|
-
init_model_broker();
|
|
300730
|
-
init_process_lifecycle();
|
|
300731
|
-
|
|
300732
|
-
// packages/execution/dist/tools/agent-tool.js
|
|
300733
|
-
init_model_broker();
|
|
300734
|
-
|
|
300735
300735
|
// packages/execution/dist/mcp/index.js
|
|
300736
300736
|
init_client();
|
|
300737
300737
|
init_manager();
|
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: 42504395 bytes
|
|
4
|
+
sha256: 955355759c30cd70c236eef620d1cd09fc546385c9371ba8849d3e3df496dc2c
|