@tangle-network/agent-runtime 0.325.6 → 0.325.8
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/{activation-BMsOQxMD.d.ts → activation-BZz9_4us.d.ts} +2 -2
- package/dist/{activation-CHJAawWa.js → activation-C86mtRRn.js} +3 -3
- package/dist/{activation-CHJAawWa.js.map → activation-C86mtRRn.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{bundle-KZGUQqRM.js → bundle-DqvlwhKP.js} +2 -2
- package/dist/{bundle-KZGUQqRM.js.map → bundle-DqvlwhKP.js.map} +1 -1
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-B2XzW5aV.js → coordination-driver-ByRQBBQ8.js} +3 -3
- package/dist/{coordination-driver-B2XzW5aV.js.map → coordination-driver-ByRQBBQ8.js.map} +1 -1
- package/dist/{delegate-9kDSjqbX.js → delegate-CBbwCU9w.js} +2 -2
- package/dist/{delegate-9kDSjqbX.js.map → delegate-CBbwCU9w.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +5 -5
- package/dist/{graph-CASFQmWd.js → graph-CK3QKy1-.js} +4 -4
- package/dist/{graph-CASFQmWd.js.map → graph-CK3QKy1-.js.map} +1 -1
- package/dist/{improvement-cycle-VPes2yY3.js → improvement-cycle-CdDFeDGF.js} +6 -6
- package/dist/{improvement-cycle-VPes2yY3.js.map → improvement-cycle-CdDFeDGF.js.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-CrGUj3K9.js → loop-runner-bin-DiZu0E6c.js} +3 -3
- package/dist/{loop-runner-bin-CrGUj3K9.js.map → loop-runner-bin-DiZu0E6c.js.map} +1 -1
- package/dist/{loop-runner-bin-ECJA--ZN.d.ts → loop-runner-bin-UpYsI0iM.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-C_dJoluR.d.ts → openai-tools-BoHnTyO2.d.ts} +2 -2
- package/dist/{prepare-BrgoOJmU.js → prepare-0kTqt9qn.js} +3 -3
- package/dist/{prepare-BrgoOJmU.js.map → prepare-0kTqt9qn.js.map} +1 -1
- package/dist/{profile-ChWlsNCI.js → profile-DhZvQngF.js} +2 -2
- package/dist/{profile-ChWlsNCI.js.map → profile-DhZvQngF.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-CJzC-FRs.js → protected-model-port-CFQj32Lt.js} +4 -4
- package/dist/{protected-model-port-CJzC-FRs.js.map → protected-model-port-CFQj32Lt.js.map} +1 -1
- package/dist/{provision-supervisor-CN12VbBF.js → provision-supervisor-BfCUJugY.js} +4 -4
- package/dist/{provision-supervisor-CN12VbBF.js.map → provision-supervisor-BfCUJugY.js.map} +1 -1
- package/dist/{runtime-urcakzYm.js → runtime-B42d95iz.js} +74 -50
- package/dist/runtime-B42d95iz.js.map +1 -0
- package/dist/{sandbox-profile-compat-Dq7ujONv.js → sandbox-profile-compat-CVgQWb7T.js} +10 -7
- package/dist/{sandbox-profile-compat-Dq7ujONv.js.map → sandbox-profile-compat-CVgQWb7T.js.map} +1 -1
- package/dist/{search-executor-CWFISUJm.js → search-executor-Y4-qp_-x.js} +3 -3
- package/dist/{search-executor-CWFISUJm.js.map → search-executor-Y4-qp_-x.js.map} +1 -1
- package/dist/{server-C91JYr7S.js → server-Da3rQc8J.js} +4 -4
- package/dist/{server-C91JYr7S.js.map → server-Da3rQc8J.js.map} +1 -1
- package/dist/{supervise-ttbcgYgS.js → supervise-B2dC5dbY.js} +4 -4
- package/dist/{supervise-ttbcgYgS.js.map → supervise-B2dC5dbY.js.map} +1 -1
- package/dist/{supervisor-Crul0LFI.js → supervisor-BPbzMkTH.js} +2 -2
- package/dist/{supervisor-Crul0LFI.js.map → supervisor-BPbzMkTH.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +14 -14
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CTjiMrcF.d.ts → types-Ca5R4QXR.d.ts} +3 -1
- package/package.json +1 -1
- package/dist/runtime-urcakzYm.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { o as writeAtomicDurableFile } from "./durable-file-B_eJr6Mb.js";
|
|
2
|
-
import { $i as InMemoryResultBlobStore, Cn as assertBoxlessPromptOptions, En as runBrainLoop, Ft as createExecutorRegistry, Ki as notifySandboxEventObserver, Lt as createWorktreeCliExecutor, Pt as createExecutor, Ti as executableAgentSpecSnapshot, Tn as routerBrain, da as detachedFrozen, ea as InMemorySpawnJournal, fa as detachedSnapshot, gn as defaultSelectWinner, gt as mapExecutorResult, ht as gateOnDeliverable, j as settledToIteration, kt as verdictFromJudgeScore, mt as rollingDispatch, r as createSupervisor, rt as coordinationProfileToolPrefix, sa as isTraceAnalysisStore, ta as insideCursorNamespace, ua as contentAddress, v as withDriverExecutor, vn as runAgentRounds, wi as executableAgentProfileSnapshot, wn as readPromptOptions, yn as createSandboxLineage, yt as CheckUnavailableError } from "./supervisor-
|
|
2
|
+
import { $i as InMemoryResultBlobStore, Cn as assertBoxlessPromptOptions, En as runBrainLoop, Ft as createExecutorRegistry, Ki as notifySandboxEventObserver, Lt as createWorktreeCliExecutor, Pt as createExecutor, Ti as executableAgentSpecSnapshot, Tn as routerBrain, Yn as runAbortable, da as detachedFrozen, ea as InMemorySpawnJournal, fa as detachedSnapshot, gn as defaultSelectWinner, gt as mapExecutorResult, ht as gateOnDeliverable, j as settledToIteration, kt as verdictFromJudgeScore, mt as rollingDispatch, r as createSupervisor, rt as coordinationProfileToolPrefix, sa as isTraceAnalysisStore, ta as insideCursorNamespace, ua as contentAddress, v as withDriverExecutor, vn as runAgentRounds, wi as executableAgentProfileSnapshot, wn as readPromptOptions, yn as createSandboxLineage, yt as CheckUnavailableError } from "./supervisor-BPbzMkTH.js";
|
|
3
3
|
import { i as ConfigError, m as ValidationError, n as AnalystError, s as PlannerError } from "./errors-DodWX-cb.js";
|
|
4
|
-
import { B as runAgentic, G as observe, K as renderReport, U as ObservationError, V as sample, X as strategyAuthorMethod, a as reconcileInterruptedSearchCalls, c as searchExecutor, q as profileChatClient, r as dedicatedLane, x as runtimeShipDecision, z as refine } from "./search-executor-
|
|
5
|
-
import { $ as isAsyncIterable, Ct as armDeadlineTimer, F as canonicalCandidateDigest$1, G as chargedTokens, K as cloneSpend, M as markPutStreamVerified, Q as isAbortError, U as addSpend, V as sha256Bytes$1, X as fnv1a32Hex, Y as errorMessage, Z as hasCompleteCacheBreakdown, at as sleep, dt as zeroSpend, nt as randomSuffix, ot as stringifySafe, w as captureMaterializedWorkspace, x as WorkspaceScanLimitError, z as immutableCandidateValue } from "./sandbox-profile-compat-
|
|
4
|
+
import { B as runAgentic, G as observe, K as renderReport, U as ObservationError, V as sample, X as strategyAuthorMethod, a as reconcileInterruptedSearchCalls, c as searchExecutor, q as profileChatClient, r as dedicatedLane, x as runtimeShipDecision, z as refine } from "./search-executor-Y4-qp_-x.js";
|
|
5
|
+
import { $ as isAsyncIterable, Ct as armDeadlineTimer, F as canonicalCandidateDigest$1, G as chargedTokens, K as cloneSpend, M as markPutStreamVerified, Q as isAbortError, U as addSpend, V as sha256Bytes$1, X as fnv1a32Hex, Y as errorMessage, Z as hasCompleteCacheBreakdown, at as sleep, dt as zeroSpend, nt as randomSuffix, ot as stringifySafe, w as captureMaterializedWorkspace, x as WorkspaceScanLimitError, z as immutableCandidateValue } from "./sandbox-profile-compat-CVgQWb7T.js";
|
|
6
6
|
import { a as readCommittedJsonLines, i as readCommittedJsonFile, n as isNoEntError, o as upsertCommittedJsonLine, s as withJsonlFileLock, t as appendCommittedJsonLine } from "./jsonl-file-DBv31uPi.js";
|
|
7
7
|
import { c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, p as canonicalObservedModelParts, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CyCUwHed.js";
|
|
8
8
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-tXpAarhW.js";
|
|
9
9
|
import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction-DFCeo4vg.js";
|
|
10
|
-
import { D as foldCoordinationRecords, w as createInMemoryRunContext } from "./coordination-driver-
|
|
11
|
-
import { r as supervise } from "./supervise-
|
|
10
|
+
import { D as foldCoordinationRecords, w as createInMemoryRunContext } from "./coordination-driver-ByRQBBQ8.js";
|
|
11
|
+
import { r as supervise } from "./supervise-B2dC5dbY.js";
|
|
12
12
|
import { a as graphRunsFor, d as recordGraphRun, i as graphRegistry, l as lookupGraph, p as taskShapeDigest, r as graphFromStored, t as digestOfGraph } from "./graph-registry-DAI6KNXB.js";
|
|
13
13
|
import "./run-layout-Cu8H7aeh.js";
|
|
14
|
-
import "./provision-supervisor-
|
|
15
|
-
import "./delegate-
|
|
16
|
-
import "./graph-
|
|
14
|
+
import "./provision-supervisor-BfCUJugY.js";
|
|
15
|
+
import "./delegate-CBbwCU9w.js";
|
|
16
|
+
import "./graph-CK3QKy1-.js";
|
|
17
17
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256Bytes, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
18
18
|
import { CODING_HARNESSES, DEFAULT_TRACE_ANALYST_KINDS, InMemoryTraceStore, OUTPUT_VALUE, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, createTraceAnalyst, expandProfileAxes, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
19
19
|
import { createAgentRunOutcomeTracker } from "@tangle-network/sandbox/runtime";
|
|
@@ -4918,6 +4918,8 @@ const SHARD = /^[0-9a-f]{2}$/u;
|
|
|
4918
4918
|
const SAFE_NAMESPACE = /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$/u;
|
|
4919
4919
|
const RECEIPT_SCHEMA = "agent-runtime.private-cas-durable-receipt.v1";
|
|
4920
4920
|
const DURABLE_ATTEMPTS = 3;
|
|
4921
|
+
const DURABLE_STALL_MS = 12e4;
|
|
4922
|
+
const BUFFERED_BYTES_PER_MS = 256;
|
|
4921
4923
|
async function realDirectory(path) {
|
|
4922
4924
|
const entry = await lstat(path);
|
|
4923
4925
|
if (!entry.isDirectory() || entry.isSymbolicLink()) throw new Error(`private CAS directory is not a real directory: ${path}`);
|
|
@@ -4972,7 +4974,8 @@ async function readLocal(path) {
|
|
|
4972
4974
|
function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
4973
4975
|
if (!isAbsolute(root)) throw new Error("private CAS root must be absolute");
|
|
4974
4976
|
if (!SAFE_NAMESPACE.test(namespace) || namespace === "." || namespace === "..") throw new Error("private CAS namespace must be one safe identifier");
|
|
4975
|
-
const { durable, localBudgetBytes } = options;
|
|
4977
|
+
const { durable, localBudgetBytes, durableStallMs = DURABLE_STALL_MS } = options;
|
|
4978
|
+
if (!Number.isSafeInteger(durableStallMs) || durableStallMs <= 0) throw new Error("private CAS durableStallMs must be a positive integer");
|
|
4976
4979
|
if (localBudgetBytes !== void 0 && (durable === void 0 || !Number.isSafeInteger(localBudgetBytes) || localBudgetBytes < 0)) throw new Error("private CAS localBudgetBytes needs a durable store and a non-negative integer");
|
|
4977
4980
|
const store = join(resolve(root), "sha256");
|
|
4978
4981
|
const receipts = join(resolve(root), "durable", "sha256");
|
|
@@ -5014,23 +5017,42 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5014
5017
|
await rename(temporary, join(receipts, hex));
|
|
5015
5018
|
await syncDirectory(receipts);
|
|
5016
5019
|
};
|
|
5020
|
+
const watchAttempt = (idleMs, signal) => {
|
|
5021
|
+
const stall = new AbortController();
|
|
5022
|
+
let timer;
|
|
5023
|
+
const touch = () => {
|
|
5024
|
+
clearTimeout(timer);
|
|
5025
|
+
timer = setTimeout(() => stall.abort(/* @__PURE__ */ new Error(`durable copy moved no bytes for ${idleMs} ms`)), idleMs);
|
|
5026
|
+
};
|
|
5027
|
+
touch();
|
|
5028
|
+
const attempt = signal === void 0 ? stall.signal : AbortSignal.any([signal, stall.signal]);
|
|
5029
|
+
return {
|
|
5030
|
+
signal: attempt,
|
|
5031
|
+
touch,
|
|
5032
|
+
run: (act) => runAbortable(act, attempt, "private CAS durable copy was cancelled"),
|
|
5033
|
+
done: () => clearTimeout(timer)
|
|
5034
|
+
};
|
|
5035
|
+
};
|
|
5017
5036
|
const storeDurably = async (digest, bytes, signal) => {
|
|
5018
5037
|
let failure;
|
|
5019
5038
|
for (let attempt = 1; attempt <= DURABLE_ATTEMPTS; attempt++) {
|
|
5020
5039
|
signal?.throwIfAborted();
|
|
5040
|
+
const watch = watchAttempt(durableStallMs + Math.ceil(bytes.byteLength / BUFFERED_BYTES_PER_MS), signal);
|
|
5021
5041
|
try {
|
|
5022
|
-
await durable.put({
|
|
5042
|
+
await watch.run(() => durable.put({
|
|
5023
5043
|
namespace,
|
|
5024
5044
|
digest,
|
|
5025
5045
|
bytes,
|
|
5026
|
-
|
|
5027
|
-
});
|
|
5046
|
+
signal: watch.signal
|
|
5047
|
+
}));
|
|
5028
5048
|
await writeReceipt(digest, bytes.byteLength);
|
|
5029
5049
|
return;
|
|
5030
5050
|
} catch (error) {
|
|
5031
5051
|
failure = error;
|
|
5032
5052
|
if (signal?.aborted) throw error;
|
|
5033
5053
|
if (attempt < DURABLE_ATTEMPTS) await new Promise((settle) => setTimeout(settle, 1e3 * 4 ** (attempt - 1)));
|
|
5054
|
+
} finally {
|
|
5055
|
+
watch.done();
|
|
5034
5056
|
}
|
|
5035
5057
|
}
|
|
5036
5058
|
throw failure;
|
|
@@ -5074,15 +5096,22 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5074
5096
|
let failure;
|
|
5075
5097
|
for (let attempt = 1; attempt <= DURABLE_ATTEMPTS; attempt++) {
|
|
5076
5098
|
signal?.throwIfAborted();
|
|
5077
|
-
const
|
|
5099
|
+
const watch = watchAttempt(durableStallMs, signal);
|
|
5100
|
+
const chunks = readObject(path, ref, watch.signal);
|
|
5101
|
+
const pulled = (async function* () {
|
|
5102
|
+
for await (const chunk of chunks) {
|
|
5103
|
+
watch.touch();
|
|
5104
|
+
yield chunk;
|
|
5105
|
+
}
|
|
5106
|
+
})();
|
|
5078
5107
|
try {
|
|
5079
|
-
await durable.putStream({
|
|
5108
|
+
await watch.run(() => durable.putStream({
|
|
5080
5109
|
namespace,
|
|
5081
5110
|
digest,
|
|
5082
5111
|
byteLength,
|
|
5083
|
-
chunks,
|
|
5084
|
-
signal
|
|
5085
|
-
});
|
|
5112
|
+
chunks: pulled,
|
|
5113
|
+
signal: watch.signal
|
|
5114
|
+
}));
|
|
5086
5115
|
await writeReceipt(digest, byteLength);
|
|
5087
5116
|
return;
|
|
5088
5117
|
} catch (error) {
|
|
@@ -5090,6 +5119,7 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5090
5119
|
if (signal?.aborted) throw error;
|
|
5091
5120
|
if (attempt < DURABLE_ATTEMPTS) await new Promise((settle) => setTimeout(settle, 1e3 * 4 ** (attempt - 1)));
|
|
5092
5121
|
} finally {
|
|
5122
|
+
watch.done();
|
|
5093
5123
|
await chunks.return(void 0);
|
|
5094
5124
|
}
|
|
5095
5125
|
}
|
|
@@ -5097,7 +5127,7 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5097
5127
|
};
|
|
5098
5128
|
let lastPass;
|
|
5099
5129
|
const settlePut = async (sha, byteLength, linked, upload, signal) => {
|
|
5100
|
-
if (upload !== void 0 && !await hasReceipt(sha)) await upload
|
|
5130
|
+
if (upload !== void 0 && !await hasReceipt(sha)) await copyOnce(sha, upload, signal).catch(() => void 0);
|
|
5101
5131
|
const durableNow = await hasReceipt(sha);
|
|
5102
5132
|
const added = linked ? byteLength : 0;
|
|
5103
5133
|
const known = lastPass;
|
|
@@ -5108,11 +5138,23 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5108
5138
|
await offload(signal);
|
|
5109
5139
|
};
|
|
5110
5140
|
const uploading = /* @__PURE__ */ new Map();
|
|
5111
|
-
const
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5141
|
+
const waitFor = (copy, signal) => {
|
|
5142
|
+
const settled = copy.catch(() => void 0);
|
|
5143
|
+
return signal === void 0 ? settled : runAbortable(() => settled, signal, "private CAS wait for a copy in flight was cancelled");
|
|
5144
|
+
};
|
|
5145
|
+
const copyOnce = async (sha, copy, signal) => {
|
|
5146
|
+
for (let inflight = uploading.get(sha); inflight !== void 0; inflight = uploading.get(sha)) {
|
|
5147
|
+
await waitFor(inflight, signal);
|
|
5148
|
+
if (await hasReceipt(sha)) return false;
|
|
5149
|
+
}
|
|
5150
|
+
const current = copy();
|
|
5151
|
+
uploading.set(sha, current);
|
|
5152
|
+
try {
|
|
5153
|
+
await current;
|
|
5154
|
+
return true;
|
|
5155
|
+
} finally {
|
|
5156
|
+
if (uploading.get(sha) === current) uploading.delete(sha);
|
|
5157
|
+
}
|
|
5116
5158
|
};
|
|
5117
5159
|
const sweep = async (signal) => {
|
|
5118
5160
|
const objects = await localObjects();
|
|
@@ -5121,19 +5163,14 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5121
5163
|
let refusal;
|
|
5122
5164
|
const durableHex = /* @__PURE__ */ new Set();
|
|
5123
5165
|
for (const object of objects) {
|
|
5166
|
+
const inflight = uploading.get(object.hex);
|
|
5167
|
+
if (inflight !== void 0) await waitFor(inflight, signal);
|
|
5124
5168
|
if (await hasReceipt(object.hex)) {
|
|
5125
5169
|
durableHex.add(object.hex);
|
|
5126
5170
|
continue;
|
|
5127
5171
|
}
|
|
5128
5172
|
if (durable === void 0) continue;
|
|
5129
5173
|
const digest = `sha256:${object.hex}`;
|
|
5130
|
-
if (uploading.has(object.hex)) {
|
|
5131
|
-
pending.push({
|
|
5132
|
-
digest,
|
|
5133
|
-
error: "durable upload in progress"
|
|
5134
|
-
});
|
|
5135
|
-
continue;
|
|
5136
|
-
}
|
|
5137
5174
|
if (refusal !== void 0) {
|
|
5138
5175
|
pending.push({
|
|
5139
5176
|
digest,
|
|
@@ -5142,7 +5179,8 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5142
5179
|
continue;
|
|
5143
5180
|
}
|
|
5144
5181
|
try {
|
|
5145
|
-
|
|
5182
|
+
let copied;
|
|
5183
|
+
if (durable.putStream && durable.getStream) copied = await copyOnce(object.hex, () => streamDurably(digest, object.path, object.size, signal), signal);
|
|
5146
5184
|
else {
|
|
5147
5185
|
const bytes = await readLocal(object.path);
|
|
5148
5186
|
if (bytes === void 0) continue;
|
|
@@ -5153,10 +5191,10 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5153
5191
|
});
|
|
5154
5192
|
continue;
|
|
5155
5193
|
}
|
|
5156
|
-
await storeDurably(digest, bytes, signal);
|
|
5194
|
+
copied = await copyOnce(object.hex, () => storeDurably(digest, bytes, signal), signal);
|
|
5157
5195
|
}
|
|
5158
5196
|
durableHex.add(object.hex);
|
|
5159
|
-
uploaded++;
|
|
5197
|
+
if (copied) uploaded++;
|
|
5160
5198
|
} catch (error) {
|
|
5161
5199
|
if (signal?.aborted) throw error;
|
|
5162
5200
|
refusal = message(error);
|
|
@@ -5310,15 +5348,7 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5310
5348
|
} finally {
|
|
5311
5349
|
await dir.close();
|
|
5312
5350
|
}
|
|
5313
|
-
if (durable !== void 0) await settlePut(sha, byteLength, linked,
|
|
5314
|
-
if (uploading.has(sha)) return;
|
|
5315
|
-
startUpload(sha);
|
|
5316
|
-
try {
|
|
5317
|
-
await streamDurably(digest, path, byteLength, signal);
|
|
5318
|
-
} finally {
|
|
5319
|
-
endUpload(sha);
|
|
5320
|
-
}
|
|
5321
|
-
}, signal);
|
|
5351
|
+
if (durable !== void 0) await settlePut(sha, byteLength, linked, () => streamDurably(digest, path, byteLength, signal), signal);
|
|
5322
5352
|
return ref;
|
|
5323
5353
|
} finally {
|
|
5324
5354
|
await unlink(temporary).catch((error) => {
|
|
@@ -5334,13 +5364,7 @@ function createPrivateCasArtifactPort(root, namespace, options = {}) {
|
|
|
5334
5364
|
async put({ bytes, signal }) {
|
|
5335
5365
|
signal?.throwIfAborted();
|
|
5336
5366
|
const digest = sha256(bytes);
|
|
5337
|
-
|
|
5338
|
-
if (durable !== void 0) startUpload(sha);
|
|
5339
|
-
try {
|
|
5340
|
-
return await putBuffered(bytes, digest, sha, signal);
|
|
5341
|
-
} finally {
|
|
5342
|
-
if (durable !== void 0) endUpload(sha);
|
|
5343
|
-
}
|
|
5367
|
+
return putBuffered(bytes, digest, hexOf(digest), signal);
|
|
5344
5368
|
},
|
|
5345
5369
|
async read(ref) {
|
|
5346
5370
|
return readRef(ref);
|
|
@@ -9311,4 +9335,4 @@ function tail(s) {
|
|
|
9311
9335
|
//#endregion
|
|
9312
9336
|
export { runBenchmark as $, McpSpawnFault as $t, connectRemoteSupervisor as A, inlineSandboxClient as At, chatTransportExecutor as B, runIsolatedCheck as Bt, analyzeTrace as C, observationFromRegistry as Ct, compileSearchSpec as D, defineLeaderboard as Dt, assertSearchSpec as E, harvestCorpus as Et, profileRunsForName as F, checkProgramDigest as Ft, assertStrategyContract as G, leaderboard as Gt, createChatSessionStore as H, deterministicCompletion as Ht, recordProfileRun as I, declaredCheckDeliverable as It, strategyAuthorSystemPrompt as J, renderLeaderboardMarkdown as Jt, authorStrategy as K, pairwiseSignificance as Kt, patchDelivered as L, declaredCheckDigest as Lt, loadProfile as M, loopDispatch as Mt, pickBestProfile as N, superviseDispatch as Nt, searchPresets as O, resolveSandboxClient as Ot, profileRegistry as P, assertDeclaredCheck as Pt, printBenchmarkReport as Q, openSqlRunStore as Qt, runCoderChecks as R, declaredCheckJudge as Rt, withUntrackedArtifacts as S, registryScopeAnalyst as St, SEARCH_SPEC_CORRELATION_KEY as T, HarvestError as Tt, runStrategyEvolution as U, sentinelCompletion as Ut, chatWorkerSeam as V, completionAuthorizes as Vt, strategyTournament as W, stopSentinel as Wt, openSandboxRun as X, renderPairwiseMarkdown as Xt, SandboxRunAbortError as Y, renderLeaderboardSvg as Yt, createS3PrivateCasStore as Z, SqlRunOwnershipError as Zt, VERIFY_TAIL_CHARS as _, verify as _t, localShell as a, mcpSecretEnvMetadataKey as an, builtinShapes as at, settledWorkerOut as b, buildSteerContext as bt, createVerifierEnvironment as c, secretEnvOfMcpServer as cn, FileCorpus as ct, harvestSurfaceDiffs as d, fanout as dt, connectStdioMcp as en, createPrivateCasArtifactPort as et, analystsFromRegistry as f, flatWidenGate as ft, NOTE_MAX_CHARS as g, selectValidWinner as gt, EVIDENCE_MAX_CHARS as h, pipeline as ht, jjWorkspace as i, envKeyProvider as in, runPersonified as it, bestProfileFor as j, loopCampaignDispatch as jt, searchSpecDigest as k, localSandboxClient as kt, boxSurfaceReader as l, createTangleSandboxExactProcessProvider as ln, InMemoryCorpus as lt, worktreeFanout as m, panel as mt, makeFinding$1 as n, createMcpEnvironment as nn, trajectoryReport as nt, runInWorkspace as o, resolveMcpServerLaunch as on, createShapeRegistry as ot, failuresAnalyst as p, loopUntil as pt, strategyAuthorContract as q, renderLeaderboardHtml as qt, gitWorkspace as r, sanitizeMcpToolSchema as rn, definePersona as rt, createWaterfallCollector as s, resolveSecretEnv as sn, registerShape as st, computeFindingId$1 as t, materializeLocalMcp as tn, equalKOnCost as tt, fsSurfaceReader as u, renderCorpusToInstructions as ut, closingWorkerNote as v, widen as vt, createFencedSqlRunContext as w, inProcessSandboxClient as wt, copyUntrackedIntoClone as x, createScopeAnalyst as xt, composeWorkerEvidence as y, assertTraceDerivedFindings as yt, graphDesignerExtraTools as z, readDeclaredCheck as zt };
|
|
9313
9337
|
|
|
9314
|
-
//# sourceMappingURL=runtime-
|
|
9338
|
+
//# sourceMappingURL=runtime-B42d95iz.js.map
|