@tangle-network/agent-runtime 0.153.2 → 0.155.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-8NW3YQvI.js} +2 -2
- package/dist/{authoring-CcVhJ1lP.js.map → authoring-8NW3YQvI.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-BCzC-tnl.js} +3 -3
- package/dist/{graph-CIh2HDmH.js.map → graph-BCzC-tnl.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-CNqUQfuv.d.ts} +10 -6
- package/dist/{index-rxVSm9-z.d.ts → index-DPFUNEdU.d.ts} +2 -2
- package/dist/{index-lMADJLfq.d.ts → index-DU6lU9GO.d.ts} +4 -4
- 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-BDoJh3Me.js} +5 -5
- package/dist/{knowledge-CaY53BW2.js.map → knowledge-BDoJh3Me.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-Dw43kB_-.js → loop-runner-bin-DyoELXnJ.js} +3 -3
- package/dist/{loop-runner-bin-Dw43kB_-.js.map → loop-runner-bin-DyoELXnJ.js.map} +1 -1
- package/dist/{loop-runner-bin-BwPqxKhR.d.ts → loop-runner-bin-mX79dLj2.d.ts} +3 -3
- 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 +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-C4XKuK4t.js → openai-tools-DUOEbKMV.js} +2 -2
- package/dist/{openai-tools-C4XKuK4t.js.map → openai-tools-DUOEbKMV.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-DW9t84HW.js} +24 -12
- package/dist/runtime-DW9t84HW.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-gZ3xYJs3.js} +21 -58
- package/dist/supervise-gZ3xYJs3.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,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as runtimeOwnedScopeOwnerRuntime, S as runtimeOwnedPendingExecutorMaterialization, b as runtimeOwnedExecutorMaterialization, d as providerAttemptEvidence, f as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedDriveHarnessProviderEvidence, x as runtimeOwnedExecutorProviderEvidence, y as runtimeOwnedExecutorExecutionBinding } from "./materialization-Ct3I4wu3.js";
|
|
2
2
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError$1 } from "./errors-CDZ8XsVj.js";
|
|
3
|
-
import {
|
|
4
|
-
import { b as workerTraceAnalysisStore, i as InMemorySpawnJournal, n as FileSpawnJournal, r as InMemoryResultBlobStore, t as FileResultBlobStore, x as contentAddress, y as parseWorkerToolTraceArtifact } from "./spawn-journal-
|
|
3
|
+
import { n as detachedSnapshot, t as detachedFrozen } from "./snapshot-CTAf4uuA.js";
|
|
4
|
+
import { b as workerTraceAnalysisStore, i as InMemorySpawnJournal, n as FileSpawnJournal, r as InMemoryResultBlobStore, t as FileResultBlobStore, x as contentAddress, y as parseWorkerToolTraceArtifact } from "./spawn-journal-duo0EkOp.js";
|
|
5
5
|
import { _ as unmeteredSpend, r as chargedTokens, u as promptCacheTokenClasses } from "./util-D6ZEuBMi.js";
|
|
6
6
|
import { i as writeAllBytes, n as parseCommittedJsonLines, r as prepareJsonlAppend, t as isNoEntError } from "./jsonl-file-CDfsCI5s.js";
|
|
7
7
|
import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-Sw4ywhtL.js";
|
|
8
|
-
import { B as createExecutorRegistry, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, F as bridgeRuntimeAttachmentsKey, I as bridgeStopSignalKey, L as captureReusableExecutorConfig, Lt as generateSpanId, M as bindReusableExecutorExecutionId, N as bridgeAdmissionRead, O as teardownExecutor, P as bridgeModelRouteRefusal, Pt as createOtelExporter, St as runBrainLoop, U as WORKER_TRACE_PROPAGATION, V as snapshotExecutorConfig, Vt as toOtelAttributes, _n as unsupportedProfileDimensions, a as pickBestDelivered, an as assertProfileMaterialization, c as driverChild, cn as fullProfileMaterialization, d as deriveNodeExecutionIdentity, dn as promptModelProfileMaterialization, dt as isLiveNodeStatus, f as meterRuntimeOwnedAccounting, ft as isTerminalNodeStatus, h as scopeOwnerExecutorNodeContext, hn as renderUnsupported, j as spendFromUsageEvents, jt as buildLoopSpanNodes, k as assertValidBudget, l as withDriverExecutor, ln as profileMaterializationAxes$1, m as recordScopeOwnerMaterialization, n as createSupervisor, nt as createInbox, o as runFinalizer, on as controlProfileMaterialization, p as meterRuntimeOwnedProviderAttempt, r as bestDelivered, s as runTree, sn as defineProfileMaterializationContract, st as createPeerMailbox, t as createRootHandle, un as promptControlProfileMaterialization, w as freeSlots, xt as routerBrain, yn as worktreeCliProfileMaterialization, z as createExecutor } from "./supervisor-
|
|
8
|
+
import { B as createExecutorRegistry, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, F as bridgeRuntimeAttachmentsKey, I as bridgeStopSignalKey, L as captureReusableExecutorConfig, Lt as generateSpanId, M as bindReusableExecutorExecutionId, N as bridgeAdmissionRead, O as teardownExecutor, P as bridgeModelRouteRefusal, Pt as createOtelExporter, St as runBrainLoop, U as WORKER_TRACE_PROPAGATION, V as snapshotExecutorConfig, Vt as toOtelAttributes, _n as unsupportedProfileDimensions, a as pickBestDelivered, an as assertProfileMaterialization, c as driverChild, cn as fullProfileMaterialization, d as deriveNodeExecutionIdentity, dn as promptModelProfileMaterialization, dt as isLiveNodeStatus, f as meterRuntimeOwnedAccounting, ft as isTerminalNodeStatus, h as scopeOwnerExecutorNodeContext, hn as renderUnsupported, j as spendFromUsageEvents, jt as buildLoopSpanNodes, k as assertValidBudget, l as withDriverExecutor, ln as profileMaterializationAxes$1, m as recordScopeOwnerMaterialization, n as createSupervisor, nt as createInbox, o as runFinalizer, on as controlProfileMaterialization, p as meterRuntimeOwnedProviderAttempt, r as bestDelivered, s as runTree, sn as defineProfileMaterializationContract, st as createPeerMailbox, t as createRootHandle, un as promptControlProfileMaterialization, w as freeSlots, xt as routerBrain, yn as worktreeCliProfileMaterialization, z as createExecutor } from "./supervisor-BmXD0WCJ.js";
|
|
9
9
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
10
10
|
import { C as writeWorkerCancellation, S as writeRunCancellation, a as readRunCancelRequest, c as readWorkerCancellation, o as readRunCancellation, s as readWorkerCancelRequests } from "./run-layout-C2jgwsCq.js";
|
|
11
11
|
import { t as createStdioToolServer } from "./tool-server-DEmLr9YY.js";
|
|
@@ -380,7 +380,7 @@ let spawnProfileArgCache;
|
|
|
380
380
|
* keeps the conversion total: the canonical schema contains transforms with no JSON Schema form,
|
|
381
381
|
* and zod's default is to throw on them, which would leave the tool with no published shape. */
|
|
382
382
|
function spawnProfileArg() {
|
|
383
|
-
if (!spawnProfileArgCache) spawnProfileArgCache =
|
|
383
|
+
if (!spawnProfileArgCache) spawnProfileArgCache = detachedFrozen(deriveSpawnProfileArg(agentProfileSchema.toJSONSchema({
|
|
384
384
|
io: "input",
|
|
385
385
|
target: "draft-07",
|
|
386
386
|
unrepresentable: "any"
|
|
@@ -432,7 +432,7 @@ function createCoordinationTools(opts) {
|
|
|
432
432
|
trace,
|
|
433
433
|
...resumed ? { resumed: true } : {}
|
|
434
434
|
};
|
|
435
|
-
return
|
|
435
|
+
return detachedFrozen(settled.kind === "done" ? {
|
|
436
436
|
...common,
|
|
437
437
|
status: "done",
|
|
438
438
|
spent: settled.spent,
|
|
@@ -457,7 +457,7 @@ function createCoordinationTools(opts) {
|
|
|
457
457
|
const cb = opts.onEvent;
|
|
458
458
|
bus.subscribe((rec) => cb(rec.event, rec));
|
|
459
459
|
}
|
|
460
|
-
const resumeEvents = opts.replaySettlements ? resumedWorkers.map((worker) =>
|
|
460
|
+
const resumeEvents = opts.replaySettlements ? resumedWorkers.map((worker) => detachedFrozen({
|
|
461
461
|
type: "settled",
|
|
462
462
|
worker
|
|
463
463
|
})) : [];
|
|
@@ -528,7 +528,7 @@ function createCoordinationTools(opts) {
|
|
|
528
528
|
let analystRunOrdinal = 0;
|
|
529
529
|
/** The `finding` event an analyst-agent settlement becomes: its settle OUTPUT is the findings
|
|
530
530
|
* (a failed run publishes the failure as findings — degraded beats vanished). */
|
|
531
|
-
const analystRunFinding = (run, settled) =>
|
|
531
|
+
const analystRunFinding = (run, settled) => detachedFrozen({
|
|
532
532
|
type: "finding",
|
|
533
533
|
finding: canonicalFindingEvent({
|
|
534
534
|
fromWorker: run.sourceWorker,
|
|
@@ -690,7 +690,7 @@ function createCoordinationTools(opts) {
|
|
|
690
690
|
if (targetId === void 0) {
|
|
691
691
|
await bus.publish({
|
|
692
692
|
type: "steer",
|
|
693
|
-
down:
|
|
693
|
+
down: detachedFrozen({
|
|
694
694
|
receiptId: randomUUID(),
|
|
695
695
|
toWorker: destination,
|
|
696
696
|
instruction: text,
|
|
@@ -708,7 +708,7 @@ function createCoordinationTools(opts) {
|
|
|
708
708
|
await recordInstruction(instruction);
|
|
709
709
|
} catch (cause) {
|
|
710
710
|
try {
|
|
711
|
-
await sendDown("steer",
|
|
711
|
+
await sendDown("steer", detachedFrozen({
|
|
712
712
|
receiptId: randomUUID(),
|
|
713
713
|
toWorker: targetId,
|
|
714
714
|
instruction: text,
|
|
@@ -784,7 +784,7 @@ function createCoordinationTools(opts) {
|
|
|
784
784
|
} : {
|
|
785
785
|
settled,
|
|
786
786
|
worker,
|
|
787
|
-
event:
|
|
787
|
+
event: detachedFrozen({
|
|
788
788
|
type: "settled",
|
|
789
789
|
worker
|
|
790
790
|
}),
|
|
@@ -810,7 +810,7 @@ function createCoordinationTools(opts) {
|
|
|
810
810
|
} : {
|
|
811
811
|
settled,
|
|
812
812
|
worker,
|
|
813
|
-
event:
|
|
813
|
+
event: detachedFrozen({
|
|
814
814
|
type: "settled",
|
|
815
815
|
worker
|
|
816
816
|
}),
|
|
@@ -840,7 +840,7 @@ function createCoordinationTools(opts) {
|
|
|
840
840
|
let authorizedInstruction = instruction;
|
|
841
841
|
if (opts.authorizeDownMessage) {
|
|
842
842
|
if (workerIdentity === void 0) throw new Error(`coordination tools: cannot authorize ${kind} for worker ${JSON.stringify(workerId)} without durable identity`);
|
|
843
|
-
const decision =
|
|
843
|
+
const decision = detachedFrozen(opts.authorizeDownMessage(detachedFrozen({
|
|
844
844
|
kind,
|
|
845
845
|
workerId,
|
|
846
846
|
workerIdentity,
|
|
@@ -851,7 +851,7 @@ function createCoordinationTools(opts) {
|
|
|
851
851
|
if (typeof decision !== "object" || decision === null || Array.isArray(decision) || typeof decision.instruction !== "string" || decision.instruction.length === 0) throw new Error("coordination tools: authorizeDownMessage must return an instruction");
|
|
852
852
|
authorizedInstruction = decision.instruction;
|
|
853
853
|
}
|
|
854
|
-
return
|
|
854
|
+
return detachedFrozen({
|
|
855
855
|
receiptId: randomUUID(),
|
|
856
856
|
kind,
|
|
857
857
|
toWorker: workerId,
|
|
@@ -873,7 +873,7 @@ function createCoordinationTools(opts) {
|
|
|
873
873
|
/** Commit delivery intent after the authorization receipt and before `Scope.send`. An attempt with
|
|
874
874
|
* no matching outcome after a crash is explicitly unknown and must never be replayed. */
|
|
875
875
|
const recordDeliveryAttempt = async (instruction) => {
|
|
876
|
-
const attempt =
|
|
876
|
+
const attempt = detachedFrozen({
|
|
877
877
|
receiptId: instruction.receiptId,
|
|
878
878
|
kind: instruction.kind,
|
|
879
879
|
toWorker: instruction.toWorker,
|
|
@@ -907,7 +907,7 @@ function createCoordinationTools(opts) {
|
|
|
907
907
|
outcome = "runtime-error";
|
|
908
908
|
error = cause instanceof Error ? cause.message : String(cause);
|
|
909
909
|
}
|
|
910
|
-
const down =
|
|
910
|
+
const down = detachedFrozen({
|
|
911
911
|
receiptId: instruction.receiptId,
|
|
912
912
|
toWorker: instruction.toWorker,
|
|
913
913
|
instruction: instruction.instruction,
|
|
@@ -1207,7 +1207,7 @@ function createCoordinationTools(opts) {
|
|
|
1207
1207
|
message: issue.message
|
|
1208
1208
|
}))
|
|
1209
1209
|
});
|
|
1210
|
-
const profile =
|
|
1210
|
+
const profile = detachedFrozen(parsedProfile.data);
|
|
1211
1211
|
const continuity = resolveContinuity(parseContinuity(a.continuity), profile.name, key);
|
|
1212
1212
|
if ("error" in continuity) return Promise.resolve({
|
|
1213
1213
|
error: continuity.error,
|
|
@@ -1215,7 +1215,7 @@ function createCoordinationTools(opts) {
|
|
|
1215
1215
|
live: liveWorkerCount(),
|
|
1216
1216
|
freeSlots: freeWorkerSlots()
|
|
1217
1217
|
});
|
|
1218
|
-
const task =
|
|
1218
|
+
const task = detachedFrozen(a.task);
|
|
1219
1219
|
const label = typeof a.label === "string" ? a.label : "worker";
|
|
1220
1220
|
if (opts.preflightSpawn) {
|
|
1221
1221
|
const refusal = await opts.preflightSpawn(profile, {
|
|
@@ -1699,9 +1699,6 @@ function nextUnkeyedAssignmentOrdinal(scope) {
|
|
|
1699
1699
|
if (!Number.isSafeInteger(next)) throw new Error("coordination: durable assignment ordinal space is exhausted");
|
|
1700
1700
|
return next;
|
|
1701
1701
|
}
|
|
1702
|
-
function deepFreezeDetached(value) {
|
|
1703
|
-
return deepFreeze(structuredClone(value));
|
|
1704
|
-
}
|
|
1705
1702
|
/** Stringify a findings payload for a routed delivery; never throws (a cyclic payload degrades to
|
|
1706
1703
|
* its String form rather than killing the settle path). */
|
|
1707
1704
|
function safeJsonText(value) {
|
|
@@ -1712,12 +1709,6 @@ function safeJsonText(value) {
|
|
|
1712
1709
|
return String(value);
|
|
1713
1710
|
}
|
|
1714
1711
|
}
|
|
1715
|
-
function deepFreeze(value, seen = /* @__PURE__ */ new Set()) {
|
|
1716
|
-
if (value === null || typeof value !== "object" || seen.has(value)) return value;
|
|
1717
|
-
seen.add(value);
|
|
1718
|
-
for (const child of Object.values(value)) deepFreeze(child, seen);
|
|
1719
|
-
return Object.freeze(value);
|
|
1720
|
-
}
|
|
1721
1712
|
//#endregion
|
|
1722
1713
|
//#region src/runtime/supervise/completion-gate.ts
|
|
1723
1714
|
/**
|
|
@@ -2805,20 +2796,6 @@ function deadlinePassed(scope, now) {
|
|
|
2805
2796
|
const b = scope.budget;
|
|
2806
2797
|
return b.deadlineMs > 0 && now() >= b.deadlineMs;
|
|
2807
2798
|
}
|
|
2808
|
-
function providerAttemptEvidence$1(model) {
|
|
2809
|
-
const attempts = Object.freeze([Object.freeze({ observations: Object.freeze(model === void 0 ? [] : [model]) })]);
|
|
2810
|
-
const models = Object.freeze(model === void 0 ? [] : [model]);
|
|
2811
|
-
return Object.freeze(model === void 0 ? {
|
|
2812
|
-
status: "unknown",
|
|
2813
|
-
attempts,
|
|
2814
|
-
models,
|
|
2815
|
-
reason: "provider-model-missing"
|
|
2816
|
-
} : {
|
|
2817
|
-
status: "known",
|
|
2818
|
-
attempts,
|
|
2819
|
-
models
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2822
2799
|
/** The USD-denominated members of {@link PromptCacheUsage} — the schema, not a guess. Every
|
|
2823
2800
|
* other known member (`readTokens`, `writeTokens`, `missTokens`) is a token COUNT. */
|
|
2824
2801
|
const PROMPT_CACHE_USD_FIELDS = /* @__PURE__ */ new Set(["readSavingsUsd"]);
|
|
@@ -3214,7 +3191,7 @@ function driverAgent(opts) {
|
|
|
3214
3191
|
res = await opts.brain(messages, tools, callContext);
|
|
3215
3192
|
} catch (error) {
|
|
3216
3193
|
opts.onProviderModel?.(void 0);
|
|
3217
|
-
await meterRuntimeOwnedProviderAttempt(scope, unmeteredSpend(0), providerAttemptEvidence
|
|
3194
|
+
await meterRuntimeOwnedProviderAttempt(scope, unmeteredSpend(0), providerAttemptEvidence(void 0), {
|
|
3218
3195
|
driver: opts.name,
|
|
3219
3196
|
inferenceFailed: true,
|
|
3220
3197
|
call,
|
|
@@ -3245,7 +3222,7 @@ function driverAgent(opts) {
|
|
|
3245
3222
|
usd: trustedCost ? res.costUsd ?? 0 : 0,
|
|
3246
3223
|
...trustedCost && res.costUsd !== void 0 ? {} : { usdKnown: false },
|
|
3247
3224
|
ms: 0
|
|
3248
|
-
}, providerAttemptEvidence
|
|
3225
|
+
}, providerAttemptEvidence(res.model), {
|
|
3249
3226
|
driver: opts.name,
|
|
3250
3227
|
call,
|
|
3251
3228
|
callId: callContext.callId,
|
|
@@ -6604,20 +6581,6 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
|
|
|
6604
6581
|
function isAsyncIterable(value) {
|
|
6605
6582
|
return value !== null && typeof value === "object" && Symbol.asyncIterator in value && typeof value[Symbol.asyncIterator] === "function";
|
|
6606
6583
|
}
|
|
6607
|
-
function providerAttemptEvidence(model) {
|
|
6608
|
-
const attempts = Object.freeze([Object.freeze({ observations: Object.freeze(model === void 0 ? [] : [model]) })]);
|
|
6609
|
-
const models = Object.freeze(model === void 0 ? [] : [model]);
|
|
6610
|
-
return Object.freeze(model === void 0 ? {
|
|
6611
|
-
status: "unknown",
|
|
6612
|
-
attempts,
|
|
6613
|
-
models,
|
|
6614
|
-
reason: "provider-model-missing"
|
|
6615
|
-
} : {
|
|
6616
|
-
status: "known",
|
|
6617
|
-
attempts,
|
|
6618
|
-
models
|
|
6619
|
-
});
|
|
6620
|
-
}
|
|
6621
6584
|
/** Resolve one option that may be given as a value OR as a name into `opts.registry`. Both failure
|
|
6622
6585
|
* modes name the option, the requested name, and the table it was looked up in — a typo must not
|
|
6623
6586
|
* degrade into a silently unconfigured run (which for `deliverable` means "no run can ever
|
|
@@ -7209,4 +7172,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
7209
7172
|
//#endregion
|
|
7210
7173
|
export { DELEGATION_TRACE_MAX_BYTES as $, DELEGATION_HISTORY_INPUT_SCHEMA as A, mapExecutorResult as At, DELEGATE_FEEDBACK_INPUT_SCHEMA as B, createMcpServer as C, plateauLength as Ct, createDelegationStatusHandler as D, FileCoordinationLog as Dt, DELEGATION_STATUS_TOOL_NAME as E, createInMemoryRunContext as Et, DELEGATE_UI_AUDIT_INPUT_SCHEMA as F, createEventBus as Ft, DELEGATE_INPUT_SCHEMA as G, createDelegateFeedbackHandler as H, DELEGATE_UI_AUDIT_TOOL_NAME as I, defaultToolDetectors as It, validateDelegateArgs as J, DELEGATE_TOOL_NAME as K, createDelegateUiAuditHandler as L, watchTrace as Lt, createDelegationHistoryHandler as M, canonicalFindingEvent as Mt, validateDelegationHistoryArgs as N, createCoordinationTools as Nt, validateDelegationStatusArgs as O, createSupervisorSpanRecorder as Ot, DELEGATE_UI_AUDIT_DESCRIPTION as P, normalizeAnalyzeOnSettle as Pt, hashIdempotencyInput as Q, validateDelegateUiAuditArgs as R, createInProcessTransport as S, bestSoFar as St, DELEGATION_STATUS_INPUT_SCHEMA as T, createFileRunContext as Tt, validateDelegateFeedbackArgs as U, DELEGATE_FEEDBACK_TOOL_NAME as V, DELEGATE_DESCRIPTION as W, delegate as X, defaultDelegateBudget as Y, DelegationTaskQueue as Z, promptHandle as _, noProgressFor as _t, assertCoordinationBinding as a, DelegationPersistenceError as at, classifyDriverFailure as b, anytimeReport as bt, supervisorAgentWithTestBrain as c, InMemoryDelegationStore as ct, delegatesWorkerBriefPrompt as d, driverAgent as dt, DELEGATION_TRACE_MAX_SPANS as et, dumbContinuationFailPrompt as f, finalizeBestDelivered as ft, naiveContinuationPrompt as g, createProgressTracker as gt, kernelPromptRegistry as h, anyOf as ht, workerFromBackend as i, createDelegationTraceCollector as it, DELEGATION_HISTORY_TOOL_NAME as j, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as jt, DELEGATION_HISTORY_DESCRIPTION as k, gateOnDeliverable as kt, analyzesFindingsReportPrompt as l, InMemoryFeedbackStore as lt, formatPromptHandle as m, allWorkersStalled as mt, supervise as n, capDelegationTrace as nt, resolveSupervisorProfile as o, DelegationStateCorruptError as ot, dumbContinuationPassPrompt as p, allOf as pt, createDelegateHandler as q, superviseWithTestBrain as r, composeLoopTraceEmitters as rt, supervisorAgent as s, FileDelegationStore as st, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, buildDelegationTraceSpans as tt, createPromptRegistry as u, eventToSnapshot as ut, supervisorPolicyPrompt as v, plateau as vt, DELEGATION_STATUS_DESCRIPTION as w, renderAnytimeTable as wt, serveCoordinationMcp as x, areaUnderCurve as xt, DriverAttemptsExhaustedError as y, sampleFromSettled as yt, DELEGATE_FEEDBACK_DESCRIPTION as z };
|
|
7211
7174
|
|
|
7212
|
-
//# sourceMappingURL=supervise-
|
|
7175
|
+
//# sourceMappingURL=supervise-gZ3xYJs3.js.map
|