omnius 1.0.923 → 1.0.925
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/{providerRegistry.d.ts → _types/backend-vllm/providerRegistry.d.ts} +0 -1
- package/dist/_types/backend-vllm/types.d.ts +209 -0
- package/dist/_types/execution/av/media-capability.d.ts +94 -0
- package/dist/_types/execution/delegation-contract.d.ts +102 -0
- package/dist/_types/execution/evidence.d.ts +68 -0
- package/dist/_types/execution/html-source-evidence.d.ts +65 -0
- package/dist/_types/execution/mcp/types.d.ts +169 -0
- package/dist/_types/execution/mutation-contract.d.ts +102 -0
- package/dist/_types/execution/nol/artifacts.d.ts +39 -0
- package/dist/_types/execution/nol/checkpoint-edits.d.ts +98 -0
- package/dist/_types/execution/nol/distributions.d.ts +128 -0
- package/dist/_types/execution/nol/gguf-checkpoint-edits.d.ts +194 -0
- package/dist/_types/execution/nol/gguf-control-reader.d.ts +224 -0
- package/dist/_types/execution/nol/lora-exports.d.ts +129 -0
- package/dist/_types/execution/nol/neuronary.d.ts +212 -0
- package/dist/_types/execution/nol/pytorch-control-reader.d.ts +143 -0
- package/dist/_types/execution/nol/qwen35-head-sites.d.ts +61 -0
- package/dist/_types/execution/nol/worker-assets.d.ts +82 -0
- package/dist/_types/execution/nol/worker-protocol.d.ts +94 -0
- package/dist/_types/execution/page-content-source.d.ts +40 -0
- package/dist/_types/execution/rapid-computer-use/artifact-store.d.ts +21 -0
- package/dist/_types/execution/rapid-computer-use/contracts.d.ts +320 -0
- package/dist/_types/execution/rapid-computer-use/decision.d.ts +70 -0
- package/dist/_types/execution/rapid-computer-use/desktop-verification.d.ts +23 -0
- package/dist/_types/execution/rapid-computer-use/geometry.d.ts +57 -0
- package/dist/_types/execution/rapid-computer-use/planner.d.ts +78 -0
- package/dist/_types/execution/rapid-computer-use/trace.d.ts +80 -0
- package/dist/_types/execution/rapid-computer-use/visual.d.ts +48 -0
- package/dist/_types/execution/shell-runs.d.ts +78 -0
- package/dist/_types/execution/streamed-web-source.d.ts +64 -0
- package/dist/_types/execution/tools/browser-page-fallback.d.ts +25 -0
- package/dist/_types/execution/tools/network-egress-policy.d.ts +30 -0
- package/dist/_types/execution/tools/pdf-native-tables.d.ts +46 -0
- package/dist/_types/execution/tools/todo-store.d.ts +133 -0
- package/dist/_types/execution/tools/web-fetch.d.ts +57 -0
- package/dist/_types/execution/tools/workboard.d.ts +1223 -0
- package/dist/_types/execution/types.d.ts +549 -0
- package/dist/_types/execution/web-source.d.ts +14 -0
- package/dist/_types/memory/artifactReviewSourceIndex.d.ts +133 -0
- package/dist/_types/memory/contextMemoryLedger.d.ts +213 -0
- package/dist/_types/memory/db.d.ts +12 -0
- package/dist/_types/memory/embeddings.d.ts +36 -0
- package/dist/_types/memory/immutableEvidenceStore.d.ts +165 -0
- package/dist/_types/memory/memoryIngestion.d.ts +65 -0
- package/dist/_types/memory/memoryTypes.d.ts +312 -0
- package/dist/_types/memory/sourceCorpusStore.d.ts +331 -0
- package/dist/_types/memory/structuredMemoryStore.d.ts +105 -0
- package/dist/_types/memory/unifiedMemoryStore.d.ts +127 -0
- package/dist/_types/memory/virtualMemory.d.ts +187 -0
- package/dist/_types/orchestrator/agentic-page-content-receipt.d.ts +20 -0
- package/dist/_types/orchestrator/agentic-web-fetch-receipt.d.ts +20 -0
- package/dist/_types/orchestrator/agenticRunner.d.ts +5219 -0
- package/dist/_types/orchestrator/app-state.d.ts +171 -0
- package/dist/_types/orchestrator/artifactClaimCritic.d.ts +63 -0
- package/dist/_types/orchestrator/artifactQuality.d.ts +15 -0
- package/dist/_types/orchestrator/artifactSemanticIntegrity.d.ts +203 -0
- package/dist/_types/orchestrator/canonical-context-projection.d.ts +254 -0
- package/dist/_types/orchestrator/canonical-source-body-projection.d.ts +51 -0
- package/dist/_types/orchestrator/completion-review-pending.d.ts +24 -0
- package/dist/_types/orchestrator/completionContract.d.ts +103 -0
- package/dist/_types/orchestrator/completionFinalization.d.ts +224 -0
- package/dist/_types/orchestrator/completionLedger.d.ts +429 -0
- package/dist/_types/orchestrator/completionReadiness.d.ts +234 -0
- package/dist/_types/orchestrator/context-admission.d.ts +93 -0
- package/dist/_types/orchestrator/context-dump-retention.d.ts +25 -0
- package/dist/_types/orchestrator/context-fabric.d.ts +133 -0
- package/dist/_types/orchestrator/contextEngine.d.ts +68 -0
- package/dist/_types/orchestrator/contextWindowDump.d.ts +327 -0
- package/dist/_types/orchestrator/convergence-breaker.d.ts +225 -0
- package/dist/_types/orchestrator/convergence-progress.d.ts +66 -0
- package/dist/_types/orchestrator/deliveryCoverage.d.ts +181 -0
- package/dist/_types/orchestrator/document-persistence-goal-binding.d.ts +106 -0
- package/dist/_types/orchestrator/durable-document-worker.d.ts +85 -0
- package/dist/_types/orchestrator/evidenceBranch.d.ts +291 -0
- package/dist/_types/orchestrator/expected-inference-response.d.ts +55 -0
- package/dist/_types/orchestrator/expectedOutcomeContract.d.ts +58 -0
- package/dist/_types/orchestrator/failure-taxonomy.d.ts +36 -0
- package/dist/_types/orchestrator/focusSupervisor.d.ts +436 -0
- package/dist/_types/orchestrator/forced-update-requirement-recovery.d.ts +105 -0
- package/dist/_types/orchestrator/hooks.d.ts +100 -0
- package/dist/_types/orchestrator/inference-pressure.d.ts +61 -0
- package/dist/_types/orchestrator/integrationClosure.d.ts +89 -0
- package/dist/_types/orchestrator/interruption-lifecycle.d.ts +154 -0
- package/dist/_types/orchestrator/live-memory-passages.d.ts +51 -0
- package/dist/_types/orchestrator/liveVirtualContext.d.ts +84 -0
- package/dist/_types/orchestrator/memory-compiler.d.ts +254 -0
- package/dist/_types/orchestrator/memory-consolidation.d.ts +134 -0
- package/dist/_types/orchestrator/model-router.d.ts +17 -0
- package/dist/_types/orchestrator/modelResponseDiagnostics.d.ts +71 -0
- package/dist/_types/orchestrator/nativeRequirementAmendment.d.ts +63 -0
- package/dist/_types/orchestrator/nol/coordinator.d.ts +204 -0
- package/dist/_types/orchestrator/nol/datasets.d.ts +58 -0
- package/dist/_types/orchestrator/nol/discovery.d.ts +286 -0
- package/dist/_types/orchestrator/nol/evaluation.d.ts +59 -0
- package/dist/_types/orchestrator/nol/model-validation.d.ts +198 -0
- package/dist/_types/orchestrator/nol/statistics.d.ts +142 -0
- package/dist/_types/orchestrator/nol/store.d.ts +133 -0
- package/dist/_types/orchestrator/nol/variant-registry.d.ts +292 -0
- package/dist/_types/orchestrator/ollama-context-policy.d.ts +34 -0
- package/dist/_types/orchestrator/personality.d.ts +66 -0
- package/dist/_types/orchestrator/prompt-cache.d.ts +24 -0
- package/dist/_types/orchestrator/remote-inference-fallback.d.ts +224 -0
- package/dist/_types/orchestrator/remote-inference-policy.d.ts +58 -0
- package/dist/_types/orchestrator/request-budget.d.ts +75 -0
- package/dist/_types/orchestrator/requirementCoverage.d.ts +69 -0
- package/dist/_types/orchestrator/reviewedInterpretation.d.ts +111 -0
- package/dist/_types/orchestrator/runEvents.d.ts +115 -0
- package/dist/_types/orchestrator/runtime-rollout.d.ts +63 -0
- package/dist/_types/orchestrator/semanticVerification.d.ts +135 -0
- package/dist/_types/orchestrator/source-wide-extraction.d.ts +202 -0
- package/dist/_types/orchestrator/steeringIntake.d.ts +123 -0
- package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +89 -0
- package/dist/_types/orchestrator/structuredMemoryInference.d.ts +62 -0
- package/dist/_types/orchestrator/successful-procedure-memory.d.ts +127 -0
- package/dist/_types/orchestrator/supportedAnswer.d.ts +68 -0
- package/dist/_types/orchestrator/taskEffectEvidence.d.ts +38 -0
- package/dist/_types/orchestrator/taskExecutionSnapshot.d.ts +67 -0
- package/dist/_types/orchestrator/taskObjective.d.ts +310 -0
- package/dist/_types/orchestrator/taskObjectiveContinuation.d.ts +134 -0
- package/dist/_types/orchestrator/taskRequirementReview.d.ts +246 -0
- package/dist/_types/orchestrator/taskRequirements.d.ts +80 -0
- package/dist/_types/orchestrator/taskSemanticAdmission.d.ts +159 -0
- package/dist/_types/orchestrator/taskWorkDelegation.d.ts +147 -0
- package/dist/_types/orchestrator/taskWorkPlan.d.ts +177 -0
- package/dist/_types/orchestrator/telegram-passive-history.d.ts +42 -0
- package/dist/_types/orchestrator/terminalTaskReport.d.ts +91 -0
- package/dist/_types/orchestrator/todoObservability.d.ts +147 -0
- package/dist/_types/orchestrator/tool-exposure-policy.d.ts +100 -0
- package/dist/_types/orchestrator/trajectory-checkpoint.d.ts +159 -0
- package/dist/_types/orchestrator/types.d.ts +185 -0
- package/dist/_types/schemas/dispatch.d.ts +53 -0
- package/dist/_types/schemas/feature-workflow.d.ts +362 -0
- package/dist/_types/schemas/messages.d.ts +15 -0
- package/dist/_types/schemas/nol-assets.d.ts +955 -0
- package/dist/_types/schemas/nol-json.d.ts +2 -0
- package/dist/_types/schemas/nol.d.ts +3995 -0
- package/dist/_types/schemas/patch.d.ts +47 -0
- package/dist/_types/schemas/plan.d.ts +47 -0
- package/dist/_types/schemas/repoProfile.d.ts +116 -0
- package/dist/_types/schemas/retrieval.d.ts +44 -0
- package/dist/_types/schemas/task.d.ts +57 -0
- package/dist/_types/schemas/tools.d.ts +16 -0
- package/dist/_types/schemas/verification.d.ts +31 -0
- package/dist/api/py-embed.js +3353 -1829
- package/dist/assets/nol-checkpoint-editor.py +701 -0
- package/dist/assets/nol-gguf-checkpoint-editor.py +785 -0
- package/dist/assets/nol-gguf-control-reader.py +428 -0
- package/dist/assets/nol-gne-tools-worker.py +425 -0
- package/dist/assets/nol-gne-worker.py +1081 -0
- package/dist/assets/nol-lora-exporter.py +349 -0
- package/dist/assets/nol-pytorch-control-reader.py +470 -0
- package/dist/assets/nol-transformers-nnsight-worker.py +512 -0
- package/dist/assets/nol-transformers-peft-validation-worker.py +385 -0
- package/dist/assets/nol-transformers-peft-worker.py +488 -0
- package/dist/assets/nol-transformers-research-worker.py +472 -0
- package/dist/assets/nol-transformers-worker.py +920 -0
- package/dist/assets/nol-vllm-owned-worker.py +803 -0
- package/dist/assets/nol-vllm-runtime.py +695 -0
- package/dist/assets/nol-vllm-tokenizer.py +93 -0
- package/dist/assets/nol-vllm-worker.py +201 -0
- package/dist/computer-use/configured-planner.d.ts +37 -0
- package/dist/computer-use/configured-point.d.ts +35 -0
- package/dist/computer-use/host-session.d.ts +60 -0
- package/dist/computer-use/runner-ui-port.d.ts +37 -0
- package/dist/computer-use/session-review.d.ts +14 -0
- package/dist/computer-use/task-spec.d.ts +84 -0
- package/dist/discovery.d.ts +16 -2
- package/dist/index.js +2 -2
- package/dist/library.d.ts +94 -10
- package/dist/library.js +144003 -87414
- package/dist/memory-maintenance-worker.js +1676 -511
- package/dist/nol/cpu-control-reader-profile.d.ts +93 -0
- package/dist/nol/cpu-control-reader-service.d.ts +87 -0
- package/dist/nol/cuda-lease.d.ts +111 -0
- package/dist/nol/cuda-mutations.d.ts +34 -0
- package/dist/nol/export-runtime-config.d.ts +114 -0
- package/dist/nol/export-service.d.ts +143 -0
- package/dist/nol/facade.d.ts +147 -0
- package/dist/nol/gguf-cpu-control-reader-profile.d.ts +106 -0
- package/dist/nol/gguf-cpu-control-reader-service.d.ts +91 -0
- package/dist/nol/gguf-model-control-verifier.d.ts +120 -0
- package/dist/nol/gguf-parameter-inventory.d.ts +28 -0
- package/dist/nol/gne-adapter.d.ts +134 -0
- package/dist/nol/gne-agent-evaluation.d.ts +84 -0
- package/dist/nol/gne-profile.d.ts +124 -0
- package/dist/nol/gne-tools-profile.d.ts +148 -0
- package/dist/nol/gne-tools-transport.d.ts +194 -0
- package/dist/nol/model-actions.d.ts +662 -0
- package/dist/nol/model-control-verifier.d.ts +135 -0
- package/dist/nol/model-json-scorer.d.ts +13 -0
- package/dist/nol/model-runtime-config.d.ts +830 -0
- package/dist/nol/model-serving.d.ts +130 -0
- package/dist/nol/model-subject-adapter.d.ts +72 -0
- package/dist/nol/model-validation-factory.d.ts +113 -0
- package/dist/nol/neuronary-catalog.d.ts +130 -0
- package/dist/nol/orphan-custody.d.ts +72 -0
- package/dist/nol/peft-conformance.d.ts +48 -0
- package/dist/nol/peft-control-types.d.ts +137 -0
- package/dist/nol/peft-control-verifier.d.ts +8 -0
- package/dist/nol/peft-model-actions.d.ts +41 -0
- package/dist/nol/peft-model-authority.d.ts +146 -0
- package/dist/nol/peft-model-controls.d.ts +20 -0
- package/dist/nol/peft-model-host.d.ts +47 -0
- package/dist/nol/peft-model-profile.d.ts +161 -0
- package/dist/nol/peft-model-runtime-config.d.ts +174 -0
- package/dist/nol/peft-model-subject-adapter.d.ts +36 -0
- package/dist/nol/peft-validation.d.ts +105 -0
- package/dist/nol/persistent-parameter-inventory.d.ts +32 -0
- package/dist/nol/runtime.d.ts +100 -0
- package/dist/nol/sqlite-store.d.ts +80 -0
- package/dist/nol/transformers-adapter.d.ts +119 -0
- package/dist/nol/transformers-nnsight.d.ts +87 -0
- package/dist/nol/transformers-peft.d.ts +107 -0
- package/dist/nol/transformers-research.d.ts +114 -0
- package/dist/nol/variant-service.d.ts +143 -0
- package/dist/nol/variant-store.d.ts +51 -0
- package/dist/nol/vllm-actions.d.ts +774 -0
- package/dist/nol/vllm-adapter.d.ts +1473 -0
- package/dist/nol/vllm-authority.d.ts +55 -0
- package/dist/nol/vllm-conformance.d.ts +662 -0
- package/dist/nol/vllm-profile.d.ts +850 -0
- package/dist/nol/vllm-protocol.d.ts +1505 -0
- package/dist/nol/vllm-runtime-config.d.ts +120 -0
- package/dist/nol/vllm-runtime.d.ts +34 -0
- package/dist/nol/vllm-startup.d.ts +235 -0
- package/dist/omni-setup-worker.js +3433 -1909
- package/dist/service-version.d.ts +0 -1
- package/dist/tui/async-process.d.ts +27 -0
- package/dist/tui/native/worker.js +3 -1
- package/dist/tui/telegram-action-session-registry.d.ts +136 -0
- package/dist/tui/telegram-cognition-queue.d.ts +154 -0
- package/dist/tui/telegram-context-packet-v2.d.ts +99 -0
- package/dist/tui/telegram-input-ownership.d.ts +78 -0
- package/dist/tui/telegram-turn-contract-v2.d.ts +62 -0
- package/dist/update-worker-runtime.js +4216 -2603
- package/docs/DISCOVERY.json +389 -0
- package/docs/DISCOVERY.md +4 -0
- package/npm-shrinkwrap.json +28 -12
- package/package.json +3 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { NolArtifactRef, NolModelManifest } from "../_types/schemas/nol.js";
|
|
3
|
+
/** Host-owned JSON only. Runtime roots must enumerate every non-stdlib package
|
|
4
|
+
* location used by the explicit Python environment (including shared sites).
|
|
5
|
+
* No request can provide a path, callback, interpreter, runtime, or passed flag. */
|
|
6
|
+
export declare const NolCpuControlReaderProfileSchema: z.ZodObject<{
|
|
7
|
+
schema: z.ZodLiteral<"omnius.nol.cpu-control-reader-profile.v1">;
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
format: z.ZodLiteral<"pytorch">;
|
|
10
|
+
modelDigest: z.ZodString;
|
|
11
|
+
checkpointRoot: z.ZodString;
|
|
12
|
+
runtimeRoots: z.ZodArray<z.ZodString>;
|
|
13
|
+
reader: z.ZodObject<{
|
|
14
|
+
pythonPath: z.ZodString;
|
|
15
|
+
readerPath: z.ZodString;
|
|
16
|
+
expectedReaderSha256: z.ZodString;
|
|
17
|
+
checkpointEditorPath: z.ZodString;
|
|
18
|
+
expectedCheckpointEditorSha256: z.ZodLiteral<"aaee38b90eab4f0526610ad3ceea5e5be54890d1bdc49c57a2cf5d4fe3766570">;
|
|
19
|
+
dependencyLockPath: z.ZodString;
|
|
20
|
+
limits: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
21
|
+
maxInputBytes: number;
|
|
22
|
+
maxWorkingBytes: number;
|
|
23
|
+
maxReadBytes: number;
|
|
24
|
+
maxTensors: number;
|
|
25
|
+
maxCoordinates: number;
|
|
26
|
+
maxRuntimeBytes: number;
|
|
27
|
+
maxRuntimeFiles: number;
|
|
28
|
+
maxDurationMs: number;
|
|
29
|
+
maxProtocolBytes: number;
|
|
30
|
+
maxStderrBytes: number;
|
|
31
|
+
chunkBytes: number;
|
|
32
|
+
maxReportBytes: number;
|
|
33
|
+
maxAddressSpaceBytes: number;
|
|
34
|
+
}, unknown>>;
|
|
35
|
+
runtime: z.ZodObject<{
|
|
36
|
+
schema: z.ZodLiteral<"omnius.nol.pytorch-control-reader-runtime.v1">;
|
|
37
|
+
pythonVersion: z.ZodString;
|
|
38
|
+
pythonExecutable: z.ZodObject<{
|
|
39
|
+
sha256: z.ZodString;
|
|
40
|
+
sizeBytes: z.ZodNumber;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
version: z.ZodString;
|
|
45
|
+
files: z.ZodNumber;
|
|
46
|
+
bytes: z.ZodNumber;
|
|
47
|
+
digest: z.ZodString;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
reader: z.ZodObject<{
|
|
50
|
+
sha256: z.ZodString;
|
|
51
|
+
sizeBytes: z.ZodNumber;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
checkpointEditor: z.ZodObject<{
|
|
54
|
+
sha256: z.ZodString;
|
|
55
|
+
sizeBytes: z.ZodNumber;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
dependencyLock: z.ZodObject<{
|
|
58
|
+
sha256: z.ZodString;
|
|
59
|
+
sizeBytes: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
runtimeDigest: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type NolCpuControlReaderProfile = z.infer<typeof NolCpuControlReaderProfileSchema>;
|
|
66
|
+
export declare function cpuReaderFence(callback: () => void): void;
|
|
67
|
+
/** Initial SDK full hashes establish content identity; these independent
|
|
68
|
+
* inode/stat guards detect subsequent source/runtime changes after SDK close.
|
|
69
|
+
* Runtime-wide checks run at lifecycle boundaries, not per Tensor chunk. */
|
|
70
|
+
export declare class NolCpuReaderSourceGuard {
|
|
71
|
+
private readonly light;
|
|
72
|
+
private readonly full;
|
|
73
|
+
private readonly pins;
|
|
74
|
+
private constructor();
|
|
75
|
+
static capture(profile: NolCpuControlReaderProfile, model: NolModelManifest, implementationPaths: readonly string[], signal: AbortSignal, assertCurrent: () => void): Promise<NolCpuReaderSourceGuard>;
|
|
76
|
+
private alias;
|
|
77
|
+
assertLight(): void;
|
|
78
|
+
assertAll(): void;
|
|
79
|
+
watchArtifact(root: string, ref: NolArtifactRef): void;
|
|
80
|
+
watchSource(path: string): void;
|
|
81
|
+
evidence(): {
|
|
82
|
+
schema: string;
|
|
83
|
+
identityDigest: string;
|
|
84
|
+
sourceEntries: number;
|
|
85
|
+
runtimeEntries: number;
|
|
86
|
+
pins: Array<{
|
|
87
|
+
kind: string;
|
|
88
|
+
sha256: string;
|
|
89
|
+
sizeBytes: number;
|
|
90
|
+
}>;
|
|
91
|
+
authority: "none";
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { openNolPytorchControlInventory } from "../_types/execution/nol/pytorch-control-reader.js";
|
|
2
|
+
import { type NolArtifactStore } from "../_types/execution/nol/artifacts.js";
|
|
3
|
+
import type { NolJob, NolStore } from "../_types/orchestrator/nol/store.js";
|
|
4
|
+
import type { NolPersistentParameterInventoryHandle, NolPersistentParameterInventoryProvider } from "./persistent-parameter-inventory.js";
|
|
5
|
+
import { type NolCpuControlReaderProfile } from "./cpu-control-reader-profile.js";
|
|
6
|
+
export { NolCpuControlReaderProfileSchema, type NolCpuControlReaderProfile } from "./cpu-control-reader-profile.js";
|
|
7
|
+
export declare const NOL_CPU_CONTROL_READER_JOB_KIND = "nol_cpu_control_reader";
|
|
8
|
+
export interface NolCpuControlReaderContext {
|
|
9
|
+
actorId: string;
|
|
10
|
+
planDigest: string;
|
|
11
|
+
assertAuthorized(): void;
|
|
12
|
+
}
|
|
13
|
+
export interface NolCpuControlReaderServiceOptions {
|
|
14
|
+
id: string;
|
|
15
|
+
projectRoot: string;
|
|
16
|
+
workRoot: string;
|
|
17
|
+
store: NolStore;
|
|
18
|
+
artifacts: NolArtifactStore;
|
|
19
|
+
ownerId: string;
|
|
20
|
+
profiles: readonly NolCpuControlReaderProfile[];
|
|
21
|
+
limits: {
|
|
22
|
+
maxJobs: number;
|
|
23
|
+
maxActiveHandles: number;
|
|
24
|
+
maxReportBytesPerJob: number;
|
|
25
|
+
maxMetadataBytesPerJob: number;
|
|
26
|
+
maxTotalStorageBytes: number;
|
|
27
|
+
minimumFreeBytes: number;
|
|
28
|
+
maxDurationMs: number;
|
|
29
|
+
};
|
|
30
|
+
leaseMs?: number;
|
|
31
|
+
/** Trusted CPU lifecycle fixture only. The production default invokes the
|
|
32
|
+
* actual pinned execution reader; requests/configuration cannot supply this. */
|
|
33
|
+
openInventory?: typeof openNolPytorchControlInventory;
|
|
34
|
+
}
|
|
35
|
+
type Input = Parameters<NolPersistentParameterInventoryProvider["open"]>[0];
|
|
36
|
+
export declare class NolCpuControlReaderServiceError extends Error {
|
|
37
|
+
readonly jobId: string;
|
|
38
|
+
readonly resourcesClosed: boolean;
|
|
39
|
+
constructor(message: string, jobId: string, resourcesClosed: boolean, options?: ErrorOptions);
|
|
40
|
+
}
|
|
41
|
+
/** Durable bounded CPU custody. Slots cover retained private reports, CAS
|
|
42
|
+
* copies/transient publication and metadata before a helper may execute. These
|
|
43
|
+
* are logical scope reservations, not a system-wide filesystem allocation.
|
|
44
|
+
* No result grants numerical, scientific, native/GPU, or promotion authority. */
|
|
45
|
+
export declare class NolCpuControlReaderService {
|
|
46
|
+
private readonly options;
|
|
47
|
+
readonly projectId: string;
|
|
48
|
+
readonly scopeDigest: string;
|
|
49
|
+
private readonly root;
|
|
50
|
+
private readonly workRoot;
|
|
51
|
+
private readonly rootIdentity;
|
|
52
|
+
private readonly scopeId;
|
|
53
|
+
private readonly scope;
|
|
54
|
+
private readonly ownerId;
|
|
55
|
+
private readonly leaseMs;
|
|
56
|
+
private readonly limits;
|
|
57
|
+
private readonly profiles;
|
|
58
|
+
private readonly active;
|
|
59
|
+
private readonly casQuota;
|
|
60
|
+
private readonly cleanupQuota;
|
|
61
|
+
private closing;
|
|
62
|
+
constructor(options: NolCpuControlReaderServiceOptions);
|
|
63
|
+
get ownedJobIds(): string[];
|
|
64
|
+
private directoryIdentity;
|
|
65
|
+
private assertScope;
|
|
66
|
+
private authorize;
|
|
67
|
+
private space;
|
|
68
|
+
provider(context: NolCpuControlReaderContext): NolPersistentParameterInventoryProvider;
|
|
69
|
+
private current;
|
|
70
|
+
private admission;
|
|
71
|
+
open(input: Input, context: NolCpuControlReaderContext): Promise<NolPersistentParameterInventoryHandle>;
|
|
72
|
+
private revoke;
|
|
73
|
+
private acquireMarker;
|
|
74
|
+
private releaseMarker;
|
|
75
|
+
private publish;
|
|
76
|
+
private historicalClaim;
|
|
77
|
+
private openPhysical;
|
|
78
|
+
private handle;
|
|
79
|
+
private reportBytes;
|
|
80
|
+
private watchReports;
|
|
81
|
+
private archive;
|
|
82
|
+
private finalize;
|
|
83
|
+
private finish;
|
|
84
|
+
cancel(jobId: string, actorId: string, reason?: string): NolJob;
|
|
85
|
+
stopOwned(actorId: string, reason?: string): Promise<void>;
|
|
86
|
+
shutdown(): Promise<void>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { ChildProcess } from "node:child_process";
|
|
2
|
+
import { execFileText } from "../tui/async-process.js";
|
|
3
|
+
import { type NolCudaMutationJournal } from "./cuda-mutations.js";
|
|
4
|
+
type Grant = {
|
|
5
|
+
token: string;
|
|
6
|
+
owner: string;
|
|
7
|
+
requested_mib: number;
|
|
8
|
+
gpu_uuids: string[];
|
|
9
|
+
state: string;
|
|
10
|
+
ttl: number;
|
|
11
|
+
workload_pid?: number | null;
|
|
12
|
+
workload_pids?: number[] | null;
|
|
13
|
+
};
|
|
14
|
+
type Reply = {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
released?: string;
|
|
18
|
+
lease?: Grant;
|
|
19
|
+
};
|
|
20
|
+
export interface NolCudaDependencies {
|
|
21
|
+
exec: typeof execFileText;
|
|
22
|
+
read(path: string): Promise<string>;
|
|
23
|
+
control(socket: string, request: Record<string, unknown>, options?: {
|
|
24
|
+
timeoutMs: number;
|
|
25
|
+
}): Promise<Reply>;
|
|
26
|
+
/** Host-only CPU test/storage seam. Normal callers use private durable state. */
|
|
27
|
+
mutations?: NolCudaMutationJournal;
|
|
28
|
+
}
|
|
29
|
+
export interface NolCudaAcquireIdentity {
|
|
30
|
+
readonly ownerId: string;
|
|
31
|
+
readonly gpuUuid: string;
|
|
32
|
+
readonly requestedMiB: number;
|
|
33
|
+
}
|
|
34
|
+
/** A transport error on a mutation does not prove that the broker rejected it.
|
|
35
|
+
* Recovery carries only a genuinely adopted own pending lease. Its token stays
|
|
36
|
+
* private to that lease; serialization exposes request identity and a boolean.
|
|
37
|
+
*/
|
|
38
|
+
export declare class NolCudaCustodyError extends Error {
|
|
39
|
+
constructor(message: string, options?: {
|
|
40
|
+
request?: NolCudaAcquireIdentity;
|
|
41
|
+
recoverableLease?: NolCudaLease;
|
|
42
|
+
cause?: unknown;
|
|
43
|
+
});
|
|
44
|
+
get requestedIdentity(): Readonly<NolCudaAcquireIdentity> | undefined;
|
|
45
|
+
get recoverableLease(): NolCudaLease | undefined;
|
|
46
|
+
recoveryFor(request: NolCudaAcquireIdentity): NolCudaLease | undefined;
|
|
47
|
+
toJSON(): Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
export interface NolCudaPlacement {
|
|
50
|
+
schema: "omnius.nol.cuda-placement.v1";
|
|
51
|
+
pid: number;
|
|
52
|
+
startIdentity: string;
|
|
53
|
+
gpuUuid: string;
|
|
54
|
+
computeCapability: number;
|
|
55
|
+
checkedAt: string;
|
|
56
|
+
}
|
|
57
|
+
/** Host-only broker custody for one job-owned process on one exact capable GPU.
|
|
58
|
+
* Acquisition authorizes a zero-token load. loaded() must prove actual residency
|
|
59
|
+
* before token generation. A failed/ambiguous settlement retains the lease.
|
|
60
|
+
*/
|
|
61
|
+
export declare class NolCudaLease {
|
|
62
|
+
#private;
|
|
63
|
+
private readonly options;
|
|
64
|
+
private readonly deps;
|
|
65
|
+
private readonly socketPath;
|
|
66
|
+
private readonly computeCapability;
|
|
67
|
+
readonly gpuUuid: string;
|
|
68
|
+
readonly ownerId: string;
|
|
69
|
+
private child;
|
|
70
|
+
private childClosed;
|
|
71
|
+
private startIdentity;
|
|
72
|
+
private heartbeat;
|
|
73
|
+
private heartbeatBusy;
|
|
74
|
+
private stopTimer;
|
|
75
|
+
private failed;
|
|
76
|
+
private stopped;
|
|
77
|
+
private released;
|
|
78
|
+
private requestedMiB;
|
|
79
|
+
private phase;
|
|
80
|
+
private releaseInFlight;
|
|
81
|
+
private readonly abort;
|
|
82
|
+
private constructor();
|
|
83
|
+
static acquire(options: {
|
|
84
|
+
gpuUuid: string;
|
|
85
|
+
ownerId: string;
|
|
86
|
+
modelId: string;
|
|
87
|
+
requestedMiB: number;
|
|
88
|
+
expectedDurationSeconds: number;
|
|
89
|
+
signal: AbortSignal;
|
|
90
|
+
notice?: (message: string) => void;
|
|
91
|
+
}, deps?: NolCudaDependencies): Promise<NolCudaLease>;
|
|
92
|
+
toJSON(): Record<string, unknown>;
|
|
93
|
+
private exact;
|
|
94
|
+
private renew;
|
|
95
|
+
assertCurrent(): void;
|
|
96
|
+
/** Generation requires completed placement registration after every prepare. */
|
|
97
|
+
assertReady(): void;
|
|
98
|
+
environment(base?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
99
|
+
/** Attach immediately after spawn. Never attach an existing/unowned process. */
|
|
100
|
+
attach(child: ChildProcess): void;
|
|
101
|
+
loaded(): Promise<NolCudaPlacement>;
|
|
102
|
+
/** Before any allocation growth, including the first trial KV allocation. */
|
|
103
|
+
prepare(totalMiB: number): Promise<void>;
|
|
104
|
+
stop(): void;
|
|
105
|
+
/** Call only after the process owner has observed child close. Failed releases
|
|
106
|
+
* remain retryable, keep heartbeat and never announce allocationsReleased. */
|
|
107
|
+
settle(): Promise<void>;
|
|
108
|
+
private release;
|
|
109
|
+
}
|
|
110
|
+
export declare function nolCudaOwner(jobId: string, generation: number): string;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** This is a host-private mutation journal, not a broker lease/token store.
|
|
2
|
+
* A terminal receipt proves that this acquire cannot later grant; it does not
|
|
3
|
+
* prove that an already granted reservation or CUDA allocation has gone away.
|
|
4
|
+
* No elapsed timeout or empty telemetry snapshot changes a pending record. */
|
|
5
|
+
export interface NolCudaMutationRequest {
|
|
6
|
+
ownerId: string;
|
|
7
|
+
gpuUuid: string;
|
|
8
|
+
requestedMiB: number;
|
|
9
|
+
modelId: string;
|
|
10
|
+
expectedDurationSeconds: number;
|
|
11
|
+
}
|
|
12
|
+
export interface NolCudaMutationSummary {
|
|
13
|
+
schema: "omnius.nol.cuda-mutation-summary.v1";
|
|
14
|
+
ownerPrefix: string;
|
|
15
|
+
complete: boolean;
|
|
16
|
+
matching: number;
|
|
17
|
+
terminal: number;
|
|
18
|
+
pending: number;
|
|
19
|
+
unknown: string[];
|
|
20
|
+
}
|
|
21
|
+
type State = "may_have_been_sent" | "not_sent" | "refused" | "granted";
|
|
22
|
+
export interface NolCudaMutationTicket {
|
|
23
|
+
readonly mutationId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface NolCudaMutationJournal {
|
|
26
|
+
begin(request: NolCudaMutationRequest): Promise<NolCudaMutationTicket>;
|
|
27
|
+
finish(ticket: NolCudaMutationTicket, state: Exclude<State, "may_have_been_sent">): Promise<void>;
|
|
28
|
+
inspect(ownerPrefix: string, signal?: AbortSignal): Promise<NolCudaMutationSummary>;
|
|
29
|
+
}
|
|
30
|
+
/** Inert construction. Storage is bounded to 4096 8-KiB records plus one
|
|
31
|
+
* fixed-size atomic update per record. Exhaustion fails before another send.
|
|
32
|
+
* No records are discarded merely because leases disappeared or time elapsed. */
|
|
33
|
+
export declare function createNolCudaMutationJournal(root?: string): NolCudaMutationJournal;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { NolExportExecutionProfile } from "./export-service.js";
|
|
3
|
+
export declare const NolExportRuntimeConfigSchema: z.ZodObject<{
|
|
4
|
+
schema: z.ZodLiteral<"omnius.nol.export-runtime.v1">;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
workRoot: z.ZodString;
|
|
7
|
+
limits: z.ZodObject<{
|
|
8
|
+
maxJobs: z.ZodNumber;
|
|
9
|
+
maxOutputBytesPerJob: z.ZodNumber;
|
|
10
|
+
maxMetadataBytesPerJob: z.ZodNumber;
|
|
11
|
+
maxTotalStorageBytes: z.ZodNumber;
|
|
12
|
+
minimumFreeBytes: z.ZodNumber;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
profiles: z.ZodArray<z.ZodDiscriminatedUnion<[
|
|
15
|
+
z.ZodObject<{
|
|
16
|
+
exporter: z.ZodLiteral<"checkpoint">;
|
|
17
|
+
editorPath: z.ZodString;
|
|
18
|
+
expectedEditorSha256: z.ZodString;
|
|
19
|
+
limits: z.ZodObject<{
|
|
20
|
+
maxInputBytes: z.ZodNumber;
|
|
21
|
+
maxArtifactBytes: z.ZodNumber;
|
|
22
|
+
maxOutputBytes: z.ZodNumber;
|
|
23
|
+
maxWorkingBytes: z.ZodNumber;
|
|
24
|
+
maxArithmeticUnits: z.ZodNumber;
|
|
25
|
+
maxOperations: z.ZodNumber;
|
|
26
|
+
maxDurationMs: z.ZodNumber;
|
|
27
|
+
maxProtocolBytes: z.ZodNumber;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
pythonPath: z.ZodString;
|
|
31
|
+
checkpointBindings: z.ZodArray<z.ZodObject<{
|
|
32
|
+
modelDigest: z.ZodString;
|
|
33
|
+
checkpointRoot: z.ZodString;
|
|
34
|
+
}, z.core.$strict>>;
|
|
35
|
+
}, z.core.$strict>,
|
|
36
|
+
z.ZodObject<{
|
|
37
|
+
exporter: z.ZodLiteral<"gguf">;
|
|
38
|
+
editorPath: z.ZodString;
|
|
39
|
+
expectedEditorSha256: z.ZodString;
|
|
40
|
+
dependencyLockPath: z.ZodString;
|
|
41
|
+
runtime: z.ZodObject<{
|
|
42
|
+
schema: z.ZodLiteral<"omnius.nol.gguf-editor-runtime.v1">;
|
|
43
|
+
runtimeDigest: z.ZodString;
|
|
44
|
+
pythonVersion: z.ZodString;
|
|
45
|
+
pythonExecutable: z.ZodObject<{
|
|
46
|
+
sha256: z.ZodString;
|
|
47
|
+
sizeBytes: z.ZodNumber;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
version: z.ZodString;
|
|
52
|
+
files: z.ZodArray<z.ZodObject<{
|
|
53
|
+
sha256: z.ZodString;
|
|
54
|
+
sizeBytes: z.ZodNumber;
|
|
55
|
+
path: z.ZodString;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
dependencyLock: z.ZodObject<{
|
|
59
|
+
sha256: z.ZodString;
|
|
60
|
+
sizeBytes: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
limits: z.ZodObject<{
|
|
64
|
+
maxInputBytes: z.ZodNumber;
|
|
65
|
+
maxArtifactBytes: z.ZodNumber;
|
|
66
|
+
maxOutputBytes: z.ZodNumber;
|
|
67
|
+
maxWorkingBytes: z.ZodNumber;
|
|
68
|
+
maxArithmeticUnits: z.ZodNumber;
|
|
69
|
+
maxOperations: z.ZodNumber;
|
|
70
|
+
maxDurationMs: z.ZodNumber;
|
|
71
|
+
maxProtocolBytes: z.ZodNumber;
|
|
72
|
+
maxMetadataBytes: z.ZodNumber;
|
|
73
|
+
maxTensors: z.ZodNumber;
|
|
74
|
+
maxKeyValues: z.ZodNumber;
|
|
75
|
+
maxArrayElements: z.ZodNumber;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
pythonPath: z.ZodString;
|
|
79
|
+
checkpointBindings: z.ZodArray<z.ZodObject<{
|
|
80
|
+
modelDigest: z.ZodString;
|
|
81
|
+
checkpointRoot: z.ZodString;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
}, z.core.$strict>,
|
|
84
|
+
z.ZodObject<{
|
|
85
|
+
exporter: z.ZodLiteral<"lora">;
|
|
86
|
+
exporterPath: z.ZodString;
|
|
87
|
+
expectedExporterSha256: z.ZodString;
|
|
88
|
+
checkpointEditorPath: z.ZodString;
|
|
89
|
+
expectedCheckpointEditorSha256: z.ZodString;
|
|
90
|
+
limits: z.ZodObject<{
|
|
91
|
+
maxInputBytes: z.ZodNumber;
|
|
92
|
+
maxArtifactBytes: z.ZodNumber;
|
|
93
|
+
maxOutputBytes: z.ZodNumber;
|
|
94
|
+
maxWorkingBytes: z.ZodNumber;
|
|
95
|
+
maxArithmeticUnits: z.ZodNumber;
|
|
96
|
+
maxOperations: z.ZodNumber;
|
|
97
|
+
maxDurationMs: z.ZodNumber;
|
|
98
|
+
maxProtocolBytes: z.ZodNumber;
|
|
99
|
+
maxRank: z.ZodNumber;
|
|
100
|
+
maxModules: z.ZodNumber;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
pythonPath: z.ZodString;
|
|
104
|
+
checkpointBindings: z.ZodArray<z.ZodObject<{
|
|
105
|
+
modelDigest: z.ZodString;
|
|
106
|
+
checkpointRoot: z.ZodString;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>
|
|
109
|
+
], "exporter">>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
export type NolExportRuntimeConfig = z.infer<typeof NolExportRuntimeConfigSchema>;
|
|
112
|
+
/** Pure host configuration lowering. Import and construction start no Python,
|
|
113
|
+
* package installation, model load, CUDA work or checkpoint inspection. */
|
|
114
|
+
export declare function nolExportProfilesFromConfig(input: NolExportRuntimeConfig, assertCurrent: () => void): NolExportExecutionProfile[];
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { type NolArtifactRef, type NolModelManifest, type NolRecipeRevision } from "../_types/schemas/nol.js";
|
|
2
|
+
import { type NolExportPlan } from "../_types/schemas/nol-assets.js";
|
|
3
|
+
import { type NolArtifactStore } from "../_types/execution/nol/artifacts.js";
|
|
4
|
+
import { type NolGgufEditorRuntime } from "../_types/execution/nol/gguf-checkpoint-edits.js";
|
|
5
|
+
import type { NolJob, NolStore } from "../_types/orchestrator/nol/store.js";
|
|
6
|
+
export declare const NOL_EXPORT_JOB_KIND = "nol_asset_export";
|
|
7
|
+
/** All executable paths, runtime pins and root resolution originate in the host.
|
|
8
|
+
* No export plan can provide Python, a filesystem path, an executor or a hook. */
|
|
9
|
+
interface ProfileBase {
|
|
10
|
+
id: string;
|
|
11
|
+
pythonPath: string;
|
|
12
|
+
limits: NolExportPlan["limits"];
|
|
13
|
+
resolveCheckpoint(model: NolModelManifest, signal: AbortSignal): Promise<string>;
|
|
14
|
+
assertCurrent(): void;
|
|
15
|
+
}
|
|
16
|
+
export type NolExportExecutionProfile = ProfileBase & ({
|
|
17
|
+
exporter: "checkpoint";
|
|
18
|
+
editorPath: string;
|
|
19
|
+
expectedEditorSha256: string;
|
|
20
|
+
} | {
|
|
21
|
+
exporter: "gguf";
|
|
22
|
+
editorPath: string;
|
|
23
|
+
expectedEditorSha256: string;
|
|
24
|
+
dependencyLockPath: string;
|
|
25
|
+
runtime: NolGgufEditorRuntime;
|
|
26
|
+
} | {
|
|
27
|
+
exporter: "lora";
|
|
28
|
+
exporterPath: string;
|
|
29
|
+
expectedExporterSha256: string;
|
|
30
|
+
checkpointEditorPath: string;
|
|
31
|
+
expectedCheckpointEditorSha256: string;
|
|
32
|
+
});
|
|
33
|
+
export interface NolExportContext {
|
|
34
|
+
actorId: string;
|
|
35
|
+
assertAuthorized(): void;
|
|
36
|
+
signal?: AbortSignal;
|
|
37
|
+
}
|
|
38
|
+
export interface NolExportExecutionInput {
|
|
39
|
+
/** Trusted host path, absent from the frozen JSON plan/profile. */
|
|
40
|
+
onFailureDiagnostic?(value: unknown): Promise<void>;
|
|
41
|
+
plan: NolExportPlan;
|
|
42
|
+
profile: NolExportExecutionProfile;
|
|
43
|
+
model: NolModelManifest;
|
|
44
|
+
recipe: NolRecipeRevision;
|
|
45
|
+
checkpointRoot: string;
|
|
46
|
+
sourceCheckpoints: Array<{
|
|
47
|
+
model: NolModelManifest;
|
|
48
|
+
root: string;
|
|
49
|
+
}>;
|
|
50
|
+
artifactRoot: string;
|
|
51
|
+
outputDirectory: string;
|
|
52
|
+
signal: AbortSignal;
|
|
53
|
+
}
|
|
54
|
+
export interface NolExportExecutionResult {
|
|
55
|
+
outputDirectory: string;
|
|
56
|
+
model: NolModelManifest;
|
|
57
|
+
receipt: {
|
|
58
|
+
parentModelDigest: string;
|
|
59
|
+
recipeDigest: string;
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
receiptArtifact: NolArtifactRef;
|
|
63
|
+
receiptPath: string;
|
|
64
|
+
}
|
|
65
|
+
export interface NolExportResult {
|
|
66
|
+
schema: "omnius.nol.export-result.v1";
|
|
67
|
+
projectId: string;
|
|
68
|
+
jobId: string;
|
|
69
|
+
generation: number;
|
|
70
|
+
planDigest: string;
|
|
71
|
+
plan: NolArtifactRef;
|
|
72
|
+
executionProfileDigest: string;
|
|
73
|
+
artifactKind: "checkpoint" | "adapter";
|
|
74
|
+
model: NolArtifactRef;
|
|
75
|
+
modelDigest: string;
|
|
76
|
+
recipe: NolArtifactRef;
|
|
77
|
+
parents: Array<{
|
|
78
|
+
model: NolArtifactRef;
|
|
79
|
+
modelDigest: string;
|
|
80
|
+
}>;
|
|
81
|
+
receipt: NolArtifactRef;
|
|
82
|
+
files: NolModelManifest["files"];
|
|
83
|
+
scientificVerdict: "unvalidated";
|
|
84
|
+
activationAuthorized: false;
|
|
85
|
+
}
|
|
86
|
+
export interface NolExportServiceOptions {
|
|
87
|
+
id: string;
|
|
88
|
+
projectRoot: string;
|
|
89
|
+
workRoot: string;
|
|
90
|
+
store: NolStore;
|
|
91
|
+
artifacts: NolArtifactStore;
|
|
92
|
+
ownerId: string;
|
|
93
|
+
profiles: readonly NolExportExecutionProfile[];
|
|
94
|
+
limits: {
|
|
95
|
+
maxJobs: number;
|
|
96
|
+
maxOutputBytesPerJob: number;
|
|
97
|
+
maxMetadataBytesPerJob: number;
|
|
98
|
+
maxTotalStorageBytes: number;
|
|
99
|
+
minimumFreeBytes: number;
|
|
100
|
+
};
|
|
101
|
+
leaseMs?: number;
|
|
102
|
+
/** Trusted embedding-host seam. The shipped default executes the pinned
|
|
103
|
+
* CPU exporters; this callback is never accepted from a plan or transport. */
|
|
104
|
+
execute?: (input: NolExportExecutionInput) => Promise<NolExportExecutionResult>;
|
|
105
|
+
}
|
|
106
|
+
/** CPU export jobs with bounded, nonrefundable durable storage admission.
|
|
107
|
+
* Each immutable slot reserves a complete worst-case output directory AND CAS
|
|
108
|
+
* copy before execution. Known CAS references then receive normal transactional
|
|
109
|
+
* reservations before publication. Slots survive failures, orphaned output and
|
|
110
|
+
* service reopen; this is not an assertion of a system-wide disk reservation. */
|
|
111
|
+
export declare class NolExportService {
|
|
112
|
+
private readonly options;
|
|
113
|
+
readonly projectId: string;
|
|
114
|
+
readonly scopeDigest: string;
|
|
115
|
+
private readonly root;
|
|
116
|
+
private readonly workRoot;
|
|
117
|
+
private readonly scope;
|
|
118
|
+
private readonly scopeId;
|
|
119
|
+
private readonly profiles;
|
|
120
|
+
private readonly ownerId;
|
|
121
|
+
private readonly leaseMs;
|
|
122
|
+
private readonly limits;
|
|
123
|
+
private readonly casQuota;
|
|
124
|
+
private readonly active;
|
|
125
|
+
private closing;
|
|
126
|
+
constructor(options: NolExportServiceOptions);
|
|
127
|
+
get ownedJobIds(): string[];
|
|
128
|
+
private assertScope;
|
|
129
|
+
private authorize;
|
|
130
|
+
private profile;
|
|
131
|
+
private admission;
|
|
132
|
+
submit(input: unknown, context: NolExportContext): NolJob;
|
|
133
|
+
run(jobId: string, context: NolExportContext): Promise<NolJob>;
|
|
134
|
+
cancel(jobId: string, actorId: string, reason?: string): NolJob;
|
|
135
|
+
stopOwned(actorId: string, reason?: string): Promise<void>;
|
|
136
|
+
shutdown(): Promise<void>;
|
|
137
|
+
private current;
|
|
138
|
+
private space;
|
|
139
|
+
private execute;
|
|
140
|
+
result(jobId: string, context: NolExportContext): Promise<NolExportResult>;
|
|
141
|
+
}
|
|
142
|
+
export declare function executeNolExport(input: NolExportExecutionInput): Promise<NolExportExecutionResult>;
|
|
143
|
+
export {};
|