omnius 1.0.939 → 1.0.941
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/orchestrator/agenticRunner.d.ts +11 -0
- package/dist/index.js +2 -2
- package/dist/library.js +306 -140
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -344629,7 +344629,7 @@ __export(preflightSnapshot_exports, {
|
|
|
344629
344629
|
import { existsSync as existsSync59, readFileSync as readFileSync65, statSync as statSync32, statfsSync as statfsSync4 } from "node:fs";
|
|
344630
344630
|
import { homedir as homedir21, platform as platform3, arch, totalmem as totalmem4, freemem as freemem3, hostname } from "node:os";
|
|
344631
344631
|
import { join as join75 } from "node:path";
|
|
344632
|
-
import { createHash as
|
|
344632
|
+
import { createHash as createHash125 } from "node:crypto";
|
|
344633
344633
|
function capturePreflightSnapshot(workingDir) {
|
|
344634
344634
|
const warnings = [];
|
|
344635
344635
|
const configFingerprints = {};
|
|
@@ -344798,7 +344798,7 @@ function expandPath(p) {
|
|
|
344798
344798
|
return p;
|
|
344799
344799
|
}
|
|
344800
344800
|
function sha2569(s) {
|
|
344801
|
-
return
|
|
344801
|
+
return createHash125("sha256").update(s).digest("hex").slice(0, 16);
|
|
344802
344802
|
}
|
|
344803
344803
|
function freeDiskBytes(path13 = "/tmp") {
|
|
344804
344804
|
try {
|
|
@@ -353765,7 +353765,7 @@ var gne_conformance_exports = {};
|
|
|
353765
353765
|
__export(gne_conformance_exports, {
|
|
353766
353766
|
verifyNolGneConformanceCapture: () => verifyNolGneConformanceCapture
|
|
353767
353767
|
});
|
|
353768
|
-
import { createHash as
|
|
353768
|
+
import { createHash as createHash134 } from "node:crypto";
|
|
353769
353769
|
function need4(condition, message3) {
|
|
353770
353770
|
if (!condition) throw new Error(`GNE capture ${message3}`);
|
|
353771
353771
|
}
|
|
@@ -354369,7 +354369,7 @@ var init_gne_conformance = __esm({
|
|
|
354369
354369
|
"restored_target",
|
|
354370
354370
|
"vector"
|
|
354371
354371
|
];
|
|
354372
|
-
hash22 = (bytes5) =>
|
|
354372
|
+
hash22 = (bytes5) => createHash134("sha256").update(bytes5).digest("hex");
|
|
354373
354373
|
CRC_TABLE = Uint32Array.from({ length: 256 }, (_, value) => {
|
|
354374
354374
|
let crc = value;
|
|
354375
354375
|
for (let bit = 0; bit < 8; bit++)
|
|
@@ -400892,6 +400892,24 @@ function tokenLooksPathSensitive(token5) {
|
|
|
400892
400892
|
function isPathSensitiveFix(fix) {
|
|
400893
400893
|
return [...fix.from ?? [], ...fix.to ?? []].some(tokenLooksPathSensitive);
|
|
400894
400894
|
}
|
|
400895
|
+
var DESTRUCTIVE_PROGRAMS = /* @__PURE__ */ new Set([
|
|
400896
|
+
"rm",
|
|
400897
|
+
"rmdir",
|
|
400898
|
+
"unlink",
|
|
400899
|
+
"shred",
|
|
400900
|
+
"dd",
|
|
400901
|
+
"mkfs",
|
|
400902
|
+
"truncate",
|
|
400903
|
+
"wipefs",
|
|
400904
|
+
"kill",
|
|
400905
|
+
"pkill",
|
|
400906
|
+
"killall"
|
|
400907
|
+
]);
|
|
400908
|
+
function isDestructiveFix(fix) {
|
|
400909
|
+
const before = new Set(fix.from ?? []);
|
|
400910
|
+
const added = (fix.to ?? []).filter((token5) => !before.has(token5));
|
|
400911
|
+
return added.some((token5) => DESTRUCTIVE_PROGRAMS.has(token5) || /^mkfs(\.|$)/.test(token5) || token5 === "--hard" || token5 === "--force" || token5 === "-rf" || token5 === "-fr");
|
|
400912
|
+
}
|
|
400895
400913
|
function isNearVariant(a, b) {
|
|
400896
400914
|
if (a.length === 0 || b.length === 0)
|
|
400897
400915
|
return false;
|
|
@@ -400924,7 +400942,7 @@ var ResolutionMemory = class {
|
|
|
400924
400942
|
/** Load prior fixes (cross-session). */
|
|
400925
400943
|
loadFixes(fixes) {
|
|
400926
400944
|
for (const f of fixes) {
|
|
400927
|
-
if (Array.isArray(f.from) && Array.isArray(f.to) && f.from.length > 0 && !isPathSensitiveFix(f)) {
|
|
400945
|
+
if (Array.isArray(f.from) && Array.isArray(f.to) && f.from.length > 0 && !isPathSensitiveFix(f) && !isDestructiveFix(f)) {
|
|
400928
400946
|
this.fixes.push(f);
|
|
400929
400947
|
}
|
|
400930
400948
|
}
|
|
@@ -400973,7 +400991,7 @@ var ResolutionMemory = class {
|
|
|
400973
400991
|
const delta = computeDelta(fail6.tokens, workedTokens);
|
|
400974
400992
|
if (!delta)
|
|
400975
400993
|
continue;
|
|
400976
|
-
if (isPathSensitiveFix(delta)) {
|
|
400994
|
+
if (isPathSensitiveFix(delta) || isDestructiveFix(delta)) {
|
|
400977
400995
|
this.recentFailures.splice(i, 1);
|
|
400978
400996
|
return null;
|
|
400979
400997
|
}
|
|
@@ -401013,7 +401031,7 @@ var ResolutionMemory = class {
|
|
|
401013
401031
|
const tokens3 = new Set(tokenize5(command));
|
|
401014
401032
|
let best = null;
|
|
401015
401033
|
for (const f of this.fixes) {
|
|
401016
|
-
if (isPathSensitiveFix(f))
|
|
401034
|
+
if (isPathSensitiveFix(f) || isDestructiveFix(f))
|
|
401017
401035
|
continue;
|
|
401018
401036
|
if (f.from.every((t) => tokens3.has(t))) {
|
|
401019
401037
|
if (!best || f.count > best.count)
|
|
@@ -402060,6 +402078,100 @@ function reopenTaskEffectStateEvidence(input2) {
|
|
|
402060
402078
|
};
|
|
402061
402079
|
}
|
|
402062
402080
|
|
|
402081
|
+
// packages/orchestrator/dist/loop-triage.js
|
|
402082
|
+
import { createHash as createHash124 } from "node:crypto";
|
|
402083
|
+
var LOOP_TRIAGE_STREAK = 3;
|
|
402084
|
+
var LOOP_TRIAGE_REVIEW_HEADER = "[OMNIUS RUN REVIEW — independent second opinion on this run from the Omnius triage reviewer; this is the harness, not the user]";
|
|
402085
|
+
function toolPairs(messages4) {
|
|
402086
|
+
const results = /* @__PURE__ */ new Map();
|
|
402087
|
+
for (const message3 of messages4) {
|
|
402088
|
+
if (message3.role === "tool" && message3.tool_call_id) {
|
|
402089
|
+
results.set(message3.tool_call_id, typeof message3.content === "string" ? message3.content : "");
|
|
402090
|
+
}
|
|
402091
|
+
}
|
|
402092
|
+
const pairs = [];
|
|
402093
|
+
for (const message3 of messages4) {
|
|
402094
|
+
if (message3.role !== "assistant" || !message3.tool_calls?.length)
|
|
402095
|
+
continue;
|
|
402096
|
+
for (const call3 of message3.tool_calls) {
|
|
402097
|
+
const raw = call3.function.arguments;
|
|
402098
|
+
const args = typeof raw === "string" ? raw : JSON.stringify(raw ?? {});
|
|
402099
|
+
pairs.push({ tool: call3.function.name, args, result: results.get(call3.id) ?? "" });
|
|
402100
|
+
}
|
|
402101
|
+
}
|
|
402102
|
+
return pairs;
|
|
402103
|
+
}
|
|
402104
|
+
function repeatedCallStreak(messages4, threshold = LOOP_TRIAGE_STREAK) {
|
|
402105
|
+
const pairs = toolPairs(messages4);
|
|
402106
|
+
const last = pairs.at(-1);
|
|
402107
|
+
if (!last)
|
|
402108
|
+
return null;
|
|
402109
|
+
let count8 = 0;
|
|
402110
|
+
for (let index = pairs.length - 1; index >= 0; index--) {
|
|
402111
|
+
if (pairs[index].tool !== last.tool || pairs[index].args !== last.args)
|
|
402112
|
+
break;
|
|
402113
|
+
count8++;
|
|
402114
|
+
}
|
|
402115
|
+
if (count8 < threshold)
|
|
402116
|
+
return null;
|
|
402117
|
+
const key = createHash124("sha256").update(`${last.tool}\0${last.args}`).digest("hex").slice(0, 16);
|
|
402118
|
+
return { key, count: count8 };
|
|
402119
|
+
}
|
|
402120
|
+
function oneLine(value, limit2) {
|
|
402121
|
+
return value.replace(/\s+/g, " ").trim().slice(0, limit2);
|
|
402122
|
+
}
|
|
402123
|
+
function collapsedTrajectory(messages4, maxLines = 40) {
|
|
402124
|
+
const lines = [];
|
|
402125
|
+
let previousIdentity = "", previousLine = "", repeats = 0;
|
|
402126
|
+
const flush = () => {
|
|
402127
|
+
if (previousLine)
|
|
402128
|
+
lines.push(previousLine + (repeats > 1 ? ` (x${repeats}, same call each time)` : ""));
|
|
402129
|
+
};
|
|
402130
|
+
for (const pair of toolPairs(messages4)) {
|
|
402131
|
+
const identity9 = `${pair.tool}\0${pair.args}`;
|
|
402132
|
+
if (identity9 === previousIdentity) {
|
|
402133
|
+
repeats++;
|
|
402134
|
+
continue;
|
|
402135
|
+
}
|
|
402136
|
+
flush();
|
|
402137
|
+
previousIdentity = identity9;
|
|
402138
|
+
previousLine = `- ${pair.tool}: ${oneLine(pair.args, 220)} -> ${oneLine(pair.result.slice(-400), 160)}`;
|
|
402139
|
+
repeats = 1;
|
|
402140
|
+
}
|
|
402141
|
+
flush();
|
|
402142
|
+
return lines.slice(-maxLines).join("\n");
|
|
402143
|
+
}
|
|
402144
|
+
function buildLoopTriagePrompt(goal, messages4) {
|
|
402145
|
+
return [
|
|
402146
|
+
"You are an independent triage reviewer auditing another agent's live run. You do not do the task yourself.",
|
|
402147
|
+
`The agent's current request from the user: "${oneLine(goal, 600)}"`,
|
|
402148
|
+
"Here is the agent's tool trajectory so far, oldest first, consecutive identical calls collapsed:",
|
|
402149
|
+
"",
|
|
402150
|
+
collapsedTrajectory(messages4),
|
|
402151
|
+
"",
|
|
402152
|
+
"Assess what appears to have happened in this run: what has actually been accomplished toward the request, what the agent appears to be stuck on and why, and what the single most useful next step is to move the user's request forward (or whether it should report back to the user). Be concrete and specific to this run. Reply in under 150 words, addressed to the agent as a second opinion."
|
|
402153
|
+
].join("\n");
|
|
402154
|
+
}
|
|
402155
|
+
function withLoopTriageReview(messages4, review) {
|
|
402156
|
+
const next = [...messages4];
|
|
402157
|
+
const lastTool = next.map((message3) => message3.role).lastIndexOf("tool");
|
|
402158
|
+
const body = typeof review.content === "string" ? review.content.slice(LOOP_TRIAGE_REVIEW_HEADER.length).trim() : "";
|
|
402159
|
+
const target2 = lastTool >= 0 ? next[lastTool] : void 0;
|
|
402160
|
+
if (target2 && typeof target2.content === "string" && body) {
|
|
402161
|
+
next[lastTool] = { ...target2, content: `${target2.content}
|
|
402162
|
+
|
|
402163
|
+
[TRIAGE REVIEW — second opinion from an independent reviewer of this run]
|
|
402164
|
+
${body}` };
|
|
402165
|
+
}
|
|
402166
|
+
next.push(review);
|
|
402167
|
+
return next;
|
|
402168
|
+
}
|
|
402169
|
+
function loopTriageReviewMessage(review) {
|
|
402170
|
+
const text18 = review.replace(/<think>[\s\S]*?<\/think>/g, "").trim().slice(0, 2400);
|
|
402171
|
+
return text18 ? { role: "user", content: `${LOOP_TRIAGE_REVIEW_HEADER}
|
|
402172
|
+
${text18}` } : null;
|
|
402173
|
+
}
|
|
402174
|
+
|
|
402063
402175
|
// packages/orchestrator/dist/completionChallenge.js
|
|
402064
402176
|
var hash18 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
|
|
402065
402177
|
function identity6(scope2) {
|
|
@@ -402684,8 +402796,8 @@ function buildFallbackSemanticChunks(items, maxChunks = 7) {
|
|
|
402684
402796
|
continue;
|
|
402685
402797
|
const rawChars = bucketItems.reduce((sum2, item) => sum2 + item.content.length, 0);
|
|
402686
402798
|
const lines = bucketItems.slice(0, 5).map((item) => {
|
|
402687
|
-
const
|
|
402688
|
-
return `- ${item.label}: ${
|
|
402799
|
+
const oneLine2 = item.content.replace(/\s+/g, " ").trim();
|
|
402800
|
+
return `- ${item.label}: ${oneLine2.slice(0, 360)}`;
|
|
402689
402801
|
});
|
|
402690
402802
|
const content = normalizeContextSnippet(lines.join("\n"), 850);
|
|
402691
402803
|
chunks.push({
|
|
@@ -403567,6 +403679,10 @@ var AgenticRunner = class _AgenticRunner {
|
|
|
403567
403679
|
// Loop Intervention escalation path. Reset when repetition score
|
|
403568
403680
|
// drops below the recovery threshold (0.2).
|
|
403569
403681
|
_smaFiredThisLoop = false;
|
|
403682
|
+
/** Second opinion for the current identical-call streak; see loop-triage.ts. */
|
|
403683
|
+
_loopTriage = null;
|
|
403684
|
+
_loopTriageActiveKey = null;
|
|
403685
|
+
_loopTriageAttemptedKeys = /* @__PURE__ */ new Set();
|
|
403570
403686
|
// ROOT CAUSE FIX: one-shot system note describing restored-todo claims that
|
|
403571
403687
|
// were contradicted by the disk at session start. Injected into the initial
|
|
403572
403688
|
// context so the model starts from a truthful world model instead of
|
|
@@ -419726,12 +419842,12 @@ ${blob}
|
|
|
419726
419842
|
}
|
|
419727
419843
|
_formatExactArgValue(value) {
|
|
419728
419844
|
const canonical9 = this._canonicalArgValue(value);
|
|
419729
|
-
const
|
|
419730
|
-
if (
|
|
419731
|
-
return this._escapeArgsKeyValue(
|
|
419845
|
+
const oneLine2 = canonical9.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
|
|
419846
|
+
if (oneLine2.length <= 240) {
|
|
419847
|
+
return this._escapeArgsKeyValue(oneLine2);
|
|
419732
419848
|
}
|
|
419733
|
-
const head =
|
|
419734
|
-
const tail =
|
|
419849
|
+
const head = oneLine2.slice(0, 160);
|
|
419850
|
+
const tail = oneLine2.slice(-40);
|
|
419735
419851
|
const hash41 = _createHash("sha256").update(canonical9).digest("hex").slice(0, 20);
|
|
419736
419852
|
return `${this._escapeArgsKeyValue(head)}...${this._escapeArgsKeyValue(tail)}#sha256:${hash41}`;
|
|
419737
419853
|
}
|
|
@@ -434645,8 +434761,8 @@ State what you've learned from the errors before trying again.`);
|
|
|
434645
434761
|
if (process.env["OMNIUS_DISABLE_ADAPTIVE_RETRIEVAL"] !== "1") {
|
|
434646
434762
|
const goalForSig = (this._taskState.goal || "").slice(0, 200);
|
|
434647
434763
|
const recentTools = this._toolSequence.slice(-5).join("|");
|
|
434648
|
-
const { createHash:
|
|
434649
|
-
const sig =
|
|
434764
|
+
const { createHash: createHash174 } = await import("node:crypto");
|
|
434765
|
+
const sig = createHash174("sha256").update(`${goalForSig}::${recentTools}`).digest("hex").slice(0, 16);
|
|
434650
434766
|
if (this._lastPprSig === sig && this._lastPprMemoryLines.length > 0) {
|
|
434651
434767
|
compacted.push({
|
|
434652
434768
|
role: "system",
|
|
@@ -434848,6 +434964,9 @@ ${memoryLines.join("\n")}`
|
|
|
434848
434964
|
if (this._toolDefsExposureRevision !== this._toolExposureRevision) {
|
|
434849
434965
|
toolDefs = textToolModeActive ? [] : await this.buildToolDefinitions(turn);
|
|
434850
434966
|
}
|
|
434967
|
+
if (this._loopTriage && this._loopTriageActiveKey === this._loopTriage.key) {
|
|
434968
|
+
requestMessages2 = withLoopTriageReview(requestMessages2, this._loopTriage.message);
|
|
434969
|
+
}
|
|
434851
434970
|
const chatRequest = {
|
|
434852
434971
|
messages: requestMessages2,
|
|
434853
434972
|
tools: reservedFinalConversationTurn ? [] : toolDefs,
|
|
@@ -435831,6 +435950,7 @@ ${transportFailure2}` : transportFailure2;
|
|
|
435831
435950
|
this._finishNegativeObservationProposalTurn(turn, msg.toolCalls.length);
|
|
435832
435951
|
if (completed || this._completionIncompleteVerification)
|
|
435833
435952
|
break;
|
|
435953
|
+
await this._refreshLoopTriageReview(messages4, turn);
|
|
435834
435954
|
const currentRepScore = this.detectRepetition(toolCallLog);
|
|
435835
435955
|
if (currentRepScore > 0.4 && toolCallLog.length >= 4) {
|
|
435836
435956
|
const { repetitionWindow } = this.contextLimits();
|
|
@@ -441379,6 +441499,52 @@ ${trimmedNew}`;
|
|
|
441379
441499
|
}
|
|
441380
441500
|
}
|
|
441381
441501
|
}
|
|
441502
|
+
/**
|
|
441503
|
+
* Ask an independent reviewer, once per streak, what appears to have
|
|
441504
|
+
* happened when the run keeps issuing the same call. Its diagnosis is the
|
|
441505
|
+
* reviewer's own prose about this run, not a host directive; it is shown
|
|
441506
|
+
* only while the streak lasts and never changes tools or completion rules.
|
|
441507
|
+
*/
|
|
441508
|
+
async _refreshLoopTriageReview(messages4, turn) {
|
|
441509
|
+
const streak = repeatedCallStreak(messages4);
|
|
441510
|
+
this._loopTriageActiveKey = streak?.key ?? null;
|
|
441511
|
+
if (!streak) {
|
|
441512
|
+
this._loopTriage = null;
|
|
441513
|
+
return;
|
|
441514
|
+
}
|
|
441515
|
+
if (this._loopTriage?.key === streak.key || this._loopTriageAttemptedKeys.has(streak.key))
|
|
441516
|
+
return;
|
|
441517
|
+
this._loopTriageAttemptedKeys.add(streak.key);
|
|
441518
|
+
const goal = this._taskState.originalGoal || this._taskState.goal || "";
|
|
441519
|
+
try {
|
|
441520
|
+
const response = await this._dispatchInterruptionOwnedModelRequest(this.backend, {
|
|
441521
|
+
messages: [{ role: "user", content: buildLoopTriagePrompt(goal, messages4) }],
|
|
441522
|
+
tools: [],
|
|
441523
|
+
temperature: 0.3,
|
|
441524
|
+
maxTokens: 6e3,
|
|
441525
|
+
timeoutMs: 18e4,
|
|
441526
|
+
think: true
|
|
441527
|
+
}, "model:loop_triage", { turn });
|
|
441528
|
+
const message3 = loopTriageReviewMessage(String(response?.choices?.[0]?.message?.content ?? ""));
|
|
441529
|
+
if (message3)
|
|
441530
|
+
this._loopTriage = { key: streak.key, message: message3 };
|
|
441531
|
+
this.emit({
|
|
441532
|
+
type: "status",
|
|
441533
|
+
visibility: "telemetry",
|
|
441534
|
+
turn,
|
|
441535
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
441536
|
+
content: message3 ? `Loop triage: second opinion recorded after ${streak.count} identical calls` : `Loop triage: reviewer returned no assessment after ${streak.count} identical calls`
|
|
441537
|
+
});
|
|
441538
|
+
} catch (error) {
|
|
441539
|
+
this.emit({
|
|
441540
|
+
type: "status",
|
|
441541
|
+
visibility: "telemetry",
|
|
441542
|
+
turn,
|
|
441543
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
441544
|
+
content: `Loop triage unavailable (non-fatal): ${error instanceof Error ? error.message : String(error)}`
|
|
441545
|
+
});
|
|
441546
|
+
}
|
|
441547
|
+
}
|
|
441382
441548
|
_recordLoopRecoveryAdvisory(input2) {
|
|
441383
441549
|
this._refreshLoopRecoveryAdvisory();
|
|
441384
441550
|
if (this._objectiveLastDelta?.materiallyChanged || this._objectiveLastDelta?.preparatoryProgress)
|
|
@@ -447198,17 +447364,17 @@ var WORKER_PREAMBLE = [
|
|
|
447198
447364
|
// packages/orchestrator/dist/nol/datasets.js
|
|
447199
447365
|
init_dist();
|
|
447200
447366
|
init_dist5();
|
|
447201
|
-
import { createHash as
|
|
447367
|
+
import { createHash as createHash126 } from "node:crypto";
|
|
447202
447368
|
var nolCanonicalJson = canonicalNolJson;
|
|
447203
447369
|
function nolDigest(value) {
|
|
447204
|
-
return
|
|
447370
|
+
return createHash126("sha256").update(nolCanonicalJson(value)).digest("hex");
|
|
447205
447371
|
}
|
|
447206
447372
|
|
|
447207
447373
|
// packages/orchestrator/dist/nol/evaluation.js
|
|
447208
447374
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
447209
447375
|
var import__ = __toESM(require__(), 1);
|
|
447210
447376
|
var import_formats = __toESM(require_formats(), 1);
|
|
447211
|
-
import { createHash as
|
|
447377
|
+
import { createHash as createHash127 } from "node:crypto";
|
|
447212
447378
|
import { readFileSync as readFileSync67 } from "node:fs";
|
|
447213
447379
|
import { createRequire as createRequire3 } from "node:module";
|
|
447214
447380
|
import { fileURLToPath as fileURLToPath8 } from "node:url";
|
|
@@ -447321,7 +447487,7 @@ function createNolJsonSchemaValidator(schema, options = {}) {
|
|
|
447321
447487
|
const compiled = engine.compile(frozenSchema);
|
|
447322
447488
|
if ("$async" in compiled && compiled.$async)
|
|
447323
447489
|
throw new Error("nol_async_schema_forbidden");
|
|
447324
|
-
const bytesDigest = (path13) =>
|
|
447490
|
+
const bytesDigest = (path13) => createHash127("sha256").update(readFileSync67(path13)).digest("hex");
|
|
447325
447491
|
const implementationDigest = nolDigest({
|
|
447326
447492
|
implementation: "omnius.nol.ajv-frozen.v1",
|
|
447327
447493
|
draft,
|
|
@@ -447892,7 +448058,7 @@ function statisticalTrialFromResult(input2) {
|
|
|
447892
448058
|
// packages/orchestrator/dist/nol/coordinator.js
|
|
447893
448059
|
init_dist();
|
|
447894
448060
|
init_dist5();
|
|
447895
|
-
import { createHash as
|
|
448061
|
+
import { createHash as createHash128, randomUUID as randomUUID57 } from "node:crypto";
|
|
447896
448062
|
var NolComputeTrialError = class extends Error {
|
|
447897
448063
|
facts;
|
|
447898
448064
|
constructor(message3, facts) {
|
|
@@ -448053,7 +448219,7 @@ var NolCoordinator = class {
|
|
|
448053
448219
|
context.assertCurrent();
|
|
448054
448220
|
if (bytes5.byteLength > experiment.budgets.maxArtifactBytes)
|
|
448055
448221
|
throw new NolCoordinatorBudgetError("NOL artifact exceeds its aggregate byte budget");
|
|
448056
|
-
const immutable2 = Buffer.from(bytes5), sha25611 =
|
|
448222
|
+
const immutable2 = Buffer.from(bytes5), sha25611 = createHash128("sha256").update(immutable2).digest("hex");
|
|
448057
448223
|
const ref11 = NolArtifactRefSchema.parse({
|
|
448058
448224
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
448059
448225
|
sha256: sha25611,
|
|
@@ -450075,7 +450241,7 @@ async function runNolDiscovery(input2) {
|
|
|
450075
450241
|
// packages/orchestrator/dist/nol/model-validation.js
|
|
450076
450242
|
init_dist();
|
|
450077
450243
|
init_dist5();
|
|
450078
|
-
import { createHash as
|
|
450244
|
+
import { createHash as createHash129, randomUUID as randomUUID58 } from "node:crypto";
|
|
450079
450245
|
var NOL_MODEL_VALIDATION_KIND = "nol_model_validation";
|
|
450080
450246
|
function fail5(ok2, message3) {
|
|
450081
450247
|
if (!ok2)
|
|
@@ -450166,7 +450332,7 @@ var Inputs = class {
|
|
|
450166
450332
|
await this.verify(ref11);
|
|
450167
450333
|
const bytes5 = await this.artifacts.readBytes(ref11, this.signal);
|
|
450168
450334
|
this.signal.throwIfAborted();
|
|
450169
|
-
fail5(bytes5.byteLength === ref11.sizeBytes && bytes5.byteLength <= this.limits.maxMetadataBytes &&
|
|
450335
|
+
fail5(bytes5.byteLength === ref11.sizeBytes && bytes5.byteLength <= this.limits.maxMetadataBytes && createHash129("sha256").update(bytes5).digest("hex") === ref11.sha256, "Metadata byte extent/hash mismatch");
|
|
450170
450336
|
const value = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes5));
|
|
450171
450337
|
canonicalNolJson(value);
|
|
450172
450338
|
return value;
|
|
@@ -450519,7 +450685,7 @@ var NolModelValidationService = class {
|
|
|
450519
450685
|
active.controller.signal.throwIfAborted();
|
|
450520
450686
|
this.options.store.assertCurrent(active.lease);
|
|
450521
450687
|
}
|
|
450522
|
-
const sha25611 =
|
|
450688
|
+
const sha25611 = createHash129("sha256").update(bytes5).digest("hex");
|
|
450523
450689
|
const ref11 = NolArtifactRefSchema.parse({
|
|
450524
450690
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
450525
450691
|
sha256: sha25611,
|
|
@@ -451061,7 +451227,7 @@ var NolModelValidationService = class {
|
|
|
451061
451227
|
// packages/orchestrator/dist/nol/variant-registry.js
|
|
451062
451228
|
init_dist();
|
|
451063
451229
|
init_dist5();
|
|
451064
|
-
import { createHash as
|
|
451230
|
+
import { createHash as createHash130, randomUUID as randomUUID59 } from "node:crypto";
|
|
451065
451231
|
var contexts = /* @__PURE__ */ new WeakMap();
|
|
451066
451232
|
var modelContexts = /* @__PURE__ */ new WeakMap();
|
|
451067
451233
|
var clone6 = (value) => JSON.parse(canonicalNolJson(value));
|
|
@@ -451369,7 +451535,7 @@ var Verification = class {
|
|
|
451369
451535
|
await this.verify(ref11);
|
|
451370
451536
|
const bytes5 = await bounded3(this.artifacts.readBytes(ref11, this.signal), this.signal);
|
|
451371
451537
|
this.signal.throwIfAborted();
|
|
451372
|
-
if (bytes5.byteLength !== ref11.sizeBytes || bytes5.byteLength > this.limits.maxMetadataBytes ||
|
|
451538
|
+
if (bytes5.byteLength !== ref11.sizeBytes || bytes5.byteLength > this.limits.maxMetadataBytes || createHash130("sha256").update(bytes5).digest("hex") !== ref11.sha256)
|
|
451373
451539
|
throw new Error("Metadata read extent/hash mismatch");
|
|
451374
451540
|
return JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes5));
|
|
451375
451541
|
}
|
|
@@ -453882,8 +454048,8 @@ function adaptExecutionTool(tool, options = {}) {
|
|
|
453882
454048
|
|
|
453883
454049
|
// packages/cli/src/computer-use/configured-planner.ts
|
|
453884
454050
|
init_dist5();
|
|
453885
|
-
import { createHash as
|
|
453886
|
-
var sha25610 = (text18) =>
|
|
454051
|
+
import { createHash as createHash131, randomUUID as randomUUID60 } from "node:crypto";
|
|
454052
|
+
var sha25610 = (text18) => createHash131("sha256").update(text18).digest("hex");
|
|
453887
454053
|
function createHostUiPlannerResponseSchema(grants) {
|
|
453888
454054
|
if (!grants?.length) return structuredClone(UI_PLAN_RESPONSE_SCHEMA);
|
|
453889
454055
|
const steps = structuredClone(grants);
|
|
@@ -454315,8 +454481,8 @@ var RunnerUiPort = class {
|
|
|
454315
454481
|
|
|
454316
454482
|
// packages/cli/src/computer-use/configured-point.ts
|
|
454317
454483
|
init_dist5();
|
|
454318
|
-
import { createHash as
|
|
454319
|
-
var hash20 = (value) =>
|
|
454484
|
+
import { createHash as createHash132, randomUUID as randomUUID61 } from "node:crypto";
|
|
454485
|
+
var hash20 = (value) => createHash132("sha256").update(value).digest("hex");
|
|
454320
454486
|
var PNG2 = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
454321
454487
|
function createConfiguredUiPoint(profile3, options) {
|
|
454322
454488
|
const pinned = structuredClone(profile3), url = new URL(pinned.endpoint);
|
|
@@ -454750,12 +454916,12 @@ async function runConfiguredHostUiSession(input2, options) {
|
|
|
454750
454916
|
|
|
454751
454917
|
// packages/cli/src/nol/facade.ts
|
|
454752
454918
|
import { isAbsolute as isAbsolute39, resolve as resolve50 } from "node:path";
|
|
454753
|
-
import { createHash as
|
|
454919
|
+
import { createHash as createHash144 } from "node:crypto";
|
|
454754
454920
|
|
|
454755
454921
|
// packages/cli/src/nol/gne-profile.ts
|
|
454756
454922
|
init_dist();
|
|
454757
454923
|
init_dist5();
|
|
454758
|
-
import { createHash as
|
|
454924
|
+
import { createHash as createHash135, randomUUID as randomUUID65 } from "node:crypto";
|
|
454759
454925
|
import { realpathSync as realpathSync19, statSync as statSync34 } from "node:fs";
|
|
454760
454926
|
import { lstat as lstat11, mkdir as mkdir9, realpath as realpath11 } from "node:fs/promises";
|
|
454761
454927
|
import { dirname as dirname44, isAbsolute as isAbsolute33, join as join79, relative as relative24, resolve as resolve47 } from "node:path";
|
|
@@ -454881,7 +455047,7 @@ import { connect } from "node:net";
|
|
|
454881
455047
|
// packages/cli/src/nol/cuda-mutations.ts
|
|
454882
455048
|
init_dist();
|
|
454883
455049
|
import {
|
|
454884
|
-
createHash as
|
|
455050
|
+
createHash as createHash133,
|
|
454885
455051
|
createHmac as createHmac2,
|
|
454886
455052
|
randomBytes as randomBytes9,
|
|
454887
455053
|
randomUUID as randomUUID63,
|
|
@@ -454907,7 +455073,7 @@ var uid = () => process.getuid?.();
|
|
|
454907
455073
|
var nofollow = constants14.O_NOFOLLOW ?? 0;
|
|
454908
455074
|
var tickets = /* @__PURE__ */ new WeakMap();
|
|
454909
455075
|
var missing = (error) => error?.code === "ENOENT";
|
|
454910
|
-
var hash21 = (value) =>
|
|
455076
|
+
var hash21 = (value) => createHash133("sha256").update(canonicalNolJson(value)).digest("hex");
|
|
454911
455077
|
function requestCopy(value) {
|
|
454912
455078
|
if (!value || typeof value.ownerId !== "string" || !value.ownerId || value.ownerId.length > 200 || value.ownerId !== value.ownerId.trim() || /[\x00-\x1f\x7f]/.test(value.ownerId) || typeof value.modelId !== "string" || !value.modelId || value.modelId.length > 1024 || value.modelId !== value.modelId.trim() || /[\x00-\x1f\x7f]/.test(value.modelId) || !UUID.test(value.gpuUuid) || !Number.isSafeInteger(value.requestedMiB) || value.requestedMiB <= 0 || !Number.isSafeInteger(value.expectedDurationSeconds) || value.expectedDurationSeconds <= 0)
|
|
454913
455079
|
throw new Error("Invalid private CUDA mutation identity");
|
|
@@ -456212,7 +456378,7 @@ function integer15(value, label, min = 0, max = Number.MAX_SAFE_INTEGER) {
|
|
|
456212
456378
|
throw new Error(`Invalid GNE profile ${label}`);
|
|
456213
456379
|
return value;
|
|
456214
456380
|
}
|
|
456215
|
-
var projectIdentity = (root) =>
|
|
456381
|
+
var projectIdentity = (root) => createHash135("sha256").update(root).digest("hex");
|
|
456216
456382
|
function snapshotExecution(options) {
|
|
456217
456383
|
const {
|
|
456218
456384
|
pythonPath,
|
|
@@ -456432,7 +456598,7 @@ async function bytes4(artifacts, ref11, maximum, signal) {
|
|
|
456432
456598
|
throw new Error("GNE profile artifact exceeds frozen input bound");
|
|
456433
456599
|
const value = await artifacts.readBytes(ref11, signal);
|
|
456434
456600
|
signal?.throwIfAborted();
|
|
456435
|
-
if (value.byteLength !== ref11.sizeBytes ||
|
|
456601
|
+
if (value.byteLength !== ref11.sizeBytes || createHash135("sha256").update(value).digest("hex") !== ref11.sha256)
|
|
456436
456602
|
throw new Error("GNE profile artifact hash/size changed");
|
|
456437
456603
|
return value;
|
|
456438
456604
|
}
|
|
@@ -456575,7 +456741,7 @@ var NolGneProfileService = class {
|
|
|
456575
456741
|
async publish(active, value, mediaType = "application/json", cleanup = false) {
|
|
456576
456742
|
if (!cleanup) this.current(active);
|
|
456577
456743
|
const data = value instanceof Uint8Array ? value : Buffer.from(canonicalNolJson(value));
|
|
456578
|
-
const digest19 =
|
|
456744
|
+
const digest19 = createHash135("sha256").update(data).digest("hex"), ref11 = {
|
|
456579
456745
|
uri: `omnius-artifact://sha256/${digest19}`,
|
|
456580
456746
|
sha256: digest19,
|
|
456581
456747
|
sizeBytes: data.byteLength,
|
|
@@ -457601,7 +457767,7 @@ init_dist();
|
|
|
457601
457767
|
// packages/cli/src/nol/export-service.ts
|
|
457602
457768
|
init_dist();
|
|
457603
457769
|
init_dist5();
|
|
457604
|
-
import { createHash as
|
|
457770
|
+
import { createHash as createHash136, randomUUID as randomUUID66 } from "node:crypto";
|
|
457605
457771
|
import { lstatSync as lstatSync11, realpathSync as realpathSync20, statfsSync as statfsSync5 } from "node:fs";
|
|
457606
457772
|
import { lstat as lstat12, mkdir as mkdir10, mkdtemp as mkdtemp7, readdir as readdir5, realpath as realpath12 } from "node:fs/promises";
|
|
457607
457773
|
import { isAbsolute as isAbsolute34, join as join80, relative as relative25, resolve as resolve48 } from "node:path";
|
|
@@ -457663,7 +457829,7 @@ var NolExportService = class {
|
|
|
457663
457829
|
if (!options.ownerId.trim() || options.ownerId.length > 192)
|
|
457664
457830
|
throw new Error("Export host owner required");
|
|
457665
457831
|
this.ownerId = `${options.ownerId}:${randomUUID66()}`;
|
|
457666
|
-
this.projectId =
|
|
457832
|
+
this.projectId = createHash136("sha256").update(this.root).digest("hex");
|
|
457667
457833
|
if (!/^[A-Za-z0-9][A-Za-z0-9_.-]{0,95}$/.test(options.id))
|
|
457668
457834
|
throw new Error("Export configuration ID required");
|
|
457669
457835
|
this.scopeId = nolJsonDigest({
|
|
@@ -458408,7 +458574,7 @@ init_dist5();
|
|
|
458408
458574
|
// packages/cli/src/nol/neuronary-catalog.ts
|
|
458409
458575
|
init_dist();
|
|
458410
458576
|
init_dist5();
|
|
458411
|
-
import { createHash as
|
|
458577
|
+
import { createHash as createHash137, randomUUID as randomUUID67 } from "node:crypto";
|
|
458412
458578
|
import { realpathSync as realpathSync21, statSync as statSync35 } from "node:fs";
|
|
458413
458579
|
import { isAbsolute as isAbsolute35 } from "node:path";
|
|
458414
458580
|
import { z as z30 } from "zod";
|
|
@@ -458492,7 +458658,7 @@ var LIMITATIONS = Object.freeze([
|
|
|
458492
458658
|
"Checkpoint/site mapping and required calibration need independent host verification.",
|
|
458493
458659
|
"Import grants no execution, scientific validation, promotion or activation authority."
|
|
458494
458660
|
]);
|
|
458495
|
-
var hashBytes = (bytes5) =>
|
|
458661
|
+
var hashBytes = (bytes5) => createHash137("sha256").update(bytes5).digest("hex");
|
|
458496
458662
|
var clone9 = (value) => JSON.parse(canonicalNolJson(value));
|
|
458497
458663
|
var same14 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
|
|
458498
458664
|
function freeze7(value) {
|
|
@@ -459106,14 +459272,14 @@ import { z as z34 } from "zod";
|
|
|
459106
459272
|
// packages/cli/src/nol/vllm-profile.ts
|
|
459107
459273
|
init_dist();
|
|
459108
459274
|
init_dist5();
|
|
459109
|
-
import { createHash as
|
|
459275
|
+
import { createHash as createHash143, randomUUID as randomUUID69 } from "node:crypto";
|
|
459110
459276
|
import { realpathSync as realpathSync23 } from "node:fs";
|
|
459111
459277
|
import { mkdir as mkdir11, statfs, lstat as lstat13 } from "node:fs/promises";
|
|
459112
459278
|
import { isAbsolute as isAbsolute38, join as join84, resolve as resolve49 } from "node:path";
|
|
459113
459279
|
import { z as z33 } from "zod";
|
|
459114
459280
|
|
|
459115
459281
|
// packages/cli/src/nol/vllm-adapter.ts
|
|
459116
|
-
import { createHash as
|
|
459282
|
+
import { createHash as createHash140 } from "node:crypto";
|
|
459117
459283
|
import { isAbsolute as isAbsolute37, join as join82 } from "node:path";
|
|
459118
459284
|
init_dist();
|
|
459119
459285
|
init_dist5();
|
|
@@ -459121,7 +459287,7 @@ init_dist5();
|
|
|
459121
459287
|
// packages/cli/src/nol/vllm-startup.ts
|
|
459122
459288
|
init_dist();
|
|
459123
459289
|
init_dist5();
|
|
459124
|
-
import { createHash as
|
|
459290
|
+
import { createHash as createHash139, randomUUID as randomUUID68 } from "node:crypto";
|
|
459125
459291
|
import { spawn as spawn8 } from "node:child_process";
|
|
459126
459292
|
import { constants as constants17 } from "node:fs";
|
|
459127
459293
|
import { open as open11 } from "node:fs/promises";
|
|
@@ -459130,7 +459296,7 @@ import { isAbsolute as isAbsolute36, join as join81, dirname as dirname45 } from
|
|
|
459130
459296
|
// packages/cli/src/nol/vllm-protocol.ts
|
|
459131
459297
|
init_dist();
|
|
459132
459298
|
init_dist5();
|
|
459133
|
-
import { createHash as
|
|
459299
|
+
import { createHash as createHash138 } from "node:crypto";
|
|
459134
459300
|
import { openSync as openSync25, closeSync as closeSync25, fstatSync as fstatSync8, readSync as readSync6, constants as constants16 } from "node:fs";
|
|
459135
459301
|
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
459136
459302
|
import { z as z31 } from "zod";
|
|
@@ -459158,7 +459324,7 @@ function nolVllmModuleDigest(url) {
|
|
|
459158
459324
|
count8 === before.size && before.dev === after.dev && before.ino === after.ino && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs,
|
|
459159
459325
|
"host code changed during inventory"
|
|
459160
459326
|
);
|
|
459161
|
-
return
|
|
459327
|
+
return createHash138("sha256").update(bytes5.subarray(0, count8)).digest("hex");
|
|
459162
459328
|
} finally {
|
|
459163
459329
|
closeSync25(fd);
|
|
459164
459330
|
}
|
|
@@ -459181,7 +459347,7 @@ var bound = (n) => count5.max(n);
|
|
|
459181
459347
|
function need5(v, m) {
|
|
459182
459348
|
if (!v) throw Error(`NOL vLLM protocol: ${m}`);
|
|
459183
459349
|
}
|
|
459184
|
-
var hash23 = (v) =>
|
|
459350
|
+
var hash23 = (v) => createHash138("sha256").update(v).digest("hex");
|
|
459185
459351
|
var same15 = (a, b, m) => need5(canonicalNolJson(a) === canonicalNolJson(b), m);
|
|
459186
459352
|
var NolVllmSourceSchema = z31.object({ workerSha256: sha28, companionSha256: sha28, runtimeSha256: sha28 }).strict();
|
|
459187
459353
|
var NolVllmRuntimeLimitsSchema = z31.object({
|
|
@@ -459635,7 +459801,7 @@ var integer16 = (value, low, high) => {
|
|
|
459635
459801
|
};
|
|
459636
459802
|
var same16 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
|
|
459637
459803
|
var clone10 = (value) => JSON.parse(canonicalNolJson(value));
|
|
459638
|
-
var digest12 = (value) =>
|
|
459804
|
+
var digest12 = (value) => createHash139("sha256").update(canonicalNolJson(value)).digest("hex");
|
|
459639
459805
|
var RUNTIME_ENVIRONMENT_KEYS = /* @__PURE__ */ new Set([
|
|
459640
459806
|
"PATH",
|
|
459641
459807
|
"HOME",
|
|
@@ -460073,7 +460239,7 @@ async function filePin(path13, expected) {
|
|
|
460073
460239
|
}
|
|
460074
460240
|
const after = await file.stat();
|
|
460075
460241
|
need6(
|
|
460076
|
-
length <= 1048576 && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs &&
|
|
460242
|
+
length <= 1048576 && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs && createHash139("sha256").update(bytes5.subarray(0, length)).digest("hex") === expected,
|
|
460077
460243
|
"source identity changed"
|
|
460078
460244
|
);
|
|
460079
460245
|
} finally {
|
|
@@ -460606,7 +460772,7 @@ function need7(v, m) {
|
|
|
460606
460772
|
}
|
|
460607
460773
|
var copy3 = (v) => JSON.parse(canonicalNolJson(v));
|
|
460608
460774
|
var same17 = (a, b, m) => need7(canonicalNolJson(a) === canonicalNolJson(b), m);
|
|
460609
|
-
var hash24 = (v) =>
|
|
460775
|
+
var hash24 = (v) => createHash140("sha256").update(v).digest("hex");
|
|
460610
460776
|
function current2(c) {
|
|
460611
460777
|
c.signal.throwIfAborted();
|
|
460612
460778
|
c.assertCurrent();
|
|
@@ -461179,7 +461345,7 @@ function prepareNolVllmRawControls(recipe, model3, seeds, evidence) {
|
|
|
461179
461345
|
let neuron, word;
|
|
461180
461346
|
do {
|
|
461181
461347
|
need7(counter < 1e4, "bounded random coordinate search exhausted");
|
|
461182
|
-
const bytes5 =
|
|
461348
|
+
const bytes5 = createHash140("sha256").update(
|
|
461183
461349
|
canonicalNolJson({
|
|
461184
461350
|
schema: "omnius.nol.vllm-control-rng.v1",
|
|
461185
461351
|
seed,
|
|
@@ -461191,7 +461357,7 @@ function prepareNolVllmRawControls(recipe, model3, seeds, evidence) {
|
|
|
461191
461357
|
neuron = word % site.width;
|
|
461192
461358
|
} while (word >= Math.floor(4294967296 / site.width) * site.width || taken.has(neuron));
|
|
461193
461359
|
taken.add(neuron);
|
|
461194
|
-
const sign =
|
|
461360
|
+
const sign = createHash140("sha256").update(
|
|
461195
461361
|
canonicalNolJson({
|
|
461196
461362
|
seed,
|
|
461197
461363
|
neuron,
|
|
@@ -461651,7 +461817,7 @@ var NolVllmAdapter = class {
|
|
|
461651
461817
|
|
|
461652
461818
|
// packages/cli/src/nol/vllm-conformance.ts
|
|
461653
461819
|
init_dist();
|
|
461654
|
-
import { createHash as
|
|
461820
|
+
import { createHash as createHash141 } from "node:crypto";
|
|
461655
461821
|
import { z as z32 } from "zod";
|
|
461656
461822
|
var nolVllmConformanceDigest = nolVllmModulePin(import.meta.url);
|
|
461657
461823
|
var NOL_VLLM_CAPTURE_MAGIC = Buffer.from("NOLVLC01");
|
|
@@ -461689,7 +461855,7 @@ var headerSchema = z32.object({
|
|
|
461689
461855
|
function need8(value, message3) {
|
|
461690
461856
|
if (!value) throw new Error(`NOL vLLM capture: ${message3}`);
|
|
461691
461857
|
}
|
|
461692
|
-
var hash25 = (value) =>
|
|
461858
|
+
var hash25 = (value) => createHash141("sha256").update(value).digest("hex");
|
|
461693
461859
|
var same18 = (a, b, message3) => need8(canonicalNolJson(a) === canonicalNolJson(b), message3);
|
|
461694
461860
|
function norm2(values) {
|
|
461695
461861
|
let scale = 0, sum2 = 0;
|
|
@@ -461911,10 +462077,10 @@ import {
|
|
|
461911
462077
|
realpathSync as realpathSync22
|
|
461912
462078
|
} from "node:fs";
|
|
461913
462079
|
import { join as join83 } from "node:path";
|
|
461914
|
-
import { createHash as
|
|
462080
|
+
import { createHash as createHash142 } from "node:crypto";
|
|
461915
462081
|
var nolVllmCustodyDigest = nolVllmModulePin(import.meta.url);
|
|
461916
462082
|
var zero = "0".repeat(64);
|
|
461917
|
-
var digest13 = (v) =>
|
|
462083
|
+
var digest13 = (v) => createHash142("sha256").update(canonicalNolJson(v)).digest("hex");
|
|
461918
462084
|
function need9(v, m) {
|
|
461919
462085
|
if (!v) throw new Error(`NOL vLLM private custody: ${m}`);
|
|
461920
462086
|
}
|
|
@@ -462359,7 +462525,7 @@ function need10(value, message3) {
|
|
|
462359
462525
|
}
|
|
462360
462526
|
var copy4 = (v) => JSON.parse(canonicalNolJson(v));
|
|
462361
462527
|
var same20 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
|
|
462362
|
-
var hash26 = (v) =>
|
|
462528
|
+
var hash26 = (v) => createHash143("sha256").update(v).digest("hex");
|
|
462363
462529
|
function guard2(context) {
|
|
462364
462530
|
context.signal?.throwIfAborted();
|
|
462365
462531
|
need10(
|
|
@@ -462452,7 +462618,7 @@ var NolVllmProfileService = class {
|
|
|
462452
462618
|
projectRoot: realpathSync23.native(options.projectRoot),
|
|
462453
462619
|
workRoot: realpathSync23.native(options.workRoot)
|
|
462454
462620
|
};
|
|
462455
|
-
this.projectId =
|
|
462621
|
+
this.projectId = createHash143("sha256").update(this.options.projectRoot).digest("hex");
|
|
462456
462622
|
this.implementationDigest = this.hostImplementation();
|
|
462457
462623
|
const scope2 = {
|
|
462458
462624
|
schema: "omnius.nol.vllm-profile-scope.v1",
|
|
@@ -464305,7 +464471,7 @@ var NolFacade = class {
|
|
|
464305
464471
|
}
|
|
464306
464472
|
conformanceJob(jobId3) {
|
|
464307
464473
|
const job2 = this.options.store.getJob(jobId3);
|
|
464308
|
-
if (!job2 || job2.kind !== NOL_GNE_PROFILE_KIND || !job2.payload || typeof job2.payload !== "object" || job2.payload.projectId !==
|
|
464474
|
+
if (!job2 || job2.kind !== NOL_GNE_PROFILE_KIND || !job2.payload || typeof job2.payload !== "object" || job2.payload.projectId !== createHash144("sha256").update(this.projectRoot).digest("hex"))
|
|
464309
464475
|
throw new NolFacadeError(
|
|
464310
464476
|
"job_not_found",
|
|
464311
464477
|
404,
|
|
@@ -464702,11 +464868,11 @@ var NolFacade = class {
|
|
|
464702
464868
|
|
|
464703
464869
|
// packages/cli/src/nol/sqlite-store.ts
|
|
464704
464870
|
init_dist();
|
|
464705
|
-
import { createHash as
|
|
464871
|
+
import { createHash as createHash145, randomUUID as randomUUID70 } from "node:crypto";
|
|
464706
464872
|
import { mkdirSync as mkdirSync45 } from "node:fs";
|
|
464707
464873
|
import { createRequire as createRequire5 } from "node:module";
|
|
464708
464874
|
import { dirname as dirname46 } from "node:path";
|
|
464709
|
-
var hash27 = (value) =>
|
|
464875
|
+
var hash27 = (value) => createHash145("sha256").update(value).digest("hex");
|
|
464710
464876
|
var MAX_METADATA_BYTES = 16 * 1024 * 1024;
|
|
464711
464877
|
var MAX_VERIFIED_JOB_BYTES = 8 * 1024 * 1024;
|
|
464712
464878
|
function json6(value) {
|
|
@@ -465562,7 +465728,7 @@ function nolHostPerformance(input2) {
|
|
|
465562
465728
|
// packages/cli/src/nol/transformers-adapter.ts
|
|
465563
465729
|
init_dist();
|
|
465564
465730
|
init_dist5();
|
|
465565
|
-
import { createHash as
|
|
465731
|
+
import { createHash as createHash146 } from "node:crypto";
|
|
465566
465732
|
import { isAbsolute as isAbsolute40 } from "node:path";
|
|
465567
465733
|
var VERSION3 = "omnius.nol.transformers.v1";
|
|
465568
465734
|
var ZERO3 = "0".repeat(64);
|
|
@@ -465619,7 +465785,7 @@ function ids2(value, label, maximum) {
|
|
|
465619
465785
|
return value.map((id8) => integer20(id8, label, 0, 4294967295));
|
|
465620
465786
|
}
|
|
465621
465787
|
function hash28(bytes5) {
|
|
465622
|
-
return
|
|
465788
|
+
return createHash146("sha256").update(bytes5).digest("hex");
|
|
465623
465789
|
}
|
|
465624
465790
|
async function driverVersion2(gpuUuid) {
|
|
465625
465791
|
const result = await execFileText4(
|
|
@@ -466413,7 +466579,7 @@ init_dist();
|
|
|
466413
466579
|
init_dist5();
|
|
466414
466580
|
init_dist();
|
|
466415
466581
|
init_dist5();
|
|
466416
|
-
import { createHash as
|
|
466582
|
+
import { createHash as createHash147 } from "node:crypto";
|
|
466417
466583
|
import { mkdir as mkdir12, mkdtemp as mkdtemp8, rm as rm6 } from "node:fs/promises";
|
|
466418
466584
|
import { isAbsolute as isAbsolute41, join as join85 } from "node:path";
|
|
466419
466585
|
var ZERO4 = "0".repeat(64);
|
|
@@ -466681,7 +466847,7 @@ function object21(value, label) {
|
|
|
466681
466847
|
return value;
|
|
466682
466848
|
}
|
|
466683
466849
|
var clone12 = (value) => JSON.parse(canonicalNolJson(value));
|
|
466684
|
-
var hash29 = (bytes5) =>
|
|
466850
|
+
var hash29 = (bytes5) => createHash147("sha256").update(bytes5).digest("hex");
|
|
466685
466851
|
function current4(context) {
|
|
466686
466852
|
context.signal.throwIfAborted();
|
|
466687
466853
|
context.assertCurrent();
|
|
@@ -467759,7 +467925,7 @@ function inputIdentity2(input2) {
|
|
|
467759
467925
|
// packages/cli/src/nol/runtime.ts
|
|
467760
467926
|
init_dist();
|
|
467761
467927
|
init_dist5();
|
|
467762
|
-
import { createHash as
|
|
467928
|
+
import { createHash as createHash168 } from "node:crypto";
|
|
467763
467929
|
import {
|
|
467764
467930
|
constants as constants29,
|
|
467765
467931
|
mkdirSync as mkdirSync49,
|
|
@@ -467914,14 +468080,14 @@ import { randomUUID as randomUUID71 } from "node:crypto";
|
|
|
467914
468080
|
// packages/cli/src/nol/vllm-authority.ts
|
|
467915
468081
|
init_dist();
|
|
467916
468082
|
init_dist5();
|
|
467917
|
-
import { createHash as
|
|
468083
|
+
import { createHash as createHash148 } from "node:crypto";
|
|
467918
468084
|
import { spawn as spawn9 } from "node:child_process";
|
|
467919
468085
|
import { constants as constants19 } from "node:fs";
|
|
467920
468086
|
import { open as open12, mkdir as mkdir13, lstat as lstat14 } from "node:fs/promises";
|
|
467921
468087
|
import { dirname as dirname48, join as join87, relative as relative27, isAbsolute as isAbsolute43 } from "node:path";
|
|
467922
468088
|
var implementation = nolVllmModulePin(import.meta.url);
|
|
467923
468089
|
var DECODER_SHA = "213d71cf6eefcea061b28b656cf8a08af60c9f3513403e724b16876995f3de93";
|
|
467924
|
-
var hash30 = (v) =>
|
|
468090
|
+
var hash30 = (v) => createHash148("sha256").update(v).digest("hex");
|
|
467925
468091
|
function need11(value, reason) {
|
|
467926
468092
|
if (!value) throw Error(`NOL vLLM authority: ${reason}`);
|
|
467927
468093
|
}
|
|
@@ -468981,7 +469147,7 @@ var NolCpuReaderSourceGuard = class _NolCpuReaderSourceGuard {
|
|
|
468981
469147
|
|
|
468982
469148
|
// packages/cli/src/nol/gguf-cpu-control-reader-profile.ts
|
|
468983
469149
|
init_dist5();
|
|
468984
|
-
import { createHash as
|
|
469150
|
+
import { createHash as createHash149 } from "node:crypto";
|
|
468985
469151
|
import { constants as constants21, lstatSync as lstatSync14, realpathSync as realpathSync27 } from "node:fs";
|
|
468986
469152
|
import { lstat as lstat16, opendir as opendir5, realpath as realpath14, open as open14 } from "node:fs/promises";
|
|
468987
469153
|
import { dirname as dirname51, isAbsolute as isAbsolute46, join as join91, relative as relative29 } from "node:path";
|
|
@@ -469114,7 +469280,7 @@ var NolGgufCpuReaderSourceGuard = class _NolGgufCpuReaderSourceGuard {
|
|
|
469114
469280
|
const environmentRoot = dirname51(dirname51(profile3.reader.pythonPath));
|
|
469115
469281
|
const environmentConfig = join91(environmentRoot, "pyvenv.cfg");
|
|
469116
469282
|
const configFile = await frozenText2(environmentConfig, 65536);
|
|
469117
|
-
const configHash =
|
|
469283
|
+
const configHash = createHash149("sha256").update(configFile.text).digest("hex");
|
|
469118
469284
|
need14(
|
|
469119
469285
|
configHash === profile3.reader.runtime.pythonEnvironment.venvConfig.sha256 && Buffer.byteLength(configFile.text) === profile3.reader.runtime.pythonEnvironment.venvConfig.sizeBytes,
|
|
469120
469286
|
"exact isolated venv configuration changed"
|
|
@@ -469128,7 +469294,7 @@ var NolGgufCpuReaderSourceGuard = class _NolGgufCpuReaderSourceGuard {
|
|
|
469128
469294
|
"site-packages"
|
|
469129
469295
|
);
|
|
469130
469296
|
need14(
|
|
469131
|
-
await realpath14(site) === site &&
|
|
469297
|
+
await realpath14(site) === site && createHash149("sha256").update(site).digest("hex") === profile3.reader.runtime.pythonEnvironment.sitePackagesPathDigest && profile3.runtimeRoots.some((root) => {
|
|
469132
469298
|
const part = relative29(root, site);
|
|
469133
469299
|
return part === "" || !isAbsolute46(part) && part !== ".." && !part.startsWith("../");
|
|
469134
469300
|
}),
|
|
@@ -469291,7 +469457,7 @@ import { z as z42 } from "zod";
|
|
|
469291
469457
|
// packages/cli/src/nol/peft-model-authority.ts
|
|
469292
469458
|
init_dist();
|
|
469293
469459
|
init_dist5();
|
|
469294
|
-
import { createHash as
|
|
469460
|
+
import { createHash as createHash154, randomUUID as randomUUID74 } from "node:crypto";
|
|
469295
469461
|
import { lstatSync as lstatSync17, realpathSync as realpathSync30 } from "node:fs";
|
|
469296
469462
|
import { mkdir as mkdir15, lstat as lstat19, readFile as readFile6 } from "node:fs/promises";
|
|
469297
469463
|
import { fileURLToPath as fileURLToPath11 } from "node:url";
|
|
@@ -469301,7 +469467,7 @@ import { z as z41 } from "zod";
|
|
|
469301
469467
|
// packages/cli/src/nol/peft-profile.ts
|
|
469302
469468
|
init_dist();
|
|
469303
469469
|
init_dist5();
|
|
469304
|
-
import { createHash as
|
|
469470
|
+
import { createHash as createHash151, randomUUID as randomUUID73 } from "node:crypto";
|
|
469305
469471
|
import { lstat as lstat17, realpath as realpath15 } from "node:fs/promises";
|
|
469306
469472
|
import { fileURLToPath as fileURLToPath10 } from "node:url";
|
|
469307
469473
|
import { isAbsolute as isAbsolute48, relative as relative30, resolve as resolve53 } from "node:path";
|
|
@@ -469314,7 +469480,7 @@ import { isAbsolute as isAbsolute47 } from "node:path";
|
|
|
469314
469480
|
// packages/cli/src/nol/peft-conformance.ts
|
|
469315
469481
|
init_dist();
|
|
469316
469482
|
init_dist5();
|
|
469317
|
-
import { createHash as
|
|
469483
|
+
import { createHash as createHash150 } from "node:crypto";
|
|
469318
469484
|
var NOL_PEFT_VALIDATION_VERSION = "omnius.nol.transformers-peft-validation.v2";
|
|
469319
469485
|
var NOL_PEFT_VALIDATION_PEFT_SHA = "acbedcc78edf2565ce8638a85df81a1e4b8a4f98c5d0dfb49b38e2785b247682";
|
|
469320
469486
|
var NOL_PEFT_VALIDATION_BASE_SHA = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
|
|
@@ -469331,7 +469497,7 @@ function integer22(value, name, min, max) {
|
|
|
469331
469497
|
function same23(a, b, label) {
|
|
469332
469498
|
need15(canonicalNolJson(a) === canonicalNolJson(b), `${label} mismatch`);
|
|
469333
469499
|
}
|
|
469334
|
-
var hash31 = (bytes5) =>
|
|
469500
|
+
var hash31 = (bytes5) => createHash150("sha256").update(bytes5).digest("hex");
|
|
469335
469501
|
var CRC_TABLE2 = Uint32Array.from({ length: 256 }, (_, value) => {
|
|
469336
469502
|
let crc = value;
|
|
469337
469503
|
for (let bit = 0; bit < 8; bit++)
|
|
@@ -470417,7 +470583,7 @@ function need17(v, m) {
|
|
|
470417
470583
|
}
|
|
470418
470584
|
var same25 = (a, b, m) => need17(canonicalNolJson(a) === canonicalNolJson(b), m);
|
|
470419
470585
|
var identity8 = (bytes5, mediaType) => {
|
|
470420
|
-
const sha25611 =
|
|
470586
|
+
const sha25611 = createHash151("sha256").update(bytes5).digest("hex");
|
|
470421
470587
|
return {
|
|
470422
470588
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
470423
470589
|
sha256: sha25611,
|
|
@@ -471101,7 +471267,7 @@ function createNolPeftJournalAdmission(input2) {
|
|
|
471101
471267
|
// packages/cli/src/nol/transformers-peft.ts
|
|
471102
471268
|
init_dist();
|
|
471103
471269
|
init_dist5();
|
|
471104
|
-
import { createHash as
|
|
471270
|
+
import { createHash as createHash152 } from "node:crypto";
|
|
471105
471271
|
import { isAbsolute as isAbsolute49 } from "node:path";
|
|
471106
471272
|
var NOL_TRANSFORMERS_PEFT_VERSION = "omnius.nol.transformers-peft.v2";
|
|
471107
471273
|
var NOL_TRANSFORMERS_PEFT_BASE_SHA256 = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
|
|
@@ -471219,7 +471385,7 @@ async function prepareNolPeftPlan(input2) {
|
|
|
471219
471385
|
const bytes5 = await input2.readArtifact(ref11, input2.signal);
|
|
471220
471386
|
input2.signal?.throwIfAborted();
|
|
471221
471387
|
need18(
|
|
471222
|
-
bytes5.byteLength === ref11.sizeBytes &&
|
|
471388
|
+
bytes5.byteLength === ref11.sizeBytes && createHash152("sha256").update(bytes5).digest("hex") === ref11.sha256,
|
|
471223
471389
|
"export receipt bytes/hash mismatch"
|
|
471224
471390
|
);
|
|
471225
471391
|
const receipt = object22(
|
|
@@ -472180,7 +472346,7 @@ var NolPeftAuthorityJournal = class {
|
|
|
472180
472346
|
// packages/cli/src/nol/peft-model-profile.ts
|
|
472181
472347
|
init_dist();
|
|
472182
472348
|
init_dist5();
|
|
472183
|
-
import { createHash as
|
|
472349
|
+
import { createHash as createHash153 } from "node:crypto";
|
|
472184
472350
|
import { lstatSync as lstatSync16, realpathSync as realpathSync29 } from "node:fs";
|
|
472185
472351
|
import { readdir as readdir8 } from "node:fs/promises";
|
|
472186
472352
|
import { dirname as dirname52, isAbsolute as isAbsolute50, join as join93, relative as relative31, resolve as resolve55 } from "node:path";
|
|
@@ -472287,7 +472453,7 @@ async function metadata(ref11, artifacts, maximum, signal) {
|
|
|
472287
472453
|
const bytes5 = await artifacts.readBytes(ref11, signal);
|
|
472288
472454
|
signal.throwIfAborted();
|
|
472289
472455
|
need21(
|
|
472290
|
-
bytes5.length === ref11.sizeBytes &&
|
|
472456
|
+
bytes5.length === ref11.sizeBytes && createHash153("sha256").update(bytes5).digest("hex") === ref11.sha256,
|
|
472291
472457
|
"metadata fullref changed"
|
|
472292
472458
|
);
|
|
472293
472459
|
const parsed = JSON.parse(
|
|
@@ -473064,7 +473230,7 @@ var NolPeftModelAuthorityService = class {
|
|
|
473064
473230
|
bytes5.length <= p.budgets.maxMetadataBytes,
|
|
473065
473231
|
"producer metadata byte cap"
|
|
473066
473232
|
);
|
|
473067
|
-
const sha25611 =
|
|
473233
|
+
const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
|
|
473068
473234
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
473069
473235
|
sha256: sha25611,
|
|
473070
473236
|
sizeBytes: bytes5.length,
|
|
@@ -473104,7 +473270,7 @@ var NolPeftModelAuthorityService = class {
|
|
|
473104
473270
|
bytes5.length <= p.budgets.maxMetadataBytes,
|
|
473105
473271
|
"host source metadata cap"
|
|
473106
473272
|
);
|
|
473107
|
-
const sha25611 =
|
|
473273
|
+
const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
|
|
473108
473274
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
473109
473275
|
sha256: sha25611,
|
|
473110
473276
|
sizeBytes: bytes5.length,
|
|
@@ -473138,7 +473304,7 @@ var NolPeftModelAuthorityService = class {
|
|
|
473138
473304
|
bytes5.length <= p.budgets.maxMetadataBytes,
|
|
473139
473305
|
"worker/lock source cap"
|
|
473140
473306
|
);
|
|
473141
|
-
const sha25611 =
|
|
473307
|
+
const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
|
|
473142
473308
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
473143
473309
|
sha256: sha25611,
|
|
473144
473310
|
sizeBytes: bytes5.length,
|
|
@@ -473564,7 +473730,7 @@ var NolPeftModelAuthorityService = class {
|
|
|
473564
473730
|
childOwnership: child.payload.childOwnership,
|
|
473565
473731
|
observation
|
|
473566
473732
|
};
|
|
473567
|
-
const bytes5 = Buffer.from(canonicalNolJson(payload2)), sha25611 =
|
|
473733
|
+
const bytes5 = Buffer.from(canonicalNolJson(payload2)), sha25611 = createHash154("sha256").update(bytes5).digest("hex"), artifact5 = {
|
|
473568
473734
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
473569
473735
|
sha256: sha25611,
|
|
473570
473736
|
sizeBytes: bytes5.length,
|
|
@@ -474039,14 +474205,14 @@ var NolModelRuntimeConfigSchema = z43.object({
|
|
|
474039
474205
|
|
|
474040
474206
|
// packages/cli/src/nol/model-runtime.ts
|
|
474041
474207
|
init_dist();
|
|
474042
|
-
import { createHash as
|
|
474208
|
+
import { createHash as createHash166 } from "node:crypto";
|
|
474043
474209
|
import { AsyncLocalStorage as AsyncLocalStorage5 } from "node:async_hooks";
|
|
474044
474210
|
|
|
474045
474211
|
// packages/cli/src/nol/model-validation-factory.ts
|
|
474046
474212
|
init_dist();
|
|
474047
474213
|
init_dist5();
|
|
474048
474214
|
import {
|
|
474049
|
-
createHash as
|
|
474215
|
+
createHash as createHash156,
|
|
474050
474216
|
createHmac as createHmac4,
|
|
474051
474217
|
randomBytes as randomBytes11,
|
|
474052
474218
|
randomUUID as randomUUID75,
|
|
@@ -474071,7 +474237,7 @@ import { createRequire as createRequire7 } from "node:module";
|
|
|
474071
474237
|
// packages/cli/src/nol/model-subject-adapter.ts
|
|
474072
474238
|
init_dist();
|
|
474073
474239
|
init_dist5();
|
|
474074
|
-
import { createHash as
|
|
474240
|
+
import { createHash as createHash155 } from "node:crypto";
|
|
474075
474241
|
import { mkdir as mkdir16, mkdtemp as mkdtemp9 } from "node:fs/promises";
|
|
474076
474242
|
import { isAbsolute as isAbsolute54, join as join95 } from "node:path";
|
|
474077
474243
|
var IMPLEMENTATIONS = {
|
|
@@ -474107,7 +474273,7 @@ function integer24(v, min, max = Number.MAX_SAFE_INTEGER) {
|
|
|
474107
474273
|
throw new Error("Native model subject integer out of bounds");
|
|
474108
474274
|
return v;
|
|
474109
474275
|
}
|
|
474110
|
-
var hash32 = (v) =>
|
|
474276
|
+
var hash32 = (v) => createHash155("sha256").update(v).digest("hex");
|
|
474111
474277
|
async function abortable8(work2, signal) {
|
|
474112
474278
|
signal.throwIfAborted();
|
|
474113
474279
|
let abort;
|
|
@@ -474291,7 +474457,7 @@ var NolModelWorkerAdapter = class {
|
|
|
474291
474457
|
sizeBytes: f.artifact.sizeBytes
|
|
474292
474458
|
}))
|
|
474293
474459
|
);
|
|
474294
|
-
if (
|
|
474460
|
+
if (createHash155("sha256").update(tokenizerJson).digest("hex") !== model3.tokenizerDigest)
|
|
474295
474461
|
throw new Error("Native model tokenizer identity body mismatch");
|
|
474296
474462
|
a.acquireIdentity = {
|
|
474297
474463
|
ownerId: nolCudaOwner(
|
|
@@ -475383,7 +475549,7 @@ var NolModelValidationHostFactory = class {
|
|
|
475383
475549
|
root === options.projectRoot && isAbsolute55(options.stateRoot) && inside4(root, options.stateRoot),
|
|
475384
475550
|
"Native host authority must belong to the canonical project"
|
|
475385
475551
|
);
|
|
475386
|
-
this.projectId =
|
|
475552
|
+
this.projectId = createHash156("sha256").update(root).digest("hex");
|
|
475387
475553
|
for (const n of Object.values(options.limits))
|
|
475388
475554
|
need23(
|
|
475389
475555
|
Number.isSafeInteger(n) && n > 0,
|
|
@@ -475513,7 +475679,7 @@ var NolModelValidationHostFactory = class {
|
|
|
475513
475679
|
await this.options.artifacts.verify(ref11, signal);
|
|
475514
475680
|
const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
|
|
475515
475681
|
need23(
|
|
475516
|
-
bytes5.byteLength === ref11.sizeBytes &&
|
|
475682
|
+
bytes5.byteLength === ref11.sizeBytes && createHash156("sha256").update(bytes5).digest("hex") === ref11.sha256,
|
|
475517
475683
|
"Native host metadata extent/hash changed"
|
|
475518
475684
|
);
|
|
475519
475685
|
const value = JSON.parse(
|
|
@@ -476518,7 +476684,7 @@ var NolModelValidationHostFactory = class {
|
|
|
476518
476684
|
await this.options.artifacts.verify(ref11, signal);
|
|
476519
476685
|
const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
|
|
476520
476686
|
need23(
|
|
476521
|
-
bytes5.byteLength === ref11.sizeBytes &&
|
|
476687
|
+
bytes5.byteLength === ref11.sizeBytes && createHash156("sha256").update(bytes5).digest("hex") === ref11.sha256,
|
|
476522
476688
|
"Native grading bytes changed"
|
|
476523
476689
|
);
|
|
476524
476690
|
return bytes5;
|
|
@@ -476641,17 +476807,17 @@ var NolModelValidationHostFactory = class {
|
|
|
476641
476807
|
// packages/cli/src/nol/peft-model-host.ts
|
|
476642
476808
|
init_dist();
|
|
476643
476809
|
init_dist5();
|
|
476644
|
-
import { createHash as
|
|
476810
|
+
import { createHash as createHash158 } from "node:crypto";
|
|
476645
476811
|
|
|
476646
476812
|
// packages/cli/src/nol/peft-model-subject-adapter.ts
|
|
476647
476813
|
init_dist();
|
|
476648
476814
|
init_dist5();
|
|
476649
|
-
import { createHash as
|
|
476815
|
+
import { createHash as createHash157 } from "node:crypto";
|
|
476650
476816
|
function need24(v, m) {
|
|
476651
476817
|
if (!v) throw new Error(`PEFT subject: ${m}`);
|
|
476652
476818
|
}
|
|
476653
476819
|
var same31 = (a, b, m) => need24(canonicalNolJson(a) === canonicalNolJson(b), m);
|
|
476654
|
-
var hash33 = (bytes5) =>
|
|
476820
|
+
var hash33 = (bytes5) => createHash157("sha256").update(bytes5).digest("hex");
|
|
476655
476821
|
var NolPeftModelSubjectAdapter = class {
|
|
476656
476822
|
profile;
|
|
476657
476823
|
host;
|
|
@@ -477167,7 +477333,7 @@ function need25(value, message3) {
|
|
|
477167
477333
|
function same32(actual, expected, message3) {
|
|
477168
477334
|
need25(canonicalNolJson(actual) === canonicalNolJson(expected), message3);
|
|
477169
477335
|
}
|
|
477170
|
-
var hash34 = (bytes5) =>
|
|
477336
|
+
var hash34 = (bytes5) => createHash158("sha256").update(bytes5).digest("hex");
|
|
477171
477337
|
var NolPeftModelHostExtension = class {
|
|
477172
477338
|
profiles;
|
|
477173
477339
|
configurationDigest;
|
|
@@ -477545,7 +477711,7 @@ import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
|
477545
477711
|
// packages/cli/src/nol/peft-control-verifier.ts
|
|
477546
477712
|
init_dist();
|
|
477547
477713
|
init_dist5();
|
|
477548
|
-
import { createHash as
|
|
477714
|
+
import { createHash as createHash159 } from "node:crypto";
|
|
477549
477715
|
import { constants as constants24, lstatSync as lstatSync19, realpathSync as realpathSync32 } from "node:fs";
|
|
477550
477716
|
import { lstat as lstat20, open as open16, opendir as opendir6 } from "node:fs/promises";
|
|
477551
477717
|
import { join as join97, relative as relative34, isAbsolute as isAbsolute56 } from "node:path";
|
|
@@ -477557,7 +477723,7 @@ import { setImmediate as yieldImmediate } from "node:timers/promises";
|
|
|
477557
477723
|
var NOL_PEFT_FACTOR_CONTROL_PROTOCOL = "omnius.nol.peft-factor-support-rademacher.v1";
|
|
477558
477724
|
|
|
477559
477725
|
// packages/cli/src/nol/peft-control-verifier.ts
|
|
477560
|
-
var sha35 = (bytes5) =>
|
|
477726
|
+
var sha35 = (bytes5) => createHash159("sha256").update(bytes5).digest("hex");
|
|
477561
477727
|
var copy9 = (value) => JSON.parse(canonicalNolJson(value));
|
|
477562
477728
|
function freeze10(value) {
|
|
477563
477729
|
if (value && typeof value === "object") {
|
|
@@ -477744,7 +477910,7 @@ async function checkedFile(path13, ref11, budget, opened) {
|
|
|
477744
477910
|
stamp6(await handle.stat()) === file.identity,
|
|
477745
477911
|
"source changed while opening"
|
|
477746
477912
|
);
|
|
477747
|
-
const digest19 =
|
|
477913
|
+
const digest19 = createHash159("sha256");
|
|
477748
477914
|
for (let offset = 0; offset < ref11.sizeBytes; offset += budget.options.limits.chunkBytes)
|
|
477749
477915
|
digest19.update(
|
|
477750
477916
|
await read(
|
|
@@ -477866,7 +478032,7 @@ async function header2(file, budget, factors2) {
|
|
|
477866
478032
|
);
|
|
477867
478033
|
file.dataStart = 8 + size;
|
|
477868
478034
|
for (const tensor of result) {
|
|
477869
|
-
const digest19 =
|
|
478035
|
+
const digest19 = createHash159("sha256");
|
|
477870
478036
|
if (factors2) {
|
|
477871
478037
|
budget.factorCoordinates += tensor.count;
|
|
477872
478038
|
integer25(
|
|
@@ -478079,7 +478245,7 @@ async function randomFactors(a, b, modulePath, seed, budget) {
|
|
|
478079
478245
|
const block = Math.floor(ordinal / 256);
|
|
478080
478246
|
if (block !== lastBlock) {
|
|
478081
478247
|
lastBlock = block;
|
|
478082
|
-
bytes5 =
|
|
478248
|
+
bytes5 = createHash159("sha256").update(
|
|
478083
478249
|
`${NOL_PEFT_FACTOR_CONTROL_PROTOCOL}\0${seed}\0${modulePath}\0${part}\0${block}`
|
|
478084
478250
|
).digest();
|
|
478085
478251
|
}
|
|
@@ -478248,7 +478414,7 @@ function createNolPeftControlVerifier(input2) {
|
|
|
478248
478414
|
stamp6(await file.handle.stat()) === file.identity,
|
|
478249
478415
|
"implementation source changed"
|
|
478250
478416
|
);
|
|
478251
|
-
const digest19 =
|
|
478417
|
+
const digest19 = createHash159("sha256");
|
|
478252
478418
|
for (let offset = 0; offset < before.size; offset += options.limits.chunkBytes)
|
|
478253
478419
|
digest19.update(
|
|
478254
478420
|
await read(
|
|
@@ -478895,7 +479061,7 @@ function createNolPeftModelControlVerifier(options) {
|
|
|
478895
479061
|
// packages/cli/src/nol/gguf-cpu-control-reader-service.ts
|
|
478896
479062
|
init_dist();
|
|
478897
479063
|
init_dist5();
|
|
478898
|
-
import { createHash as
|
|
479064
|
+
import { createHash as createHash160, randomUUID as randomUUID76 } from "node:crypto";
|
|
478899
479065
|
import { constants as constants25, lstatSync as lstatSync20, realpathSync as realpathSync33, statfsSync as statfsSync6 } from "node:fs";
|
|
478900
479066
|
import {
|
|
478901
479067
|
lstat as lstat21,
|
|
@@ -478934,7 +479100,7 @@ var inside6 = (root, path13) => {
|
|
|
478934
479100
|
};
|
|
478935
479101
|
var same34 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
|
|
478936
479102
|
var ref8 = (bytes5, mediaType = "application/json") => {
|
|
478937
|
-
const sha25611 =
|
|
479103
|
+
const sha25611 = createHash160("sha256").update(bytes5).digest("hex");
|
|
478938
479104
|
return {
|
|
478939
479105
|
sha256: sha25611,
|
|
478940
479106
|
sizeBytes: bytes5.length,
|
|
@@ -478975,7 +479141,7 @@ var NolGgufCpuControlReaderService = class {
|
|
|
478975
479141
|
"explicit host owner required"
|
|
478976
479142
|
);
|
|
478977
479143
|
this.ownerId = `${options.ownerId}:${randomUUID76()}`;
|
|
478978
|
-
this.projectId =
|
|
479144
|
+
this.projectId = createHash160("sha256").update(this.root).digest("hex");
|
|
478979
479145
|
this.scopeId = nolJsonDigest({ projectId: this.projectId, id: options.id });
|
|
478980
479146
|
this.leaseMs = options.leaseMs ?? 3e4;
|
|
478981
479147
|
need28(
|
|
@@ -479914,14 +480080,14 @@ var NolGgufCpuControlReaderService = class {
|
|
|
479914
480080
|
// packages/cli/src/nol/gguf-model-control-verifier.ts
|
|
479915
480081
|
init_dist();
|
|
479916
480082
|
init_dist5();
|
|
479917
|
-
import { createHash as
|
|
480083
|
+
import { createHash as createHash161 } from "node:crypto";
|
|
479918
480084
|
import { constants as constants26, lstatSync as lstatSync21, realpathSync as realpathSync34 } from "node:fs";
|
|
479919
480085
|
import { lstat as lstat22, open as open18, opendir as opendir8 } from "node:fs/promises";
|
|
479920
480086
|
import { isAbsolute as isAbsolute58, join as join99, relative as relative36 } from "node:path";
|
|
479921
480087
|
import { fileURLToPath as fileURLToPath15 } from "node:url";
|
|
479922
480088
|
import { performance as performance6 } from "node:perf_hooks";
|
|
479923
480089
|
var NOL_GGUF_DENSE_CONTROL_PROTOCOL = "omnius.nol.gguf-dense-post-storage-rademacher.v1";
|
|
479924
|
-
var hash35 = (value) =>
|
|
480090
|
+
var hash35 = (value) => createHash161("sha256").update(value).digest("hex");
|
|
479925
480091
|
var copy11 = (v) => JSON.parse(canonicalNolJson(v));
|
|
479926
480092
|
function freeze12(v) {
|
|
479927
480093
|
if (v && typeof v === "object") {
|
|
@@ -480042,7 +480208,7 @@ async function readAt(file, offset, size, b) {
|
|
|
480042
480208
|
return bytes5;
|
|
480043
480209
|
}
|
|
480044
480210
|
async function rangeHash(file, offset, size, b) {
|
|
480045
|
-
const h =
|
|
480211
|
+
const h = createHash161("sha256");
|
|
480046
480212
|
for (let n = 0; n < size; n += b.limits.chunkBytes)
|
|
480047
480213
|
h.update(
|
|
480048
480214
|
await readAt(
|
|
@@ -480748,7 +480914,7 @@ var Signs = class {
|
|
|
480748
480914
|
const index = Math.floor(ordinal / 256);
|
|
480749
480915
|
if (index !== this.index) {
|
|
480750
480916
|
this.index = index;
|
|
480751
|
-
this.block =
|
|
480917
|
+
this.block = createHash161("sha256").update(
|
|
480752
480918
|
`${NOL_GGUF_DENSE_CONTROL_PROTOCOL}\0${this.seed}\0${this.tensor}\0${index}`
|
|
480753
480919
|
).digest();
|
|
480754
480920
|
}
|
|
@@ -481159,7 +481325,7 @@ init_dist();
|
|
|
481159
481325
|
// packages/cli/src/nol/model-control-verifier.ts
|
|
481160
481326
|
init_dist();
|
|
481161
481327
|
init_dist5();
|
|
481162
|
-
import { createHash as
|
|
481328
|
+
import { createHash as createHash162 } from "node:crypto";
|
|
481163
481329
|
import { constants as constants27, lstatSync as lstatSync22, realpathSync as realpathSync35 } from "node:fs";
|
|
481164
481330
|
import { lstat as lstat23, open as open19, opendir as opendir9 } from "node:fs/promises";
|
|
481165
481331
|
import { isAbsolute as isAbsolute59, join as join100, relative as relative37 } from "node:path";
|
|
@@ -481200,7 +481366,7 @@ function comparisonFiles(model3, receipts) {
|
|
|
481200
481366
|
(file) => !(file.role === "other" && Object.hasOwn(receipts, file.path) && canonicalNolJson(file.artifact) === receipts[file.path])
|
|
481201
481367
|
);
|
|
481202
481368
|
}
|
|
481203
|
-
var hash36 = (bytes5) =>
|
|
481369
|
+
var hash36 = (bytes5) => createHash162("sha256").update(bytes5).digest("hex");
|
|
481204
481370
|
var copy12 = (value) => JSON.parse(canonicalNolJson(value));
|
|
481205
481371
|
function freeze13(value) {
|
|
481206
481372
|
if (value && typeof value === "object") {
|
|
@@ -481433,7 +481599,7 @@ async function checkedFile3(path13, ref11, budget) {
|
|
|
481433
481599
|
identity: identity9,
|
|
481434
481600
|
ref: ref11
|
|
481435
481601
|
};
|
|
481436
|
-
const sha38 =
|
|
481602
|
+
const sha38 = createHash162("sha256");
|
|
481437
481603
|
for (let offset = 0; offset < file.size; offset += budget.limits.chunkBytes)
|
|
481438
481604
|
sha38.update(
|
|
481439
481605
|
await readAt2(
|
|
@@ -481833,7 +481999,7 @@ async function pytorchTensors(reader, asset2, files, tensors, options, budget) {
|
|
|
481833
481999
|
need30(ranges2.length > 0, "weight shard omitted from CPU tensor inventory");
|
|
481834
482000
|
}
|
|
481835
482001
|
for (const [name, tensor] of tensors) {
|
|
481836
|
-
const sha38 =
|
|
482002
|
+
const sha38 = createHash162("sha256");
|
|
481837
482003
|
for (let position = tensor.first; position < tensor.last; position += budget.limits.chunkBytes)
|
|
481838
482004
|
sha38.update(
|
|
481839
482005
|
await readAt2(
|
|
@@ -482145,7 +482311,7 @@ var Signs2 = class {
|
|
|
482145
482311
|
const index = Math.floor(ordinal / 256);
|
|
482146
482312
|
if (index !== this.index) {
|
|
482147
482313
|
this.index = index;
|
|
482148
|
-
this.block =
|
|
482314
|
+
this.block = createHash162("sha256").update(
|
|
482149
482315
|
`${NOL_SAFETENSORS_CONTROL_PROTOCOL}\0${this.seed}\0${this.tensorName}\0${index}`
|
|
482150
482316
|
).digest();
|
|
482151
482317
|
}
|
|
@@ -482356,7 +482522,7 @@ function commonVerifier(input2) {
|
|
|
482356
482522
|
}
|
|
482357
482523
|
};
|
|
482358
482524
|
budget.reserve(sourceInfo.size);
|
|
482359
|
-
const sha38 =
|
|
482525
|
+
const sha38 = createHash162("sha256");
|
|
482360
482526
|
for (let offset = 0; offset < sourceInfo.size; offset += options.limits.chunkBytes)
|
|
482361
482527
|
sha38.update(
|
|
482362
482528
|
await readAt2(
|
|
@@ -482676,7 +482842,7 @@ function commonVerifier(input2) {
|
|
|
482676
482842
|
// packages/cli/src/nol/cpu-control-reader-service.ts
|
|
482677
482843
|
init_dist();
|
|
482678
482844
|
init_dist5();
|
|
482679
|
-
import { createHash as
|
|
482845
|
+
import { createHash as createHash163, randomUUID as randomUUID77 } from "node:crypto";
|
|
482680
482846
|
import { constants as constants28, lstatSync as lstatSync23, realpathSync as realpathSync36, statfsSync as statfsSync7 } from "node:fs";
|
|
482681
482847
|
import {
|
|
482682
482848
|
lstat as lstat24,
|
|
@@ -482715,7 +482881,7 @@ var inside9 = (root, path13) => {
|
|
|
482715
482881
|
};
|
|
482716
482882
|
var same37 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
|
|
482717
482883
|
var ref9 = (bytes5, mediaType = "application/json") => {
|
|
482718
|
-
const sha25611 =
|
|
482884
|
+
const sha25611 = createHash163("sha256").update(bytes5).digest("hex");
|
|
482719
482885
|
return {
|
|
482720
482886
|
sha256: sha25611,
|
|
482721
482887
|
sizeBytes: bytes5.length,
|
|
@@ -482756,7 +482922,7 @@ var NolCpuControlReaderService = class {
|
|
|
482756
482922
|
"explicit host owner required"
|
|
482757
482923
|
);
|
|
482758
482924
|
this.ownerId = `${options.ownerId}:${randomUUID77()}`;
|
|
482759
|
-
this.projectId =
|
|
482925
|
+
this.projectId = createHash163("sha256").update(this.root).digest("hex");
|
|
482760
482926
|
this.scopeId = nolJsonDigest({ projectId: this.projectId, id: options.id });
|
|
482761
482927
|
this.leaseMs = options.leaseMs ?? 3e4;
|
|
482762
482928
|
need31(
|
|
@@ -484334,12 +484500,12 @@ var SqliteNolVariantStore = class {
|
|
|
484334
484500
|
// packages/cli/src/nol/variant-service.ts
|
|
484335
484501
|
init_dist();
|
|
484336
484502
|
init_dist5();
|
|
484337
|
-
import { createHash as
|
|
484503
|
+
import { createHash as createHash165 } from "node:crypto";
|
|
484338
484504
|
|
|
484339
484505
|
// packages/cli/src/nol/model-serving.ts
|
|
484340
484506
|
init_dist();
|
|
484341
484507
|
init_dist5();
|
|
484342
|
-
import { createHash as
|
|
484508
|
+
import { createHash as createHash164 } from "node:crypto";
|
|
484343
484509
|
var NOL_SANDBOX_SERVING_KIND = "nol_sandbox_serve";
|
|
484344
484510
|
var NOL_SANDBOX_BINDING_KIND = "nol_sandbox_binding";
|
|
484345
484511
|
function need32(value, text18) {
|
|
@@ -484466,7 +484632,7 @@ var NolSandboxServingService = class {
|
|
|
484466
484632
|
"Sandbox bounded result/metadata byte limit exceeded"
|
|
484467
484633
|
);
|
|
484468
484634
|
if (!cleanup) this.options.store.assertCurrent(lease());
|
|
484469
|
-
const sha25611 =
|
|
484635
|
+
const sha25611 = createHash164("sha256").update(bytes5).digest("hex"), ref11 = NolArtifactRefSchema.parse({
|
|
484470
484636
|
uri: `omnius-artifact://sha256/${sha25611}`,
|
|
484471
484637
|
sha256: sha25611,
|
|
484472
484638
|
sizeBytes: bytes5.byteLength,
|
|
@@ -484574,7 +484740,7 @@ var NolSandboxServingService = class {
|
|
|
484574
484740
|
"nol_sandbox_prepaid_control",
|
|
484575
484741
|
record10.id,
|
|
484576
484742
|
record10.payload
|
|
484577
|
-
), sha38 =
|
|
484743
|
+
), sha38 = createHash164("sha256").update(bytes5).digest("hex"), reservations = this.options.store.listArtifactReservations(
|
|
484578
484744
|
source2.manifestSha256
|
|
484579
484745
|
), reserved = reservations.find(
|
|
484580
484746
|
(v) => v.purpose === "cleanup_artifact" && v.jobId === source2.id && v.generation === r.sourceClaimGeneration && v.artifact?.sha256 === sha38 && v.bytes === bytes5.length
|
|
@@ -484755,7 +484921,7 @@ var NolSandboxServingService = class {
|
|
|
484755
484921
|
bytes5.length <= this.options.limits.maxMetadataBytes,
|
|
484756
484922
|
"Prepaid control metadata bound exceeded"
|
|
484757
484923
|
);
|
|
484758
|
-
const sha25611 =
|
|
484924
|
+
const sha25611 = createHash164("sha256").update(bytes5).digest("hex");
|
|
484759
484925
|
this.options.store.reserveArtifact(lease, {
|
|
484760
484926
|
scopeId: source2.manifestSha256,
|
|
484761
484927
|
id: `cleanup:${sha25611}`,
|
|
@@ -484776,7 +484942,7 @@ var NolSandboxServingService = class {
|
|
|
484776
484942
|
"nol_sandbox_prepaid_control",
|
|
484777
484943
|
priorControl.id,
|
|
484778
484944
|
priorControl.payload
|
|
484779
|
-
), sha38 =
|
|
484945
|
+
), sha38 = createHash164("sha256").update(bytes5).digest("hex");
|
|
484780
484946
|
need32(
|
|
484781
484947
|
this.options.store.listArtifactReservations(source2.manifestSha256).some(
|
|
484782
484948
|
(r) => r.purpose === "cleanup_artifact" && r.jobId === source2.id && r.generation === lease.generation && r.artifact?.sha256 === sha38 && r.bytes === bytes5.length
|
|
@@ -486153,7 +486319,7 @@ var NolVariantService = class {
|
|
|
486153
486319
|
await this.options.artifacts.verify(ref11, signal);
|
|
486154
486320
|
const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
|
|
486155
486321
|
need33(
|
|
486156
|
-
bytes5.byteLength === ref11.sizeBytes &&
|
|
486322
|
+
bytes5.byteLength === ref11.sizeBytes && createHash165("sha256").update(bytes5).digest("hex") === ref11.sha256,
|
|
486157
486323
|
"Variant metadata changed while reading"
|
|
486158
486324
|
);
|
|
486159
486325
|
const value = JSON.parse(
|
|
@@ -486709,7 +486875,7 @@ var NolProjectModelServices = class {
|
|
|
486709
486875
|
this.config = JSON.parse(
|
|
486710
486876
|
canonicalNolJson(options.config)
|
|
486711
486877
|
);
|
|
486712
|
-
this.projectId =
|
|
486878
|
+
this.projectId = createHash166("sha256").update(options.projectRoot).digest("hex");
|
|
486713
486879
|
const controls = this.config.controlVerification.kind === "safetensors_post_storage_rademacher_v1" ? createNolSafetensorsControlVerifier({
|
|
486714
486880
|
profiles: this.config.profiles,
|
|
486715
486881
|
artifacts: options.artifacts,
|
|
@@ -487155,14 +487321,14 @@ init_dist();
|
|
|
487155
487321
|
init_dist5();
|
|
487156
487322
|
import { readFileSync as readFileSync71 } from "node:fs";
|
|
487157
487323
|
import { fileURLToPath as fileURLToPath18 } from "node:url";
|
|
487158
|
-
import { createHash as
|
|
487324
|
+
import { createHash as createHash167 } from "node:crypto";
|
|
487159
487325
|
function buildNolModelJsonScorer(profile3) {
|
|
487160
487326
|
const validator = createNolJsonSchemaValidator(profile3.jsonSchema, {
|
|
487161
487327
|
draft: profile3.draft
|
|
487162
487328
|
});
|
|
487163
487329
|
const harnessDigest = nolJsonDigest({
|
|
487164
487330
|
schema: "omnius.nol.model-json-exact-harness.v1",
|
|
487165
|
-
implementation:
|
|
487331
|
+
implementation: createHash167("sha256").update(readFileSync71(fileURLToPath18(import.meta.url))).digest("hex"),
|
|
487166
487332
|
validator: validator.implementationDigest,
|
|
487167
487333
|
profile: profile3
|
|
487168
487334
|
});
|
|
@@ -487377,7 +487543,7 @@ function hostPlacementHook(options) {
|
|
|
487377
487543
|
);
|
|
487378
487544
|
return options.onPlacementConfirmed;
|
|
487379
487545
|
}
|
|
487380
|
-
var hash37 = (value) =>
|
|
487546
|
+
var hash37 = (value) => createHash168("sha256").update(value).digest("hex");
|
|
487381
487547
|
var MAX_CONFIG_BYTES2 = 16 * 1024 * 1024;
|
|
487382
487548
|
async function readNolJsonDocument(path13, maxBytes = MAX_CONFIG_BYTES2) {
|
|
487383
487549
|
const handle = await open21(path13, constants29.O_RDONLY | constants29.O_NONBLOCK);
|
|
@@ -488546,7 +488712,7 @@ async function shutdownNolRuntimes(options = {}) {
|
|
|
488546
488712
|
|
|
488547
488713
|
// packages/cli/src/nol/transformers-nnsight.ts
|
|
488548
488714
|
init_dist();
|
|
488549
|
-
import { createHash as
|
|
488715
|
+
import { createHash as createHash169 } from "node:crypto";
|
|
488550
488716
|
var NOL_NNSIGHT_GRADIENT_VERSION = "omnius.nol.transformers-nnsight.v2";
|
|
488551
488717
|
var NOL_NNSIGHT_GRADIENT_BASE_SHA256 = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
|
|
488552
488718
|
var SHA10 = /^[a-f0-9]{64}$/;
|
|
@@ -488667,7 +488833,7 @@ function vector(value, size) {
|
|
|
488667
488833
|
return parsed;
|
|
488668
488834
|
});
|
|
488669
488835
|
need34(
|
|
488670
|
-
|
|
488836
|
+
createHash169("sha256").update(bytes5).digest("hex") === hash38(item.sha256),
|
|
488671
488837
|
"F32 vector byte identity changed"
|
|
488672
488838
|
);
|
|
488673
488839
|
return values;
|
|
@@ -488972,7 +489138,7 @@ function verifyNolNnsightGradientObservation(input2) {
|
|
|
488972
489138
|
// packages/cli/src/nol/gne-tools-transport.ts
|
|
488973
489139
|
init_dist();
|
|
488974
489140
|
init_dist5();
|
|
488975
|
-
import { createHash as
|
|
489141
|
+
import { createHash as createHash170 } from "node:crypto";
|
|
488976
489142
|
import { fileURLToPath as fileURLToPath20 } from "node:url";
|
|
488977
489143
|
|
|
488978
489144
|
// packages/cli/src/nol/native-agent-evaluation.ts
|
|
@@ -489104,7 +489270,7 @@ var names = Object.keys(NOL_NATIVE_AGENT_SCHEMAS);
|
|
|
489104
489270
|
function need36(condition, message3) {
|
|
489105
489271
|
if (!condition) throw new Error(`GNE native tools: ${message3}`);
|
|
489106
489272
|
}
|
|
489107
|
-
var hash39 = (bytes5) =>
|
|
489273
|
+
var hash39 = (bytes5) => createHash170("sha256").update(bytes5).digest("hex");
|
|
489108
489274
|
var same42 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
|
|
489109
489275
|
function object30(value) {
|
|
489110
489276
|
need36(
|
|
@@ -490025,12 +490191,12 @@ import {
|
|
|
490025
490191
|
writeFile as writeFile5
|
|
490026
490192
|
} from "node:fs/promises";
|
|
490027
490193
|
import { join as join103, resolve as resolve61 } from "node:path";
|
|
490028
|
-
import { randomUUID as randomUUID79, createHash as
|
|
490194
|
+
import { randomUUID as randomUUID79, createHash as createHash171 } from "node:crypto";
|
|
490029
490195
|
var FILES2 = ["input.json", "result.json"];
|
|
490030
490196
|
var NAMES = Object.keys(NOL_NATIVE_AGENT_SCHEMAS);
|
|
490031
490197
|
var BEGIN = "NOL_NATIVE_AGENT_RECEIPT_BEGIN";
|
|
490032
490198
|
var END = "NOL_NATIVE_AGENT_RECEIPT_END";
|
|
490033
|
-
var hash40 = (bytes5) =>
|
|
490199
|
+
var hash40 = (bytes5) => createHash171("sha256").update(bytes5).digest("hex");
|
|
490034
490200
|
function need37(condition, message3) {
|
|
490035
490201
|
if (!condition) throw new Error(`GNE agent evaluation: ${message3}`);
|
|
490036
490202
|
}
|
|
@@ -490676,7 +490842,7 @@ ${END}`;
|
|
|
490676
490842
|
// packages/cli/src/nol/gne-tools-profile.ts
|
|
490677
490843
|
init_dist();
|
|
490678
490844
|
init_dist5();
|
|
490679
|
-
import { createHash as
|
|
490845
|
+
import { createHash as createHash172, randomUUID as randomUUID80 } from "node:crypto";
|
|
490680
490846
|
import { mkdir as mkdir21, lstat as lstat25, realpath as realpath19 } from "node:fs/promises";
|
|
490681
490847
|
import { isAbsolute as isAbsolute63, join as join104, relative as relative40, resolve as resolve62 } from "node:path";
|
|
490682
490848
|
init_gne_conformance();
|
|
@@ -490685,7 +490851,7 @@ var ISSUED2 = "nol_gne_tools_conformance_issued";
|
|
|
490685
490851
|
var POOL = "nol_gne_tools_output_admission";
|
|
490686
490852
|
var SCOPE5 = "single_private_job_owner_no_general_multijob_atomic_quota_claim";
|
|
490687
490853
|
var GNE_REVISION = "b1ded91bf1ebd903f7229e4969cc764a418336a8";
|
|
490688
|
-
var sha36 = (value) =>
|
|
490854
|
+
var sha36 = (value) => createHash172("sha256").update(value).digest("hex");
|
|
490689
490855
|
var copy15 = (value) => JSON.parse(canonicalNolJson(value));
|
|
490690
490856
|
function need38(condition, message3) {
|
|
490691
490857
|
if (!condition) throw new Error(`GNE tools proof: ${message3}`);
|
|
@@ -491673,7 +491839,7 @@ function createNolGneToolsJournalAdmission(input2) {
|
|
|
491673
491839
|
// packages/cli/src/nol/transformers-research.ts
|
|
491674
491840
|
init_dist();
|
|
491675
491841
|
init_dist5();
|
|
491676
|
-
import { createHash as
|
|
491842
|
+
import { createHash as createHash173 } from "node:crypto";
|
|
491677
491843
|
import { constants as constants31 } from "node:fs";
|
|
491678
491844
|
import { lstat as lstat26, open as open23, realpath as realpath20 } from "node:fs/promises";
|
|
491679
491845
|
import { dirname as dirname57, isAbsolute as isAbsolute64, resolve as resolve63 } from "node:path";
|
|
@@ -491687,7 +491853,7 @@ var HEADS = new Set(
|
|
|
491687
491853
|
var need39 = (value, message3) => {
|
|
491688
491854
|
if (!value) throw new Error(`NOL research capture: ${message3}`);
|
|
491689
491855
|
};
|
|
491690
|
-
var sha37 = (value) =>
|
|
491856
|
+
var sha37 = (value) => createHash173("sha256").update(value).digest("hex");
|
|
491691
491857
|
var same44 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
|
|
491692
491858
|
function object31(value, keys8) {
|
|
491693
491859
|
need39(
|