@wrongstack/core 0.5.3 → 0.5.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 (50) hide show
  1. package/dist/{agent-bridge-EiUFe3if.d.ts → agent-bridge-B07AYFBk.d.ts} +1 -1
  2. package/dist/{compactor-BP4xhKVi.d.ts → compactor-BWhJXxsW.d.ts} +1 -1
  3. package/dist/{config-BOD_HQBw.d.ts → config-BgM0BIpz.d.ts} +1 -1
  4. package/dist/{context-PH4DvBZV.d.ts → context-CLZXPPYk.d.ts} +18 -1
  5. package/dist/coordination/index.d.ts +10 -9
  6. package/dist/coordination/index.js +269 -15
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +20 -19
  9. package/dist/defaults/index.js +459 -17
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/director-state-BmYi3DGA.d.ts +108 -0
  12. package/dist/{events-oxn-Wkub.d.ts → events-qnDZbrtb.d.ts} +67 -2
  13. package/dist/execution/index.d.ts +12 -12
  14. package/dist/extension/index.d.ts +6 -6
  15. package/dist/{index-CcbWbcpy.d.ts → index-BDnUCRvL.d.ts} +113 -6
  16. package/dist/{index-a12jc7-r.d.ts → index-DPLJw_ZI.d.ts} +5 -5
  17. package/dist/index.d.ts +329 -27
  18. package/dist/index.js +2405 -27
  19. package/dist/index.js.map +1 -1
  20. package/dist/infrastructure/index.d.ts +6 -6
  21. package/dist/kernel/index.d.ts +9 -9
  22. package/dist/kernel/index.js +98 -1
  23. package/dist/kernel/index.js.map +1 -1
  24. package/dist/{mcp-servers-uPmBxZ1B.d.ts → mcp-servers-CSMfaBuL.d.ts} +3 -3
  25. package/dist/models/index.d.ts +2 -2
  26. package/dist/{multi-agent-D6S4Z7H8.d.ts → multi-agent-Cv8wk47i.d.ts} +2 -2
  27. package/dist/observability/index.d.ts +2 -2
  28. package/dist/{path-resolver-CprD5DhS.d.ts → path-resolver-DiCUvEg6.d.ts} +2 -2
  29. package/dist/{director-state-CVzkjKRZ.d.ts → plan-templates-DaxTCPfk.d.ts} +38 -77
  30. package/dist/{provider-runner-DGisz_lG.d.ts → provider-runner-3SHqk9zB.d.ts} +3 -3
  31. package/dist/{retry-policy-DUJ8-Qc_.d.ts → retry-policy-LLUxJmYY.d.ts} +1 -1
  32. package/dist/sdd/index.d.ts +3 -3
  33. package/dist/{secret-scrubber-CB11A2P7.d.ts → secret-scrubber-BhJTNr9v.d.ts} +4 -2
  34. package/dist/{secret-scrubber-EqFa0SyI.d.ts → secret-scrubber-Z_VXuXQT.d.ts} +1 -1
  35. package/dist/security/index.d.ts +13 -3
  36. package/dist/security/index.js +34 -1
  37. package/dist/security/index.js.map +1 -1
  38. package/dist/{selector-yqyxt-Ii.d.ts → selector-DB2-byKH.d.ts} +1 -1
  39. package/dist/{session-reader-1tOyoY1s.d.ts → session-reader-4jxsYLZ8.d.ts} +1 -1
  40. package/dist/storage/index.d.ts +7 -6
  41. package/dist/storage/index.js +222 -3
  42. package/dist/storage/index.js.map +1 -1
  43. package/dist/{system-prompt-BJlzKGO6.d.ts → system-prompt-DI4Dtc1I.d.ts} +1 -1
  44. package/dist/{tool-executor-B6kRcWeF.d.ts → tool-executor-DSvmOBe6.d.ts} +4 -4
  45. package/dist/types/index.d.ts +15 -15
  46. package/dist/types/index.js +9 -1
  47. package/dist/types/index.js.map +1 -1
  48. package/dist/utils/index.d.ts +2 -2
  49. package/dist/{wstack-paths-BGu2INTm.d.ts → wstack-paths-86YPFktR.d.ts} +1 -1
  50. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,58 +1,360 @@
1
- import { S as SystemPromptBuilder, M as ModelCapabilities, B as BuildContext, C as Container } from './system-prompt-BJlzKGO6.js';
2
- export { a as BindOptions, D as Decorator, F as Factory, b as Middleware, c as MiddlewareHandler, N as NextFn, P as Pipeline, d as PipelineOptions, R as Renderer, T as Token } from './system-prompt-BJlzKGO6.js';
3
- import { E as EventBus, a as EventName, L as Listener } from './events-oxn-Wkub.js';
4
- export { b as EventLogger, c as EventMap } from './events-oxn-Wkub.js';
1
+ import { S as SystemPromptBuilder, M as ModelCapabilities, B as BuildContext, C as Container } from './system-prompt-DI4Dtc1I.js';
2
+ export { a as BindOptions, D as Decorator, F as Factory, b as Middleware, c as MiddlewareHandler, N as NextFn, P as Pipeline, d as PipelineOptions, R as Renderer, T as Token } from './system-prompt-DI4Dtc1I.js';
3
+ import { E as EventBus, a as EventName, L as Listener } from './events-qnDZbrtb.js';
4
+ export { b as EventLogger, c as EventMap, S as ScopedEventBus } from './events-qnDZbrtb.js';
5
5
  export { RunController, RunControllerOptions, TOKENS } from './kernel/index.js';
6
- import { b as ContentBlock, T as TextBlock, a1 as Context } from './context-PH4DvBZV.js';
7
- export { A as AgentError, C as Capabilities, a as ConfigError, a4 as ContextInit, a5 as ConversationState, E as ErrorCode, c as ErrorSeverity, d as ErrorSubsystem, F as FileSnapshot, I as ImageBlock, J as JSONSchema, M as Message, e as MessageRole, P as Permission, f as PluginError, g as Provider, h as ProviderError, i as ProviderErrorBody, a6 as ReadonlyConversationState, R as Request, j as Response, k as ResumedSession, a7 as RunEnv, a8 as RunOptions, S as SessionData, l as SessionError, m as SessionEvent, n as SessionMetadata, o as SessionStore, p as SessionSummary, q as SessionWriter, a9 as StateChange, aa as StateChangeHandler, r as StopReason, s as StreamEvent, t as ThinkingBlock, ab as TodoItem, a2 as TokenCounter, u as Tool, v as ToolCallContext, w as ToolError, x as ToolFinalEvent, y as ToolProgressEvent, z as ToolResultBlock, B as ToolStreamEvent, D as ToolUseBlock, U as Usage, W as WrongStackError, G as asBlocks, H as asText, ac as extractRunEnv, K as isAgentError, L as isConfigError, N as isImageBlock, O as isPluginError, Q as isSessionError, V as isTextBlock, X as isThinkingBlock, Y as isToolError, Z as isToolResultBlock, _ as isToolUseBlock, $ as isWrongStackError, a0 as toWrongStackError, ad as wrapAsState } from './context-PH4DvBZV.js';
8
- export { P as ProviderRunner, R as RunProviderOptions } from './provider-runner-DGisz_lG.js';
9
- import { a as Config } from './config-BOD_HQBw.js';
10
- export { C as CONTEXT_WINDOW_MODES, b as ConfigLoader, c as ConfigStore, d as ContextConfig, e as ContextWindowAggressiveOn, f as ContextWindowConfigLike, g as ContextWindowMode, h as ContextWindowModeId, i as ContextWindowPolicy, j as ContextWindowThresholds, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, L as LogConfig, M as MCPServerConfig, P as PluginConfig, k as ProviderApiKey, l as ProviderConfig, T as ToolsConfig, m as formatContextWindowModeList, n as getContextWindowMode, o as isContextWindowModeId, p as listContextWindowModes, r as resolveContextWindowPolicy } from './config-BOD_HQBw.js';
11
- export { C as CompactReport, a as Compactor } from './compactor-BP4xhKVi.js';
12
- export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './secret-scrubber-CB11A2P7.js';
6
+ import { a2 as Context, g as Provider, b as ContentBlock, T as TextBlock } from './context-CLZXPPYk.js';
7
+ export { A as AgentError, C as Capabilities, a as ConfigError, a7 as ContextInit, a6 as ConversationState, E as ErrorCode, c as ErrorSeverity, d as ErrorSubsystem, F as FileSnapshot, I as ImageBlock, J as JSONSchema, M as Message, e as MessageRole, P as Permission, f as PluginError, h as ProviderError, i as ProviderErrorBody, a8 as ReadonlyConversationState, R as Request, j as Response, k as ResumedSession, l as RiskTier, a9 as RunEnv, aa as RunOptions, S as SessionData, m as SessionError, n as SessionEvent, o as SessionMetadata, p as SessionStore, q as SessionSummary, r as SessionWriter, ab as StateChange, ac as StateChangeHandler, s as StopReason, t as StreamEvent, u as ThinkingBlock, a5 as TodoItem, a3 as TokenCounter, v as Tool, w as ToolCallContext, x as ToolError, y as ToolFinalEvent, z as ToolProgressEvent, B as ToolResultBlock, D as ToolStreamEvent, G as ToolUseBlock, U as Usage, W as WrongStackError, H as asBlocks, K as asText, ad as extractRunEnv, L as isAgentError, N as isConfigError, O as isImageBlock, Q as isPluginError, V as isSessionError, X as isTextBlock, Y as isThinkingBlock, Z as isToolError, _ as isToolResultBlock, $ as isToolUseBlock, a0 as isWrongStackError, a1 as toWrongStackError, ae as wrapAsState } from './context-CLZXPPYk.js';
8
+ export { P as ProviderRunner, R as RunProviderOptions } from './provider-runner-3SHqk9zB.js';
9
+ import { a as Config } from './config-BgM0BIpz.js';
10
+ export { C as CONTEXT_WINDOW_MODES, b as ConfigLoader, c as ConfigStore, d as ContextConfig, e as ContextWindowAggressiveOn, f as ContextWindowConfigLike, g as ContextWindowMode, h as ContextWindowModeId, i as ContextWindowPolicy, j as ContextWindowThresholds, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, L as LogConfig, M as MCPServerConfig, P as PluginConfig, k as ProviderApiKey, l as ProviderConfig, T as ToolsConfig, m as formatContextWindowModeList, n as getContextWindowMode, o as isContextWindowModeId, p as listContextWindowModes, r as resolveContextWindowPolicy } from './config-BgM0BIpz.js';
11
+ export { C as CompactReport, a as Compactor } from './compactor-BWhJXxsW.js';
12
+ export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './secret-scrubber-BhJTNr9v.js';
13
13
  export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from './session-rewinder-C9HnMkhP.js';
14
- import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-1tOyoY1s.js';
15
- export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader } from './session-reader-1tOyoY1s.js';
16
- export { D as DefaultSecretScrubber, a as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-scrubber-EqFa0SyI.js';
14
+ import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-4jxsYLZ8.js';
15
+ export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader } from './session-reader-4jxsYLZ8.js';
16
+ export { D as DefaultSecretScrubber, a as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-scrubber-Z_VXuXQT.js';
17
17
  export { D as DefaultLogger, a as DefaultLoggerOptions } from './logger-BH6AE0W9.js';
18
- export { D as DefaultPathResolver, a as DefaultTokenCounter } from './path-resolver-CprD5DhS.js';
18
+ export { D as DefaultPathResolver, a as DefaultTokenCounter } from './path-resolver-DiCUvEg6.js';
19
19
  import { b as MemoryStore } from './memory-CEXuo7sz.js';
20
20
  export { M as MemoryEntry, a as MemoryScope } from './memory-CEXuo7sz.js';
21
- export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, c as buildRecoveryStrategies } from './tool-executor-B6kRcWeF.js';
21
+ export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, c as buildRecoveryStrategies } from './tool-executor-DSvmOBe6.js';
22
22
  import { a as SkillLoader } from './skill-CxuWrsKK.js';
23
23
  export { S as SkillEntry, b as SkillManifest } from './skill-CxuWrsKK.js';
24
24
  export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
25
- import { j as SystemPromptContributor, h as SlashCommand, b as PluginAPI, e as PluginPipelines, T as ToolRegistryView, g as ProviderRegistryView, M as MCPRegistryView, i as SlashCommandRegistryView, E as ExtensionRegistry, S as SessionWriterView, a as MetricsSinkView, n as ToolRegistry, o as ProviderRegistry, P as Plugin } from './index-a12jc7-r.js';
26
- export { A as AfterIterationHook, p as AfterRunHook, q as AfterToolExecutionHook, r as Agent, s as AgentExtension, t as AgentInit, u as AgentInput, v as AgentPipelines, B as BeforeIterationHook, w as BeforeRunHook, x as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, O as OnErrorHook, c as PluginCapabilities, d as PluginDependency, y as ProviderFactory, z as ProviderRunnerWrapper, R as RunResult, C as ToolWrapper, U as UserInputPayload, F as createDefaultPipelines } from './index-a12jc7-r.js';
25
+ import { h as SlashCommand, j as SystemPromptContributor, b as PluginAPI, e as PluginPipelines, T as ToolRegistryView, g as ProviderRegistryView, M as MCPRegistryView, i as SlashCommandRegistryView, E as ExtensionRegistry, S as SessionWriterView, a as MetricsSinkView, n as ToolRegistry, o as ProviderRegistry, P as Plugin } from './index-DPLJw_ZI.js';
26
+ export { A as AfterIterationHook, p as AfterRunHook, q as AfterToolExecutionHook, r as Agent, s as AgentExtension, t as AgentInit, u as AgentInput, v as AgentPipelines, B as BeforeIterationHook, w as BeforeRunHook, x as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, O as OnErrorHook, c as PluginCapabilities, d as PluginDependency, y as ProviderFactory, z as ProviderRunnerWrapper, R as RunResult, C as ToolWrapper, U as UserInputPayload, F as createDefaultPipelines } from './index-DPLJw_ZI.js';
27
27
  export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-DqzwpBQy.js';
28
28
  import { c as ModeStore } from './mode-CV077NjV.js';
29
29
  export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-CV077NjV.js';
30
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-EiUFe3if.js';
31
- export { n as BudgetExceededError, o as BudgetKind, p as BudgetLimits, q as BudgetUsage, C as CoordinatorEvents, a as CoordinatorStatus, D as DoneCondition, M as MultiAgentConfig, b as MultiAgentCoordinator, S as SpawnResult, r as SubagentBudget, c as SubagentConfig, d as SubagentContext, e as SubagentError, f as SubagentErrorKind, g as SubagentRunContext, h as SubagentRunOutcome, i as SubagentRunner, T as TaskDelegation, j as TaskResult, k as TaskSpec } from './multi-agent-D6S4Z7H8.js';
30
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-B07AYFBk.js';
31
+ export { n as BudgetExceededError, o as BudgetKind, p as BudgetLimits, q as BudgetUsage, C as CoordinatorEvents, a as CoordinatorStatus, D as DoneCondition, M as MultiAgentConfig, b as MultiAgentCoordinator, S as SpawnResult, r as SubagentBudget, c as SubagentConfig, d as SubagentContext, e as SubagentError, f as SubagentErrorKind, g as SubagentRunContext, h as SubagentRunOutcome, i as SubagentRunner, T as TaskDelegation, j as TaskResult, k as TaskSpec } from './multi-agent-Cv8wk47i.js';
32
32
  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, l as TaskGraph, m as TaskNode, n as TaskPriority, o as TaskProgress, p as TaskSort, q as TaskStatus, r as TaskType, s as computeTaskProgress, t as findCriticalPath, u as topologicalSort } from './task-graph-BITvWt4t.js';
33
33
  export { A as AggregateHealth, H as HealthCheck, a as HealthCheckResult, b as HealthRegistry, c as HealthStatus, M as MetricLabels, d as MetricSeries, e as MetricsSink, f as MetricsSnapshot, S as Span, T as Tracer } from './observability-BhnVLBLS.js';
34
34
  export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, MessageRepairReport, MessageRepairResult, NewlineStyle, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, formatTodosList, matchAny, matchGlob, normalizeToLf, repairToolUseAdjacency, safeParse, safeStringify, sanitizeJsonString, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema } from './utils/index.js';
35
- export { W as WstackPathOptions, a as WstackPaths, p as projectHash, r as resolveWstackPaths } from './wstack-paths-BGu2INTm.js';
36
- 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, j as DirectorStateCheckpoint, k as DirectorStateSnapshot, l as DirectorSubagentState, m as DirectorTaskState, M as MemoryStoreOptions, n as MigrationContext, o as MigrationResult, P as PersistedQueueItem, p as PlanFile, q as PlanItem, Q as QueueStore, R as RecoveryLock, r as RecoveryLockOptions, S as SessionAnalyzer, s as SessionStoreOptions, T as TodosCheckpointFile, t as addPlanItem, u as attachPlanCheckpoint, v as attachTodosCheckpoint, w as clearPlan, x as emptyPlan, y as formatPlan, z as loadDirectorState, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from './director-state-CVzkjKRZ.js';
35
+ export { a as WstackPathOptions, W as WstackPaths, p as projectHash, r as resolveWstackPaths } from './wstack-paths-86YPFktR.js';
36
+ 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-DaxTCPfk.js';
37
+ export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BmYi3DGA.js';
37
38
  export { AutoApprovePermissionPolicy, DefaultPermissionPolicy, PermissionPolicyOptions } from './security/index.js';
38
39
  export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, IntelligentCompactor, IntelligentCompactorOptions, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions } from './execution/index.js';
39
40
  export { DefaultProviderRunner } from './defaults/index.js';
40
- export { A as ALL_FLEET_AGENTS, a as AUDIT_LOG_AGENT, b as AgentFactory, c as AgentFactoryResult, d as AgentRunnerOptions, B as BUG_HUNTER_AGENT, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, e as DEFAULT_SUBAGENT_BASELINE, f as DefaultMultiAgentCoordinator, g as DelegateHost, h as Director, i as DirectorBudgetError, j as DirectorPromptParts, k as DirectorSessionFactory, l as DirectorSessionFactoryOptions, F as FLEET_ROSTER, m as FLEET_ROSTER_BUDGETS, n as FleetBus, o as FleetEvent, p as FleetHandler, q as FleetUsage, r as FleetUsageAggregator, M as MultiAgentCoordinatorOptions, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, s as SubagentPromptParts, t as SubagentUsageSnapshot, u as applyRosterBudget, v as composeDirectorPrompt, w as composeSubagentPrompt, x as createDelegateTool, y as makeAgentSubagentRunner, z as makeDirectorSessionFactory, E as rosterSummaryFromConfigs } from './index-CcbWbcpy.js';
41
+ export { A as ALL_FLEET_AGENTS, a as AUDIT_LOG_AGENT, b as AgentFactory, c as AgentFactoryResult, d as AgentRunnerOptions, B as BUG_HUNTER_AGENT, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, e as DEFAULT_SUBAGENT_BASELINE, f as DefaultMultiAgentCoordinator, g as DelegateHost, h as Director, i as DirectorBudgetError, j as DirectorPromptParts, k as DirectorSessionFactory, l as DirectorSessionFactoryOptions, F as FLEET_ROSTER, m as FLEET_ROSTER_BUDGETS, n as FleetBus, o as FleetEvent, p as FleetHandler, q as FleetUsage, r as FleetUsageAggregator, M as MultiAgentCoordinatorOptions, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, s as SubagentPromptParts, t as SubagentUsageSnapshot, u as applyRosterBudget, v as composeDirectorPrompt, w as composeSubagentPrompt, x as createDelegateTool, y as makeAgentSubagentRunner, z as makeDirectorSessionFactory, E as rosterSummaryFromConfigs } from './index-BDnUCRvL.js';
41
42
  export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from './models/index.js';
42
43
  export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CollectedAnswer, CriticalPathAnalysis, DefaultTaskStore, ExecutionSummary, GeneratedTask, SPEC_TEMPLATES, SpecDiff, SpecDrivenDev, SpecDrivenDevOptions, SpecIndexEntry, SpecParser, SpecStore, SpecStoreOptions, SpecVersion, SpecVersioning, TaskExecutionContext, TaskExecutionResult, TaskFlow, TaskFlowEventMap, TaskFlowEventName, TaskFlowExecutionContext, TaskFlowOptions, TaskFlowPhase, TaskGenerator, TaskGeneratorOptions, TaskGraphIndexEntry, TaskGraphStore, TaskGraphStoreOptions, TaskStore, TaskTracker, TaskTrackerOptions, TaskTransition, analyzeCriticalPath, createAutoExecutor, getTemplate, listTemplates, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, templateToMarkdown } from './sdd/index.js';
43
44
  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';
44
- 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-uPmBxZ1B.js';
45
+ 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-CSMfaBuL.js';
45
46
  export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
46
47
  export { DefaultSessionRewinder, SessionRewinderOptions } from './storage/index.js';
48
+ import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-LLUxJmYY.js';
47
49
  import { L as Logger } from './logger-BMQgxvdy.js';
48
50
  export { a as LogLevel } from './logger-BMQgxvdy.js';
49
51
  export { a as ModelsDevPayload, c as ModelsDevProvider, M as ModelsRegistry, b as ResolvedModel, R as ResolvedProvider, W as WireFamily } from './models-registry-Y2xbog0E.js';
50
52
  export { S as SecretVault } from './secret-vault-DoISxaKO.js';
51
- import './retry-policy-DUJ8-Qc_.js';
52
53
  import './path-resolver-CPRj4bFY.js';
53
- import './selector-yqyxt-Ii.js';
54
+ import './selector-DB2-byKH.js';
54
55
  import 'node:events';
55
56
 
57
+ /**
58
+ * Skill content structure for generated security skills.
59
+ */
60
+ interface GeneratedSkillContent {
61
+ type: 'skill';
62
+ content: string;
63
+ }
64
+ type TechStack = 'nodejs' | 'python' | 'rust' | 'go' | 'java' | 'dotnet' | 'php' | 'ruby' | 'cpp' | 'c' | 'kotlin' | 'swift' | 'unknown';
65
+ type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' | 'pip' | 'poetry' | 'cargo' | 'maven' | 'gradle' | 'nuget' | 'composer' | 'bundler' | 'cmake' | 'swiftpm' | 'go' | 'unknown';
66
+ interface DetectedDependency {
67
+ name: string;
68
+ version: string;
69
+ isDev: boolean;
70
+ hasSecurityIssue?: boolean;
71
+ }
72
+ interface TechStackInfo {
73
+ stack: TechStack;
74
+ packageManager: PackageManager;
75
+ manifestFile: string;
76
+ dependencies: DetectedDependency[];
77
+ projectPath: string;
78
+ }
79
+ interface DetectionResult {
80
+ timestamp: string;
81
+ projectRoot: string;
82
+ detectedStacks: TechStackInfo[];
83
+ isMonorepo: boolean;
84
+ workspaceConfigs?: string[];
85
+ }
86
+ interface SkillGenerationContext {
87
+ techStack: TechStackInfo;
88
+ scanScope: ScanScope;
89
+ severityLevel: SeverityLevel;
90
+ }
91
+ type ScanScope = 'quick' | 'standard' | 'deep';
92
+ type SeverityLevel = 'critical' | 'high' | 'medium' | 'low' | 'all';
93
+ interface SecurityPattern {
94
+ id: string;
95
+ name: string;
96
+ severity: SeverityLevel;
97
+ description: string;
98
+ patterns: RegExp[];
99
+ fileExtensions: string[];
100
+ falsePositiveMarkers: string[];
101
+ remediation: string;
102
+ }
103
+ interface GeneratedSecuritySkill {
104
+ name: string;
105
+ description: string;
106
+ techStack: TechStack;
107
+ patterns: SecurityPattern[];
108
+ rules: string[];
109
+ metadata: {
110
+ generatedAt: string;
111
+ version: string;
112
+ confidence: number;
113
+ };
114
+ content: GeneratedSkillContent;
115
+ }
116
+
117
+ declare class TechStackDetector {
118
+ private cachedResults;
119
+ detect(projectRoot: string): Promise<DetectionResult>;
120
+ private matchSignature;
121
+ private findMatchingManifest;
122
+ private detectMonorepo;
123
+ private findWorkspaceConfigs;
124
+ clearCache(): void;
125
+ }
126
+ declare const defaultTechStackDetector: TechStackDetector;
127
+
128
+ interface GeneratedSkill {
129
+ name: string;
130
+ description: string;
131
+ version: string;
132
+ techStack: TechStack;
133
+ content: GeneratedSkillContent;
134
+ patterns: SecurityPattern[];
135
+ metadata: {
136
+ generatedAt: string;
137
+ confidence: number;
138
+ targetFiles: string[];
139
+ };
140
+ }
141
+ interface SkillGeneratorOptions {
142
+ includeSecrets: boolean;
143
+ includeInjection: boolean;
144
+ includeConfig: boolean;
145
+ includeDependencies: boolean;
146
+ severityThreshold: 'critical' | 'high' | 'medium' | 'low';
147
+ }
148
+ /**
149
+ * Generates security skills dynamically based on tech stack.
150
+ * Uses predefined vulnerability patterns per stack.
151
+ */
152
+ declare class SkillGenerator {
153
+ private options;
154
+ constructor(options?: Partial<SkillGeneratorOptions>);
155
+ generate(techStack: TechStackInfo): GeneratedSkill;
156
+ private getPatternsForStack;
157
+ private getSecretPatterns;
158
+ private getInjectionPatterns;
159
+ private getConfigPatterns;
160
+ private getTargetFilesForStack;
161
+ private buildSkillContent;
162
+ private calculateConfidence;
163
+ }
164
+ declare const defaultSkillGenerator: SkillGenerator;
165
+
166
+ interface Finding {
167
+ id: string;
168
+ severity: 'critical' | 'high' | 'medium' | 'low';
169
+ category: 'secrets' | 'injection' | 'config' | 'dependency' | 'filesystem';
170
+ title: string;
171
+ description: string;
172
+ file: string;
173
+ line?: number;
174
+ snippet?: string;
175
+ remediation: string;
176
+ patternId: string;
177
+ confidence: 'high' | 'medium' | 'low';
178
+ }
179
+ interface ScanResult {
180
+ timestamp: string;
181
+ projectRoot: string;
182
+ techStack: TechStackInfo;
183
+ findings: Finding[];
184
+ summary: {
185
+ critical: number;
186
+ high: number;
187
+ medium: number;
188
+ low: number;
189
+ total: number;
190
+ };
191
+ scannedFiles: number;
192
+ scanDurationMs: number;
193
+ errors: string[];
194
+ }
195
+ interface ScanOptions {
196
+ includeSecrets: boolean;
197
+ includeInjection: boolean;
198
+ includeConfig: boolean;
199
+ includeDependencies: boolean;
200
+ excludePaths: string[];
201
+ fileExtensions: string[];
202
+ depth: 'quick' | 'standard' | 'deep';
203
+ }
204
+ declare class SecurityScanner {
205
+ private options;
206
+ constructor(options?: Partial<ScanOptions>);
207
+ scan(projectRoot: string, skill: GeneratedSkill, techStack: TechStackInfo): Promise<ScanResult>;
208
+ private gatherFiles;
209
+ private gatherFilesRecursive;
210
+ private shouldExclude;
211
+ private getTargetExtensions;
212
+ private scanFile;
213
+ private matchesCategory;
214
+ private getCategoryFromPattern;
215
+ private isFalsePositive;
216
+ private calculateSummary;
217
+ }
218
+ declare const defaultSecurityScanner: SecurityScanner;
219
+
220
+ interface ReportOptions {
221
+ outputDir: string;
222
+ format: 'markdown' | 'json' | 'html';
223
+ includeRemediation: boolean;
224
+ groupBySeverity: boolean;
225
+ maxFindingsPerCategory?: number;
226
+ }
227
+ declare class ReportGenerator {
228
+ private options;
229
+ constructor(options?: Partial<ReportOptions>);
230
+ generate(scanResult: ScanResult): Promise<string>;
231
+ private ensureOutputDir;
232
+ private generateMarkdown;
233
+ private formatFinding;
234
+ private groupBySeverity;
235
+ private groupByCategory;
236
+ private generateJson;
237
+ private generateHtml;
238
+ }
239
+ declare const defaultReportGenerator: ReportGenerator;
240
+
241
+ interface GitignoreUpdaterOptions {
242
+ gitignorePath: string;
243
+ entries: string[];
244
+ }
245
+ declare class GitignoreUpdater {
246
+ private options;
247
+ constructor(options?: Partial<GitignoreUpdaterOptions>);
248
+ update(): Promise<{
249
+ added: string[];
250
+ existing: string[];
251
+ errors: string[];
252
+ }>;
253
+ isEntryIgnored(entry: string): Promise<boolean>;
254
+ }
255
+ declare const defaultGitignoreUpdater: GitignoreUpdater;
256
+
257
+ interface SecurityScannerOptions {
258
+ projectRoot: string;
259
+ scanOptions?: {
260
+ depth?: 'quick' | 'standard' | 'deep';
261
+ includeSecrets?: boolean;
262
+ includeInjection?: boolean;
263
+ includeConfig?: boolean;
264
+ };
265
+ reportOptions?: Partial<ReportOptions>;
266
+ skipGitignore?: boolean;
267
+ /** Optional model name to pass to the LLM provider (defaults to the provider's default). */
268
+ model?: string;
269
+ }
270
+ /** Accepts a full Context or just the provider+model needed for LLM calls. */
271
+ type SecurityScannerContext = Context | {
272
+ provider: Provider;
273
+ model?: string;
274
+ };
275
+ interface FullScanResult {
276
+ detectionResult: Awaited<ReturnType<typeof defaultTechStackDetector.detect>>;
277
+ generatedSkill: GeneratedSkill;
278
+ scanResult: ScanResult;
279
+ reportPath: string;
280
+ synthesizedReport?: string;
281
+ gitignoreResult?: Awaited<ReturnType<typeof defaultGitignoreUpdater.update>>;
282
+ }
283
+ /**
284
+ * LLM-powered Security Scanner Orchestrator
285
+ *
286
+ * Flow:
287
+ * 1. Detect tech stack (static)
288
+ * 2. Generate project-specific security skill via LLM
289
+ * 3. Scan code using LLM with generated skill as context
290
+ * 4. Synthesize findings into structured report via LLM
291
+ */
292
+ declare class SecurityScannerOrchestrator {
293
+ private readonly retryPolicy?;
294
+ private readonly errorHandler?;
295
+ private detector;
296
+ private reportGenerator;
297
+ private gitignoreUpdater;
298
+ constructor(retryPolicy?: RetryPolicy | undefined, errorHandler?: ErrorHandler | undefined);
299
+ /**
300
+ * Wraps provider.complete with retry logic using the injected RetryPolicy.
301
+ */
302
+ private completeWithRetry;
303
+ /**
304
+ * Run full security scan with LLM assistance.
305
+ * Accepts a full Context (active agent run) or just provider+model (pre-agent session).
306
+ */
307
+ run(ctx: SecurityScannerContext, options: SecurityScannerOptions): Promise<FullScanResult>;
308
+ /**
309
+ * Generate a project-specific security skill using LLM.
310
+ * The LLM analyzes the project structure and creates tailored security patterns.
311
+ */
312
+ private generateSkillLLM;
313
+ /**
314
+ * Scan code using LLM with the generated skill as context.
315
+ * The LLM analyzes files and reports security findings.
316
+ */
317
+ private scanWithLLM;
318
+ /**
319
+ * Scan a batch of files using LLM.
320
+ */
321
+ private scanFileBatchLLM;
322
+ /**
323
+ * Synthesize a comprehensive security report using LLM.
324
+ */
325
+ private synthesizeReportLLM;
326
+ /**
327
+ * Generate a basic fallback report when LLM synthesis fails.
328
+ */
329
+ private generateBasicReport;
330
+ /**
331
+ * Write synthesized report to file.
332
+ */
333
+ private writeReport;
334
+ /**
335
+ * Gather project info for skill generation.
336
+ */
337
+ private gatherProjectInfo;
338
+ /**
339
+ * Gather files to scan based on patterns.
340
+ */
341
+ private gatherFiles;
342
+ private gatherFilesRecursive;
343
+ /**
344
+ * Generate fallback skill when LLM fails.
345
+ */
346
+ private generateFallbackSkill;
347
+ /**
348
+ * Quick scan - legacy compatibility.
349
+ * NOTE: This won't use LLM as it doesn't have access to ctx.
350
+ */
351
+ quickScan(projectRoot: string): Promise<ScanResult>;
352
+ }
353
+ declare const defaultOrchestrator: SecurityScannerOrchestrator;
354
+
355
+ declare function createSecuritySlashCommand(): SlashCommand;
356
+ declare const securitySlashCommand: SlashCommand;
357
+
56
358
  interface InputBuilderOptions {
57
359
  store: AttachmentStore;
58
360
  /**
@@ -340,4 +642,4 @@ declare function loadPlugins(plugins: Plugin[], opts: LoadPluginsOptions): Promi
340
642
  */
341
643
  declare function unloadPlugins(loadedPlugins: Plugin[], opts: LoadPluginsOptions): Promise<void>;
342
644
 
343
- export { AddAttachmentInput, AttachmentRef, AttachmentStore, BuildContext, Config, Container, ContentBlock, Context, DefaultPluginAPI, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, EventBus, EventName, ExtensionRegistry, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MCPRegistryView, MemoryStore, MetricsSinkView, ModeStore, ModelCapabilities, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, ProviderRegistry, ProviderRegistryView, SessionWriterView, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TextBlock, ToolRegistry, ToolRegistryView, loadPlugins, unloadPlugins };
645
+ export { AddAttachmentInput, AttachmentRef, AttachmentStore, BuildContext, Config, Container, ContentBlock, Context, DefaultPluginAPI, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MCPRegistryView, MemoryStore, MetricsSinkView, ModeStore, ModelCapabilities, type PackageManager, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ReportGenerator, type ReportOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, ToolRegistry, ToolRegistryView, createSecuritySlashCommand, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, loadPlugins, securitySlashCommand, unloadPlugins };