@tangle-network/agent-runtime 0.180.0 → 0.182.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.
- package/dist/{activation-BNd8DB7m.js → activation-BfLdmBd5.js} +2 -2
- package/dist/{activation-BNd8DB7m.js.map → activation-BfLdmBd5.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +3 -3
- package/dist/{analyst-loop-Bouu53-l.js → analyst-loop-DCTra9Qy.js} +2 -2
- package/dist/{analyst-loop-Bouu53-l.js.map → analyst-loop-DCTra9Qy.js.map} +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/{authoring-UTj7_GAd.js → authoring-Dh_8qg7q.js} +2 -2
- package/dist/{authoring-UTj7_GAd.js.map → authoring-Dh_8qg7q.js.map} +1 -1
- package/dist/{conversation-BREx2hi-.js → conversation-BSgEebIo.js} +2 -2
- package/dist/{conversation-BREx2hi-.js.map → conversation-BSgEebIo.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{coordination-driver-CZdORo2F.js → coordination-driver-DBvHI8ZG.js} +2 -2
- package/dist/{coordination-driver-CZdORo2F.js.map → coordination-driver-DBvHI8ZG.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-DKyMWQJd.js → environment-provider-C4elwcpo.js} +2 -2
- package/dist/{environment-provider-DKyMWQJd.js.map → environment-provider-C4elwcpo.js.map} +1 -1
- package/dist/{environment-provider-BG0Lll6Y.d.ts → environment-provider-CzohJCuk.d.ts} +3 -3
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{graph-lskY1sph.js → graph-lU6GacsN.js} +2 -2
- package/dist/{graph-lskY1sph.js.map → graph-lU6GacsN.js.map} +1 -1
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +3 -3
- package/dist/{improvement-cycle-CwPaVYsD.js → improvement-cycle-DezfYhlh.js} +5 -5
- package/dist/{improvement-cycle-CwPaVYsD.js.map → improvement-cycle-DezfYhlh.js.map} +1 -1
- package/dist/{index-C_xAZx46.d.ts → index-BG4l6MHH.d.ts} +4 -4
- package/dist/{index-C_5ADJEz.d.ts → index-DHSZjuLC.d.ts} +3 -3
- package/dist/{index-W1pLy7b2.d.ts → index-z2A6q-v0.d.ts} +83 -11
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +5 -5
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +7 -7
- package/dist/kernel.js +12 -12
- package/dist/{knowledge-oEjtVYZK.js → knowledge-CioWuU6F.js} +3 -3
- package/dist/{knowledge-oEjtVYZK.js.map → knowledge-CioWuU6F.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-Byrn0ovS.d.ts → loop-runner-bin-Dj0GJJWz.d.ts} +3 -3
- package/dist/{loop-runner-bin-C6ppaK7_.js → loop-runner-bin-Rzj8NOjr.js} +4 -4
- package/dist/{loop-runner-bin-C6ppaK7_.js.map → loop-runner-bin-Rzj8NOjr.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 +3 -3
- package/dist/mcp/index.d.ts +9 -6
- package/dist/mcp/index.js +9 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-NgZyaVWA.js → openai-tools-B4Gbj7BL.js} +2 -2
- package/dist/{openai-tools-NgZyaVWA.js.map → openai-tools-B4Gbj7BL.js.map} +1 -1
- package/dist/{openai-tools-wkxQ2aEw.d.ts → openai-tools-Cbk5uBUu.d.ts} +2 -2
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-C2qAsvwJ.js → provision-supervisor-BBPNrEQk.js} +4 -4
- package/dist/{provision-supervisor-C2qAsvwJ.js.map → provision-supervisor-BBPNrEQk.js.map} +1 -1
- package/dist/{redact-Td4Z49qK.d.ts → redact-BYcuQ6R_.d.ts} +3 -3
- package/dist/{runtime-BcJkcqyq.d.ts → runtime-B-DLSfE5.d.ts} +57 -9
- package/dist/{runtime-CFttcekr.js → runtime-Db1JYl9P.js} +29 -14
- package/dist/runtime-Db1JYl9P.js.map +1 -0
- package/dist/{sandbox-events-BVjstFgb.js → sandbox-events-DGXLxiuX.js} +216 -11
- package/dist/sandbox-events-DGXLxiuX.js.map +1 -0
- package/dist/{stream-agent-turn-CPj9SqVm.js → stream-agent-turn-B5Cmq-u3.js} +47 -22
- package/dist/stream-agent-turn-B5Cmq-u3.js.map +1 -0
- package/dist/{stream-agent-turn-BJcmeOjJ.d.ts → stream-agent-turn-DY-y9yW1.d.ts} +3 -3
- package/dist/{structural-rollout-wSlpkkiV.js → structural-rollout-dG-cTxPq.js} +3 -3
- package/dist/{structural-rollout-wSlpkkiV.js.map → structural-rollout-dG-cTxPq.js.map} +1 -1
- package/dist/{substrate-AJoT4HIz.d.ts → substrate-RrmNZoL3.d.ts} +2 -2
- package/dist/{supervise-CSvq9RSA.js → supervise-rDa_CeUP.js} +3 -3
- package/dist/{supervise-CSvq9RSA.js.map → supervise-rDa_CeUP.js.map} +1 -1
- package/dist/{supervisor-wgifgrsR.js → supervisor-Df9kT_z3.js} +171 -87
- package/dist/supervisor-Df9kT_z3.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CuObZjDz.d.ts → types-B-rWcun_.d.ts} +2 -2
- package/dist/{types-DpdfZoQ3.d.ts → types-CrTTgig6.d.ts} +25 -2
- package/package.json +1 -1
- package/dist/runtime-CFttcekr.js.map +0 -1
- package/dist/sandbox-events-BVjstFgb.js.map +0 -1
- package/dist/stream-agent-turn-CPj9SqVm.js.map +0 -1
- package/dist/supervisor-wgifgrsR.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { m as ValidationError, n as AnalystError, s as PlannerError } from "./errors-CDZ8XsVj.js";
|
|
2
|
-
import "./stream-agent-turn-
|
|
2
|
+
import "./stream-agent-turn-B5Cmq-u3.js";
|
|
3
3
|
import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore, s as insideCursorNamespace, v as isTraceAnalysisStore, x as contentAddress } from "./spawn-journal--N8Ten1q.js";
|
|
4
4
|
import { c as isAbortError, d as randomSuffix, i as cloneSpend, m as stringifySafe, p as sleep, r as chargedTokens, s as hasCompleteCacheBreakdown, t as addSpend, y as zeroSpend } from "./util-D6ZEuBMi.js";
|
|
5
5
|
import { i as writeAllBytes, n as parseCommittedJsonLines, r as prepareJsonlAppend, t as isNoEntError } from "./jsonl-file-CDfsCI5s.js";
|
|
6
6
|
import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction--F3v1oo8.js";
|
|
7
|
-
import {
|
|
7
|
+
import { l as notifySandboxEventObserver } from "./sandbox-events-DGXLxiuX.js";
|
|
8
8
|
import { n as executableAgentSpecSnapshot, t as executableAgentProfileSnapshot } from "./executable-spec-CkGvdPds.js";
|
|
9
9
|
import { c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, t as assertExecutableAgentProfile } from "./model-policy-Sw4ywhtL.js";
|
|
10
|
-
import { Bt as createSandboxLineage, G as rollingDispatch, Gt as
|
|
11
|
-
import "./environment-provider-
|
|
10
|
+
import { Bt as createSandboxLineage, G as rollingDispatch, Gt as routerBrain, Kt as runBrainLoop, Lt as defaultSelectWinner, Ut as assertBoxlessPromptOptions, Vt as probeSandboxCapabilities, Wt as readPromptOptions, at as createExecutor, ct as createWorktreeCliExecutor, f as withDriverExecutor, gt as createPushTraceSource, n as createSupervisor, ot as createExecutorRegistry, qt as canonicalObservedModel, y as settledToIteration, zt as runAgentRounds } from "./supervisor-Df9kT_z3.js";
|
|
11
|
+
import "./environment-provider-C4elwcpo.js";
|
|
12
12
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-tXpAarhW.js";
|
|
13
|
-
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-
|
|
14
|
-
import "./coordination-driver-
|
|
15
|
-
import { mt as mapExecutorResult, n as supervise, pt as gateOnDeliverable } from "./supervise-
|
|
13
|
+
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-dG-cTxPq.js";
|
|
14
|
+
import "./coordination-driver-DBvHI8ZG.js";
|
|
15
|
+
import { mt as mapExecutorResult, n as supervise, pt as gateOnDeliverable } from "./supervise-rDa_CeUP.js";
|
|
16
16
|
import "./run-layout-Cd_l2XWV.js";
|
|
17
|
-
import "./provision-supervisor-
|
|
17
|
+
import "./provision-supervisor-BBPNrEQk.js";
|
|
18
18
|
import { t as assertAuthoredCode } from "./authored-code-DzYtiflw.js";
|
|
19
|
-
import "./authoring-
|
|
20
|
-
import "./graph-
|
|
19
|
+
import "./authoring-Dh_8qg7q.js";
|
|
20
|
+
import "./graph-lU6GacsN.js";
|
|
21
21
|
import { agentProfileSchema, canonicalAgentProfileDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
22
22
|
import { CODING_HARNESSES, DEFAULT_TRACE_ANALYST_KINDS, InMemoryTraceStore, OUTPUT_VALUE, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
23
23
|
import { heldoutSignificance, runProfileMatrix } from "@tangle-network/agent-eval/campaign";
|
|
@@ -1033,6 +1033,7 @@ async function runLoopWithCampaignContext(opts, loopOptions, ctx, cost) {
|
|
|
1033
1033
|
...loopOptions,
|
|
1034
1034
|
ctx: {
|
|
1035
1035
|
sandboxClient: opts.sandboxClient,
|
|
1036
|
+
...opts.promptOptions === void 0 ? {} : { promptOptions: opts.promptOptions },
|
|
1036
1037
|
signal: executionSignal,
|
|
1037
1038
|
traceEmitter: opts.forwardTrace === false ? void 0 : campaignTraceToLoopEmitter(ctx.trace)
|
|
1038
1039
|
}
|
|
@@ -1273,6 +1274,9 @@ async function settle(exec, task, signal) {
|
|
|
1273
1274
|
* Adapt an `ExecutorFactory` into a `SandboxClient` for `runAgentRounds`. The factory is
|
|
1274
1275
|
* instantiated fresh per `streamPrompt` (mirrors the per-spawn executor lifecycle):
|
|
1275
1276
|
* run once on the prompt, emit the terminal result event, tear down.
|
|
1277
|
+
*
|
|
1278
|
+
* There is no box, so a per-prompt `backend` or `model` override is refused rather than dropped;
|
|
1279
|
+
* other per-prompt options (`timeoutMs`, `context`) are accepted and ignored.
|
|
1276
1280
|
*/
|
|
1277
1281
|
function inlineSandboxClient(factory, defaults = {}) {
|
|
1278
1282
|
const capturedDefaultProfile = defaults.profile === void 0 ? void 0 : agentProfileSchema.parse(structuredClone(defaults.profile));
|
|
@@ -1283,6 +1287,7 @@ function inlineSandboxClient(factory, defaults = {}) {
|
|
|
1283
1287
|
return {
|
|
1284
1288
|
id,
|
|
1285
1289
|
async *streamPrompt(message, opts) {
|
|
1290
|
+
assertBoxlessPromptOptions(opts, "inlineSandboxClient");
|
|
1286
1291
|
const controller = new AbortController();
|
|
1287
1292
|
const callerSignal = opts?.signal;
|
|
1288
1293
|
const onAbort = () => controller.abort(callerSignal?.reason ?? /* @__PURE__ */ new Error("prompt aborted"));
|
|
@@ -1373,7 +1378,10 @@ function inlineSandboxClient(factory, defaults = {}) {
|
|
|
1373
1378
|
* Router catalog cost remains a separately-labelled estimate, never billed spend.
|
|
1374
1379
|
*/
|
|
1375
1380
|
/** A same-host `SandboxClient` adapter with no process isolation. Local MCP is
|
|
1376
|
-
* refused unless the caller explicitly supplies a policy that allows it.
|
|
1381
|
+
* refused unless the caller explicitly supplies a policy that allows it.
|
|
1382
|
+
*
|
|
1383
|
+
* There is no box, so a per-prompt `backend` or `model` override is refused rather than dropped;
|
|
1384
|
+
* other per-prompt options (`timeoutMs`, `context`) are accepted and ignored. */
|
|
1377
1385
|
function localSandboxClient(opts) {
|
|
1378
1386
|
const defaultProfile = opts.profile === void 0 ? void 0 : executableAgentProfileSnapshot(opts.profile, "localSandboxClient default profile");
|
|
1379
1387
|
const router = Object.freeze({ ...opts.router });
|
|
@@ -1407,6 +1415,7 @@ function localSandboxClient(opts) {
|
|
|
1407
1415
|
return {
|
|
1408
1416
|
id: `local-${seq++}`,
|
|
1409
1417
|
async *streamPrompt(message, popts) {
|
|
1418
|
+
assertBoxlessPromptOptions(popts, "localSandboxClient");
|
|
1410
1419
|
let estimatedCostUsd = 0;
|
|
1411
1420
|
let sawEstimatedCost = false;
|
|
1412
1421
|
const chat = async (messages, tools) => {
|
|
@@ -1931,6 +1940,10 @@ function isAsyncIterable(v) {
|
|
|
1931
1940
|
* lone `SandboxInstance` cast (object literal → `declare class`) lives inside
|
|
1932
1941
|
* this function, so call sites stay cast-free.
|
|
1933
1942
|
*
|
|
1943
|
+
* There is no box, so a per-prompt `backend` override is refused rather than dropped. A per-turn
|
|
1944
|
+
* `model` IS delivered, because `onPrompt` receives the verbatim options and is free to honor it.
|
|
1945
|
+
* Other per-prompt options (`timeoutMs`, `context`) are accepted and ignored.
|
|
1946
|
+
*
|
|
1934
1947
|
* @experimental
|
|
1935
1948
|
*/
|
|
1936
1949
|
function inProcessSandboxClient(options) {
|
|
@@ -1994,6 +2007,7 @@ function inProcessSandboxClient(options) {
|
|
|
1994
2007
|
return {
|
|
1995
2008
|
id,
|
|
1996
2009
|
streamPrompt(message, opts) {
|
|
2010
|
+
assertBoxlessPromptOptions(opts, "inProcessSandboxClient", ["backend"]);
|
|
1997
2011
|
return drive(onPrompt, message, opts);
|
|
1998
2012
|
},
|
|
1999
2013
|
...fsMembers,
|
|
@@ -3765,6 +3779,7 @@ async function openSandboxRun(client, options, deliverable) {
|
|
|
3765
3779
|
const runId = options.runId ?? `sandbox-run-${randomSuffix()}`;
|
|
3766
3780
|
const now = options.now ?? Date.now;
|
|
3767
3781
|
const agentRunName = options.agentRun.name ?? options.agentRun.profile.name ?? "agent";
|
|
3782
|
+
const promptOptions = readPromptOptions(options.promptOptions, "openSandboxRun: promptOptions");
|
|
3768
3783
|
const lineage = createSandboxLineage(client, await probeSandboxCapabilities(client), { ...options.maxConcurrency !== void 0 ? { maxConcurrency: options.maxConcurrency } : {} });
|
|
3769
3784
|
let handle;
|
|
3770
3785
|
let started = false;
|
|
@@ -3881,7 +3896,7 @@ async function openSandboxRun(client, options, deliverable) {
|
|
|
3881
3896
|
payload: turnPayload(prompt, "start", turnStartedAt)
|
|
3882
3897
|
});
|
|
3883
3898
|
try {
|
|
3884
|
-
const r = await lineage.start(options.agentRun, prompt, options.signal,
|
|
3899
|
+
const r = await lineage.start(options.agentRun, prompt, options.signal, promptOptions);
|
|
3885
3900
|
handle = r.handle;
|
|
3886
3901
|
await options.beforeStart?.({
|
|
3887
3902
|
box: handle.box,
|
|
@@ -3932,7 +3947,7 @@ async function openSandboxRun(client, options, deliverable) {
|
|
|
3932
3947
|
payload: turnPayload(prompt, "resume", turnStartedAt)
|
|
3933
3948
|
});
|
|
3934
3949
|
try {
|
|
3935
|
-
const result = await settle(handle.box, await lineage.continue(handle, prompt, options.signal,
|
|
3950
|
+
const result = await settle(handle.box, await lineage.continue(handle, prompt, options.signal, promptOptions), stepIndex, "resume");
|
|
3936
3951
|
turnCount += 1;
|
|
3937
3952
|
emit({
|
|
3938
3953
|
target: "agent.turn",
|
|
@@ -6281,4 +6296,4 @@ function tail(s) {
|
|
|
6281
6296
|
//#endregion
|
|
6282
6297
|
export { InMemoryCorpus as $, chatWorkerSeam as A, renderLeaderboardSvg as At, SandboxRunAbortError as B, mcpSecretEnvMetadataKey as Bt, withUntrackedArtifacts as C, deterministicCompletion as Ct, codeModeSupervisorTools as D, pairwiseSignificance as Dt, runCoderChecks as E, leaderboard as Et, selectChampion as F, connectStdioMcp as Ft, equalKOnCost as G, printBenchmarkReport as H, resolveSecretEnv as Ht, assertStrategyContract as I, materializeLocalMcp as It, runPersonified as J, trajectoryReport as K, authorStrategy as L, createMcpEnvironment as Lt, discriminatingMeans as M, auditIntent as Mt, pickChampion as N, defaultAuditorInstruction as Nt, unsafeInProcessRunner as O, renderLeaderboardHtml as Ot, runStrategyEvolution as P, McpSpawnFault as Pt, FileCorpus as Q, strategyAuthorContract as R, sanitizeMcpToolSchema as Rt, copyUntrackedIntoClone as S, completionAuthorizes as St, patchDelivered as T, stopSentinel as Tt, runBenchmark as U, secretEnvOfMcpServer as Ut, openSandboxRun as V, resolveMcpServerLaunch as Vt, promotionGate as W, createShapeRegistry as X, builtinShapes as Y, registerShape as Z, NOTE_MAX_CHARS as _, localSandboxClient as _t, localShell as a, pipeline as at, composeWorkerEvidence as b, loopDispatch as bt, createVerifierEnvironment as c, widen as ct, harvestSurfaceDiffs as d, createScopeAnalyst as dt, renderCorpusToInstructions as et, analystsFromRegistry as f, registryScopeAnalyst as ft, EVIDENCE_MAX_CHARS as g, resolveSandboxClient as gt, worktreeFanout as h, defineLeaderboard as ht, jjWorkspace as i, panel as it, createChatSessionStore as j, renderPairwiseMarkdown as jt, chatTransportExecutor as k, renderLeaderboardMarkdown as kt, boxSurfaceReader as l, assertTraceDerivedFindings as lt, superviseSurface as m, harvestCorpus as mt, makeFinding$1 as n, flatWidenGate as nt, runInWorkspace as o, selectValidWinner as ot, failuresAnalyst as p, inProcessSandboxClient as pt, definePersona as q, gitWorkspace as r, loopUntil as rt, createWaterfallCollector as s, verify as st, computeFindingId$1 as t, fanout as tt, fsSurfaceReader as u, buildSteerContext as ut, VERIFY_TAIL_CHARS as v, inlineSandboxClient as vt, analyzeTrace as w, sentinelCompletion as wt, settledWorkerOut as x, superviseDispatch as xt, closingWorkerNote as y, loopCampaignDispatch as yt, strategyAuthorSystemPrompt as z, envKeyProvider as zt };
|
|
6283
6298
|
|
|
6284
|
-
//# sourceMappingURL=runtime-
|
|
6299
|
+
//# sourceMappingURL=runtime-Db1JYl9P.js.map
|