@tangle-network/agent-runtime 10.0.8 → 10.0.10
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 +26 -0
- package/dist/{activation-Gi19oho7.d.ts → activation-D9ENOWud.d.ts} +2 -2
- package/dist/{activation-pRO-xNlo.js → activation-s2z6kO2P.js} +2 -2
- package/dist/{activation-pRO-xNlo.js.map → activation-s2z6kO2P.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{delegate-ChsxEeFK.js → delegate-4KpqPGv3.js} +2 -2
- package/dist/{delegate-ChsxEeFK.js.map → delegate-4KpqPGv3.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-DL-lN2Pb.js → driver-control-acknowledgers-Bnbn34Mp.js} +37 -22
- package/dist/driver-control-acknowledgers-Bnbn34Mp.js.map +1 -0
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +4 -4
- package/dist/{graph-CKdDENlv.js → graph-CDZWVNys.js} +6 -5
- package/dist/{graph-CKdDENlv.js.map → graph-CDZWVNys.js.map} +1 -1
- package/dist/{graph-registry-CRskE_Yp.js → graph-registry-BmghD_VO.js} +5 -2
- package/dist/graph-registry-BmghD_VO.js.map +1 -0
- package/dist/{graph-registry-CGKyYabE.js → graph-registry-DQ2-dA0X.js} +1 -1
- package/dist/{improve-DNOZVLb-.js → improve-D_HT75pe.js} +20 -6
- package/dist/improve-D_HT75pe.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-CPxQyiWQ.d.ts → loop-runner-AQcWx9uu.d.ts} +2 -2
- package/dist/{loop-runner-DmDW9BKB.js → loop-runner-C_ruSZRz.js} +2 -2
- package/dist/{loop-runner-DmDW9BKB.js.map → loop-runner-C_ruSZRz.js.map} +1 -1
- 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/profile-Cxl_Ajl2.js.map +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-DdsrpA3I.js → provision-supervisor-Cv5X_ITd.js} +3 -3
- package/dist/{provision-supervisor-DdsrpA3I.js.map → provision-supervisor-Cv5X_ITd.js.map} +1 -1
- package/dist/{run-state-CX8OTr-9.js → run-state-BWWardB0.js} +2 -2
- package/dist/{run-state-CX8OTr-9.js.map → run-state-BWWardB0.js.map} +1 -1
- package/dist/{runtime-ERkXbzFe.js → runtime-vv3D3bx6.js} +47 -32
- package/dist/{runtime-ERkXbzFe.js.map → runtime-vv3D3bx6.js.map} +1 -1
- package/dist/{search-executor-DDb4sT3E.js → search-executor-C-kp1eg-.js} +2 -2
- package/dist/{search-executor-DDb4sT3E.js.map → search-executor-C-kp1eg-.js.map} +1 -1
- package/dist/{server-B9tOx3CY.js → server-CqADHr2f.js} +2 -2
- package/dist/{server-B9tOx3CY.js.map → server-CqADHr2f.js.map} +1 -1
- package/dist/{structural-rollout-B6RlFKxq.js → structural-rollout-Ct_uQtGw.js} +2 -2
- package/dist/{structural-rollout-B6RlFKxq.js.map → structural-rollout-Ct_uQtGw.js.map} +1 -1
- package/dist/{supervise-CikShHxF.js → supervise-CRz9bjPA.js} +36 -34
- package/dist/supervise-CRz9bjPA.js.map +1 -0
- package/dist/{supervisor-BvEe3y0c.js → supervisor-B9A_Cnxo.js} +51 -11
- package/dist/supervisor-B9A_Cnxo.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-BYiwLO2L.d.ts → types-Br9sWTWk.d.ts} +11 -2
- package/package.json +5 -5
- package/skills/agent-graphs/SKILL.md +40 -50
- package/skills/be-ambitious/SKILL.md +29 -25
- package/skills/build-with-agent-runtime/SKILL.md +17 -20
- package/skills/graph-designer/SKILL.md +1 -1
- package/skills/profile-authoring/SKILL.md +16 -11
- package/dist/driver-control-acknowledgers-DL-lN2Pb.js.map +0 -1
- package/dist/graph-registry-CRskE_Yp.js.map +0 -1
- package/dist/improve-DNOZVLb-.js.map +0 -1
- package/dist/supervise-CikShHxF.js.map +0 -1
- 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-
|
|
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-B9A_Cnxo.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-
|
|
3
|
+
import "./run-state-BWWardB0.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 {
|
|
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-CRz9bjPA.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-CDZWVNys.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-
|
|
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-Ct_uQtGw.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-
|
|
18
|
+
import "./provision-supervisor-Cv5X_ITd.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-C-kp1eg-.js";
|
|
21
|
+
import "./delegate-4KpqPGv3.js";
|
|
22
22
|
import "./continuation-Bccak14N.js";
|
|
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-
|
|
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-BmghD_VO.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-
|
|
25
|
+
import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-Bnbn34Mp.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";
|
|
@@ -7074,7 +7074,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7074
7074
|
})();
|
|
7075
7075
|
if (name === "designer_history") return (async () => {
|
|
7076
7076
|
const args = asRecord(raw ?? {}, "designer_history");
|
|
7077
|
-
const { listGraphRuns } = await import("./graph-registry-
|
|
7077
|
+
const { listGraphRuns } = await import("./graph-registry-DQ2-dA0X.js");
|
|
7078
7078
|
const all = await listGraphRuns(registry);
|
|
7079
7079
|
return { runs: (args.taskShape === void 0 ? all : all.filter((row) => row.taskDigest === taskShapeDigest(asRecord(args.taskShape, "designer_history.taskShape")))).map(summarize) };
|
|
7080
7080
|
})();
|
|
@@ -7085,7 +7085,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7085
7085
|
if (mode === "replay") {
|
|
7086
7086
|
const digest = args.graphDigest;
|
|
7087
7087
|
if (typeof digest !== "string" || digest.length === 0) throw new ValidationError("designer_run_graph: replay mode requires graphDigest from lookup");
|
|
7088
|
-
const { loadGraph } = await import("./graph-registry-
|
|
7088
|
+
const { loadGraph } = await import("./graph-registry-DQ2-dA0X.js");
|
|
7089
7089
|
const stored = await loadGraph(registry, digest);
|
|
7090
7090
|
if (!stored) throw new ValidationError(`designer_run_graph: no stored graph ${digest.slice(0, 12)} — re-lookup`);
|
|
7091
7091
|
const graph = env.bindCheck(graphFromStored(stored, () => {
|
|
@@ -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
|
-
|
|
7348
|
+
const seat = await resolveSeat(candidate, {
|
|
7328
7349
|
...context,
|
|
7329
7350
|
lastCandidate: index === candidates.length - 1
|
|
7330
7351
|
});
|
|
7331
|
-
if (
|
|
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
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
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-
|
|
9993
|
+
//# sourceMappingURL=runtime-vv3D3bx6.js.map
|