@tangle-network/agent-runtime 10.0.8 → 10.0.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 (43) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{activation-pRO-xNlo.js → activation-D4hAza0W.js} +2 -2
  3. package/dist/{activation-pRO-xNlo.js.map → activation-D4hAza0W.js.map} +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{delegate-ChsxEeFK.js → delegate-C53pe9th.js} +2 -2
  6. package/dist/{delegate-ChsxEeFK.js.map → delegate-C53pe9th.js.map} +1 -1
  7. package/dist/{driver-control-acknowledgers-DL-lN2Pb.js → driver-control-acknowledgers-eETy7SAi.js} +16 -17
  8. package/dist/driver-control-acknowledgers-eETy7SAi.js.map +1 -0
  9. package/dist/durable.js +4 -4
  10. package/dist/{graph-CKdDENlv.js → graph-CRaquJhB.js} +4 -4
  11. package/dist/{graph-CKdDENlv.js.map → graph-CRaquJhB.js.map} +1 -1
  12. package/dist/{improve-DNOZVLb-.js → improve-CEOS1Ijj.js} +5 -5
  13. package/dist/{improve-DNOZVLb-.js.map → improve-CEOS1Ijj.js.map} +1 -1
  14. package/dist/index.js +8 -8
  15. package/dist/intelligence.js +3 -3
  16. package/dist/kernel.js +10 -10
  17. package/dist/{loop-runner-DmDW9BKB.js → loop-runner-2vKhhbQA.js} +2 -2
  18. package/dist/{loop-runner-DmDW9BKB.js.map → loop-runner-2vKhhbQA.js.map} +1 -1
  19. package/dist/loop-runner-bin.js +1 -1
  20. package/dist/mcp/bin.js +2 -2
  21. package/dist/mcp/index.js +4 -4
  22. package/dist/profile-Cxl_Ajl2.js.map +1 -1
  23. package/dist/{provision-supervisor-DdsrpA3I.js → provision-supervisor-CzKfUJIg.js} +3 -3
  24. package/dist/{provision-supervisor-DdsrpA3I.js.map → provision-supervisor-CzKfUJIg.js.map} +1 -1
  25. package/dist/{run-state-CX8OTr-9.js → run-state-Dbi2PVOt.js} +2 -2
  26. package/dist/{run-state-CX8OTr-9.js.map → run-state-Dbi2PVOt.js.map} +1 -1
  27. package/dist/{runtime-ERkXbzFe.js → runtime-CZ-VnOr5.js} +44 -29
  28. package/dist/{runtime-ERkXbzFe.js.map → runtime-CZ-VnOr5.js.map} +1 -1
  29. package/dist/{search-executor-DDb4sT3E.js → search-executor-C0aVtzXX.js} +2 -2
  30. package/dist/{search-executor-DDb4sT3E.js.map → search-executor-C0aVtzXX.js.map} +1 -1
  31. package/dist/{server-B9tOx3CY.js → server-BwpXzcpm.js} +2 -2
  32. package/dist/{server-B9tOx3CY.js.map → server-BwpXzcpm.js.map} +1 -1
  33. package/dist/{structural-rollout-B6RlFKxq.js → structural-rollout-CKNwDl0T.js} +2 -2
  34. package/dist/{structural-rollout-B6RlFKxq.js.map → structural-rollout-CKNwDl0T.js.map} +1 -1
  35. package/dist/{supervise-CikShHxF.js → supervise-CkIKRWDV.js} +9 -5
  36. package/dist/{supervise-CikShHxF.js.map → supervise-CkIKRWDV.js.map} +1 -1
  37. package/dist/{supervisor-BvEe3y0c.js → supervisor-CAQI8ILe.js} +7 -6
  38. package/dist/supervisor-CAQI8ILe.js.map +1 -0
  39. package/dist/testing.js +11 -11
  40. package/dist/tui/index.js +1 -1
  41. package/package.json +4 -4
  42. package/dist/driver-control-acknowledgers-DL-lN2Pb.js.map +0 -1
  43. package/dist/supervisor-BvEe3y0c.js.map +0 -1
@@ -1,28 +1,28 @@
1
- import { A as readPromptOptions, F as defaultSelectWinner, H as routerBrain, M as createSandboxLineage, O as runAgentRounds, St as verdictFromJudgeScore, Y as createWorktreeCliExecutor, b as InMemorySpawnJournal, bt as gateOnDeliverable, k as assertBoxlessPromptOptions, n as createSupervisor, v as withDriverExecutor, vt as CheckUnavailableError, w as createExecutor, x as createExecutorRegistry, xt as mapExecutorResult, y as InMemoryResultBlobStore } from "./supervisor-BvEe3y0c.js";
1
+ import { A as readPromptOptions, F as defaultSelectWinner, H as routerBrain, M as createSandboxLineage, O as runAgentRounds, St as verdictFromJudgeScore, Y as createWorktreeCliExecutor, b as InMemorySpawnJournal, bt as gateOnDeliverable, k as assertBoxlessPromptOptions, n as createSupervisor, v as withDriverExecutor, vt as CheckUnavailableError, w as createExecutor, x as createExecutorRegistry, xt as mapExecutorResult, y as InMemoryResultBlobStore } from "./supervisor-CAQI8ILe.js";
2
2
  import { At as recordValue, P as contentAddress, St as notifySandboxEventObserver, r as runtimeFailureCauseSchema, vt as createSandboxTurnEventCollector } from "./failure-cause-DvYGlOEV.js";
3
- import "./run-state-CX8OTr-9.js";
3
+ import "./run-state-Dbi2PVOt.js";
4
4
  import { B as isTraceAnalysisStore, Kt as coordinationProfileToolPrefix, cr as harnessTranscriptArtifact, gn as insideCursorNamespace, hr as readBoundHarnessSessions, ni as executableAgentProfileSnapshot, ot as rollingDispatch, ri as executableAgentSpecSnapshot, tt as settledToIteration } from "./supervisor-accounting-CgipDzYg.js";
5
5
  import "./result-blob-store-BMMzqpHa.js";
6
- import { E as validateFlowGraph, I as kernelPromptRegistry, b as coordinationControlToolNames, k as validateGraphTopology, m as runBrainLoop, t as supervise } from "./supervise-CikShHxF.js";
6
+ import { A as validateGraphTopology, D as validateFlowGraph, L as kernelPromptRegistry, a as bridgeProfileRefusal, h as runBrainLoop, t as supervise, x as coordinationControlToolNames } from "./supervise-CkIKRWDV.js";
7
7
  import { T as zeroSpend, a as cloneSpend, c as errorMessage, d as isAbortError, f as isAsyncIterable, h as randomSuffix, i as chargedTokens, l as fnv1a32Hex, n as addSpend, p as mapWithConcurrency, u as hasCompleteCacheBreakdown, v as sleep, y as stringifySafe } from "./util-qsH5cC9S.js";
8
8
  import { a as captureMaterializedWorkspace, b as sha256Bytes$1, m as canonicalCandidateDigest$1, v as immutableCandidateValue } from "./output-artifacts-AqkZ8lO2.js";
9
9
  import { i as ConfigError, m as ValidationError, n as AnalystError, s as PlannerError } from "./errors-DG8yufqX.js";
10
- import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession } from "./graph-CKdDENlv.js";
10
+ import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession } from "./graph-CRaquJhB.js";
11
11
  import { a as concreteProfileModel, c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, p as canonicalObservedModelParts, t as assertExecutableAgentProfile, y as harnessRunsAgent } from "./model-policy-DTbTFyOG.js";
12
12
  import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction-DilFZch5.js";
13
13
  import { o as armDeadlineTimer } from "./deadline-CySmJ_0S.js";
14
- import { D as runAgentic, E as refine, M as renderReport, N as profileChatClient, O as sample, j as observe, k as ObservationError, v as loadAuthoredStrategy, x as strategyAuthorContract, y as requestStrategySource } from "./structural-rollout-B6RlFKxq.js";
14
+ import { D as runAgentic, E as refine, M as renderReport, N as profileChatClient, O as sample, j as observe, k as ObservationError, v as loadAuthoredStrategy, x as strategyAuthorContract, y as requestStrategySource } from "./structural-rollout-CKNwDl0T.js";
15
15
  import { _ as runAbortable, a as readCommittedJsonFile, c as withJsonlFileLock, l as appendCommittedJsonLine, o as readCommittedJsonLines, s as upsertCommittedJsonLine, t as isNoEntError } from "./jsonl-file-vE9H9UXa.js";
16
16
  import { n as detachedSnapshot, t as detachedFrozen } from "./snapshot-BKI_w3JD.js";
17
17
  import { y as markPutStreamVerified } from "./workspace-streams-C7PGLAUd.js";
18
- import "./provision-supervisor-DdsrpA3I.js";
18
+ import "./provision-supervisor-CzKfUJIg.js";
19
19
  import { i as notifyRuntimeHookEvent } from "./runtime-hooks-CsW2pfFk.js";
20
- import { a as reconcileInterruptedSearchCalls, c as searchExecutor, r as dedicatedLane, x as runtimeShipDecision } from "./search-executor-DDb4sT3E.js";
21
- import "./delegate-ChsxEeFK.js";
20
+ import { a as reconcileInterruptedSearchCalls, c as searchExecutor, r as dedicatedLane, x as runtimeShipDecision } from "./search-executor-C0aVtzXX.js";
21
+ import "./delegate-C53pe9th.js";
22
22
  import "./continuation-Bccak14N.js";
23
23
  import { S as graphRouteWhenSchema, _ as compileGraphParameters, a as graphRegistry, d as recordGraphRun, g as bindGraphParameters, h as assertGraphTriggerBindings, i as graphFromStored, j as assertJsonData, l as lookupGraph, m as taskShapeDigest, o as graphRunsFor, r as graphDigest, t as digestOfGraph, v as graphTriggerBindingsSchema, x as graphFileSchema, y as graphCheckNodeSchema } from "./graph-registry-CRskE_Yp.js";
24
24
  import { d as foldCoordinationRecords } from "./supervise-identity-QavM_M4r.js";
25
- import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-DL-lN2Pb.js";
25
+ import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-eETy7SAi.js";
26
26
  import { u as writeAtomicDurableFile } from "./durable-file-pao7FijS.js";
27
27
  import "./run-cancellation-Bv7ooTJa.js";
28
28
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sameAgentRunControlRef, sha256Bytes, sha256DigestSchema, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
@@ -7319,18 +7319,39 @@ async function expandProfile(node, options) {
7319
7319
  signal: options.signal
7320
7320
  };
7321
7321
  let selected;
7322
+ let incompatible;
7323
+ function select(seat) {
7324
+ const profile = {
7325
+ ...node.profile,
7326
+ name: node.id,
7327
+ harness: seat.harness,
7328
+ model: {
7329
+ ...node.profile?.model,
7330
+ provider: seat.provider,
7331
+ default: seat.model,
7332
+ ...seat.reasoningEffort === void 0 ? {} : { reasoningEffort: seat.reasoningEffort }
7333
+ }
7334
+ };
7335
+ delete profile.seats;
7336
+ const parsed = agentProfileSchema.safeParse(profile);
7337
+ if (!parsed.success) refuse$2(`node ${node.id} has an invalid profile: ${parsed.error.message}`);
7338
+ incompatible = bridgeProfileRefusal(parsed.data);
7339
+ if (incompatible) return false;
7340
+ selected = parsed.data;
7341
+ return true;
7342
+ }
7322
7343
  if (authored !== void 0) {
7323
7344
  if (!resolveSeat) refuse$2(`node ${node.id} has unresolved seat shorthand; supply resolveSeat from Bridge login inventory or a canonical profile`);
7324
7345
  const candidates = typeof authored === "string" ? [authored] : authored;
7325
7346
  if (!candidates.length) refuse$2(`node ${node.id} has an empty seat preference list`);
7326
7347
  for (const [index, candidate] of candidates.entries()) {
7327
- selected = await resolveSeat(candidate, {
7348
+ const seat = await resolveSeat(candidate, {
7328
7349
  ...context,
7329
7350
  lastCandidate: index === candidates.length - 1
7330
7351
  });
7331
- if (selected) break;
7352
+ if (seat && select(seat)) break;
7332
7353
  }
7333
- if (!selected) refuse$2(`node ${node.id} has no available Bridge seat; sign in through Bridge or choose another seat`);
7354
+ if (!selected) refuse$2(incompatible ? `node ${node.id}: ${incompatible}` : `node ${node.id} has no available Bridge seat; sign in through Bridge or choose another seat`);
7334
7355
  } else if (Array.isArray(node.profile?.seats)) {
7335
7356
  const parsed = agentProfileSchema.safeParse({
7336
7357
  ...node.profile,
@@ -7338,11 +7359,15 @@ async function expandProfile(node, options) {
7338
7359
  });
7339
7360
  if (!parsed.success) refuse$2(`node ${node.id} has an invalid profile: ${parsed.error.message}`);
7340
7361
  } else if (!node.profile?.harness || !concreteProfileModel(node.profile) || !node.profile.model?.provider) {
7341
- selected = options.seats?.[0] ?? await resolveSeat?.(void 0, {
7342
- ...context,
7343
- lastCandidate: true
7344
- });
7345
- if (!selected) refuse$2(`node ${node.id} needs a canonical profile or resolveSeat from Bridge login inventory`);
7362
+ if (options.seats?.length) options.seats.some(select);
7363
+ else {
7364
+ const seat = await resolveSeat?.(void 0, {
7365
+ ...context,
7366
+ lastCandidate: true
7367
+ });
7368
+ if (seat) select(seat);
7369
+ }
7370
+ if (!selected) refuse$2(incompatible ? `node ${node.id}: ${incompatible}` : `node ${node.id} needs a canonical profile or resolveSeat from Bridge login inventory`);
7346
7371
  }
7347
7372
  const connections = await Promise.all([...new Map((node.needs ?? []).map((need) => [canonicalCandidateDigest(need), need])).values()].map(async (need) => {
7348
7373
  const { provider, account, capabilities, alias } = typeof need === "string" ? {
@@ -7374,19 +7399,9 @@ async function expandProfile(node, options) {
7374
7399
  };
7375
7400
  }));
7376
7401
  const profile = {
7377
- ...node.profile,
7402
+ ...selected ?? node.profile,
7378
7403
  name: node.id
7379
7404
  };
7380
- if (selected) {
7381
- delete profile.seats;
7382
- profile.harness = selected.harness;
7383
- profile.model = {
7384
- ...node.profile?.model,
7385
- provider: selected.provider,
7386
- default: selected.model,
7387
- ...selected.reasoningEffort === void 0 ? {} : { reasoningEffort: selected.reasoningEffort }
7388
- };
7389
- }
7390
7405
  if (node.needs && (connections.length > 0 || node.profile?.connections !== void 0)) {
7391
7406
  const seen = /* @__PURE__ */ new Set();
7392
7407
  profile.connections = [...node.profile?.connections ?? [], ...connections].filter((connection) => {
@@ -9975,4 +9990,4 @@ function tail(s) {
9975
9990
  }
9976
9991
  export { strategyTournament as $, completionAuthorizes as $t, searchPresets as A, readHarnessTranscriptSessions as At, graphFromSessionFacts as B, resolveMcpServerLaunch as Bt, withUntrackedArtifacts as C, createScopeAnalyst as Ct, SEARCH_SPEC_CORRELATION_KEY as D, inProcessSandboxClient as Dt, createFencedSqlRunContext as E, observationFromRegistry as Et, loadProfile as F, materializeLocalMcp as Ft, readGraphStrings as G, loopDispatch as Gt, graphWorkspace as H, secretEnvOfMcpServer as Ht, pickBestProfile as I, createMcpEnvironment as It, graphDesignerExtraTools as J, checkProgramDigest as Jt, setGraphProfile as K, superviseDispatch as Kt, profileRegistry as L, sanitizeMcpToolSchema as Lt, connectRemoteSupervisor as M, resolveSandboxClient as Mt, connectRemoteSupervisorControl as N, McpSpawnFault as Nt, assertSearchSpec as O, HarvestError as Ot, bestProfileFor as P, connectStdioMcp as Pt, runStrategyEvolution as Q, readDeclaredCheck as Qt, profileRunsForName as R, envKeyProvider as Rt, copyUntrackedIntoClone as S, buildSteerContext as St, validateStoredGraph as T, measurePairedCommands as Tt, loadGraphFile as U, inlineSandboxClient as Ut, GraphFileResolutionError as V, resolveSecretEnv as Vt, readGraphProfile as W, loopCampaignDispatch as Wt, chatWorkerSeam as X, declaredCheckDigest as Xt, chatTransportExecutor as Y, declaredCheckDeliverable as Yt, createChatSessionStore as Z, declaredCheckJudge as Zt, NOTE_MAX_CHARS as _, pipeline as _t, localShell as a, renderLeaderboardHtml as an, createPrivateCasArtifactPort as at, composeWorkerEvidence as b, widen as bt, createVerifierEnvironment as c, renderPairwiseMarkdown as cn, definePersona as ct, harvestSurfaceDiffs as d, InMemoryCorpus as dt, deterministicCompletion as en, SandboxRunAbortError as et, analystsFromRegistry as f, renderCorpusToInstructions as ft, EVIDENCE_MAX_CHARS as g, panel as gt, runCoderChecks as h, loopUntil as ht, jjWorkspace as i, pairwiseSignificance as in, runBenchmark as it, searchSpecDigest as j, defineLeaderboard as jt, compileSearchSpec as k, harvestCorpus as kt, boxSurfaceReader as l, SqlRunOwnershipError as ln, runPersonified as lt, worktreeFanout as m, flatWidenGate as mt, makeFinding$1 as n, stopSentinel as nn, createS3PrivateCasStore as nt, runInWorkspace as o, renderLeaderboardMarkdown as on, equalKOnCost as ot, failuresAnalyst as p, fanout as pt, setGraphStrings as q, assertDeclaredCheck as qt, gitWorkspace as r, leaderboard as rn, printBenchmarkReport as rt, createWaterfallCollector as s, renderLeaderboardSvg as sn, trajectoryReport as st, computeFindingId$1 as t, sentinelCompletion as tn, openSandboxRun as tt, fsSurfaceReader as u, openSqlRunStore as un, FileCorpus as ut, VERIFY_TAIL_CHARS as v, selectValidWinner as vt, analyzeTrace as w, registryScopeAnalyst as wt, settledWorkerOut as x, assertTraceDerivedFindings as xt, closingWorkerNote as y, verify as yt, recordProfileRun as z, mcpSecretEnvMetadataKey as zt };
9977
9992
 
9978
- //# sourceMappingURL=runtime-ERkXbzFe.js.map
9993
+ //# sourceMappingURL=runtime-CZ-VnOr5.js.map