@tangle-network/agent-runtime 0.336.1 → 0.337.1
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-WRMocDPp.js → activation-BgWVlVu2.js} +3 -3
- package/dist/{activation-WRMocDPp.js.map → activation-BgWVlVu2.js.map} +1 -1
- package/dist/{activation-D3h2jg6U.d.ts → activation-DMehb166.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{bundle-CMGJKcl6.js → bundle-BPGjESee.js} +2 -2
- package/dist/{bundle-CMGJKcl6.js.map → bundle-BPGjESee.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +7 -2
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-DIxyUXKr.js → coordination-driver-Dg9a6qsm.js} +3 -3
- package/dist/{coordination-driver-DIxyUXKr.js.map → coordination-driver-Dg9a6qsm.js.map} +1 -1
- package/dist/{delegate-DZ_EV8BU.js → delegate-aC14Cww3.js} +2 -2
- package/dist/{delegate-DZ_EV8BU.js.map → delegate-aC14Cww3.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +5 -5
- package/dist/{graph-DOIziP_V.js → graph-Cfx711ES.js} +4 -4
- package/dist/{graph-DOIziP_V.js.map → graph-Cfx711ES.js.map} +1 -1
- package/dist/{improvement-cycle-DRiKtfty.js → improvement-cycle-DHKcb_YW.js} +6 -6
- package/dist/{improvement-cycle-DRiKtfty.js.map → improvement-cycle-DHKcb_YW.js.map} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-DXMrEOWf.d.ts → loop-runner-bin-B86AiPBf.d.ts} +2 -2
- package/dist/{loop-runner-bin-DCCieRnZ.js → loop-runner-bin-BSKBNC38.js} +3 -3
- package/dist/{loop-runner-bin-DCCieRnZ.js.map → loop-runner-bin-BSKBNC38.js.map} +1 -1
- 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-mpuNXxBB.d.ts → openai-tools-DHO2QS1q.d.ts} +2 -2
- package/dist/{prepare-Ci9Wrle5.js → prepare-CER-ZkPp.js} +3 -3
- package/dist/{prepare-Ci9Wrle5.js.map → prepare-CER-ZkPp.js.map} +1 -1
- package/dist/{profile-BAwFYsOE.js → profile-gNUsHNIJ.js} +2 -2
- package/dist/{profile-BAwFYsOE.js.map → profile-gNUsHNIJ.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-CQg2gstJ.d.ts → protected-model-port-BhpQRTw-.d.ts} +2 -2
- package/dist/{protected-model-port-DZUkB0cr.js → protected-model-port-BuRsviSL.js} +4 -4
- package/dist/{protected-model-port-DZUkB0cr.js.map → protected-model-port-BuRsviSL.js.map} +1 -1
- package/dist/{provision-supervisor-BGXehCW5.js → provision-supervisor-72YFf-i_.js} +4 -4
- package/dist/{provision-supervisor-BGXehCW5.js.map → provision-supervisor-72YFf-i_.js.map} +1 -1
- package/dist/{runtime-B-qPSZyM.js → runtime-qFLOq1R9.js} +160 -42
- package/dist/runtime-qFLOq1R9.js.map +1 -0
- package/dist/{sandbox-profile-compat-D_ZOL80S.js → sandbox-profile-compat-QTkLe1Z6.js} +15 -5
- package/dist/sandbox-profile-compat-QTkLe1Z6.js.map +1 -0
- package/dist/{search-executor-B6X1doWD.js → search-executor-CGxvizHh.js} +3 -3
- package/dist/{search-executor-B6X1doWD.js.map → search-executor-CGxvizHh.js.map} +1 -1
- package/dist/{server-BwdkANs5.js → server-_FldJ9Cl.js} +4 -4
- package/dist/{server-BwdkANs5.js.map → server-_FldJ9Cl.js.map} +1 -1
- package/dist/{supervise-N4Wilrg1.js → supervise-H4BTN6uA.js} +4 -4
- package/dist/{supervise-N4Wilrg1.js.map → supervise-H4BTN6uA.js.map} +1 -1
- package/dist/{supervisor-CLi80MYC.js → supervisor-C27ne4yv.js} +2 -2
- package/dist/{supervisor-CLi80MYC.js.map → supervisor-C27ne4yv.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-C9qQxCd9.d.ts → types-CupCBY-j.d.ts} +2 -2
- package/dist/{workspace-streams-U6_UfOXu.d.ts → workspace-streams-JLjh5DC6.d.ts} +8 -1
- package/package.json +1 -1
- package/dist/runtime-B-qPSZyM.js.map +0 -1
- package/dist/sandbox-profile-compat-D_ZOL80S.js.map +0 -1
|
@@ -879,6 +879,8 @@ async function verifyMaterializedProfileWorkspace(root, expected, fileRoot = "wo
|
|
|
879
879
|
}
|
|
880
880
|
async function walkWorkspace(root, options, keepBytes) {
|
|
881
881
|
const ignoredProtectedRootEntries = new Set(options.ignoredProtectedRootEntries ?? []);
|
|
882
|
+
const excluded = new Set(options.excludedPaths ?? []);
|
|
883
|
+
for (const path of excluded) if (!path || path.includes("\\") || path.includes("\0") || isAbsolute(path) || path.split("/").some((part) => !part || part === "." || part === "..")) throw new Error("workspace excluded path must be a safe relative path");
|
|
882
884
|
const limits = options.limits;
|
|
883
885
|
const selected = options.selectedPaths ? new Set(options.selectedPaths) : void 0;
|
|
884
886
|
const selectedDirectories = /* @__PURE__ */ new Set();
|
|
@@ -909,6 +911,7 @@ async function walkWorkspace(root, options, keepBytes) {
|
|
|
909
911
|
const absolute = resolve(directory, entry.name);
|
|
910
912
|
const relPath = relative(absoluteRoot, absolute).split(sep).join("/");
|
|
911
913
|
if (!relPath || relPath.startsWith("../") || relPath.includes("/../")) throw new Error(`workspace entry escapes root: ${relPath}`);
|
|
914
|
+
if (excluded.has(relPath)) continue;
|
|
912
915
|
if (selected && !selected.has(relPath) && !selectedDirectories.has(relPath)) continue;
|
|
913
916
|
const stats = await lstat(absolute);
|
|
914
917
|
if (stats.isSymbolicLink()) throw new Error(await symlinkRefusal(absolute, relPath, absoluteRoot));
|
|
@@ -2169,8 +2172,13 @@ function workspaceTarHeader(name, mode, size) {
|
|
|
2169
2172
|
}
|
|
2170
2173
|
//#endregion
|
|
2171
2174
|
//#region src/candidate-execution/workspace-streams.ts
|
|
2172
|
-
/**
|
|
2173
|
-
|
|
2175
|
+
/**
|
|
2176
|
+
* Files a tree capture stores at once; each waits on a durable-store round trip of its own and on
|
|
2177
|
+
* four fsyncs. On drew-gtr-pro (2026-10-20), with three 180 ms store requests per file, 64 at once
|
|
2178
|
+
* stored a 473-file workspace in 83 s and 110 s against 128 s and 139 s for 16 at once, in
|
|
2179
|
+
* alternating runs, holding the same 16 sync threads.
|
|
2180
|
+
*/
|
|
2181
|
+
const CAPTURE_FILES_AT_ONCE = 64;
|
|
2174
2182
|
/** Capture regular files to durable artifacts with memory bounded by the manifest and stream buffers. */
|
|
2175
2183
|
async function captureAgentCandidateWorkspaceToArtifacts(rootInput, options) {
|
|
2176
2184
|
const { outputArtifacts, executionId, signal } = options.artifactPersistence;
|
|
@@ -2180,7 +2188,8 @@ async function captureAgentCandidateWorkspaceToArtifacts(rootInput, options) {
|
|
|
2180
2188
|
const limits = workspaceLimits(options.limits);
|
|
2181
2189
|
const material = await scanMaterializedWorkspaceManifest(rootInput, {
|
|
2182
2190
|
limits,
|
|
2183
|
-
signal
|
|
2191
|
+
signal,
|
|
2192
|
+
excludedPaths: options.excludedPaths
|
|
2184
2193
|
});
|
|
2185
2194
|
validateManifest(material, limits);
|
|
2186
2195
|
const root = await realpath(resolve(rootInput));
|
|
@@ -2219,7 +2228,8 @@ async function captureAgentCandidateWorkspaceTreeToArtifacts(rootInput, options)
|
|
|
2219
2228
|
const limits = workspaceLimits(options.limits);
|
|
2220
2229
|
const material = await scanMaterializedWorkspaceManifest(rootInput, {
|
|
2221
2230
|
limits,
|
|
2222
|
-
signal
|
|
2231
|
+
signal,
|
|
2232
|
+
excludedPaths: options.excludedPaths
|
|
2223
2233
|
});
|
|
2224
2234
|
validateManifest(material, limits);
|
|
2225
2235
|
const root = await realpath(resolve(rootInput));
|
|
@@ -2529,4 +2539,4 @@ function isRecord(value) {
|
|
|
2529
2539
|
//#endregion
|
|
2530
2540
|
export { isAsyncIterable as $, verifyMaterializedWorkspace as A, omitTopLevelDigest as B, candidateWorkspaceManifest as C, armDeadlineTimer as Ct, scanMaterializedWorkspaceManifest as D, singleFlightTeardown as Dt, readVerifiedArtifact as E, isDeadlineAbortReason as Et, canonicalCandidateDigest$1 as F, chargedTokens as G, verifyCanonicalCandidateDocument as H, canonicalCandidateDocument as I, deleteBoxSafe as J, cloneSpend as K, deepFreezeCandidate as L, markPutStreamVerified as M, verifiedArtifactChunks as N, verifyBytes as O, teardownExecutor as Ot, canonicalCandidateBytes$1 as P, isAbortError as Q, embeddedCandidateArtifact as R, artifactCacheKey as S, ROOT_DEADLINE_REASON as St, readMaterializedWorkspaceFiles as T, checkInIdleMs as Tt, addSpend as U, sha256Bytes$1 as V, addTokenUsage as W, fnv1a32Hex as X, errorMessage as Y, hasCompleteCacheBreakdown as Z, verifyTaskCheckout as _, ACCEPTED_RESULT_GRACE_MS as _t, materializeAgentCandidateWorkspaceFromArtifacts as a, sleep as at, isWellFormedUnicode as b, DEFAULT_CHECK_IN_IDLE_MS as bt, verifyAgentCandidateWorkspaceTree as c, throwIfAborted as ct, createAgentCandidateWorkspacePort as d, zeroSpend as dt, mapWithConcurrency as et, verifyAgentCandidateWorkspaceArchive as f, zeroTokenUsage as ft, verifyCandidateCode as g, withBudgetResources as gt, readCandidateGitHubResource as h, resourceTelemetry as ht, captureAgentCandidateWorkspaceTreeToArtifacts as i, roundBoxMinutes as it, verifyWorkspaceSnapshotArtifacts as j, verifyMaterializedProfileWorkspace as k, teardownSurfaces as kt, captureAgentCandidateWorkspace as l, unmeteredSpend as lt, persistCandidateOutputArtifact as m, assertResources as mt, refuseSandboxProfileField as n, randomSuffix as nt, readAgentCandidateWorkspaceArtifactFiles as o, stringifySafe as ot, workspaceLimits as p, addResourceSpend as pt, cloneTokenUsage as q, captureAgentCandidateWorkspaceToArtifacts as r, randomUuid as rt, verifyAgentCandidateWorkspaceArtifacts as s, throwAbort as st, assertSandboxProfileCompatibility as t, promptCacheTokenClasses as tt, captureAgentCandidateWorkspaceFiles as u, withTimeout as ut, verifyTaskOutcomePatch as v, CHILD_DEADLINE_REASON as vt, captureMaterializedWorkspace as w, boundedChildDeadlineAt as wt, WorkspaceScanLimitError as x, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as xt, assertExactObjectKeys as y, DEADLINE_CHECK_IN_MESSAGE as yt, immutableCandidateValue as z };
|
|
2531
2541
|
|
|
2532
|
-
//# sourceMappingURL=sandbox-profile-compat-
|
|
2542
|
+
//# sourceMappingURL=sandbox-profile-compat-QTkLe1Z6.js.map
|