@tangle-network/agent-runtime 10.0.24 → 10.0.25
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/CHANGELOG.md +12 -0
- package/dist/{activation-DLbBM2S0.js → activation-Cisx6g4A.js} +2 -2
- package/dist/{activation-DLbBM2S0.js.map → activation-Cisx6g4A.js.map} +1 -1
- package/dist/{activation-DUYtmQH_.d.ts → activation-oYJrqzpN.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{delegate-Cz2GF_z7.js → delegate-CwMTrSRm.js} +2 -2
- package/dist/{delegate-Cz2GF_z7.js.map → delegate-CwMTrSRm.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-pDEPMuML.js → driver-control-acknowledgers-B213ctJ9.js} +2 -2
- package/dist/{driver-control-acknowledgers-pDEPMuML.js.map → driver-control-acknowledgers-B213ctJ9.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +4 -4
- package/dist/{graph-D-LVPqrm.js → graph-DP8O_w3P.js} +4 -4
- package/dist/{graph-D-LVPqrm.js.map → graph-DP8O_w3P.js.map} +1 -1
- package/dist/{improve-BJW9OcEn.js → improve-WN8sqSH1.js} +5 -5
- package/dist/{improve-BJW9OcEn.js.map → improve-WN8sqSH1.js.map} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -8
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-BZWObfqa.js → loop-runner-B4Vjh1p9.js} +2 -2
- package/dist/{loop-runner-BZWObfqa.js.map → loop-runner-B4Vjh1p9.js.map} +1 -1
- package/dist/{loop-runner-ClANio8o.d.ts → loop-runner-Dc-Vij6a.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +4 -4
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-ChGKJz8s.js → provision-supervisor-CqPcPBTA.js} +3 -3
- package/dist/{provision-supervisor-ChGKJz8s.js.map → provision-supervisor-CqPcPBTA.js.map} +1 -1
- package/dist/{run-state-6jJzk6gB.js → run-state-DXePNDvP.js} +2 -2
- package/dist/{run-state-6jJzk6gB.js.map → run-state-DXePNDvP.js.map} +1 -1
- package/dist/{runtime-Ddkn1wRr.js → runtime-DdfY-j79.js} +54 -33
- package/dist/{runtime-Ddkn1wRr.js.map → runtime-DdfY-j79.js.map} +1 -1
- package/dist/{search-executor-D9E9q-Pv.js → search-executor-COdCsn9r.js} +2 -2
- package/dist/{search-executor-D9E9q-Pv.js.map → search-executor-COdCsn9r.js.map} +1 -1
- package/dist/{server-BhXz3JyW.js → server-WSOQ-lg5.js} +2 -2
- package/dist/{server-BhXz3JyW.js.map → server-WSOQ-lg5.js.map} +1 -1
- package/dist/{structural-rollout-BL8KLLw8.js → structural-rollout-kOx5PFfU.js} +2 -2
- package/dist/{structural-rollout-BL8KLLw8.js.map → structural-rollout-kOx5PFfU.js.map} +1 -1
- package/dist/{supervise-C7mDlK7S.js → supervise-DEHDPDDb.js} +14 -7
- package/dist/supervise-DEHDPDDb.js.map +1 -0
- package/dist/{supervisor-BQwg_3T0.js → supervisor-C2KuUDnF.js} +16 -8
- package/dist/supervisor-C2KuUDnF.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CByvdC7k.d.ts → types-CMSBna4M.d.ts} +9 -4
- package/package.json +1 -1
- package/dist/supervise-C7mDlK7S.js.map +0 -1
- package/dist/supervisor-BQwg_3T0.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { A as readPromptOptions, F as defaultSelectWinner, H as routerBrain, M as createSandboxLineage, O as runAgentRounds, Y as createWorktreeCliExecutor, b as InMemorySpawnJournal, k as assertBoxlessPromptOptions, n as createSupervisor, v as withDriverExecutor, w as createExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore } from "./supervisor-
|
|
1
|
+
import { A as readPromptOptions, F as defaultSelectWinner, H as routerBrain, M as createSandboxLineage, O as runAgentRounds, Y as createWorktreeCliExecutor, b as InMemorySpawnJournal, k as assertBoxlessPromptOptions, n as createSupervisor, v as withDriverExecutor, w as createExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore } from "./supervisor-C2KuUDnF.js";
|
|
2
2
|
import { Et as notifySandboxEventObserver, Pt as recordValue, R as contentAddress, St as createSandboxTurnEventCollector, a as runtimeFailureCauseSchema } from "./tool-server-I63dnHZC.js";
|
|
3
|
-
import "./run-state-
|
|
3
|
+
import "./run-state-DXePNDvP.js";
|
|
4
4
|
import { B as isTraceAnalysisStore, Gr as verdictFromJudgeScore, Ur as gateOnDeliverable, Vr as CheckUnavailableError, Wr as mapExecutorResult, _n as insideCursorNamespace, gr as readBoundHarnessSessions, lr as harnessTranscriptArtifact, ot as rollingDispatch, qt as coordinationProfileToolPrefix, tt as settledToIteration, vi as executableAgentProfileSnapshot, yi as executableAgentSpecSnapshot } from "./supervisor-accounting-B0ofgTZX.js";
|
|
5
5
|
import "./result-blob-store-BZwRmrFF.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-
|
|
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-DEHDPDDb.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-
|
|
10
|
+
import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession } from "./graph-DP8O_w3P.js";
|
|
11
11
|
import { a as concreteProfileModel, b as harnessRunsAgent, c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, p as canonicalObservedModelParts, t as assertExecutableAgentProfile, x as resumingHarnesses, y as harnessResumesConversation } from "./model-policy-DFuhCC0-.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-
|
|
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-kOx5PFfU.js";
|
|
15
15
|
import { a as readCommittedJsonFile, c as withJsonlFileLock, l as appendCommittedJsonLine, o as readCommittedJsonLines, s as upsertCommittedJsonLine, t as isNoEntError, w as runAbortable } from "./jsonl-file-B2ESMrTh.js";
|
|
16
16
|
import { n as detachedSnapshot, t as detachedFrozen } from "./snapshot-BKLziJ5K.js";
|
|
17
17
|
import { y as markPutStreamVerified } from "./workspace-streams-C7PGLAUd.js";
|
|
18
|
-
import "./provision-supervisor-
|
|
18
|
+
import "./provision-supervisor-CqPcPBTA.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-
|
|
21
|
-
import "./delegate-
|
|
20
|
+
import { a as reconcileInterruptedSearchCalls, c as searchExecutor, r as dedicatedLane, x as runtimeShipDecision } from "./search-executor-COdCsn9r.js";
|
|
21
|
+
import "./delegate-CwMTrSRm.js";
|
|
22
22
|
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-qyaNDATw.js";
|
|
23
23
|
import { d as foldCoordinationRecords } from "./supervise-identity-DLPzZTp3.js";
|
|
24
|
-
import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-
|
|
24
|
+
import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-B213ctJ9.js";
|
|
25
25
|
import { u as writeAtomicDurableFile } from "./durable-file-pao7FijS.js";
|
|
26
26
|
import "./run-cancellation-uCwV2Ra7.js";
|
|
27
27
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sameAgentRunControlRef, sha256Bytes, sha256DigestSchema, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -7210,51 +7210,72 @@ function exactProfile(value, nodeId) {
|
|
|
7210
7210
|
function sharedYaml(item) {
|
|
7211
7211
|
return isAlias(item) || (isMap(item) || isSeq(item) || isScalar(item)) && !!(item.anchor || item.tag);
|
|
7212
7212
|
}
|
|
7213
|
-
function ownProfile(graphText, nodeId) {
|
|
7213
|
+
function ownProfile(graphText, nodeId, maps) {
|
|
7214
7214
|
const document = parseGraphYaml(graphText, "graph profile");
|
|
7215
7215
|
const value = document.toJS({ maxAliasCount: 100 });
|
|
7216
7216
|
assertJsonData(value, "graph profile");
|
|
7217
|
-
if (!isMap(document.contents)) throw new ValidationError("graph profile: requires
|
|
7218
|
-
|
|
7217
|
+
if (!isMap(document.contents) || sharedYaml(document.contents)) throw new ValidationError("graph profile: requires an unshared graph mapping");
|
|
7218
|
+
let graph = value;
|
|
7219
|
+
const path = [];
|
|
7220
|
+
for (const step of maps) {
|
|
7221
|
+
const matches = graphFileSchema.shape.edges.parse(graph.edges).flatMap((edge, index) => edge.kind === "maps" && edge.from === step.from && edge.join === step.join ? [index] : []);
|
|
7222
|
+
if (matches.length !== 1) throw new ValidationError("graph profile: requires exactly one matching maps edge");
|
|
7223
|
+
const index = matches[0];
|
|
7224
|
+
const edgesPath = [...path, "edges"];
|
|
7225
|
+
const edgePath = [...edgesPath, index];
|
|
7226
|
+
const childPath = [...edgePath, "graph"];
|
|
7227
|
+
const child = document.getIn(childPath, true);
|
|
7228
|
+
if (!isMap(child) || [
|
|
7229
|
+
document.getIn(edgesPath, true),
|
|
7230
|
+
document.getIn(edgePath, true),
|
|
7231
|
+
child
|
|
7232
|
+
].some(sharedYaml)) throw new ValidationError("graph profile: maps edge requires an unshared inline graph");
|
|
7233
|
+
graph = graph.edges[index].graph;
|
|
7234
|
+
path.push("edges", index, "graph");
|
|
7235
|
+
}
|
|
7236
|
+
const graphNodes = graphFileSchema.shape.nodes.parse(graph.nodes);
|
|
7219
7237
|
const matches = graphNodes.flatMap((node, index) => node.id === nodeId ? [index] : []);
|
|
7220
7238
|
if (matches.length !== 1) throw new ValidationError("graph profile: requires exactly one matching node");
|
|
7221
7239
|
const index = matches[0];
|
|
7222
7240
|
const node = graphNodes[index];
|
|
7223
|
-
const nodes = document.getIn(["nodes"], true);
|
|
7224
|
-
const own = document.getIn([
|
|
7241
|
+
const nodes = document.getIn([...path, "nodes"], true);
|
|
7242
|
+
const own = document.getIn([
|
|
7243
|
+
...path,
|
|
7244
|
+
"nodes",
|
|
7245
|
+
index
|
|
7246
|
+
], true);
|
|
7225
7247
|
const profile = document.getIn([
|
|
7248
|
+
...path,
|
|
7226
7249
|
"nodes",
|
|
7227
7250
|
index,
|
|
7228
7251
|
"profile"
|
|
7229
7252
|
], true);
|
|
7230
|
-
|
|
7231
|
-
document.contents,
|
|
7232
|
-
nodes,
|
|
7233
|
-
own
|
|
7234
|
-
];
|
|
7235
|
-
if (!isSeq(nodes) || !isMap(own) || !isMap(profile) || parents.some(sharedYaml) || node.seat !== void 0 || node.needs !== void 0 || node.check !== void 0) throw new ValidationError("graph profile: requires an unshared inline agent profile without host overlays");
|
|
7253
|
+
if (!isSeq(nodes) || !isMap(own) || !isMap(profile) || [nodes, own].some(sharedYaml) || node.seat !== void 0 || node.needs !== void 0 || node.check !== void 0) throw new ValidationError("graph profile: requires an unshared inline agent profile without host overlays");
|
|
7236
7254
|
visit(own, (_key, item) => {
|
|
7237
7255
|
if (sharedYaml(item)) throw new ValidationError("graph profile: aliases, anchors and tags are not owned profile data");
|
|
7238
7256
|
});
|
|
7257
|
+
const canonical = exactProfile({
|
|
7258
|
+
...node.profile,
|
|
7259
|
+
name: nodeId
|
|
7260
|
+
}, nodeId);
|
|
7239
7261
|
return {
|
|
7240
7262
|
document,
|
|
7263
|
+
owner: graph,
|
|
7241
7264
|
index,
|
|
7242
7265
|
profile,
|
|
7243
|
-
canonical
|
|
7244
|
-
|
|
7245
|
-
name: nodeId
|
|
7246
|
-
}, nodeId)
|
|
7266
|
+
canonical,
|
|
7267
|
+
value
|
|
7247
7268
|
};
|
|
7248
7269
|
}
|
|
7249
7270
|
/** Read the exact executable profile owned by one inline graph node. Refuses shared YAML,
|
|
7250
7271
|
* host overlays, dynamic bindings, incomplete identities and private literals; never resolves them. */
|
|
7251
|
-
function readGraphProfile(graphText, nodeId) {
|
|
7252
|
-
return ownProfile(graphText, nodeId).canonical;
|
|
7272
|
+
function readGraphProfile(graphText, nodeId, maps = []) {
|
|
7273
|
+
return ownProfile(graphText, nodeId, maps).canonical;
|
|
7253
7274
|
}
|
|
7254
7275
|
/** Materialize a measured profile in its owning node. Other source bytes and graph semantics
|
|
7255
7276
|
* remain unchanged. Load without seat/need overrides to execute this exact candidate. */
|
|
7256
|
-
function setGraphProfile(graphText, nodeId, profile) {
|
|
7257
|
-
const parsed = ownProfile(graphText, nodeId);
|
|
7277
|
+
function setGraphProfile(graphText, nodeId, profile, maps = []) {
|
|
7278
|
+
const parsed = ownProfile(graphText, nodeId, maps);
|
|
7258
7279
|
const candidate = exactProfile(profile, nodeId);
|
|
7259
7280
|
if (canonicalCandidateDigest(candidate) === canonicalCandidateDigest(parsed.canonical)) return graphText;
|
|
7260
7281
|
if (parsed.document.has("digest")) throw new ValidationError("graph profile: a pinned graph digest requires its compilation owner");
|
|
@@ -7263,11 +7284,11 @@ function setGraphProfile(graphText, nodeId, profile) {
|
|
|
7263
7284
|
const [start, end] = range;
|
|
7264
7285
|
const trailing = /\s*$/.exec(graphText.slice(start, end))[0].length;
|
|
7265
7286
|
const next = graphText.slice(0, start) + JSON.stringify(candidate) + graphText.slice(end - trailing);
|
|
7266
|
-
const readback = ownProfile(next, nodeId);
|
|
7287
|
+
const readback = ownProfile(next, nodeId, maps);
|
|
7267
7288
|
const masked = (source) => {
|
|
7268
|
-
const
|
|
7269
|
-
|
|
7270
|
-
return canonicalCandidateDigest(value);
|
|
7289
|
+
const nodes = source.owner.nodes;
|
|
7290
|
+
nodes[source.index].profile = null;
|
|
7291
|
+
return canonicalCandidateDigest(source.value);
|
|
7271
7292
|
};
|
|
7272
7293
|
if (masked(parsed) !== masked(readback) || canonicalAgentProfileDigest(readback.canonical) !== canonicalAgentProfileDigest(candidate)) throw new ValidationError("graph profile: write changed more than the named profile");
|
|
7273
7294
|
return next;
|
|
@@ -10012,4 +10033,4 @@ function tail(s) {
|
|
|
10012
10033
|
}
|
|
10013
10034
|
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 };
|
|
10014
10035
|
|
|
10015
|
-
//# sourceMappingURL=runtime-
|
|
10036
|
+
//# sourceMappingURL=runtime-DdfY-j79.js.map
|