@tangle-network/agent-runtime 0.324.0 → 0.325.2
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-CB2npL7F.d.ts → activation-BMsOQxMD.d.ts} +2 -2
- package/dist/{activation-CmWGOW1x.js → activation-C1O2zCvn.js} +3 -3
- package/dist/{activation-CmWGOW1x.js.map → activation-C1O2zCvn.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{bundle-BJJmfEsw.js → bundle-KZGUQqRM.js} +2 -2
- package/dist/{bundle-BJJmfEsw.js.map → bundle-KZGUQqRM.js.map} +1 -1
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-CNEeqMoh.js → coordination-driver-Bx7nXmOs.js} +243 -140
- package/dist/coordination-driver-Bx7nXmOs.js.map +1 -0
- package/dist/{delegate-C6oOTFB6.js → delegate-BK-2bX4e.js} +2 -2
- package/dist/{delegate-C6oOTFB6.js.map → delegate-BK-2bX4e.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +62 -23
- package/dist/durable.js.map +1 -1
- package/dist/graph-C8Ot8__B.js +348 -0
- package/dist/graph-C8Ot8__B.js.map +1 -0
- package/dist/{improvement-cycle-U74a-YKi.js → improvement-cycle-IncBZK-W.js} +6 -6
- package/dist/{improvement-cycle-U74a-YKi.js.map → improvement-cycle-IncBZK-W.js.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-bin-BfcTX4-n.js → loop-runner-bin-Ch9FgmrJ.js} +3 -3
- package/dist/{loop-runner-bin-BfcTX4-n.js.map → loop-runner-bin-Ch9FgmrJ.js.map} +1 -1
- package/dist/{loop-runner-bin-CkchKbaB.d.ts → loop-runner-bin-ECJA--ZN.d.ts} +2 -2
- 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 +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-BR3rRmmC.d.ts → openai-tools-C_dJoluR.d.ts} +2 -2
- package/dist/placement.d.ts +1 -1
- package/dist/{prepare-DpavgJT8.js → prepare-BrgoOJmU.js} +8 -7
- package/dist/{prepare-DpavgJT8.js.map → prepare-BrgoOJmU.js.map} +1 -1
- package/dist/{profile-ZS7_KLwK.js → profile-ChWlsNCI.js} +30 -55
- package/dist/profile-ChWlsNCI.js.map +1 -0
- package/dist/{profile-materialization-C5-t3HJ7.d.ts → profile-materialization-BnoEf1co.d.ts} +3 -8
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-BLyyfL3l.js → protected-model-port-CJzC-FRs.js} +4 -4
- package/dist/{protected-model-port-BLyyfL3l.js.map → protected-model-port-CJzC-FRs.js.map} +1 -1
- package/dist/{provision-supervisor-DhPJqazM.js → provision-supervisor-GqVnQ_oy.js} +4 -4
- package/dist/{provision-supervisor-DhPJqazM.js.map → provision-supervisor-GqVnQ_oy.js.map} +1 -1
- package/dist/{runtime-B9-ZiYFa.js → runtime-9ZwTmnhQ.js} +10 -10
- package/dist/{runtime-B9-ZiYFa.js.map → runtime-9ZwTmnhQ.js.map} +1 -1
- package/dist/{workspace-streams-CcoARX4v.js → sandbox-profile-compat-Dq7ujONv.js} +40 -6
- package/dist/sandbox-profile-compat-Dq7ujONv.js.map +1 -0
- package/dist/{search-executor-CtNb_lIB.js → search-executor-CKIXXaiX.js} +3 -3
- package/dist/{search-executor-CtNb_lIB.js.map → search-executor-CKIXXaiX.js.map} +1 -1
- package/dist/{server-BLYiq6fK.js → server-BSWvux-R.js} +4 -4
- package/dist/{server-BLYiq6fK.js.map → server-BSWvux-R.js.map} +1 -1
- package/dist/{supervise-FOCAUADN.js → supervise-Dt_bZSVY.js} +736 -20
- package/dist/supervise-Dt_bZSVY.js.map +1 -0
- package/dist/{supervisor-DnKhkhKc.js → supervisor-CESg1FQx.js} +36 -18
- package/dist/supervisor-CESg1FQx.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +14 -14
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-ytkoP4VV.d.ts → types-CTjiMrcF.d.ts} +578 -509
- package/package.json +9 -9
- package/skills/profile-authoring/SKILL.md +1 -1
- package/dist/coordination-driver-CNEeqMoh.js.map +0 -1
- package/dist/graph-BKmo7d42.js +0 -805
- package/dist/graph-BKmo7d42.js.map +0 -1
- package/dist/profile-ZS7_KLwK.js.map +0 -1
- package/dist/supervise-FOCAUADN.js.map +0 -1
- package/dist/supervisor-DnKhkhKc.js.map +0 -1
- package/dist/workspace-streams-CcoARX4v.js.map +0 -1
package/dist/mcp/bin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { ur as readTraceContextFromEnv } from "../supervisor-CESg1FQx.js";
|
|
3
3
|
import { i as ConfigError } from "../errors-DodWX-cb.js";
|
|
4
|
-
import { s as supervisorInstructions } from "../delegate-
|
|
5
|
-
import { _ as FileDelegationStore, n as createMcpServer, p as DelegationTaskQueue } from "../server-
|
|
4
|
+
import { s as supervisorInstructions } from "../delegate-BK-2bX4e.js";
|
|
5
|
+
import { _ as FileDelegationStore, n as createMcpServer, p as DelegationTaskQueue } from "../server-BSWvux-R.js";
|
|
6
6
|
//#region src/mcp/delegate-supervisor-provisioning.ts
|
|
7
7
|
function trimmed(value) {
|
|
8
8
|
const v = value?.trim();
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as ManagerWake, $v as createDetachedTurnResumeDriver, AC as CodexExecutionEvidence, Ah as createDelegateHandler, An as AuthoredAnalystLimits, Av as CoderDelegate, Ay as DelegationHistoryEntry, BC as parseCodexTokenUsage, Bn as CoordinationToolsOptions, Bv as settleDetachedCoderTurn, By as ResearchOutputShape, CC as DiffResult, Cb as DelegationStore, Ch as DELEGATE_DESCRIPTION, Cn as AnalystKind, Cr as createCoordinationTools, Cv as McpToolAnnotations, Cy as DelegateUiAuditArgs, DC as captureWorktreeDiff, Db as CoderOutput, Dh as DelegateError, Dn as AnalystToolGroupName, Dr as questionEscalationTargets, Dv as FeedbackStore, Dy as DelegationError, EC as WorktreeHandle, Eb as InMemoryDelegationStore, Eh as DelegateArgs, En as AnalystRunContext, Er as parseAuthoredAnalystDefinition, Ev as FeedbackEvent, Ey as DelegateUiAuditRoute, FC as LocalHarness, Fn as ContinuationInstruction, Fv as DetachedWinnerSelection, Fy as DelegationStatus, Gn as DownMessageEvent, Gv as createFleetWorkspaceExecutor, Hn as DownMessageAuthorizationInput, Hv as FleetHandle, Hy as UiAuditorDelegationOutput, IC as LocalHarnessResult, Iv as SettleDetachedCoderTurnOptions, Iy as DelegationStatusArgs, Jn as GraphSubtaskPreparation, Jv as DetachedTurn, Kn as EscalateQuestion, Kv as createSiblingSandboxExecutor, LC as RunLocalHarnessOptions, Ln as CoordinationEvent, Lv as UiAuditorDelegate, Ly as DelegationStatusResult, MC as CodexTokenUsage, Mn as AuthorizedDownMessage, Mv as CoderReviewer, My as DelegationProfile, NC as DEFAULT_LOCAL_HARNESS, Nn as AwaitWakeInput, Nv as DelegateRunCtx, Ny as DelegationProgress, OC as createWorktree, Oh as DelegateHandlerOptions, Ov as InMemoryFeedbackStore, Oy as DelegationFeedbackSnapshot, PC as LOCAL_HARNESSES, Pv as DetachedSessionDelegateOptions, Py as DelegationResultPayload, Qn as ManagerReentryState, Qv as RunDetachedTurnOptions, RC as harnessSupportsReasoningEffort, Rv as coderTaskFromArgs, Ry as FeedbackRating, SC as DiffOptions, Sb as DelegationStateCorruptError, Sh as createMcpServer, Sn as AnalystFindingEvent, Sv as JsonRpcResponse, Sy as DelegateResearchResult, TC as RemoveWorktreeOptions, Tb as FileDelegationStoreOptions, Th as DELEGATE_TOOL_NAME, Tn as AnalystRegistry, Tv as McpTransport, Ty as DelegateUiAuditResult, Un as DownMessageDeliveryAttempt, Uv as FleetWorkspaceExecutorOptions, Uy as delegationProfiles, VC as runLocalHarness, Vn as DefinedAnalystRecord, Vv as DelegationExecutor, Vy as UiAuditLensFilter, Wn as DownMessageDeliveryOutcome, Wv as SiblingSandboxExecutorOptions, Xn as LeadMessage, Xv as DriveTurnCapableBox, Yn as GraphSubtasks, Yv as DetachedTurnResumeDriverOptions, Yy as UiLens, Zn as MakeWorkerAgent, Zv as DriveTurnTick, _b as buildDelegationTraceSpans, _h as hostDirectoryReader, _r as ToolOutcomeEvent, _y as DelegateCodeResult, ar as QuestionEscalationTarget, ay as DelegationRecord, bb as createDelegationTraceCollector, bh as McpServerOptions, bn as AnalystAssignmentRecord, br as WorkerWatchOptions, by as DelegateResearchArgs, cb as mergeTraceEnv, cr as QuestionPolicy, cy as DelegationResumeTick, db as CappedDelegationTrace, dh as ResolvedSpawnResourcePath, dr as SettledWorker, dy as DelegationTaskQueueOptions, eb as ResearchSource, er as PeerAuditAccess, ey as detachedTurnEvents, fb as DELEGATION_TRACE_MAX_BYTES, fh as SPAWN_RESOURCE_PATH_MAX_BYTES, fy as SubmitInput, gb as DelegationTraceSpan, gh as environmentReader, gy as DelegateCodeConfig, hb as DelegationTraceCollector, hh as SpawnResourceReader, hy as DelegateCodeArgs, ir as QuestionEscalationRecord, iy as DelegationArgs, jC as CodexExecutionPolicy, jh as validateDelegateArgs, jn as AuthorizeDownMessage, jv as CoderReview, jy as DelegationHistoryResult, kC as removeWorktree, kh as DelegateResult, kn as AuthoredAnalystDefinition, kv as eventToSnapshot, ky as DelegationHistoryArgs, lb as readTraceContextFromEnv, lr as QuestionRecord, ly as DelegationRunContext, mb as DelegationTraceCaps, mh as SpawnResourceRead, my as hashIdempotencyInput, nr as QuestionDecision, ny as parseDetachedSessionRef, oT as LoopSandboxPlacement, ob as TraceContext, or as QuestionLevel, oy as DelegationResumeContext, pb as DELEGATION_TRACE_MAX_SPANS, ph as SpawnResourceBytes, py as SubmitOutput, qn as EventAcknowledgement, qv as DetachedSessionRefParts, rr as QuestionEscalationOutcome, ry as runDetachedTurn, sb as createPropagatingTraceEmitter, sr as QuestionOption, sy as DelegationResumeDriver, tr as Question, ty as formatDetachedSessionRef, ub as traceContextToEnv, uh as ResolveSpawnResourcePathsResult, ur as QuestionUrgency, uy as DelegationTaskQueue, vb as capDelegationTrace, vh as resolveSpawnResourcePaths, vy as DelegateFeedbackArgs, wC as GitRunner, wb as FileDelegationStore, wh as DELEGATE_INPUT_SCHEMA, wr as downMessageRefusalReasons, wv as McpToolDescriptor, wy as DelegateUiAuditConfig, xC as CreateWorktreeOptions, xb as DelegationPersistenceError, xh as createInProcessTransport, xn as AnalystDefinitionIssue, xr as analystToolGroupNames, xv as JsonRpcMessage, xy as DelegateResearchConfig, yb as composeLoopTraceEmitters, yh as McpServer, yn as ANALYST_DEFINITION_BOUNDS, yr as WorkerSpawnContext, yy as DelegateFeedbackResult, zC as localHarnessExecutable, zn as CoordinationTools, zv as detachedSessionDelegate, zy as FeedbackRefersTo } from "../types-CTjiMrcF.js";
|
|
2
2
|
import { a as KbGateResult, i as FactJudgeVerdict, n as FactCandidate, o as createKbGate, r as FactJudge, t as CreateKbGateOptions } from "../kb-gate-C8z2juK8.js";
|
|
3
|
-
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-
|
|
3
|
+
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-C_dJoluR.js";
|
|
4
4
|
import { l as PlatformConnection } from "../integrations-DopfCC2a.js";
|
|
5
5
|
import { AgentProfileMcpServer, HarnessType } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/mcp/codex-diagnostics.d.ts
|
|
@@ -485,5 +485,5 @@ interface DelegationStatusHandlerOptions {
|
|
|
485
485
|
/** Build the MCP tool handler that polls a `DelegationTaskQueue` for task status. @stable */
|
|
486
486
|
declare function createDelegationStatusHandler(options: DelegationStatusHandlerOptions): (raw: unknown) => Promise<DelegationStatusResult>;
|
|
487
487
|
//#endregion
|
|
488
|
-
export { ANALYST_DEFINITION_BOUNDS, type AgentMemorySpec, type AnalystAssignmentRecord, type AnalystDefinitionIssue, type AnalystFindingEvent, type AnalystKind, type AnalystRegistry, type AnalystRunContext, type AnalystToolGroupName, type AuthoredAnalystDefinition, type AuthoredAnalystLimits, type AuthorizeDownMessage, type AuthorizedDownMessage, type AwaitWakeInput, type CappedDelegationTrace, type CoderDelegate, type CoderOutput, type CoderReview, type CoderReviewer, CodexExecutionDiagnosticError, type CodexExecutionEvidence, type CodexExecutionFailureDiagnostic, type CodexExecutionPolicy, type CodexTokenUsage, type ContinuationInstruction, type CoordinationEvent, type CoordinationTools, type CoordinationToolsOptions, type CreateHubIntegrationToolServerOptions, type CreateKbGateOptions, type CreateMemoryToolServerOptions, type CreateWorktreeOptions, DEFAULT_LOCAL_HARNESS, DELEGATE_DESCRIPTION, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_INPUT_SCHEMA, DELEGATE_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DELEGATION_TRACE_MAX_BYTES, DELEGATION_TRACE_MAX_SPANS, type DefinedAnalystRecord, type DelegateArgs, type DelegateCodeArgs, type DelegateCodeConfig, type DelegateCodeResult, type DelegateError, type DelegateFeedbackArgs, type DelegateFeedbackHandlerOptions, type DelegateFeedbackResult, type DelegateHandlerOptions, type DelegateResearchArgs, type DelegateResearchConfig, type DelegateResearchResult, type DelegateResult, type DelegateRunCtx, type DelegateUiAuditArgs, type DelegateUiAuditConfig, type DelegateUiAuditHandlerOptions, type DelegateUiAuditResult, type DelegateUiAuditRoute, type DelegationArgs, type DelegationError, type DelegationExecutor, type DelegationFeedbackSnapshot, type DelegationHistoryArgs, type DelegationHistoryEntry, type DelegationHistoryHandlerOptions, type DelegationHistoryResult, DelegationPersistenceError, type DelegationProfile, type DelegationProgress, type DelegationRecord, type DelegationResultPayload, type DelegationResumeContext, type DelegationResumeDriver, type DelegationResumeTick, type DelegationRunContext, DelegationStateCorruptError, type DelegationStatus, type DelegationStatusArgs, type DelegationStatusHandlerOptions, type DelegationStatusResult, type DelegationStore, DelegationTaskQueue, type DelegationTaskQueueOptions, type DelegationTraceCaps, type DelegationTraceCollector, type DelegationTraceSpan, type DetachedSessionDelegateOptions, type DetachedSessionRefParts, type DetachedTurn, type DetachedTurnResumeDriverOptions, type DetachedWinnerSelection, type DiffOptions, type DiffResult, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveTurnCapableBox, type DriveTurnTick, type EscalateQuestion, type EventAcknowledgement, type FactCandidate, type FactJudge, type FactJudgeVerdict, type FeedbackEvent, type FeedbackRating, type FeedbackRefersTo, type FeedbackStore, FileDelegationStore, type FileDelegationStoreOptions, type FleetHandle, type FleetWorkspaceExecutorOptions, type GitRunner, HUB_DATA_PROVIDER_KINDS, type HubIntegrationClient, type HubIntegrationToolsOptions, InMemoryDelegationStore, InMemoryFeedbackStore, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, type JsonRpcMessage, type JsonRpcResponse, type KbGateResult, LOCAL_HARNESSES, type LeadMessage, type LocalHarness, type LocalHarnessResult, MEMORY_FILE_ENV, MEMORY_ITEMS_ENV, MEMORY_LOG_ENV, MEMORY_NAME_ENV, type MakeWorkerAgent, type ManagerReentryState, type ManagerWake, type McpServer, type McpServerOptions, type McpToolAnnotations, type McpToolDescriptor, type McpTransport, type MemoryItem, type PeerAuditAccess, type Question, type QuestionDecision, type QuestionEscalationOutcome, type QuestionEscalationRecord, type QuestionEscalationTarget, type QuestionLevel, type QuestionOption, type QuestionPolicy, type QuestionRecord, type QuestionUrgency, type RemoveWorktreeOptions, type ResearchOutputShape, type ResearchSource, type ResolveSpawnResourcePathsResult, type ResolvedMemoryEnv, type ResolvedSpawnResourcePath, type RunDetachedTurnOptions, type RunLocalHarnessOptions, SPAWN_RESOURCE_PATH_MAX_BYTES, SUPPORTED_PROTOCOL_VERSIONS, type SettleDetachedCoderTurnOptions, type SettledWorker, type SiblingSandboxExecutorOptions, type SourcedHarness, type SpawnResourceBytes, type SpawnResourceRead, type SpawnResourceReader, type StdioToolServer, type StdioToolServerOptions, type SubmitInput, type SubmitOutput, type ToolOutcomeEvent, type TraceContext, type UiAuditLensFilter, type UiAuditorDelegate, type UiAuditorDelegationOutput, type WorkerSpawnContext, type WorkerWatchOptions, type WorktreeHandle, analystToolGroupNames, buildDelegationTraceSpans, capDelegationTrace, captureWorktreeDiff, coderTaskFromArgs, collidesWithHarnessNativeTool, composeLoopTraceEmitters, createCoordinationTools, createDelegateFeedbackHandler, createDelegateHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createDelegationTraceCollector, createDetachedTurnResumeDriver, createFleetWorkspaceExecutor, createHubIntegrationToolServer, createInProcessExecutor, createInProcessTransport, createKbGate, createMcpServer, createMemoryToolServer, createPropagatingTraceEmitter, createSiblingSandboxExecutor, createStdioToolServer, createWorktree, delegationProfiles, detachedSessionDelegate, detachedTurnEvents, downMessageRefusalReasons, environmentReader, eventToSnapshot, formatDetachedSessionRef, harnessNativeToolNames, harnessNativeTools, harnessSupportsReasoningEffort, hashIdempotencyInput, hostDirectoryReader, hubIntegrationTools, localHarnessExecutable, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, mergeTraceEnv, parseAuthoredAnalystDefinition, parseCodexTokenUsage, parseDetachedSessionRef, parseMemoryItems, questionEscalationTargets, readMemoryItemsFile, readTraceContextFromEnv, removeWorktree, resolveMemoryFromEnv, resolveSpawnResourcePaths, runDetachedTurn, settleDetachedCoderTurn, sourcedHarnesses, traceContextToEnv, validateDelegateArgs, validateDelegateFeedbackArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
|
|
488
|
+
export { ANALYST_DEFINITION_BOUNDS, type AgentMemorySpec, type AnalystAssignmentRecord, type AnalystDefinitionIssue, type AnalystFindingEvent, type AnalystKind, type AnalystRegistry, type AnalystRunContext, type AnalystToolGroupName, type AuthoredAnalystDefinition, type AuthoredAnalystLimits, type AuthorizeDownMessage, type AuthorizedDownMessage, type AwaitWakeInput, type CappedDelegationTrace, type CoderDelegate, type CoderOutput, type CoderReview, type CoderReviewer, CodexExecutionDiagnosticError, type CodexExecutionEvidence, type CodexExecutionFailureDiagnostic, type CodexExecutionPolicy, type CodexTokenUsage, type ContinuationInstruction, type CoordinationEvent, type CoordinationTools, type CoordinationToolsOptions, type CreateHubIntegrationToolServerOptions, type CreateKbGateOptions, type CreateMemoryToolServerOptions, type CreateWorktreeOptions, DEFAULT_LOCAL_HARNESS, DELEGATE_DESCRIPTION, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_INPUT_SCHEMA, DELEGATE_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DELEGATION_TRACE_MAX_BYTES, DELEGATION_TRACE_MAX_SPANS, type DefinedAnalystRecord, type DelegateArgs, type DelegateCodeArgs, type DelegateCodeConfig, type DelegateCodeResult, type DelegateError, type DelegateFeedbackArgs, type DelegateFeedbackHandlerOptions, type DelegateFeedbackResult, type DelegateHandlerOptions, type DelegateResearchArgs, type DelegateResearchConfig, type DelegateResearchResult, type DelegateResult, type DelegateRunCtx, type DelegateUiAuditArgs, type DelegateUiAuditConfig, type DelegateUiAuditHandlerOptions, type DelegateUiAuditResult, type DelegateUiAuditRoute, type DelegationArgs, type DelegationError, type DelegationExecutor, type DelegationFeedbackSnapshot, type DelegationHistoryArgs, type DelegationHistoryEntry, type DelegationHistoryHandlerOptions, type DelegationHistoryResult, DelegationPersistenceError, type DelegationProfile, type DelegationProgress, type DelegationRecord, type DelegationResultPayload, type DelegationResumeContext, type DelegationResumeDriver, type DelegationResumeTick, type DelegationRunContext, DelegationStateCorruptError, type DelegationStatus, type DelegationStatusArgs, type DelegationStatusHandlerOptions, type DelegationStatusResult, type DelegationStore, DelegationTaskQueue, type DelegationTaskQueueOptions, type DelegationTraceCaps, type DelegationTraceCollector, type DelegationTraceSpan, type DetachedSessionDelegateOptions, type DetachedSessionRefParts, type DetachedTurn, type DetachedTurnResumeDriverOptions, type DetachedWinnerSelection, type DiffOptions, type DiffResult, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveTurnCapableBox, type DriveTurnTick, type EscalateQuestion, type EventAcknowledgement, type FactCandidate, type FactJudge, type FactJudgeVerdict, type FeedbackEvent, type FeedbackRating, type FeedbackRefersTo, type FeedbackStore, FileDelegationStore, type FileDelegationStoreOptions, type FleetHandle, type FleetWorkspaceExecutorOptions, type GitRunner, type GraphSubtaskPreparation, type GraphSubtasks, HUB_DATA_PROVIDER_KINDS, type HubIntegrationClient, type HubIntegrationToolsOptions, InMemoryDelegationStore, InMemoryFeedbackStore, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, type JsonRpcMessage, type JsonRpcResponse, type KbGateResult, LOCAL_HARNESSES, type LeadMessage, type LocalHarness, type LocalHarnessResult, MEMORY_FILE_ENV, MEMORY_ITEMS_ENV, MEMORY_LOG_ENV, MEMORY_NAME_ENV, type MakeWorkerAgent, type ManagerReentryState, type ManagerWake, type McpServer, type McpServerOptions, type McpToolAnnotations, type McpToolDescriptor, type McpTransport, type MemoryItem, type PeerAuditAccess, type Question, type QuestionDecision, type QuestionEscalationOutcome, type QuestionEscalationRecord, type QuestionEscalationTarget, type QuestionLevel, type QuestionOption, type QuestionPolicy, type QuestionRecord, type QuestionUrgency, type RemoveWorktreeOptions, type ResearchOutputShape, type ResearchSource, type ResolveSpawnResourcePathsResult, type ResolvedMemoryEnv, type ResolvedSpawnResourcePath, type RunDetachedTurnOptions, type RunLocalHarnessOptions, SPAWN_RESOURCE_PATH_MAX_BYTES, SUPPORTED_PROTOCOL_VERSIONS, type SettleDetachedCoderTurnOptions, type SettledWorker, type SiblingSandboxExecutorOptions, type SourcedHarness, type SpawnResourceBytes, type SpawnResourceRead, type SpawnResourceReader, type StdioToolServer, type StdioToolServerOptions, type SubmitInput, type SubmitOutput, type ToolOutcomeEvent, type TraceContext, type UiAuditLensFilter, type UiAuditorDelegate, type UiAuditorDelegationOutput, type WorkerSpawnContext, type WorkerWatchOptions, type WorktreeHandle, analystToolGroupNames, buildDelegationTraceSpans, capDelegationTrace, captureWorktreeDiff, coderTaskFromArgs, collidesWithHarnessNativeTool, composeLoopTraceEmitters, createCoordinationTools, createDelegateFeedbackHandler, createDelegateHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createDelegationTraceCollector, createDetachedTurnResumeDriver, createFleetWorkspaceExecutor, createHubIntegrationToolServer, createInProcessExecutor, createInProcessTransport, createKbGate, createMcpServer, createMemoryToolServer, createPropagatingTraceEmitter, createSiblingSandboxExecutor, createStdioToolServer, createWorktree, delegationProfiles, detachedSessionDelegate, detachedTurnEvents, downMessageRefusalReasons, environmentReader, eventToSnapshot, formatDetachedSessionRef, harnessNativeToolNames, harnessNativeTools, harnessSupportsReasoningEffort, hashIdempotencyInput, hostDirectoryReader, hubIntegrationTools, localHarnessExecutable, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, mergeTraceEnv, parseAuthoredAnalystDefinition, parseCodexTokenUsage, parseDetachedSessionRef, parseMemoryItems, questionEscalationTargets, readMemoryItemsFile, readTraceContextFromEnv, removeWorktree, resolveMemoryFromEnv, resolveSpawnResourcePaths, runDetachedTurn, settleDetachedCoderTurn, sourcedHarnesses, traceContextToEnv, validateDelegateArgs, validateDelegateFeedbackArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
|
|
489
489
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $ as environmentReader, Ar as
|
|
1
|
+
import { $ as environmentReader, Ar as captureWorktreeDiff, Cn as assertBoxlessPromptOptions, Ir as harnessSupportsReasoningEffort, Lr as localHarnessExecutable, Mr as removeWorktree, Nr as DEFAULT_LOCAL_HARNESS, Pr as LOCAL_HARNESSES, Q as SPAWN_RESOURCE_PATH_MAX_BYTES, Rr as parseCodexTokenUsage, cr as createPropagatingTraceEmitter, dr as traceContextToEnv, et as hostDirectoryReader, hn as createSandboxForSpec, jr as createWorktree, kr as runWorktreeHarness, lr as mergeTraceEnv, tt as resolveSpawnResourcePaths, ur as readTraceContextFromEnv, vn as runAgentRounds, zr as CodexExecutionDiagnosticError } from "../supervisor-CESg1FQx.js";
|
|
2
2
|
import { i as ConfigError, m as ValidationError } from "../errors-DodWX-cb.js";
|
|
3
|
-
import {
|
|
3
|
+
import { J as deleteBoxSafe, at as sleep, ct as throwIfAborted, st as throwAbort } from "../sandbox-profile-compat-Dq7ujONv.js";
|
|
4
4
|
import { t as assertExecutableAgentProfile } from "../model-policy-CyCUwHed.js";
|
|
5
|
-
import { R as runCoderChecks, gt as selectValidWinner } from "../runtime-
|
|
6
|
-
import { A as ANALYST_DEFINITION_BOUNDS, I as downMessageRefusalReasons, P as createCoordinationTools, R as parseAuthoredAnalystDefinition, j as analystToolGroupNames, z as questionEscalationTargets } from "../coordination-driver-
|
|
5
|
+
import { R as runCoderChecks, gt as selectValidWinner } from "../runtime-9ZwTmnhQ.js";
|
|
6
|
+
import { A as ANALYST_DEFINITION_BOUNDS, I as downMessageRefusalReasons, P as createCoordinationTools, R as parseAuthoredAnalystDefinition, j as analystToolGroupNames, z as questionEscalationTargets } from "../coordination-driver-Bx7nXmOs.js";
|
|
7
7
|
import { n as SUPPORTED_PROTOCOL_VERSIONS, r as createStdioToolServer } from "../tool-server-Dqer2M4_.js";
|
|
8
8
|
import { t as createKbGate } from "../kb-gate-DpaSwXVx.js";
|
|
9
9
|
import { _ as InMemoryFeedbackStore, a as validateDelegationStatusArgs, c as DELEGATION_HISTORY_TOOL_NAME, d as delegationProfiles, f as DELEGATE_FEEDBACK_DESCRIPTION, g as validateDelegateFeedbackArgs, h as createDelegateFeedbackHandler, i as createDelegationStatusHandler, l as createDelegationHistoryHandler, m as DELEGATE_FEEDBACK_TOOL_NAME, n as DELEGATION_STATUS_INPUT_SCHEMA, o as DELEGATION_HISTORY_DESCRIPTION, p as DELEGATE_FEEDBACK_INPUT_SCHEMA, r as DELEGATION_STATUS_TOOL_NAME, s as DELEGATION_HISTORY_INPUT_SCHEMA, t as DELEGATION_STATUS_DESCRIPTION, u as validateDelegationHistoryArgs, v as eventToSnapshot } from "../delegation-status-CF4D0NZ_.js";
|
|
10
10
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-DoQ32vpe.js";
|
|
11
11
|
import { t as coderTaskToPrompt } from "../coder-yhVWbdWc.js";
|
|
12
12
|
import { n as PlatformHubError } from "../integrations-dFi-ALk7.js";
|
|
13
|
-
import { C as composeLoopTraceEmitters, S as capDelegationTrace, _ as FileDelegationStore, a as DELEGATE_UI_AUDIT_TOOL_NAME, b as DELEGATION_TRACE_MAX_SPANS, c as DELEGATE_DESCRIPTION, d as createDelegateHandler, f as validateDelegateArgs, g as DelegationStateCorruptError, h as DelegationPersistenceError, i as DELEGATE_UI_AUDIT_INPUT_SCHEMA, l as DELEGATE_INPUT_SCHEMA, m as hashIdempotencyInput, n as createMcpServer, o as createDelegateUiAuditHandler, p as DelegationTaskQueue, r as DELEGATE_UI_AUDIT_DESCRIPTION, s as validateDelegateUiAuditArgs, t as createInProcessTransport, u as DELEGATE_TOOL_NAME, v as InMemoryDelegationStore, w as createDelegationTraceCollector, x as buildDelegationTraceSpans, y as DELEGATION_TRACE_MAX_BYTES } from "../server-
|
|
13
|
+
import { C as composeLoopTraceEmitters, S as capDelegationTrace, _ as FileDelegationStore, a as DELEGATE_UI_AUDIT_TOOL_NAME, b as DELEGATION_TRACE_MAX_SPANS, c as DELEGATE_DESCRIPTION, d as createDelegateHandler, f as validateDelegateArgs, g as DelegationStateCorruptError, h as DelegationPersistenceError, i as DELEGATE_UI_AUDIT_INPUT_SCHEMA, l as DELEGATE_INPUT_SCHEMA, m as hashIdempotencyInput, n as createMcpServer, o as createDelegateUiAuditHandler, p as DelegationTaskQueue, r as DELEGATE_UI_AUDIT_DESCRIPTION, s as validateDelegateUiAuditArgs, t as createInProcessTransport, u as DELEGATE_TOOL_NAME, v as InMemoryDelegationStore, w as createDelegationTraceCollector, x as buildDelegationTraceSpans, y as DELEGATION_TRACE_MAX_BYTES } from "../server-BSWvux-R.js";
|
|
14
14
|
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-DXQ8IxGR.js";
|
|
15
15
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as OpenAIChatTool } from "./types-
|
|
1
|
+
import { h as OpenAIChatTool } from "./types-CTjiMrcF.js";
|
|
2
2
|
//#region src/mcp/openai-tools.d.ts
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
@@ -21,4 +21,4 @@ declare function mcpToolsForRuntimeMcp(): OpenAIChatTool[];
|
|
|
21
21
|
declare function mcpToolsForRuntimeMcpSubset(names: ReadonlyArray<string>): OpenAIChatTool[];
|
|
22
22
|
//#endregion
|
|
23
23
|
export { mcpToolsForRuntimeMcpSubset as n, mcpToolsForRuntimeMcp as t };
|
|
24
|
-
//# sourceMappingURL=openai-tools-
|
|
24
|
+
//# sourceMappingURL=openai-tools-C_dJoluR.d.ts.map
|
package/dist/placement.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AgentProfileMaterializationAxis, s as ProfileMaterializationContract } from "./profile-materialization-
|
|
1
|
+
import { n as AgentProfileMaterializationAxis, s as ProfileMaterializationContract } from "./profile-materialization-BnoEf1co.js";
|
|
2
2
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/placement/index.d.ts
|
|
4
4
|
/** The policy version every {@link PlacementRecord} carries. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as verifyMaterializedWorkspace, B as omitTopLevelDigest, E as readVerifiedArtifact, F as canonicalCandidateDigest$1, I as canonicalCandidateDocument, L as deepFreezeCandidate, O as verifyBytes, P as canonicalCandidateBytes$1, R as embeddedCandidateArtifact, S as artifactCacheKey, T as readMaterializedWorkspaceFiles, V as sha256Bytes$1, Y as errorMessage, _ as verifyTaskCheckout, b as isWellFormedUnicode, g as verifyCandidateCode, h as readCandidateGitHubResource, j as verifyWorkspaceSnapshotArtifacts, k as verifyMaterializedProfileWorkspace, m as persistCandidateOutputArtifact, v as verifyTaskOutcomePatch, y as assertExactObjectKeys, z as immutableCandidateValue } from "./sandbox-profile-compat-Dq7ujONv.js";
|
|
2
2
|
import { i as redactProtectedValue, n as createProtectedRecordRedactor, r as redactProtectedReason, t as assertNoProtectedBytes } from "./protected-redaction-DFCeo4vg.js";
|
|
3
|
-
import { f as parseAgentCandidateProfileActivation, n as PI_CANDIDATE_SESSION_DIR_ENV, o as assertCandidateProfileExecutionSupport, s as candidateProfileAgentPaths, t as PI_CANDIDATE_AGENT_DIR_ENV, u as materializeAgentCandidateProfilePlan } from "./profile-
|
|
3
|
+
import { f as parseAgentCandidateProfileActivation, g as requirePublicCandidateConfigValue, n as PI_CANDIDATE_SESSION_DIR_ENV, o as assertCandidateProfileExecutionSupport, s as candidateProfileAgentPaths, t as PI_CANDIDATE_AGENT_DIR_ENV, u as materializeAgentCandidateProfilePlan } from "./profile-ChWlsNCI.js";
|
|
4
4
|
import { agentCandidateArtifactRefSchema, agentCandidateBenchmarkResultEvidenceSchema, agentCandidateBenchmarkSuiteSchema, agentCandidateBenchmarkTaskSchema, agentCandidateBundleSchema, agentCandidateContainerSchema, agentCandidateExecutionLimitsSchema, agentCandidateExecutionPlanEvidenceSchema, agentCandidateExecutionPlanMaterialSchema, agentCandidateMaterializationReceiptSchema, agentCandidateModelAccessNetworkSchema, agentCandidateModelSettlementEvidenceSchema, agentCandidateProfilePlanEvidenceSchema, agentCandidateResolvedModelSchema, agentCandidateRunCellSchema, agentCandidateRunReceiptSchema, agentCandidateTaskOutcomeEvidenceSchema, agentCandidateTaskOutcomeSpecSchema, agentCandidateTerminationSchema, agentCandidateWorkspaceManifestMaterialSchema, agentCandidateWorkspaceSnapshotEvidenceSchema, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
5
5
|
import { REDACTION_VERSION, isLlmSpan } from "@tangle-network/agent-eval";
|
|
6
6
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
@@ -3214,9 +3214,9 @@ async function prepareAgentCandidateExecution(candidate, task, ports, options =
|
|
|
3214
3214
|
materializationReceipt,
|
|
3215
3215
|
launch: {
|
|
3216
3216
|
executable: baseLaunch.executable,
|
|
3217
|
-
args: baseLaunch.args.map((value) => value.
|
|
3217
|
+
args: baseLaunch.args.map((value, index) => requirePublicCandidateConfigValue(value, `launch.args[${index}]`)),
|
|
3218
3218
|
env: unwrapPublicEnvironment(publicEnv),
|
|
3219
|
-
flags: profileApplication.flags.map((value) => value.
|
|
3219
|
+
flags: profileApplication.flags.map((value, index) => requirePublicCandidateConfigValue(value, `profile.flags[${index}]`)),
|
|
3220
3220
|
cwd: absoluteExecutionCwd(bundle.execution.cwd, task.executionRoots)
|
|
3221
3221
|
},
|
|
3222
3222
|
instruction: {
|
|
@@ -3484,13 +3484,14 @@ function mergePublicEnvironment(...records) {
|
|
|
3484
3484
|
const output = {};
|
|
3485
3485
|
for (const record of records) for (const [name, value] of Object.entries(record)) {
|
|
3486
3486
|
const previous = output[name];
|
|
3487
|
-
|
|
3487
|
+
const publicValue = requirePublicCandidateConfigValue(value, `env.${name}`);
|
|
3488
|
+
if (previous && requirePublicCandidateConfigValue(previous, `env.${name}`) !== publicValue) throw new Error(`candidate and profile environment disagree on ${name}`);
|
|
3488
3489
|
output[name] = value;
|
|
3489
3490
|
}
|
|
3490
3491
|
return output;
|
|
3491
3492
|
}
|
|
3492
3493
|
function unwrapPublicEnvironment(values) {
|
|
3493
|
-
return Object.fromEntries(Object.entries(values).map(([name, value]) => [name, value
|
|
3494
|
+
return Object.fromEntries(Object.entries(values).map(([name, value]) => [name, requirePublicCandidateConfigValue(value, `env.${name}`)]));
|
|
3494
3495
|
}
|
|
3495
3496
|
function modelRoutes(profile, requested) {
|
|
3496
3497
|
const routes = [{
|
|
@@ -3581,4 +3582,4 @@ function profileFileIdentity(root, relPath) {
|
|
|
3581
3582
|
//#endregion
|
|
3582
3583
|
export { recoveredTerminalRecord as A, candidateCleanupDeadline as C, assertTerminalAllowedInPhase as D, assertRecoveryMatchesStaged as E, terminalRecord as F, rejectedStage as M, requireStagedTerminal as N, assertTerminalMatchesClaim as O, sealTerminalDigest as P, candidateClaimFileInternals as S, withinCandidateCleanupDeadline as T, consumePreparedCandidateExecution as _, AGENT_CANDIDATE_EXECUTION_SUPPORT as a, assertAgentCandidateExecutionRoots as b, executePreparedAgentCandidate as c, sealAgentCandidateModelSettlement as d, usdToNanos as f, beginPreparedCandidateDisposal as g, assertPreparedCandidateIntegrity as h, candidateKnowledgeExecutionPaths as i, rejectedFinish as j, assertTerminalMatchesStaged as k, RecoveryAgentCandidateTraceStore as l, candidateExecutionClaim as m, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV as n, verifiedResourceTextByDigest as o, sealAgentCandidateExecutorStopAcknowledgement as p, CANDIDATE_KNOWLEDGE_ROOT_ENV as r, verifyAgentCandidateBundle as s, prepareAgentCandidateExecution as t, persistCandidateModelSettlementEvidence as u, CANDIDATE_TRACE_ENV as v, candidateCleanupTimeout as w, InMemoryAgentCandidateExecutionClaimStore as x, CANDIDATE_TRACE_TAGS as y };
|
|
3583
3584
|
|
|
3584
|
-
//# sourceMappingURL=prepare-
|
|
3585
|
+
//# sourceMappingURL=prepare-BrgoOJmU.js.map
|