@tangle-network/agent-runtime 0.153.2 → 0.156.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-Bbic0THc.js → activation-B4fRz8QL.js} +3 -3
- package/dist/{activation-Bbic0THc.js.map → activation-B4fRz8QL.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-CcVhJ1lP.js → authoring-C4uCoDmO.js} +2 -2
- package/dist/{authoring-CcVhJ1lP.js.map → authoring-C4uCoDmO.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-DYOB1juU.js → candidate-execution-Ic92NMl9.js} +4 -4
- package/dist/{candidate-execution-DYOB1juU.js.map → candidate-execution-Ic92NMl9.js.map} +1 -1
- package/dist/{conversation-BHMwAiMo.js → conversation-DLYKdh6W.js} +4 -4
- package/dist/{conversation-BHMwAiMo.js.map → conversation-DLYKdh6W.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-DJG0yIYl.d.ts → environment-provider-C_QI6VCG.d.ts} +2 -2
- package/dist/{environment-provider-3eCszBEm.js → environment-provider-Dz9JB-X_.js} +2 -2
- package/dist/{environment-provider-3eCszBEm.js.map → environment-provider-Dz9JB-X_.js.map} +1 -1
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{executable-spec-BUcUcEPk.js → executable-spec-7ovS7PBo.js} +2 -2
- package/dist/{executable-spec-BUcUcEPk.js.map → executable-spec-7ovS7PBo.js.map} +1 -1
- package/dist/{graph-CIh2HDmH.js → graph-BibNm6a-.js} +3 -3
- package/dist/{graph-CIh2HDmH.js.map → graph-BibNm6a-.js.map} +1 -1
- package/dist/{improvement-cycle-GCDSsTN6.js → improvement-cycle-g6RsxGbg.js} +6 -6
- package/dist/{improvement-cycle-GCDSsTN6.js.map → improvement-cycle-g6RsxGbg.js.map} +1 -1
- package/dist/{index-DLn9WI-f.d.ts → index-B2A_KtAZ.d.ts} +23 -9
- package/dist/{index-lMADJLfq.d.ts → index-BYGBIxtx.d.ts} +4 -4
- package/dist/{index-rxVSm9-z.d.ts → index-DPFUNEdU.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -13
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +6 -6
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +9 -9
- package/dist/{knowledge-CaY53BW2.js → knowledge-DeP-wG8l.js} +5 -5
- package/dist/{knowledge-CaY53BW2.js.map → knowledge-DeP-wG8l.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-BwPqxKhR.d.ts → loop-runner-bin-9VUQihh7.d.ts} +3 -3
- package/dist/{loop-runner-bin-Dw43kB_-.js → loop-runner-bin-LvaprzUz.js} +3 -3
- package/dist/{loop-runner-bin-Dw43kB_-.js.map → loop-runner-bin-LvaprzUz.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-Dl9J8ek4.js → materialization-Ct3I4wu3.js} +22 -3
- package/dist/{materialization-Dl9J8ek4.js.map → materialization-Ct3I4wu3.js.map} +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-C4XKuK4t.js → openai-tools-CkSQJppW.js} +2 -2
- package/dist/{openai-tools-C4XKuK4t.js.map → openai-tools-CkSQJppW.js.map} +1 -1
- package/dist/{prepare-C5tI-H4o.js → prepare-DcMjMdj-.js} +19 -14
- package/dist/prepare-DcMjMdj-.js.map +1 -0
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{protected-model-port-DHDKNeY7.js → protected-model-port-BzUkspPP.js} +2 -2
- package/dist/{protected-model-port-DHDKNeY7.js.map → protected-model-port-BzUkspPP.js.map} +1 -1
- package/dist/{redact-NAptmqKw.d.ts → redact-BT7-mX8G.d.ts} +3 -3
- package/dist/{runtime--Jsq8JCC.js → runtime-D-NDRp4y.js} +24 -12
- package/dist/runtime-D-NDRp4y.js.map +1 -0
- package/dist/{runtime-B-5dp5Iz.d.ts → runtime-DuueBLeO.d.ts} +4 -4
- package/dist/{snapshot-cK9K420n.js → snapshot-CTAf4uuA.js} +8 -3
- package/dist/snapshot-CTAf4uuA.js.map +1 -0
- package/dist/{spawn-journal-BLnveCRS.js → spawn-journal-duo0EkOp.js} +2 -2
- package/dist/{spawn-journal-BLnveCRS.js.map → spawn-journal-duo0EkOp.js.map} +1 -1
- package/dist/{stream-agent-turn-BGyszuPH.d.ts → stream-agent-turn-BbcwWw_J.d.ts} +2 -2
- package/dist/{stream-agent-turn-DYi8ymsU.js → stream-agent-turn-FRZAuXAL.js} +3 -3
- package/dist/{stream-agent-turn-DYi8ymsU.js.map → stream-agent-turn-FRZAuXAL.js.map} +1 -1
- package/dist/{structural-rollout-D7V-HgXJ.js → structural-rollout-B1TocSdq.js} +5 -5
- package/dist/{structural-rollout-D7V-HgXJ.js.map → structural-rollout-B1TocSdq.js.map} +1 -1
- package/dist/{supervise-k_8VOASb.js → supervise-BVE0XAJa.js} +44 -64
- package/dist/supervise-BVE0XAJa.js.map +1 -0
- package/dist/{supervisor-CMZsJ7Wn.js → supervisor-BmXD0WCJ.js} +25 -28
- package/dist/supervisor-BmXD0WCJ.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/{types-BPQhQRrC.d.ts → types-Cz5mCGlY.d.ts} +4 -4
- package/dist/{workspace-archive-B9ui4rrR.js → workspace-archive-bugA3OwU.js} +2 -13
- package/dist/workspace-archive-bugA3OwU.js.map +1 -0
- package/package.json +1 -1
- package/dist/prepare-C5tI-H4o.js.map +0 -1
- package/dist/runtime--Jsq8JCC.js.map +0 -1
- package/dist/snapshot-cK9K420n.js.map +0 -1
- package/dist/supervise-k_8VOASb.js.map +0 -1
- package/dist/supervisor-CMZsJ7Wn.js.map +0 -1
- package/dist/workspace-archive-B9ui4rrR.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as runtimeOwnedScopeOwnerRuntime, S as runtimeOwnedPendingExecutorMaterialization, T as unknownMaterializationReceipt, _ as runtimeOwnedDeferredExecutorRuntime, a as authoredProfileDigest, b as runtimeOwnedExecutorMaterialization, c as knownExecutionBindingReceipt, g as recordRuntimeOwnedProviderModel, h as recordRuntimeOwnedProviderIdentityConflict, l as knownMaterializationReceipt, m as recordRuntimeOwnedProviderDispatchNotStarted, n as attestRuntimeOwnedExecutor, o as finalizeRuntimeOwnedPendingExecutor, p as recordRuntimeOwnedProviderAttemptStart, r as attestRuntimeOwnedPendingExecutor, s as inheritRuntimeOwnedExecutorAttestation, t as attestRuntimeOwnedDeferredExecutor, u as newExecutionAttemptId, w as unknownExecutionBindingReceipt, x as runtimeOwnedExecutorProviderEvidence, y as runtimeOwnedExecutorExecutionBinding } from "./materialization-Ct3I4wu3.js";
|
|
2
2
|
import { f as RuntimeRunStateError, m as ValidationError, r as BackendTransportError } from "./errors-CDZ8XsVj.js";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as captureWorkerTraceEvidence, a as aggregateProviderModelEvidence, c as loadSpawnForest, d as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, l as materializeTreeView, m as nestedDriverTreeRoot, o as closesCursorSlot, p as driverRuntime, u as pendingWaits, x as contentAddress } from "./spawn-journal-
|
|
3
|
+
import { n as detachedSnapshot } from "./snapshot-CTAf4uuA.js";
|
|
4
|
+
import { _ as captureWorkerTraceEvidence, a as aggregateProviderModelEvidence, c as loadSpawnForest, d as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, l as materializeTreeView, m as nestedDriverTreeRoot, o as closesCursorSlot, p as driverRuntime, u as pendingWaits, x as contentAddress } from "./spawn-journal-duo0EkOp.js";
|
|
5
5
|
import { _ as unmeteredSpend, a as cloneTokenUsage, b as zeroTokenUsage, d as randomSuffix, f as randomUuid, g as throwIfAborted, h as throwAbort, l as mapWithConcurrency, m as stringifySafe, n as addTokenUsage, o as deleteBoxSafe, p as sleep, r as chargedTokens, s as hasCompleteCacheBreakdown, t as addSpend, u as promptCacheTokenClasses, v as withTimeout, y as zeroSpend } from "./util-D6ZEuBMi.js";
|
|
6
6
|
import { c as notifySandboxEventObserver, i as extractLlmCallEvent, l as sandboxEventServedBackend, r as createSandboxToolPartState, s as mapSandboxToolEvent, t as assertSandboxServedModel, u as sandboxProgressEvents } from "./sandbox-events-BVjstFgb.js";
|
|
7
|
-
import { n as executableAgentSpecSnapshot, r as projectSandboxOutcome, t as executableAgentProfileSnapshot } from "./executable-spec-
|
|
7
|
+
import { n as executableAgentSpecSnapshot, r as projectSandboxOutcome, t as executableAgentProfileSnapshot } from "./executable-spec-7ovS7PBo.js";
|
|
8
8
|
import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile, u as resolveRouterRetryPolicy } from "./model-policy-Sw4ywhtL.js";
|
|
9
|
-
import { c as linkAbort, i as resolveAgentEnvironmentProvider, l as runAbortable, n as providerAsExecutor, r as providerAsSandboxClient, s as abortError } from "./environment-provider-
|
|
9
|
+
import { c as linkAbort, i as resolveAgentEnvironmentProvider, l as runAbortable, n as providerAsExecutor, r as providerAsSandboxClient, s as abortError } from "./environment-provider-Dz9JB-X_.js";
|
|
10
10
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-tXpAarhW.js";
|
|
11
11
|
import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentTurnInputSchema, REASONING_EFFORTS, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, profileMaterializationAxes, profileMaterializationAxes as profileMaterializationAxes$1, renderInputPartsAsText, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
12
12
|
import { estimateCost, isModelPriced } from "@tangle-network/agent-eval";
|
|
@@ -5902,15 +5902,21 @@ const decodeOpenAiPart = (p) => {
|
|
|
5902
5902
|
...str(p.id) ? { callId: p.id } : str(fn?.id) ? { callId: fn?.id } : {}
|
|
5903
5903
|
};
|
|
5904
5904
|
};
|
|
5905
|
-
/**
|
|
5905
|
+
/** kimi-code streams BOTH shapes on one session — an Anthropic `tool_use` content block AND a
|
|
5906
|
+
* top-level OpenAI `tool_calls` entry (cli-bridge `kimi.ts` surfaces each from a different part of
|
|
5907
|
+
* the wire). A decoder that reads only one of them drops half of a kimi worker's tool calls, and
|
|
5908
|
+
* drops them silently: the trace simply reports fewer calls. */
|
|
5909
|
+
const decodeKimiPart = (p) => decodeAnthropicPart(p) ?? decodeOpenAiPart(p);
|
|
5910
|
+
/** The harness → decoder registry. Add a harness by adding one entry.
|
|
5911
|
+
*
|
|
5912
|
+
* Keyed by `HarnessType`, the vocabulary the `harness` argument is actually drawn from, so a key
|
|
5913
|
+
* no caller can produce does not compile. `codex` is registered although the bridge's `codex.ts`
|
|
5914
|
+
* never yields `tool_calls`; the entry states which family it would belong to. */
|
|
5906
5915
|
const toolPartDecoders = {
|
|
5907
5916
|
opencode: decodeOpencodePart,
|
|
5908
5917
|
"claude-code": decodeAnthropicPart,
|
|
5909
|
-
anthropic: decodeAnthropicPart,
|
|
5910
5918
|
codex: decodeOpenAiPart,
|
|
5911
|
-
|
|
5912
|
-
router: decodeOpenAiPart,
|
|
5913
|
-
kimi: decodeOpenAiPart
|
|
5919
|
+
"kimi-code": decodeKimiPart
|
|
5914
5920
|
};
|
|
5915
5921
|
/** Decode a part with a specific harness's adapter when known, else try every registered adapter
|
|
5916
5922
|
* (the composite — robust to mixed/unknown streams). Never throws. */
|
|
@@ -6555,7 +6561,7 @@ function createWorktreeCliExecutor(options) {
|
|
|
6555
6561
|
runtime: "cli",
|
|
6556
6562
|
budgetExempt,
|
|
6557
6563
|
async execute(task, signal) {
|
|
6558
|
-
const linked =
|
|
6564
|
+
const linked = linkAbort(signal, controller.signal).signal;
|
|
6559
6565
|
const started = Date.now();
|
|
6560
6566
|
const taskPrompt = executionTaskPrompt(task, options.taskPrompt);
|
|
6561
6567
|
run = await runWorktreeHarness({
|
|
@@ -6680,20 +6686,6 @@ function executionTaskPrompt(task, configuredPrompt) {
|
|
|
6680
6686
|
}
|
|
6681
6687
|
throw new ValidationError("createWorktreeCliExecutor: execute task must be JSON-serializable");
|
|
6682
6688
|
}
|
|
6683
|
-
/** Link two abort signals into one that fires when either does. Returns `undefined` when neither
|
|
6684
|
-
* is present so the harness runner gets no signal at all. */
|
|
6685
|
-
function linkSignals(a, b) {
|
|
6686
|
-
if (a.aborted || b.aborted) {
|
|
6687
|
-
const c = new AbortController();
|
|
6688
|
-
c.abort();
|
|
6689
|
-
return c.signal;
|
|
6690
|
-
}
|
|
6691
|
-
const c = new AbortController();
|
|
6692
|
-
const onAbort = () => c.abort();
|
|
6693
|
-
a.addEventListener("abort", onAbort, { once: true });
|
|
6694
|
-
b.addEventListener("abort", onAbort, { once: true });
|
|
6695
|
-
return c.signal;
|
|
6696
|
-
}
|
|
6697
6689
|
//#endregion
|
|
6698
6690
|
//#region src/runtime/supervise/runtime.ts
|
|
6699
6691
|
/**
|
|
@@ -9560,6 +9552,11 @@ function snapshotExecutorConfig(config) {
|
|
|
9560
9552
|
});
|
|
9561
9553
|
}
|
|
9562
9554
|
case "cli": return detachedSnapshot(config, `createExecutor ${config.backend} config`);
|
|
9555
|
+
default: {
|
|
9556
|
+
const named = config.backend;
|
|
9557
|
+
const supported = Object.keys(WORKER_TRACE_PROPAGATION).sort().join(", ");
|
|
9558
|
+
throw new ValidationError(`createExecutor: no backend named ${JSON.stringify(named)}; supported backends are ${supported}`);
|
|
9559
|
+
}
|
|
9563
9560
|
}
|
|
9564
9561
|
}
|
|
9565
9562
|
/** A backend config reused for multiple workers/managers cannot pin execution identity. */
|
|
@@ -12569,8 +12566,8 @@ async function runFinalizer(finalizer, args) {
|
|
|
12569
12566
|
* - Join barrier: when `act()` settles (resolve OR reject), every still-live child is
|
|
12570
12567
|
* torn down before `run` returns — the generalization of the kernel's
|
|
12571
12568
|
* `finally{ Promise.allSettled(destroy) }` barrier (run-loop.ts) from boxes to the
|
|
12572
|
-
* whole sub-tree. A teardown failure is `allSettled`'d and journaled as a
|
|
12573
|
-
* `
|
|
12569
|
+
* whole sub-tree. A teardown failure is `allSettled`'d and journaled per node as a
|
|
12570
|
+
* `teardown-unconfirmed` event; it NEVER masks act()'s own outcome. act()'s rejection is the
|
|
12574
12571
|
* PRIMARY error (the kernel's firstError precedence), so a teardown throw during the
|
|
12575
12572
|
* barrier can never overwrite the real failure.
|
|
12576
12573
|
* - Abort cascade: a root abort (caller signal, `RootHandle.abort`, a tripped breaker,
|
|
@@ -13336,4 +13333,4 @@ function isNonEmptySpend(s) {
|
|
|
13336
13333
|
//#endregion
|
|
13337
13334
|
export { DEFAULT_STALL_AFTER_MS as $, LOCAL_HARNESSES as $t, createBudgetPool as A, buildLoopOtelSpans as At, createExecutorRegistry as B, padTraceId as Bt, effectiveConcurrency as C, canonicalObservedModel as Ct, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as D, readTraceContextFromEnv as Dt, rollingDispatch as E, mergeTraceEnv as Et, bridgeRuntimeAttachmentsKey as F, exportEvalRuns as Ft, workerTraceEnv as G, sanitizeKnowledgeReadinessReport as Gt, createWorktreeCliExecutor as H, createRuntimeEventCollector as Ht, bridgeStopSignalKey as I, flatOtelSpan as It, DEFAULT_SANDBOX_STEERING_MAX_TURNS as J, runWorktreeHarness as Jt, workerTraceHeaders as K, sanitizeRuntimeStreamEvent as Kt, captureReusableExecutorConfig as L, generateSpanId as Lt, bindReusableExecutorExecutionId as M, buildRuntimeEventOtelSpans as Mt, bridgeAdmissionRead as N, createOpenInferenceFileExporter as Nt, teardownExecutor as O, traceContextToEnv as Ot, bridgeModelRouteRefusal as P, createOtelExporter as Pt, sandboxSessionTraceSource as Q, DEFAULT_LOCAL_HARNESS as Qt, cliWorktreeExecutor as R, loopEventToOtelSpan as Rt, waitUntil as S, runBrainLoop as St, queueOf as T, createPropagatingTraceEmitter as Tt, WORKER_TRACE_PROPAGATION as U, createRuntimeStreamEventCollector as Ut, snapshotExecutorConfig as V, toOtelAttributes as Vt, readWorkerTraceContext as W, sanitizeAgentRuntimeEvent as Wt, createPushTraceSource as X, createWorktree as Xt, createSteerableSandboxSession as Y, captureWorktreeDiff as Yt, decodeToolPart as Z, removeWorktree as Zt, createWaitProbes as _, unsupportedProfileDimensions as _n, runAgentRounds as _t, pickBestDelivered as a, assertProfileMaterialization as an, PEER_MAIL_WIRE_KEY as at, timerAt as b, acquireSandbox as bt, driverChild as c, fullProfileMaterialization as cn, isPeerMailEnvelope as ct, deriveNodeExecutionIdentity as d, promptModelProfileMaterialization as dn, isLiveNodeStatus as dt, harnessSupportsReasoningEffort as en, createActivityLog as et, meterRuntimeOwnedAccounting as f, promptOnlyProfileMaterialization as fn, isTerminalNodeStatus as ft, settledToIteration as g, sandboxActProfileMaterialization as gn, isTerminalDecision as gt, scopeOwnerExecutorNodeContext as h, renderUnsupported as hn, defaultSelectWinner as ht, collectDelivered as i, AGENT_PROFILE_MATERIALIZATION_AXES as in, DEFAULT_PEER_MAIL_LIMITS as it, spendFromUsageEvents as j, buildLoopSpanNodes as jt, assertValidBudget as k, INTELLIGENCE_WIRE_VERSION as kt, withDriverExecutor as l, profileMaterializationAxes$1 as ln, peerMailTools as lt, recordScopeOwnerMaterialization as m, renderProfileMaterializationIssues as mn, createSandboxForSpec as mt, createSupervisor as n, parseCodexTokenUsage as nn, createInbox as nt, runFinalizer as o, controlProfileMaterialization as on, claimsAuthority as ot, meterRuntimeOwnedProviderAttempt as p, promptResourceProfileMaterialization as pn, TERMINAL_DECISIONS as pt, workerTraceSeamKey as q, runSettledCommand as qt, bestDelivered as r, CodexExecutionDiagnosticError as rn, AUTHORITY_MARKERS as rt, runTree as s, defineProfileMaterializationContract as sn, createPeerMailbox as st, createRootHandle as t, localHarnessExecutable as tn, readWorkerProgress as tt, createScope as u, promptControlProfileMaterialization as un, peerMailVerbNames as ut, isWaitOutcome as v, validateProfileMaterialization as vn, createSandboxLineage as vt, freeSlots as w, observedModelMatchesDeclared as wt, validateWaitSpec as x, routerBrain as xt, pollFor as y, worktreeCliProfileMaterialization as yn, probeSandboxCapabilities as yt, createExecutor as z, padSpanId as zt };
|
|
13338
13335
|
|
|
13339
|
-
//# sourceMappingURL=supervisor-
|
|
13336
|
+
//# sourceMappingURL=supervisor-BmXD0WCJ.js.map
|