@tangle-network/agent-runtime 10.0.8 → 10.0.9
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 +12 -0
- package/dist/{activation-pRO-xNlo.js → activation-D4hAza0W.js} +2 -2
- package/dist/{activation-pRO-xNlo.js.map → activation-D4hAza0W.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{delegate-ChsxEeFK.js → delegate-C53pe9th.js} +2 -2
- package/dist/{delegate-ChsxEeFK.js.map → delegate-C53pe9th.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-DL-lN2Pb.js → driver-control-acknowledgers-eETy7SAi.js} +16 -17
- package/dist/driver-control-acknowledgers-eETy7SAi.js.map +1 -0
- package/dist/durable.js +4 -4
- package/dist/{graph-CKdDENlv.js → graph-CRaquJhB.js} +4 -4
- package/dist/{graph-CKdDENlv.js.map → graph-CRaquJhB.js.map} +1 -1
- package/dist/{improve-DNOZVLb-.js → improve-CEOS1Ijj.js} +5 -5
- package/dist/{improve-DNOZVLb-.js.map → improve-CEOS1Ijj.js.map} +1 -1
- package/dist/index.js +8 -8
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-DmDW9BKB.js → loop-runner-2vKhhbQA.js} +2 -2
- package/dist/{loop-runner-DmDW9BKB.js.map → loop-runner-2vKhhbQA.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/profile-Cxl_Ajl2.js.map +1 -1
- package/dist/{provision-supervisor-DdsrpA3I.js → provision-supervisor-CzKfUJIg.js} +3 -3
- package/dist/{provision-supervisor-DdsrpA3I.js.map → provision-supervisor-CzKfUJIg.js.map} +1 -1
- package/dist/{run-state-CX8OTr-9.js → run-state-Dbi2PVOt.js} +2 -2
- package/dist/{run-state-CX8OTr-9.js.map → run-state-Dbi2PVOt.js.map} +1 -1
- package/dist/{runtime-ERkXbzFe.js → runtime-CZ-VnOr5.js} +44 -29
- package/dist/{runtime-ERkXbzFe.js.map → runtime-CZ-VnOr5.js.map} +1 -1
- package/dist/{search-executor-DDb4sT3E.js → search-executor-C0aVtzXX.js} +2 -2
- package/dist/{search-executor-DDb4sT3E.js.map → search-executor-C0aVtzXX.js.map} +1 -1
- package/dist/{server-B9tOx3CY.js → server-BwpXzcpm.js} +2 -2
- package/dist/{server-B9tOx3CY.js.map → server-BwpXzcpm.js.map} +1 -1
- package/dist/{structural-rollout-B6RlFKxq.js → structural-rollout-CKNwDl0T.js} +2 -2
- package/dist/{structural-rollout-B6RlFKxq.js.map → structural-rollout-CKNwDl0T.js.map} +1 -1
- package/dist/{supervise-CikShHxF.js → supervise-CkIKRWDV.js} +9 -5
- package/dist/{supervise-CikShHxF.js.map → supervise-CkIKRWDV.js.map} +1 -1
- package/dist/{supervisor-BvEe3y0c.js → supervisor-CAQI8ILe.js} +7 -6
- package/dist/supervisor-CAQI8ILe.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/tui/index.js +1 -1
- package/package.json +4 -4
- package/dist/driver-control-acknowledgers-DL-lN2Pb.js.map +0 -1
- package/dist/supervisor-BvEe3y0c.js.map +0 -1
|
@@ -8813,17 +8813,21 @@ function providerAsSandboxClient(provider, options = {}) {
|
|
|
8813
8813
|
const defaults = options.defaults ?? {};
|
|
8814
8814
|
const sandboxInput = createInputFromSandboxOptions(createOptions, options.mapCreateOptions !== void 0);
|
|
8815
8815
|
const selected = structuredClone(sandboxInput.secrets ?? defaults.secrets);
|
|
8816
|
-
const authored =
|
|
8816
|
+
const authored = createOptions?.backend?.profile ?? defaults.profile;
|
|
8817
8817
|
const bindings = [
|
|
8818
8818
|
defaults.proxySecrets,
|
|
8819
8819
|
sandboxInput.proxySecrets,
|
|
8820
8820
|
typeof authored === "object" ? authored.proxySecrets : void 0
|
|
8821
8821
|
].flatMap((value) => value === void 0 ? [] : [mergeProxySecretBindings(value)]);
|
|
8822
|
-
const customInput =
|
|
8822
|
+
const { profile, ...customInput } = {
|
|
8823
|
+
profile: authored,
|
|
8824
|
+
...options.mapCreateOptions?.(createOptions)
|
|
8825
|
+
};
|
|
8823
8826
|
const mapped = {
|
|
8824
8827
|
...defaults,
|
|
8825
8828
|
...sandboxInput,
|
|
8826
8829
|
...customInput,
|
|
8830
|
+
profile: typeof profile === "object" ? agentProfileSchema.parse(profile) : profile,
|
|
8827
8831
|
...defaults.env || sandboxInput.env || customInput.env ? { env: {
|
|
8828
8832
|
...defaults.env,
|
|
8829
8833
|
...sandboxInput.env,
|
|
@@ -8843,7 +8847,6 @@ function providerAsSandboxClient(provider, options = {}) {
|
|
|
8843
8847
|
const entries = new Set((Array.isArray(mapped.secrets) ? mapped.secrets : []).map(bindingId));
|
|
8844
8848
|
for (const binding of Array.isArray(selected) ? selected : []) if (typeof binding !== "string" && !entries.has(bindingId(binding))) throw new ValidationError("mapped create changed a stored host binding");
|
|
8845
8849
|
if (bindings.length) mapped.proxySecrets = mergeProxySecretBindings(...bindings, mapped.proxySecrets, typeof mapped.profile === "object" ? mapped.profile.proxySecrets : void 0);
|
|
8846
|
-
if (typeof mapped.profile === "object") mapped.profile = structuredClone(mapped.profile);
|
|
8847
8850
|
if (mapped.backend === void 0) delete mapped.backend;
|
|
8848
8851
|
if (mapped.profile === void 0) throw new ValidationError(`providerAsSandboxClient(${provider.name}): profile required in defaults or CreateSandboxOptions.backend.profile`);
|
|
8849
8852
|
const needsMcp = hasRuntimeMcpAttachments(mapped);
|
|
@@ -8899,7 +8902,6 @@ function createInputFromSandboxOptions(options, customMapping) {
|
|
|
8899
8902
|
}
|
|
8900
8903
|
if (unsupported.length > 0) throw new ValidationError(`providerAsSandboxClient: Sandbox create controls require mapCreateOptions: ${unsupported.join(", ")}`);
|
|
8901
8904
|
}
|
|
8902
|
-
const profile = options?.backend?.profile;
|
|
8903
8905
|
const backend = options?.backend?.type;
|
|
8904
8906
|
const cwd = options?.cwd === void 0 ? void 0 : canonicalWorkspaceCwd({
|
|
8905
8907
|
base: "repository",
|
|
@@ -8912,7 +8914,6 @@ function createInputFromSandboxOptions(options, customMapping) {
|
|
|
8912
8914
|
...cwd === void 0 ? {} : { cwd }
|
|
8913
8915
|
};
|
|
8914
8916
|
return {
|
|
8915
|
-
...profile !== void 0 ? { profile } : {},
|
|
8916
8917
|
...backend ? { backend } : {},
|
|
8917
8918
|
...Object.keys(workspace).length > 0 ? { workspace } : {},
|
|
8918
8919
|
...options?.resources ? { resources: options.resources } : {},
|
|
@@ -16585,4 +16586,4 @@ async function noWinner(settled, rejection) {
|
|
|
16585
16586
|
}
|
|
16586
16587
|
export { failPendingAfter as $, worktreeCliProfileMaterialization as $t, readPromptOptions as A, readCodexRolloutSession as At, toolResultText as B, terminateProcessTreeAndConfirm as Bt, captureReusableExecutorConfig as C, bridgeAdmissionRefusal as Ct, createSteerableSandboxSession as D, addHarnessUsage as Dt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as E, ROUTER_PRICE_SOURCE as Et, defaultSelectWinner as F, defaultRunCommand as Ft, providerAsExecutor as G, fullProfileMaterialization as Gt, routerBrain as H, assertProfileMaterializes as Ht, codeModeArguments as I, runSettledCommand as It, providerAsSandboxClient as J, promptModelProfileMaterialization as Jt, providerOutputOptions as K, profileMaterializationAxes$1 as Kt, codeModeModelOutput as L, runWorktreeHarness as Lt, createSandboxLineage as M, bridgeRuntimeAttachmentsKey as Mt, acquireSandbox as N, bridgeRuntimeEnvKey as Nt, runAgentRounds as O, createCodexRolloutStoreReader as Ot, TERMINAL_DECISIONS as P, bridgeStopSignalKey as Pt, createInbox as Q, unsupportedProfileDimensions as Qt, createCodeModeTools as R, LOCAL_HARNESSES as Rt, bindReusableExecutorExecutionId as S, verdictFromJudgeScore as St, snapshotExecutorConfig as T, priceTokens as Tt, createAgentEnvironmentProviderRegistry as U, controlProfileMaterialization as Ut, createRouterTranscript as V, assertProfileMaterialization as Vt, resolveAgentEnvironmentProvider as W, defineProfileMaterializationContract as Wt, createInPlaceCliExecutor as X, sandboxActProfileMaterialization as Xt, createWorktreeCliExecutor as Y, renderUnsupported as Yt, INBOX_RECEIPT_KEY as Z, sandboxProfileMaterialization as Zt, isDriverSpec as _, preflightPublicCoordination as _t, awaitRootWake as a, isPeerMailEnvelope as at, InMemorySpawnJournal as b, gateOnDeliverable as bt, readRunParking as c, taskToPrompt$1 as ct, bestDelivered as d, abandonablePending as dt, projectSandboxOutcome as en, AUTHORITY_MARKERS as et, runFinalizer as f, classifyDriverFailure as ft, driverExecutorFactory as g, upstreamUnavailableSignal as gt, driverChild as h, undispatchedCredentialExit as ht, assertRunParking as i, createPeerMailbox as it, createSandboxForSpec as j, createPushTraceSource as jt, assertBoxlessPromptOptions as k, harnessUsageIsEmpty as kt, sleepScopeWait as l, DriverAttemptsExhaustedError as lt, createRootHandle as m, transientFailureKind as mt, createSupervisor as n, PEER_MAIL_WIRE_KEY as nt, bindScopeParkingDrain as o, peerMailTools as ot, runTree as p, summarizeDriverAttempts as pt, LEAF_CONTINUATION_TASK as q, promptControlProfileMaterialization as qt, RunParkedError as r, claimsAuthority as rt, isRunParked as s, peerMailVerbNames as st, DEFAULT_MAX_DEPTH as t, readSandboxOutcome as tn, DEFAULT_PEER_MAIL_LIMITS as tt, withRunParking as u, HarnessTurnFailedError as ut, withDriverExecutor as v, CheckUnavailableError as vt, createExecutor as w, bridgeModelRouteRefusal as wt, createExecutorRegistry as x, mapExecutorResult as xt, InMemoryResultBlobStore as y, gateFactoryOnDeliverable as yt, runCodeMode as z, harnessInvocation as zt };
|
|
16587
16588
|
|
|
16588
|
-
//# sourceMappingURL=supervisor-
|
|
16589
|
+
//# sourceMappingURL=supervisor-CAQI8ILe.js.map
|