@tangle-network/agent-runtime 0.325.17-0 → 0.325.17-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.
Files changed (51) hide show
  1. package/dist/{activation-Q3CJgiCu.d.ts → activation-BBW-m71u.d.ts} +2 -2
  2. package/dist/{activation--9-iyGR8.js → activation-D96mexEy.js} +2 -2
  3. package/dist/{activation--9-iyGR8.js.map → activation-D96mexEy.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-DkkUVe9g.js → coordination-driver-BDW2BD3B.js} +2 -2
  7. package/dist/{coordination-driver-DkkUVe9g.js.map → coordination-driver-BDW2BD3B.js.map} +1 -1
  8. package/dist/{delegate-BDsaIl2K.js → delegate-DfLfoyqH.js} +2 -2
  9. package/dist/{delegate-BDsaIl2K.js.map → delegate-DfLfoyqH.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +3 -3
  12. package/dist/{graph-Cuz6Ubzd.js → graph-Db0mn91l.js} +4 -4
  13. package/dist/{graph-Cuz6Ubzd.js.map → graph-Db0mn91l.js.map} +1 -1
  14. package/dist/{improvement-cycle-B5Z8cHKx.js → improvement-cycle-vIlvNX1K.js} +3 -3
  15. package/dist/{improvement-cycle-B5Z8cHKx.js.map → improvement-cycle-vIlvNX1K.js.map} +1 -1
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +7 -7
  18. package/dist/intelligence.d.ts +2 -2
  19. package/dist/intelligence.js +3 -3
  20. package/dist/kernel.d.ts +1 -1
  21. package/dist/kernel.js +8 -8
  22. package/dist/{loop-runner-bin-7m7KA5MN.js → loop-runner-bin-CGo7AZ5o.js} +3 -3
  23. package/dist/{loop-runner-bin-7m7KA5MN.js.map → loop-runner-bin-CGo7AZ5o.js.map} +1 -1
  24. package/dist/{loop-runner-bin-Co7JKSwi.d.ts → loop-runner-bin-cUBz2dI3.d.ts} +2 -2
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/mcp/bin.js +3 -3
  28. package/dist/mcp/index.d.ts +2 -2
  29. package/dist/mcp/index.js +4 -4
  30. package/dist/{openai-tools-CbgZrQJ_.d.ts → openai-tools-B_iSLxRt.d.ts} +2 -2
  31. package/dist/profiles.d.ts +1 -1
  32. package/dist/{provision-supervisor-4BoHpGFJ.js → provision-supervisor-BZx-pDF2.js} +3 -3
  33. package/dist/{provision-supervisor-4BoHpGFJ.js.map → provision-supervisor-BZx-pDF2.js.map} +1 -1
  34. package/dist/{runtime-DF2Mjm4l.js → runtime-Agdr28lx.js} +9 -71
  35. package/dist/runtime-Agdr28lx.js.map +1 -0
  36. package/dist/{search-executor-C-b4NaFl.js → search-executor-DkxGFYh8.js} +2 -2
  37. package/dist/{search-executor-C-b4NaFl.js.map → search-executor-DkxGFYh8.js.map} +1 -1
  38. package/dist/{server-CcHaXgUT.js → server-DRvmdqAe.js} +3 -3
  39. package/dist/{server-CcHaXgUT.js.map → server-DRvmdqAe.js.map} +1 -1
  40. package/dist/{supervise-BlaB4CeL.js → supervise-Hn5Bkl4x.js} +3 -3
  41. package/dist/{supervise-BlaB4CeL.js.map → supervise-Hn5Bkl4x.js.map} +1 -1
  42. package/dist/{supervisor-fq4JGynd.js → supervisor-Cwnf_e8V.js} +81 -16
  43. package/dist/supervisor-Cwnf_e8V.js.map +1 -0
  44. package/dist/testing.d.ts +1 -1
  45. package/dist/testing.js +12 -12
  46. package/dist/tui/index.d.ts +1 -1
  47. package/dist/tui/index.js +1 -1
  48. package/dist/{types-5r334mcg.d.ts → types-D3un8JfP.d.ts} +3 -2
  49. package/package.json +1 -1
  50. package/dist/runtime-DF2Mjm4l.js.map +0 -1
  51. package/dist/supervisor-fq4JGynd.js.map +0 -1
@@ -1,19 +1,19 @@
1
1
  import { o as writeAtomicDurableFile } from "./durable-file-B_eJr6Mb.js";
2
- import { $i as InMemorySpawnJournal, Ci as executableAgentProfileSnapshot, Cn as assertBoxlessPromptOptions, En as runBrainLoop, Ft as createExecutorRegistry, Gi as notifySandboxEventObserver, Lt as createWorktreeCliExecutor, Pt as createExecutor, Qi as InMemoryResultBlobStore, Tn as routerBrain, da as detachedSnapshot, ea as insideCursorNamespace, gn as defaultSelectWinner, gt as mapExecutorResult, ht as gateOnDeliverable, j as settledToIteration, kt as verdictFromJudgeScore, la as contentAddress, mt as rollingDispatch, oa as isTraceAnalysisStore, r as createSupervisor, rt as coordinationProfileToolPrefix, ua as detachedFrozen, v as withDriverExecutor, vn as runAgentRounds, wi as executableAgentSpecSnapshot, wn as readPromptOptions, yn as createSandboxLineage, yt as CheckUnavailableError } from "./supervisor-fq4JGynd.js";
2
+ import { $i as InMemoryResultBlobStore, Bi as createSandboxTurnEventCollector, Ci as executableAgentProfileSnapshot, Cn as assertBoxlessPromptOptions, En as runBrainLoop, Ft as createExecutorRegistry, Ki as notifySandboxEventObserver, Lt as createWorktreeCliExecutor, Pt as createExecutor, 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 executableAgentSpecSnapshot, wn as readPromptOptions, yn as createSandboxLineage, yt as CheckUnavailableError } from "./supervisor-Cwnf_e8V.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-C-b4NaFl.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-DkxGFYh8.js";
5
5
  import { A as markPutStreamVerified, J as fnv1a32Hex, L as immutableCandidateValue, N as canonicalCandidateDigest$1, S as captureMaterializedWorkspace, U as chargedTokens, V as addSpend, W as cloneSpend, X as isAbortError, Y as hasCompleteCacheBreakdown, Z as isAsyncIterable, et as randomSuffix, it as stringifySafe, lt as zeroSpend, q as errorMessage, rt as sleep, xt as armDeadlineTimer, y as WorkspaceScanLimitError, z as sha256Bytes$1 } from "./workspace-streams-CcoARX4v.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-DkkUVe9g.js";
11
- import { r as supervise } from "./supervise-BlaB4CeL.js";
10
+ import { D as foldCoordinationRecords, w as createInMemoryRunContext } from "./coordination-driver-BDW2BD3B.js";
11
+ import { r as supervise } from "./supervise-Hn5Bkl4x.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-4BoHpGFJ.js";
15
- import "./delegate-BDsaIl2K.js";
16
- import "./graph-Cuz6Ubzd.js";
14
+ import "./provision-supervisor-BZx-pDF2.js";
15
+ import "./delegate-DfLfoyqH.js";
16
+ import "./graph-Db0mn91l.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";
@@ -5965,7 +5965,7 @@ async function openSandboxRun(client, options, deliverable) {
5965
5965
  ...error !== void 0 ? { error: errorMessage(error) } : {}
5966
5966
  });
5967
5967
  async function settle(box, events, turnIndex, turnKind) {
5968
- const collector = createTurnEventCollector();
5968
+ const collector = createSandboxTurnEventCollector();
5969
5969
  const outcomeTracker = createAgentRunOutcomeTracker();
5970
5970
  try {
5971
5971
  for await (const ev of events) {
@@ -6153,68 +6153,6 @@ function hashText(value) {
6153
6153
  }
6154
6154
  return (hash >>> 0).toString(16).padStart(8, "0");
6155
6155
  }
6156
- /**
6157
- * Collect one turn's events, keeping only the newest snapshot of each streamed text or
6158
- * reasoning part.
6159
- *
6160
- * opencode sends `message.part.updated` once per token, and every frame carries the part's
6161
- * whole cumulative text, so keeping every frame holds O(L²) bytes per turn: two concurrent
6162
- * audit workflows took the platform API from 459 MB to an OOM at 1.95 GB in 11 minutes.
6163
- * A snapshot (a frame whose part carries `text`) whose text extends the previous snapshot
6164
- * of the same part replaces it and moves to the newest position, which is the rule the
6165
- * Sandbox SDK's text collectors already apply, so the collected text is unchanged. The kept
6166
- * frame drops its `delta`, because its text already holds every earlier increment and a
6167
- * reader that joins `delta ?? part.text` across frames would otherwise read only the last
6168
- * one. Delta-only frames and every other event are kept as they arrived.
6169
- */
6170
- function createTurnEventCollector() {
6171
- const slots = [];
6172
- const snapshots = /* @__PURE__ */ new Map();
6173
- return {
6174
- push(event) {
6175
- const snapshot = partSnapshot(event);
6176
- if (!snapshot) {
6177
- slots.push(event);
6178
- return;
6179
- }
6180
- const previous = snapshots.get(snapshot.key);
6181
- const extends_ = previous !== void 0 && snapshot.text.startsWith(previous.text);
6182
- if (extends_) slots[previous.at] = void 0;
6183
- snapshots.set(snapshot.key, {
6184
- at: slots.length,
6185
- text: snapshot.text
6186
- });
6187
- slots.push(extends_ ? withoutDelta(event) : event);
6188
- },
6189
- events() {
6190
- return slots.filter((event) => event !== void 0);
6191
- }
6192
- };
6193
- }
6194
- function partSnapshot(event) {
6195
- if (event?.type !== "message.part.updated") return void 0;
6196
- const data = asRecord$1(event.data);
6197
- const part = asRecord$1(data?.part) ?? asRecord$1(asRecord$1(data?.properties)?.part);
6198
- if (!part || typeof part.id !== "string") return void 0;
6199
- if (part.type !== "text" && part.type !== "reasoning" && part.type !== "thinking") return void 0;
6200
- const text = typeof part.text === "string" ? part.text : typeof part.content === "string" ? part.content : void 0;
6201
- return text === void 0 ? void 0 : {
6202
- key: `${part.type}:${part.id}`,
6203
- text
6204
- };
6205
- }
6206
- function withoutDelta(event) {
6207
- const data = asRecord$1(event.data);
6208
- if (!data || !("delta" in data)) return event;
6209
- const { delta: _delta, ...rest } = data;
6210
- return {
6211
- ...event,
6212
- data: rest
6213
- };
6214
- }
6215
- function asRecord$1(value) {
6216
- return value !== null && typeof value === "object" ? value : void 0;
6217
- }
6218
6156
  //#endregion
6219
6157
  //#region src/runtime/authored-code.ts
6220
6158
  /**
@@ -9346,4 +9284,4 @@ function tail(s) {
9346
9284
  //#endregion
9347
9285
  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 };
9348
9286
 
9349
- //# sourceMappingURL=runtime-DF2Mjm4l.js.map
9287
+ //# sourceMappingURL=runtime-Agdr28lx.js.map