@wrongstack/core 0.77.0 → 0.82.6

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 (79) hide show
  1. package/dist/{agent-bridge-EWdqs8v6.d.ts → agent-bridge-C9P_HPez.d.ts} +2 -2
  2. package/dist/{agent-subagent-runner-D8qW8OSC.d.ts → agent-subagent-runner-2Aq0jOSj.d.ts} +107 -102
  3. package/dist/{compactor-D_ExJajC.d.ts → compactor-CJq7LQev.d.ts} +3 -3
  4. package/dist/{config-Dy0CK_o6.d.ts → config-_DZ7dN-T.d.ts} +77 -75
  5. package/dist/{context-y87Jc5ei.d.ts → context-ToHAp4-U.d.ts} +119 -90
  6. package/dist/coordination/index.d.ts +16 -16
  7. package/dist/coordination/index.js +318 -37
  8. package/dist/coordination/index.js.map +1 -1
  9. package/dist/defaults/index.d.ts +31 -31
  10. package/dist/defaults/index.js +419 -67
  11. package/dist/defaults/index.js.map +1 -1
  12. package/dist/{director-state-BmYi3DGA.d.ts → director-state-CgIc30qi.d.ts} +19 -19
  13. package/dist/{events-CYaoLN5_.d.ts → events-DnRqXaZ3.d.ts} +43 -42
  14. package/dist/execution/index.d.ts +53 -53
  15. package/dist/execution/index.js +67 -23
  16. package/dist/execution/index.js.map +1 -1
  17. package/dist/extension/index.d.ts +9 -9
  18. package/dist/extension/index.js +8 -1
  19. package/dist/extension/index.js.map +1 -1
  20. package/dist/{goal-store-C7jcumEh.d.ts → goal-store-DvWLNu52.d.ts} +4 -4
  21. package/dist/{index-DIxjTOga.d.ts → index-BNOLadHw.d.ts} +28 -28
  22. package/dist/{index-Dsda0uCn.d.ts → index-N0_c4bHQ.d.ts} +45 -45
  23. package/dist/index.d.ts +165 -165
  24. package/dist/index.js +593 -137
  25. package/dist/index.js.map +1 -1
  26. package/dist/infrastructure/index.d.ts +9 -9
  27. package/dist/infrastructure/index.js +13 -5
  28. package/dist/infrastructure/index.js.map +1 -1
  29. package/dist/kernel/index.d.ts +14 -14
  30. package/dist/kernel/index.js +7 -0
  31. package/dist/kernel/index.js.map +1 -1
  32. package/dist/logger-B72yyPc6.d.ts +12 -0
  33. package/dist/{logger-BppKxDqZ.d.ts → logger-C_27pj9i.d.ts} +6 -7
  34. package/dist/{mcp-servers-T0O6UN_w.d.ts → mcp-servers-Dck3T85_.d.ts} +20 -20
  35. package/dist/{mode-BO4SEUIv.d.ts → mode-CHo2XtHs.d.ts} +4 -4
  36. package/dist/models/index.d.ts +10 -10
  37. package/dist/models/index.js +8 -2
  38. package/dist/models/index.js.map +1 -1
  39. package/dist/{models-registry-BcYJDKLm.d.ts → models-registry-Be3osGt5.d.ts} +28 -28
  40. package/dist/{models-registry-Cuq1C8V9.d.ts → models-registry-Boz639EI.d.ts} +12 -12
  41. package/dist/{multi-agent-coordinator-DpbG3wiy.d.ts → multi-agent-coordinator-DllpCVkF.d.ts} +12 -12
  42. package/dist/{null-fleet-bus-u5ys3lW_.d.ts → null-fleet-bus-BY0AN-sr.d.ts} +121 -121
  43. package/dist/observability/index.d.ts +41 -41
  44. package/dist/observability/index.js.map +1 -1
  45. package/dist/{observability-BhnVLBLS.d.ts → observability-CoSNZdhX.d.ts} +4 -4
  46. package/dist/{parallel-eternal-engine-Dn0P8Pbj.d.ts → parallel-eternal-engine-D402RASp.d.ts} +49 -49
  47. package/dist/{path-resolver-B32v2JIq.d.ts → path-resolver-UPFTsDyD.d.ts} +6 -6
  48. package/dist/{permission-V5BLOrY6.d.ts → permission-14CChMmO.d.ts} +10 -8
  49. package/dist/{permission-policy-CBVx-d-8.d.ts → permission-policy-gW5htOo1.d.ts} +7 -7
  50. package/dist/{plan-templates-BcUwLlMQ.d.ts → plan-templates-DRvPgkfZ.d.ts} +65 -32
  51. package/dist/{provider-runner-CSi_7l0h.d.ts → provider-runner-COAJM8tC.d.ts} +6 -6
  52. package/dist/{retry-policy-CG3qvH_e.d.ts → retry-policy-DSu6O6rD.d.ts} +4 -4
  53. package/dist/sdd/index.d.ts +47 -47
  54. package/dist/sdd/index.js +47 -22
  55. package/dist/sdd/index.js.map +1 -1
  56. package/dist/security/index.d.ts +6 -6
  57. package/dist/security/index.js +7 -1
  58. package/dist/security/index.js.map +1 -1
  59. package/dist/{selector-RvBR_YRW.d.ts → selector-11-fm95U.d.ts} +2 -2
  60. package/dist/{session-event-bridge-CDHxcmQU.d.ts → session-event-bridge-D0u-x576.d.ts} +7 -7
  61. package/dist/{session-reader-BIpwM60D.d.ts → session-reader-BQU-toaN.d.ts} +23 -23
  62. package/dist/{skill-CxuWrsKK.d.ts → skill-BJeF2DwY.d.ts} +1 -1
  63. package/dist/skills/index.d.ts +9 -9
  64. package/dist/skills/index.js +15 -3
  65. package/dist/skills/index.js.map +1 -1
  66. package/dist/storage/index.d.ts +15 -15
  67. package/dist/storage/index.js +378 -76
  68. package/dist/storage/index.js.map +1 -1
  69. package/dist/{system-prompt-CA11g6Jo.d.ts → system-prompt-C0rLCeyn.d.ts} +16 -11
  70. package/dist/{task-graph-D1YQbpxF.d.ts → task-graph-CikNdRTG.d.ts} +22 -22
  71. package/dist/types/index.d.ts +25 -25
  72. package/dist/types/index.js +45 -10
  73. package/dist/types/index.js.map +1 -1
  74. package/dist/utils/index.d.ts +46 -45
  75. package/dist/utils/index.js +53 -12
  76. package/dist/utils/index.js.map +1 -1
  77. package/dist/{wstack-paths-D7evAFWM.d.ts → wstack-paths-BQMvEllz.d.ts} +2 -2
  78. package/package.json +1 -1
  79. package/dist/logger-DDd5C--Z.d.ts +0 -12
package/dist/index.d.ts CHANGED
@@ -1,73 +1,73 @@
1
- import { S as SystemPromptBuilder, c as ModelCapabilities, a as BuildContext, C as Container, H as HookRegistry } from './system-prompt-CA11g6Jo.js';
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-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
- 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
- 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
- export { C as CompactReport, a as Compactor } from './compactor-D_ExJajC.js';
13
- export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './permission-V5BLOrY6.js';
1
+ import { S as SystemPromptBuilder, c as ModelCapabilities, a as BuildContext, C as Container, H as HookRegistry } from './system-prompt-C0rLCeyn.js';
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-C0rLCeyn.js';
3
+ import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-DnRqXaZ3.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-DnRqXaZ3.js';
5
+ import { d as WorktreeManager } from './index-BNOLadHw.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-BNOLadHw.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-ToHAp4-U.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-ToHAp4-U.js';
9
+ import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-COAJM8tC.js';
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-_DZ7dN-T.js';
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-_DZ7dN-T.js';
12
+ export { C as CompactReport, a as Compactor } from './compactor-CJq7LQev.js';
13
+ export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './permission-14CChMmO.js';
14
14
  export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from './session-rewinder-C9HnMkhP.js';
15
- import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-BIpwM60D.js';
16
- export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-BIpwM60D.js';
15
+ import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-BQU-toaN.js';
16
+ export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-BQU-toaN.js';
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-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';
20
+ import { D as DefaultLogger } from './logger-C_27pj9i.js';
21
+ export { a as DefaultLoggerOptions } from './logger-C_27pj9i.js';
22
+ import { D as DefaultPathResolver } from './path-resolver-UPFTsDyD.js';
23
+ export { a as DefaultTokenCounter } from './path-resolver-UPFTsDyD.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-Dn0P8Pbj.js';
27
- import { a as SkillLoader } from './skill-CxuWrsKK.js';
28
- export { S as SkillEntry, b as SkillManifest } from './skill-CxuWrsKK.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-D402RASp.js';
27
+ import { a as SkillLoader } from './skill-BJeF2DwY.js';
28
+ export { S as SkillEntry, b as SkillManifest } from './skill-BJeF2DwY.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-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
- export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-Cuq1C8V9.js';
33
- import { c as ModeStore } from './mode-BO4SEUIv.js';
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-EWdqs8v6.js';
36
- import { l as TaskGraph, r as TaskType, n as TaskPriority, m as TaskNode } from './task-graph-D1YQbpxF.js';
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
- import { T as Tracer, e as MetricsSink, b as HealthRegistry } from './observability-BhnVLBLS.js';
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-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';
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-2Aq0jOSj.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-2Aq0jOSj.js';
32
+ export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-Boz639EI.js';
33
+ import { c as ModeStore } from './mode-CHo2XtHs.js';
34
+ export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-CHo2XtHs.js';
35
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-C9P_HPez.js';
36
+ import { l as TaskGraph, r as TaskType, n as TaskPriority, m as TaskNode } from './task-graph-CikNdRTG.js';
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-CikNdRTG.js';
38
+ import { T as Tracer, e as MetricsSink, b as HealthRegistry } from './observability-CoSNZdhX.js';
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-CoSNZdhX.js';
40
+ import { S as SystemPromptContributor, E as ExtensionRegistry, t as ToolRegistry, m as ProviderRegistry, p as ToolCallPipelinePayload } from './index-N0_c4bHQ.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-N0_c4bHQ.js';
42
42
  export { AutonomyStage } from './types/index.js';
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-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
- 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
- export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BmYi3DGA.js';
49
- export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-CBVx-d-8.js';
43
+ export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, 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, setOutputLineGuard, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut } from './utils/index.js';
44
+ import { a as WstackPaths } from './wstack-paths-BQMvEllz.js';
45
+ export { W as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths } from './wstack-paths-BQMvEllz.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-DRvPgkfZ.js';
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-D0u-x576.js';
48
+ export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-CgIc30qi.js';
49
+ export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-gW5htOo1.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-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';
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-BY0AN-sr.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-DllpCVkF.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';
57
57
  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';
58
- export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-T0O6UN_w.js';
58
+ export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-Dck3T85_.js';
59
59
  export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
60
60
  import { ReplayLogStore, DefaultPromptStore } from './storage/index.js';
61
61
  export { ALL_SYNC_CATEGORIES, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, DefaultSessionRewinder, PromptEntry, PromptStore, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, ToolAuditLog, ToolAuditLogOptions, VerifyResult } from './storage/index.js';
62
- export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, s as saveGoal, b as summarizeUsage } from './goal-store-C7jcumEh.js';
63
- import { a as RetryPolicy, E as ErrorHandler } from './retry-policy-CG3qvH_e.js';
64
- import { a as Logger } from './logger-DDd5C--Z.js';
65
- export { L as LogLevel } from './logger-DDd5C--Z.js';
66
- export { M as ModelsDevPayload, a as ModelsDevProvider, b as ModelsRegistry, R as ResolvedModel, c as ResolvedProvider, W as WireFamily } from './models-registry-BcYJDKLm.js';
62
+ export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, s as saveGoal, b as summarizeUsage } from './goal-store-DvWLNu52.js';
63
+ import { a as RetryPolicy, E as ErrorHandler } from './retry-policy-DSu6O6rD.js';
64
+ import { a as Logger } from './logger-B72yyPc6.js';
65
+ export { L as LogLevel } from './logger-B72yyPc6.js';
66
+ export { M as ModelsDevPayload, a as ModelsDevProvider, b as ModelsRegistry, R as ResolvedModel, c as ResolvedProvider, W as WireFamily } from './models-registry-Be3osGt5.js';
67
67
  export { S as SecretVault } from './secret-vault-DoISxaKO.js';
68
68
  export { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
69
69
  import './path-resolver-CPRj4bFY.js';
70
- import './selector-RvBR_YRW.js';
70
+ import './selector-11-fm95U.js';
71
71
  import 'node:events';
72
72
 
73
73
  /**
@@ -83,7 +83,7 @@ interface DetectedDependency {
83
83
  name: string;
84
84
  version: string;
85
85
  isDev: boolean;
86
- hasSecurityIssue?: boolean;
86
+ hasSecurityIssue?: boolean | undefined;
87
87
  }
88
88
  interface TechStackInfo {
89
89
  stack: TechStack;
@@ -97,7 +97,7 @@ interface DetectionResult {
97
97
  projectRoot: string;
98
98
  detectedStacks: TechStackInfo[];
99
99
  isMonorepo: boolean;
100
- workspaceConfigs?: string[];
100
+ workspaceConfigs?: string[] | undefined;
101
101
  }
102
102
  interface SkillGenerationContext {
103
103
  techStack: TechStackInfo;
@@ -186,8 +186,8 @@ interface Finding {
186
186
  title: string;
187
187
  description: string;
188
188
  file: string;
189
- line?: number;
190
- snippet?: string;
189
+ line?: number | undefined;
190
+ snippet?: string | undefined;
191
191
  remediation: string;
192
192
  patternId: string;
193
193
  confidence: 'high' | 'medium' | 'low';
@@ -238,7 +238,7 @@ interface ReportOptions {
238
238
  format: 'markdown' | 'json' | 'html';
239
239
  includeRemediation: boolean;
240
240
  groupBySeverity: boolean;
241
- maxFindingsPerCategory?: number;
241
+ maxFindingsPerCategory?: number | undefined;
242
242
  }
243
243
  declare class ReportGenerator {
244
244
  private options;
@@ -273,28 +273,28 @@ declare const defaultGitignoreUpdater: GitignoreUpdater;
273
273
  interface SecurityScannerOptions {
274
274
  projectRoot: string;
275
275
  scanOptions?: {
276
- depth?: 'quick' | 'standard' | 'deep';
277
- includeSecrets?: boolean;
278
- includeInjection?: boolean;
279
- includeConfig?: boolean;
276
+ depth?: 'quick' | 'standard' | 'deep' | undefined;
277
+ includeSecrets?: boolean | undefined;
278
+ includeInjection?: boolean | undefined;
279
+ includeConfig?: boolean | undefined;
280
280
  };
281
- reportOptions?: Partial<ReportOptions>;
282
- skipGitignore?: boolean;
281
+ reportOptions?: Partial<ReportOptions> | undefined;
282
+ skipGitignore?: boolean | undefined;
283
283
  /** Optional model name to pass to the LLM provider (defaults to the provider's default). */
284
- model?: string;
284
+ model?: string | undefined;
285
285
  }
286
286
  /** Accepts a full Context or just the provider+model needed for LLM calls. */
287
287
  type SecurityScannerContext = Context | {
288
288
  provider: Provider;
289
- model?: string;
289
+ model?: string | undefined;
290
290
  };
291
291
  interface FullScanResult {
292
292
  detectionResult: Awaited<ReturnType<typeof defaultTechStackDetector.detect>>;
293
293
  generatedSkill: GeneratedSkill;
294
294
  scanResult: ScanResult;
295
295
  reportPath: string;
296
- synthesizedReport?: string;
297
- gitignoreResult?: Awaited<ReturnType<typeof defaultGitignoreUpdater.update>>;
296
+ synthesizedReport?: string | undefined;
297
+ gitignoreResult?: Awaited<ReturnType<typeof defaultGitignoreUpdater.update>> | undefined;
298
298
  }
299
299
  /**
300
300
  * LLM-powered Security Scanner Orchestrator
@@ -412,7 +412,7 @@ interface RunProviderOptions {
412
412
  events: EventBus;
413
413
  retry: RetryPolicy;
414
414
  logger: Logger;
415
- tracer?: Tracer;
415
+ tracer?: Tracer | undefined;
416
416
  }
417
417
  /**
418
418
  * Call a provider with the retry policy applied. Emits `provider.retry`
@@ -424,7 +424,7 @@ declare function runProviderWithRetry(opts: RunProviderOptions): Promise<Respons
424
424
 
425
425
  interface ShellHookSpec {
426
426
  command: string;
427
- timeoutMs?: number;
427
+ timeoutMs?: number | undefined;
428
428
  }
429
429
  /**
430
430
  * Run a shell hook (Claude-compatible). The `HookInput` JSON is written to the
@@ -436,7 +436,7 @@ interface ShellHookSpec {
436
436
  * The hook never throws into the agent loop: spawn errors and timeouts resolve
437
437
  * to `null` and are logged. Output is capped at 64 KiB.
438
438
  */
439
- declare function runShellHook(spec: ShellHookSpec, input: HookInput, logger?: Logger): Promise<HookOutcome | null>;
439
+ declare function runShellHook(spec: ShellHookSpec, input: HookInput, logger?: Logger | undefined): Promise<HookOutcome | null>;
440
440
 
441
441
  /**
442
442
  * Options for {@link bootConfig}. Both the CLI and the WebUI server boot the
@@ -457,12 +457,12 @@ interface BootConfigOptions {
457
457
  * The CLI passes `wstack`; the WebUI server passes `WebUI`. Default
458
458
  * `wstack`.
459
459
  */
460
- appLabel?: string;
460
+ appLabel?: string | undefined;
461
461
  /**
462
462
  * Load `~/.wrongstack/sync.json` and merge it into `config.sync` so the
463
463
  * ConfigStore starts with the correct CloudSync state. Default `true`.
464
464
  */
465
- loadSyncConfig?: boolean;
465
+ loadSyncConfig?: boolean | undefined;
466
466
  }
467
467
  /**
468
468
  * Everything the boot phase resolves before DI-container wiring. Superset of
@@ -624,12 +624,12 @@ interface InputBuilderOptions {
624
624
  * Pastes ≥ this many lines collapse to a `[pasted #N]` placeholder.
625
625
  * Default: 8 lines.
626
626
  */
627
- pasteLineThreshold?: number;
627
+ pasteLineThreshold?: number | undefined;
628
628
  /**
629
629
  * Pastes ≥ this many characters collapse to a placeholder regardless of
630
630
  * line count. Default: 2000 chars.
631
631
  */
632
- pasteCharThreshold?: number;
632
+ pasteCharThreshold?: number | undefined;
633
633
  }
634
634
  interface InputBuilderEvent {
635
635
  /** Current display string (with placeholders, before submit). */
@@ -713,16 +713,16 @@ declare class InputBuilder {
713
713
 
714
714
  declare const LAYER_1_IDENTITY = "You are WrongStack, a command-line AI coding agent.\n\nYou operate inside the user's terminal with direct read and write access to their working directory, the ability to run shell commands, and access to the web. You assist a developer who knows what they're doing \u2014 your job is to accelerate them, not to second-guess them.\n\nThese are your baseline instructions. When an active mode prompt (Teach, Brief, Code Reviewer, etc.) is present in your context, its instructions **override** conflicting defaults below \u2014 the mode layer always wins on conflict.\n\n## Core principles\n\n1. **Read before you write.** Always inspect the relevant files before proposing changes. Assumptions about code you haven't read are bugs in waiting.\n2. **Prefer surgical edits over rewrites.** When modifying existing files, use the edit tool with str_replace; only use write for new files or full replacements explicitly requested.\n3. **Show your work.** Before non-trivial changes, briefly state what you're about to do \u2014 one sentence, not a wall of text. After tool calls, summarize what happened, not what you did mechanically.\n4. **Be honest about limits.** If you don't know, say so. If something failed, say what failed and what you'll try next. Never fabricate file contents, API responses, or test results.\n5. **Be concise.** The user is a developer in a terminal. No marketing language, no \"great question!\", no bullet-point lists when prose works. If a one-liner answers, a one-liner is the answer. (Active modes may override verbosity \u2014 follow the mode's guidance on depth.)\n6. **Ask when blocked, proceed when not.** If the task is ambiguous in a way that meaningfully changes the approach, ask. If it's ambiguous in a way that doesn't, pick a reasonable default and proceed, stating the assumption.\n7. **Trust the tools.** If a permission prompt is shown, the user will answer. Do not preemptively explain that you \"would like to\" do something \u2014 call the tool, let the permission flow decide.\n8. **Format for scanability.** Use code blocks for code, backticks for file paths, bold for key terms. One-liners stay one line. Paragraphs max 3 sentences.\n9. **Match the user's language.** Respond in the same language the user writes in. If they write in Turkish, reply in Turkish. If they mix languages, follow the dominant one.\n10. **Recover explicitly.** When a tool fails, distinguish the failure type and respond accordingly:\n\n| Failure type | Examples | Strategy |\n|---|---|---|\n| **Transient** | Timeout, rate limit, network hiccup | Retry once with adjusted params, then report |\n| **Permanent** | Syntax error, missing file, type error, permission denied | Do NOT retry \u2014 diagnose and report the root cause |\n| **Validation** | Invalid argument, out-of-range value, schema mismatch | State what was rejected and what range/format is accepted |\n\nNever silently skip a failure \u2014 always report it, even when you choose not to retry.\n\n## Decision heuristics\n\n- **Task is ambiguous** (unclear which file, conflicting requirements) \u2192 ask before proceeding\n- **Task is clear, approach is unknown** \u2192 try one approach, report what happened\n- **Tool fails** \u2192 classify the failure (transient/permanent/validation), then apply the appropriate recovery\n- **Permission prompt shown** \u2192 wait for user, do not act unilaterally\n- **Tool denied by user** \u2192 do NOT retry the same tool in the next iteration. If the user denies a write, bash, or any tool, respect that decision. The user's \"no\" is final \u2014 acknowledge it and ask if they'd like to clarify what they actually want.\n- **Context window filling up** \u2192 use context_manager proactively; don't wait to be told\n\n## How you work\n\n- **Stay focused.** When fixing a bug, fix only the bug \u2014 don't refactor neighboring code unless the user asks.\n- **Comment with purpose.** Add comments only when they explain why, not what. The code already says what.\n- **Own your output.** Never call work \"production-ready\" or \"fully tested\" \u2014 the user makes that call.\n- **Move on from mistakes.** When something fails, report what happened and what you'll do next. No apologies, no hand-wringing.\n- **Respect denied tools.** If the user denies a tool call (via permission prompt), do not retry that same operation in the next iteration. The user's \"no\" means \"find another way or ask\". Never re-attempt a denied tool unless the user explicitly asks you to try again.\n- **When denied, ask.** If the user refuses a tool call, do not attempt to work around it, do not suggest alternatives unprompted, and do not retry. Acknowledge the denial and explicitly ask: \"What would you like me to do instead?\"\n- **Stay in your lane.** Don't lecture about software engineering principles unless explicitly asked \u2014 the user is the expert on their codebase.";
715
715
  interface DefaultSystemPromptBuilderOptions {
716
- memoryStore?: MemoryStore;
717
- skillLoader?: SkillLoader;
718
- modeStore?: ModeStore;
716
+ memoryStore?: MemoryStore | undefined;
717
+ skillLoader?: SkillLoader | undefined;
718
+ modeStore?: ModeStore | undefined;
719
719
  /** Pre-resolved active mode id — shown in environment block. */
720
- modeId?: string;
720
+ modeId?: string | undefined;
721
721
  /** Pre-resolved mode prompt — avoids redundant modeStore.getActiveMode() call. */
722
- modePrompt?: string;
722
+ modePrompt?: string | undefined;
723
723
  /** Pre-resolved model capabilities — enables adaptive context thresholds. */
724
- modelCapabilities?: ModelCapabilities;
725
- todayIso?: string;
724
+ modelCapabilities?: ModelCapabilities | undefined;
725
+ todayIso?: string | undefined;
726
726
  /**
727
727
  * Path to the session's plan JSON, or a getter that returns it. When
728
728
  * set, the builder reads the file on every `build()` call and injects
@@ -743,7 +743,7 @@ interface DefaultSystemPromptBuilderOptions {
743
743
  * or pass a plain array. Contributors are called in order; a throwing
744
744
  * contributor is caught and logged without aborting the build.
745
745
  */
746
- contributors?: readonly SystemPromptContributor[];
746
+ contributors?: readonly SystemPromptContributor[] | undefined;
747
747
  }
748
748
  declare class DefaultSystemPromptBuilder implements SystemPromptBuilder {
749
749
  private readonly opts;
@@ -799,7 +799,7 @@ declare class SlashCommandRegistry {
799
799
  * the official tier.
800
800
  */
801
801
  register(cmd: SlashCommand, owner?: string, opts?: {
802
- official?: boolean;
802
+ official?: boolean | undefined;
803
803
  }): void;
804
804
  unregister(name: string): boolean;
805
805
  /**
@@ -821,9 +821,9 @@ declare class SlashCommandRegistry {
821
821
  * The command name is split at the first `:` if the prefix matches a known owner.
822
822
  */
823
823
  dispatch(line: string, ctx: Context): Promise<{
824
- exit?: boolean;
825
- message?: string;
826
- runText?: string;
824
+ exit?: boolean | undefined;
825
+ message?: string | undefined;
826
+ runText?: string | undefined;
827
827
  metadata?: Record<string, unknown>;
828
828
  } | null>;
829
829
  }
@@ -840,29 +840,29 @@ interface PluginAPIInit {
840
840
  pipelines: PluginPipelines;
841
841
  toolRegistry: ToolRegistry;
842
842
  providerRegistry: ProviderRegistry;
843
- slashCommandRegistry?: SlashCommandRegistry;
844
- mcpRegistry?: MCPRegistryView;
843
+ slashCommandRegistry?: SlashCommandRegistry | undefined;
844
+ mcpRegistry?: MCPRegistryView | undefined;
845
845
  /**
846
846
  * The agent's extension registry. Plugins register AgentExtension
847
847
  * instances here to hook into agent lifecycle events.
848
848
  */
849
- extensions?: ExtensionRegistry;
849
+ extensions?: ExtensionRegistry | undefined;
850
850
  /**
851
851
  * The host's lifecycle hook registry. When provided, `api.registerHook`
852
852
  * adds in-process hooks here. When absent, `registerHook` is a noop.
853
853
  */
854
- hookRegistry?: HookRegistry;
854
+ hookRegistry?: HookRegistry | undefined;
855
855
  /**
856
856
  * The active session writer. Plugins append custom events here.
857
857
  * When not provided, a noop writer is used.
858
858
  */
859
- sessionWriter?: SessionWriterView;
859
+ sessionWriter?: SessionWriterView | undefined;
860
860
  /**
861
861
  * The host's metrics sink. When set, the plugin gets a scoped view
862
862
  * that auto-prefixes metric names with `plugin.<pluginName>.`.
863
863
  * When not provided, a noop sink is used.
864
864
  */
865
- metricsSink?: MetricsSinkView;
865
+ metricsSink?: MetricsSinkView | undefined;
866
866
  config: Config;
867
867
  /**
868
868
  * The host's ConfigStore. Used to wire `api.onConfigChange()`.
@@ -879,7 +879,7 @@ interface PluginAPIInit {
879
879
  * command names and override built-ins; external plugins are namespaced.
880
880
  * Defaults to false.
881
881
  */
882
- official?: boolean;
882
+ official?: boolean | undefined;
883
883
  }
884
884
  declare class DefaultPluginAPI implements PluginAPI {
885
885
  readonly container: Container;
@@ -934,7 +934,7 @@ declare const KERNEL_API_VERSION = "0.1.10";
934
934
  interface LoadPluginsOptions {
935
935
  apiFactory: (plugin: Plugin) => PluginAPI;
936
936
  log: Logger;
937
- kernelApiVersion?: string;
937
+ kernelApiVersion?: string | undefined;
938
938
  /**
939
939
  * Per-plugin options keyed by plugin name. When a plugin declares
940
940
  * `configSchema`, the loader validates `pluginOptions[plugin.name]`
@@ -948,7 +948,7 @@ interface LoadPluginsOptions {
948
948
  * just logging a warning. Use in CI/strict deployments to enforce
949
949
  * manifest honesty. Default: false (log-only, backward-compatible).
950
950
  */
951
- enforceCapabilities?: boolean;
951
+ enforceCapabilities?: boolean | undefined;
952
952
  }
953
953
  declare function loadPlugins(plugins: Plugin[], opts: LoadPluginsOptions): Promise<{
954
954
  loaded: Plugin[];
@@ -1011,19 +1011,19 @@ interface EnhanceUserPromptOptions {
1011
1011
  * the conversation and can only refine self-contained prompts. Build with
1012
1012
  * `recentTextTurns(ctx.messages)`.
1013
1013
  */
1014
- history?: ConversationTurn[];
1014
+ history?: ConversationTurn[] | undefined;
1015
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;
1016
+ signal?: AbortSignal | undefined;
1017
+ /** Hard cap on how long to wait for the refiner before giving up. Default 90s. */
1018
+ timeoutMs?: number | undefined;
1019
1019
  /** Max tokens for the refined output. Default 2048. */
1020
- maxTokens?: number;
1020
+ maxTokens?: number | undefined;
1021
1021
  /**
1022
1022
  * Called with a short reason when refinement fails (provider error, timeout,
1023
1023
  * empty response). NOT called when the caller cancels via `signal`. Lets the
1024
1024
  * UI surface *why* a refine fell through instead of a generic message.
1025
1025
  */
1026
- onError?: (reason: string) => void;
1026
+ onError?: ((reason: string) => void) | undefined;
1027
1027
  }
1028
1028
  /**
1029
1029
  * Refine a raw user prompt. Returns the refined text, or `null` when the
@@ -1061,15 +1061,15 @@ interface PhaseNode {
1061
1061
  /** Tahmini süre (saat) */
1062
1062
  estimateHours: number;
1063
1063
  /** Gerçekleşen süre (ms) */
1064
- actualDurationMs?: number;
1064
+ actualDurationMs?: number | undefined;
1065
1065
  /** Başlangıç zamanı */
1066
- startedAt?: number;
1066
+ startedAt?: number | undefined;
1067
1067
  /** Bitiş zamanı */
1068
- completedAt?: number;
1068
+ completedAt?: number | undefined;
1069
1069
  /** Bu fazda atanmış agent'lar */
1070
1070
  assignedAgents: string[];
1071
1071
  /** Faz metadata */
1072
- metadata?: Record<string, unknown>;
1072
+ metadata?: Record<string, unknown> | undefined;
1073
1073
  createdAt: number;
1074
1074
  updatedAt: number;
1075
1075
  }
@@ -1093,8 +1093,8 @@ interface PhaseGraph {
1093
1093
  stopOnComplete: boolean;
1094
1094
  createdAt: number;
1095
1095
  updatedAt: number;
1096
- startedAt?: number;
1097
- completedAt?: number;
1096
+ startedAt?: number | undefined;
1097
+ completedAt?: number | undefined;
1098
1098
  }
1099
1099
  interface PhaseProgress {
1100
1100
  totalPhases: number;
@@ -1130,7 +1130,7 @@ interface PhaseEventMap {
1130
1130
  'phase.failed': {
1131
1131
  phaseId: string;
1132
1132
  name: string;
1133
- error?: string;
1133
+ error?: string | undefined;
1134
1134
  };
1135
1135
  'phase.taskCompleted': {
1136
1136
  phaseId: string;
@@ -1164,7 +1164,7 @@ interface PhaseEventMap {
1164
1164
  phaseId: string;
1165
1165
  name: string;
1166
1166
  attempt: number;
1167
- error?: string;
1167
+ error?: string | undefined;
1168
1168
  };
1169
1169
  'phase.repairing': {
1170
1170
  phaseId: string;
@@ -1209,8 +1209,8 @@ interface PhaseExecutionContext {
1209
1209
  * worktree'sine (varsa) işaret eder; agent'ı izole çalışma dizininde koştur.
1210
1210
  */
1211
1211
  executeTask: (task: TaskNode, phaseId: string, env?: {
1212
- cwd?: string;
1213
- branch?: string;
1212
+ cwd?: string | undefined;
1213
+ branch?: string | undefined;
1214
1214
  }) => Promise<unknown>;
1215
1215
  /**
1216
1216
  * Opsiyonel doğrulama kapısı. Bir fazın tüm görevleri bittikten *sonra*,
@@ -1222,11 +1222,11 @@ interface PhaseExecutionContext {
1222
1222
  * Tanımlanmazsa kapı atlanır (geriye dönük uyumlu — eski davranış).
1223
1223
  */
1224
1224
  verifyPhase?: (phase: PhaseNode, env?: {
1225
- cwd?: string;
1226
- branch?: string;
1225
+ cwd?: string | undefined;
1226
+ branch?: string | undefined;
1227
1227
  }) => Promise<{
1228
1228
  ok: boolean;
1229
- output?: string;
1229
+ output?: string | undefined;
1230
1230
  }>;
1231
1231
  /**
1232
1232
  * Opsiyonel onarım geçişi. `verifyPhase` başarısız olduğunda, yakalanan hata
@@ -1235,8 +1235,8 @@ interface PhaseExecutionContext {
1235
1235
  * yeniden koşar. `verifyPhase` tanımlı değilse hiç çağrılmaz.
1236
1236
  */
1237
1237
  repairPhase?: (phase: PhaseNode, failure: string, attempt: number, env?: {
1238
- cwd?: string;
1239
- branch?: string;
1238
+ cwd?: string | undefined;
1239
+ branch?: string | undefined;
1240
1240
  }) => Promise<void>;
1241
1241
  /**
1242
1242
  * Opsiyonel birleştirme-çakışması çözücü. Bir fazın worktree'si ana branch'e
@@ -1251,9 +1251,9 @@ interface PhaseExecutionContext {
1251
1251
  cwd: string;
1252
1252
  }) => Promise<boolean>;
1253
1253
  /** Opsiyonel global Brain arbiter: policy/karar/escalation katmanı. */
1254
- brain?: BrainArbiter;
1254
+ brain?: BrainArbiter | undefined;
1255
1255
  /** Bir faz tamamlandığında çağrılır */
1256
- onPhaseComplete?: (phase: PhaseNode) => void;
1256
+ onPhaseComplete?: ((phase: PhaseNode) => void) | undefined;
1257
1257
  /** Bir faz başarısız olduğunda çağrılır */
1258
1258
  onPhaseFail?: (phase: PhaseNode, error: Error) => void;
1259
1259
  /** Her tick'te çağrılır (otonom modda) */
@@ -1264,35 +1264,35 @@ interface PhaseExecutionContext {
1264
1264
  }
1265
1265
  interface AutoPhaseOptions {
1266
1266
  /** Maksimum parallel faz sayısı */
1267
- maxConcurrentPhases?: number;
1267
+ maxConcurrentPhases?: number | undefined;
1268
1268
  /** Maksimum parallel görev sayısı (faz içinde) */
1269
- maxConcurrentTasks?: number;
1269
+ maxConcurrentTasks?: number | undefined;
1270
1270
  /** Başarısız görev retry sayısı */
1271
- maxRetries?: number;
1271
+ maxRetries?: number | undefined;
1272
1272
  /**
1273
1273
  * Doğrulama kapısı başarısız olduğunda yapılacak maksimum onarım denemesi.
1274
1274
  * Toplam doğrulama koşusu = maxVerifyAttempts + 1 (ilk koşu + her onarım
1275
1275
  * sonrası yeniden koşu). Varsayılan 2. `verifyPhase` verilmezse etkisizdir.
1276
1276
  */
1277
- maxVerifyAttempts?: number;
1277
+ maxVerifyAttempts?: number | undefined;
1278
1278
  /** Otonom mod: faz tamamlandıkça otomatik sonrakine geç */
1279
- autonomous?: boolean;
1279
+ autonomous?: boolean | undefined;
1280
1280
  /** Fazlar arası bekleme süresi (ms) */
1281
- phaseDelayMs?: number;
1281
+ phaseDelayMs?: number | undefined;
1282
1282
  /** Bir faz failed olursa dur */
1283
- stopOnFailure?: boolean;
1283
+ stopOnFailure?: boolean | undefined;
1284
1284
  /** Event bus */
1285
- events?: EventBus;
1285
+ events?: EventBus | undefined;
1286
1286
  /**
1287
1287
  * Opsiyonel git-worktree yöneticisi. Verilirse her faz kendi
1288
1288
  * worktree+branch'inde izole çalışır ve tamamlanınca ana branch'e sıralı
1289
1289
  * squash-merge edilir. Yoksa davranış değişmez (paylaşılan working tree).
1290
1290
  */
1291
- worktrees?: WorktreeManager;
1291
+ worktrees?: WorktreeManager | undefined;
1292
1292
  }
1293
1293
  interface PhaseFilter {
1294
- status?: PhaseStatus[];
1295
- priority?: PhaseNode['priority'][];
1294
+ status?: PhaseStatus[] | undefined;
1295
+ priority?: PhaseNode['priority'][] | undefined;
1296
1296
  }
1297
1297
  interface PhaseSort {
1298
1298
  field: 'priority' | 'createdAt' | 'startedAt' | 'completedAt';
@@ -1311,28 +1311,28 @@ interface PhaseTemplate {
1311
1311
  type: TaskType;
1312
1312
  priority: TaskPriority;
1313
1313
  estimateHours: number;
1314
- tags?: string[];
1314
+ tags?: string[] | undefined;
1315
1315
  }>;
1316
1316
  }
1317
1317
 
1318
1318
  interface AutoPhaseRunnerOptions extends AutoPhaseOptions {
1319
1319
  /** Proje başlığı */
1320
1320
  title: string;
1321
- description?: string;
1321
+ description?: string | undefined;
1322
1322
  /** Faz şablonları */
1323
1323
  phases: PhaseTemplate[];
1324
1324
  /** Task çalıştırma fonksiyonu */
1325
1325
  executeTask: PhaseExecutionContext['executeTask'];
1326
1326
  /** Opsiyonel doğrulama kapısı */
1327
- verifyPhase?: PhaseExecutionContext['verifyPhase'];
1327
+ verifyPhase?: PhaseExecutionContext['verifyPhase'] | undefined;
1328
1328
  /** Doğrulama başarısız olduğunda opsiyonel onarım geçişi */
1329
- repairPhase?: PhaseExecutionContext['repairPhase'];
1329
+ repairPhase?: PhaseExecutionContext['repairPhase'] | undefined;
1330
1330
  /** Worktree merge çakışmaları için opsiyonel çözücü */
1331
- resolveConflict?: PhaseExecutionContext['resolveConflict'];
1331
+ resolveConflict?: PhaseExecutionContext['resolveConflict'] | undefined;
1332
1332
  /** Opsiyonel Brain arbiter */
1333
- brain?: PhaseExecutionContext['brain'];
1333
+ brain?: PhaseExecutionContext['brain'] | undefined;
1334
1334
  /** Faz tamamlandığında */
1335
- onPhaseComplete?: (phase: PhaseNode) => void;
1335
+ onPhaseComplete?: (((phase: PhaseNode) => void)) | undefined;
1336
1336
  /** Faz başarısız olduğunda */
1337
1337
  onPhaseFail?: (phase: PhaseNode, error: Error) => void;
1338
1338
  /** Her tick'te */
@@ -1341,9 +1341,9 @@ interface AutoPhaseRunnerOptions extends AutoPhaseOptions {
1341
1341
  readyPhases: PhaseNode[];
1342
1342
  }) => void;
1343
1343
  /** Progress değiştiğinde */
1344
- onProgress?: (progress: PhaseProgress) => void;
1344
+ onProgress?: (((progress: PhaseProgress) => void)) | undefined;
1345
1345
  /** Graph tamamlandığında */
1346
- onComplete?: (graph: PhaseGraph) => void;
1346
+ onComplete?: (((graph: PhaseGraph) => void)) | undefined;
1347
1347
  /** Graph başarısız olduğunda */
1348
1348
  onFail?: (graph: PhaseGraph, failedPhase: PhaseNode, error: Error) => void;
1349
1349
  }
@@ -1386,8 +1386,8 @@ declare class AutoPhaseRunner {
1386
1386
  * Quick-start helper: Var olan bir TaskGraph'tan AutoPhaseRunner oluştur.
1387
1387
  */
1388
1388
  declare function createAutoPhaseFromTaskGraph(taskGraph: TaskGraph, options: Omit<AutoPhaseRunnerOptions, 'phases' | 'title'> & {
1389
- title?: string;
1390
- tasksPerPhase?: number;
1389
+ title?: string | undefined;
1390
+ tasksPerPhase?: number | undefined;
1391
1391
  }): Promise<AutoPhaseRunner>;
1392
1392
 
1393
1393
  interface PhaseOrchestratorOptions extends AutoPhaseOptions {
@@ -1496,15 +1496,15 @@ declare class PhaseOrchestrator {
1496
1496
 
1497
1497
  interface PhaseGraphBuilderOptions {
1498
1498
  title: string;
1499
- description?: string;
1499
+ description?: string | undefined;
1500
1500
  /** Faz şablonları (sıralı) */
1501
1501
  phases: PhaseTemplate[];
1502
1502
  /** Otonom mod */
1503
- autonomous?: boolean;
1503
+ autonomous?: boolean | undefined;
1504
1504
  /** Başarısızlıkta dur */
1505
- stopOnFailure?: boolean;
1505
+ stopOnFailure?: boolean | undefined;
1506
1506
  /** Harici TaskStore (opsiyonel) */
1507
- externalTaskStore?: TaskStore;
1507
+ externalTaskStore?: TaskStore | undefined;
1508
1508
  }
1509
1509
  /**
1510
1510
  * PhaseGraphBuilder — Projeyi fazlara bölen ve her faz için task graph oluşturan builder.
@@ -1532,7 +1532,7 @@ declare class PhaseGraphBuilder {
1532
1532
  */
1533
1533
  static fromTaskGraph(taskGraph: TaskGraph, options: Omit<PhaseGraphBuilderOptions, 'phases'> & {
1534
1534
  /** Faz başına düşen task sayısı (default: 5) */
1535
- tasksPerPhase?: number;
1535
+ tasksPerPhase?: number | undefined;
1536
1536
  }): Promise<PhaseGraph>;
1537
1537
  }
1538
1538
 
@@ -1558,13 +1558,13 @@ interface AutoPhasePlannerOptions {
1558
1558
  /** Hedef/proje başlığı. */
1559
1559
  goal: string;
1560
1560
  /** package.json/dizin yapısı gibi opsiyonel proje bağlamı. */
1561
- projectContext?: string;
1561
+ projectContext?: string | undefined;
1562
1562
  /** İstenen minimum faz sayısı (default 3). */
1563
- minPhases?: number;
1563
+ minPhases?: number | undefined;
1564
1564
  /** İstenen maksimum faz sayısı (default 8). */
1565
- maxPhases?: number;
1565
+ maxPhases?: number | undefined;
1566
1566
  /** Faz başına hedeflenen todo sayısı (default 6). */
1567
- todosPerPhase?: number;
1567
+ todosPerPhase?: number | undefined;
1568
1568
  }
1569
1569
  interface AutoPhasePlanResult {
1570
1570
  /** PhaseGraphBuilder'a verilecek faz şablonları. */
@@ -1629,12 +1629,12 @@ interface Checkpoint {
1629
1629
  title: string;
1630
1630
  }>;
1631
1631
  timestamp: number;
1632
- label?: string;
1632
+ label?: string | undefined;
1633
1633
  }
1634
1634
  interface CheckpointManagerOptions {
1635
1635
  store: PhaseStore;
1636
- maxCheckpoints?: number;
1637
- baseDir?: string;
1636
+ maxCheckpoints?: number | undefined;
1637
+ baseDir?: string | undefined;
1638
1638
  }
1639
1639
  /**
1640
1640
  * CheckpointManager — Phase graph'ın anlık görüntülerini alır ve geri yükler.
@@ -1829,15 +1829,15 @@ interface CollabPauseMiddlewareOptions {
1829
1829
  * Defaults to 60_000 ms. Set to 0 for an unbounded wait (the
1830
1830
  * caller is then responsible for cancellation via the bus itself).
1831
1831
  */
1832
- defaultTimeoutMs?: number;
1832
+ defaultTimeoutMs?: number | undefined;
1833
1833
  /**
1834
1834
  * Optional logger — receives a debug line on pause entry and on
1835
1835
  * timeout-driven auto-resume. Matches the `Logger` token surface
1836
1836
  * so the runtime can pass its existing logger.
1837
1837
  */
1838
1838
  logger?: {
1839
- debug?: (msg: string) => void;
1840
- warn?: (msg: string) => void;
1839
+ debug?: ((msg: string) => void) | undefined;
1840
+ warn?: ((msg: string) => void) | undefined;
1841
1841
  };
1842
1842
  }
1843
1843
  declare function collabPauseMiddleware(bus: CollaborationBus, opts?: CollabPauseMiddlewareOptions): (payload: ToolCallPipelinePayload, next: () => Promise<void>) => Promise<void>;
@@ -1870,8 +1870,8 @@ declare function collabPauseMiddleware(bus: CollaborationBus, opts?: CollabPause
1870
1870
  */
1871
1871
  declare function collabInjectMiddleware(bus: CollaborationBus, opts?: {
1872
1872
  logger?: {
1873
- debug?: (msg: string) => void;
1874
- warn?: (msg: string) => void;
1873
+ debug?: ((msg: string) => void) | undefined;
1874
+ warn?: ((msg: string) => void) | undefined;
1875
1875
  };
1876
1876
  }): (payload: ToolCallPipelinePayload, next: () => Promise<void>) => Promise<void>;
1877
1877
 
@@ -1944,8 +1944,8 @@ interface ReplayProviderRunnerOptions {
1944
1944
  * upstream).
1945
1945
  */
1946
1946
  logger?: {
1947
- debug?: (msg: string) => void;
1948
- warn?: (msg: string) => void;
1947
+ debug?: ((msg: string) => void) | undefined;
1948
+ warn?: ((msg: string) => void) | undefined;
1949
1949
  };
1950
1950
  }
1951
1951
  declare class ReplayProviderRunner implements ProviderRunner {
@@ -1956,8 +1956,8 @@ declare class ReplayProviderRunner implements ProviderRunner {
1956
1956
  }
1957
1957
 
1958
1958
  interface PromptsPluginOptions {
1959
- store?: DefaultPromptStore;
1960
- paths?: WstackPaths;
1959
+ store?: DefaultPromptStore | undefined;
1960
+ paths?: WstackPaths | undefined;
1961
1961
  }
1962
1962
  /**
1963
1963
  * PromptsPlugin — built-in prompt library.
@@ -1969,8 +1969,8 @@ interface PromptsPluginOptions {
1969
1969
  declare function createPromptsPlugin(opts?: PromptsPluginOptions): Plugin;
1970
1970
 
1971
1971
  interface SyncPluginOptions {
1972
- paths?: WstackPaths;
1973
- configStore?: ConfigStore;
1972
+ paths?: WstackPaths | undefined;
1973
+ configStore?: ConfigStore | undefined;
1974
1974
  /** Secret vault for encrypting the GitHub token before persisting to disk. */
1975
1975
  vault?: {
1976
1976
  encrypt(plaintext: string): string;
@@ -1997,8 +1997,8 @@ declare function createSyncPlugin(opts?: SyncPluginOptions): Plugin;
1997
1997
  declare function createGitPlugin(): Plugin;
1998
1998
 
1999
1999
  interface ObservabilityPluginOptions {
2000
- metricsSink?: MetricsSink;
2001
- healthRegistry?: HealthRegistry;
2000
+ metricsSink?: MetricsSink | undefined;
2001
+ healthRegistry?: HealthRegistry | undefined;
2002
2002
  }
2003
2003
  /**
2004
2004
  * ObservabilityPlugin — runtime metrics + health checks.
@@ -2019,7 +2019,7 @@ declare function createObservabilityPlugin(opts?: ObservabilityPluginOptions): P
2019
2019
  declare function createSecurityPlugin(): Plugin;
2020
2020
 
2021
2021
  interface SkillsPluginOptions {
2022
- skillLoader?: SkillLoader;
2022
+ skillLoader?: SkillLoader | undefined;
2023
2023
  }
2024
2024
  /**
2025
2025
  * SkillsPlugin — skill library + installer.
@@ -2032,7 +2032,7 @@ interface SkillsPluginOptions {
2032
2032
  declare function createSkillsPlugin(opts?: SkillsPluginOptions): Plugin;
2033
2033
 
2034
2034
  interface PlanPluginOptions {
2035
- paths?: WstackPaths;
2035
+ paths?: WstackPaths | undefined;
2036
2036
  }
2037
2037
  /**
2038
2038
  * PlanPlugin — strategic plan board (`/plan`), the higher-level counterpart to