@wrongstack/core 0.283.1 → 0.284.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.
Files changed (78) hide show
  1. package/dist/{compactor-BxddyCFu.d.ts → compactor-DQLL4HTo.d.ts} +1 -1
  2. package/dist/{config-DkCbA3Bw.d.ts → config-MRqn1V-u.d.ts} +130 -22
  3. package/dist/coordination/index.d.ts +43 -20
  4. package/dist/coordination/index.js +1744 -912
  5. package/dist/coordination/index.js.map +1 -1
  6. package/dist/{default-config-Buho8yge.d.ts → default-config-B79_gJYv.d.ts} +7 -0
  7. package/dist/defaults/index.d.ts +25 -29
  8. package/dist/defaults/index.js +2546 -7396
  9. package/dist/defaults/index.js.map +1 -1
  10. package/dist/{director-state-B_GPa78Q.d.ts → director-state-CMS_bMs4.d.ts} +2 -0
  11. package/dist/{events-KmxSmvho.d.ts → events-Bgnh43r9.d.ts} +27 -10
  12. package/dist/execution/index.d.ts +15 -16
  13. package/dist/execution/index.js +534 -140
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/execution/prompt-enhancer.d.ts +1 -1
  16. package/dist/extension/index.d.ts +6 -6
  17. package/dist/{global-mailbox-rWVt8YlO.d.ts → global-mailbox-sZwyI6CS.d.ts} +13 -2
  18. package/dist/{goal-store-8owBXJT2.d.ts → goal-store-Datpp-ar.d.ts} +1 -1
  19. package/dist/hq/index.d.ts +6 -6
  20. package/dist/hq/index.js +58 -7
  21. package/dist/hq/index.js.map +1 -1
  22. package/dist/{index-BhCteHAF.d.ts → index--Gm41aBJ.d.ts} +26 -11
  23. package/dist/{index-BEFWNZYs.d.ts → index-CbyuOE5y.d.ts} +5 -1
  24. package/dist/index.d.ts +50 -1015
  25. package/dist/index.js +21028 -27775
  26. package/dist/index.js.map +1 -1
  27. package/dist/infrastructure/index.d.ts +9 -7
  28. package/dist/infrastructure/index.js +7 -2
  29. package/dist/infrastructure/index.js.map +1 -1
  30. package/dist/kernel/index.d.ts +11 -11
  31. package/dist/kernel/index.js.map +1 -1
  32. package/dist/{mcp-servers-BUx9A_AQ.d.ts → mcp-servers-DEV4s6Ks.d.ts} +3 -3
  33. package/dist/models/index.d.ts +4 -4
  34. package/dist/models/index.js +18 -3
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/{agent-subagent-runner-BsuWhB28.d.ts → multi-agent-coordinator-4RCRZKjN.d.ts} +417 -9
  37. package/dist/{null-fleet-bus-D4e9R7Qc.d.ts → null-fleet-bus-CFoNVQEK.d.ts} +53 -12
  38. package/dist/observability/index.d.ts +3 -3
  39. package/dist/{parallel-eternal-engine-iY2uxocj.d.ts → parallel-eternal-engine-HUrtePLd.d.ts} +4 -5
  40. package/dist/{permission-B6YAtNFz.d.ts → permission-ByDKXEcG.d.ts} +1 -1
  41. package/dist/{pipeline-ixSFe5jg.d.ts → pipeline-DGDyIohT.d.ts} +28 -7
  42. package/dist/{provider-model-resolve-DIxKL_T-.d.ts → provider-model-resolve-o2hHLs79.d.ts} +3 -3
  43. package/dist/{provider-runner-oQhDaZmH.d.ts → provider-runner-ChL-kVg6.d.ts} +3 -3
  44. package/dist/{retry-policy-V67lBOJz.d.ts → retry-policy-CQ7KwXJa.d.ts} +2 -2
  45. package/dist/{secret-vault-D7jeyXUQ.d.ts → secret-vault-DxohkUBc.d.ts} +3 -2
  46. package/dist/security/index.d.ts +4 -4
  47. package/dist/security/index.js +232 -2
  48. package/dist/security/index.js.map +1 -1
  49. package/dist/{selector-Bx2HgUkU.d.ts → selector-D8O6B_Rm.d.ts} +1 -1
  50. package/dist/{session-event-bridge-Bkp7ORfc.d.ts → session-event-bridge-D_z_mBwk.d.ts} +3 -3
  51. package/dist/{session-reader-B-Fi9L6I.d.ts → session-reader-7Esxrkpw.d.ts} +1 -1
  52. package/dist/storage/index.d.ts +77 -39
  53. package/dist/storage/index.js +1223 -288
  54. package/dist/storage/index.js.map +1 -1
  55. package/dist/tasking/index.d.ts +124 -0
  56. package/dist/tasking/index.js +492 -0
  57. package/dist/tasking/index.js.map +1 -0
  58. package/dist/{todos-checkpoint-BwCrj4Cb.d.ts → todos-checkpoint-FY7PjmMx.d.ts} +13 -4
  59. package/dist/{tool-LVSLiE1s.d.ts → tool-BNlnIJvo.d.ts} +216 -17
  60. package/dist/{tool-executor-kElSEgO0.d.ts → tool-executor-CckSCM5E.d.ts} +12 -15
  61. package/dist/tools/index.d.ts +2 -2
  62. package/dist/tools/index.js.map +1 -1
  63. package/dist/types/index.d.ts +94 -19
  64. package/dist/types/index.js +76 -12
  65. package/dist/types/index.js.map +1 -1
  66. package/dist/utils/index.d.ts +44 -10
  67. package/dist/utils/index.js +106 -17
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/{worktree-manager-BjyAW30D.d.ts → worktree-manager-DzwxKE35.d.ts} +1 -1
  70. package/instructions/coordination/subagent-baseline.md +5 -0
  71. package/instructions/llm/autonomy-brain.md +3 -2
  72. package/instructions/system.md +4 -0
  73. package/package.json +10 -3
  74. package/dist/multi-agent-coordinator-CrjeTB9i.d.ts +0 -357
  75. package/dist/sdd/index.d.ts +0 -1993
  76. package/dist/sdd/index.js +0 -9500
  77. package/dist/sdd/index.js.map +0 -1
  78. package/dist/spec-TBi3Jr6T.d.ts +0 -78
package/dist/index.d.ts CHANGED
@@ -1,81 +1,79 @@
1
1
  import { d as TaskGraph, T as TaskType, a as TaskPriority, e as TaskNode } from './task-graph-CH3acNQ7.js';
2
2
  export { C as CriticalPathResult, S as SerializableTaskGraph, f as SerializableTaskGraphNodes, g as SerializedTaskGraph, h as TaskAssignment, i as TaskDependency, j as TaskEdge, k as TaskFilter, c as TaskProgress, l as TaskSort, b as TaskStatus, m as computeTaskProgress, n as deserializeTaskGraph, o as findCriticalPath, s as serializeTaskGraph, t as topologicalSort } from './task-graph-CH3acNQ7.js';
3
- import { W as WorktreeManager } from './worktree-manager-BjyAW30D.js';
4
- export { A as AllocateOpts, M as MergeOpts, a as MergeResult, b as WorktreeHandle, c as WorktreeManagerOptions, R as WorktreeRunResult, d as WorktreeStatus, e as assertSafePath } from './worktree-manager-BjyAW30D.js';
5
- import { E as EventBus, B as BrainArbiter, c as MemoryStore, a as EventName, L as Listener } from './events-KmxSmvho.js';
6
- export { e as BrainDecision, f as BrainDecisionOption, g as BrainDecisionQueue, h as BrainDecisionRequest, i as BrainDecisionSource, j as BrainFallback, k as BrainRisk, D as DefaultBrainArbiter, l as DefaultBrainArbiterOptions, m as EventLogger, n as EventMap, H as HumanEscalatingBrainArbiter, o as MEMORY_TYPE_LABELS, p as MemoryClearedPayload, q as MemoryConsolidatedPayload, b as MemoryEntry, r as MemoryForgottenPayload, s as MemoryPriority, d as MemoryRelevanceContext, t as MemoryRememberedPayload, M as MemoryScope, u as MemoryType, O as ObservableBrainArbiter, v as ScopedEventBus, S as ScoredEntry, w as formatHumanPrompt } from './events-KmxSmvho.js';
7
- import { TaskStore } from './sdd/index.js';
8
- export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CleanupStaleSddOptions, CleanupStaleSddResult, CollectedAnswer, CommandVerifierOptions, ConflictSide, CriticalPathAnalysis, DefaultTaskStore, DestroySddProjectOptions, DestroySddProjectResult, ExecutionSummary, GeneratedTask, LlmConflictResolverOptions, RollbackFromDiskOptions, SPEC_TEMPLATES, SddBoardColumn, SddBoardEvent, SddBoardFeedEntry, SddBoardIndexEntry, SddBoardProjector, SddBoardProjectorOptions, SddBoardSnapshot, SddBoardStatus, SddBoardStore, SddBoardStoreOptions, SddBoardTask, SddDeadlockChain, SddIngestResult, SddInterviewDriver, SddInterviewDriverOptions, SddInterviewSnapshot, SddLifecycleOp, SddLifecycleOptions, SddLifecycleResult, SddParallelRun, SddParallelRunOptions, SddProgress, SddRunControl, SddRunHandle, SddRunRegistry, SddSubtaskSpec, SddSupervisor, SddSupervisorOptions, SddSupervisorVerdict, SddTaskDecomposer, SddTaskDecomposerOptions, SddTaskDisplayStatus, SpecDiff, SpecDrivenDev, SpecDrivenDevOptions, SpecIndexEntry, SpecParser, SpecStore, SpecStoreOptions, SpecVersion, SpecVersioning, StartSddRunOptions, SubtaskGeneratorOptions, TaskBatch, TaskExecutionContext, TaskExecutionResult, TaskFlow, TaskFlowEventMap, TaskFlowEventName, TaskFlowExecutionContext, TaskFlowOptions, TaskFlowPhase, TaskGenerator, TaskGeneratorOptions, TaskGraphIndexEntry, TaskGraphStore, TaskGraphStoreOptions, TaskTracker, TaskTrackerOptions, TaskTransition, WaveResult, analyzeCriticalPath, applySddLifecycle, buildBoardSnapshot, buildBoardTasks, cleanupSddWorktrees, cleanupStaleSddWorktrees, createAutoExecutor, destroySddProject, extractVerificationCommand, getTemplate, hasConflictMarkers, isExplanatoryText, listTemplates, makeCommandVerifier, makeLlmConflictResolver, makeLlmSubtaskGenerator, makePreferSideConflictResolver, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, resolveConflictText, rollbackSddRunFromDisk, shortIdMap, startSddRun, templateToMarkdown } from './sdd/index.js';
9
- import { D as DefaultLogger } from './mcp-servers-BUx9A_AQ.js';
10
- export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as DefaultLoggerOptions, L as LogFormat, e as allServers, f as awsServer, g as blockServer, h as braveSearchServer, i as context7Server, j as contextManagerTool, k as createContextManagerTool, l as everArtServer, m as filesystemServer, n as githubServer, o as googleMapsServer, p as miniMaxVisionServer, q as playwrightServer, s as sentinelServer, r as slackServer, t as sshManagerServer, z as zaiVisionServer } from './mcp-servers-BUx9A_AQ.js';
3
+ import { W as WorktreeManager } from './worktree-manager-DzwxKE35.js';
4
+ export { A as AllocateOpts, M as MergeOpts, a as MergeResult, b as WorktreeHandle, c as WorktreeManagerOptions, R as WorktreeRunResult, d as WorktreeStatus, e as assertSafePath } from './worktree-manager-DzwxKE35.js';
5
+ import { E as EventBus, B as BrainArbiter, c as MemoryStore, a as EventName, L as Listener } from './events-Bgnh43r9.js';
6
+ export { e as BrainDecision, f as BrainDecisionOption, g as BrainDecisionQueue, h as BrainDecisionRequest, i as BrainDecisionSource, j as BrainFallback, k as BrainRisk, D as DefaultBrainArbiter, l as DefaultBrainArbiterOptions, m as EventLogger, n as EventMap, H as HumanEscalatingBrainArbiter, o as MEMORY_TYPE_LABELS, p as MemoryClearedPayload, q as MemoryConsolidatedPayload, b as MemoryEntry, r as MemoryForgottenPayload, s as MemoryPriority, d as MemoryRelevanceContext, t as MemoryRememberedPayload, M as MemoryScope, u as MemoryType, O as ObservableBrainArbiter, v as ScopedEventBus, S as ScoredEntry, w as formatHumanPrompt } from './events-Bgnh43r9.js';
7
+ import { TaskStore } from './tasking/index.js';
8
+ export { DefaultTaskStore, TaskTracker, TaskTrackerChange, TaskTrackerListener, TaskTrackerOptions, TaskTransition } from './tasking/index.js';
9
+ import { D as DefaultLogger } from './mcp-servers-DEV4s6Ks.js';
10
+ export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as DefaultLoggerOptions, L as LogFormat, e as allServers, f as awsServer, g as blockServer, h as braveSearchServer, i as context7Server, j as contextManagerTool, k as createContextManagerTool, l as everArtServer, m as filesystemServer, n as githubServer, o as googleMapsServer, p as miniMaxVisionServer, q as playwrightServer, s as sentinelServer, r as slackServer, t as sshManagerServer, z as zaiVisionServer } from './mcp-servers-DEV4s6Ks.js';
11
11
  import { D as DefaultPathResolver } from './path-resolver-CMS5307d.js';
12
- import { D as DefaultSecretVault } from './secret-vault-D7jeyXUQ.js';
13
- export { A as AutoApprovePermissionPolicy, a as DefaultPermissionPolicy, b as DefaultSecretScrubber, P as PermissionPolicyOptions, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-D7jeyXUQ.js';
14
- import { C as Config, n as TokenSavingTier, o as HookInput, p as HookOutcome, H as HookEvent, S as ShellHook, M as ModelsRegistry, f as HookMatcher, I as InProcessHook, k as ConfigStore } from './config-DkCbA3Bw.js';
15
- export { A as AdaptiveConcurrencyConfig, q as AutonomyConfig, r as CONTEXT_WINDOW_MODES, s as CircuitBreakerRuntimeConfig, i as ConfigLoader, t as ContextConfig, l as ContextWindowAggressiveOn, u as ContextWindowConfigLike, v as ContextWindowMode, w as ContextWindowModeId, m as ContextWindowPolicy, x as ContextWindowThresholds, y as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, z as DEFAULT_TUI_THINKING_WORD, E as ExecDangerConfig, B as ExecToolConfig, G as FeaturesConfig, F as FleetConfig, J as FleetSupervisorConfig, g as HookEntry, K as HqClientConfig, L as IndexingConfig, N as InputHistoryConfig, O as LaunchConfig, Q as LogConfig, U as MAX_TUI_THINKING_WORD_LENGTH, b as MCPServerConfig, a as ModelMatrixEntry, V as ModelRuntimeCacheConfig, h as ModelRuntimeConfig, X as ModelRuntimeParametersConfig, Y as ModelRuntimeReasoningConfig, e as ModelsDevModel, c as ModelsDevPayload, Z as ModelsDevProvider, _ as PluginConfig, $ as ProviderApiKey, P as ProviderConfig, R as ResolvedModel, d as ResolvedProvider, a0 as SessionLoggingConfig, a1 as SkillsConfig, a2 as SyncCategory, j as SyncConfig, a3 as ToolDescriptionMode, a4 as ToolDescriptionModeConfig, T as ToolResultRenderMode, a5 as ToolResultRenderModeConfig, a6 as ToolsConfig, W as WireFamily, a7 as formatContextWindowModeList, a8 as getContextWindowMode, a9 as isContextWindowModeId, aa as listContextWindowModes, ab as normalizeTokenSavingTier, ac as normalizeTuiThinkingWord, ad as resolveContextWindowPolicy } from './config-DkCbA3Bw.js';
12
+ import { D as DefaultSecretVault } from './secret-vault-DxohkUBc.js';
13
+ export { A as AutoApprovePermissionPolicy, a as DefaultPermissionPolicy, b as DefaultSecretScrubber, P as PermissionPolicyOptions, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-DxohkUBc.js';
14
+ import { j as Config, q as TokenSavingTier, r as HookInput, s as HookOutcome, H as HookEvent, C as ConfiguredHook, M as ModelsRegistry, f as HookMatcher, I as InProcessHook, g as HookRegistrationOptions, n as ConfigStore } from './config-MRqn1V-u.js';
15
+ export { A as AdaptiveConcurrencyConfig, t as AnyHookOutcome, u as AutonomyConfig, v as CONTEXT_WINDOW_MODES, w as CircuitBreakerRuntimeConfig, l as ConfigLoader, x as ContextConfig, o as ContextWindowAggressiveOn, y as ContextWindowConfigLike, z as ContextWindowMode, B as ContextWindowModeId, p as ContextWindowPolicy, D as ContextWindowThresholds, E as CustomModelDefinition, G as DEFAULT_CONTEXT_WINDOW_MODE_ID, J as DEFAULT_TUI_THINKING_WORD, K as ExecDangerConfig, L as ExecToolConfig, N as FeaturesConfig, F as FleetConfig, O as FleetSupervisorConfig, i as HookEntry, Q as HookFailurePolicy, U as HookInvocationContext, V as HqClientConfig, h as HttpHook, X as IndexingConfig, Y as InputHistoryConfig, Z as LaunchConfig, _ as LogConfig, $ as LoopDetectionConfig, a0 as MAX_TUI_THINKING_WORD_LENGTH, b as MCPServerConfig, a as ModelMatrixEntry, a1 as ModelRuntimeCacheConfig, k as ModelRuntimeConfig, a2 as ModelRuntimeParametersConfig, a3 as ModelRuntimeReasoningConfig, e as ModelsDevModel, c as ModelsDevPayload, a4 as ModelsDevProvider, a5 as PluginConfig, a6 as PreToolUseOutcome, a7 as PreToolUseStage, a8 as ProviderApiKey, P as ProviderConfig, R as ResolvedModel, d as ResolvedProvider, a9 as SessionLoggingConfig, S as ShellHook, aa as SkillsConfig, ab as SyncCategory, m as SyncConfig, ac as ToolDescriptionMode, ad as ToolDescriptionModeConfig, T as ToolResultRenderMode, ae as ToolResultRenderModeConfig, af as ToolsConfig, W as WireFamily, ag as formatContextWindowModeList, ah as getContextWindowMode, ai as isContextWindowModeId, aj as listContextWindowModes, ak as normalizeTokenSavingTier, al as normalizeTuiThinkingWord, am as resolveContextWindowPolicy } from './config-MRqn1V-u.js';
16
16
  import { W as WstackPaths } from './wstack-paths-C3K40Qst.js';
17
17
  export { a as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths, w as wstackGlobalRoot } from './wstack-paths-C3K40Qst.js';
18
- import { m as SlashCommand, P as PluginAPI, n as PluginPipelines, o as ToolRegistryView, p as ProviderRegistryView, q as MCPRegistryView, r as SlashCommandRegistryView, s as SessionWriterView, t as MetricsSinkView, u as PluginLLM, v as PluginCapabilities, w as PluginDependency, x as Plugin } from './agent-subagent-runner-BsuWhB28.js';
19
- export { A as Agent, a as AgentFactory, y as AgentFactoryResult, z as AgentRunnerOptions, h as AwaitAnyResult, E as BudgetExceededError, G as BudgetKind, H as BudgetLimits, I as BudgetNegotiationMode, J as BudgetThresholdDecision, K as BudgetThresholdHandler, L as BudgetThresholdSignal, N as BudgetUsage, O as CoordinatorEvents, C as CoordinatorStatus, Q as DECISION_TIMEOUT_MS, D as DoneCondition, F as FleetBus, R as FleetEvent, U as FleetHandler, k as FleetUsage, l as FleetUsageAggregator, b as MultiAgentConfig, M as MultiAgentCoordinator, V as PluginLLMOptions, W as PluginLLMResult, d as SpawnResult, X as SubagentBudget, S as SubagentConfig, Y as SubagentContext, Z as SubagentError, _ as SubagentErrorKind, $ as SubagentRunContext, a0 as SubagentRunOutcome, c as SubagentRunner, a1 as SubagentUsageSnapshot, a2 as TIMEOUT_PREEMPT_FRACTION, a3 as TaskDelegation, g as TaskResult, T as TaskSpec, a4 as makeAgentSubagentRunner, a5 as withDisabledToolFiltering } from './agent-subagent-runner-BsuWhB28.js';
20
- export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as FleetWorktreePolicy, M as ICoordinator, N as IFleetManager, O as InMemoryAgentBridge, P as InMemoryBridgeTransport, Q as LargeAnswerStore, R as NULL_FLEET_BUS, S as REFACTOR_PLANNER_AGENT, T as RefactorPhase, U as RefactorPlan, V as SECURITY_SCANNER_AGENT, W as SharedFileEntry, X as SharedFileSnapshot, Y as SubagentPromptParts, Z as TaskResultNotification, _ as WorktreeIntegrationError, $ as WorktreeIsolationDecision, a0 as WorktreeTaskRunnerOptions, a1 as WorktreeTaskStateUpdate, a2 as applyRosterBudget, a3 as attachAutoExtend, a4 as composeDirectorPrompt, a5 as composeSubagentPrompt, a6 as createDelegateTool, a7 as createMessage, a8 as getAgentDefinition, a9 as makeAskResultTool, aa as makeAskTool, ab as makeAssignTool, ac as makeAwaitTasksTool, ad as makeCollabDebugTool, ae as makeDirectorSessionFactory, af as makeFleetEmitTool, ag as makeFleetHealthTool, ag as makeFleetSessionTool, ag as makeFleetTool, ag as makeFleetUsageTool, ah as makeKanbanQueueTool, ai as makeQualityGateTool, aj as makeRollUpTool, ak as makeSpawnTool, al as makeTerminateAllTool, am as makeTerminateTool, an as makeWorkCompleteTool, ao as resolveSubagentWorktreeDecision, ap as rosterSummaryFromConfigs, aq as subagentNeedsWorktree, ar as wrapSubagentRunnerWithWorktrees } from './null-fleet-bus-D4e9R7Qc.js';
21
- export { AcquireOptions, AcquireResult, AdaptiveConcurrencyController, AdaptiveConcurrencyState, AgentMonitorOptions, AgentMonitorService, AgentTimelineEntry, AgentVirtualSession, ApplyResult, ApprovalDecision, AutonomousBrain, AutonomousBrainOptions, AutonomousCoordinator, AutonomousCoordinatorOptions, AutonomousDecisionRequest, AutonomousDecisionType, BUILD_AGENTS, BrainInterventionInput, BrainMonitor, BrainMonitorOptions, ChangeFile, ChangeManager, ChangeManagerOptions, ChangeNode, ChangeProposal, ChangeStatus, ConsensusOptions, ConsensusProtocol, ConsensusResult, CoordinatorEvent, CoordinatorStats, DAGEdgeEvent, DAGEdgeHandler, DAGNode, DAGNodeStatus, DEFAULT_QUALITY_CHECKS, DELIVERY_AGENTS, DEPENDENCY_FILE_PATTERNS, DISCOVERY_AGENTS, DOMAIN_AGENTS, DecisionNode, DecisionPrompt, DefaultMailbox, DepWatchEntry, DepWatcherBridgeOptions, DependencyWatcherConfig, DownAlertInput, EscalationDecision, FactCategory, FactNode, FleetStatusToolOptions, FleetSupervisor, FleetSupervisorActions, FleetSupervisorOptions, FleetSupervisorSource, GoalNode, GoalPriority, GoalStatus, GraphSubscription, KNOWLEDGE_AGENTS, KnowledgeGraph, LLMProvider, LiveLockResult, MAILBOX_BRIDGE_LOCK_FILENAME, MAILBOX_BRIDGE_TOKEN_FILENAME, MAILBOX_HEALTH_DEFAULT_FAILURE_THRESHOLD, MAILBOX_HEALTH_DEFAULT_FROM, MAILBOX_HEALTH_DEFAULT_INTERVAL_MS, MAILBOX_HEALTH_DEFAULT_TIMEOUT_MS, MATRIX_PHASE_KEYS, META_AGENTS, MailToolsOptions, MailboxActionInput, MailboxActionResult, MailboxBridgeLock, MailboxHealthEvent, MailboxHealthWatchdog, MailboxHealthWatchdogOptions, MailboxHooksOptions, MailboxMessageAction, MailboxResolver, MailboxToolOptions, MatrixKeyKind, ModelMatrixResolution, ModelMatrixResolutionSource, ModelReference, NodeFilter, NodeType, OutdatedNotifyMessage, PLANNING_AGENTS, PackageAuthorEntry, PackageAuthorLog, PackageAuthorTrackerOptions, PackageOutdatedEntry, PackageOutdatedResult, PackageOutdatedWatcherOptions, PrioritizationDecision, QualityCheck, QualityGateChecks, QualityGateResult, QuorumRule, REVIEW_AGENTS, RecoveryAlertInput, ResolvedModelTarget, ResolvedSubagentModelTarget, RollbackResult, RunnablesHandler, SpawnDecision, SupervisedSubagent, SupervisorLogEntry, TaskAuctionOptions, TaskAuctioneer, TaskBid, TaskDAG, VERIFY_AGENTS, VoteNode, VoteRecord, VoteValue, VoterConfig, WatchdogConfig, acquireOrJoin, actionToAckInput, attachDepWatcherBridge, buildDownAlert, buildRecoveryAlert, createAgentMonitorService, createMailboxHooks, detectEcosystem, detectEcosystem as detectPackageEcosystem, finalize, getFullPackageLog, getManifestPackages, getPackageAuthor, getPackagesByAgent, isValidMatrixKey, mailboxSessionTag, makeDependencyWatcherConfig, makeFleetStatusTool, makeMailInboxTool, makeMailSendTool, makeMailboxTool, matrixKeyKind, phaseForRole, readLiveLock, recordPackageAction, release, resolveImplementationModelTarget, resolveMailboxIdentity, resolveModelMatrix, resolveModelMatrixResolution, resolveModelTargetFromEntry, resolveSubagentModelTarget, roleNeedsIndependentReviewModel, sameModelReference, startPackageOutdatedWatcher, updatePackageOutdatedStatus, validateWatchdogOptions } from './coordination/index.js';
22
- export { T as AGENT_TOOL_PRESETS, c as AgentBudgetTier, d as AgentCapability, b as AgentDefinition, A as AgentPhase, e as DEFAULT_DISPATCH_ROLE, a as DefaultMultiAgentCoordinator, f as DispatchCandidate, D as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-CrjeTB9i.js';
23
- export { D as DEFAULT_HQ_REDACTION_POLICY, G as GlobalMailbox, H as HQ_PROTOCOL_VERSION, a as HqAgentMessagePayload, b as HqAgentStatusPayload, c as HqAlertMessage, d as HqBrainEventKind, e as HqBrainEventPayload, f as HqBrowserEventMessage, g as HqBrowserMessage, h as HqBrowserSnapshotMessage, i as HqClientCapability, j as HqClientCommandAckMessage, k as HqClientCommandPollMessage, l as HqClientEventMessage, m as HqClientHeartbeatPayload, n as HqClientHelloMessage, o as HqClientHelloPayload, p as HqClientIdentity, q as HqClientKind, r as HqClientMessage, s as HqClientRecord, t as HqEventEnvelope, u as HqEventPayloadResult, v as HqEventType, w as HqFleetEventPayload, x as HqFleetSnapshotPayload, y as HqFleetSummary, z as HqGitSnapshotPayload, A as HqMachineRecord, B as HqMailboxAgentStatus, C as HqMailboxAgentSummary, E as HqMailboxEventAction, F as HqMailboxEventPayload, I as HqMailboxMappingOptions, J as HqMailboxMessageSummary, K as HqMailboxMessageType, L as HqMailboxPriority, M as HqMailboxSnapshotOptions, N as HqMailboxSnapshotPayload, O as HqMailboxSummary, P as HqParseResult, Q as HqPathPolicy, R as HqProjectIdentity, S as HqProjectRecord, T as HqProjectStatus, U as HqProtocolVersion, V as HqPublishEventOptions, W as HqPublisher, X as HqPublisherCommandHandler, Y as HqPublisherCommandResult, Z as HqPublisherOptions, _ as HqQueuedCommand, $ as HqRedactionPolicy, a0 as HqServerCommandBatchMessage, a1 as HqServerMessage, a2 as HqSessionAgentLiveStatus, a3 as HqSessionAgentSummary, a4 as HqSessionEndedPayload, a5 as HqSessionLiveStatus, a6 as HqSessionSnapshotPayload, a7 as HqSessionStartedPayload, a8 as HqSessionStatus, a9 as HqSessionStatusPayload, aa as HqSessionSummary, ab as HqSnapshot, ac as HqSocketFactory, ad as HqSocketLike, ae as HqSubagentSummary, af as HqToolArgsPolicy, ag as HqToolCompletedPayload, ah as HqToolStartedPayload, ai as HqTranscriptAppendPayload, aj as HqTranscriptEntry, ak as HqTranscriptRole, al as HqUsagePayload, am as HqWelcomePayload, an as HqWorklistCounts, ao as HqWorklistSnapshotPayload, ap as HqWorkspaceKind, aq as HqWorktreeEventKind, ar as HqWorktreeEventPayload, as as createHqEventEnvelope, at as createMailboxEventPayload, au as createMailboxSnapshotPayload, av as createMailboxSnapshotPayloadFromMailbox, aw as mapMailboxAgentToHqSummary, ax as mapMailboxMessageToHqSummary, ay as parseHqEventPayload, az as parseHqFrame, aA as resolveProjectDir } from './global-mailbox-rWVt8YlO.js';
18
+ import { n as SlashCommand, P as PluginAPI, o as PluginPipelines, p as ToolRegistryView, q as ProviderRegistryView, r as MCPRegistryView, s as SlashCommandRegistryView, t as SessionWriterView, u as MetricsSinkView, v as PluginLLM, w as PluginCapabilities, x as PluginDependency, y as Plugin } from './multi-agent-coordinator-4RCRZKjN.js';
19
+ export { z as AGENT_TOOL_PRESETS, A as Agent, E as AgentBudgetTier, G as AgentCapability, h as AgentDefinition, a as AgentFactory, H as AgentFactoryResult, g as AgentPhase, I as AgentRunnerOptions, m as AwaitAnyResult, J as BudgetExceededError, K as BudgetKind, L as BudgetLimits, N as BudgetNegotiationMode, O as BudgetThresholdDecision, Q as BudgetThresholdHandler, R as BudgetThresholdSignal, U as BudgetUsage, V as CoordinatorEvents, C as CoordinatorStatus, W as DECISION_TIMEOUT_MS, X as DEFAULT_DISPATCH_ROLE, b as DefaultMultiAgentCoordinator, Y as DispatchCandidate, D as DispatchClassifier, Z as DispatchMethod, _ as DispatchOptions, $ as DispatchResult, c as DoneCondition, F as FleetBus, a0 as FleetEvent, a1 as FleetHandler, j as FleetUsage, k as FleetUsageAggregator, a2 as HEAVY_BUDGET, a3 as LIGHT_BUDGET, a4 as MEDIUM_BUDGET, M as MultiAgentConfig, a5 as MultiAgentCoordinator, a6 as MultiAgentCoordinatorOptions, a7 as PluginLLMOptions, a8 as PluginLLMResult, a9 as SpawnResult, aa as SubagentBudget, i as SubagentConfig, ab as SubagentContext, ac as SubagentError, ad as SubagentErrorKind, ae as SubagentPartialResult, af as SubagentRunContext, ag as SubagentRunOutcome, S as SubagentRunner, ah as SubagentSpawnLineage, ai as SubagentStructuredReport, aj as SubagentUsageSnapshot, ak as TIMEOUT_PREEMPT_FRACTION, al as TaskDelegation, l as TaskResult, T as TaskSpec, am as dispatchAgent, an as makeAgentSubagentRunner, ao as makeLLMClassifier, ap as scoreAgents, aq as withDisabledToolFiltering } from './multi-agent-coordinator-4RCRZKjN.js';
20
+ export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as FleetTokenCapError, M as FleetWorktreePolicy, N as ICoordinator, O as IFleetManager, P as InMemoryAgentBridge, Q as InMemoryBridgeTransport, R as LargeAnswerStore, S as NULL_FLEET_BUS, T as REFACTOR_PLANNER_AGENT, U as RefactorPhase, V as RefactorPlan, W as SECURITY_SCANNER_AGENT, X as SharedFileEntry, Y as SharedFileSnapshot, Z as SubagentPromptParts, _ as TaskResultNotification, $ as WorktreeIntegrationError, a0 as WorktreeIsolationDecision, a1 as WorktreeTaskRunnerOptions, a2 as WorktreeTaskStateUpdate, a3 as applyRosterBudget, a4 as attachAutoExtend, a5 as composeDirectorPrompt, a6 as composeSubagentPrompt, a7 as createDelegateTool, a8 as createMessage, a9 as getAgentDefinition, aa as makeAskResultTool, ab as makeAskTool, ac as makeAssignTool, ad as makeAwaitTasksTool, ae as makeCollabDebugTool, af as makeDirectorSessionFactory, ag as makeFleetEmitTool, ah as makeFleetHealthTool, ah as makeFleetSessionTool, ah as makeFleetTool, ah as makeFleetUsageTool, ai as makeKanbanQueueTool, aj as makeQualityGateTool, ak as makeRollUpTool, al as makeSpawnTool, am as makeTerminateAllTool, an as makeTerminateTool, ao as makeWorkCompleteTool, ap as resolveSubagentWorktreeDecision, aq as rosterSummaryFromConfigs, ar as subagentNeedsWorktree, as as wrapSubagentRunnerWithWorktrees } from './null-fleet-bus-CFoNVQEK.js';
21
+ export { AcquireOptions, AcquireResult, AdaptiveConcurrencyController, AdaptiveConcurrencyState, AgentMonitorOptions, AgentMonitorService, AgentTimelineEntry, AgentVirtualSession, ApplyResult, ApprovalDecision, AutonomousBrain, AutonomousBrainOptions, AutonomousCoordinator, AutonomousCoordinatorOptions, AutonomousDecisionRequest, AutonomousDecisionType, BUILD_AGENTS, BrainInterventionInput, BrainMonitor, BrainMonitorOptions, ChangeFile, ChangeManager, ChangeManagerOptions, ChangeNode, ChangeProposal, ChangeStatus, ConsensusOptions, ConsensusProtocol, ConsensusResult, CoordinatorEvent, CoordinatorStats, DAGEdgeEvent, DAGEdgeHandler, DAGNode, DAGNodeStatus, DEFAULT_MAX_FLEET_SPAWNS, DEFAULT_QUALITY_CHECKS, DELIVERY_AGENTS, DEPENDENCY_FILE_PATTERNS, DISCOVERY_AGENTS, DOMAIN_AGENTS, DecisionNode, DecisionPrompt, DefaultMailbox, DepWatchEntry, DepWatcherBridgeOptions, DependencyWatcherConfig, DownAlertInput, EscalationDecision, FactCategory, FactNode, FleetStatusToolOptions, FleetSupervisor, FleetSupervisorActions, FleetSupervisorOptions, FleetSupervisorSource, GoalNode, GoalPriority, GoalStatus, GraphSubscription, HARD_MAX_SPAWN_DEPTH, KNOWLEDGE_AGENTS, KnowledgeGraph, LLMProvider, LiveLockResult, MAILBOX_BRIDGE_LOCK_FILENAME, MAILBOX_BRIDGE_TOKEN_FILENAME, MAILBOX_HEALTH_DEFAULT_FAILURE_THRESHOLD, MAILBOX_HEALTH_DEFAULT_FROM, MAILBOX_HEALTH_DEFAULT_INTERVAL_MS, MAILBOX_HEALTH_DEFAULT_TIMEOUT_MS, MATRIX_PHASE_KEYS, MAX_SUBAGENT_STRUCTURED_REPORT_CHARS, META_AGENTS, MailToolsOptions, MailboxActionInput, MailboxActionResult, MailboxBridgeLock, MailboxHealthEvent, MailboxHealthWatchdog, MailboxHealthWatchdogOptions, MailboxHooksOptions, MailboxMessageAction, MailboxResolver, MailboxToolOptions, MatrixKeyKind, ModelMatrixResolution, ModelMatrixResolutionSource, ModelReference, NodeFilter, NodeType, OutdatedNotifyMessage, PLANNING_AGENTS, PackageAuthorEntry, PackageAuthorLog, PackageAuthorTrackerOptions, PackageOutdatedEntry, PackageOutdatedResult, PackageOutdatedWatcherOptions, PrioritizationDecision, QualityCheck, QualityGateChecks, QualityGateResult, QuorumRule, REVIEW_AGENTS, RecoveryAlertInput, ResolvedModelTarget, ResolvedSubagentModelTarget, RollbackResult, RunnablesHandler, SUBAGENT_STRUCTURED_REPORT_META_KEY, SpawnDecision, SupervisedSubagent, SupervisorLogEntry, TaskAuctionOptions, TaskAuctioneer, TaskBid, TaskDAG, VERIFY_AGENTS, VoteNode, VoteRecord, VoteValue, VoterConfig, WatchdogConfig, acquireOrJoin, actionToAckInput, attachDepWatcherBridge, buildDownAlert, buildRecoveryAlert, createAgentMonitorService, createMailboxHooks, detectEcosystem, detectEcosystem as detectPackageEcosystem, finalize, formatSubagentStructuredReport, getFullPackageLog, getManifestPackages, getPackageAuthor, getPackagesByAgent, isValidMatrixKey, mailboxSessionTag, makeDependencyWatcherConfig, makeFleetStatusTool, makeMailInboxTool, makeMailSendTool, makeMailboxTool, makeSubagentResultTool, matrixKeyKind, normalizeSubagentStructuredReport, phaseForRole, readLiveLock, readSubagentStructuredReport, recordPackageAction, release, resolveImplementationModelTarget, resolveMailboxIdentity, resolveMaxSpawnDepth, resolveModelMatrix, resolveModelMatrixResolution, resolveModelTargetFromEntry, resolveSubagentModelTarget, roleNeedsIndependentReviewModel, sameModelReference, startPackageOutdatedWatcher, updatePackageOutdatedStatus, validateWatchdogOptions } from './coordination/index.js';
22
+ export { D as DEFAULT_HQ_REDACTION_POLICY, G as GlobalMailbox, H as HQ_PROTOCOL_VERSION, a as HqAgentMessagePayload, b as HqAgentStatusPayload, c as HqAlertMessage, d as HqBrainEventKind, e as HqBrainEventPayload, f as HqBrowserEventMessage, g as HqBrowserMessage, h as HqBrowserSnapshotMessage, i as HqClientCapability, j as HqClientCommandAckMessage, k as HqClientCommandPollMessage, l as HqClientEventMessage, m as HqClientHeartbeatPayload, n as HqClientHelloMessage, o as HqClientHelloPayload, p as HqClientIdentity, q as HqClientKind, r as HqClientMessage, s as HqClientRecord, t as HqEventEnvelope, u as HqEventPayloadResult, v as HqEventType, w as HqFleetEventPayload, x as HqFleetSnapshotPayload, y as HqFleetSummary, z as HqGitSnapshotPayload, A as HqMachineRecord, B as HqMailboxAgentStatus, C as HqMailboxAgentSummary, E as HqMailboxEventAction, F as HqMailboxEventPayload, I as HqMailboxMappingOptions, J as HqMailboxMessageSummary, K as HqMailboxMessageType, L as HqMailboxPriority, M as HqMailboxSnapshotOptions, N as HqMailboxSnapshotPayload, O as HqMailboxSummary, P as HqParseResult, Q as HqPathPolicy, R as HqProjectIdentity, S as HqProjectRecord, T as HqProjectStatus, U as HqProtocolVersion, V as HqPublishEventOptions, W as HqPublisher, X as HqPublisherCommandHandler, Y as HqPublisherCommandResult, Z as HqPublisherOptions, _ as HqQueuedCommand, $ as HqRedactionPolicy, a0 as HqServerCommandBatchMessage, a1 as HqServerMessage, a2 as HqSessionAgentLiveStatus, a3 as HqSessionAgentSummary, a4 as HqSessionEndedPayload, a5 as HqSessionLiveStatus, a6 as HqSessionSnapshotPayload, a7 as HqSessionStartedPayload, a8 as HqSessionStatus, a9 as HqSessionStatusPayload, aa as HqSessionSummary, ab as HqSnapshot, ac as HqSocketFactory, ad as HqSocketLike, ae as HqSubagentSummary, af as HqToolArgsPolicy, ag as HqToolCompletedPayload, ah as HqToolStartedPayload, ai as HqTranscriptAppendPayload, aj as HqTranscriptEntry, ak as HqTranscriptRole, al as HqUsagePayload, am as HqWelcomePayload, an as HqWorklistCounts, ao as HqWorklistSnapshotPayload, ap as HqWorkspaceKind, aq as HqWorktreeEventKind, ar as HqWorktreeEventPayload, as as createHqEventEnvelope, at as createMailboxEventPayload, au as createMailboxSnapshotPayload, av as createMailboxSnapshotPayloadFromMailbox, aw as mapMailboxAgentToHqSummary, ax as mapMailboxMessageToHqSummary, ay as parseHqEventPayload, az as parseHqFrame, aA as resolveProjectDir } from './global-mailbox-sZwyI6CS.js';
24
23
  export { A as AgentEntry, a as AgentLiveStatus, S as SessionLiveStatus, b as SessionRegistry, c as SessionRegistryEntry, g as getSessionRegistry, h as hasSessionRegistry } from './session-registry-Dvg7i_IA.js';
25
24
  import { b as Mailbox, M as MailboxMessage } from './mailbox-types-BGZWrYTJ.js';
26
25
  export { g as AgentHeartbeatInput, A as AgentRegistrationInput, h as ClientHeartbeatInput, C as ClientRegistrationInput, k as ClientSource, i as ClientStatus, f as MailboxAckBatchInput, e as MailboxAckInput, a as MailboxAgentStatus, l as MailboxMessageType, d as MailboxQuery, c as MailboxSendInput, m as MailboxTaskContext, P as PurgeOptions, j as PurgeResult, R as ReadReceipts, n as RegisteredAgent, o as normalizeRecipient } from './mailbox-types-BGZWrYTJ.js';
27
- import { d as Context, y as TodoItem, g as Tool, P as Provider, i as ContentBlock, c as Request, e as Response, s as TextBlock, M as Message, J as JSONSchema } from './tool-LVSLiE1s.js';
28
- export { B as AgentError, C as CacheStats, q as CacheTtl, r as Capabilities, D as CompletedWorkEvidence, E as CompletedWorkSource, F as ConfigError, G as ContextEvidenceState, H as ContextFileEvidence, I as ContextInit, K as ContextIntentEvidence, L as ContextRepeatedReadEvidence, u as ConversationState, N as ERROR_CODES, O as ErrorCode, Q as ErrorSeverity, V as ErrorSubsystem, W as FetchError, X as FileSnapshot, Y as FsError, Z as ImageBlock, _ as JsonSchemaSpec, $ as MessageRole, a0 as ParseError, f as Permission, a1 as PluginError, h as ProviderError, a2 as ProviderErrorBody, a3 as ReadonlyConversationState, a as ReasoningConfig, p as ReasoningEffort, R as ReasoningRequest, a4 as RequestCacheControl, a5 as ResponseFormat, v as ResumedSession, n as RiskTier, a6 as RunEnv, t as RunOptions, a7 as SafetySetting, a8 as SddError, w as SessionData, a9 as SessionError, S as SessionEvent, j as SessionMetadata, k as SessionStore, x as SessionSummary, b as SessionWriter, aa as SideEffect, ab as SideEffectRisk, ac as StateChange, ad as StateChangeHandler, ae as StopReason, af as StreamEvent, ag as StreamHangError, ah as ThinkingBlock, T as TokenCounter, ai as ToolCallContext, aj as ToolError, l as ToolErrorCategory, ak as ToolErrorInfo, al as ToolEvidenceStatus, am as ToolFinalEvent, an as ToolIconId, o as ToolOutputMetadata, m as ToolProgressEvent, A as ToolResultBlock, ao as ToolStreamEvent, z as ToolUseBlock, ap as ToolValidationError, U as Usage, aq as WrongStackError, ar as extractRunEnv, as as isAgentError, at as isConfigError, au as isFetchError, av as isFsError, aw as isImageBlock, ax as isParseError, ay as isPluginError, az as isSddError, aA as isSessionError, aB as isTextBlock, aC as isToolError, aD as isToolResultBlock, aE as isToolUseBlock, aF as isToolValidationError, aG as isWrongStackError, aH as toWrongStackError, aI as wrapAsState } from './tool-LVSLiE1s.js';
29
- import { i as AgentExtension, S as SystemPromptContributor, b as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, c as ToolExecutorLike, E as ExtensionRegistry, T as ToolCallPipelinePayload } from './index-BhCteHAF.js';
30
- export { j as AfterIterationHook, k as AfterRunHook, l as AfterToolExecutionHook, d as AgentInit, e as AgentInput, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, o as HookRunner, p as HookRunnerOptions, O as OnErrorHook, q as PreToolUseResult, r as PromptResult, s as ProviderFactory, t as ProviderRunnerWrapper, R as RunResult, a as ToolWrapper, U as UserInputPayload, u as createDefaultPipelines } from './index-BhCteHAF.js';
26
+ import { d as Context, A as TodoItem, g as Tool, P as Provider, i as ContentBlock, c as Request, e as Response, s as TextBlock, M as Message, J as JSONSchema } from './tool-BNlnIJvo.js';
27
+ export { E as AgentError, C as CacheStats, q as CacheTtl, r as Capabilities, G as CompletedWorkEvidence, H as CompletedWorkSource, I as ConfigError, K as ContextEvidenceState, L as ContextFileEvidence, N as ContextInit, O as ContextIntentEvidence, Q as ContextRepeatedReadEvidence, u as ConversationState, V as ERROR_CODES, X as ErrorCode, Y as ErrorSeverity, Z as ErrorSubsystem, _ as FetchError, $ as FileSnapshot, F as ForkedSession, a0 as FsError, a1 as ImageBlock, a2 as JsonSchemaSpec, a3 as MessageRole, a4 as ParseError, f as Permission, a5 as PluginError, h as ProviderError, a6 as ProviderErrorBody, a7 as ProviderErrorKind, a8 as ReadonlyConversationState, a as ReasoningConfig, p as ReasoningEffort, R as ReasoningRequest, a9 as RequestCacheControl, aa as ResponseFormat, ab as ResumeFileStatus, ac as ResumeFileValidationEntry, ad as ResumeValidation, x as ResumedSession, n as RiskTier, ae as RunEnv, t as RunOptions, af as SafetySetting, ag as SddError, y as SessionData, ah as SessionError, S as SessionEvent, v as SessionForkOptions, j as SessionMetadata, k as SessionStore, z as SessionSummary, b as SessionWriter, ai as SideEffect, aj as SideEffectRisk, ak as StateChange, al as StateChangeHandler, am as StopReason, an as StreamEvent, ao as StreamHangError, ap as ThinkingBlock, T as TokenCounter, aq as ToolCallContext, ar as ToolError, l as ToolErrorCategory, as as ToolErrorInfo, at as ToolEvidenceStatus, au as ToolFinalEvent, av as ToolIconId, o as ToolOutputMetadata, m as ToolProgressEvent, D as ToolResultBlock, aw as ToolStreamEvent, B as ToolUseBlock, ax as ToolValidationError, U as Usage, W as WorkspaceCheckpointRef, w as WorkspaceMaterializationResult, ay as WrongStackError, az as classifyProviderError, aA as effectiveInputTokens, aB as extractRunEnv, aC as isAgentError, aD as isConfigError, aE as isFetchError, aF as isFsError, aG as isImageBlock, aH as isParseError, aI as isPluginError, aJ as isRetryableKind, aK as isSddError, aL as isSessionError, aM as isTextBlock, aN as isToolError, aO as isToolResultBlock, aP as isToolUseBlock, aQ as isToolValidationError, aR as isWrongStackError, aS as toWrongStackError, aT as wrapAsState } from './tool-BNlnIJvo.js';
28
+ import { j as AgentExtension, S as SystemPromptContributor, b as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, R as ResolvedLoopDetectionConfig, c as ToolExecutorLike, E as ExtensionRegistry, T as ToolCallPipelinePayload } from './index--Gm41aBJ.js';
29
+ export { k as AfterIterationHook, l as AfterRunHook, m as AfterToolExecutionHook, d as AgentInit, e as AgentInput, B as BeforeIterationHook, n as BeforeRunHook, o as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, p as HookRunner, q as HookRunnerOptions, O as OnErrorHook, r as PreToolUseResult, s as PromptResult, t as ProviderFactory, u as ProviderRunnerWrapper, f as RunResult, a as ToolWrapper, U as UserInputPayload, v as createDefaultPipelines } from './index--Gm41aBJ.js';
31
30
  import { L as Logger } from './logger-B63L5bTg.js';
32
31
  export { a as LogLevel } from './logger-B63L5bTg.js';
33
- import { A as AttachmentStore, b as AttachmentRef, a as AddAttachmentInput } from './session-reader-B-Fi9L6I.js';
34
- export { c as Attachment, d as AttachmentKind, e as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-B-Fi9L6I.js';
32
+ import { A as AttachmentStore, b as AttachmentRef, a as AddAttachmentInput } from './session-reader-7Esxrkpw.js';
33
+ export { c as Attachment, d as AttachmentKind, e as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-7Esxrkpw.js';
35
34
  import { T as Tracer, M as MetricsSink, H as HealthRegistry } from './observability-D-HZN_mF.js';
36
35
  export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, c as HealthStatus, d as MetricLabels, e as MetricSeries, f as MetricsSnapshot, S as Span } from './observability-D-HZN_mF.js';
37
- import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-V67lBOJz.js';
36
+ import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-CQ7KwXJa.js';
38
37
  import { M as ModeStore } from './mode-CZlO9iU1.js';
39
38
  export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest } from './mode-CZlO9iU1.js';
40
39
  import { S as SkillLoader } from './skill-DHniprNl.js';
41
40
  export { b as SkillEntry, a as SkillManifest } from './skill-DHniprNl.js';
42
- import { S as SystemPromptBuilder, c as ModelCapabilities, B as BuildContext, C as Container, a as Renderer, b as Middleware, H as HookRegistry } from './pipeline-ixSFe5jg.js';
43
- export { d as BindOptions, D as Decorator, F as Factory, M as MiddlewareHandler, N as NextFn, P as Pipeline, e as PipelineOptions, T as Token, h as hookMatcherMatches } from './pipeline-ixSFe5jg.js';
44
- export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorOptions, d as CompactorStrategy, D as DefaultDesignKitLoader, e as DefaultErrorHandler, f as DefaultPromptLoader, g as DefaultRetryPolicy, h as DefaultSkillLoader, i as DesignKitLoaderOptions, j as DesignOverrides, k as DoneCheckResult, l as DoneConditionChecker, H as HybridCompactor, I as IntelligentCompactor, m as IntelligentCompactorOptions, P as PersistedActiveKit, n as PromptLoaderOptions, S as SelectiveCompactor, o as SelectiveCompactorOptions, p as SkillLoaderOptions, q as StrategyCompactorOptions, T as ToolExecutor, _ as _resetDesignKitLoaderMemo, r as _resetDesignRulesCache, s as activateDesign, t as applyTokenOverrides, u as buildGoalPreamble, v as clearActiveKit, w as clearPersistedActiveKit, x as createStrategyCompactor, y as designProjectDir, z as detectFrontendFile, B as detectFrontendIntent, E as getDesignKitLoader, F as getDesignState, G as installDesignStudioMiddleware, J as loadActiveKit, K as loadProjectDesignRules, L as makeAutonomyPromptContributor, M as makeDesignDetectToolCallMiddleware, N as makeDesignDetectUserInputMiddleware, O as makeDesignStudioRequestMiddleware, Q as makeDesignVerifyToolCallMiddleware, R as recordKitChoice, U as recordOverrides, V as renderPrompt, W as resolveBundledDesignKitsDir, X as setActiveKit, Y as setDesignOverrides } from './tool-executor-kElSEgO0.js';
41
+ import { S as SystemPromptBuilder, c as ModelCapabilities, B as BuildContext, d as SystemPromptRegions, C as Container, a as Renderer, b as Middleware, H as HookRegistry } from './pipeline-DGDyIohT.js';
42
+ export { e as BindOptions, D as Decorator, F as Factory, M as MiddlewareHandler, N as NextFn, P as Pipeline, f as PipelineOptions, T as Token, g as flattenSystemPromptRegions, h as hookMatcherMatches } from './pipeline-DGDyIohT.js';
43
+ export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorOptions, d as CompactorStrategy, D as DefaultDesignKitLoader, e as DefaultErrorHandler, f as DefaultPromptLoader, g as DefaultRetryPolicy, h as DefaultSkillLoader, i as DesignKitLoaderOptions, j as DesignOverrides, k as DoneCheckResult, l as DoneConditionChecker, H as HybridCompactor, I as IntelligentCompactor, m as IntelligentCompactorOptions, P as PersistedActiveKit, n as PromptLoaderOptions, S as SelectiveCompactor, o as SelectiveCompactorOptions, p as SkillLoaderOptions, q as StrategyCompactorOptions, T as ToolExecutor, _ as _resetDesignKitLoaderMemo, r as _resetDesignRulesCache, s as activateDesign, t as applyTokenOverrides, u as buildGoalPreamble, v as clearActiveKit, w as clearPersistedActiveKit, x as createStrategyCompactor, y as designProjectDir, z as detectFrontendFile, B as detectFrontendIntent, E as getDesignKitLoader, F as getDesignState, G as installDesignStudioMiddleware, J as loadActiveKit, K as loadProjectDesignRules, L as makeAutonomyPromptContributor, M as makeDesignDetectToolCallMiddleware, N as makeDesignDetectUserInputMiddleware, O as makeDesignStudioRequestMiddleware, Q as makeDesignVerifyToolCallMiddleware, R as recordKitChoice, U as recordOverrides, V as renderPrompt, W as resolveBundledDesignKitsDir, X as setActiveKit, Y as setDesignOverrides } from './tool-executor-CckSCM5E.js';
45
44
  export { DefaultProviderRunner, DesignVerifyReport, DesignViolation, MaterializeResult, colorToHex, isColorToken, materializeTokens, oklchToHex, parseOklch, runDesignVerify, verifyFiles } from './defaults/index.js';
46
- export { f as DESIGN_STACKS, d as DesignKitEntry, b as DesignKitLoader, c as DesignKitManifest, e as DesignKitTokens, D as DesignStack, a as DesignStudioState, g as DesignTokenSet, E as EternalAutonomyEngine, h as EternalAutonomyOptions, i as EternalEngineState, I as IterationStage, P as ParallelEngineState, j as ParallelEternalEngine, k as ParallelEternalOptions, l as ParallelIterationStage, m as isDesignStack } from './parallel-eternal-engine-iY2uxocj.js';
47
- export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, b as DefaultModelsRegistry, c as DefaultModelsRegistryOptions, L as LLMSelector, d as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, e as classifyFamily, f as codexModelMeta, g as describeCatalogModel, l as loadProjectModes, h as loadUserModes, r as resolveProviderModelList } from './provider-model-resolve-DIxKL_T-.js';
45
+ export { f as DESIGN_STACKS, d as DesignKitEntry, b as DesignKitLoader, c as DesignKitManifest, e as DesignKitTokens, D as DesignStack, a as DesignStudioState, g as DesignTokenSet, E as EternalAutonomyEngine, h as EternalAutonomyOptions, i as EternalEngineState, I as IterationStage, P as ParallelEngineState, j as ParallelEternalEngine, k as ParallelEternalOptions, l as ParallelIterationStage, m as isDesignStack } from './parallel-eternal-engine-HUrtePLd.js';
46
+ export { C as CODEX_MODELS, a as CodexModelMeta, D as DefaultModeStore, b as DefaultModelsRegistry, c as DefaultModelsRegistryOptions, L as LLMSelector, d as LLMSelectorOptions, M as ModeLoaderOptions, P as ProviderModelDescriptor, e as classifyFamily, f as codexModelMeta, g as describeCatalogModel, l as loadProjectModes, h as loadUserModes, r as resolveProviderModelList } from './provider-model-resolve-o2hHLs79.js';
48
47
  export { DefaultHealthRegistry, InMemoryMetricsSink, MetricsServerHandle, MetricsServerOptions, NoopMetricsSink, NoopTracer, OTelTracer, OtlpMetricsExporterHandle, OtlpMetricsExporterOptions, OtlpTraceExporterHandle, OtlpTraceExporterOptions, PROMETHEUS_CONTENT_TYPE, buildOtlpMetricsRequest, buildOtlpTracesRequest, renderPrometheus, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, wireMetricsToEvents } from './observability/index.js';
49
- export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from './todos-checkpoint-BwCrj4Cb.js';
50
- export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-B_GPa78Q.js';
51
- export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-Bkp7ORfc.js';
48
+ export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from './todos-checkpoint-FY7PjmMx.js';
49
+ export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-CMS_bMs4.js';
50
+ export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-D_z_mBwk.js';
52
51
  export { AutonomyBrainOptions, BrainAutoRisk, ModelRuntimeMiddlewareOptions, ResolvedModelRuntime, TieredBrainArbiterOptions, applyModelRuntime, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary, mergeModelRuntime, resolveCacheForRequest, resolveModelRuntime, resolveReasoningForRequest } from './execution/index.js';
53
52
  import { estimateMessageTokens } from './utils/index.js';
54
- export { AtomicWriteOptions, BuildChildEnvOptions, COMPLETED_WORK_LEDGER_MARKER, CompactToolDefinitionForWireOptions, CompactWireToolDefinition, CompileFail, CompileResult, DEFAULT_TOOL_DESCRIPTION_MODE, DEFAULT_TOOL_RESULT_RENDER_MODE, DeepMergeOptions, FORBIDDEN_PROTO_KEYS, FileLockOptions, JsonObject, JsonPath, JsonPathSegment, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RecordCompletedWorkInput, RecordToolOutputEvidenceInput, RequestTokenBreakdown, SafeParseResult, ToolDescriptionRegistryLike, ToolOutputSerializerOptions, ToolResultRenderModeRegistryLike, ToolWireDefinitionLike, UnifiedDiffOptions, ValidationError, ValidationResult, applyToolDescriptionModeToTool, applyToolDescriptionModes, applyToolResultRenderModes, assertNever, assertNotPrivateHost, atomicWrite, buildChildEnv, buildContextEvidenceDigest, color, compactSchemaDescriptions, compactToolDefinitionForWire, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, createContextEvidenceState, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, escapeGlobSubject, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expandIPv6, formatCompletedWorkLedger, formatTodosList, getCalibrationState, getJsonPath, getTermSize, getToolDescriptionMode, getToolResultRenderMode, hasOpenTodos, isInteractive, isJsonObject, isPathSubjectKey, isPrimitiveArray, isPrivateIPv4, isPrivateIPv6, isStdinTTY, isStdoutTTY, isUlid, jsonObjectFileExists, markAssistantReferencedEvidence, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizePathSubject, normalizeToLf, normalizeToolDescriptionMode, normalizeToolResultRenderMode, onResize, readJsonObjectFile, recordActualUsage, recordCompletedWorkEvidence, recordToolOutputEvidence, recordUserIntentEvidence, removeJsonPath, removeJsonPathInFile, repairToolUseAdjacency, repeatedReadPressure, resetCalibration, resolveToolDescriptionMode, resolveToolResultRenderMode, safeParse, safeStringify, sanitizeJsonString, sanitizeNodeOptions, sessionScopedPath, setJsonPath, setJsonPathInFile, setOutputLineGuard, setRawMode, setToolDescriptionMode, setToolResultRenderMode, simplifyToolDescription, sleep, slugify, stripAnsi, subjectForToolInput, syncCompletedWorkLedgerBlock, toStyle, truncate, ulid, unifiedDiff, updateJsonObjectFile, validateAgainstSchema, withFileLock, writeErr, writeJsonObjectFile, writeOut } from './utils/index.js';
53
+ export { AtomicWriteOptions, BuildChildEnvOptions, COMPLETED_WORK_LEDGER_MARKER, CoercionResult, CompactToolDefinitionForWireOptions, CompactWireToolDefinition, CompileFail, CompileResult, DEFAULT_TOOL_DESCRIPTION_MODE, DEFAULT_TOOL_RESULT_RENDER_MODE, DeepMergeOptions, FORBIDDEN_PROTO_KEYS, FileLockOptions, JsonObject, JsonPath, JsonPathSegment, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RecordCompletedWorkInput, RecordToolOutputEvidenceInput, RequestTokenBreakdown, SafeParseResult, ToolDescriptionRegistryLike, ToolOutputSerializerOptions, ToolResultRenderModeRegistryLike, ToolWireDefinitionLike, UnifiedDiffOptions, ValidationError, ValidationResult, applyToolDescriptionModeToTool, applyToolDescriptionModes, applyToolResultRenderModes, assertNever, assertNotPrivateHost, atomicWrite, buildChildEnv, buildCompletedWorkLedgerBlock, buildContextEvidenceDigest, coerceAgainstSchema, color, compactSchemaDescriptions, compactToolDefinitionForWire, compileGlob, compileUserRegex, completePartialObject, computeMessageTokens, createContextEvidenceState, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, escapeGlobSubject, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, expandIPv6, formatCompletedWorkLedger, formatTodosList, getCalibrationState, getJsonPath, getTermSize, getToolDescriptionMode, getToolResultRenderMode, hasOpenTodos, isInteractive, isJsonObject, isPathSubjectKey, isPrimitiveArray, isPrivateIPv4, isPrivateIPv6, isStdinTTY, isStdoutTTY, isUlid, jsonObjectFileExists, markAssistantReferencedEvidence, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizePathSubject, normalizeToLf, normalizeToolDescriptionMode, normalizeToolResultRenderMode, onResize, readJsonObjectFile, recordActualUsage, recordCompletedWorkEvidence, recordToolOutputEvidence, recordUserIntentEvidence, removeJsonPath, removeJsonPathInFile, repairToolUseAdjacency, repeatedReadPressure, resetCalibration, resolveToolDescriptionMode, resolveToolResultRenderMode, safeParse, safeStringify, sanitizeJsonString, sanitizeNodeOptions, sessionScopedPath, setJsonPath, setJsonPathInFile, setOutputLineGuard, setRawMode, setToolDescriptionMode, setToolResultRenderMode, simplifyToolDescription, sleep, slugify, stripAnsi, stripCodeFences, subjectForToolInput, syncCompletedWorkLedgerBlock, toStyle, truncate, ulid, unifiedDiff, updateJsonObjectFile, validateAgainstSchema, withFileLock, writeErr, writeJsonObjectFile, writeOut } from './utils/index.js';
55
54
  export { ConversationTurn, ENHANCER_SYSTEM_PROMPT, EnhanceResult, EnhanceUserPromptOptions, enhanceUserPrompt, gatedEnhancerReasoning, normalizedEqual, recentTextTurns, shouldEnhance } from './execution/prompt-enhancer.js';
56
55
  export { AgentMonitorEventBridgeOptions, BrainTelemetryBridgeOptions, CostTelemetryBridgeOptions, CreateGlobalMailboxOptions, CreateHqPublisherOptions, EnsureHqFirstRunAuthResult, FleetTelemetryBridgeOptions, HQ_AUTH_FILE_VERSION, HQ_COMMAND_TYPES, HqAbortCommand, HqAgentEventPublisher, HqAlert, HqAlertEngine, HqAlertRuleConfig, HqAlertSeverity, HqAuthFile, HqBroadcastCommand, HqBrowserToken, HqBtwCommand, HqCommand, HqCommandAuditEntry, HqCommandAuditLog, HqCommandType, HqEventLog, HqEventLogOptions, HqPersistence, HqPublisherEnvConfig, HqQueueCommand, HqRedactOptions, HqRedactionResult, HqRunCommandCommand, HqRuntimeFile, HqSnapshotStore, HqSnapshotStoreOptions, HqSpawnCommand, HqSteerCommand, HqTimeseriesSample, HqTimeseriesStore, HqTimeseriesStoreOptions, HqToken, SessionTelemetryBridgeOptions, ToolTelemetryBridgeOptions, WorktreeTelemetryBridgeOptions, buildTranscriptFromEvents, createGlobalMailbox, createHqPersistence, createHqPublisherFromEnv, defaultHqDataDir, discoverLocalHqEndpoint, emptyHqAuthFile, ensureHqFirstRunAuthFile, hqAuthFilePath, hqRuntimeFilePath, mapSessionEventToEntries, mergeToolResults, mintHqBrowserToken, mintHqToken, mutateHqAuthFile, readHqAuthFile, readHqRuntimeFileSync, redactHqEvent, redactHqValue, resolveHqConfig, resolveHqConfigFromEnv, resolveHqDataDir, scrubAndTruncateHqPreview, startAgentMonitorEventBridge, startBrainTelemetryBridge, startCostTelemetryBridge, startFleetTelemetryBridge, startSessionTelemetryBridge, startToolTelemetryBridge, startWorktreeTelemetryBridge, summarizeHqToolArgs, toAlertMessage, tokenHasCapability, validateHqCommand, watchHqAuthFile, writeHqAuthFile, writeHqRuntimeFile } from './hq/index.js';
57
56
  export { RunController, RunControllerOptions, TOKENS } from './kernel/index.js';
58
- import { P as PermissionPolicy } from './permission-B6YAtNFz.js';
59
- export { a as PermissionDecision, T as TrustPolicy } from './permission-B6YAtNFz.js';
57
+ import { P as PermissionPolicy } from './permission-ByDKXEcG.js';
58
+ export { a as PermissionDecision, T as TrustPolicy } from './permission-ByDKXEcG.js';
60
59
  export { H as HttpDispatcher, a as HttpsAgentAsDispatcher } from './dispatcher-types.d-BBeXBQgS.js';
61
60
  import { DefaultPromptStore, PromptUsageStore, ReplayLogStore } from './storage/index.js';
62
- export { ALL_SYNC_CATEGORIES, AgentStatusTracker, AgentStatusTrackerOptions, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, CompletedWorkCheckpointFile, ConsolidationOp, DefaultSessionRewinder, FleetNotifier, FleetNotifierOptions, GraphMemoryBackend, GraphMemoryBackendOptions, INPUT_HISTORY_DEFAULT_MAX, InputHistoryStore, MemoryConsolidatorOptions, PromptStore, PromptUsage, ProviderConfigSnapshot, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionMemoryConsolidator, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, TaskFile, ToolAuditLog, ToolAuditLogOptions, VerifyResult, WatchProviderConfigOptions, emptyTaskFile, generateSessionId, loadCompletedWorkCheckpoint, loadTasks, migratePromptEntry, mutateTasks, promptChecksum, sanitizeModel, saveCompletedWorkCheckpoint, saveTasks, watchProviderConfig } from './storage/index.js';
61
+ export { ALL_SYNC_CATEGORIES, AgentStatusTracker, AgentStatusTrackerOptions, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CheckpointGitResult, CloudSync, CompletedWorkCheckpointFile, ConsolidationOp, DefaultSessionRewinder, FleetNotifier, FleetNotifierOptions, GraphMemoryBackend, GraphMemoryBackendOptions, INPUT_HISTORY_DEFAULT_MAX, InputHistoryStore, MemoryConsolidatorOptions, PromptStore, PromptUsage, ProviderConfigSnapshot, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionCheckpointCas, SessionCheckpointCasOptions, SessionMemoryConsolidator, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, TaskFile, ToolAuditLog, ToolAuditLogOptions, VerifyResult, WatchProviderConfigOptions, emptyTaskFile, generateSessionId, loadCompletedWorkCheckpoint, loadTasks, migratePromptEntry, mutateTasks, promptChecksum, sanitizeModel, saveCompletedWorkCheckpoint, saveTasks, watchProviderConfig } from './storage/index.js';
63
62
  import { P as PromptLoader } from './prompt-DLd35n4Q.js';
64
63
  export { B as BUILTIN_PROMPT_CATEGORIES, d as BuiltinPromptCategory, e as PROMPT_CATEGORY_LABELS, f as PromptCategory, c as PromptCategoryCount, a as PromptEntry, g as PromptManifest, h as PromptManifestRef, b as PromptSearchOptions, i as PromptSource, j as PromptVariable, k as isBuiltinCategory } from './prompt-DLd35n4Q.js';
65
64
  import { SkillRegistryAdapter } from './skills/index.js';
66
65
  export { DEFAULT_SKILLS_SH_URL, DownloadResult, ExtractedSkillDraft, FOREIGN_SKILL_TOOLS, ForeignSkillTool, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, ParsedSkillFrontmatter, RegistrySearchOptions, RegistrySearchResult, RegistrySkillSummary, ResolvedForeignTools, SKILL_LIMITS, SkillInstaller, SkillInstallerOptions, SkillManifestStore, SkillNameValidation, SkillSecurityTier, SkillSkeletonOptions, UpdateResult, bodyLineAdvisory, createSkillsShAdapter, downloadGitHubTarball, extractSkillFromPrompt, generateSkillSkeleton, githubDirectAdapter, isValidSkillNameFormat, openInEditor, parseSkillFrontmatter, parseSkillRef, resolveForeignToolIds, resolveForeignToolIdsWithWarnings, securityScoreToTier, stripFrontmatter, validateSkillName, validateSkillNameAvailable, writeSkeletonSkill } from './skills/index.js';
67
66
  import { PromptRegistryManifest, RegistryDiff, PromptManifestData, InstalledPromptEntry } from './types/index.js';
68
- export { AutonomyStage, DistributiveOmit, MALFORMED_ARG_MARKERS, ManifestValidation, PromptRegistryRef, diffRegistry, validateRegistryManifest } from './types/index.js';
69
- import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-oQhDaZmH.js';
70
- export { D as DANGEROUS_FOR_SUBAGENTS, T as ToolCapabilities, a as ToolCapability, W as WIDE_SUBAGENT_CAPABILITIES, g as getDangerousCapabilities, h as hasCapability, b as hasDangerousCapabilityForSubagents } from './index-BEFWNZYs.js';
71
- export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PROGRESS_HISTORY, P as ProgressSnapshot, b as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, p as parseProgressFromText, r as recordProgress, s as saveGoal, c as setProgress, d as summarizeUsage } from './goal-store-8owBXJT2.js';
67
+ export { AutonomyStage, DEFAULT_SPEC_TEMPLATE, DistributiveOmit, MALFORMED_ARG_MARKERS, ManifestValidation, PromptRegistryRef, SpecAnalysis, SpecApiEndpoint, SpecRequirement, SpecSection, SpecSectionType, SpecStatus, SpecTemplate, SpecValidationResult, Specification, diffRegistry, validateRegistryManifest } from './types/index.js';
68
+ import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-ChL-kVg6.js';
69
+ export { D as DANGEROUS_FOR_SUBAGENTS, T as ToolCapabilities, a as ToolCapability, W as WIDE_SUBAGENT_CAPABILITIES, g as getDangerousCapabilities, h as hasCapability, b as hasDangerousCapabilityForSubagents } from './index-CbyuOE5y.js';
70
+ export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PROGRESS_HISTORY, P as ProgressSnapshot, b as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, p as parseProgressFromText, r as recordProgress, s as saveGoal, c as setProgress, d as summarizeUsage } from './goal-store-Datpp-ar.js';
72
71
  import { MCPRegistryHandle } from './tools/index.js';
73
72
  export { createMcpControlTool } from './tools/index.js';
74
- export { a as CompactReport, C as Compactor } from './compactor-BxddyCFu.js';
75
- export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CIRCUIT_BREAKER_CONFIG, b as DEFAULT_CONTEXT_CONFIG, c as DEFAULT_SESSION_LOGGING_CONFIG, d as DEFAULT_SESSION_PRUNE_DAYS, e as DEFAULT_TOOLS_CONFIG } from './default-config-Buho8yge.js';
73
+ export { a as CompactReport, C as Compactor } from './compactor-DQLL4HTo.js';
74
+ export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CIRCUIT_BREAKER_CONFIG, b as DEFAULT_CONTEXT_CONFIG, c as DEFAULT_SESSION_LOGGING_CONFIG, d as DEFAULT_SESSION_PRUNE_DAYS, e as DEFAULT_TOOLS_CONFIG } from './default-config-B79_gJYv.js';
76
75
  export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from './session-rewinder-C9HnMkhP.js';
77
76
  export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
78
- export { D as DEFAULT_SPEC_TEMPLATE, S as SpecAnalysis, a as SpecApiEndpoint, b as SpecRequirement, c as SpecSection, d as SpecSectionType, e as SpecStatus, f as SpecTemplate, g as SpecValidationResult, h as Specification } from './spec-TBi3Jr6T.js';
79
77
  export { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
80
78
  export { R as RotatableSecretVault, S as SecretVault, e as encryptedPrefixForVersion, n as noOpVault, p as parseEncryptedVersion } from './secret-vault-BAKpgFw_.js';
81
79
  export { expectDefined } from './utils/expect-defined.js';
@@ -83,7 +81,7 @@ export { toErrorMessage } from './utils/error.js';
83
81
  export { T as TaskItem, c as computeTaskItemProgress, f as formatTaskList, a as formatTaskProgress } from './task-format-GX0B1mMC.js';
84
82
  import './path-resolver-CPRj4bFY.js';
85
83
  import 'node:events';
86
- import './selector-Bx2HgUkU.js';
84
+ import './selector-D8O6B_Rm.js';
87
85
  import 'node:https';
88
86
  import 'undici';
89
87
 
@@ -1927,6 +1925,7 @@ declare class DefaultSystemPromptBuilder implements SystemPromptBuilder {
1927
1925
  */
1928
1926
  private toolDescLimit;
1929
1927
  build(ctx: BuildContext): Promise<TextBlock[]>;
1928
+ buildRegions(ctx: BuildContext): Promise<SystemPromptRegions>;
1930
1929
  private instructions;
1931
1930
  private instructionSection;
1932
1931
  /**
@@ -1946,6 +1945,7 @@ declare class DefaultSystemPromptBuilder implements SystemPromptBuilder {
1946
1945
  private buildActivePlan;
1947
1946
  private _formatPlan;
1948
1947
  private buildToolUsage;
1948
+ private renderToolSelectionBoundary;
1949
1949
  /**
1950
1950
  * Cheap content fingerprint of the online agents array. The mailbox
1951
1951
  * rebuilds the array as a fresh object on every status check, so caching
@@ -2108,675 +2108,9 @@ declare function runShellHook(spec: ShellHookSpec, input: HookInput, logger?: Lo
2108
2108
  * from anywhere.
2109
2109
  */
2110
2110
 
2111
- /**
2112
- * Compare two `config.hooks` maps. Returns true when they describe the
2113
- * same set of entries (same events, same order, same command/matcher/
2114
- * timeoutMs triples). Both arguments may be undefined — the absence of
2115
- * `hooks` is a valid state.
2116
- *
2117
- * Comparison is shallow per entry: `ShellHook` fields are all primitives,
2118
- * so `===` per field is correct. Object-identity per entry is **not**
2119
- * required because `configStore.update` may rebuild the maps from JSON.
2120
- */
2121
- declare function shellHooksEqual(a: Partial<Record<HookEvent, ShellHook[]>> | undefined, b: Partial<Record<HookEvent, ShellHook[]>> | undefined): boolean;
2111
+ declare function shellHooksEqual(a: Partial<Record<HookEvent, ConfiguredHook[]>> | undefined, b: Partial<Record<HookEvent, ConfiguredHook[]>> | undefined): boolean;
2122
2112
  /** Count the total number of shell-hook entries across all events. */
2123
- declare function countShellHooks(hooks: Partial<Record<HookEvent, ShellHook[]>> | undefined): number;
2124
-
2125
- /**
2126
- * Project-scoped multi-kanban data model.
2127
- *
2128
- * Boards are stored as JSON files under `<project>/.wrongstack/kanbans/`.
2129
- * The model is intentionally provider-free: LLMs can manipulate kanban data
2130
- * through tools, but core CRUD stays deterministic and file-based.
2131
- */
2132
- type KanbanTaskPriority = 'critical' | 'high' | 'medium' | 'low';
2133
- type KanbanTaskStatus = 'pending' | 'ready' | 'in_progress' | 'blocked' | 'review' | 'completed' | 'failed' | 'archived';
2134
- type KanbanCheckType = 'manual' | 'auto' | 'agent' | 'test' | 'review';
2135
- type KanbanCheckStatus = 'pending' | 'passed' | 'failed' | 'skipped';
2136
- type KanbanLinkType = 'issue' | 'pr' | 'doc' | 'commit' | 'design' | 'file' | 'url' | 'other';
2137
- type KanbanAgentRunStatus = 'assigned' | 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
2138
- type KanbanGoalMetricStatus = 'pending' | 'met' | 'missed' | 'waived';
2139
- type KanbanRetryPolicy = 'off' | 'incremental' | 'exponential';
2140
- /**
2141
- * Sprint 2 recovery mode surface. `'auto'` defers per-task mode to
2142
- * `selectRecoveryMode` based on the configured `RecoverStaleKanbanAssignmentsInput.policy`.
2143
- * Explicit modes keep the historical semantics:
2144
- * - `'release'` clears the assignment and returns the task to ready/blocked.
2145
- * - `'retry'` increments attempt and re-queues unless `maxAttempts` is exhausted.
2146
- * - `'fail'` marks the assignment failed (retry budget exhausted).
2147
- */
2148
- type KanbanRecoveryMode = 'auto' | 'release' | 'retry' | 'fail';
2149
- /**
2150
- * Optional policy that biases per-task recovery decisions. When present and
2151
- * `RecoverStaleKanbanAssignmentsInput.mode === 'auto'`, each stale task gets
2152
- * a per-task mode derived from its assignment metadata, the queue health
2153
- * signal summary for the task's board, and the policy rules below.
2154
- */
2155
- interface KanbanRecoveryPolicy {
2156
- /** When true, prefer `fail` over `retry` for tasks whose `costCeilingUsd` is set. */
2157
- failWhenCostCeilingSet?: boolean | undefined;
2158
- /** When set, prefer `release` for tasks whose `lastFailureKind` matches any of these. */
2159
- releaseOnFailureKinds?: string[] | undefined;
2160
- /** When true, also `release` if the heartbeat-due signal mentions this task. Default: false. */
2161
- releaseOnHeartbeatDue?: boolean | undefined;
2162
- /** Incremental/exponential/off hint returned for cost boundary diagnostics. */
2163
- retryPolicyOverride?: KanbanRetryPolicy | undefined;
2164
- }
2165
- interface KanbanAgentAssignment {
2166
- agentId?: string | undefined;
2167
- name?: string | undefined;
2168
- role?: string | undefined;
2169
- provider?: string | undefined;
2170
- model?: string | undefined;
2171
- fallbackProfile?: string | undefined;
2172
- fallbackModels?: string[] | undefined;
2173
- tools?: string[] | undefined;
2174
- allowedCapabilities?: string[] | undefined;
2175
- status: KanbanAgentRunStatus;
2176
- dispatchedAt?: string | undefined;
2177
- completedAt?: string | undefined;
2178
- leaseId?: string | undefined;
2179
- claimedAt?: string | undefined;
2180
- heartbeatAt?: string | undefined;
2181
- leaseExpiresAt?: string | undefined;
2182
- attempt?: number | undefined;
2183
- maxAttempts?: number | undefined;
2184
- /** Sprint 2: cost ceiling for this assignment in USD; 0/undefined means unbounded. */
2185
- costCeilingUsd?: number | undefined;
2186
- /** Sprint 2: which retry strategy the recovery router should follow. */
2187
- retryPolicy?: KanbanRetryPolicy | undefined;
2188
- /** Sprint 2: last failure kind observed by the worker, used by routing hints. */
2189
- lastFailureKind?: string | undefined;
2190
- subagentId?: string | undefined;
2191
- runTaskId?: string | undefined;
2192
- lastResult?: string | undefined;
2193
- error?: string | undefined;
2194
- }
2195
- interface KanbanCheck {
2196
- id: string;
2197
- description: string;
2198
- type: KanbanCheckType;
2199
- status: KanbanCheckStatus;
2200
- checkedBy?: string | undefined;
2201
- checkedAt?: string | undefined;
2202
- notes?: string | undefined;
2203
- }
2204
- interface KanbanLink {
2205
- url: string;
2206
- title?: string | undefined;
2207
- type: KanbanLinkType;
2208
- }
2209
- interface KanbanNote {
2210
- id: string;
2211
- author: string;
2212
- content: string;
2213
- createdAt: string;
2214
- }
2215
- interface KanbanEvent {
2216
- id: string;
2217
- boardId: string;
2218
- type: string;
2219
- ts: string;
2220
- taskId?: string | undefined;
2221
- actor?: string | undefined;
2222
- before?: unknown;
2223
- after?: unknown;
2224
- correlationId?: string | undefined;
2225
- subagentId?: string | undefined;
2226
- runTaskId?: string | undefined;
2227
- note?: string | undefined;
2228
- }
2229
- interface KanbanGoalMetric {
2230
- id: string;
2231
- name: string;
2232
- status: KanbanGoalMetricStatus;
2233
- target?: string | number | undefined;
2234
- current?: string | number | undefined;
2235
- unit?: string | undefined;
2236
- notes?: string | undefined;
2237
- updatedAt?: string | undefined;
2238
- }
2239
- interface KanbanTaskChainRef {
2240
- chainId: string;
2241
- order: number;
2242
- previousTaskId?: string | undefined;
2243
- nextTaskId?: string | undefined;
2244
- }
2245
- interface KanbanTaskOrigin {
2246
- system: string;
2247
- graphId?: string | undefined;
2248
- phaseId?: string | undefined;
2249
- taskId?: string | undefined;
2250
- specId?: string | undefined;
2251
- }
2252
- interface KanbanTask {
2253
- id: string;
2254
- title: string;
2255
- description?: string | undefined;
2256
- columnId: string;
2257
- order: number;
2258
- priority: KanbanTaskPriority;
2259
- status: KanbanTaskStatus;
2260
- assignedAgent?: string | undefined;
2261
- assignee?: string | undefined;
2262
- assignment?: KanbanAgentAssignment | undefined;
2263
- dependsOn?: string[] | undefined;
2264
- chain?: KanbanTaskChainRef | undefined;
2265
- parentTaskId?: string | undefined;
2266
- childTaskIds?: string[] | undefined;
2267
- mergedIntoTaskId?: string | undefined;
2268
- mergedFromTaskIds?: string[] | undefined;
2269
- origin?: KanbanTaskOrigin | undefined;
2270
- successCriteria?: KanbanCheck[] | undefined;
2271
- goalMetrics?: KanbanGoalMetric[] | undefined;
2272
- labels?: string[] | undefined;
2273
- createdAt: string;
2274
- updatedAt: string;
2275
- completedAt?: string | undefined;
2276
- estimatedHours?: number | undefined;
2277
- actualHours?: number | undefined;
2278
- /**
2279
- * Sprint 3: durable task-level retry policy that survives claim/release cycles.
2280
- * Set during assignTask, used as fallback when assignment.retryPolicy is absent.
2281
- */
2282
- retryPolicy?: KanbanRetryPolicy | undefined;
2283
- /**
2284
- * Sprint 3: durable task-level cost ceiling that survives claim/release cycles.
2285
- * Set during assignTask, used as fallback when assignment.costCeilingUsd is absent.
2286
- */
2287
- costCeilingUsd?: number | undefined;
2288
- links?: KanbanLink[] | undefined;
2289
- notes?: KanbanNote[] | undefined;
2290
- }
2291
- interface KanbanColumn {
2292
- id: string;
2293
- title: string;
2294
- description?: string | undefined;
2295
- color?: string | undefined;
2296
- order: number;
2297
- wipLimit?: number | undefined;
2298
- }
2299
- interface KanbanBoard {
2300
- id: string;
2301
- title: string;
2302
- description?: string | undefined;
2303
- tags?: string[] | undefined;
2304
- columns: KanbanColumn[];
2305
- tasks: KanbanTask[];
2306
- createdAt: string;
2307
- updatedAt: string;
2308
- completedAt?: string | undefined;
2309
- generatedBy?: string | undefined;
2310
- version: number;
2311
- }
2312
- interface KanbanBoardMeta {
2313
- id: string;
2314
- title: string;
2315
- description?: string | undefined;
2316
- columnCount: number;
2317
- taskCount: number;
2318
- completedTaskCount: number;
2319
- tags?: string[] | undefined;
2320
- createdAt: string;
2321
- updatedAt: string;
2322
- lastActivity?: string | undefined;
2323
- }
2324
- type KanbanBoardSummary = Pick<KanbanBoard, 'id' | 'title' | 'description' | 'tags' | 'createdAt' | 'updatedAt'> & {
2325
- columnCount: number;
2326
- taskCount: number;
2327
- completedTaskCount: number;
2328
- lastActivity?: string | undefined;
2329
- };
2330
- interface CreateKanbanBoardInput {
2331
- title: string;
2332
- description?: string | undefined;
2333
- tags?: string[] | undefined;
2334
- columns?: KanbanColumn[] | undefined;
2335
- tasks?: Array<Partial<KanbanTask> & Pick<KanbanTask, 'title'>> | undefined;
2336
- generatedBy?: string | undefined;
2337
- }
2338
- interface UpdateKanbanBoardInput {
2339
- title?: string | undefined;
2340
- description?: string | undefined;
2341
- tags?: string[] | undefined;
2342
- columns?: KanbanColumn[] | undefined;
2343
- completedAt?: string | null | undefined;
2344
- }
2345
- interface DuplicateKanbanBoardInput {
2346
- title?: string | undefined;
2347
- includeTasks?: boolean | undefined;
2348
- includeCompletedTasks?: boolean | undefined;
2349
- preserveAssignment?: boolean | undefined;
2350
- generatedBy?: string | undefined;
2351
- }
2352
- interface CreateKanbanColumnInput {
2353
- id?: string | undefined;
2354
- title: string;
2355
- description?: string | undefined;
2356
- color?: string | undefined;
2357
- order?: number | undefined;
2358
- wipLimit?: number | undefined;
2359
- }
2360
- interface UpdateKanbanColumnInput {
2361
- title?: string | undefined;
2362
- description?: string | undefined;
2363
- color?: string | undefined;
2364
- order?: number | undefined;
2365
- wipLimit?: number | undefined;
2366
- }
2367
- interface RemoveKanbanColumnOptions {
2368
- moveTasksToColumnId?: string | undefined;
2369
- }
2370
- interface CreateKanbanTaskInput {
2371
- title: string;
2372
- description?: string | undefined;
2373
- columnId?: string | undefined;
2374
- order?: number | undefined;
2375
- priority?: KanbanTaskPriority | undefined;
2376
- status?: KanbanTaskStatus | undefined;
2377
- assignedAgent?: string | undefined;
2378
- assignee?: string | undefined;
2379
- assignment?: KanbanAgentAssignment | undefined;
2380
- dependsOn?: string[] | undefined;
2381
- chain?: KanbanTaskChainRef | undefined;
2382
- parentTaskId?: string | undefined;
2383
- childTaskIds?: string[] | undefined;
2384
- mergedIntoTaskId?: string | undefined;
2385
- mergedFromTaskIds?: string[] | undefined;
2386
- origin?: KanbanTaskOrigin | undefined;
2387
- labels?: string[] | undefined;
2388
- estimatedHours?: number | undefined;
2389
- actualHours?: number | undefined;
2390
- successCriteria?: KanbanCheck[] | undefined;
2391
- goalMetrics?: KanbanGoalMetric[] | undefined;
2392
- links?: KanbanLink[] | undefined;
2393
- notes?: KanbanNote[] | undefined;
2394
- }
2395
- interface UpdateKanbanTaskInput {
2396
- title?: string | undefined;
2397
- description?: string | undefined;
2398
- columnId?: string | undefined;
2399
- order?: number | undefined;
2400
- priority?: KanbanTaskPriority | undefined;
2401
- status?: KanbanTaskStatus | undefined;
2402
- assignedAgent?: string | null | undefined;
2403
- assignee?: string | null | undefined;
2404
- assignment?: KanbanAgentAssignment | null | undefined;
2405
- dependsOn?: string[] | undefined;
2406
- chain?: KanbanTaskChainRef | null | undefined;
2407
- parentTaskId?: string | null | undefined;
2408
- childTaskIds?: string[] | undefined;
2409
- mergedIntoTaskId?: string | null | undefined;
2410
- mergedFromTaskIds?: string[] | undefined;
2411
- origin?: KanbanTaskOrigin | null | undefined;
2412
- labels?: string[] | undefined;
2413
- estimatedHours?: number | undefined;
2414
- actualHours?: number | undefined;
2415
- successCriteria?: KanbanCheck[] | undefined;
2416
- goalMetrics?: KanbanGoalMetric[] | undefined;
2417
- links?: KanbanLink[] | undefined;
2418
- }
2419
- interface CopyKanbanTaskOptions {
2420
- targetColumnId?: string | undefined;
2421
- targetOrder?: number | undefined;
2422
- preserveAssignment?: boolean | undefined;
2423
- preserveDependencies?: boolean | undefined;
2424
- }
2425
- interface AssignKanbanTaskInput {
2426
- agentId?: string | undefined;
2427
- name?: string | undefined;
2428
- role?: string | undefined;
2429
- provider?: string | undefined;
2430
- model?: string | undefined;
2431
- fallbackProfile?: string | undefined;
2432
- fallbackModels?: string[] | undefined;
2433
- tools?: string[] | undefined;
2434
- allowedCapabilities?: string[] | undefined;
2435
- assignee?: string | undefined;
2436
- leaseId?: string | undefined;
2437
- claimedAt?: string | undefined;
2438
- heartbeatAt?: string | undefined;
2439
- leaseExpiresAt?: string | undefined;
2440
- attempt?: number | undefined;
2441
- maxAttempts?: number | undefined;
2442
- costCeilingUsd?: number | undefined;
2443
- retryPolicy?: KanbanRetryPolicy | undefined;
2444
- lastFailureKind?: string | undefined;
2445
- status?: KanbanAgentRunStatus | undefined;
2446
- }
2447
- interface SplitKanbanTaskInput {
2448
- titles: string[];
2449
- columnId?: string | undefined;
2450
- inheritAssignment?: boolean | undefined;
2451
- inheritLabels?: boolean | undefined;
2452
- inheritSuccessCriteria?: boolean | undefined;
2453
- inheritGoalMetrics?: boolean | undefined;
2454
- inheritDependencies?: boolean | undefined;
2455
- chainChildren?: boolean | undefined;
2456
- rewireDependents?: boolean | undefined;
2457
- }
2458
- interface MergeKanbanTasksInput {
2459
- taskIds: string[];
2460
- title: string;
2461
- description?: string | undefined;
2462
- targetColumnId?: string | undefined;
2463
- preserveAssignment?: boolean | undefined;
2464
- closeSourceTasks?: boolean | undefined;
2465
- }
2466
- interface SetKanbanTaskChainInput {
2467
- taskIds: string[];
2468
- chainId?: string | undefined;
2469
- enforceDependencies?: boolean | undefined;
2470
- }
2471
- interface AddKanbanGoalMetricInput {
2472
- name: string;
2473
- status?: KanbanGoalMetricStatus | undefined;
2474
- target?: string | number | undefined;
2475
- current?: string | number | undefined;
2476
- unit?: string | undefined;
2477
- notes?: string | undefined;
2478
- }
2479
- type UpdateKanbanGoalMetricInput = Partial<Omit<KanbanGoalMetric, 'id'>>;
2480
- interface ClaimKanbanTaskInput extends AssignKanbanTaskInput {
2481
- boardId?: string | undefined;
2482
- taskId?: string | undefined;
2483
- }
2484
- interface ReleaseKanbanTaskClaimInput {
2485
- status?: 'pending' | 'ready' | 'blocked' | undefined;
2486
- reason?: string | undefined;
2487
- clearAssignee?: boolean | undefined;
2488
- }
2489
- interface HeartbeatKanbanTaskAssignmentInput {
2490
- heartbeatAt?: string | undefined;
2491
- leaseExpiresAt?: string | undefined;
2492
- }
2493
- type RecoverStaleKanbanAssignmentMode = KanbanRecoveryMode;
2494
- interface RecoverStaleKanbanAssignmentsInput {
2495
- mode?: RecoverStaleKanbanAssignmentMode | undefined;
2496
- now?: string | undefined;
2497
- reason?: string | undefined;
2498
- clearAssignee?: boolean | undefined;
2499
- /** Optional policy biases `'auto'` mode and is ignored for explicit modes. */
2500
- policy?: KanbanRecoveryPolicy | undefined;
2501
- }
2502
- interface RecoverStaleKanbanAssignmentsResult {
2503
- board: KanbanBoard;
2504
- tasks: KanbanTask[];
2505
- }
2506
- /**
2507
- * Operational health summary over a Kanban board (or the whole project).
2508
- *
2509
- * This is the single source of truth that recovery loops, dashboards and the
2510
- * `kanban` tool read from before making decisions. Counts are always computed
2511
- * against the *current* board state; signals are derived per-task.
2512
- *
2513
- * `dependencyBlocked` is intentionally separate from `blocked`. A task with
2514
- * `status === 'blocked'` has been explicitly failed or cancelled by a human;
2515
- * a task counted in `dependencyBlocked.tasks` is technically `ready` or
2516
- * `pending` but cannot proceed because of unmet dependencies. WebUI and
2517
- * recovery loops should treat these as distinct queues.
2518
- *
2519
- * `staleAssignments` and `heartbeatDue` are computed against an optional
2520
- * `now` (defaults to real wall clock). `lastDispatchedAt` and
2521
- * `lastStaleRecoveredAt` surface operational slack without requiring callers
2522
- * to scan the append-only event log themselves.
2523
- */
2524
- interface KanbanQueueHealth {
2525
- generatedAt: string;
2526
- boardIds: string[];
2527
- counts: {
2528
- ready: number;
2529
- queued: number;
2530
- running: number;
2531
- review: number;
2532
- failed: number;
2533
- completed: number;
2534
- pending: number;
2535
- archived: number;
2536
- blocked: number;
2537
- };
2538
- /** Tasks that are technically `ready` or `pending` but have unmet dependencies. */
2539
- dependencyBlocked: {
2540
- count: number;
2541
- tasks: KanbanSearchResult[];
2542
- };
2543
- /** Assignments with `leaseExpiresAt <= now` that are still `queued` or `running`. */
2544
- staleAssignments: {
2545
- count: number;
2546
- tasks: KanbanSearchResult[];
2547
- };
2548
- /** `failed` tasks whose `attempt < maxAttempts` and are therefore worth retrying. */
2549
- failedRetryable: {
2550
- count: number;
2551
- tasks: KanbanSearchResult[];
2552
- };
2553
- /** `running` tasks whose lease is about to lapse (within `heartbeatIntervalMs`). */
2554
- heartbeatDue: {
2555
- count: number;
2556
- tasks: KanbanSearchResult[];
2557
- };
2558
- /** Wall-clock timestamps of the most recent dispatch and most recent stale recovery. */
2559
- lastDispatchedAt?: string;
2560
- lastStaleRecoveredAt?: string;
2561
- }
2562
- interface KanbanOrchestrationSnapshot {
2563
- generatedAt: string;
2564
- boards: KanbanBoardSummary[];
2565
- ready: KanbanSearchResult[];
2566
- queued: KanbanSearchResult[];
2567
- running: KanbanSearchResult[];
2568
- blocked: KanbanSearchResult[];
2569
- review: KanbanSearchResult[];
2570
- failed: KanbanSearchResult[];
2571
- completed: KanbanSearchResult[];
2572
- }
2573
- interface KanbanGenerationInput {
2574
- description: string;
2575
- context?: string | undefined;
2576
- columnCount?: number | undefined;
2577
- columns?: string[] | undefined;
2578
- title?: string | undefined;
2579
- }
2580
- interface KanbanSearchInput {
2581
- query?: string | undefined;
2582
- boardId?: string | undefined;
2583
- assignedAgent?: string | undefined;
2584
- status?: KanbanTaskStatus | undefined;
2585
- priority?: KanbanTaskPriority | undefined;
2586
- label?: string | undefined;
2587
- readyOnly?: boolean | undefined;
2588
- chainId?: string | undefined;
2589
- }
2590
- interface KanbanSearchResult {
2591
- board: KanbanBoardSummary;
2592
- task: KanbanTask;
2593
- }
2594
- declare const DEFAULT_COLUMNS: KanbanColumn[];
2595
- declare const CURRENT_KANBAN_VERSION = 1;
2596
-
2597
- declare function createBoard(projectRoot: string, input: CreateKanbanBoardInput): Promise<KanbanBoard>;
2598
- declare function listBoards(projectRoot: string): Promise<KanbanBoardSummary[]>;
2599
- declare function getBoard(projectRoot: string, boardId: string): Promise<KanbanBoard | null>;
2600
- declare function updateBoard(projectRoot: string, boardId: string, input: UpdateKanbanBoardInput): Promise<KanbanBoard | null>;
2601
- declare function removeBoard(projectRoot: string, boardId: string): Promise<boolean>;
2602
- declare function duplicateBoard(projectRoot: string, boardId: string, input?: DuplicateKanbanBoardInput): Promise<KanbanBoard | null>;
2603
- declare function addColumn(projectRoot: string, boardId: string, input: CreateKanbanColumnInput): Promise<{
2604
- board: KanbanBoard;
2605
- column: KanbanColumn;
2606
- } | null>;
2607
- declare function updateColumn(projectRoot: string, boardId: string, columnId: string, input: UpdateKanbanColumnInput): Promise<KanbanBoard | null>;
2608
- declare function removeColumn(projectRoot: string, boardId: string, columnId: string, options?: RemoveKanbanColumnOptions): Promise<KanbanBoard | null>;
2609
- declare function addTask(projectRoot: string, boardId: string, input: CreateKanbanTaskInput): Promise<{
2610
- board: KanbanBoard;
2611
- task: KanbanTask;
2612
- } | null>;
2613
- declare function copyTaskToBoard(projectRoot: string, sourceBoardId: string, taskId: string, targetBoardId: string, options?: CopyKanbanTaskOptions): Promise<{
2614
- sourceBoard: KanbanBoard;
2615
- targetBoard: KanbanBoard;
2616
- task: KanbanTask;
2617
- } | null>;
2618
- declare function transferTaskToBoard(projectRoot: string, sourceBoardId: string, taskId: string, targetBoardId: string, options?: CopyKanbanTaskOptions): Promise<{
2619
- sourceBoard: KanbanBoard;
2620
- targetBoard: KanbanBoard;
2621
- task: KanbanTask;
2622
- } | null>;
2623
- declare function updateTask(projectRoot: string, boardId: string, taskId: string, input: UpdateKanbanTaskInput): Promise<KanbanBoard | null>;
2624
- declare function moveTask(projectRoot: string, boardId: string, taskId: string, targetColumnId: string, targetOrder?: number): Promise<KanbanBoard | null>;
2625
- declare function removeTask(projectRoot: string, boardId: string, taskId: string): Promise<KanbanBoard | null>;
2626
- declare function getTask(projectRoot: string, boardId: string, taskId: string): Promise<KanbanTask | null>;
2627
- declare function listKanbanEvents(projectRoot: string, boardId: string): Promise<KanbanEvent[]>;
2628
- declare function assignTask(projectRoot: string, boardId: string, taskId: string, input: AssignKanbanTaskInput): Promise<KanbanBoard | null>;
2629
- declare function updateTaskAssignment(projectRoot: string, boardId: string, taskId: string, patch: Partial<KanbanAgentAssignment> & {
2630
- status?: KanbanAgentRunStatus | undefined;
2631
- }): Promise<KanbanBoard | null>;
2632
- declare function heartbeatTaskAssignment(projectRoot: string, boardId: string, taskId: string, input?: HeartbeatKanbanTaskAssignmentInput): Promise<KanbanBoard | null>;
2633
- declare function recoverStaleTaskAssignments(projectRoot: string, boardId: string, input?: RecoverStaleKanbanAssignmentsInput): Promise<RecoverStaleKanbanAssignmentsResult | null>;
2634
- declare function claimReadyTask(projectRoot: string, input?: ClaimKanbanTaskInput): Promise<{
2635
- board: KanbanBoard;
2636
- task: KanbanTask;
2637
- } | null>;
2638
- declare function releaseTaskClaim(projectRoot: string, boardId: string, taskId: string, input?: ReleaseKanbanTaskClaimInput): Promise<KanbanBoard | null>;
2639
- declare function getKanbanOrchestrationSnapshot(projectRoot: string, input?: KanbanSearchInput): Promise<KanbanOrchestrationSnapshot>;
2640
- /**
2641
- * Operational health summary. See `KanbanQueueHealth` for the full contract.
2642
- *
2643
- * Implementation notes:
2644
- * * Per-status counts are computed against the current state of every
2645
- * queried board (the same source `getKanbanOrchestrationSnapshot`
2646
- * consumes).
2647
- * * `dependencyBlocked` deduplicates `counts.ready` — a task ready but
2648
- * blocked by dependencies only appears in the blocked bucket.
2649
- * * `staleAssignments` and `heartbeatDue` use `now ?? real-wall-clock`;
2650
- * callers (notably the recovery loop) should pass an explicit
2651
- * timestamp so time is deterministic.
2652
- * * `lastDispatchedAt` / `lastStaleRecoveredAt` come from the append-only
2653
- * event log so dashboards do not need to rescan tasks.
2654
- */
2655
- declare function getKanbanQueueHealth(projectRoot: string, input?: {
2656
- boardId?: string;
2657
- now?: string;
2658
- heartbeatIntervalMs?: number;
2659
- }): Promise<KanbanQueueHealth>;
2660
- declare function addDependency(projectRoot: string, boardId: string, taskId: string, dependencyTaskId: string): Promise<KanbanBoard | null>;
2661
- declare function splitTask(projectRoot: string, boardId: string, taskId: string, input: SplitKanbanTaskInput): Promise<{
2662
- board: KanbanBoard;
2663
- parent: KanbanTask;
2664
- children: KanbanTask[];
2665
- } | null>;
2666
- declare function mergeTasks(projectRoot: string, boardId: string, input: MergeKanbanTasksInput): Promise<{
2667
- board: KanbanBoard;
2668
- task: KanbanTask;
2669
- sourceTasks: KanbanTask[];
2670
- } | null>;
2671
- declare function setTaskChain(projectRoot: string, boardId: string, input: SetKanbanTaskChainInput): Promise<{
2672
- board: KanbanBoard;
2673
- chainId: string;
2674
- tasks: KanbanTask[];
2675
- } | null>;
2676
- declare function getTaskChain(projectRoot: string, boardId: string, taskOrChainId: string): Promise<{
2677
- board: KanbanBoard;
2678
- chainId: string;
2679
- tasks: KanbanTask[];
2680
- } | null>;
2681
- declare function addGoalMetricToTask(projectRoot: string, boardId: string, taskId: string, metric: AddKanbanGoalMetricInput): Promise<KanbanBoard | null>;
2682
- declare function updateGoalMetricOnTask(projectRoot: string, boardId: string, taskId: string, metricId: string, patch: UpdateKanbanGoalMetricInput): Promise<KanbanBoard | null>;
2683
- declare function addCheckToTask(projectRoot: string, boardId: string, taskId: string, check: Omit<KanbanCheck, 'id' | 'status'> & {
2684
- status?: KanbanCheckStatus | undefined;
2685
- }): Promise<KanbanBoard | null>;
2686
- declare function updateCheckOnTask(projectRoot: string, boardId: string, taskId: string, checkId: string, patch: Partial<Omit<KanbanCheck, 'id'>>): Promise<KanbanBoard | null>;
2687
- declare function addNoteToTask(projectRoot: string, boardId: string, taskId: string, note: {
2688
- author: string;
2689
- content: string;
2690
- }): Promise<KanbanBoard | null>;
2691
- declare function addLinkToTask(projectRoot: string, boardId: string, taskId: string, link: KanbanLink): Promise<KanbanBoard | null>;
2692
- declare function generateBoardFromDescription(input: KanbanGenerationInput): CreateKanbanBoardInput;
2693
- interface CreateKanbanBoardFromTaskGraphOptions {
2694
- title?: string | undefined;
2695
- description?: string | undefined;
2696
- tags?: string[] | undefined;
2697
- generatedBy?: string | undefined;
2698
- sourceSystem?: string | undefined;
2699
- phaseId?: string | undefined;
2700
- includeCompletedTasks?: boolean | undefined;
2701
- }
2702
- declare function createBoardFromTaskGraph(projectRoot: string, graph: TaskGraph, options?: CreateKanbanBoardFromTaskGraphOptions): Promise<{
2703
- board: KanbanBoard;
2704
- taskIdMap: Map<string, string>;
2705
- }>;
2706
- interface SyncKanbanBoardFromTaskGraphOptions extends CreateKanbanBoardFromTaskGraphOptions {
2707
- archiveMissingTasks?: boolean | undefined;
2708
- preserveManualDependencies?: boolean | undefined;
2709
- }
2710
- declare function syncBoardFromTaskGraph(projectRoot: string, boardId: string, graph: TaskGraph, options?: SyncKanbanBoardFromTaskGraphOptions): Promise<{
2711
- board: KanbanBoard;
2712
- taskIdMap: Map<string, string>;
2713
- createdTaskIds: string[];
2714
- updatedTaskIds: string[];
2715
- archivedTaskIds: string[];
2716
- } | null>;
2717
- interface ExportKanbanBoardToTaskGraphOptions {
2718
- graphId?: string | undefined;
2719
- specId?: string | undefined;
2720
- title?: string | undefined;
2721
- preserveOriginTaskIds?: boolean | undefined;
2722
- includeArchived?: boolean | undefined;
2723
- }
2724
- declare function exportBoardToTaskGraph(projectRoot: string, boardId: string, options?: ExportKanbanBoardToTaskGraphOptions): Promise<{
2725
- board: KanbanBoard;
2726
- graph: TaskGraph;
2727
- taskIdMap: Map<string, string>;
2728
- } | null>;
2729
- declare function buildTaskGraphFromKanbanBoard(board: KanbanBoard, options?: ExportKanbanBoardToTaskGraphOptions): {
2730
- graph: TaskGraph;
2731
- taskIdMap: Map<string, string>;
2732
- };
2733
- interface CreateKanbanBoardsFromPhaseGraphOptions {
2734
- includeCompletedTasks?: boolean | undefined;
2735
- }
2736
- declare function createBoardsFromPhaseGraph(projectRoot: string, graph: PhaseGraph, options?: CreateKanbanBoardsFromPhaseGraphOptions): Promise<Array<{
2737
- phase: PhaseNode;
2738
- board: KanbanBoard;
2739
- taskIdMap: Map<string, string>;
2740
- }>>;
2741
- declare function parseLinesIntoTasks(description: string, targetColumnId?: string): CreateKanbanTaskInput[];
2742
- declare function searchKanban(projectRoot: string, input?: KanbanSearchInput): Promise<KanbanSearchResult[]>;
2743
- declare function listReadyTasks(projectRoot: string, input?: KanbanSearchInput & {
2744
- limit?: number | undefined;
2745
- }): Promise<KanbanSearchResult[]>;
2746
- declare function areDependenciesMet(board: KanbanBoard, taskId: string): boolean;
2747
- declare function findBlockedTasks(board: KanbanBoard, taskId: string): KanbanTask[];
2748
- declare function exportBoardAsMarkdown(board: KanbanBoard): string;
2749
-
2750
- declare function getKanbanDir(projectRoot: string): string;
2751
- declare function getKanbanPath(projectRoot: string, boardId: string): string;
2752
- declare function getKanbanEventsPath(projectRoot: string, boardId: string): string;
2753
- declare function isValidBoardId(boardId: string): boolean;
2754
- declare function assertValidBoardId(boardId: string): void;
2755
- declare function listBoardIds(projectRoot: string): Promise<string[]>;
2756
- /**
2757
- * Resolve either a full board id or a unique id prefix.
2758
- */
2759
- declare function resolveBoardRef(projectRoot: string, boardRef: string): Promise<string | null>;
2760
- declare function readBoard(projectRoot: string, boardRef: string): Promise<KanbanBoard | null>;
2761
- declare function writeBoard(projectRoot: string, board: KanbanBoard): Promise<void>;
2762
- declare function appendKanbanEvent(projectRoot: string, boardId: string, event: KanbanEvent): Promise<void>;
2763
- declare function readKanbanEvents(projectRoot: string, boardRef: string): Promise<KanbanEvent[]>;
2764
- declare function deleteBoard(projectRoot: string, boardRef: string): Promise<boolean>;
2765
- declare function mutateBoard<T>(projectRoot: string, boardRef: string, mutator: (board: KanbanBoard) => T | Promise<T>): Promise<{
2766
- board: KanbanBoard;
2767
- result: T;
2768
- } | null>;
2769
- declare function summarizeBoard(board: KanbanBoard): KanbanBoardSummary;
2770
- declare function boardMeta(board: KanbanBoard): KanbanBoardMeta;
2771
- interface CreateBoardObjectOptions {
2772
- title: string;
2773
- description?: string | undefined;
2774
- tags?: string[] | undefined;
2775
- columns?: KanbanBoard['columns'] | undefined;
2776
- generatedBy?: string | undefined;
2777
- }
2778
- declare function createBoardObject(opts: CreateBoardObjectOptions): KanbanBoard;
2779
- declare function listBoardSummaries(projectRoot: string): Promise<KanbanBoardSummary[]>;
2113
+ declare function countShellHooks(hooks: Partial<Record<HookEvent, ConfiguredHook[]>> | undefined): number;
2780
2114
 
2781
2115
  /**
2782
2116
  * Minimal interface exposing the Agent fields that the extracted
@@ -2795,6 +2129,7 @@ interface AgentInternals {
2795
2129
  readonly executionStrategy: 'parallel' | 'sequential' | 'smart';
2796
2130
  readonly perIterationOutputCapBytes: number;
2797
2131
  readonly autoExtendLimit: boolean;
2132
+ readonly loopDetection: ResolvedLoopDetectionConfig;
2798
2133
  readonly toolExecutor: ToolExecutorLike;
2799
2134
  readonly extensions: ExtensionRegistry;
2800
2135
  readonly logger: Logger;
@@ -3060,7 +2395,7 @@ declare class DefaultPluginAPI implements PluginAPI {
3060
2395
  /** Called by the plugin loader when uninstalling the plugin. */
3061
2396
  drainCleanup(): void;
3062
2397
  registerSystemPromptContributor(c: SystemPromptContributor): () => void;
3063
- registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook): () => void;
2398
+ registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook, options?: HookRegistrationOptions | undefined): () => void;
3064
2399
  }
3065
2400
  /**
3066
2401
  * Define a plugin with automatic `apiVersion` injection and optional
@@ -3511,306 +2846,6 @@ declare class ReplayProviderRunner implements ProviderRunner {
3511
2846
  run(runOpts: RunProviderOptions$1): Promise<Response>;
3512
2847
  }
3513
2848
 
3514
- /**
3515
- * Skill content structure for generated security skills.
3516
- */
3517
- interface GeneratedSkillContent {
3518
- type: 'skill';
3519
- content: string;
3520
- }
3521
- type TechStack = 'nodejs' | 'python' | 'rust' | 'go' | 'java' | 'dotnet' | 'php' | 'ruby' | 'cpp' | 'c' | 'kotlin' | 'swift' | 'unknown';
3522
- type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' | 'pip' | 'poetry' | 'cargo' | 'maven' | 'gradle' | 'nuget' | 'composer' | 'bundler' | 'cmake' | 'swiftpm' | 'go' | 'unknown';
3523
- interface DetectedDependency {
3524
- name: string;
3525
- version: string;
3526
- isDev: boolean;
3527
- hasSecurityIssue?: boolean | undefined;
3528
- }
3529
- interface TechStackInfo {
3530
- stack: TechStack;
3531
- packageManager: PackageManager;
3532
- manifestFile: string;
3533
- dependencies: DetectedDependency[];
3534
- projectPath: string;
3535
- }
3536
- interface DetectionResult {
3537
- timestamp: string;
3538
- projectRoot: string;
3539
- detectedStacks: TechStackInfo[];
3540
- isMonorepo: boolean;
3541
- workspaceConfigs?: string[] | undefined;
3542
- }
3543
- interface SkillGenerationContext {
3544
- techStack: TechStackInfo;
3545
- scanScope: ScanScope;
3546
- severityLevel: SeverityLevel;
3547
- }
3548
- type ScanScope = 'quick' | 'standard' | 'deep';
3549
- type SeverityLevel = 'critical' | 'high' | 'medium' | 'low' | 'all';
3550
- interface SecurityPattern {
3551
- id: string;
3552
- name: string;
3553
- severity: SeverityLevel;
3554
- description: string;
3555
- patterns: RegExp[];
3556
- fileExtensions: string[];
3557
- falsePositiveMarkers: string[];
3558
- remediation: string;
3559
- }
3560
- interface GeneratedSecuritySkill {
3561
- name: string;
3562
- description: string;
3563
- techStack: TechStack;
3564
- patterns: SecurityPattern[];
3565
- rules: string[];
3566
- metadata: {
3567
- generatedAt: string;
3568
- version: string;
3569
- confidence: number;
3570
- };
3571
- content: GeneratedSkillContent;
3572
- }
3573
-
3574
- declare class TechStackDetector {
3575
- private cachedResults;
3576
- detect(projectRoot: string): Promise<DetectionResult>;
3577
- private matchSignature;
3578
- private findMatchingManifest;
3579
- private detectMonorepo;
3580
- private findWorkspaceConfigs;
3581
- clearCache(): void;
3582
- }
3583
- declare const defaultTechStackDetector: TechStackDetector;
3584
-
3585
- interface GeneratedSkill {
3586
- name: string;
3587
- description: string;
3588
- version: string;
3589
- techStack: TechStack;
3590
- content: GeneratedSkillContent;
3591
- patterns: SecurityPattern[];
3592
- metadata: {
3593
- generatedAt: string;
3594
- confidence: number;
3595
- targetFiles: string[];
3596
- };
3597
- }
3598
- interface SkillGeneratorOptions {
3599
- includeSecrets: boolean;
3600
- includeInjection: boolean;
3601
- includeConfig: boolean;
3602
- includeDependencies: boolean;
3603
- severityThreshold: 'critical' | 'high' | 'medium' | 'low';
3604
- }
3605
- /**
3606
- * Generates security skills dynamically based on tech stack.
3607
- * Uses predefined vulnerability patterns per stack.
3608
- */
3609
- declare class SkillGenerator {
3610
- private options;
3611
- constructor(options?: Partial<SkillGeneratorOptions>);
3612
- generate(techStack: TechStackInfo): GeneratedSkill;
3613
- private getPatternsForStack;
3614
- private getSecretPatterns;
3615
- private getInjectionPatterns;
3616
- private getConfigPatterns;
3617
- private getTargetFilesForStack;
3618
- private buildSkillContent;
3619
- private calculateConfidence;
3620
- }
3621
- declare const defaultSkillGenerator: SkillGenerator;
3622
-
3623
- interface Finding {
3624
- id: string;
3625
- severity: 'critical' | 'high' | 'medium' | 'low';
3626
- category: 'secrets' | 'injection' | 'config' | 'dependency' | 'filesystem';
3627
- title: string;
3628
- description: string;
3629
- file: string;
3630
- line?: number | undefined;
3631
- snippet?: string | undefined;
3632
- remediation: string;
3633
- patternId: string;
3634
- confidence: 'high' | 'medium' | 'low';
3635
- }
3636
- interface ScanResult {
3637
- timestamp: string;
3638
- projectRoot: string;
3639
- techStack: TechStackInfo;
3640
- findings: Finding[];
3641
- summary: {
3642
- critical: number;
3643
- high: number;
3644
- medium: number;
3645
- low: number;
3646
- total: number;
3647
- };
3648
- scannedFiles: number;
3649
- scanDurationMs: number;
3650
- errors: string[];
3651
- }
3652
- interface ScanOptions {
3653
- includeSecrets: boolean;
3654
- includeInjection: boolean;
3655
- includeConfig: boolean;
3656
- includeDependencies: boolean;
3657
- excludePaths: string[];
3658
- fileExtensions: string[];
3659
- depth: 'quick' | 'standard' | 'deep';
3660
- }
3661
- declare class SecurityScanner {
3662
- private options;
3663
- constructor(options?: Partial<ScanOptions>);
3664
- scan(projectRoot: string, skill: GeneratedSkill, techStack: TechStackInfo): Promise<ScanResult>;
3665
- private gatherFiles;
3666
- private gatherFilesRecursive;
3667
- private shouldExclude;
3668
- private getTargetExtensions;
3669
- private scanFile;
3670
- private matchesCategory;
3671
- private getCategoryFromPattern;
3672
- private isFalsePositive;
3673
- private calculateSummary;
3674
- }
3675
- declare const defaultSecurityScanner: SecurityScanner;
3676
-
3677
- interface ReportOptions {
3678
- outputDir: string;
3679
- format: 'markdown' | 'json' | 'html';
3680
- includeRemediation: boolean;
3681
- groupBySeverity: boolean;
3682
- maxFindingsPerCategory?: number | undefined;
3683
- }
3684
- declare class ReportGenerator {
3685
- private options;
3686
- constructor(options?: Partial<ReportOptions>);
3687
- generate(scanResult: ScanResult): Promise<string>;
3688
- private ensureOutputDir;
3689
- private generateMarkdown;
3690
- private formatFinding;
3691
- private groupBySeverity;
3692
- private groupByCategory;
3693
- private generateJson;
3694
- private generateHtml;
3695
- }
3696
- declare const defaultReportGenerator: ReportGenerator;
3697
-
3698
- interface GitignoreUpdaterOptions {
3699
- gitignorePath: string;
3700
- entries: string[];
3701
- }
3702
- declare class GitignoreUpdater {
3703
- private options;
3704
- constructor(options?: Partial<GitignoreUpdaterOptions>);
3705
- update(): Promise<{
3706
- added: string[];
3707
- existing: string[];
3708
- errors: string[];
3709
- }>;
3710
- isEntryIgnored(entry: string): Promise<boolean>;
3711
- }
3712
- declare const defaultGitignoreUpdater: GitignoreUpdater;
3713
-
3714
- interface SecurityScannerOptions {
3715
- projectRoot: string;
3716
- scanOptions?: {
3717
- depth?: 'quick' | 'standard' | 'deep' | undefined;
3718
- includeSecrets?: boolean | undefined;
3719
- includeInjection?: boolean | undefined;
3720
- includeConfig?: boolean | undefined;
3721
- };
3722
- reportOptions?: Partial<ReportOptions> | undefined;
3723
- skipGitignore?: boolean | undefined;
3724
- /** Optional model name to pass to the LLM provider (defaults to the provider's default). */
3725
- model?: string | undefined;
3726
- }
3727
- /** Accepts a full Context or just the provider+model needed for LLM calls. */
3728
- type SecurityScannerContext = Context | {
3729
- provider: Provider;
3730
- model?: string | undefined;
3731
- };
3732
- interface FullScanResult {
3733
- detectionResult: Awaited<ReturnType<typeof defaultTechStackDetector.detect>>;
3734
- generatedSkill: GeneratedSkill;
3735
- scanResult: ScanResult;
3736
- reportPath: string;
3737
- synthesizedReport?: string | undefined;
3738
- gitignoreResult?: Awaited<ReturnType<typeof defaultGitignoreUpdater.update>> | undefined;
3739
- }
3740
- /**
3741
- * LLM-powered Security Scanner Orchestrator
3742
- *
3743
- * Flow:
3744
- * 1. Detect tech stack (static)
3745
- * 2. Generate project-specific security skill via LLM
3746
- * 3. Scan code using LLM with generated skill as context
3747
- * 4. Synthesize findings into structured report via LLM
3748
- */
3749
- declare class SecurityScannerOrchestrator {
3750
- private readonly retryPolicy?;
3751
- private readonly errorHandler?;
3752
- private detector;
3753
- private gitignoreUpdater;
3754
- constructor(retryPolicy?: RetryPolicy | undefined, errorHandler?: ErrorHandler | undefined);
3755
- /**
3756
- * Wraps provider.complete with retry logic using the injected RetryPolicy.
3757
- */
3758
- private completeWithRetry;
3759
- /**
3760
- * Run full security scan with LLM assistance.
3761
- * Accepts a full Context (active agent run) or just provider+model (pre-agent session).
3762
- */
3763
- run(ctx: SecurityScannerContext, options: SecurityScannerOptions): Promise<FullScanResult>;
3764
- /**
3765
- * Generate a project-specific security skill using LLM.
3766
- * The LLM analyzes the project structure and creates tailored security patterns.
3767
- */
3768
- private generateSkillLLM;
3769
- /**
3770
- * Scan code using LLM with the generated skill as context.
3771
- * The LLM analyzes files and reports security findings.
3772
- */
3773
- private scanWithLLM;
3774
- /**
3775
- * Scan a batch of files using LLM.
3776
- */
3777
- private scanFileBatchLLM;
3778
- /**
3779
- * Synthesize a comprehensive security report using LLM.
3780
- */
3781
- private synthesizeReportLLM;
3782
- /**
3783
- * Generate a basic fallback report when LLM synthesis fails.
3784
- */
3785
- private generateBasicReport;
3786
- /**
3787
- * Write synthesized report to file.
3788
- */
3789
- private writeReport;
3790
- /**
3791
- * Gather project info for skill generation.
3792
- */
3793
- private gatherProjectInfo;
3794
- /**
3795
- * Gather files to scan based on patterns.
3796
- */
3797
- private gatherFiles;
3798
- private gatherFilesRecursive;
3799
- /**
3800
- * Generate fallback skill when LLM fails.
3801
- */
3802
- private generateFallbackSkill;
3803
- /**
3804
- * Quick scan - legacy compatibility.
3805
- * NOTE: This won't use LLM as it doesn't have access to ctx.
3806
- */
3807
- quickScan(projectRoot: string): Promise<ScanResult>;
3808
- }
3809
- declare const defaultOrchestrator: SecurityScannerOrchestrator;
3810
-
3811
- declare function createSecuritySlashCommand(): SlashCommand;
3812
- declare const securitySlashCommand: SlashCommand;
3813
-
3814
2849
  /**
3815
2850
  * `mcp_use` — meta-tool for ephemeral MCP tool calls in token-saving mode.
3816
2851
  *
@@ -3835,4 +2870,4 @@ declare function createMcpUseTool(opts: CreateMcpUseToolOptions): Tool;
3835
2870
  declare function readBundledInstructionText(relativePath: string): string;
3836
2871
  declare function renderInstructionTemplate(template: string, values: Record<string, string>): string;
3837
2872
 
3838
- export { AddAttachmentInput, type AddKanbanGoalMetricInput, AgentExtension, AgentPipelines, type AssignKanbanTaskInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, CHIMERA_REVIEW_PROMPT, CURRENT_KANBAN_VERSION, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type ChimeraReviewNeededPayload, type ClaimKanbanTaskInput, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, type CommitSafetyOptions, type CommitSafetyReport, Config, ConfigStore, type ConsumedInjectionInfo, Container, ContentBlock, type ContentScore, Context, type ContinuationInput, type ContinuationSource, type ContinueDirective, type CopyKanbanTaskOptions, type CreateBoardObjectOptions, type CreateKanbanBoardFromTaskGraphOptions, type CreateKanbanBoardInput, type CreateKanbanBoardsFromPhaseGraphOptions, type CreateKanbanColumnInput, type CreateKanbanTaskInput, DEFAULT_COLUMNS, DefaultLogger, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, type DuplicateKanbanBoardInput, type EliseResult, EventBus, EventName, type ExportKanbanBoardToTaskGraphOptions, ExtensionRegistry, type FallbackModelDeps, type FileAuthorEntry, type FileAuthorLog, type FileAuthorTrackerOptions, type Finding, type ForeignFile, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, type HeartbeatKanbanTaskAssignmentInput, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, InstalledPromptEntry, type InstructionBundle, type InstructionBundlePaths, JSONSchema, type JsonFetcher, KERNEL_API_VERSION, type KanbanAgentAssignment, type KanbanAgentRunStatus, type KanbanBoard, type KanbanBoardMeta, type KanbanBoardSummary, type KanbanCheck, type KanbanCheckStatus, type KanbanCheckType, type KanbanColumn, type KanbanEvent, type KanbanGenerationInput, type KanbanGoalMetric, type KanbanGoalMetricStatus, type KanbanLink, type KanbanLinkType, type KanbanNote, type KanbanOrchestrationSnapshot, type KanbanQueueHealth, type KanbanRecoveryMode, type KanbanRecoveryPolicy, type KanbanRetryPolicy, type KanbanSearchInput, type KanbanSearchResult, type KanbanTask, type KanbanTaskChainRef, type KanbanTaskOrigin, type KanbanTaskPriority, type KanbanTaskStatus, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MCPRegistryHandle, MCPRegistryView, Mailbox, type MailboxLoopOptions, MailboxMessage, MemoryStore, type MergeKanbanTasksInput, Message, MetricsSink, MetricsSinkView, Middleware, ModeStore, ModelCapabilities, ModelsRegistry, type NicknameAssignment, PHASE_EVENT_NAMES, type PackageManager, PermissionPolicy, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginCapabilities, PluginDependency, PluginLLM, PluginPipelines, PromptInstaller, type PromptInstallerOptions, PromptLoader, PromptManifestData, PromptManifestStore, type PromptPullResult, PromptRegistryManifest, PromptUsageStore, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, type RecoverStaleKanbanAssignmentMode, type RecoverStaleKanbanAssignmentsInput, type RecoverStaleKanbanAssignmentsResult, RegistryDiff, type ReleaseKanbanTaskClaimInput, type RemoveKanbanColumnOptions, Renderer, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, type ResolvedChimeraConfig, type ResolvedContinuation, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SetKanbanTaskChainInput, type SeverityLevel, ShellHook, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SkillRegistryAdapter, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, type SplitKanbanTaskInput, type SyncKanbanBoardFromTaskGraphOptions, type SystemInstructionBundle, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, type TechStackConsumerOptions, TechStackDetector, type TechStackInfo, TextBlock, TodoItem, TokenSavingTier, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, type UpdateKanbanBoardInput, type UpdateKanbanColumnInput, type UpdateKanbanGoalMetricInput, type UpdateKanbanTaskInput, WorktreeManager, WstackPaths, addCheckToTask, addColumn, addDependency, addGoalMetricToTask, addLinkToTask, addNoteToTask, addTask, appendKanbanEvent, areDependenciesMet, assertValidBoardId, assessCommitSafety, assignNickname, assignTask, attachMailboxChecker, boardMeta, bootConfig, buildBtwBlock, buildLosslessDigest, buildMailboxBlock, buildMailboxBtwAwarenessBlock, buildQueuedMessagesBlock, buildSmartDigest, buildTaskGraphFromKanbanBoard, claimReadyTask, collabInjectMiddleware, collabPauseMiddleware, compactLog, consumeBtwNotes, consumeQueuedMessagesUpdate, copyTaskToBoard, countShellHooks, createAutoPhaseFromTaskGraph, createBoard, createBoardFromTaskGraph, createBoardObject, createBoardsFromPhaseGraph, createChimeraPlugin, createFallbackModelExtension, createGitPlugin, createMailboxChecker, createMcpUseTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, definePlugin, deleteBoard, detectContinueIntent, duplicateBoard, effectiveFallbackChain, eliseOldToolResults, estimateMessageTokens, estimateMessages, exportBoardAsMarkdown, exportBoardToTaskGraph, extractText, fallbackProfileChain, findBlockedTasks, findPreserveStart, flagsToConfigPatch, formatModelRef, generateBoardFromDescription, getBoard, getFileHistory, getFilesByAgent, getFullLog, getKanbanDir, getKanbanEventsPath, getKanbanOrchestrationSnapshot, getKanbanPath, getKanbanQueueHealth, getLastAuthor, getTask, getTaskChain, hasTextContent, hashRequest, heartbeatTaskAssignment, injectPendingMailboxMessages, isValidBoardId, listBoardIds, listBoardSummaries, listBoards, listKanbanEvents, listReadyTasks, loadInstructionBundle, loadPlugins, makeContinueToNextIterationTool, mergeInstructionBundle, mergeTasks, moveTask, mutateBoard, nicknameKeyFromDisplay, normalizeModelRef, parseContinueDirective, parseLinesIntoTasks, parseModelRef, peekQueuedMessages, pendingBtwCount, readBoard, readBundledInstructionText, readKanbanEvents, recordFileAction, recoverStaleTaskAssignments, releaseTaskClaim, removeBoard, removeColumn, removeTask, renderInstructionTemplate, resolveBoardRef, resolveChimeraConfig, resolveContinuation, runProviderWithRetry, runShellHook, scoreMessage, searchKanban, securitySlashCommand, setBtwNote, setQueuedMessagesSnapshot, setTaskChain, shellHooksEqual, smartDefaultFallbackChain, splitTask, stableStringify, startTechStackConsumer, summarizeBoard, syncBoardFromTaskGraph, transferTaskToBoard, unloadPlugins, updateBoard, updateCheckOnTask, updateColumn, updateGoalMetricOnTask, updateTask, updateTaskAssignment, writeBoard };
2873
+ export { AddAttachmentInput, AgentExtension, AgentPipelines, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, CHIMERA_REVIEW_PROMPT, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type ChimeraReviewNeededPayload, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, type CommitSafetyOptions, type CommitSafetyReport, Config, ConfigStore, ConfiguredHook, type ConsumedInjectionInfo, Container, ContentBlock, type ContentScore, Context, type ContinuationInput, type ContinuationSource, type ContinueDirective, DefaultLogger, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type EliseResult, EventBus, EventName, ExtensionRegistry, type FallbackModelDeps, type FileAuthorEntry, type FileAuthorLog, type FileAuthorTrackerOptions, type ForeignFile, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistrationOptions, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, InstalledPromptEntry, type InstructionBundle, type InstructionBundlePaths, JSONSchema, type JsonFetcher, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MCPRegistryHandle, MCPRegistryView, Mailbox, type MailboxLoopOptions, MailboxMessage, MemoryStore, Message, MetricsSink, MetricsSinkView, Middleware, ModeStore, ModelCapabilities, ModelsRegistry, type NicknameAssignment, PHASE_EVENT_NAMES, PermissionPolicy, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginCapabilities, PluginDependency, PluginLLM, PluginPipelines, PromptInstaller, type PromptInstallerOptions, PromptLoader, PromptManifestData, PromptManifestStore, type PromptPullResult, PromptRegistryManifest, PromptUsageStore, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, RegistryDiff, Renderer, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, Request, type ResolvedChimeraConfig, type ResolvedContinuation, Response, RunProviderOptions$1 as RunProviderOptions, SessionWriterView, type ShellHookSpec, SkillLoader, SkillRegistryAdapter, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, type SystemInstructionBundle, SystemPromptBuilder, SystemPromptContributor, SystemPromptRegions, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStackConsumerOptions, TextBlock, TodoItem, TokenSavingTier, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, assessCommitSafety, assignNickname, attachMailboxChecker, bootConfig, buildBtwBlock, buildLosslessDigest, buildMailboxBlock, buildMailboxBtwAwarenessBlock, buildQueuedMessagesBlock, buildSmartDigest, collabInjectMiddleware, collabPauseMiddleware, compactLog, consumeBtwNotes, consumeQueuedMessagesUpdate, countShellHooks, createAutoPhaseFromTaskGraph, createChimeraPlugin, createFallbackModelExtension, createGitPlugin, createMailboxChecker, createMcpUseTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSkillsPlugin, createSyncPlugin, definePlugin, detectContinueIntent, effectiveFallbackChain, eliseOldToolResults, estimateMessageTokens, estimateMessages, extractText, fallbackProfileChain, findPreserveStart, flagsToConfigPatch, formatModelRef, getFileHistory, getFilesByAgent, getFullLog, getLastAuthor, hasTextContent, hashRequest, injectPendingMailboxMessages, loadInstructionBundle, loadPlugins, makeContinueToNextIterationTool, mergeInstructionBundle, nicknameKeyFromDisplay, normalizeModelRef, parseContinueDirective, parseModelRef, peekQueuedMessages, pendingBtwCount, readBundledInstructionText, recordFileAction, renderInstructionTemplate, resolveChimeraConfig, resolveContinuation, runProviderWithRetry, runShellHook, scoreMessage, setBtwNote, setQueuedMessagesSnapshot, shellHooksEqual, smartDefaultFallbackChain, stableStringify, startTechStackConsumer, unloadPlugins };