@tangle-network/agent-runtime 0.312.0 → 0.313.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-CE5vCzYS.js → activation-DEtkkjNW.js} +2 -2
- package/dist/{activation-CE5vCzYS.js.map → activation-DEtkkjNW.js.map} +1 -1
- package/dist/{activation-K-k4BRp9.d.ts → activation-yAlZTwYG.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-Cp2z1zz6.js → coordination-driver-CeXe3km2.js} +2 -2
- package/dist/{coordination-driver-Cp2z1zz6.js.map → coordination-driver-CeXe3km2.js.map} +1 -1
- package/dist/{delegate-DPkyIx3C.js → delegate-CG_iTxla.js} +2 -2
- package/dist/{delegate-DPkyIx3C.js.map → delegate-CG_iTxla.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-DP0X2bVC.js → graph-ua9uUqkA.js} +4 -4
- package/dist/{graph-DP0X2bVC.js.map → graph-ua9uUqkA.js.map} +1 -1
- package/dist/{improvement-cycle-D5r4auxT.js → improvement-cycle-Buz8X_hE.js} +3 -3
- package/dist/{improvement-cycle-D5r4auxT.js.map → improvement-cycle-Buz8X_hE.js.map} +1 -1
- package/dist/{index-BdIi1eIV.d.ts → index-Lm_RjfXs.d.ts} +12 -2
- package/dist/index.d.ts +46 -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 +1 -1
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-CoKHGqxE.d.ts → loop-runner-bin-CliCf9sW.d.ts} +2 -2
- package/dist/{loop-runner-bin-Cn7244xv.js → loop-runner-bin-DVqUUMrG.js} +3 -3
- package/dist/{loop-runner-bin-Cn7244xv.js.map → loop-runner-bin-DVqUUMrG.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-C2GoLNjj.d.ts → openai-tools-BrOgOw66.d.ts} +2 -2
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-BahNK2L0.js → provision-supervisor-_dpcZKRl.js} +3 -3
- package/dist/{provision-supervisor-BahNK2L0.js.map → provision-supervisor-_dpcZKRl.js.map} +1 -1
- package/dist/{runtime-DRrpUP7n.js → runtime-UQT_8tFV.js} +8 -8
- package/dist/{runtime-DRrpUP7n.js.map → runtime-UQT_8tFV.js.map} +1 -1
- package/dist/{search-executor-BuwMU5TF.js → search-executor-CTPMXtJ8.js} +2 -2
- package/dist/{search-executor-BuwMU5TF.js.map → search-executor-CTPMXtJ8.js.map} +1 -1
- package/dist/{server-DMqPF86Y.js → server-DjzdO6s6.js} +3 -3
- package/dist/{server-DMqPF86Y.js.map → server-DjzdO6s6.js.map} +1 -1
- package/dist/{supervise-CGMzXi_j.js → supervise-DUR_nu2t.js} +10 -7
- package/dist/supervise-DUR_nu2t.js.map +1 -0
- package/dist/{supervisor-DgcmBicU.js → supervisor-CBBb97-G.js} +509 -13
- package/dist/supervisor-CBBb97-G.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervise-CGMzXi_j.js.map +0 -1
- package/dist/supervisor-DgcmBicU.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $n as parseWorkerToolTraceArtifact,
|
|
1
|
+
import { $n as parseWorkerToolTraceArtifact, $r as toOtelAttributes, A as scopeOwnerExecutorNodeContext, An as resolveAgentEnvironmentProvider, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, C as deriveNodeExecutionIdentity, Ci as profileMaterializationAxes$1, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fi as attestRuntimeOwnedScopeOwner, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, Gi as runtimeOwnedExecutorExecutionBinding, H as prepareScopeRetainedOwnerSeatSwitch, Hi as providerAttemptEvidence, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Ji as runtimeOwnedPendingExecutorMaterialization, Jn as readCommittedJsonLines, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, Ki as runtimeOwnedExecutorMaterialization, Kn as isNoEntError, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mr as contentAddress, N as SeatChainExhaustedError, Ni as worktreeCliProfileMaterialization, Nt as createExecutor, O as recordScopeOwnerPause, Or as persistHarnessTranscript, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, R as bindScopeRetainedOwnerEnvironmentId, Ri as inheritRuntimeOwnedExecutorAttestation, Si as fullProfileMaterialization, Sr as RunCancellationReason, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, Ti as promptModelProfileMaterialization, Tr as runAbortable, U as prepareScopeRetainedOwnerTask, Ui as recordRuntimeOwnedDriveHarnessProviderEvidence, V as noteScopeRetainedOwnerCoordination, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, Wi as runtimeOwnedDriveHarnessProviderEvidence, X as scopeRetainedOwnerResult, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Yi as runtimeOwnedScopeOwnerRuntime, Yr as generateSpanId, Z as scopeRetainedOwnerTurnEnded, _ as isDriverSpec, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, bi as controlProfileMaterialization, c as runTree, cn as bridgeModelRouteRefusal, dr as bridgeStopSignalKey, f as runDriverWithRetry, fr as errMessage, g as driverExecutorFactory, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ir as assertValidBudget, it as providerVisibleProfile, ji as unsupportedProfileDimensions, k as restoreScopeOwnerAcceptedExecution, ki as renderUnsupported, kr as readHarnessTranscript, kt as bindReusableExecutorExecutionId, lr as spendFromUsageTotals, mt as gateOnDeliverable, n as createRootHandle, nt as coordinationMcpAlias, or as meterUsageEvent, p as summarizeDriverAttempts, q as scopeRetainedOwnerPriorSpend, qi as runtimeOwnedExecutorProviderEvidence, qn as prepareJsonlAppend, qr as createOtelExporter, r as createSupervisor, rt as coordinationProfileToolPrefix, s as runFinalizer, sn as bridgeAdmissionRefusal, sr as newUsageTotals, ta as detachedSnapshot, tr as executorFailure, u as HarnessTurnFailedError, ur as bridgeRuntimeAttachmentsKey, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wi as promptControlProfileMaterialization, wn as routerBrain, wr as linkAbort, x as beginScopeOwnerAttempt, xi as defineProfileMaterializationContract, xt as bestComposite, yi as assertProfileMaterialization, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zt as createRouterTranscript } from "./supervisor-CBBb97-G.js";
|
|
2
2
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
|
|
3
3
|
import { G as errorMessage, Tt as teardownSurfaces, Y as isAsyncIterable$1, _t as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, at as unmeteredSpend, dt as resourceTelemetry, ft as withBudgetResources, lt as addResourceSpend, ot as withTimeout, st as zeroSpend, tt as sleep, wt as teardownExecutor, z as addSpend } from "./workspace-streams-BEvSX97P.js";
|
|
4
4
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-DydyWTQg.js";
|
|
5
5
|
import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
|
|
6
6
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
7
|
-
import { C as createInMemoryRunContext, D as applyRunCancellation, M as coordinationVerbNames, O as watchRunCancellation, P as createCoordinationToolsForManager, S as createFileRunContext, c as resolveWakePolicy, f as createProgressTracker, h as progressStop, m as plateau, n as createSteerAcknowledger, o as composeWakeInput, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as withRunContext } from "./coordination-driver-
|
|
7
|
+
import { C as createInMemoryRunContext, D as applyRunCancellation, M as coordinationVerbNames, O as watchRunCancellation, P as createCoordinationToolsForManager, S as createFileRunContext, c as resolveWakePolicy, f as createProgressTracker, h as progressStop, m as plateau, n as createSteerAcknowledger, o as composeWakeInput, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as withRunContext } from "./coordination-driver-CeXe3km2.js";
|
|
8
8
|
import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
|
|
9
9
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-DSCWdbX2.js";
|
|
10
10
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -1788,6 +1788,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
1788
1788
|
const exactProfile = agentProfileSchema.parse(profile);
|
|
1789
1789
|
assertExecutableAgentProfile(exactProfile, "supervisorAgent");
|
|
1790
1790
|
const stableProfile = detachedSnapshot(exactProfile, "supervisorAgent profile");
|
|
1791
|
+
const registeredProfile = deps.registeredProfile === void 0 ? stableProfile : detachedSnapshot(agentProfileSchema.parse(deps.registeredProfile), "supervisorAgent registered profile");
|
|
1791
1792
|
const stableRouter = deps.router === void 0 ? void 0 : snapshotRouterTransportConfig(deps.router);
|
|
1792
1793
|
const resolveTools = deps.resolveSupervisorTools;
|
|
1793
1794
|
assertNoReservedCoordinationMcpAlias(stableProfile, "supervisorAgent");
|
|
@@ -2155,6 +2156,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2155
2156
|
await driveHarness({
|
|
2156
2157
|
profile: providerProfile,
|
|
2157
2158
|
authoredProfile: stableProfile,
|
|
2159
|
+
...registeredProfile === stableProfile ? {} : { registeredProfile },
|
|
2158
2160
|
...profilePrompt !== void 0 ? { systemPrompt: profilePrompt } : {},
|
|
2159
2161
|
task: compose === void 0 ? task : compose(UNPROVEN_CONTINUITY),
|
|
2160
2162
|
...compose === void 0 ? {} : { reentry: {
|
|
@@ -3096,7 +3098,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
|
|
|
3096
3098
|
let seatChain;
|
|
3097
3099
|
let activeSeat;
|
|
3098
3100
|
let switchedProviderCheckpointAt;
|
|
3099
|
-
const drive = async ({ profile, authoredProfile, task, scope, coordinationMcpUrl, coordinationMcpHeaders, stopSignal, coordinationTools, reentry }) => {
|
|
3101
|
+
const drive = async ({ profile, authoredProfile, registeredProfile, task, scope, coordinationMcpUrl, coordinationMcpHeaders, stopSignal, coordinationTools, reentry }) => {
|
|
3100
3102
|
const priorCommittedArtifact = managerArtifact;
|
|
3101
3103
|
managerArtifact = void 0;
|
|
3102
3104
|
switchedProviderCheckpointAt = void 0;
|
|
@@ -3361,7 +3363,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
|
|
|
3361
3363
|
let ownerMaterializationPublished = false;
|
|
3362
3364
|
const ownerDeclaration = (exactDeclaration) => ({
|
|
3363
3365
|
...exactDeclaration,
|
|
3364
|
-
authoredProfile: canonicalDriverProfile,
|
|
3366
|
+
authoredProfile: registeredProfile === void 0 ? canonicalDriverProfile : agentProfileSchema.parse(registeredProfile),
|
|
3365
3367
|
effectiveProfile: providerDriverProfile,
|
|
3366
3368
|
platformAttachments: { [coordinationMcpAlias]: {
|
|
3367
3369
|
kind: "coordination-mcp",
|
|
@@ -4614,7 +4616,8 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
4614
4616
|
controlDir: resolve(options.runDir),
|
|
4615
4617
|
abortRun: cancelDurableRun
|
|
4616
4618
|
},
|
|
4617
|
-
...options.steerDir === void 0 ? {} : { steerDir: resolve(options.steerDir) }
|
|
4619
|
+
...options.steerDir === void 0 ? {} : { steerDir: resolve(options.steerDir) },
|
|
4620
|
+
...canonicalProfile === registeredProfile ? {} : { registeredProfile }
|
|
4618
4621
|
};
|
|
4619
4622
|
const agent = testBrain === void 0 ? supervisorAgent(canonicalProfile, agentDeps) : supervisorAgentWithTestBrain(canonicalProfile, {
|
|
4620
4623
|
...agentDeps,
|
|
@@ -4656,7 +4659,7 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
4656
4659
|
...rootOwnerRuntime === void 0 ? {} : { rootMaterialization: {
|
|
4657
4660
|
runtime: rootOwnerRuntime,
|
|
4658
4661
|
declaration: "deferred",
|
|
4659
|
-
authoredProfile:
|
|
4662
|
+
authoredProfile: registeredProfile
|
|
4660
4663
|
} },
|
|
4661
4664
|
maxDepth: options.maxDepth ?? 16,
|
|
4662
4665
|
...options.childSettleGraceMs !== void 0 ? { childSettleGraceMs: options.childSettleGraceMs } : {},
|
|
@@ -4744,4 +4747,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
4744
4747
|
//#endregion
|
|
4745
4748
|
export { readRootStreamReceipt as _, superviseWithTestBrain as a, createSupervisorSpanRecorder as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, resolveSupervisorProfile as f, readRootStream as g, ROOT_STREAM_FILE as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgentWithTestBrain as m, profileGuidanceComposer as n, workerFromBackend as o, supervisorAgent as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, UNPROVEN_CONTINUITY as v, serveCoordinationMcp as x, composeReentryTask as y };
|
|
4746
4749
|
|
|
4747
|
-
//# sourceMappingURL=supervise-
|
|
4750
|
+
//# sourceMappingURL=supervise-DUR_nu2t.js.map
|