@tangle-network/agent-runtime 0.325.7 → 0.325.9

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.
Files changed (61) hide show
  1. package/dist/{activation-BMsOQxMD.d.ts → activation-BZz9_4us.d.ts} +2 -2
  2. package/dist/{activation-CHJAawWa.js → activation-C86mtRRn.js} +3 -3
  3. package/dist/{activation-CHJAawWa.js.map → activation-C86mtRRn.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-KZGUQqRM.js → bundle-DqvlwhKP.js} +2 -2
  7. package/dist/{bundle-KZGUQqRM.js.map → bundle-DqvlwhKP.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +5 -5
  9. package/dist/{coordination-driver-B2XzW5aV.js → coordination-driver-ByRQBBQ8.js} +3 -3
  10. package/dist/{coordination-driver-B2XzW5aV.js.map → coordination-driver-ByRQBBQ8.js.map} +1 -1
  11. package/dist/{delegate-9kDSjqbX.js → delegate-CBbwCU9w.js} +2 -2
  12. package/dist/{delegate-9kDSjqbX.js.map → delegate-CBbwCU9w.js.map} +1 -1
  13. package/dist/durable.d.ts +1 -1
  14. package/dist/durable.js +5 -5
  15. package/dist/{graph-CASFQmWd.js → graph-CK3QKy1-.js} +4 -4
  16. package/dist/{graph-CASFQmWd.js.map → graph-CK3QKy1-.js.map} +1 -1
  17. package/dist/{improvement-cycle-VPes2yY3.js → improvement-cycle-CdDFeDGF.js} +6 -6
  18. package/dist/{improvement-cycle-VPes2yY3.js.map → improvement-cycle-CdDFeDGF.js.map} +1 -1
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +9 -9
  21. package/dist/intelligence.d.ts +2 -2
  22. package/dist/intelligence.js +7 -7
  23. package/dist/kernel.d.ts +1 -1
  24. package/dist/kernel.js +9 -9
  25. package/dist/{loop-runner-bin-CzewdsxT.js → loop-runner-bin-CjIVrg_p.js} +3 -3
  26. package/dist/{loop-runner-bin-CzewdsxT.js.map → loop-runner-bin-CjIVrg_p.js.map} +1 -1
  27. package/dist/{loop-runner-bin-ECJA--ZN.d.ts → loop-runner-bin-UpYsI0iM.d.ts} +2 -2
  28. package/dist/loop-runner-bin.d.ts +1 -1
  29. package/dist/loop-runner-bin.js +1 -1
  30. package/dist/mcp/bin.js +3 -3
  31. package/dist/mcp/index.d.ts +2 -2
  32. package/dist/mcp/index.js +5 -5
  33. package/dist/{openai-tools-C_dJoluR.d.ts → openai-tools-BoHnTyO2.d.ts} +2 -2
  34. package/dist/{prepare-BrgoOJmU.js → prepare-0kTqt9qn.js} +3 -3
  35. package/dist/{prepare-BrgoOJmU.js.map → prepare-0kTqt9qn.js.map} +1 -1
  36. package/dist/{profile-ChWlsNCI.js → profile-DhZvQngF.js} +2 -2
  37. package/dist/{profile-ChWlsNCI.js.map → profile-DhZvQngF.js.map} +1 -1
  38. package/dist/profiles.d.ts +1 -1
  39. package/dist/{protected-model-port-CJzC-FRs.js → protected-model-port-CFQj32Lt.js} +4 -4
  40. package/dist/{protected-model-port-CJzC-FRs.js.map → protected-model-port-CFQj32Lt.js.map} +1 -1
  41. package/dist/{provision-supervisor-CN12VbBF.js → provision-supervisor-BfCUJugY.js} +4 -4
  42. package/dist/{provision-supervisor-CN12VbBF.js.map → provision-supervisor-BfCUJugY.js.map} +1 -1
  43. package/dist/{runtime-CpIVXSDx.js → runtime-BnRuJgCX.js} +109 -61
  44. package/dist/runtime-BnRuJgCX.js.map +1 -0
  45. package/dist/{sandbox-profile-compat-Dq7ujONv.js → sandbox-profile-compat-CVgQWb7T.js} +10 -7
  46. package/dist/{sandbox-profile-compat-Dq7ujONv.js.map → sandbox-profile-compat-CVgQWb7T.js.map} +1 -1
  47. package/dist/{search-executor-CWFISUJm.js → search-executor-Y4-qp_-x.js} +3 -3
  48. package/dist/{search-executor-CWFISUJm.js.map → search-executor-Y4-qp_-x.js.map} +1 -1
  49. package/dist/{server-C91JYr7S.js → server-Da3rQc8J.js} +4 -4
  50. package/dist/{server-C91JYr7S.js.map → server-Da3rQc8J.js.map} +1 -1
  51. package/dist/{supervise-ttbcgYgS.js → supervise-B2dC5dbY.js} +4 -4
  52. package/dist/{supervise-ttbcgYgS.js.map → supervise-B2dC5dbY.js.map} +1 -1
  53. package/dist/{supervisor-Crul0LFI.js → supervisor-BPbzMkTH.js} +2 -2
  54. package/dist/{supervisor-Crul0LFI.js.map → supervisor-BPbzMkTH.js.map} +1 -1
  55. package/dist/testing.d.ts +1 -1
  56. package/dist/testing.js +14 -14
  57. package/dist/tui/index.d.ts +1 -1
  58. package/dist/tui/index.js +1 -1
  59. package/dist/{types-CTjiMrcF.d.ts → types-Ca5R4QXR.d.ts} +3 -1
  60. package/package.json +1 -1
  61. package/dist/runtime-CpIVXSDx.js.map +0 -1
@@ -2168,6 +2168,8 @@ function workspaceTarHeader(name, mode, size) {
2168
2168
  }
2169
2169
  //#endregion
2170
2170
  //#region src/candidate-execution/workspace-streams.ts
2171
+ /** Files a tree capture stores at once; each waits on a durable-store round trip of its own. */
2172
+ const CAPTURE_FILES_AT_ONCE = 16;
2171
2173
  /** Capture regular files to durable artifacts with memory bounded by the manifest and stream buffers. */
2172
2174
  async function captureAgentCandidateWorkspaceToArtifacts(rootInput, options) {
2173
2175
  const { outputArtifacts, executionId, signal } = options.artifactPersistence;
@@ -2220,15 +2222,16 @@ async function captureAgentCandidateWorkspaceTreeToArtifacts(rootInput, options)
2220
2222
  });
2221
2223
  validateManifest(material, limits);
2222
2224
  const root = await realpath(resolve(rootInput));
2223
- let bytes = 0;
2225
+ const bytes = material.files.reduce((sum, file) => sum + file.byteLength, 0);
2224
2226
  let storedBytes = 0;
2225
- for (const file of material.files) {
2227
+ const distinct = [...new Map(material.files.map((file) => [file.sha256, file])).values()];
2228
+ const locate = outputArtifacts.locate.bind(outputArtifacts);
2229
+ await mapWithConcurrency(distinct, CAPTURE_FILES_AT_ONCE, async (file) => {
2226
2230
  signal?.throwIfAborted();
2227
- bytes += file.byteLength;
2228
- if (await outputArtifacts.locate({
2231
+ if (await locate({
2229
2232
  sha256: file.sha256,
2230
2233
  byteLength: file.byteLength
2231
- }, signal === void 0 ? void 0 : { signal }) !== void 0) continue;
2234
+ }, signal === void 0 ? void 0 : { signal }) !== void 0) return;
2232
2235
  const stored = await persistCandidateOutputArtifactStream(outputArtifacts, {
2233
2236
  executionId,
2234
2237
  purpose: "candidate-workspace-file",
@@ -2238,7 +2241,7 @@ async function captureAgentCandidateWorkspaceTreeToArtifacts(rootInput, options)
2238
2241
  });
2239
2242
  if (stored.sha256 !== file.sha256 || stored.byteLength !== file.byteLength) throw new Error(`workspace file changed during capture: ${file.path}`);
2240
2243
  storedBytes += file.byteLength;
2241
- }
2244
+ });
2242
2245
  const manifestBytes = canonicalCandidateBytes$1(material);
2243
2246
  const manifest = await persistCandidateOutputArtifactStream(outputArtifacts, {
2244
2247
  executionId,
@@ -2525,4 +2528,4 @@ function isRecord(value) {
2525
2528
  //#endregion
2526
2529
  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 };
2527
2530
 
2528
- //# sourceMappingURL=sandbox-profile-compat-Dq7ujONv.js.map
2531
+ //# sourceMappingURL=sandbox-profile-compat-CVgQWb7T.js.map