@wrongstack/core 0.73.1 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{agent-bridge-C0Ze7Ldm.d.ts → agent-bridge-EWdqs8v6.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-BmITbs1Q.d.ts → agent-subagent-runner-D8qW8OSC.d.ts} +2 -2
  3. package/dist/coordination/index.d.ts +7 -7
  4. package/dist/coordination/index.js +64 -6
  5. package/dist/coordination/index.js.map +1 -1
  6. package/dist/defaults/index.d.ts +11 -11
  7. package/dist/defaults/index.js +107 -45
  8. package/dist/defaults/index.js.map +1 -1
  9. package/dist/{events-BBAlxBuw.d.ts → events-CYaoLN5_.d.ts} +37 -0
  10. package/dist/execution/index.d.ts +6 -6
  11. package/dist/extension/index.d.ts +2 -2
  12. package/dist/{index-yQbZ2NQx.d.ts → index-DIxjTOga.d.ts} +2 -2
  13. package/dist/{index-BN6i2Nfg.d.ts → index-Dsda0uCn.d.ts} +1 -1
  14. package/dist/index.d.ts +96 -23
  15. package/dist/index.js +234 -25
  16. package/dist/index.js.map +1 -1
  17. package/dist/infrastructure/index.d.ts +3 -3
  18. package/dist/infrastructure/index.js +16 -2
  19. package/dist/infrastructure/index.js.map +1 -1
  20. package/dist/kernel/index.d.ts +3 -3
  21. package/dist/kernel/index.js.map +1 -1
  22. package/dist/{logger-bOzkF5LL.d.ts → logger-BppKxDqZ.d.ts} +9 -0
  23. package/dist/{multi-agent-coordinator-BSBbZt0e.d.ts → multi-agent-coordinator-DpbG3wiy.d.ts} +1 -1
  24. package/dist/{null-fleet-bus-BCIRT_nV.d.ts → null-fleet-bus-u5ys3lW_.d.ts} +13 -4
  25. package/dist/observability/index.d.ts +1 -1
  26. package/dist/{parallel-eternal-engine-CjAYGaCw.d.ts → parallel-eternal-engine-Dn0P8Pbj.d.ts} +3 -3
  27. package/dist/{path-resolver-BnqXa9Ze.d.ts → path-resolver-B32v2JIq.d.ts} +1 -1
  28. package/dist/{plan-templates-DBgrTGPu.d.ts → plan-templates-BcUwLlMQ.d.ts} +7 -2
  29. package/dist/{provider-runner-n3KkHT_w.d.ts → provider-runner-CSi_7l0h.d.ts} +1 -1
  30. package/dist/sdd/index.d.ts +3 -3
  31. package/dist/storage/index.d.ts +3 -3
  32. package/dist/storage/index.js +22 -6
  33. package/dist/storage/index.js.map +1 -1
  34. package/dist/types/index.d.ts +10 -10
  35. package/dist/types/index.js +16 -2
  36. package/dist/types/index.js.map +1 -1
  37. package/dist/utils/index.d.ts +1 -1
  38. package/dist/utils/index.js +12 -2
  39. package/dist/utils/index.js.map +1 -1
  40. package/dist/{wstack-paths-eMXnY1_X.d.ts → wstack-paths-D7evAFWM.d.ts} +8 -1
  41. package/package.json +1 -1
@@ -307,6 +307,43 @@ interface EventMap {
307
307
  * for tools without a meaningful line count. */
308
308
  outputLines?: number;
309
309
  };
310
+ /**
311
+ * Fired by the `delegate` tool right before it hands work to a subagent
312
+ * and blocks on the result. Lets UIs render a "started delegating" line
313
+ * immediately instead of looking idle for the (often minutes-long) life
314
+ * of the subagent. Paired with `delegate.completed`.
315
+ */
316
+ 'delegate.started': {
317
+ /** Resolved roster role or free-form subagent name. */
318
+ target: string;
319
+ /** The task instruction handed to the subagent (untruncated — UIs trim). */
320
+ task: string;
321
+ };
322
+ /**
323
+ * Fired by the `delegate` tool once the subagent settles (success,
324
+ * timeout, budget exhaustion, error). Carries human-friendly, untruncated
325
+ * fields so UIs / the Telegram bridge can render a readable summary
326
+ * instead of the JSON-stringified, ~400-char-truncated `tool.executed`
327
+ * preview.
328
+ */
329
+ 'delegate.completed': {
330
+ /** Resolved roster role or free-form subagent name. */
331
+ target: string;
332
+ /** The task instruction handed to the subagent. */
333
+ task: string;
334
+ /** True only when the subagent finished its task cleanly. */
335
+ ok: boolean;
336
+ /** Task status — 'success' | 'timeout' | 'host_timeout' | 'stopped' | ... */
337
+ status?: string;
338
+ /** One-line human summary (from `buildDelegateSummary`), untruncated. */
339
+ summary: string;
340
+ durationMs: number;
341
+ iterations: number;
342
+ toolCalls: number;
343
+ /** Estimated subagent cost in USD, from the director usage snapshot when known. */
344
+ costUsd?: number;
345
+ subagentId?: string;
346
+ };
310
347
  /**
311
348
  * Fired on every `iteration.completed`. UIs subscribe to render a live
312
349
  * context-window fill bar per agent (e.g. "67% ████████░░"). The
@@ -1,19 +1,19 @@
1
- export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-CjAYGaCw.js';
1
+ export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-Dn0P8Pbj.js';
2
2
  import { m as Provider, d as Context } from '../context-y87Jc5ei.js';
3
3
  import { a as Compactor, C as CompactReport } from '../compactor-D_ExJajC.js';
4
4
  import { M as MessageSelector } from '../selector-RvBR_YRW.js';
5
- import { E as EventBus } from '../events-BBAlxBuw.js';
5
+ import { E as EventBus } from '../events-CYaoLN5_.js';
6
6
  import { b as MiddlewareHandler } from '../system-prompt-CA11g6Jo.js';
7
7
  import { a as SessionEventBridge } from '../session-event-bridge-CDHxcmQU.js';
8
8
  import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config-Dy0CK_o6.js';
9
- import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-BmITbs1Q.js';
10
- import { R as RunResult, S as SystemPromptContributor } from '../index-BN6i2Nfg.js';
9
+ import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-D8qW8OSC.js';
10
+ import { R as RunResult, S as SystemPromptContributor } from '../index-Dsda0uCn.js';
11
11
  import { a as SkillLoader, b as SkillManifest, S as SkillEntry } from '../skill-CxuWrsKK.js';
12
- import { a as WstackPaths } from '../wstack-paths-eMXnY1_X.js';
12
+ import { a as WstackPaths } from '../wstack-paths-D7evAFWM.js';
13
13
  import '../retry-policy-CG3qvH_e.js';
14
14
  import '../models-registry-BcYJDKLm.js';
15
15
  import '../goal-store-C7jcumEh.js';
16
- import '../multi-agent-coordinator-BSBbZt0e.js';
16
+ import '../multi-agent-coordinator-DpbG3wiy.js';
17
17
  import 'node:events';
18
18
  import '../logger-DDd5C--Z.js';
19
19
  import '../observability-BhnVLBLS.js';
@@ -1,10 +1,10 @@
1
- export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as AgentExtension, B as BeforeIterationHook, g as BeforeRunHook, h as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, n as ProviderRunnerFn, o as ProviderRunnerWrapper } from '../index-BN6i2Nfg.js';
1
+ export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as AgentExtension, B as BeforeIterationHook, g as BeforeRunHook, h as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, n as ProviderRunnerFn, o as ProviderRunnerWrapper } from '../index-Dsda0uCn.js';
2
2
  import '../context-y87Jc5ei.js';
3
3
  import '../logger-DDd5C--Z.js';
4
4
  import '../system-prompt-CA11g6Jo.js';
5
5
  import '../config-Dy0CK_o6.js';
6
6
  import '../models-registry-BcYJDKLm.js';
7
7
  import '../observability-BhnVLBLS.js';
8
- import '../events-BBAlxBuw.js';
8
+ import '../events-CYaoLN5_.js';
9
9
  import '../secret-scrubber-3MHDDAtm.js';
10
10
  import '../permission-V5BLOrY6.js';
@@ -1,5 +1,5 @@
1
1
  import { T as Token, e as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './system-prompt-CA11g6Jo.js';
2
- import { E as EventBus, B as BrainArbiter } from './events-BBAlxBuw.js';
2
+ import { E as EventBus, B as BrainArbiter } from './events-CYaoLN5_.js';
3
3
  import { a as Compactor } from './compactor-D_ExJajC.js';
4
4
  import { b as ConfigLoader, c as ConfigStore } from './config-Dy0CK_o6.js';
5
5
  import { E as ErrorHandler, a as RetryPolicy } from './retry-policy-CG3qvH_e.js';
@@ -10,7 +10,7 @@ import { c as ModeStore } from './mode-BO4SEUIv.js';
10
10
  import { b as ModelsRegistry } from './models-registry-BcYJDKLm.js';
11
11
  import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
12
12
  import { a as PermissionPolicy } from './permission-V5BLOrY6.js';
13
- import { P as ProviderRunner } from './provider-runner-n3KkHT_w.js';
13
+ import { P as ProviderRunner } from './provider-runner-CSi_7l0h.js';
14
14
  import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
15
15
  import { O as TokenCounter, y as SessionStore } from './context-y87Jc5ei.js';
16
16
  import { a as SkillLoader } from './skill-CxuWrsKK.js';
@@ -3,7 +3,7 @@ import { a as Logger } from './logger-DDd5C--Z.js';
3
3
  import { a as BuildContext, H as HookRegistry, e as Renderer, P as Pipeline, C as Container } from './system-prompt-CA11g6Jo.js';
4
4
  import { l as HookEvent, t as ProviderConfig } from './config-Dy0CK_o6.js';
5
5
  import { T as Tracer } from './observability-BhnVLBLS.js';
6
- import { E as EventBus } from './events-BBAlxBuw.js';
6
+ import { E as EventBus } from './events-CYaoLN5_.js';
7
7
  import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
8
8
  import { a as PermissionPolicy } from './permission-V5BLOrY6.js';
9
9
  import { W as WireFamily } from './models-registry-BcYJDKLm.js';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { S as SystemPromptBuilder, c as ModelCapabilities, a as BuildContext, C as Container, H as HookRegistry } from './system-prompt-CA11g6Jo.js';
2
2
  export { B as BindOptions, D as Decorator, F as Factory, M as Middleware, b as MiddlewareHandler, N as NextFn, P as Pipeline, d as PipelineOptions, e as Renderer, T as Token, h as hookMatcherMatches } from './system-prompt-CA11g6Jo.js';
3
- import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-BBAlxBuw.js';
4
- export { a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, i as EventLogger, j as EventMap, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, S as ScopedEventBus, l as formatHumanPrompt } from './events-BBAlxBuw.js';
5
- import { d as WorktreeManager } from './index-yQbZ2NQx.js';
6
- export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, W as WorktreeHandle, e as WorktreeManagerOptions, c as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-yQbZ2NQx.js';
7
- import { d as Context, m as Provider, Q as Tool, p as Request, q as Response, c as ContentBlock, T as TextBlock } from './context-y87Jc5ei.js';
8
- export { A as AgentError, a as Capabilities, b as ConfigError, e as ContextInit, f as ConversationState, E as ERROR_CODES, g as ErrorCode, h as ErrorSeverity, i as ErrorSubsystem, F as FileSnapshot, j as FsError, I as ImageBlock, J as JSONSchema, M as Message, k as MessageRole, P as Permission, l as PluginError, n as ProviderError, o as ProviderErrorBody, R as ReadonlyConversationState, r as ResumedSession, s as RiskTier, t as RunEnv, u as RunOptions, S as SessionData, v as SessionError, w as SessionEvent, x as SessionMetadata, y as SessionStore, z as SessionSummary, B as SessionWriter, D as StateChange, G as StateChangeHandler, H as StopReason, K as StreamEvent, L as ThinkingBlock, N as TodoItem, O as TokenCounter, U as ToolCallContext, V as ToolError, W as ToolFinalEvent, X as ToolProgressEvent, Y as ToolResultBlock, Z as ToolStreamEvent, _ as ToolUseBlock, $ as Usage, a0 as WrongStackError, a1 as asBlocks, a2 as asText, a3 as extractRunEnv, a4 as isAgentError, a5 as isConfigError, a6 as isFsError, a7 as isImageBlock, a8 as isPluginError, a9 as isSessionError, aa as isTextBlock, ab as isThinkingBlock, ac as isToolError, ad as isToolResultBlock, ae as isToolUseBlock, af as isWrongStackError, ag as toWrongStackError, ah as wrapAsState } from './context-y87Jc5ei.js';
9
- import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-n3KkHT_w.js';
3
+ import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-CYaoLN5_.js';
4
+ export { a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, i as EventLogger, j as EventMap, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, S as ScopedEventBus, l as formatHumanPrompt } from './events-CYaoLN5_.js';
5
+ import { d as WorktreeManager } from './index-DIxjTOga.js';
6
+ export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, W as WorktreeHandle, e as WorktreeManagerOptions, c as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-DIxjTOga.js';
7
+ import { d as Context, m as Provider, Q as Tool, p as Request, q as Response, c as ContentBlock, T as TextBlock, M as Message } from './context-y87Jc5ei.js';
8
+ export { A as AgentError, a as Capabilities, b as ConfigError, e as ContextInit, f as ConversationState, E as ERROR_CODES, g as ErrorCode, h as ErrorSeverity, i as ErrorSubsystem, F as FileSnapshot, j as FsError, I as ImageBlock, J as JSONSchema, k as MessageRole, P as Permission, l as PluginError, n as ProviderError, o as ProviderErrorBody, R as ReadonlyConversationState, r as ResumedSession, s as RiskTier, t as RunEnv, u as RunOptions, S as SessionData, v as SessionError, w as SessionEvent, x as SessionMetadata, y as SessionStore, z as SessionSummary, B as SessionWriter, D as StateChange, G as StateChangeHandler, H as StopReason, K as StreamEvent, L as ThinkingBlock, N as TodoItem, O as TokenCounter, U as ToolCallContext, V as ToolError, W as ToolFinalEvent, X as ToolProgressEvent, Y as ToolResultBlock, Z as ToolStreamEvent, _ as ToolUseBlock, $ as Usage, a0 as WrongStackError, a1 as asBlocks, a2 as asText, a3 as extractRunEnv, a4 as isAgentError, a5 as isConfigError, a6 as isFsError, a7 as isImageBlock, a8 as isPluginError, a9 as isSessionError, aa as isTextBlock, ab as isThinkingBlock, ac as isToolError, ad as isToolResultBlock, ae as isToolUseBlock, af as isWrongStackError, ag as toWrongStackError, ah as wrapAsState } from './context-y87Jc5ei.js';
9
+ import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-CSi_7l0h.js';
10
10
  import { M as MCPServerConfig, a as Config, m as HookInput, o as HookOutcome, l as HookEvent, n as HookMatcher, I as InProcessHook, r as ModelMatrixEntry, c as ConfigStore } from './config-Dy0CK_o6.js';
11
11
  export { A as AutonomyConfig, C as CONTEXT_WINDOW_MODES, b as ConfigLoader, d as ContextConfig, e as ContextWindowAggressiveOn, f as ContextWindowConfigLike, g as ContextWindowMode, h as ContextWindowModeId, i as ContextWindowPolicy, j as ContextWindowThresholds, k as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, H as HookEntry, p as IndexingConfig, L as LaunchConfig, q as LogConfig, P as PluginConfig, s as ProviderApiKey, t as ProviderConfig, S as SessionLoggingConfig, u as ShellHook, v as SyncCategory, w as SyncConfig, T as ToolsConfig, x as formatContextWindowModeList, y as getContextWindowMode, z as isContextWindowModeId, B as listContextWindowModes, E as resolveContextWindowPolicy } from './config-Dy0CK_o6.js';
12
12
  export { C as CompactReport, a as Compactor } from './compactor-D_ExJajC.js';
@@ -17,40 +17,40 @@ export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as Default
17
17
  export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, b as DEFAULT_SESSION_LOGGING_CONFIG, c as DEFAULT_TOOLS_CONFIG } from './default-config-DEXI4jsl.js';
18
18
  import { a as DefaultSecretVault } from './secret-scrubber-7rSC_emZ.js';
19
19
  export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-scrubber-7rSC_emZ.js';
20
- import { D as DefaultLogger } from './logger-bOzkF5LL.js';
21
- export { a as DefaultLoggerOptions } from './logger-bOzkF5LL.js';
22
- import { D as DefaultPathResolver } from './path-resolver-BnqXa9Ze.js';
23
- export { a as DefaultTokenCounter } from './path-resolver-BnqXa9Ze.js';
20
+ import { D as DefaultLogger } from './logger-BppKxDqZ.js';
21
+ export { a as DefaultLoggerOptions } from './logger-BppKxDqZ.js';
22
+ import { D as DefaultPathResolver } from './path-resolver-B32v2JIq.js';
23
+ export { a as DefaultTokenCounter } from './path-resolver-B32v2JIq.js';
24
24
  import { b as MemoryStore } from './memory-CEXuo7sz.js';
25
25
  export { M as MemoryEntry, a as MemoryScope } from './memory-CEXuo7sz.js';
26
- export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-CjAYGaCw.js';
26
+ export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-Dn0P8Pbj.js';
27
27
  import { a as SkillLoader } from './skill-CxuWrsKK.js';
28
28
  export { S as SkillEntry, b as SkillManifest } from './skill-CxuWrsKK.js';
29
29
  export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
30
- import { H as SlashCommand, w as PluginAPI, z as PluginPipelines, Z as ToolRegistryView, G as ProviderRegistryView, M as MCPRegistryView, I as SlashCommandRegistryView, S as SessionWriterView, t as MetricsSinkView, P as Plugin } from './agent-subagent-runner-BmITbs1Q.js';
31
- export { A as Agent, c as AgentFactory, d as AgentFactoryResult, e as AgentRunnerOptions, g as BudgetExceededError, h as BudgetKind, i as BudgetLimits, n as BudgetUsage, C as CoordinatorEvents, o as CoordinatorStatus, D as DoneCondition, F as FleetBus, p as FleetEvent, q as FleetHandler, r as FleetUsage, s as FleetUsageAggregator, u as MultiAgentConfig, v as MultiAgentCoordinator, x as PluginCapabilities, y as PluginDependency, J as SpawnResult, K as SubagentBudget, L as SubagentConfig, N as SubagentContext, O as SubagentError, Q as SubagentErrorKind, R as SubagentRunContext, T as SubagentRunOutcome, U as SubagentRunner, V as SubagentUsageSnapshot, W as TaskDelegation, X as TaskResult, Y as TaskSpec, _ as makeAgentSubagentRunner } from './agent-subagent-runner-BmITbs1Q.js';
30
+ import { H as SlashCommand, w as PluginAPI, z as PluginPipelines, Z as ToolRegistryView, G as ProviderRegistryView, M as MCPRegistryView, I as SlashCommandRegistryView, S as SessionWriterView, t as MetricsSinkView, P as Plugin } from './agent-subagent-runner-D8qW8OSC.js';
31
+ export { A as Agent, c as AgentFactory, d as AgentFactoryResult, e as AgentRunnerOptions, g as BudgetExceededError, h as BudgetKind, i as BudgetLimits, n as BudgetUsage, C as CoordinatorEvents, o as CoordinatorStatus, D as DoneCondition, F as FleetBus, p as FleetEvent, q as FleetHandler, r as FleetUsage, s as FleetUsageAggregator, u as MultiAgentConfig, v as MultiAgentCoordinator, x as PluginCapabilities, y as PluginDependency, J as SpawnResult, K as SubagentBudget, L as SubagentConfig, N as SubagentContext, O as SubagentError, Q as SubagentErrorKind, R as SubagentRunContext, T as SubagentRunOutcome, U as SubagentRunner, V as SubagentUsageSnapshot, W as TaskDelegation, X as TaskResult, Y as TaskSpec, _ as makeAgentSubagentRunner } from './agent-subagent-runner-D8qW8OSC.js';
32
32
  export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-Cuq1C8V9.js';
33
33
  import { c as ModeStore } from './mode-BO4SEUIv.js';
34
34
  export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-BO4SEUIv.js';
35
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-C0Ze7Ldm.js';
35
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-EWdqs8v6.js';
36
36
  import { l as TaskGraph, r as TaskType, n as TaskPriority, m as TaskNode } from './task-graph-D1YQbpxF.js';
37
37
  export { C as CriticalPathResult, 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, T as TaskAssignment, i as TaskDependency, j as TaskEdge, k as TaskFilter, o as TaskProgress, p as TaskSort, q as TaskStatus, s as computeTaskProgress, t as findCriticalPath, u as topologicalSort } from './task-graph-D1YQbpxF.js';
38
38
  import { T as Tracer, e as MetricsSink, b as HealthRegistry } from './observability-BhnVLBLS.js';
39
39
  export { A as AggregateHealth, H as HealthCheck, a as HealthCheckResult, c as HealthStatus, M as MetricLabels, d as MetricSeries, f as MetricsSnapshot, S as Span } from './observability-BhnVLBLS.js';
40
- import { S as SystemPromptContributor, E as ExtensionRegistry, t as ToolRegistry, m as ProviderRegistry, p as ToolCallPipelinePayload } from './index-BN6i2Nfg.js';
41
- export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as AgentExtension, d as AgentInit, e as AgentInput, f as AgentPipelines, B as BeforeIterationHook, g as BeforeRunHook, h as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, i as HookRunner, j as HookRunnerOptions, O as OnErrorHook, P as PreToolUseResult, k as PromptResult, l as ProviderFactory, o as ProviderRunnerWrapper, R as RunResult, u as ToolWrapper, U as UserInputPayload, v as createDefaultPipelines } from './index-BN6i2Nfg.js';
40
+ import { S as SystemPromptContributor, E as ExtensionRegistry, t as ToolRegistry, m as ProviderRegistry, p as ToolCallPipelinePayload } from './index-Dsda0uCn.js';
41
+ export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as AgentExtension, d as AgentInit, e as AgentInput, f as AgentPipelines, B as BeforeIterationHook, g as BeforeRunHook, h as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, i as HookRunner, j as HookRunnerOptions, O as OnErrorHook, P as PreToolUseResult, k as PromptResult, l as ProviderFactory, o as ProviderRunnerWrapper, R as RunResult, u as ToolWrapper, U as UserInputPayload, v as createDefaultPipelines } from './index-Dsda0uCn.js';
42
42
  export { AutonomyStage } from './types/index.js';
43
43
  export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, MessageRepairReport, MessageRepairResult, NewlineStyle, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut } from './utils/index.js';
44
- import { a as WstackPaths } from './wstack-paths-eMXnY1_X.js';
45
- export { W as WstackPathOptions, p as projectHash, r as resolveWstackPaths } from './wstack-paths-eMXnY1_X.js';
46
- 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, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from './plan-templates-DBgrTGPu.js';
44
+ import { a as WstackPaths } from './wstack-paths-D7evAFWM.js';
45
+ export { W as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths } from './wstack-paths-D7evAFWM.js';
46
+ 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, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from './plan-templates-BcUwLlMQ.js';
47
47
  export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, S as STANDARD_AUDIT_EVENTS, a as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-CDHxcmQU.js';
48
48
  export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BmYi3DGA.js';
49
49
  export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-CBVx-d-8.js';
50
50
  export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, AutonomyPromptContributorOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, IntelligentCompactor, IntelligentCompactorOptions, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions, buildGoalPreamble, makeAutonomyPromptContributor } from './execution/index.js';
51
51
  export { DefaultProviderRunner } from './defaults/index.js';
52
- 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, n as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, 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 ICoordinator, M as IFleetManager, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, af as rosterSummaryFromConfigs } from './null-fleet-bus-BCIRT_nV.js';
53
- export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-BSBbZt0e.js';
52
+ 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, n as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, 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 ICoordinator, M as IFleetManager, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, af as rosterSummaryFromConfigs } from './null-fleet-bus-u5ys3lW_.js';
53
+ export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-DpbG3wiy.js';
54
54
  export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from './models/index.js';
55
55
  import { TaskStore } from './sdd/index.js';
56
56
  export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CollectedAnswer, CriticalPathAnalysis, DefaultTaskStore, ExecutionSummary, GeneratedTask, SPEC_TEMPLATES, SddParallelRun, SddParallelRunOptions, SddProgress, SddTaskDecomposer, SddTaskDecomposerOptions, SpecDiff, SpecDrivenDev, SpecDrivenDevOptions, SpecIndexEntry, SpecParser, SpecStore, SpecStoreOptions, SpecVersion, SpecVersioning, TaskBatch, TaskExecutionContext, TaskExecutionResult, TaskFlow, TaskFlowEventMap, TaskFlowEventName, TaskFlowExecutionContext, TaskFlowOptions, TaskFlowPhase, TaskGenerator, TaskGeneratorOptions, TaskGraphIndexEntry, TaskGraphStore, TaskGraphStoreOptions, TaskTracker, TaskTrackerOptions, TaskTransition, WaveResult, analyzeCriticalPath, createAutoExecutor, getTemplate, listTemplates, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, templateToMarkdown } from './sdd/index.js';
@@ -968,6 +968,79 @@ declare function loadPlugins(plugins: Plugin[], opts: LoadPluginsOptions): Promi
968
968
  */
969
969
  declare function unloadPlugins(loadedPlugins: Plugin[], opts: LoadPluginsOptions): Promise<void>;
970
970
 
971
+ /**
972
+ * Prompt refinement ("did you mean this?").
973
+ *
974
+ * Runs a one-shot LLM call in a SEPARATE context (its own system prompt, no
975
+ * conversation history, no tools) that rewrites a raw user message into a
976
+ * clearer, more complete instruction BEFORE the main agent sees it. The goal
977
+ * is to make the main context start from a well-understood request rather than
978
+ * guessing intent from terse input like "fix the bug".
979
+ *
980
+ * This mirrors `IntelligentCompactor.callSummarizer` — a plain
981
+ * `provider.complete()` with a dedicated system prompt — and is deliberately
982
+ * free of React / TUI dependencies so it can be unit-tested in isolation.
983
+ */
984
+ declare const ENHANCER_SYSTEM_PROMPT = "You are a request refiner embedded in a coding agent. Your ONLY job is to rewrite the user's message into a single, clearer, unambiguous instruction that the coding agent can act on confidently.\n\nRules:\n- Preserve the user's intent and scope EXACTLY. Do not add new requirements, features, constraints, or steps the user did not ask for. Do not remove anything they did ask for.\n- Do NOT answer, solve, or perform the request. Only restate it more clearly.\n- Keep all concrete details verbatim: file paths, identifiers, code, error text, numbers, names, URLs.\n- Resolve obvious ambiguity by making the implied subject explicit, not by inventing specifics. If something is genuinely unspecified, leave it general rather than guessing.\n- Be concise: one tight instruction (a few sentences at most). No preamble, no explanation, no quotes, no markdown headers.\n- If the message is already clear and complete, return it essentially unchanged.\n- Preserve the user's language (if they wrote in Turkish, refine in Turkish).\n\nWhen earlier conversation turns are provided, they are CONTEXT ONLY. Use them to resolve references in the user's latest message \u2014 \"it\", \"that\", \"the same\", \"the other one\", \"this file\", \"again\" \u2014 so the refined instruction is self-contained. Refine ONLY the user's latest message; do not answer it, do not act on or restate earlier turns, and do not summarize the conversation.\n\nOutput ONLY the refined request text \u2014 nothing else.";
985
+ /**
986
+ * Heuristic gate: should this raw input be sent through the refiner at all?
987
+ * Pure + exported for unit testing. Returns false for inputs where refinement
988
+ * is pointless or unwanted (slash commands, one-word affirmations, trivially
989
+ * short text, bare numbers).
990
+ */
991
+ declare function shouldEnhance(text: string): boolean;
992
+ /**
993
+ * Normalize for "did the refiner actually change anything?" comparison —
994
+ * collapse whitespace and lowercase so trivial reformatting doesn't trigger
995
+ * the confirmation panel.
996
+ */
997
+ declare function normalizedEqual(a: string, b: string): boolean;
998
+ /** A single text-only conversation turn used as refiner context. */
999
+ interface ConversationTurn {
1000
+ role: 'user' | 'assistant';
1001
+ text: string;
1002
+ }
1003
+ interface EnhanceUserPromptOptions {
1004
+ provider: Provider;
1005
+ model: string;
1006
+ text: string;
1007
+ /**
1008
+ * Recent conversation turns (oldest→newest), text only, used purely as
1009
+ * CONTEXT so the refiner can resolve references in a follow-up message
1010
+ * ("it", "the same", "that file"). Without this, the refiner is blind to
1011
+ * the conversation and can only refine self-contained prompts. Build with
1012
+ * `recentTextTurns(ctx.messages)`.
1013
+ */
1014
+ history?: ConversationTurn[];
1015
+ /** Parent abort signal (e.g. the run controller / Esc). */
1016
+ signal?: AbortSignal;
1017
+ /** Hard cap on how long to wait for the refiner before giving up. Default 25s. */
1018
+ timeoutMs?: number;
1019
+ /** Max tokens for the refined output. Default 2048. */
1020
+ maxTokens?: number;
1021
+ /**
1022
+ * Called with a short reason when refinement fails (provider error, timeout,
1023
+ * empty response). NOT called when the caller cancels via `signal`. Lets the
1024
+ * UI surface *why* a refine fell through instead of a generic message.
1025
+ */
1026
+ onError?: (reason: string) => void;
1027
+ }
1028
+ /**
1029
+ * Refine a raw user prompt. Returns the refined text, or `null` when the
1030
+ * caller should fall back to the original (refiner errored, timed out, was
1031
+ * aborted, or returned nothing useful). NEVER throws — refinement is a
1032
+ * best-effort convenience and must never block the user from sending.
1033
+ */
1034
+ declare function enhanceUserPrompt(opts: EnhanceUserPromptOptions): Promise<string | null>;
1035
+ /**
1036
+ * Extract the last few user/assistant TEXT turns from a conversation, newest
1037
+ * last, for use as refiner context. Skips system messages and tool-only turns
1038
+ * (tool_use / tool_result carry no useful natural-language context and bloat
1039
+ * the call). Each turn is truncated to `maxChars`; at most `maxTurns` are
1040
+ * returned. Pure + exported for unit testing.
1041
+ */
1042
+ declare function recentTextTurns(messages: Message[], maxTurns?: number, maxChars?: number): ConversationTurn[];
1043
+
971
1044
  type PhaseStatus = 'pending' | 'ready' | 'running' | 'paused' | 'completed' | 'failed' | 'skipped';
972
1045
  interface PhaseNode {
973
1046
  id: string;
@@ -1969,4 +2042,4 @@ interface PlanPluginOptions {
1969
2042
  */
1970
2043
  declare function createPlanPlugin(opts?: PlanPluginOptions): Plugin;
1971
2044
 
1972
- export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, 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, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, parseContinueDirective, pendingBtwCount, phaseForRole, resolveModelMatrix, runProviderWithRetry, runShellHook, securitySlashCommand, setBtwNote, stableStringify, unloadPlugins };
2045
+ export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, type ConversationTurn, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, ENHANCER_SYSTEM_PROMPT, type EnhanceUserPromptOptions, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, Message, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, 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, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, enhanceUserPrompt, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, normalizedEqual, parseContinueDirective, pendingBtwCount, phaseForRole, recentTextTurns, resolveModelMatrix, runProviderWithRetry, runShellHook, securitySlashCommand, setBtwNote, shouldEnhance, stableStringify, unloadPlugins };