@tangle-network/agent-runtime 0.336.0 → 0.337.0

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 (67) hide show
  1. package/dist/{activation-BT3VoIpg.js → activation-BHFW1uEv.js} +3 -3
  2. package/dist/{activation-BT3VoIpg.js.map → activation-BHFW1uEv.js.map} +1 -1
  3. package/dist/{activation-DZbEj4oG.d.ts → activation-DMehb166.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-CMGJKcl6.js → bundle-Cor5z_U9.js} +2 -2
  7. package/dist/{bundle-CMGJKcl6.js.map → bundle-Cor5z_U9.js.map} +1 -1
  8. package/dist/candidate-execution/index.d.ts +7 -2
  9. package/dist/candidate-execution/index.js +5 -5
  10. package/dist/{coordination-driver-rNoFHYmZ.js → coordination-driver-CMh1f0aW.js} +3 -3
  11. package/dist/{coordination-driver-rNoFHYmZ.js.map → coordination-driver-CMh1f0aW.js.map} +1 -1
  12. package/dist/{delegate-BdwThtY9.js → delegate-CCX9kVVr.js} +2 -2
  13. package/dist/{delegate-BdwThtY9.js.map → delegate-CCX9kVVr.js.map} +1 -1
  14. package/dist/durable.d.ts +1 -1
  15. package/dist/durable.js +5 -5
  16. package/dist/{graph-Bph_DX-z.js → graph-DdREcI4N.js} +4 -4
  17. package/dist/{graph-Bph_DX-z.js.map → graph-DdREcI4N.js.map} +1 -1
  18. package/dist/{improvement-cycle-Coj69usO.js → improvement-cycle-MY3fOdnr.js} +6 -6
  19. package/dist/{improvement-cycle-Coj69usO.js.map → improvement-cycle-MY3fOdnr.js.map} +1 -1
  20. package/dist/index.d.ts +5 -5
  21. package/dist/index.js +9 -9
  22. package/dist/intelligence.d.ts +4 -4
  23. package/dist/intelligence.js +7 -7
  24. package/dist/kernel.d.ts +2 -2
  25. package/dist/kernel.js +9 -9
  26. package/dist/{loop-runner-bin-BTC2czoj.d.ts → loop-runner-bin-B86AiPBf.d.ts} +2 -2
  27. package/dist/{loop-runner-bin-9MtarSBu.js → loop-runner-bin-vk20OLHn.js} +3 -3
  28. package/dist/{loop-runner-bin-9MtarSBu.js.map → loop-runner-bin-vk20OLHn.js.map} +1 -1
  29. package/dist/loop-runner-bin.d.ts +1 -1
  30. package/dist/loop-runner-bin.js +1 -1
  31. package/dist/mcp/bin.js +3 -3
  32. package/dist/mcp/index.d.ts +2 -2
  33. package/dist/mcp/index.js +5 -5
  34. package/dist/{openai-tools-DWuf9K9X.d.ts → openai-tools-DHO2QS1q.d.ts} +2 -2
  35. package/dist/{prepare-Ci9Wrle5.js → prepare-HgB1PE5H.js} +3 -3
  36. package/dist/{prepare-Ci9Wrle5.js.map → prepare-HgB1PE5H.js.map} +1 -1
  37. package/dist/{profile-BAwFYsOE.js → profile-hxqZn-p-.js} +2 -2
  38. package/dist/{profile-BAwFYsOE.js.map → profile-hxqZn-p-.js.map} +1 -1
  39. package/dist/profiles.d.ts +1 -1
  40. package/dist/{protected-model-port-DZUkB0cr.js → protected-model-port-BeJFGIjD.js} +4 -4
  41. package/dist/{protected-model-port-DZUkB0cr.js.map → protected-model-port-BeJFGIjD.js.map} +1 -1
  42. package/dist/{protected-model-port-CQg2gstJ.d.ts → protected-model-port-BhpQRTw-.d.ts} +2 -2
  43. package/dist/{provision-supervisor-Ced9EeHy.js → provision-supervisor-BXigA_iX.js} +4 -4
  44. package/dist/{provision-supervisor-Ced9EeHy.js.map → provision-supervisor-BXigA_iX.js.map} +1 -1
  45. package/dist/{runtime-DMVBv34m.js → runtime-DfU1_ndW.js} +75 -12
  46. package/dist/runtime-DfU1_ndW.js.map +1 -0
  47. package/dist/{sandbox-profile-compat-D_ZOL80S.js → sandbox-profile-compat-BpxJTqU8.js} +8 -3
  48. package/dist/sandbox-profile-compat-BpxJTqU8.js.map +1 -0
  49. package/dist/{search-executor-BNTeMygV.js → search-executor-SuQmYEil.js} +3 -3
  50. package/dist/{search-executor-BNTeMygV.js.map → search-executor-SuQmYEil.js.map} +1 -1
  51. package/dist/{server-z7xI_ItY.js → server-B6Ih0E-r.js} +4 -4
  52. package/dist/{server-z7xI_ItY.js.map → server-B6Ih0E-r.js.map} +1 -1
  53. package/dist/{supervise-ISaRiWVe.js → supervise-D9txxvz1.js} +32 -7
  54. package/dist/supervise-D9txxvz1.js.map +1 -0
  55. package/dist/{supervisor-B-bkXttM.js → supervisor-D3zrWAlw.js} +52 -8
  56. package/dist/supervisor-D3zrWAlw.js.map +1 -0
  57. package/dist/testing.d.ts +1 -1
  58. package/dist/testing.js +14 -14
  59. package/dist/tui/index.d.ts +1 -1
  60. package/dist/tui/index.js +1 -1
  61. package/dist/{types-BO8kh52C.d.ts → types-CupCBY-j.d.ts} +48 -4
  62. package/dist/{workspace-streams-U6_UfOXu.d.ts → workspace-streams-JLjh5DC6.d.ts} +8 -1
  63. package/package.json +1 -1
  64. package/dist/runtime-DMVBv34m.js.map +0 -1
  65. package/dist/sandbox-profile-compat-D_ZOL80S.js.map +0 -1
  66. package/dist/supervise-ISaRiWVe.js.map +0 -1
  67. package/dist/supervisor-B-bkXttM.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));
@@ -2180,7 +2183,8 @@ async function captureAgentCandidateWorkspaceToArtifacts(rootInput, options) {
2180
2183
  const limits = workspaceLimits(options.limits);
2181
2184
  const material = await scanMaterializedWorkspaceManifest(rootInput, {
2182
2185
  limits,
2183
- signal
2186
+ signal,
2187
+ excludedPaths: options.excludedPaths
2184
2188
  });
2185
2189
  validateManifest(material, limits);
2186
2190
  const root = await realpath(resolve(rootInput));
@@ -2219,7 +2223,8 @@ async function captureAgentCandidateWorkspaceTreeToArtifacts(rootInput, options)
2219
2223
  const limits = workspaceLimits(options.limits);
2220
2224
  const material = await scanMaterializedWorkspaceManifest(rootInput, {
2221
2225
  limits,
2222
- signal
2226
+ signal,
2227
+ excludedPaths: options.excludedPaths
2223
2228
  });
2224
2229
  validateManifest(material, limits);
2225
2230
  const root = await realpath(resolve(rootInput));
@@ -2529,4 +2534,4 @@ function isRecord(value) {
2529
2534
  //#endregion
2530
2535
  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
2536
 
2532
- //# sourceMappingURL=sandbox-profile-compat-D_ZOL80S.js.map
2537
+ //# sourceMappingURL=sandbox-profile-compat-BpxJTqU8.js.map