@tangle-network/agent-runtime 0.192.5 → 0.193.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.
- package/dist/{activation-CsJctnHp.js → activation-BismttgN.js} +2 -2
- package/dist/{activation-CsJctnHp.js.map → activation-BismttgN.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-D-nXk29K.js → authoring-DWiqKSDY.js} +2 -2
- package/dist/{authoring-D-nXk29K.js.map → authoring-DWiqKSDY.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/{coordination-driver-pQobxl2Z.js → coordination-driver-DujHiIGa.js} +8 -8
- package/dist/coordination-driver-DujHiIGa.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-CJ43FJfJ.d.ts → environment-provider-DpPGJfK-.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-Ba4ZJ5jU.js → graph-DORfp9WX.js} +2 -2
- package/dist/{graph-Ba4ZJ5jU.js.map → graph-DORfp9WX.js.map} +1 -1
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +3 -3
- package/dist/{improve-Cbbt3jE6.d.ts → improve-Bn1zpWHF.d.ts} +3 -3
- package/dist/{improvement-cycle-D9FWTakR.js → improvement-cycle-BbsiYcpH.js} +3 -3
- package/dist/{improvement-cycle-D9FWTakR.js.map → improvement-cycle-BbsiYcpH.js.map} +1 -1
- package/dist/{index-B_fEqr5V.d.ts → index-DV1lzp9p.d.ts} +22 -24
- package/dist/{index-OSRVFARy.d.ts → index-RM2oRI9s.d.ts} +2 -2
- package/dist/{index-COznK4kB.d.ts → index-Vz-13VZq.d.ts} +4 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +5 -5
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-rzv8sBV9.js → knowledge-RW1pbZCH.js} +3 -3
- package/dist/{knowledge-rzv8sBV9.js.map → knowledge-RW1pbZCH.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-DiiZMHw7.d.ts → loop-runner-bin-CGraqNiA.d.ts} +3 -3
- package/dist/{loop-runner-bin-ClpCHpzR.js → loop-runner-bin-sBwcyQTc.js} +3 -3
- package/dist/{loop-runner-bin-ClpCHpzR.js.map → loop-runner-bin-sBwcyQTc.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 +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-BNBrKvZr.js → openai-tools-6jUqkGG7.js} +2 -2
- package/dist/{openai-tools-BNBrKvZr.js.map → openai-tools-6jUqkGG7.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{provision-supervisor-DiHm_bvQ.js → provision-supervisor-CddfH9mg.js} +9 -9
- package/dist/provision-supervisor-CddfH9mg.js.map +1 -0
- package/dist/{redact-Ct7s2j86.js → redact-D0OzQsyt.js} +109 -42
- package/dist/redact-D0OzQsyt.js.map +1 -0
- package/dist/{runtime-DI4mJNXI.d.ts → runtime-V91N6sPc.d.ts} +3 -3
- package/dist/{runtime-CVdsAHEN.js → runtime-ZM4i-jEF.js} +26 -16
- package/dist/{runtime-CVdsAHEN.js.map → runtime-ZM4i-jEF.js.map} +1 -1
- package/dist/{stream-agent-turn-_GgUW49y.d.ts → stream-agent-turn-1ahpdeIo.d.ts} +2 -2
- package/dist/{structural-rollout-NrtKSgCE.js → structural-rollout-CktnUTCC.js} +2 -2
- package/dist/{structural-rollout-NrtKSgCE.js.map → structural-rollout-CktnUTCC.js.map} +1 -1
- package/dist/{supervise-Cr6JEoIg.js → supervise-Dj6zd2C7.js} +29 -23
- package/dist/supervise-Dj6zd2C7.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-DKA_PDv0.d.ts → types-CGez_ZHQ.d.ts} +21 -28
- package/package.json +1 -1
- package/skills/supervise/SKILL.md +75 -26
- package/dist/coordination-driver-pQobxl2Z.js.map +0 -1
- package/dist/provision-supervisor-DiHm_bvQ.js.map +0 -1
- package/dist/redact-Ct7s2j86.js.map +0 -1
- package/dist/supervise-Cr6JEoIg.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as SandboxClient, at as RuntimeStreamEvent, i as ExecCtx, k as Validator } from "./types-BdolQ6Zi.js";
|
|
2
|
-
import { B as Scope, _ as ExecutorRegistry, _n as TraceSource, a as DefaultVerdict, b as ExecutorToolCall, g as ExecutorProgressEvent, it as UsageEvent, l as ExecutorCancellation, p as ExecutorFactory, q as Spend, u as ExecutorCancellationRequest, wn as ExecutorProgress } from "./types-
|
|
3
|
-
import { i as AgentEnvironmentProvider, o as AgentEnvironmentProviderRegistry, w as ProviderExecutorOptions } from "./environment-provider-
|
|
2
|
+
import { B as Scope, _ as ExecutorRegistry, _n as TraceSource, a as DefaultVerdict, b as ExecutorToolCall, g as ExecutorProgressEvent, it as UsageEvent, l as ExecutorCancellation, p as ExecutorFactory, q as Spend, u as ExecutorCancellationRequest, wn as ExecutorProgress } from "./types-CGez_ZHQ.js";
|
|
3
|
+
import { i as AgentEnvironmentProvider, o as AgentEnvironmentProviderRegistry, w as ProviderExecutorOptions } from "./environment-provider-DpPGJfK-.js";
|
|
4
4
|
import { AgentProfile, AgentProfileMcpServer, HarnessType, ReasoningEffort, StreamEvent } from "@tangle-network/agent-interface";
|
|
5
5
|
import { WorkspacePlanReceipt } from "@tangle-network/agent-profile-materialize";
|
|
6
6
|
import { ChildProcess } from "node:child_process";
|
|
@@ -1692,4 +1692,4 @@ declare function createExecutor(config: ExecutorConfig): ExecutorFactory<unknown
|
|
|
1692
1692
|
declare function createExecutorRegistry(): ExecutorRegistry;
|
|
1693
1693
|
//#endregion
|
|
1694
1694
|
export { CodexRolloutTurn as $, PeerMailboxOptions as $t, SandboxToolPartState as A, localHarnessExecutable as At, sumSandboxUsage as B, ToolLoopToolCall as Bt, Inbox as C, CodexTokenUsage as Ct, SandboxLeafOut as D, LocalHarnessResult as Dt, createInbox as E, LocalHarness as Et, extractLlmCallEvent as F, ToolLoopCallContext as Ft, resolveMcpServerLaunch as G, PeerMailEvent as Gt, ResolvedMcpServerLaunch as H, DEFAULT_PEER_MAIL_LIMITS as Ht, mapSandboxEvent as I, ToolLoopChat as It, CodexForkBoundary as J, PeerMailOutcome as Jt, resolveSecretEnv as K, PeerMailKind as Kt, mapSandboxToolEvent as L, ToolLoopCompaction as Lt, assertSandboxServedModel as M, runLocalHarness as Mt, createSandboxToolPartState as N, RouterTransportConfig as Nt, SandboxOutputMarker as O, RunLocalHarnessOptions as Ot, createSandboxUsageLedger as P, ToolSpec as Pt, CodexRolloutStoreRef as Q, PeerMailbox as Qt, sandboxEventServedBackend as R, ToolLoopCompactionOptions as Rt, AuthorityInboxMessage as S, CodexExecutionPolicy as St, PeerInboxMessage as T, LOCAL_HARNESSES as Tt, envKeyProvider as U, PEER_MAIL_WIRE_KEY as Ut, KeyProvider as V, AUTHORITY_MARKERS as Vt, mcpSecretEnvMetadataKey as W, PeerMailEnvelope as Wt, CodexRolloutSession as X, PeerMailRefusal as Xt, CodexRolloutIdentity as Y, PeerMailReadout as Yt, CodexRolloutStoreReader as Z, PeerMailSendInput as Zt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as _, WorktreeHandle as _t, CliSeam as a, JsonRpcMessage as an, HarnessUsage as at, SteerableSandboxSession as b, removeWorktree as bt, ExecutorConfig as c, McpTransport as cn, WorktreeCheckRunner as ct, RouterToolsSeam as d, WorktreeProfileMaterializationReceipt as dt, claimsAuthority as en, CodexStoreDelta as et, SandboxSeam as f, CreateWorktreeOptions as ft, createExecutorRegistry as g, RemoveWorktreeOptions as gt, createExecutor as h, GitRunner as ht, CliInPlaceSeam as i, peerMailVerbNames as in, readCodexRolloutSession as it, SandboxUsageLedger as j, parseCodexTokenUsage as jt, SandboxServedBackend as k, harnessSupportsReasoningEffort as kt, ProviderSeam as l, WorktreeCommandResult as lt, cliWorktreeExecutor as m, DiffResult as mt, BridgeModelCredential as n, isPeerMailEnvelope as nn, createCodexRolloutStoreReader as nt, CliWorktreeBridgeSeam as o, JsonRpcResponse as on, decodeHarnessUsage as ot, cliInPlaceExecutor as p, DiffOptions as pt, secretEnvOfMcpServer as q, PeerMailLimits as qt, BridgeSeam as r, peerMailTools as rn, harnessUsageIsEmpty as rt, CliWorktreeSeam as s, McpToolDescriptor as sn, InPlaceHarnessResult as st, BridgeHarnessStore as t, createPeerMailbox as tn, addHarnessUsage as tt, RouterSeam as u, WorktreeHarnessResult as ut, SandboxSteeringOptions as v, captureWorktreeDiff as vt, InboxMessage as w, DEFAULT_LOCAL_HARNESS as wt, createSteerableSandboxSession as x, CodexExecutionEvidence as xt, SteerableSandboxArgs as y, createWorktree as yt, sandboxProgressEvents as z, ToolLoopMessageRecord as zt };
|
|
1695
|
-
//# sourceMappingURL=runtime-
|
|
1695
|
+
//# sourceMappingURL=runtime-V91N6sPc.d.ts.map
|
|
@@ -7,17 +7,17 @@ import { i as redactProtectedValue, r as redactProtectedReason } from "./protect
|
|
|
7
7
|
import { l as notifySandboxEventObserver } from "./sandbox-events-DWeQRWxg.js";
|
|
8
8
|
import { n as executableAgentSpecSnapshot, t as executableAgentProfileSnapshot } from "./executable-spec-DxuiDFAU.js";
|
|
9
9
|
import { c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, t as assertExecutableAgentProfile } from "./model-policy-Wf2MxXJ9.js";
|
|
10
|
-
import { C as settledToIteration, Gt as probeSandboxCapabilities, Jt as readPromptOptions, Ut as runAgentRounds, Vt as defaultSelectWinner, Wt as createSandboxLineage, Xt as runBrainLoop, Y as rollingDispatch, Yt as routerBrain, Zt as canonicalObservedModelParts, a as createSupervisor, bt as createPushTraceSource, ft as createWorktreeCliExecutor, h as withDriverExecutor, lt as createExecutor, qt as assertBoxlessPromptOptions, ut as createExecutorRegistry } from "./redact-
|
|
10
|
+
import { C as settledToIteration, Gt as probeSandboxCapabilities, Jt as readPromptOptions, Ut as runAgentRounds, Vt as defaultSelectWinner, Wt as createSandboxLineage, Xt as runBrainLoop, Y as rollingDispatch, Yt as routerBrain, Zt as canonicalObservedModelParts, a as createSupervisor, bt as createPushTraceSource, ft as createWorktreeCliExecutor, h as withDriverExecutor, lt as createExecutor, qt as assertBoxlessPromptOptions, ut as createExecutorRegistry } from "./redact-D0OzQsyt.js";
|
|
11
11
|
import "./environment-provider-DEwsolvi.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 { n as supervise, vt as gateOnDeliverable, yt as mapExecutorResult } 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-CktnUTCC.js";
|
|
14
|
+
import "./coordination-driver-DujHiIGa.js";
|
|
15
|
+
import { n as supervise, vt as gateOnDeliverable, yt as mapExecutorResult } from "./supervise-Dj6zd2C7.js";
|
|
16
16
|
import "./run-layout-B8I_LXN-.js";
|
|
17
|
-
import "./provision-supervisor-
|
|
17
|
+
import "./provision-supervisor-CddfH9mg.js";
|
|
18
18
|
import { t as assertAuthoredCode } from "./authored-code-DzYtiflw.js";
|
|
19
|
-
import "./authoring-
|
|
20
|
-
import "./graph-
|
|
19
|
+
import "./authoring-DWiqKSDY.js";
|
|
20
|
+
import "./graph-DORfp9WX.js";
|
|
21
21
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, 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, createTraceAnalyst, expandProfileAxes, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
23
23
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -4885,7 +4885,8 @@ function detach(value) {
|
|
|
4885
4885
|
*/
|
|
4886
4886
|
function codeModeSupervisorTools(runner, options = {}) {
|
|
4887
4887
|
if (runner === void 0 || typeof runner.run !== "function") throw new ValidationError("codeModeSupervisorTools: a CodeModeRunner is required (no default) — pass unsafeInProcessRunner() for trusted output, or a jailed runner for untrusted models");
|
|
4888
|
-
const timeoutMs = options.timeoutMs ??
|
|
4888
|
+
const timeoutMs = options.timeoutMs ?? null;
|
|
4889
|
+
if (timeoutMs !== null && (!Number.isSafeInteger(timeoutMs) || timeoutMs <= 0)) throw new ValidationError("codeModeSupervisorTools: timeoutMs must be a positive safe integer or null");
|
|
4889
4890
|
const faces = (context) => context.coordinationTools().filter((tool) => CODE_CALLABLE_VERBS[tool.name] !== void 0);
|
|
4890
4891
|
return () => [{
|
|
4891
4892
|
name: "search",
|
|
@@ -4916,24 +4917,33 @@ function codeModeSupervisorTools(runner, options = {}) {
|
|
|
4916
4917
|
const code = typeof raw === "object" && raw !== null ? raw.code : void 0;
|
|
4917
4918
|
if (typeof code !== "string" || code.trim().length === 0) throw new ValidationError("code mode: execute needs { code: string }");
|
|
4918
4919
|
assertAuthoredCode(code, { context: `code mode (${context.nodeId})` });
|
|
4919
|
-
const
|
|
4920
|
-
|
|
4921
|
-
const
|
|
4922
|
-
|
|
4920
|
+
const execution = new AbortController();
|
|
4921
|
+
let timedOut = false;
|
|
4922
|
+
const onScopeAbort = () => execution.abort(abortReason(context.signal));
|
|
4923
|
+
const timer = timeoutMs === null ? null : setTimeout(() => {
|
|
4924
|
+
if (!execution.signal.aborted) {
|
|
4925
|
+
timedOut = true;
|
|
4926
|
+
execution.abort(new ValidationError(`code mode: program timed out after ${timeoutMs}ms`));
|
|
4927
|
+
}
|
|
4928
|
+
}, timeoutMs);
|
|
4929
|
+
if (context.signal.aborted) execution.abort(abortReason(context.signal));
|
|
4923
4930
|
else context.signal.addEventListener("abort", onScopeAbort, { once: true });
|
|
4924
4931
|
const bindings = {};
|
|
4925
4932
|
for (const [wire, member] of Object.entries(CODE_CALLABLE_VERBS)) bindings[wire] = async (args) => {
|
|
4926
|
-
if (
|
|
4933
|
+
if (execution.signal.aborted) {
|
|
4934
|
+
if (!timedOut) throw abortReason(execution.signal);
|
|
4935
|
+
throw new ValidationError(`code mode: the execute deadline passed; api.${wire} is refused so no work outlives the call`);
|
|
4936
|
+
}
|
|
4927
4937
|
return detach(await context.verbs[member](args));
|
|
4928
4938
|
};
|
|
4929
4939
|
try {
|
|
4930
4940
|
return await runner.run({
|
|
4931
4941
|
code,
|
|
4932
4942
|
bindings,
|
|
4933
|
-
signal:
|
|
4943
|
+
signal: execution.signal
|
|
4934
4944
|
});
|
|
4935
4945
|
} finally {
|
|
4936
|
-
clearTimeout(timer);
|
|
4946
|
+
if (timer !== null) clearTimeout(timer);
|
|
4937
4947
|
context.signal.removeEventListener("abort", onScopeAbort);
|
|
4938
4948
|
}
|
|
4939
4949
|
}
|
|
@@ -6350,4 +6360,4 @@ function tail(s) {
|
|
|
6350
6360
|
//#endregion
|
|
6351
6361
|
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 };
|
|
6352
6362
|
|
|
6353
|
-
//# sourceMappingURL=runtime-
|
|
6363
|
+
//# sourceMappingURL=runtime-ZM4i-jEF.js.map
|