@tangle-network/agent-runtime 0.110.0 → 0.112.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-CsuHCZVN.js → activation-Cdc_tRNR.js} +2 -2
- package/dist/{activation-CsuHCZVN.js.map → activation-Cdc_tRNR.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{environment-provider-CTEMEP9u.d.ts → environment-provider-Cl97VeCv.d.ts} +43 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{improvement-cycle-ryAyCLKN.js → improvement-cycle-BCjD-g_C.js} +3 -3
- package/dist/{improvement-cycle-ryAyCLKN.js.map → improvement-cycle-BCjD-g_C.js.map} +1 -1
- package/dist/{index-D_OdNLe0.d.ts → index-B0sAaAO_.d.ts} +164 -24
- package/dist/{index-C-Zn0VrN.d.ts → index-B6glsqBp.d.ts} +3 -3
- package/dist/{index-WODlt7iz.d.ts → index-C9vg2af7.d.ts} +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +1 -1
- package/dist/intelligence.js +2 -2
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +5 -5
- package/dist/{knowledge-DBNAteaC.js → knowledge-In_1LsHg.js} +3 -3
- package/dist/{knowledge-DBNAteaC.js.map → knowledge-In_1LsHg.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-BUm83y1g.d.ts → loop-runner-bin-CHnWCyiB.d.ts} +3 -3
- package/dist/{loop-runner-bin-zE7DyGop.js → loop-runner-bin-DF98VMqr.js} +3 -3
- package/dist/{loop-runner-bin-zE7DyGop.js.map → loop-runner-bin-DF98VMqr.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 +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-st-hERvA.js → openai-tools-g5FS2twc.js} +2 -2
- package/dist/{openai-tools-st-hERvA.js.map → openai-tools-g5FS2twc.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{runtime-DSkMJb_X.js → runtime-6sL2vhTQ.js} +31 -13
- package/dist/{runtime-DSkMJb_X.js.map → runtime-6sL2vhTQ.js.map} +1 -1
- package/dist/{structural-rollout-CgnNy7_4.js → structural-rollout-D5GbH3cy.js} +2 -2
- package/dist/{structural-rollout-CgnNy7_4.js.map → structural-rollout-D5GbH3cy.js.map} +1 -1
- package/dist/{supervise-CeZtA1wu.js → supervise-6jSTe0kO.js} +322 -30
- package/dist/supervise-6jSTe0kO.js.map +1 -0
- package/dist/{supervisor-ByCPHcp9.js → supervisor-B4hOPKJV.js} +48 -6
- package/dist/{supervisor-ByCPHcp9.js.map → supervisor-B4hOPKJV.js.map} +1 -1
- package/dist/testing.js +8 -8
- package/package.json +1 -1
- package/dist/supervise-CeZtA1wu.js.map +0 -1
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as SandboxClient, h as LoopSandboxPlacement } from "../types-DnNGJ5Gz.js";
|
|
2
|
-
import { $
|
|
2
|
+
import { $l as DelegationRunContext, $s as AnalystFindingEvent, Al as settleDetachedCoderTurn, Au as ResearchOutputShape, Bl as DriveTurnCapableBox, Cc as DELEGATE_TOOL_NAME, Cl as DelegateRunCtx, Cu as DelegationProgress, Dc as createDelegateHandler, Dl as UiAuditorDelegate, Du as DelegationStatusResult, Ec as DelegateResult, Ed as CoderOutput, El as SettleDetachedCoderTurnOptions, Eu as DelegationStatusArgs, Fl as createFleetWorkspaceExecutor, Fu as createPropagatingTraceEmitter, Gl as formatDetachedSessionRef, Hl as RunDetachedTurnOptions, Il as createSiblingSandboxExecutor, Iu as readTraceContextFromEnv, Jl as DelegationArgs, Kl as parseDetachedSessionRef, Ll as DetachedSessionRefParts, Lu as traceContextToEnv, Ml as FleetHandle, Mu as UiAuditLensFilter, Nl as FleetWorkspaceExecutorOptions, Nu as UiAuditorDelegationOutput, Oc as validateDelegateArgs, Ol as coderTaskFromArgs, Ou as FeedbackRating, Pl as SiblingSandboxExecutorOptions, Pu as TraceContext, Ql as DelegationResumeTick, Rl as DetachedTurn, Sc as DELEGATE_INPUT_SCHEMA, Sl as CoderReviewer, Su as DelegationProfile, Tc as DelegateHandlerOptions, Tl as DetachedWinnerSelection, Tu as DelegationStatus, Ul as createDetachedTurnResumeDriver, Vl as DriveTurnTick, Wl as detachedTurnEvents, Xl as DelegationResumeContext, Yl as DelegationRecord, Zl as DelegationResumeDriver, _c as McpServer, _l as FeedbackStore, _u as DelegationError, ac as DownMessageEvent, ad as DelegationTraceCollector, al as DiffResult, au as DelegateCodeArgs, bc as createMcpServer, bl as CoderDelegate, bu as DelegationHistoryEntry, cc as QuestionDecision, cd as capDelegationTrace, cl as WorktreeHandle, cu as DelegateFeedbackArgs, dc as QuestionPolicy, dd as DelegationPersistenceError, dl as removeWorktree, du as DelegateResearchConfig, ec as AnalystRegistry, eu as DelegationTaskQueue, fc as QuestionRecord, fd as DelegationStateCorruptError, fl as JsonRpcMessage, fu as DelegateResearchResult, gc as createCoordinationTools, gd as InMemoryDelegationStore, gl as FeedbackEvent, gu as DelegateUiAuditRoute, hc as WorkerWatchOptions, hd as FileDelegationStoreOptions, hl as McpTransport, hu as DelegateUiAuditResult, ic as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, id as DelegationTraceCaps, il as DiffOptions, iu as hashIdempotencyInput, jl as DelegationExecutor, ju as ResearchSource, kl as detachedSessionDelegate, ku as FeedbackRefersTo, lc as QuestionLevel, ld as composeLoopTraceEmitters, ll as captureWorktreeDiff, lu as DelegateFeedbackResult, mc as SettledWorker, md as FileDelegationStore, ml as McpToolDescriptor, mu as DelegateUiAuditConfig, nc as CoordinationTools, nd as DELEGATION_TRACE_MAX_BYTES, nu as SubmitInput, oc as MakeWorkerAgent, od as DelegationTraceSpan, ol as GitRunner, ou as DelegateCodeConfig, pc as QuestionUrgency, pd as DelegationStore, pl as JsonRpcResponse, pu as DelegateUiAuditArgs, ql as runDetachedTurn, rc as CoordinationToolsOptions, rd as DELEGATION_TRACE_MAX_SPANS, rl as CreateWorktreeOptions, ru as SubmitOutput, sc as Question, sd as buildDelegationTraceSpans, sl as RemoveWorktreeOptions, su as DelegateCodeResult, tc as CoordinationEvent, td as CappedDelegationTrace, tu as DelegationTaskQueueOptions, uc as QuestionOption, ud as createDelegationTraceCollector, ul as createWorktree, uu as DelegateResearchArgs, vc as McpServerOptions, vl as InMemoryFeedbackStore, vu as DelegationFeedbackSnapshot, wc as DelegateArgs, wl as DetachedSessionDelegateOptions, wu as DelegationResultPayload, xc as DELEGATE_DESCRIPTION, xl as CoderReview, xu as DelegationHistoryResult, yc as createInProcessTransport, yl as eventToSnapshot, yu as DelegationHistoryArgs, zl as DetachedTurnResumeDriverOptions } from "../index-B0sAaAO_.js";
|
|
3
3
|
import { o as UiLens } from "../substrate-BcnuSHXm.js";
|
|
4
4
|
import { a as LocalHarnessResult, c as runLocalHarness, i as LocalHarness, n as CodexExecutionPolicy, o as RunLocalHarnessOptions, r as CodexTokenUsage, s as parseCodexTokenUsage, t as CodexExecutionEvidence } from "../local-harness-Dh8PJ0ot.js";
|
|
5
5
|
import { a as KbGateResult, i as FactJudgeVerdict, n as FactCandidate, o as createKbGate, r as FactJudge, t as CreateKbGateOptions } from "../kb-gate-C8z2juK8.js";
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { u as ValidationError } from "../errors-DEAvWQPy.js";
|
|
2
2
|
import { c as sleep, d as throwIfAborted, r as deleteBoxSafe, u as throwAbort } from "../util-Cc9g9Y-o.js";
|
|
3
|
-
import { A as createWorktree, F as CodexExecutionDiagnosticError, N as parseCodexTokenUsage, O as runWorktreeHarness, P as runLocalHarness, j as removeWorktree, k as captureWorktreeDiff } from "../supervisor-
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
3
|
+
import { A as createWorktree, F as CodexExecutionDiagnosticError, N as parseCodexTokenUsage, O as runWorktreeHarness, P as runLocalHarness, j as removeWorktree, k as captureWorktreeDiff } from "../supervisor-B4hOPKJV.js";
|
|
4
|
+
import { A as runCoderChecks, lt as assertTraceDerivedFindings, ot as selectValidWinner } from "../runtime-6sL2vhTQ.js";
|
|
5
|
+
import { $ as InMemoryDelegationStore, A as DELEGATE_INPUT_SCHEMA, Bt as createSandboxForSpec, C as validateDelegateUiAuditArgs, D as createDelegateFeedbackHandler, E as DELEGATE_FEEDBACK_TOOL_NAME, G as DELEGATION_TRACE_MAX_SPANS, H as DelegationTaskQueue, Ht as runAgentRounds, J as composeLoopTraceEmitters, K as buildDelegationTraceSpans, M as createDelegateHandler, N as validateDelegateArgs, O as validateDelegateFeedbackArgs, Q as FileDelegationStore, S as createDelegateUiAuditHandler, T as DELEGATE_FEEDBACK_INPUT_SCHEMA, U as hashIdempotencyInput, W as DELEGATION_TRACE_MAX_BYTES, X as DelegationPersistenceError, Y as createDelegationTraceCollector, Z as DelegationStateCorruptError, _ as createDelegationHistoryHandler, _t as createCoordinationTools, b as DELEGATE_UI_AUDIT_INPUT_SCHEMA, c as createMcpServer, d as DELEGATION_STATUS_TOOL_NAME, et as InMemoryFeedbackStore, f as createDelegationStatusHandler, g as DELEGATION_HISTORY_TOOL_NAME, gt as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, h as DELEGATION_HISTORY_INPUT_SCHEMA, j as DELEGATE_TOOL_NAME, k as DELEGATE_DESCRIPTION, l as DELEGATION_STATUS_DESCRIPTION, m as DELEGATION_HISTORY_DESCRIPTION, p as validateDelegationStatusArgs, q as capDelegationTrace, s as createInProcessTransport, tt as eventToSnapshot, u as DELEGATION_STATUS_INPUT_SCHEMA, v as validateDelegationHistoryArgs, w as DELEGATE_FEEDBACK_DESCRIPTION, x as DELEGATE_UI_AUDIT_TOOL_NAME, y as DELEGATE_UI_AUDIT_DESCRIPTION } from "../supervise-6jSTe0kO.js";
|
|
6
6
|
import { t as createStdioToolServer } from "../tool-server-RcWgLIsL.js";
|
|
7
7
|
import { t as createKbGate } from "../kb-gate-DpaSwXVx.js";
|
|
8
|
-
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-
|
|
8
|
+
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-g5FS2twc.js";
|
|
9
9
|
import { t as coderTaskToPrompt } from "../coder-yhVWbdWc.js";
|
|
10
10
|
import { a as createMemoryToolServer, c as resolveMemoryFromEnv, i as MEMORY_NAME_ENV, n as MEMORY_ITEMS_ENV, o as parseMemoryItems, r as MEMORY_LOG_ENV, s as readMemoryItemsFile, t as MEMORY_FILE_ENV } from "../memory-server-DL6cE2Ag.js";
|
|
11
11
|
import { n as readTraceContextFromEnv, r as traceContextToEnv, t as createPropagatingTraceEmitter } from "../trace-propagation-CJJC7SVB.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as DELEGATE_FEEDBACK_TOOL_NAME, T as DELEGATE_FEEDBACK_INPUT_SCHEMA, d as DELEGATION_STATUS_TOOL_NAME, g as DELEGATION_HISTORY_TOOL_NAME, h as DELEGATION_HISTORY_INPUT_SCHEMA, l as DELEGATION_STATUS_DESCRIPTION, m as DELEGATION_HISTORY_DESCRIPTION, u as DELEGATION_STATUS_INPUT_SCHEMA, w as DELEGATE_FEEDBACK_DESCRIPTION } from "./supervise-6jSTe0kO.js";
|
|
2
2
|
//#region src/mcp/openai-tools.ts
|
|
3
3
|
function buildTool(name, description, parameters) {
|
|
4
4
|
return {
|
|
@@ -41,4 +41,4 @@ function mcpToolsForRuntimeMcpSubset(names) {
|
|
|
41
41
|
//#endregion
|
|
42
42
|
export { mcpToolsForRuntimeMcpSubset as n, mcpToolsForRuntimeMcp as t };
|
|
43
43
|
|
|
44
|
-
//# sourceMappingURL=openai-tools-
|
|
44
|
+
//# sourceMappingURL=openai-tools-g5FS2twc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-tools-
|
|
1
|
+
{"version":3,"file":"openai-tools-g5FS2twc.js","names":[],"sources":["../src/mcp/openai-tools.ts"],"sourcesContent":["/**\n *\n * OpenAI Chat Completions `tools[]` projection of the queue-bound agent-runtime\n * MCP delegation tools.\n *\n * Use when configuring `createOpenAICompatibleBackend({ tools: ... })` so the\n * model can call `delegate_feedback`, `delegation_status`, and\n * `delegation_history` through the OpenAI-compat transport (tcloud, OpenRouter,\n * OpenAI direct, cli-bridge). The runtime surfaces tool calls as `tool_call`\n * stream events — execution is the caller's responsibility (typically the\n * parent sandbox runtime's MCP mount).\n *\n * Sandbox-SDK callers do NOT need this helper: the sandbox runtime mounts\n * MCP servers natively and the in-sandbox harness discovers tools via the\n * runtime, not via an OpenAI tools array.\n *\n * Tool name + description + JSON-schema are pulled from the canonical\n * `DELEGATE_*` constants exported by `./tools/*` so the projection cannot\n * drift from the server's own validators.\n *\n * @experimental\n */\n\nimport type { OpenAIChatTool } from '../types'\nimport {\n DELEGATE_FEEDBACK_DESCRIPTION,\n DELEGATE_FEEDBACK_INPUT_SCHEMA,\n DELEGATE_FEEDBACK_TOOL_NAME,\n} from './tools/delegate-feedback'\nimport {\n DELEGATION_HISTORY_DESCRIPTION,\n DELEGATION_HISTORY_INPUT_SCHEMA,\n DELEGATION_HISTORY_TOOL_NAME,\n} from './tools/delegation-history'\nimport {\n DELEGATION_STATUS_DESCRIPTION,\n DELEGATION_STATUS_INPUT_SCHEMA,\n DELEGATION_STATUS_TOOL_NAME,\n} from './tools/delegation-status'\n\nfunction buildTool(\n name: string,\n description: string,\n parameters: Readonly<Record<string, unknown>>,\n): OpenAIChatTool {\n // `parameters` arrives as a deeply-readonly `as const` literal. The\n // OpenAI-compat backend JSON-serializes the body so a shallow copy\n // into a plain object is sufficient — and shields callers that mutate\n // the returned descriptor from corrupting the source constant.\n return {\n type: 'function',\n function: { name, description, parameters: { ...parameters } },\n }\n}\n\n/**\n *\n * Returns the queue-bound delegation tools projected into OpenAI Chat\n * Completions `tools[]` shape. The order is stable: `delegate_feedback`,\n * `delegation_status`, `delegation_history`.\n *\n * @experimental\n */\nexport function mcpToolsForRuntimeMcp(): OpenAIChatTool[] {\n return [\n buildTool(\n DELEGATE_FEEDBACK_TOOL_NAME,\n DELEGATE_FEEDBACK_DESCRIPTION,\n DELEGATE_FEEDBACK_INPUT_SCHEMA as Readonly<Record<string, unknown>>,\n ),\n buildTool(\n DELEGATION_STATUS_TOOL_NAME,\n DELEGATION_STATUS_DESCRIPTION,\n DELEGATION_STATUS_INPUT_SCHEMA as Readonly<Record<string, unknown>>,\n ),\n buildTool(\n DELEGATION_HISTORY_TOOL_NAME,\n DELEGATION_HISTORY_DESCRIPTION,\n DELEGATION_HISTORY_INPUT_SCHEMA as Readonly<Record<string, unknown>>,\n ),\n ]\n}\n\n/**\n *\n * Subset filter — return only the projected tools whose `function.name`\n * appears in `names`. Useful for curated mounts (e.g. only the queue-bound\n * delegation tools, omitting `delegate_feedback`). Unknown names are\n * silently ignored; pass an empty array to get an empty result.\n *\n * @experimental\n */\nexport function mcpToolsForRuntimeMcpSubset(names: ReadonlyArray<string>): OpenAIChatTool[] {\n const allowed = new Set(names)\n return mcpToolsForRuntimeMcp().filter((tool) => allowed.has(tool.function.name))\n}\n"],"mappings":";;AAwCA,SAAS,UACP,MACA,aACA,YACgB;CAKhB,OAAO;EACL,MAAM;EACN,UAAU;GAAE;GAAM;GAAa,YAAY,EAAE,GAAG,WAAW;EAAE;CAC/D;AACF;;;;;;;;;AAUA,SAAgB,wBAA0C;CACxD,OAAO;EACL,UACE,6BACA,+BACA,8BACF;EACA,UACE,6BACA,+BACA,8BACF;EACA,UACE,8BACA,gCACA,+BACF;CACF;AACF;;;;;;;;;;AAWA,SAAgB,4BAA4B,OAAgD;CAC1F,MAAM,UAAU,IAAI,IAAI,KAAK;CAC7B,OAAO,sBAAsB,CAAC,CAAC,QAAQ,SAAS,QAAQ,IAAI,KAAK,SAAS,IAAI,CAAC;AACjF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as AgentExecutionBackend, r as AgentBackendInput } from "../types-C9j4qg6l.js";
|
|
2
|
-
import { lt as createOpenAICompatibleBackend } from "../index-
|
|
2
|
+
import { lt as createOpenAICompatibleBackend } from "../index-C9vg2af7.js";
|
|
3
3
|
import { RunRecord } from "@tangle-network/agent-eval";
|
|
4
4
|
//#region src/primeintellect/types.d.ts
|
|
5
5
|
type PrimeIntellectSplit = 'train' | 'eval';
|
|
@@ -3,11 +3,11 @@ import { i as normalizeBackendStreamEvent, o as newRuntimeSession, s as nowIso }
|
|
|
3
3
|
import { c as sleep, i as isAbortError, l as stringifySafe, n as addTokenUsage, o as randomSuffix, p as zeroTokenUsage } from "./util-Cc9g9Y-o.js";
|
|
4
4
|
import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore } from "./spawn-journal-DLhnom3e.js";
|
|
5
5
|
import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction--F3v1oo8.js";
|
|
6
|
-
import { C as routerChatWithUsage, T as runBrainLoop, d as settledToIteration, l as withDriverExecutor, t as createSupervisor, x as routerBrain } from "./supervisor-
|
|
7
|
-
import { C as observe, O as strategyAuthorMethod, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-
|
|
6
|
+
import { C as routerChatWithUsage, T as runBrainLoop, d as settledToIteration, l as withDriverExecutor, t as createSupervisor, x as routerBrain } from "./supervisor-B4hOPKJV.js";
|
|
7
|
+
import { C as observe, O as strategyAuthorMethod, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-D5GbH3cy.js";
|
|
8
8
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
|
|
9
9
|
import { a as notifySandboxEventObserver, i as mapSandboxToolEvent, r as mapSandboxEvent, t as createSandboxToolPartState } from "./sandbox-events-DeI5xX8P.js";
|
|
10
|
-
import {
|
|
10
|
+
import { At as createWorktreeCliExecutor, Gt as probeSandboxCapabilities, Ht as runAgentRounds, Ot as createExecutor, St as rollingDispatch, Vt as defaultSelectWinner, Wt as createSandboxLineage, Yt as gateOnDeliverable, kt as createExecutorRegistry, t as supervise } from "./supervise-6jSTe0kO.js";
|
|
11
11
|
import { CODING_HARNESSES, InMemoryTraceStore, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, harnessAxisOf, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, scoreKnowledgeReadiness, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
12
12
|
import { heldoutSignificance, runProfileMatrix } from "@tangle-network/agent-eval/campaign";
|
|
13
13
|
import { canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -4774,16 +4774,21 @@ function signalPass(value, required) {
|
|
|
4774
4774
|
//#endregion
|
|
4775
4775
|
//#region src/runtime/supervise/run-layout.ts
|
|
4776
4776
|
/**
|
|
4777
|
-
* The on-disk supervisor-run layout: `<root>/.
|
|
4777
|
+
* The on-disk supervisor-run layout: `<root>/.agent/supervisor/<id>`.
|
|
4778
4778
|
*
|
|
4779
4779
|
* This is the durable, cross-process face of a supervisor run — the counterpart to the in-process
|
|
4780
4780
|
* `Inbox` seam in `./inbox`. A run persists its state under one directory so that any OTHER process
|
|
4781
|
-
* can find it after the fact: `@tangle-network/traces` reads exactly this layout
|
|
4782
|
-
*
|
|
4783
|
-
*
|
|
4784
|
-
*
|
|
4785
|
-
*
|
|
4786
|
-
*
|
|
4781
|
+
* can find it after the fact: `@tangle-network/traces` reads exactly this layout via
|
|
4782
|
+
* `traces analyze --supervisor-run-dir`, a restarted host can rehydrate a run it no longer holds
|
|
4783
|
+
* handles to, and a human can steer a live worker by appending one NDJSON line. Until now the
|
|
4784
|
+
* layout was defined only in the unpublished `loops` repo (`src/supervisor-control.ts`) — a
|
|
4785
|
+
* published reader depending on an unpublished writer's convention — so the contract is promoted
|
|
4786
|
+
* here, names preserved.
|
|
4787
|
+
*
|
|
4788
|
+
* `.agent` is the one dot-dir for ALL agent-owned state (skills already write
|
|
4789
|
+
* `.agent/hypotheses/`, `.agent/skill-runs.jsonl`); supervisor runs live beside them rather than
|
|
4790
|
+
* under a product-branded dir. Runs written by older writers used `.loops/supervisor/<id>` —
|
|
4791
|
+
* readers that must see those keep a legacy fallback; this writer never creates `.loops` again.
|
|
4787
4792
|
*
|
|
4788
4793
|
* Layout, relative to `supervisorRunDir(root, id)`:
|
|
4789
4794
|
*
|
|
@@ -4801,8 +4806,20 @@ function signalPass(value, required) {
|
|
|
4801
4806
|
*
|
|
4802
4807
|
* @experimental
|
|
4803
4808
|
*/
|
|
4809
|
+
/** The root every supervisor run of one workspace lives under. */
|
|
4810
|
+
function supervisorRunsRoot(rootDir) {
|
|
4811
|
+
return join(resolve(rootDir), ".agent", "supervisor");
|
|
4812
|
+
}
|
|
4804
4813
|
/** The run directory every artifact of one supervisor run lives under. */
|
|
4805
4814
|
function supervisorRunDir(rootDir, id) {
|
|
4815
|
+
return join(supervisorRunsRoot(rootDir), id);
|
|
4816
|
+
}
|
|
4817
|
+
/**
|
|
4818
|
+
* Where a pre-rename writer put the same run (`<root>/.loops/supervisor/<id>`). Readers that must
|
|
4819
|
+
* see historical runs check {@link supervisorRunDir} first and fall back to this; nothing writes
|
|
4820
|
+
* here anymore.
|
|
4821
|
+
*/
|
|
4822
|
+
function legacySupervisorRunDir(rootDir, id) {
|
|
4806
4823
|
return join(resolve(rootDir), ".loops", "supervisor", id);
|
|
4807
4824
|
}
|
|
4808
4825
|
/** A worker label reduced to a safe filename stem. Empty labels get a stable fallback. */
|
|
@@ -4985,8 +5002,9 @@ async function analyzeTrace(source, runId = "worker") {
|
|
|
4985
5002
|
*
|
|
4986
5003
|
* @experimental
|
|
4987
5004
|
*/
|
|
4988
|
-
/**
|
|
5005
|
+
/** Agent-infra dirs living inside a workspace; orchestration state, never build inputs. `.loops` is the pre-rename location of `.agent` supervisor state. */
|
|
4989
5006
|
const SKIPPED_TOP_LEVEL = /* @__PURE__ */ new Set([
|
|
5007
|
+
".agent",
|
|
4990
5008
|
".loops",
|
|
4991
5009
|
".evolve",
|
|
4992
5010
|
".agent-worktrees",
|
|
@@ -5799,6 +5817,6 @@ function tail(s) {
|
|
|
5799
5817
|
return s.slice(-400);
|
|
5800
5818
|
}
|
|
5801
5819
|
//#endregion
|
|
5802
|
-
export {
|
|
5820
|
+
export { InMemoryCorpus as $, runCoderChecks as A, renderLeaderboardMarkdown as At, SandboxRunAbortError as B, envKeyProvider as Bt, safeWorkerFile as C, completionAuthorizes as Ct, workerInboxFileFromEventDir as D, leaderboard as Dt, workerInboxFile as E, stopSentinel as Et, runStrategyEvolution as F, McpSpawnFault as Ft, equalKOnCost as G, printBenchmarkReport as H, resolveMcpServerLaunch as Ht, selectChampion as I, connectStdioMcp as It, runPersonified as J, trajectoryReport as K, assertStrategyContract as L, materializeLocalMcp as Lt, streamAgentTurn as M, renderPairwiseMarkdown as Mt, discriminatingMeans as N, auditIntent as Nt, writeWorkerSteer as O, pairwiseSignificance as Ot, pickChampion as P, defaultAuditorInstruction as Pt, FileCorpus as Q, authorStrategy as R, createMcpEnvironment as Rt, readWorkerSteerRequests as S, loopDispatch as St, supervisorRunsRoot as T, sentinelCompletion as Tt, runBenchmark as U, resolveSecretEnv as Ut, openSandboxRun as V, mcpSecretEnvMetadataKey as Vt, promotionGate as W, secretEnvOfMcpServer as Wt, createShapeRegistry as X, builtinShapes as Y, registerShape as Z, settledWorkerOut as _, naiveDriver as _t, localShell as a, pipeline as at, analyzeTrace as b, inlineSandboxClient as bt, createVerifierEnvironment as c, widen as ct, worktreeFanout as d, createScopeAnalyst as dt, renderCorpusToInstructions as et, EVIDENCE_MAX_CHARS as f, registryScopeAnalyst as ft, composeWorkerEvidence as g, dumbDriver as gt, closingWorkerNote as h, defineLeaderboard as ht, jjWorkspace as i, panel as it, collectAgentTurn as j, renderLeaderboardSvg as jt, patchDelivered as k, renderLeaderboardHtml as kt, failuresAnalyst as l, assertTraceDerivedFindings as lt, VERIFY_TAIL_CHARS as m, harvestCorpus as mt, makeFinding$1 as n, flatWidenGate as nt, runInWorkspace as o, selectValidWinner as ot, NOTE_MAX_CHARS as p, inProcessSandboxClient as pt, definePersona as q, gitWorkspace as r, loopUntil as rt, createWaterfallCollector as s, verify as st, computeFindingId$1 as t, fanout as tt, superviseSurface as u, buildSteerContext as ut, copyUntrackedIntoClone as v, resolveSandboxClient as vt, supervisorRunDir as w, deterministicCompletion as wt, legacySupervisorRunDir as x, loopCampaignDispatch as xt, withUntrackedArtifacts as y, localSandboxClient as yt, strategyAuthorContract as z, sanitizeMcpToolSchema as zt };
|
|
5803
5821
|
|
|
5804
|
-
//# sourceMappingURL=runtime-
|
|
5822
|
+
//# sourceMappingURL=runtime-6sL2vhTQ.js.map
|