@agentproto/runtime 6.6.0 → 6.6.1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SessionDescriptor, a as SessionsRegistry, b as SandboxProviderResolver, P as PrFooterState, c as SessionEventBus, T as ToolCallRecord, G as GhRunner$1, I as InboundRouteMode, W as WorkspaceBrains, A as AccountSlots, E as EventRing, d as AgentAdapterResolver, e as SpawnAgentSessionDeps, U as UserPreset, f as SpawnAgentSessionInput, M as ModelPolicy, B as BrowserAdapterResolver, g as BrowserAdapterLister, h as BrowserAdapterInfo, i as SandboxProviderHandle, j as PendingPromptView, k as StatsSessionDescriptor, l as ProcRow, m as ProvisionInFlight, n as ProvisionTracker, o as SessionCrashReason, p as SessionUsage, q as UsageReadResult, r as UsageRollup, R as RemainingQuotaReader, Q as QuotaReadableProfile, s as UsageSnapshotRecord, t as SessionMessage, u as QueuedDigest, v as QueuedPrompt, F as ForwardHttpRequest, w as ForwardHttpResponse, H as HostRegistry, J as JoinTokenRegistry, x as SessionAwaitingQuestion, C as CompletionPolicySupervisor, y as PolicyRunState, z as AccountSlotSwapPlan, D as AccountSlotPreferPlan, K as AccountHealthStore, L as ResolveProfileRefDeps, N as AccountHealthView, O as StoredProfileQuota, V as AuthOptions, X as AgentAdapterLister, Y as AdapterCapabilitiesLister, Z as AgentAdapterInstaller, _ as CatalogModelsLister, $ as PtyFactory, a0 as SandboxProviderLister, a1 as WorktreeProvisioner, a2 as WorktreeStatusLister, a3 as WorktreeGcRunner, a4 as BranchGcRunner, a5 as BranchGcVerdictRecorder, a6 as BranchGcVerdictReader, a7 as BranchGcRestorer, a8 as BranchGcOperatorApprover, a9 as WorktreeAutoReclaimer, aa as TerminalUsageReader, ab as SandboxCheckpointReclaimer, ac as PrStateResolver, ad as TunnelRegistry, ae as OrchestratorScope, af as ApprovalsEngine } from './sessions-CjMWkU32.js';
2
- export { ag as ACCOUNT_BACKOFF_MS, ah as APP_INSTALL_WORKTREE_REPOINT_REFUSED, ai as AccountSlotError, aj as AccountSlotErrorCode, ak as AccountSlotExhaustedError, al as AccountSlotRow, am as AccountSlotTarget, an as AccountUntilBasis, ao as ActivityKind, ap as ActivityListFilter, aq as ActivityPolicyLister, ar as ActivityProjector, as as ActivityProjectorRegistry, at as ActivityProjectorSession, au as ActivityRecord, av as ActivitySource, aw as ActivityState, ax as ActivityWaitingOn, ay as ActivityWorkflowLister, az as AdapterCacheRetentionOptions, aA as AdapterCacheRetentionRegistry, aB as AdapterCacheRetentionResult, aC as AdapterInstallResult, aD as AdapterListEntry, aE as AgentSessionLike, aF as AgentStreamEvent, aG as AnthropicReaderConfig, aH as AnthropicRemainingQuotaReader, aI as AttachPolicyInput, aJ as BrainIngestLimits, aK as BranchGcApplyScopeCounts, aL as BranchGcApplySummary, aM as BranchGcClass, aN as BranchGcCoverageView, aO as BranchGcHoldReason, aP as BranchGcKind, aQ as BranchGcOperatorApprovalInput, aR as BranchGcOperatorApprovalResult, aS as BranchGcOutcomeView, aT as BranchGcPlanEntryView, aU as BranchGcPlanView, aV as BranchGcReclaimReason, aW as BranchGcRestoreInput, aX as BranchGcRestoreOutcomeView, aY as BranchGcRestoreResultView, aZ as BranchGcResult, a_ as BranchGcRunInput, a$ as BranchGcStatus, b0 as BranchGcSummaryView, b1 as BranchGcTriageVerdict, b2 as BranchGcVerdictInput, b3 as BranchGcVerdictLookupInput, b4 as BranchGcVerdictRecordView, b5 as BranchGcVerifiedPrView, b6 as CLAUDE_SESSION_HEADER, b7 as CommandGroupStats, b8 as CommitSpec, b9 as CreateJoinTokenInput, ba as CreatedJoinToken, bb as DECLARED_CC_ADDRESS, bc as DEFAULT_ADAPTER_CACHE_RETENTION_DAYS, bd as DEFAULT_BRAIN_MAX_TRANSCRIPT_BYTES, be as DEFAULT_BRAIN_MAX_TRANSCRIPT_TEXT_BYTES, bf as DEFAULT_NESTED_AGENT, bg as DEFAULT_ORCHESTRATOR_TOOLS, bh as DEFAULT_REVIEW_SESSION_RETENTION_DAYS, bi as DEFAULT_ROOT_AGENT, bj as DEFAULT_SANDBOX_GC_PROVIDER_SLUGS, bk as DEFAULT_SANDBOX_PROVIDER_SLUGS, bl as DEFAULT_SESSION_RETENTION_BOOT_DELAY_MS, bm as DEFAULT_SESSION_RETENTION_INTERVAL_MS, bn as DEFAULT_WORKTREE_ISOLATION, bo as DEFAULT_WORKTREE_PROVISION_CONCURRENCY, bp as DEFAULT_WORKTREE_PROVISION_MAX_MS, bq as DEFAULT_WORKTREE_PROVISION_STALL_TIMEOUT_MS, br as DefaultAgentConfig, bs as EagerResumeFailReason, bt as EagerResumeOutcome, bu as EagerResumeSkipReason, bv as EnableInput, bw as EnableResult, bx as GateSpec, by as HOSTS_VERSION, bz as HOST_HANDSHAKE_REMEDIATION_HINT, bA as HOST_SCOPE_HEADER, bB as HostInfo, bC as HostJoinMeta, bD as HostRecord, bE as HostRegistryDeps, bF as INBOUND_PROVIDERS, bG as InboundEndpoint, bH as InboundEndpointStore, bI as InboundEndpointStoreOptions, bJ as InboundEnqueuePrompt, bK as InboundIsSessionAlive, bL as InboundMessage, bM as InboundProvider, bN as InboundRestartSession, bO as InboundRouterDeps, bP as InboundRouterLog, bQ as InboundSpawnForContact, bR as JOIN_TOKENS_VERSION, bS as JoinTokenRecord, bT as JoinTokenRegistryDeps, bU as JudgeGateSpec, bV as LEGACY_CACHE_PATHS, bW as LabeledProcessStatsReport, bX as LabeledSessionStats, bY as LlmEndpointDescriptor, bZ as LlmEndpointStatus, b_ as LlmEndpointStatusReport, b$ as MAX_MESSAGE_DATA_BYTES, c0 as MESSAGE_KINDS, c1 as MESSAGE_PREAMBLE, c2 as MESSAGE_TAG, c3 as MESSAGE_URGENCIES, c4 as MessageAclDecision, c5 as MessageAclOptions, c6 as MessageDeliveryVia, c7 as MessageFilter, c8 as MessageKind, c9 as MessageRelation, ca as MessageTreeNode, cb as MessageUrgency, cc as NO_OUTPUT_STALL_TURN_ERROR, cd as NormalizeInboundResult, ce as OnFailSpec, cf as OrchestratorGatewayDeps, cg as OrchestratorInjection, ch as OrchestratorInjector, ci as OrchestratorInjectorDeps, cj as OrchestratorMcpServerFactory, ck as OrphanGroup, cl as OrphanReaperRegistry, cm as PERMISSION_ACTIONS, cn as PERMISSION_ACTION_INFO, co as POSTURE_NATIVE_ALIASES, cp as POSTURE_PREAMBLES, cq as PROTECTED_MESSAGE_KINDS, cr as PendingPermission, cs as PermissionAction, ct as PermissionContext, cu as PermissionDecision, cv as PermissionDecisionBody, cw as PermissionDeniedError, cx as PermissionPrincipal, cy as PermissionResource, cz as PermissionRespondInput, cA as PermissionRespondResult, cB as PolicyRunStatus, cC as PolicyVerdict, cD as PostureEnforcement, cE as PostureResolution, cF as PrResolution, cG as PrResolvedState, cH as PricingResolver, cI as ProcessDetail, cJ as ProcessStatsReport, cK as ProcessStatsService, cL as QuotaStoreFile, cM as QuotaStoreOptions, cN as RegisterBrowserInput, cO as RegisterSessionInput, cP as RemainingQuota, cQ as RemoteStatus, cR as ResolvedProfileRef, cS as ResourceStats, cT as ResumeDisabledError, cU as SESSION_END_REASONS, cV as SESSION_ID_ENV, cW as SHARED_CLAUDE_DESKTOP_ID, cX as SandboxAdapterInfo, cY as SandboxProviderCapabilities, cZ as ScopeTokenRegistry, c_ as ScopeTokenRegistryOptions, c$ as SessionCurrentPhase, d0 as SessionEndReason, d1 as SessionKind, d2 as SessionMessageFrom, d3 as SessionMessageSentRecord, d4 as SessionObserver, d5 as SessionOutcome, d6 as SessionOutcomeArtifact, d7 as SessionOutcomeCompact, d8 as SessionOutcomeLink, d9 as SessionResourceStats, da as SessionRetentionOptions, db as SessionRetentionRegistry, dc as SessionRetentionResult, dd as SessionRetiredError, de as SessionSnapshots, df as SessionStatus, dg as ShellGateSpec, dh as SpawnAgentInput, di as SpawnSessionInput, dj as StatsDetail, dk as TASK_STATUSES, dl as TaskCaller, dm as TaskChangedEvent, dn as TaskClaimInput, dp as TaskCreateInput, dq as TaskGateOutcome, dr as TaskGateRunner, ds as TaskLedger, dt as TaskLedgerRegistry, du as TaskLedgerSessionSlice, dv as TaskListFilter, dw as TaskRecord, dx as TaskStatus, dy as TaskUpdateInput, dz as TaskVerification, dA as TaskVerifySupervisor, dB as TaskWriteResult, dC as TerminalUsageSources, dD as TokenPricing, dE as ToolPermissionOutcome, dF as ToolPermissionRequest, dG as TransmitterBinding, dH as TransmitterBindingStore, dI as TunnelDescriptor, dJ as TunnelHealth, dK as TunnelHealthState, dL as TunnelProvider, dM as TunnelStartAbortedError, dN as TunnelStatus, dO as UsageBilling, dP as UsageBucket, dQ as UsageComputeInput, dR as UsageDetail, dS as UsageReadContext, dT as UsageSource, dU as UserPresetValidationError, dV as UserPresetsFile, dW as WORKSPACE_SLUG_ENV, dX as WORKTREE_ISOLATION_ENV, dY as WORKTREE_PROVISION_CONCURRENCY_ENV, dZ as WORKTREE_PROVISION_MAX_ENV, d_ as WORKTREE_PROVISION_STALL_TIMEOUT_ENV, d$ as WorktreeDecision, e0 as WorktreeField, e1 as WorktreeGcClass, e2 as WorktreeGcOutcomeView, e3 as WorktreeGcPlanEntryView, e4 as WorktreeGcReclaimReason, e5 as WorktreeGcResult, e6 as WorktreeGcRunInput, e7 as WorktreeProvisionOutcome, e8 as WorktreeProvisionPhase, e9 as WorktreeProvisionProgress, ea as WorktreeProvisionRequest, eb as WorktreeRequest, ec as WorktreeStatusView, ed as accountHealthOf, ee as activityCounts, ef as adoptLegacyOrchestratorScopes, eg as assertDecisionAllows, eh as canonicalForModeId, ei as clearAccountHealth, ej as collectMessageRelations, ek as collectReferencedOrchestratorScopeTokens, el as compactOutcome, em as composeModelPolicies, en as composeSessionObservers, eo as createAccountHealthStore, ep as createActivityProjector, eq as createHostRegistry, er as createInboundEndpointStore, es as createJoinTokenRegistry, et as createOrchestratorInjector, eu as createOrchestratorMcpServerFactory, ev as createProcessStatsService, ew as createScopeTokenRegistry, ex as createSessionMessage, ey as createSessionsRegistry, ez as createSupervisorTaskGateRunner, eA as createTaskLedger, eB as createTerminalUsageReaders, eC as createWorkspaceBrains, eD as decidePermission, eE as decideWorktreeIsolation, eF as declaredSenderPrefix, eG as deleteUserPreset, eH as deriveSessionOutcome, eI as deriveSessionUsage, eJ as detectClaudeBilling, eK as detectCodexBilling, eL as effectiveMessageUrgency, eM as escapeHumanPrompt, eN as escapeMessageBody, eO as filterActivities, eP as findNativeMode, eQ as getProcessStatsService, eR as getUserPreset, eS as isClosedTaskStatus, eT as isKnownSessionEndReason, eU as isMessageAllowed, eV as isNoiseMessage, eW as isOutcomeCompleted, eX as isPermissionAction, eY as isProtectedMessage, eZ as isProviderLimitError, e_ as isReviewLaneSession, e$ as isSlotRef, f0 as isTerminalActivityState, f1 as listAccountHealth, f2 as listUserPresets, f3 as loadAccountSlots, f4 as loadQuotaStore, f5 as loadUserPresets, f6 as loadWorktreeIsolation, f7 as makeSandboxCredsStore, f8 as makeSandboxResolver, f9 as markAccountExhausted, fa as matchesMessageFilter, fb as messageFrom, fc as mintMessageId, fd as narrowOrchestratorTools, fe as normalizeCommand, ff as normalizeInbound, fg as normalizeMessageRelation, fh as normalizeModeId, fi as normalizeUserPreset, fj as normalizeWorktreeField, fk as opencodeBilling, fl as orchestratorScopesFile, fm as paidCostFor, fn as parseAnthropicRateLimitHeaders, fo as parseCodexRolloutUsage, fp as parseExhaustionUntil, fq as parseTaskStatus, fr as parseWindow, fs as parseWorktreeIsolationMode, ft as pickUsageDetail, fu as planAccountSlotPrefer, fv as planAccountSlotSwap, fw as policyToActivities, fx as policyWatchesSession, fy as postureEnforcement, fz as prToActivities, fA as projectSessionUsage, fB as pruneOrchestratorScopesOnBoot, fC as readCodexRolloutUsage, fD as readHostsSnapshot, fE as readProfileQuota, fF as readSessionForBrain, fG as reapOrphanedDescendants, fH as recordProfileQuota, fI as renderInboxDigest, fJ as renderSessionMessage, fK as renderSessionMessages, fL as replyToUnverifiedSenderPrefix, fM as resolveBrainIngestLimits, fN as resolveEffectiveRelation, fO as resolveMessageAcl, fP as resolvePosture, fQ as resolveProfileRef, fR as resolveRelation, fS as rollupUsage, fT as runAdapterCacheRetentionPass, fU as runSessionRetentionPass, fV as samePeerGroup, fW as sameWorkspace, fX as sanitizeLabel, fY as saveUserPreset, fZ as sessionsToMoveOnPrefer, f_ as sessionsToMoveOnSwap, f$ as slotMembers, g0 as slotNameOf, g1 as slotRef, g2 as startHttpServer, g3 as summarizeBranchGcApply, g4 as toWorktreeStatusView, g5 as trackWorktreeProvision, g6 as turnToActivities, g7 as unknownDefaultAgents, g8 as unverifiedSenderPrefix, g9 as userPresetsPath, ga as verifyInboundSignature, gb as withBranchGcApplySummary, gc as workflowToActivities } from './sessions-CjMWkU32.js';
1
+ import { S as SessionDescriptor, a as SessionsRegistry, b as SandboxProviderResolver, P as PrFooterState, c as SessionEventBus, T as ToolCallRecord, G as GhRunner$1, I as InboundRouteMode, W as WorkspaceBrains, A as AccountSlots, E as EventRing, d as AgentAdapterResolver, e as SpawnAgentSessionDeps, U as UserPreset, f as SpawnAgentSessionInput, M as ModelPolicy, B as BrowserAdapterResolver, g as BrowserAdapterLister, h as BrowserAdapterInfo, i as SandboxProviderHandle, j as PendingPromptView, k as StatsSessionDescriptor, l as ProcRow, m as ProvisionInFlight, n as ProvisionTracker, o as SessionCrashReason, p as SessionUsage, q as UsageReadResult, r as UsageRollup, R as RemainingQuotaReader, Q as QuotaReadableProfile, s as UsageSnapshotRecord, t as SessionMessage, u as QueuedDigest, v as QueuedPrompt, F as ForwardHttpRequest, w as ForwardHttpResponse, H as HostRegistry, J as JoinTokenRegistry, x as SessionAwaitingQuestion, C as CompletionPolicySupervisor, y as PolicyRunState, z as AccountSlotSwapPlan, D as AccountSlotPreferPlan, K as AccountHealthStore, L as ResolveProfileRefDeps, N as AccountHealthView, O as StoredProfileQuota, V as AuthOptions, X as AgentAdapterLister, Y as AdapterCapabilitiesLister, Z as AgentAdapterInstaller, _ as CatalogModelsLister, $ as PtyFactory, a0 as SandboxProviderLister, a1 as WorktreeProvisioner, a2 as WorktreeStatusLister, a3 as WorktreeGcRunner, a4 as BranchGcRunner, a5 as BranchGcVerdictRecorder, a6 as BranchGcVerdictReader, a7 as BranchGcRestorer, a8 as BranchGcOperatorApprover, a9 as WorktreeAutoReclaimer, aa as TerminalUsageReader, ab as SandboxCheckpointReclaimer, ac as PrStateResolver, ad as TunnelRegistry, ae as OrchestratorScope, af as ApprovalsEngine } from './sessions-zKsQHf3S.js';
2
+ export { ag as ACCOUNT_BACKOFF_MS, ah as APP_INSTALL_WORKTREE_REPOINT_REFUSED, ai as AccountSlotError, aj as AccountSlotErrorCode, ak as AccountSlotExhaustedError, al as AccountSlotRow, am as AccountSlotTarget, an as AccountUntilBasis, ao as ActivityKind, ap as ActivityListFilter, aq as ActivityPolicyLister, ar as ActivityProjector, as as ActivityProjectorRegistry, at as ActivityProjectorSession, au as ActivityRecord, av as ActivitySource, aw as ActivityState, ax as ActivityWaitingOn, ay as ActivityWorkflowLister, az as AdapterCacheRetentionOptions, aA as AdapterCacheRetentionRegistry, aB as AdapterCacheRetentionResult, aC as AdapterInstallResult, aD as AdapterListEntry, aE as AgentSessionLike, aF as AgentStreamEvent, aG as AnthropicReaderConfig, aH as AnthropicRemainingQuotaReader, aI as AttachPolicyInput, aJ as BrainIngestLimits, aK as BranchGcApplyScopeCounts, aL as BranchGcApplySummary, aM as BranchGcClass, aN as BranchGcCoverageView, aO as BranchGcHoldReason, aP as BranchGcKind, aQ as BranchGcOperatorApprovalInput, aR as BranchGcOperatorApprovalResult, aS as BranchGcOutcomeView, aT as BranchGcPlanEntryView, aU as BranchGcPlanView, aV as BranchGcReclaimReason, aW as BranchGcRestoreInput, aX as BranchGcRestoreOutcomeView, aY as BranchGcRestoreResultView, aZ as BranchGcResult, a_ as BranchGcRunInput, a$ as BranchGcStatus, b0 as BranchGcSummaryView, b1 as BranchGcTriageVerdict, b2 as BranchGcVerdictInput, b3 as BranchGcVerdictLookupInput, b4 as BranchGcVerdictRecordView, b5 as BranchGcVerifiedPrView, b6 as CLAUDE_SESSION_HEADER, b7 as CommandGroupStats, b8 as CommitSpec, b9 as CreateJoinTokenInput, ba as CreatedJoinToken, bb as DECLARED_CC_ADDRESS, bc as DEFAULT_ADAPTER_CACHE_RETENTION_DAYS, bd as DEFAULT_BRAIN_MAX_TRANSCRIPT_BYTES, be as DEFAULT_BRAIN_MAX_TRANSCRIPT_TEXT_BYTES, bf as DEFAULT_NESTED_AGENT, bg as DEFAULT_ORCHESTRATOR_TOOLS, bh as DEFAULT_REVIEW_SESSION_RETENTION_DAYS, bi as DEFAULT_ROOT_AGENT, bj as DEFAULT_SANDBOX_GC_PROVIDER_SLUGS, bk as DEFAULT_SANDBOX_PROVIDER_SLUGS, bl as DEFAULT_SESSION_RETENTION_BOOT_DELAY_MS, bm as DEFAULT_SESSION_RETENTION_INTERVAL_MS, bn as DEFAULT_WORKTREE_ISOLATION, bo as DEFAULT_WORKTREE_PROVISION_CONCURRENCY, bp as DEFAULT_WORKTREE_PROVISION_MAX_MS, bq as DEFAULT_WORKTREE_PROVISION_STALL_TIMEOUT_MS, br as DefaultAgentConfig, bs as EagerResumeFailReason, bt as EagerResumeOutcome, bu as EagerResumeSkipReason, bv as EnableInput, bw as EnableResult, bx as GateSpec, by as HOSTS_VERSION, bz as HOST_HANDSHAKE_REMEDIATION_HINT, bA as HOST_SCOPE_HEADER, bB as HostInfo, bC as HostJoinMeta, bD as HostRecord, bE as HostRegistryDeps, bF as INBOUND_PROVIDERS, bG as InboundEndpoint, bH as InboundEndpointStore, bI as InboundEndpointStoreOptions, bJ as InboundEnqueuePrompt, bK as InboundIsSessionAlive, bL as InboundMessage, bM as InboundProvider, bN as InboundRestartSession, bO as InboundRouterDeps, bP as InboundRouterLog, bQ as InboundSpawnForContact, bR as JOIN_TOKENS_VERSION, bS as JoinTokenRecord, bT as JoinTokenRegistryDeps, bU as JudgeGateSpec, bV as LEGACY_CACHE_PATHS, bW as LabeledProcessStatsReport, bX as LabeledSessionStats, bY as LlmEndpointDescriptor, bZ as LlmEndpointStatus, b_ as LlmEndpointStatusReport, b$ as MAX_MESSAGE_DATA_BYTES, c0 as MESSAGE_KINDS, c1 as MESSAGE_PREAMBLE, c2 as MESSAGE_TAG, c3 as MESSAGE_URGENCIES, c4 as MessageAclDecision, c5 as MessageAclOptions, c6 as MessageDeliveryVia, c7 as MessageFilter, c8 as MessageKind, c9 as MessageRelation, ca as MessageTreeNode, cb as MessageUrgency, cc as NO_OUTPUT_STALL_TURN_ERROR, cd as NormalizeInboundResult, ce as OnFailSpec, cf as OrchestratorGatewayDeps, cg as OrchestratorInjection, ch as OrchestratorInjector, ci as OrchestratorInjectorDeps, cj as OrchestratorMcpServerFactory, ck as OrphanGroup, cl as OrphanReaperRegistry, cm as PERMISSION_ACTIONS, cn as PERMISSION_ACTION_INFO, co as POSTURE_NATIVE_ALIASES, cp as POSTURE_PREAMBLES, cq as PROTECTED_MESSAGE_KINDS, cr as PendingPermission, cs as PermissionAction, ct as PermissionContext, cu as PermissionDecision, cv as PermissionDecisionBody, cw as PermissionDeniedError, cx as PermissionPrincipal, cy as PermissionResource, cz as PermissionRespondInput, cA as PermissionRespondResult, cB as PolicyRunStatus, cC as PolicyVerdict, cD as PostureEnforcement, cE as PostureResolution, cF as PrResolution, cG as PrResolvedState, cH as PricingResolver, cI as ProcessDetail, cJ as ProcessStatsReport, cK as ProcessStatsService, cL as QuotaStoreFile, cM as QuotaStoreOptions, cN as RegisterBrowserInput, cO as RegisterSessionInput, cP as RemainingQuota, cQ as RemoteStatus, cR as ResolvedProfileRef, cS as ResourceStats, cT as ResumeDisabledError, cU as SESSION_END_REASONS, cV as SESSION_ID_ENV, cW as SHARED_CLAUDE_DESKTOP_ID, cX as SandboxAdapterInfo, cY as SandboxProviderCapabilities, cZ as ScopeTokenRegistry, c_ as ScopeTokenRegistryOptions, c$ as SessionCurrentPhase, d0 as SessionEndReason, d1 as SessionKind, d2 as SessionMessageFrom, d3 as SessionMessageSentRecord, d4 as SessionObserver, d5 as SessionOutcome, d6 as SessionOutcomeArtifact, d7 as SessionOutcomeCompact, d8 as SessionOutcomeLink, d9 as SessionResourceStats, da as SessionRetentionOptions, db as SessionRetentionRegistry, dc as SessionRetentionResult, dd as SessionRetiredError, de as SessionSnapshots, df as SessionStatus, dg as ShellGateSpec, dh as SpawnAgentInput, di as SpawnSessionInput, dj as StatsDetail, dk as TASK_STATUSES, dl as TaskCaller, dm as TaskChangedEvent, dn as TaskClaimInput, dp as TaskCreateInput, dq as TaskGateOutcome, dr as TaskGateRunner, ds as TaskLedger, dt as TaskLedgerRegistry, du as TaskLedgerSessionSlice, dv as TaskListFilter, dw as TaskRecord, dx as TaskStatus, dy as TaskUpdateInput, dz as TaskVerification, dA as TaskVerifySupervisor, dB as TaskWriteResult, dC as TerminalUsageSources, dD as TokenPricing, dE as ToolPermissionOutcome, dF as ToolPermissionRequest, dG as TransmitterBinding, dH as TransmitterBindingStore, dI as TunnelDescriptor, dJ as TunnelHealth, dK as TunnelHealthState, dL as TunnelProvider, dM as TunnelStartAbortedError, dN as TunnelStatus, dO as UsageBilling, dP as UsageBucket, dQ as UsageComputeInput, dR as UsageDetail, dS as UsageReadContext, dT as UsageSource, dU as UserPresetValidationError, dV as UserPresetsFile, dW as WORKSPACE_SLUG_ENV, dX as WORKTREE_ISOLATION_ENV, dY as WORKTREE_PROVISION_CONCURRENCY_ENV, dZ as WORKTREE_PROVISION_MAX_ENV, d_ as WORKTREE_PROVISION_STALL_TIMEOUT_ENV, d$ as WorktreeDecision, e0 as WorktreeField, e1 as WorktreeGcClass, e2 as WorktreeGcOutcomeView, e3 as WorktreeGcPlanEntryView, e4 as WorktreeGcReclaimReason, e5 as WorktreeGcResult, e6 as WorktreeGcRunInput, e7 as WorktreeProvisionOutcome, e8 as WorktreeProvisionPhase, e9 as WorktreeProvisionProgress, ea as WorktreeProvisionRequest, eb as WorktreeRequest, ec as WorktreeStatusView, ed as accountHealthOf, ee as activityCounts, ef as adoptLegacyOrchestratorScopes, eg as assertDecisionAllows, eh as canonicalForModeId, ei as clearAccountHealth, ej as collectMessageRelations, ek as collectReferencedOrchestratorScopeTokens, el as compactOutcome, em as composeModelPolicies, en as composeSessionObservers, eo as createAccountHealthStore, ep as createActivityProjector, eq as createHostRegistry, er as createInboundEndpointStore, es as createJoinTokenRegistry, et as createOrchestratorInjector, eu as createOrchestratorMcpServerFactory, ev as createProcessStatsService, ew as createScopeTokenRegistry, ex as createSessionMessage, ey as createSessionsRegistry, ez as createSupervisorTaskGateRunner, eA as createTaskLedger, eB as createTerminalUsageReaders, eC as createWorkspaceBrains, eD as decidePermission, eE as decideWorktreeIsolation, eF as declaredSenderPrefix, eG as deleteUserPreset, eH as deriveSessionOutcome, eI as deriveSessionUsage, eJ as detectClaudeBilling, eK as detectCodexBilling, eL as effectiveMessageUrgency, eM as escapeHumanPrompt, eN as escapeMessageBody, eO as filterActivities, eP as findNativeMode, eQ as getProcessStatsService, eR as getUserPreset, eS as isClosedTaskStatus, eT as isKnownSessionEndReason, eU as isMessageAllowed, eV as isNoiseMessage, eW as isOutcomeCompleted, eX as isPermissionAction, eY as isProtectedMessage, eZ as isProviderLimitError, e_ as isReviewLaneSession, e$ as isSlotRef, f0 as isTerminalActivityState, f1 as listAccountHealth, f2 as listUserPresets, f3 as loadAccountSlots, f4 as loadQuotaStore, f5 as loadUserPresets, f6 as loadWorktreeIsolation, f7 as makeSandboxCredsStore, f8 as makeSandboxResolver, f9 as markAccountExhausted, fa as matchesMessageFilter, fb as messageFrom, fc as mintMessageId, fd as narrowOrchestratorTools, fe as normalizeCommand, ff as normalizeInbound, fg as normalizeMessageRelation, fh as normalizeModeId, fi as normalizeUserPreset, fj as normalizeWorktreeField, fk as opencodeBilling, fl as orchestratorScopesFile, fm as paidCostFor, fn as parseAnthropicRateLimitHeaders, fo as parseCodexRolloutUsage, fp as parseExhaustionUntil, fq as parseTaskStatus, fr as parseWindow, fs as parseWorktreeIsolationMode, ft as pickUsageDetail, fu as planAccountSlotPrefer, fv as planAccountSlotSwap, fw as policyToActivities, fx as policyWatchesSession, fy as postureEnforcement, fz as prToActivities, fA as projectSessionUsage, fB as pruneOrchestratorScopesOnBoot, fC as readCodexRolloutUsage, fD as readHostsSnapshot, fE as readProfileQuota, fF as readSessionForBrain, fG as reapOrphanedDescendants, fH as recordProfileQuota, fI as renderInboxDigest, fJ as renderSessionMessage, fK as renderSessionMessages, fL as replyToUnverifiedSenderPrefix, fM as resolveBrainIngestLimits, fN as resolveEffectiveRelation, fO as resolveMessageAcl, fP as resolvePosture, fQ as resolveProfileRef, fR as resolveRelation, fS as rollupUsage, fT as runAdapterCacheRetentionPass, fU as runSessionRetentionPass, fV as samePeerGroup, fW as sameWorkspace, fX as sanitizeLabel, fY as saveUserPreset, fZ as sessionsToMoveOnPrefer, f_ as sessionsToMoveOnSwap, f$ as slotMembers, g0 as slotNameOf, g1 as slotRef, g2 as startHttpServer, g3 as summarizeBranchGcApply, g4 as toWorktreeStatusView, g5 as trackWorktreeProvision, g6 as turnToActivities, g7 as unknownDefaultAgents, g8 as unverifiedSenderPrefix, g9 as userPresetsPath, ga as verifyInboundSignature, gb as withBranchGcApplySummary, gc as workflowToActivities } from './sessions-zKsQHf3S.js';
3
3
  import { DoctypeSpec } from '@agentproto/manifest';
4
4
  import { S as SpawnDefaultsConfig, T as TurnRetryInput, a as SpawnBrowserMode, P as PreflightRegistry, b as CredentialSource, A as AdapterAuthDescriptor, R as ResolvedAuthSpec, D as DeclaredAdapterOption } from './spawn-defaults-B0Yi8_MN.js';
5
5
  export { c as AuthEcho, d as AuthResolutionError, e as CLAUDE_CODE_OAUTH_SOURCE, f as ContextSettings, g as DefaultsAdapterAuthConfig, h as DefaultsAdapterConfig, i as DeferredToolsConfig, j as DelegationGateMode, k as DelegationReport, l as DelegationVerdict, m as ProfileGateMode, n as ProfileReport, o as ProfileVerdict, p as ResolveSubscriptionCredentialInput, q as ResolvedSpawnAuthMaterial, r as ResolvedSpawnDefaults, s as SubscriptionCredentialResolution, t as SubscriptionSourceError, u as credentialFingerprint, v as harnessDefaultsFor, w as harnessDefaultsMap, x as layerContextSettings, y as normalizeSkillsOption, z as resolveAuthSpec, B as resolveDeferredToolsGatewayOption, E as resolveSpawnDefaults, F as resolveSubscriptionCredential } from './spawn-defaults-B0Yi8_MN.js';
@@ -632,17 +632,7 @@ interface ReactionHealth {
632
632
  * cron `kind:"agent"` action and a routine `target.agent` accept.
633
633
  */
634
634
  declare const detachedAgentStartSchema: z.ZodObject<{
635
- model: z.ZodOptional<z.ZodString>;
636
- effort: z.ZodOptional<z.ZodString>;
637
- access: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
638
- profileRef?: string | undefined;
639
- profileRefs?: string[] | undefined;
640
- delegateProfileRefs?: string[] | undefined;
641
- }, unknown, z.core.$ZodTypeInternals<{
642
- profileRef?: string | undefined;
643
- profileRefs?: string[] | undefined;
644
- delegateProfileRefs?: string[] | undefined;
645
- }, unknown>>, unknown>>;
635
+ label: z.ZodOptional<z.ZodString>;
646
636
  route: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
647
637
  gateway: string;
648
638
  baseUrl?: string | undefined;
@@ -650,63 +640,11 @@ declare const detachedAgentStartSchema: z.ZodObject<{
650
640
  gateway: string;
651
641
  baseUrl?: string | undefined;
652
642
  }, unknown>>, unknown>>;
653
- posture: z.ZodOptional<z.ZodString>;
654
- contextProfile: z.ZodOptional<z.ZodString>;
655
- costBudget: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
656
- maxCostUsd: number;
657
- window: string;
658
- scope: "profile" | "session";
659
- }, unknown, z.core.$ZodTypeInternals<{
660
- maxCostUsd: number;
661
- window: string;
662
- scope: "profile" | "session";
663
- }, unknown>>, unknown>>;
664
- contextContinuity: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
665
- mode?: "ask" | "manual" | "auto" | undefined;
666
- autoCompactAtTokens?: number | undefined;
667
- warnAtPct?: number | undefined;
668
- compactAtPct?: number | undefined;
669
- continueFreshAtPct?: number | undefined;
670
- hardStopAtPct?: number | undefined;
671
- handoffAtQuotaRemaining?: number | undefined;
672
- compactRequiresOperator?: boolean | undefined;
673
- compactHandoffTurn?: boolean | undefined;
674
- goal?: boolean | undefined;
675
- plan?: boolean | undefined;
676
- decisions?: boolean | undefined;
677
- changedFiles?: boolean | undefined;
678
- gitStatus?: boolean | undefined;
679
- tests?: boolean | undefined;
680
- errors?: boolean | undefined;
681
- risks?: boolean | undefined;
682
- nextStep?: boolean | undefined;
683
- config?: boolean | undefined;
684
- label?: string | undefined;
685
- }, unknown, z.core.$ZodTypeInternals<{
686
- mode?: "ask" | "manual" | "auto" | undefined;
687
- autoCompactAtTokens?: number | undefined;
688
- warnAtPct?: number | undefined;
689
- compactAtPct?: number | undefined;
690
- continueFreshAtPct?: number | undefined;
691
- hardStopAtPct?: number | undefined;
692
- handoffAtQuotaRemaining?: number | undefined;
693
- compactRequiresOperator?: boolean | undefined;
694
- compactHandoffTurn?: boolean | undefined;
695
- goal?: boolean | undefined;
696
- plan?: boolean | undefined;
697
- decisions?: boolean | undefined;
698
- changedFiles?: boolean | undefined;
699
- gitStatus?: boolean | undefined;
700
- tests?: boolean | undefined;
701
- errors?: boolean | undefined;
702
- risks?: boolean | undefined;
703
- nextStep?: boolean | undefined;
704
- config?: boolean | undefined;
705
- label?: string | undefined;
706
- }, unknown>>, unknown>>;
643
+ model: z.ZodOptional<z.ZodString>;
644
+ mode: z.ZodOptional<z.ZodString>;
707
645
  mcpServers: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
708
646
  name: string;
709
- transport: "stdio" | "http" | "sse";
647
+ transport: "http" | "stdio" | "sse";
710
648
  ref?: string | undefined;
711
649
  headers?: Record<string, string> | undefined;
712
650
  credentialRef?: string | undefined;
@@ -714,44 +652,55 @@ declare const detachedAgentStartSchema: z.ZodObject<{
714
652
  env?: Record<string, string> | undefined;
715
653
  }[], unknown, z.core.$ZodTypeInternals<{
716
654
  name: string;
717
- transport: "stdio" | "http" | "sse";
655
+ transport: "http" | "stdio" | "sse";
718
656
  ref?: string | undefined;
719
657
  headers?: Record<string, string> | undefined;
720
658
  credentialRef?: string | undefined;
721
659
  args?: string[] | undefined;
722
660
  env?: Record<string, string> | undefined;
723
661
  }[], unknown>>, unknown>>;
724
- harness: z.ZodOptional<z.ZodString>;
725
- workspaceSlug: z.ZodOptional<z.ZodString>;
726
- browser: z.ZodOptional<z.ZodType<false | "headless", unknown, z.core.$ZodTypeInternals<false | "headless", unknown>>>;
727
- operator: z.ZodOptional<z.ZodString>;
728
- agent: z.ZodOptional<z.ZodString>;
729
- full: z.ZodOptional<z.ZodBoolean>;
730
- adapter: z.ZodOptional<z.ZodString>;
731
- cloud: z.ZodOptional<z.ZodString>;
732
- cwd: z.ZodOptional<z.ZodString>;
733
- resumeSessionId: z.ZodOptional<z.ZodString>;
734
- commandSandbox: z.ZodOptional<z.ZodEnum<{
735
- workspace: "workspace";
736
- off: "off";
737
- strict: "strict";
738
- }>>;
662
+ origin: z.ZodOptional<z.ZodString>;
663
+ role: z.ZodOptional<z.ZodString>;
739
664
  auth: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
740
665
  [x: string]: unknown;
741
- mode?: "subscription" | "api-key" | undefined;
666
+ mode?: "api-key" | "subscription" | undefined;
742
667
  token?: string | undefined;
743
668
  source?: string | undefined;
744
669
  apiKey?: string | undefined;
745
670
  loginFile?: boolean | undefined;
746
671
  }, unknown, z.core.$ZodTypeInternals<{
747
672
  [x: string]: unknown;
748
- mode?: "subscription" | "api-key" | undefined;
673
+ mode?: "api-key" | "subscription" | undefined;
749
674
  token?: string | undefined;
750
675
  source?: string | undefined;
751
676
  apiKey?: string | undefined;
752
677
  loginFile?: boolean | undefined;
753
678
  }, unknown>>, unknown>>;
679
+ prompt: z.ZodOptional<z.ZodType<string | Record<string, unknown> | Record<string, unknown>[], unknown, z.core.$ZodTypeInternals<string | Record<string, unknown> | Record<string, unknown>[], unknown>>>;
680
+ agent: z.ZodOptional<z.ZodString>;
681
+ adapter: z.ZodOptional<z.ZodString>;
682
+ parent: z.ZodOptional<z.ZodString>;
683
+ parentSessionId: z.ZodOptional<z.ZodString>;
684
+ agentId: z.ZodOptional<z.ZodString>;
685
+ cwd: z.ZodOptional<z.ZodString>;
754
686
  options: z.ZodOptional<z.ZodPreprocess<z.ZodType<Record<string, string | number | boolean>, unknown, z.core.$ZodTypeInternals<Record<string, string | number | boolean>, unknown>>, unknown>>;
687
+ resumeSessionId: z.ZodOptional<z.ZodString>;
688
+ sandboxCheckpoint: z.ZodOptional<z.ZodPreprocess<z.ZodAny & z.ZodType<false | {
689
+ enabled?: boolean | undefined;
690
+ on?: ("turn-end" | "teardown" | "interval")[] | undefined;
691
+ refPrefix?: string | undefined;
692
+ minIntervalMs?: number | undefined;
693
+ intervalMs?: number | undefined;
694
+ timeoutMs?: number | undefined;
695
+ }, any, z.core.$ZodTypeInternals<false | {
696
+ enabled?: boolean | undefined;
697
+ on?: ("turn-end" | "teardown" | "interval")[] | undefined;
698
+ refPrefix?: string | undefined;
699
+ minIntervalMs?: number | undefined;
700
+ intervalMs?: number | undefined;
701
+ timeoutMs?: number | undefined;
702
+ }, any>>, unknown>>;
703
+ workspaceSlug: z.ZodOptional<z.ZodString>;
755
704
  restartPolicy: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
756
705
  on: ("error" | "crashed" | "sandbox-gone")[];
757
706
  maxRetries: number;
@@ -814,172 +763,30 @@ declare const detachedAgentStartSchema: z.ZodObject<{
814
763
  allow?: string[] | undefined;
815
764
  block?: string[] | undefined;
816
765
  }, unknown>>, unknown>>;
817
- label: z.ZodOptional<z.ZodString>;
818
766
  keepAlive: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
819
767
  allowPromptFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
768
  labelAddressing: z.ZodOptional<z.ZodEnum<{
821
769
  open: "open";
822
- tree: "tree";
823
770
  operator: "operator";
771
+ tree: "tree";
824
772
  }>>;
773
+ operator: z.ZodOptional<z.ZodString>;
825
774
  operatorDigest: z.ZodOptional<z.ZodString>;
826
- mode: z.ZodOptional<z.ZodString>;
775
+ harness: z.ZodOptional<z.ZodString>;
776
+ effort: z.ZodOptional<z.ZodString>;
777
+ posture: z.ZodOptional<z.ZodString>;
778
+ contextProfile: z.ZodOptional<z.ZodString>;
827
779
  skills: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
828
780
  bundles: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
829
- parentSessionId: z.ZodOptional<z.ZodString>;
830
781
  notifyParentOnCrash: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
831
782
  permissionHold: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
832
- succeeds: z.ZodOptional<z.ZodString>;
833
- origin: z.ZodOptional<z.ZodString>;
834
- sandbox: z.ZodOptional<z.ZodPreprocess<z.ZodType<string | {
835
- provider: string;
836
- config: {
837
- [x: string]: any;
838
- installHarnesses?: string[] | undefined;
839
- };
840
- mounts: any[];
841
- read_only: boolean;
842
- reuse?: string | undefined;
843
- schema?: "sandbox/v1" | undefined;
844
- id?: string | undefined;
845
- version?: string | undefined;
846
- limits?: {
847
- timeout_ms?: number | undefined;
848
- memory_mb?: number | undefined;
849
- cpu_ms?: number | undefined;
850
- cpus?: number | undefined;
851
- } | undefined;
852
- env?: {
853
- passthrough: string[];
854
- auth?: any;
855
- autoPassthrough?: boolean | undefined;
856
- } | undefined;
857
- network?: {
858
- egress: string[];
859
- egressIp: string;
860
- } | undefined;
861
- join?: {
862
- tokenEnv: string;
863
- } | undefined;
864
- identity?: any;
865
- policy?: any;
866
- lifecycle?: {
867
- pause_after_idle?: string | undefined;
868
- destroy_on?: string | undefined;
869
- } | undefined;
870
- extraPorts?: number[] | undefined;
871
- metadata?: Record<string, any> | undefined;
872
- }, unknown, z.core.$ZodTypeInternals<string | {
873
- provider: string;
874
- config: {
875
- [x: string]: any;
876
- installHarnesses?: string[] | undefined;
877
- };
878
- mounts: any[];
879
- read_only: boolean;
880
- reuse?: string | undefined;
881
- schema?: "sandbox/v1" | undefined;
882
- id?: string | undefined;
883
- version?: string | undefined;
884
- limits?: {
885
- timeout_ms?: number | undefined;
886
- memory_mb?: number | undefined;
887
- cpu_ms?: number | undefined;
888
- cpus?: number | undefined;
889
- } | undefined;
890
- env?: {
891
- passthrough: string[];
892
- auth?: any;
893
- autoPassthrough?: boolean | undefined;
894
- } | undefined;
895
- network?: {
896
- egress: string[];
897
- egressIp: string;
898
- } | undefined;
899
- join?: {
900
- tokenEnv: string;
901
- } | undefined;
902
- identity?: any;
903
- policy?: any;
904
- lifecycle?: {
905
- pause_after_idle?: string | undefined;
906
- destroy_on?: string | undefined;
907
- } | undefined;
908
- extraPorts?: number[] | undefined;
909
- metadata?: Record<string, any> | undefined;
910
- }, unknown>>, unknown>>;
911
- parent: z.ZodOptional<z.ZodString>;
912
- prompt: z.ZodOptional<z.ZodType<string | Record<string, unknown> | Record<string, unknown>[], unknown, z.core.$ZodTypeInternals<string | Record<string, unknown> | Record<string, unknown>[], unknown>>>;
913
- deviceBridge: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
914
- attach: z.ZodOptional<z.ZodPreprocess<z.ZodType<boolean | {
915
- parent?: string | undefined;
916
- }, unknown, z.core.$ZodTypeInternals<boolean | {
917
- parent?: string | undefined;
918
- }, unknown>>, unknown>>;
919
- boardId: z.ZodOptional<z.ZodString>;
920
- agentId: z.ZodOptional<z.ZodString>;
921
- agentPath: z.ZodOptional<z.ZodString>;
922
- daemonMount: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
923
- inference: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
924
- endpoint?: string | undefined;
925
- model?: string | undefined;
926
- force?: boolean | undefined;
927
- headroomPct?: number | undefined;
928
- }, unknown, z.core.$ZodTypeInternals<{
929
- endpoint?: string | undefined;
930
- model?: string | undefined;
931
- force?: boolean | undefined;
932
- headroomPct?: number | undefined;
933
- }, unknown>>, unknown>>;
934
- orchestrator: z.ZodOptional<z.ZodPreprocess<z.ZodType<boolean | {
935
- tools?: string[] | undefined;
936
- maxDepth?: number | undefined;
937
- maxChildren?: number | undefined;
938
- }, unknown, z.core.$ZodTypeInternals<boolean | {
939
- tools?: string[] | undefined;
940
- maxDepth?: number | undefined;
941
- maxChildren?: number | undefined;
942
- }, unknown>>, unknown>>;
943
- notifyUrl: z.ZodOptional<z.ZodString>;
944
- notifySecret: z.ZodOptional<z.ZodString>;
945
- maxCostUsd: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
946
- hooks: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
947
- clerk?: {
948
- enabled?: boolean | undefined;
949
- on?: "turn_end" | undefined;
950
- debounceMs?: number | undefined;
951
- run?: {
952
- routine?: string | undefined;
953
- command?: string | undefined;
954
- args?: string[] | undefined;
955
- cwd?: string | undefined;
956
- timeoutMs?: number | undefined;
957
- } | undefined;
958
- exclude?: string[] | undefined;
959
- } | undefined;
960
- enabled?: boolean | undefined;
961
- on?: "turn_end" | undefined;
962
- debounceMs?: number | undefined;
963
- }, unknown, z.core.$ZodTypeInternals<{
964
- clerk?: {
965
- enabled?: boolean | undefined;
966
- on?: "turn_end" | undefined;
967
- debounceMs?: number | undefined;
968
- run?: {
969
- routine?: string | undefined;
970
- command?: string | undefined;
971
- args?: string[] | undefined;
972
- cwd?: string | undefined;
973
- timeoutMs?: number | undefined;
974
- } | undefined;
975
- exclude?: string[] | undefined;
976
- } | undefined;
977
- enabled?: boolean | undefined;
978
- on?: "turn_end" | undefined;
979
- debounceMs?: number | undefined;
980
- }, unknown>>, unknown>>;
981
- contextSettings: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
982
- mode?: "ask" | "manual" | "auto" | undefined;
783
+ commandSandbox: z.ZodOptional<z.ZodEnum<{
784
+ off: "off";
785
+ workspace: "workspace";
786
+ strict: "strict";
787
+ }>>;
788
+ contextContinuity: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
789
+ mode?: "manual" | "auto" | "ask" | undefined;
983
790
  autoCompactAtTokens?: number | undefined;
984
791
  warnAtPct?: number | undefined;
985
792
  compactAtPct?: number | undefined;
@@ -1000,7 +807,7 @@ declare const detachedAgentStartSchema: z.ZodObject<{
1000
807
  config?: boolean | undefined;
1001
808
  label?: string | undefined;
1002
809
  }, unknown, z.core.$ZodTypeInternals<{
1003
- mode?: "ask" | "manual" | "auto" | undefined;
810
+ mode?: "manual" | "auto" | "ask" | undefined;
1004
811
  autoCompactAtTokens?: number | undefined;
1005
812
  warnAtPct?: number | undefined;
1006
813
  compactAtPct?: number | undefined;
@@ -1021,25 +828,7 @@ declare const detachedAgentStartSchema: z.ZodObject<{
1021
828
  config?: boolean | undefined;
1022
829
  label?: string | undefined;
1023
830
  }, unknown>>, unknown>>;
1024
- role: z.ZodOptional<z.ZodString>;
1025
- promptAppend: z.ZodOptional<z.ZodString>;
1026
- deferredTools: z.ZodOptional<z.ZodBoolean>;
1027
- trace: z.ZodOptional<z.ZodBoolean>;
1028
- sandboxCheckpoint: z.ZodOptional<z.ZodPreprocess<z.ZodAny & z.ZodType<false | {
1029
- enabled?: boolean | undefined;
1030
- on?: ("turn-end" | "teardown" | "interval")[] | undefined;
1031
- refPrefix?: string | undefined;
1032
- minIntervalMs?: number | undefined;
1033
- intervalMs?: number | undefined;
1034
- timeoutMs?: number | undefined;
1035
- }, any, z.core.$ZodTypeInternals<false | {
1036
- enabled?: boolean | undefined;
1037
- on?: ("turn-end" | "teardown" | "interval")[] | undefined;
1038
- refPrefix?: string | undefined;
1039
- minIntervalMs?: number | undefined;
1040
- intervalMs?: number | undefined;
1041
- timeoutMs?: number | undefined;
1042
- }, any>>, unknown>>;
831
+ succeeds: z.ZodOptional<z.ZodString>;
1043
832
  preflight: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
1044
833
  placement: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1045
834
  ladder: {
@@ -1186,15 +975,6 @@ declare const detachedAgentStartSchema: z.ZodObject<{
1186
975
  agentStartTimeoutMs?: number | undefined;
1187
976
  }[];
1188
977
  }, unknown>>, unknown>>;
1189
- resumeFrom: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1190
- sessionId?: string | undefined;
1191
- label?: string | undefined;
1192
- taskId?: string | undefined;
1193
- }, unknown, z.core.$ZodTypeInternals<{
1194
- sessionId?: string | undefined;
1195
- label?: string | undefined;
1196
- taskId?: string | undefined;
1197
- }, unknown>>, unknown>>;
1198
978
  appServe: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1199
979
  dir: string;
1200
980
  port?: number | undefined;
@@ -1202,6 +982,111 @@ declare const detachedAgentStartSchema: z.ZodObject<{
1202
982
  dir: string;
1203
983
  port?: number | undefined;
1204
984
  }, unknown>>, unknown>>;
985
+ full: z.ZodOptional<z.ZodBoolean>;
986
+ access: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
987
+ profileRef?: string | undefined;
988
+ profileRefs?: string[] | undefined;
989
+ delegateProfileRefs?: string[] | undefined;
990
+ }, unknown, z.core.$ZodTypeInternals<{
991
+ profileRef?: string | undefined;
992
+ profileRefs?: string[] | undefined;
993
+ delegateProfileRefs?: string[] | undefined;
994
+ }, unknown>>, unknown>>;
995
+ costBudget: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
996
+ maxCostUsd: number;
997
+ window: string;
998
+ scope: "session" | "profile";
999
+ }, unknown, z.core.$ZodTypeInternals<{
1000
+ maxCostUsd: number;
1001
+ window: string;
1002
+ scope: "session" | "profile";
1003
+ }, unknown>>, unknown>>;
1004
+ sentinel: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1005
+ browser: z.ZodOptional<z.ZodType<false | "headless", unknown, z.core.$ZodTypeInternals<false | "headless", unknown>>>;
1006
+ attach: z.ZodOptional<z.ZodPreprocess<z.ZodType<boolean | {
1007
+ parent?: string | undefined;
1008
+ }, unknown, z.core.$ZodTypeInternals<boolean | {
1009
+ parent?: string | undefined;
1010
+ }, unknown>>, unknown>>;
1011
+ cloud: z.ZodOptional<z.ZodString>;
1012
+ boardId: z.ZodOptional<z.ZodString>;
1013
+ sandbox: z.ZodOptional<z.ZodPreprocess<z.ZodType<string | {
1014
+ provider: string;
1015
+ config: {
1016
+ [x: string]: any;
1017
+ installHarnesses?: string[] | undefined;
1018
+ };
1019
+ mounts: any[];
1020
+ read_only: boolean;
1021
+ reuse?: string | undefined;
1022
+ schema?: "sandbox/v1" | undefined;
1023
+ id?: string | undefined;
1024
+ version?: string | undefined;
1025
+ limits?: {
1026
+ timeout_ms?: number | undefined;
1027
+ memory_mb?: number | undefined;
1028
+ cpu_ms?: number | undefined;
1029
+ cpus?: number | undefined;
1030
+ } | undefined;
1031
+ env?: {
1032
+ passthrough: string[];
1033
+ auth?: any;
1034
+ autoPassthrough?: boolean | undefined;
1035
+ } | undefined;
1036
+ network?: {
1037
+ egress: string[];
1038
+ egressIp: string;
1039
+ } | undefined;
1040
+ join?: {
1041
+ tokenEnv: string;
1042
+ } | undefined;
1043
+ identity?: any;
1044
+ policy?: any;
1045
+ lifecycle?: {
1046
+ pause_after_idle?: string | undefined;
1047
+ destroy_on?: string | undefined;
1048
+ } | undefined;
1049
+ extraPorts?: number[] | undefined;
1050
+ metadata?: Record<string, any> | undefined;
1051
+ }, unknown, z.core.$ZodTypeInternals<string | {
1052
+ provider: string;
1053
+ config: {
1054
+ [x: string]: any;
1055
+ installHarnesses?: string[] | undefined;
1056
+ };
1057
+ mounts: any[];
1058
+ read_only: boolean;
1059
+ reuse?: string | undefined;
1060
+ schema?: "sandbox/v1" | undefined;
1061
+ id?: string | undefined;
1062
+ version?: string | undefined;
1063
+ limits?: {
1064
+ timeout_ms?: number | undefined;
1065
+ memory_mb?: number | undefined;
1066
+ cpu_ms?: number | undefined;
1067
+ cpus?: number | undefined;
1068
+ } | undefined;
1069
+ env?: {
1070
+ passthrough: string[];
1071
+ auth?: any;
1072
+ autoPassthrough?: boolean | undefined;
1073
+ } | undefined;
1074
+ network?: {
1075
+ egress: string[];
1076
+ egressIp: string;
1077
+ } | undefined;
1078
+ join?: {
1079
+ tokenEnv: string;
1080
+ } | undefined;
1081
+ identity?: any;
1082
+ policy?: any;
1083
+ lifecycle?: {
1084
+ pause_after_idle?: string | undefined;
1085
+ destroy_on?: string | undefined;
1086
+ } | undefined;
1087
+ extraPorts?: number[] | undefined;
1088
+ metadata?: Record<string, any> | undefined;
1089
+ }, unknown>>, unknown>>;
1205
1090
  worktree: z.ZodOptional<z.ZodPreprocess<z.ZodType<boolean | {
1206
1091
  slug?: string | undefined;
1207
1092
  base?: string | undefined;
@@ -1215,12 +1100,127 @@ declare const detachedAgentStartSchema: z.ZodObject<{
1215
1100
  stallTimeoutMs?: number | undefined;
1216
1101
  maxMs?: number | undefined;
1217
1102
  }, unknown>>, unknown>>;
1218
- allowSharedCwd: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1219
- sentinel: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1220
- idempotencyKey: z.ZodOptional<z.ZodString>;
1221
- dedupe: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1103
+ inference: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1104
+ endpoint?: string | undefined;
1105
+ model?: string | undefined;
1106
+ force?: boolean | undefined;
1107
+ headroomPct?: number | undefined;
1108
+ }, unknown, z.core.$ZodTypeInternals<{
1109
+ endpoint?: string | undefined;
1110
+ model?: string | undefined;
1111
+ force?: boolean | undefined;
1112
+ headroomPct?: number | undefined;
1113
+ }, unknown>>, unknown>>;
1114
+ orchestrator: z.ZodOptional<z.ZodPreprocess<z.ZodType<boolean | {
1115
+ tools?: string[] | undefined;
1116
+ maxDepth?: number | undefined;
1117
+ maxChildren?: number | undefined;
1118
+ }, unknown, z.core.$ZodTypeInternals<boolean | {
1119
+ tools?: string[] | undefined;
1120
+ maxDepth?: number | undefined;
1121
+ maxChildren?: number | undefined;
1122
+ }, unknown>>, unknown>>;
1123
+ maxCostUsd: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
1124
+ contextSettings: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1125
+ mode?: "manual" | "auto" | "ask" | undefined;
1126
+ autoCompactAtTokens?: number | undefined;
1127
+ warnAtPct?: number | undefined;
1128
+ compactAtPct?: number | undefined;
1129
+ continueFreshAtPct?: number | undefined;
1130
+ hardStopAtPct?: number | undefined;
1131
+ handoffAtQuotaRemaining?: number | undefined;
1132
+ compactRequiresOperator?: boolean | undefined;
1133
+ compactHandoffTurn?: boolean | undefined;
1134
+ goal?: boolean | undefined;
1135
+ plan?: boolean | undefined;
1136
+ decisions?: boolean | undefined;
1137
+ changedFiles?: boolean | undefined;
1138
+ gitStatus?: boolean | undefined;
1139
+ tests?: boolean | undefined;
1140
+ errors?: boolean | undefined;
1141
+ risks?: boolean | undefined;
1142
+ nextStep?: boolean | undefined;
1143
+ config?: boolean | undefined;
1144
+ label?: string | undefined;
1145
+ }, unknown, z.core.$ZodTypeInternals<{
1146
+ mode?: "manual" | "auto" | "ask" | undefined;
1147
+ autoCompactAtTokens?: number | undefined;
1148
+ warnAtPct?: number | undefined;
1149
+ compactAtPct?: number | undefined;
1150
+ continueFreshAtPct?: number | undefined;
1151
+ hardStopAtPct?: number | undefined;
1152
+ handoffAtQuotaRemaining?: number | undefined;
1153
+ compactRequiresOperator?: boolean | undefined;
1154
+ compactHandoffTurn?: boolean | undefined;
1155
+ goal?: boolean | undefined;
1156
+ plan?: boolean | undefined;
1157
+ decisions?: boolean | undefined;
1158
+ changedFiles?: boolean | undefined;
1159
+ gitStatus?: boolean | undefined;
1160
+ tests?: boolean | undefined;
1161
+ errors?: boolean | undefined;
1162
+ risks?: boolean | undefined;
1163
+ nextStep?: boolean | undefined;
1164
+ config?: boolean | undefined;
1165
+ label?: string | undefined;
1166
+ }, unknown>>, unknown>>;
1167
+ agentPath: z.ZodOptional<z.ZodString>;
1168
+ deferredTools: z.ZodOptional<z.ZodBoolean>;
1222
1169
  fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
1223
1170
  presetId: z.ZodOptional<z.ZodString>;
1171
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1172
+ dedupe: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1173
+ allowSharedCwd: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1174
+ daemonMount: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1175
+ notifyUrl: z.ZodOptional<z.ZodString>;
1176
+ notifySecret: z.ZodOptional<z.ZodString>;
1177
+ hooks: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1178
+ clerk?: {
1179
+ enabled?: boolean | undefined;
1180
+ on?: "turn_end" | undefined;
1181
+ debounceMs?: number | undefined;
1182
+ run?: {
1183
+ routine?: string | undefined;
1184
+ command?: string | undefined;
1185
+ args?: string[] | undefined;
1186
+ cwd?: string | undefined;
1187
+ timeoutMs?: number | undefined;
1188
+ } | undefined;
1189
+ exclude?: string[] | undefined;
1190
+ } | undefined;
1191
+ enabled?: boolean | undefined;
1192
+ on?: "turn_end" | undefined;
1193
+ debounceMs?: number | undefined;
1194
+ }, unknown, z.core.$ZodTypeInternals<{
1195
+ clerk?: {
1196
+ enabled?: boolean | undefined;
1197
+ on?: "turn_end" | undefined;
1198
+ debounceMs?: number | undefined;
1199
+ run?: {
1200
+ routine?: string | undefined;
1201
+ command?: string | undefined;
1202
+ args?: string[] | undefined;
1203
+ cwd?: string | undefined;
1204
+ timeoutMs?: number | undefined;
1205
+ } | undefined;
1206
+ exclude?: string[] | undefined;
1207
+ } | undefined;
1208
+ enabled?: boolean | undefined;
1209
+ on?: "turn_end" | undefined;
1210
+ debounceMs?: number | undefined;
1211
+ }, unknown>>, unknown>>;
1212
+ promptAppend: z.ZodOptional<z.ZodString>;
1213
+ trace: z.ZodOptional<z.ZodBoolean>;
1214
+ resumeFrom: z.ZodOptional<z.ZodPreprocess<z.ZodType<{
1215
+ sessionId?: string | undefined;
1216
+ label?: string | undefined;
1217
+ taskId?: string | undefined;
1218
+ }, unknown, z.core.$ZodTypeInternals<{
1219
+ sessionId?: string | undefined;
1220
+ label?: string | undefined;
1221
+ taskId?: string | undefined;
1222
+ }, unknown>>, unknown>>;
1223
+ deviceBridge: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
1224
1224
  }, z.core.$strip>;
1225
1225
  type DetachedAgentStartInput = z.infer<typeof detachedAgentStartSchema>;
1226
1226
 
@@ -1,7 +1,7 @@
1
1
  import 'zod';
2
2
  import './catalog-models-CSvq5qBI.js';
3
3
  import './spawn-defaults-B0Yi8_MN.js';
4
- export { gd as RecentSpawnConfig, U as UserPreset, dU as UserPresetValidationError, dV as UserPresetsFile, eG as deleteUserPreset, ge as deriveRecentSpawnConfigs, eR as getUserPreset, f2 as listUserPresets, f5 as loadUserPresets, fi as normalizeUserPreset, fY as saveUserPreset, gf as touchUserPreset, gg as userPresetSchema, g9 as userPresetsPath } from './sessions-CjMWkU32.js';
4
+ export { gd as RecentSpawnConfig, U as UserPreset, dU as UserPresetValidationError, dV as UserPresetsFile, eG as deleteUserPreset, ge as deriveRecentSpawnConfigs, eR as getUserPreset, f2 as listUserPresets, f5 as loadUserPresets, fi as normalizeUserPreset, fY as saveUserPreset, gf as touchUserPreset, gg as userPresetSchema, g9 as userPresetsPath } from './sessions-zKsQHf3S.js';
5
5
  import '@agentproto/auth';
6
6
  import '@agentproto/acp';
7
7
  import '@agentproto/command-sandbox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/runtime",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
4
4
  "description": "@agentproto/runtime — long-running gateway that turns an agentproto workspace into a live runtime. Composes @agentproto/mcp-server (CRUD verbs) with HTTP transport, HEARTBEAT.md autonomy loop, and append-only conversation persistence. Drop a workspace dir, point your MCP client at it, and the agent ticks on its own.",
5
5
  "keywords": [
6
6
  "agentproto",
@@ -232,14 +232,14 @@
232
232
  "zod": "^4.6.7",
233
233
  "@agentproto/a2a": "0.2.2",
234
234
  "@agentproto/acp": "0.16.0",
235
+ "@agentproto/adapter-browser": "0.9.4",
235
236
  "@agentproto/agent": "0.6.1",
236
237
  "@agentproto/app": "2.6.2",
237
- "@agentproto/adapter-browser": "0.9.4",
238
238
  "@agentproto/app-client": "0.6.0",
239
239
  "@agentproto/apps": "0.28.1",
240
240
  "@agentproto/auth": "2.0.0",
241
- "@agentproto/cloud-agent": "0.2.0",
242
241
  "@agentproto/clerk": "0.2.1",
242
+ "@agentproto/cloud-agent": "0.2.0",
243
243
  "@agentproto/command-sandbox": "0.4.0",
244
244
  "@agentproto/decision": "0.2.0",
245
245
  "@agentproto/delivery": "0.3.1",
@@ -269,8 +269,8 @@
269
269
  "@agentproto/quota": "0.3.0",
270
270
  "@agentproto/reach": "0.1.0",
271
271
  "@agentproto/review": "1.0.1",
272
- "@agentproto/run": "0.2.5",
273
272
  "@agentproto/routine": "1.0.0",
273
+ "@agentproto/run": "0.2.5",
274
274
  "@agentproto/sandbox": "1.0.2",
275
275
  "@agentproto/secrets": "2.2.2",
276
276
  "@agentproto/sentinel": "0.7.1",
@@ -281,11 +281,11 @@
281
281
  "@agentproto/workflow-loader": "0.2.10",
282
282
  "@agentproto/workflow-runtime": "0.21.3",
283
283
  "@agentproto/workspace": "2.0.1",
284
- "@agentproto/workspace-brain": "0.7.3"
284
+ "@agentproto/workspace-brain": "0.7.4"
285
285
  },
286
286
  "optionalDependencies": {
287
- "@agentproto/sandbox-computer": "0.8.2",
288
287
  "@agentproto/reach-chat-sdk": "0.1.0",
288
+ "@agentproto/sandbox-computer": "0.8.2",
289
289
  "@agentproto/sandbox-e2b": "0.11.5"
290
290
  },
291
291
  "devDependencies": {