@tangle-network/agent-runtime 0.273.5 → 0.277.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-Cx2dKA_l.js → activation-CbxhVtVV.js} +2 -2
- package/dist/{activation-Cx2dKA_l.js.map → activation-CbxhVtVV.js.map} +1 -1
- package/dist/{activation-IfDlhR3J.d.ts → activation-puw9_ahP.d.ts} +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-CkcW4dxU.js → coordination-driver-ZfUf-H4H.js} +95 -28
- package/dist/coordination-driver-ZfUf-H4H.js.map +1 -0
- package/dist/{delegate-Dvb1-mE-.js → delegate-DXOyzIq0.js} +2 -2
- package/dist/{delegate-Dvb1-mE-.js.map → delegate-DXOyzIq0.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +2 -2
- package/dist/{graph-C69Uxtzt.js → graph-sGWwXC6E.js} +4 -4
- package/dist/{graph-C69Uxtzt.js.map → graph-sGWwXC6E.js.map} +1 -1
- package/dist/{improvement-cycle-CO2HRCQq.js → improvement-cycle-DQyN0__A.js} +3 -3
- package/dist/{improvement-cycle-CO2HRCQq.js.map → improvement-cycle-DQyN0__A.js.map} +1 -1
- package/dist/{index-D2ipSqkP.d.ts → index-CmAFFnsd.d.ts} +46 -14
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +4 -4
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-B9MIq9O7.js → loop-runner-bin-BTnEDWj3.js} +3 -3
- package/dist/{loop-runner-bin-B9MIq9O7.js.map → loop-runner-bin-BTnEDWj3.js.map} +1 -1
- package/dist/{loop-runner-bin-ThlwVkvo.d.ts → loop-runner-bin-DGUASE9O.d.ts} +3 -3
- 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 +5 -5
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-Bb0mAr5z.d.ts → openai-tools-Gc8p4PBq.d.ts} +2 -2
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-BKAvsDtP.js → provision-supervisor-BgjtrTlv.js} +3 -3
- package/dist/{provision-supervisor-BKAvsDtP.js.map → provision-supervisor-BgjtrTlv.js.map} +1 -1
- package/dist/{runtime-CHxXrUeZ.js → runtime-DoFvrisL.js} +73 -26
- package/dist/runtime-DoFvrisL.js.map +1 -0
- package/dist/{server-2OeFrEVG.js → server-D2d83_iS.js} +3 -3
- package/dist/{server-2OeFrEVG.js.map → server-D2d83_iS.js.map} +1 -1
- package/dist/{stream-agent-turn-ewm3BZAp.d.ts → stream-agent-turn-BqU5Sfbw.d.ts} +2 -2
- package/dist/{structural-rollout-DCUprNpH.js → structural-rollout-VR-j5t9d.js} +2 -2
- package/dist/{structural-rollout-DCUprNpH.js.map → structural-rollout-VR-j5t9d.js.map} +1 -1
- package/dist/{substrate-VKjmrksz.d.ts → substrate-CfE3oUB9.d.ts} +2 -2
- package/dist/{supervise-Dej5aSDa.js → supervise-BoCOUAmr.js} +149 -5
- package/dist/supervise-BoCOUAmr.js.map +1 -0
- package/dist/{supervisor-DdKPGluv.js → supervisor-CjNbOcLO.js} +49 -14
- package/dist/supervisor-CjNbOcLO.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +60 -60
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-DMRc3jru.d.ts → types-CI7ve2sA.d.ts} +25 -10
- package/package.json +5 -5
- package/dist/coordination-driver-CkcW4dxU.js.map +0 -1
- package/dist/runtime-CHxXrUeZ.js.map +0 -1
- package/dist/supervise-Dej5aSDa.js.map +0 -1
- package/dist/supervisor-DdKPGluv.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ca as OutputAdapter, Oa as Validator, ea as AgentRunSpec, na as Driver } from "./types-
|
|
1
|
+
import { Ca as OutputAdapter, Oa as Validator, ea as AgentRunSpec, na as Driver } from "./types-CI7ve2sA.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/profiles/coder.d.ts
|
|
4
4
|
/**
|
|
@@ -281,4 +281,4 @@ interface UiFinding {
|
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
283
|
export { CoderTask as _, UiFindingSeverity as a, KnowledgeUpdate as c, ResearchSource as d, ResearchTask as f, researcherProfile as g, multiHarnessResearcherFanout as h, UiFindingScreenshot as i, MultiHarnessResearcherFanoutOptions as l, createResearcherValidator as m, UI_LENSES as n, UiLens as o, ResearcherProfileOptions as p, UiFinding as r, KnowledgeItem as s, UI_FINDING_SEVERITIES as t, ResearchOutput as u, coderTaskToPrompt as v };
|
|
284
|
-
//# sourceMappingURL=substrate-
|
|
284
|
+
//# sourceMappingURL=substrate-CfE3oUB9.d.ts.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { $ as bindScopeRetainedOwnerProvider, $i as detachedSnapshot, A as driverExecutorFactory, Aa as resourceTelemetry, Ai as readCommittedJsonLines, At as snapshotExecutorConfig, B as recordScopeOwnerMaterialization, Bi as providerAttemptEvidence, C as createContinuationKeeper, Da as withTimeout, Di as isNoEntError, Dn as executorFailure, Dr as persistHarnessTranscript, Ea as unmeteredSpend, Ei as worktreeCliProfileMaterialization, F as beginScopeOwnerAttempt, Fa as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Fn as bridgeStopSignalKey, Gi as runtimeOwnedExecutorProviderEvidence, H as restoreScopeOwnerAcceptedExecution, Hi as runtimeOwnedDriveHarnessProviderEvidence, Hr as generateSpanId, Ii as inheritRuntimeOwnedExecutorAttestation, Ki as runtimeOwnedPendingExecutorMaterialization, Kn as routerBrain, Kr as toOtelAttributes, L as deriveNodeExecutionIdentity, La as teardownExecutor, Ni as attestRuntimeOwnedScopeOwner, Oa as zeroSpend, On as bridgeAdmissionRefusal, Or as readHarnessTranscript, Ot as createExecutor, P as assertRecursiveReservationPolicy, Pn as bridgeRuntimeAttachmentsKey, Pt as createRouterTranscript, Q as bindScopeRetainedOwnerEnvironmentId, R as meterRuntimeOwnedAccounting, Ra as teardownSurfaces, Sa as sleep, Si as renderUnsupported, Tt as captureReusableExecutorConfig, U as scopeOwnerExecutorNodeContext, Ui as runtimeOwnedExecutorExecutionBinding, V as recordScopeOwnerPause, Vi as recordRuntimeOwnedDriveHarnessProviderEvidence, Wi as runtimeOwnedExecutorMaterialization, _ as CheckUnavailableError, _i as promptControlProfileMaterialization, at as scopeRetainedOwnerResourceReader, b as bestComposite, br as linkAbort, c as runTree, cr as registerRetainedExecutorPreparation, et as consumeScopeRetainedOwnerResult, f as runDriverWithRetry, fi as assertProfileMaterialization, gi as profileMaterializationAxes$1, gn as createInbox, h as CONTINUATIONS_DIR, hi as fullProfileMaterialization, i as bestDelivered, in as newUsageTotals, it as scopeRetainedOwnerPriorSpend, j as isDriverSpec, ja as withBudgetResources, k as driverChild, ka as addResourceSpend, ki as prepareJsonlAppend, kn as bridgeModelRouteRefusal, kr as contentAddress, lr as retainedExecutorSeamKey, ma as addSpend, mi as defineProfileMaterializationContract, n as createRootHandle, nt as reconcileScopeRetainedOwnerEnvironment, on as spendFromUsageTotals, ot as scopeRetainedOwnerResult, p as summarizeDriverAttempts, pi as controlProfileMaterialization, qi as runtimeOwnedScopeOwnerRuntime, r as createSupervisor, rn as meterUsageEvent, rt as scopeRetainedOwnerContext, s as runFinalizer, sn as WORKER_TRACE_PROPAGATION, tn as assertValidBudget, tr as resolveAgentEnvironmentProvider, tt as prepareScopeRetainedOwnerTask, u as HarnessTurnFailedError, ur as errMessage, v as admitContinuationPolicy, vi as promptModelProfileMaterialization, vr as RunCancellationReason, wi as unsupportedProfileDimensions, wt as bindReusableExecutorExecutionId, x as checkVerdictOf, xr as runAbortable, z as meterRuntimeOwnedProviderAttempt, zr as createOtelExporter } from "./supervisor-
|
|
1
|
+
import { $ as bindScopeRetainedOwnerProvider, $i as detachedSnapshot, A as driverExecutorFactory, Aa as resourceTelemetry, Ai as readCommittedJsonLines, At as snapshotExecutorConfig, B as recordScopeOwnerMaterialization, Bi as providerAttemptEvidence, C as createContinuationKeeper, Da as withTimeout, Di as isNoEntError, Dn as executorFailure, Dr as persistHarnessTranscript, Ea as unmeteredSpend, Ei as worktreeCliProfileMaterialization, F as beginScopeOwnerAttempt, Fa as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Fn as bridgeStopSignalKey, Gi as runtimeOwnedExecutorProviderEvidence, H as restoreScopeOwnerAcceptedExecution, Hi as runtimeOwnedDriveHarnessProviderEvidence, Hr as generateSpanId, Ii as inheritRuntimeOwnedExecutorAttestation, Ki as runtimeOwnedPendingExecutorMaterialization, Kn as routerBrain, Kr as toOtelAttributes, L as deriveNodeExecutionIdentity, La as teardownExecutor, Ni as attestRuntimeOwnedScopeOwner, Oa as zeroSpend, On as bridgeAdmissionRefusal, Or as readHarnessTranscript, Ot as createExecutor, P as assertRecursiveReservationPolicy, Pn as bridgeRuntimeAttachmentsKey, Pt as createRouterTranscript, Q as bindScopeRetainedOwnerEnvironmentId, R as meterRuntimeOwnedAccounting, Ra as teardownSurfaces, Sa as sleep, Si as renderUnsupported, Tt as captureReusableExecutorConfig, U as scopeOwnerExecutorNodeContext, Ui as runtimeOwnedExecutorExecutionBinding, V as recordScopeOwnerPause, Vi as recordRuntimeOwnedDriveHarnessProviderEvidence, Wi as runtimeOwnedExecutorMaterialization, Zt as parseWorkerToolTraceArtifact, _ as CheckUnavailableError, _i as promptControlProfileMaterialization, at as scopeRetainedOwnerResourceReader, b as bestComposite, br as linkAbort, c as runTree, cr as registerRetainedExecutorPreparation, et as consumeScopeRetainedOwnerResult, f as runDriverWithRetry, fi as assertProfileMaterialization, gi as profileMaterializationAxes$1, gn as createInbox, h as CONTINUATIONS_DIR, hi as fullProfileMaterialization, i as bestDelivered, in as newUsageTotals, it as scopeRetainedOwnerPriorSpend, j as isDriverSpec, ja as withBudgetResources, k as driverChild, ka as addResourceSpend, ki as prepareJsonlAppend, kn as bridgeModelRouteRefusal, kr as contentAddress, lr as retainedExecutorSeamKey, ma as addSpend, mi as defineProfileMaterializationContract, n as createRootHandle, nt as reconcileScopeRetainedOwnerEnvironment, on as spendFromUsageTotals, ot as scopeRetainedOwnerResult, p as summarizeDriverAttempts, pi as controlProfileMaterialization, qi as runtimeOwnedScopeOwnerRuntime, r as createSupervisor, rn as meterUsageEvent, rt as scopeRetainedOwnerContext, s as runFinalizer, sn as WORKER_TRACE_PROPAGATION, tn as assertValidBudget, tr as resolveAgentEnvironmentProvider, tt as prepareScopeRetainedOwnerTask, u as HarnessTurnFailedError, ur as errMessage, v as admitContinuationPolicy, vi as promptModelProfileMaterialization, vr as RunCancellationReason, wi as unsupportedProfileDimensions, wt as bindReusableExecutorExecutionId, x as checkVerdictOf, xr as runAbortable, z as meterRuntimeOwnedProviderAttempt, zr as createOtelExporter } from "./supervisor-CjNbOcLO.js";
|
|
2
2
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
|
|
3
3
|
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-BbSCSak0.js";
|
|
4
4
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
5
5
|
import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
|
|
6
|
-
import { C as applyRunCancellation, E as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, b as withRunContext, c as createProgressTracker, d as progressStop, j as createCoordinationToolsForManager, k as coordinationVerbNames, n as createSteerAcknowledger, r as driverAgent, t as createCancelAcknowledger, u as plateau, v as createFileRunContext, w as watchRunCancellation, y as createInMemoryRunContext } from "./coordination-driver-
|
|
6
|
+
import { C as applyRunCancellation, E as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, b as withRunContext, c as createProgressTracker, d as progressStop, j as createCoordinationToolsForManager, k as coordinationVerbNames, n as createSteerAcknowledger, r as driverAgent, t as createCancelAcknowledger, u as plateau, v as createFileRunContext, w as watchRunCancellation, y as createInMemoryRunContext } from "./coordination-driver-ZfUf-H4H.js";
|
|
7
7
|
import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
|
|
8
8
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-vwd4SwX_.js";
|
|
9
9
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
10
|
+
import { toolSpansToTraceAnalysisStore } from "@tangle-network/agent-eval";
|
|
10
11
|
import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
11
12
|
import { closeSync, constants, fsyncSync, openSync, writeSync } from "node:fs";
|
|
12
|
-
import { resolve } from "node:path";
|
|
13
|
+
import { dirname, resolve } from "node:path";
|
|
13
14
|
import { mkdir } from "node:fs/promises";
|
|
14
15
|
import { isMaterializerHarness } from "@tangle-network/agent-profile-materialize";
|
|
15
16
|
import { ATTR } from "@tangle-network/agent-trace-contract";
|
|
@@ -1516,6 +1517,139 @@ function errorMessage(error) {
|
|
|
1516
1517
|
return error instanceof Error ? error.message : String(error);
|
|
1517
1518
|
}
|
|
1518
1519
|
//#endregion
|
|
1520
|
+
//#region src/runtime/supervise/run-traces.ts
|
|
1521
|
+
/**
|
|
1522
|
+
* A manager's own run as one trace store: what the continuation's question panel reads.
|
|
1523
|
+
*
|
|
1524
|
+
* The panel asks about the director's own work and about its workers' (discovery
|
|
1525
|
+
* `docs/38-one-loop-and-continuation.md`, section 5), so it reads both: the director's root stream
|
|
1526
|
+
* (`root-stream.jsonl`) and each settled worker's structured tool trace. Each agent is one trace,
|
|
1527
|
+
* named by its node id, so a `{worker}` question and a `trace://<worker id>/<span id>` citation
|
|
1528
|
+
* name the same worker.
|
|
1529
|
+
*
|
|
1530
|
+
* The root stream is progress events, not spans. Each tool call becomes one span with its result,
|
|
1531
|
+
* and each run of the director's text, and of its reasoning, between two other events becomes one
|
|
1532
|
+
* span named for what it is (`assistant_text`, `assistant_reasoning`): the director's claims live in
|
|
1533
|
+
* its text, and a panel that saw only its tool calls could not check them. Span ids are the
|
|
1534
|
+
* record's `seq`, which is unique in the file and stable across reads.
|
|
1535
|
+
*/
|
|
1536
|
+
/** The span a run of the director's text becomes. */
|
|
1537
|
+
const ASSISTANT_TEXT_SPAN = "assistant_text";
|
|
1538
|
+
/** The span a run of the director's reasoning becomes. */
|
|
1539
|
+
const ASSISTANT_REASONING_SPAN = "assistant_reasoning";
|
|
1540
|
+
/** The director's root stream as tool spans in one trace named `traceId`. */
|
|
1541
|
+
function rootStreamToolSpans(records, traceId) {
|
|
1542
|
+
const spans = [];
|
|
1543
|
+
const open = /* @__PURE__ */ new Map();
|
|
1544
|
+
let prose;
|
|
1545
|
+
const at = (record) => {
|
|
1546
|
+
const ms = Date.parse(record.at);
|
|
1547
|
+
if (!Number.isFinite(ms)) throw new ValidationError(`root stream line ${record.seq} has no valid time`);
|
|
1548
|
+
return ms;
|
|
1549
|
+
};
|
|
1550
|
+
const base = (record, name) => ({
|
|
1551
|
+
kind: "tool",
|
|
1552
|
+
spanId: `s${record.seq}`,
|
|
1553
|
+
runId: traceId,
|
|
1554
|
+
name,
|
|
1555
|
+
toolName: name,
|
|
1556
|
+
startedAt: at(record),
|
|
1557
|
+
attributes: {
|
|
1558
|
+
attempt: record.attempt,
|
|
1559
|
+
seq: record.seq
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
for (const record of records) {
|
|
1563
|
+
if (!("event" in record)) {
|
|
1564
|
+
prose = void 0;
|
|
1565
|
+
continue;
|
|
1566
|
+
}
|
|
1567
|
+
const { event } = record;
|
|
1568
|
+
if (event.kind === "text_delta" || event.kind === "reasoning_delta") {
|
|
1569
|
+
if (prose !== void 0 && prose.kind === event.kind && prose.attempt === record.attempt) {
|
|
1570
|
+
prose.text += event.text;
|
|
1571
|
+
prose.span.result = prose.text;
|
|
1572
|
+
prose.span.endedAt = at(record);
|
|
1573
|
+
continue;
|
|
1574
|
+
}
|
|
1575
|
+
const span = {
|
|
1576
|
+
...base(record, event.kind === "text_delta" ? ASSISTANT_TEXT_SPAN : ASSISTANT_REASONING_SPAN),
|
|
1577
|
+
args: {},
|
|
1578
|
+
result: event.text,
|
|
1579
|
+
endedAt: at(record)
|
|
1580
|
+
};
|
|
1581
|
+
spans.push(span);
|
|
1582
|
+
prose = {
|
|
1583
|
+
span,
|
|
1584
|
+
text: event.text,
|
|
1585
|
+
kind: event.kind,
|
|
1586
|
+
attempt: record.attempt
|
|
1587
|
+
};
|
|
1588
|
+
continue;
|
|
1589
|
+
}
|
|
1590
|
+
prose = void 0;
|
|
1591
|
+
if (event.kind === "tool_call") {
|
|
1592
|
+
const span = {
|
|
1593
|
+
...base(record, event.toolName),
|
|
1594
|
+
args: event.args,
|
|
1595
|
+
...event.args === void 0 ? { argsCaptured: false } : {},
|
|
1596
|
+
endedAt: at(record)
|
|
1597
|
+
};
|
|
1598
|
+
if (event.toolCallId !== void 0) span.attributes = {
|
|
1599
|
+
...span.attributes,
|
|
1600
|
+
toolCallId: event.toolCallId
|
|
1601
|
+
};
|
|
1602
|
+
spans.push(span);
|
|
1603
|
+
open.set(`${record.attempt}\u0000${event.toolCallId ?? `name:${event.toolName}`}`, span);
|
|
1604
|
+
continue;
|
|
1605
|
+
}
|
|
1606
|
+
if (event.kind === "tool_result") {
|
|
1607
|
+
const key = `${record.attempt}\u0000${event.toolCallId ?? `name:${event.toolName}`}`;
|
|
1608
|
+
const call = open.get(key);
|
|
1609
|
+
if (call !== void 0) {
|
|
1610
|
+
open.delete(key);
|
|
1611
|
+
call.result = event.result;
|
|
1612
|
+
call.endedAt = at(record);
|
|
1613
|
+
continue;
|
|
1614
|
+
}
|
|
1615
|
+
spans.push({
|
|
1616
|
+
...base(record, event.toolName),
|
|
1617
|
+
args: void 0,
|
|
1618
|
+
argsCaptured: false,
|
|
1619
|
+
result: event.result,
|
|
1620
|
+
endedAt: at(record)
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
return spans;
|
|
1625
|
+
}
|
|
1626
|
+
/** One worker's persisted tool spans, re-keyed to the worker's node id. Unavailable: none. */
|
|
1627
|
+
async function workerSpans(worker, blobs) {
|
|
1628
|
+
if (worker.trace.status !== "available") return [];
|
|
1629
|
+
const raw = await blobs.get(worker.trace.traceRef);
|
|
1630
|
+
if (raw === void 0) throw new ValidationError(`worker ${worker.id}'s trace blob '${worker.trace.traceRef}' is missing; its settlement evidence is incomplete`);
|
|
1631
|
+
const { spans } = parseWorkerToolTraceArtifact(raw, worker.trace.traceRef);
|
|
1632
|
+
return spans.map((span) => ({
|
|
1633
|
+
...span,
|
|
1634
|
+
runId: worker.id,
|
|
1635
|
+
...span.runId === worker.id ? {} : { attributes: {
|
|
1636
|
+
...span.attributes,
|
|
1637
|
+
sourceRunId: span.runId
|
|
1638
|
+
} }
|
|
1639
|
+
}));
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* The store over a manager's run: its own root stream when it has one, and every settled worker's
|
|
1643
|
+
* tool trace. `undefined` when the run has recorded no span yet, which is not a store a panel can
|
|
1644
|
+
* read: agent-eval refuses an empty trace, because it cannot tell a tool-free run from a failed
|
|
1645
|
+
* capture.
|
|
1646
|
+
*/
|
|
1647
|
+
async function runTraceAnalysisStore(input) {
|
|
1648
|
+
const records = input.root === void 0 ? void 0 : await input.root.read();
|
|
1649
|
+
const spans = [...records === void 0 || input.root === void 0 ? [] : rootStreamToolSpans(records, input.root.id), ...(await Promise.all(input.workers.map((worker) => workerSpans(worker, input.blobs)))).flat()];
|
|
1650
|
+
return spans.length === 0 ? void 0 : toolSpansToTraceAnalysisStore(spans);
|
|
1651
|
+
}
|
|
1652
|
+
//#endregion
|
|
1519
1653
|
//#region src/runtime/supervise/worker-control-observer.ts
|
|
1520
1654
|
/** Observe durable worker controls while the native harness owns the manager's turn loop. */
|
|
1521
1655
|
function observeWorkerControls(options) {
|
|
@@ -1999,7 +2133,17 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
1999
2133
|
}));
|
|
2000
2134
|
},
|
|
2001
2135
|
...deps.continuationDir === void 0 ? {} : { dir: deps.continuationDir },
|
|
2002
|
-
|
|
2136
|
+
traces: () => {
|
|
2137
|
+
const rootStreamPath = deps.rootStreamPath;
|
|
2138
|
+
return runTraceAnalysisStore({
|
|
2139
|
+
...rootStreamPath === void 0 ? {} : { root: {
|
|
2140
|
+
id: scope.view.root,
|
|
2141
|
+
read: () => readRootStream(dirname(rootStreamPath))
|
|
2142
|
+
} },
|
|
2143
|
+
workers: mcp.settled(),
|
|
2144
|
+
blobs: deps.blobs
|
|
2145
|
+
});
|
|
2146
|
+
},
|
|
2003
2147
|
canReadMore: runtimeToolNames.includes("read_continuation")
|
|
2004
2148
|
});
|
|
2005
2149
|
let candidate;
|
|
@@ -4358,4 +4502,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
4358
4502
|
//#endregion
|
|
4359
4503
|
export { gateOnDeliverable as C, serveCoordinationMcp as S, readRootStream as _, superviseWithTestBrain as a, composeReentryTask as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, coordinationProfileToolPrefix as f, ROOT_STREAM_FILE as g, supervisorAgentWithTestBrain as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgent as m, profileGuidanceComposer as n, workerFromBackend as o, resolveSupervisorProfile as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, readRootStreamReceipt as v, mapExecutorResult as w, createSupervisorSpanRecorder as x, UNPROVEN_CONTINUITY as y };
|
|
4360
4504
|
|
|
4361
|
-
//# sourceMappingURL=supervise-
|
|
4505
|
+
//# sourceMappingURL=supervise-BoCOUAmr.js.map
|