@wrongstack/core 0.5.0 → 0.5.2

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 (44) hide show
  1. package/dist/{agent-bridge-BkjOkSkD.d.ts → agent-bridge-EiUFe3if.d.ts} +1 -1
  2. package/dist/{compactor-CTHjZAwf.d.ts → compactor-BP4xhKVi.d.ts} +1 -1
  3. package/dist/{config-DO2eCKgq.d.ts → config-BOD_HQBw.d.ts} +1 -1
  4. package/dist/{context-P207fTpo.d.ts → context-PH4DvBZV.d.ts} +49 -1
  5. package/dist/coordination/index.d.ts +9 -9
  6. package/dist/coordination/index.js +93 -2
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +18 -18
  9. package/dist/defaults/index.js +93 -2
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/director-state-CVzkjKRZ.d.ts +539 -0
  12. package/dist/{events-DYAbU84e.d.ts → events-oxn-Wkub.d.ts} +18 -1
  13. package/dist/execution/index.d.ts +11 -11
  14. package/dist/extension/index.d.ts +6 -6
  15. package/dist/{index-BHL8QDCL.d.ts → index-CcbWbcpy.d.ts} +5 -5
  16. package/dist/{index-BNzUUDVR.d.ts → index-a12jc7-r.d.ts} +5 -5
  17. package/dist/index.d.ts +27 -25
  18. package/dist/index.js +266 -23
  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.map +1 -1
  23. package/dist/{mcp-servers-CLkhKdnF.d.ts → mcp-servers-uPmBxZ1B.d.ts} +3 -3
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/{multi-agent-B1Nn9eC0.d.ts → multi-agent-D6S4Z7H8.d.ts} +2 -2
  26. package/dist/observability/index.d.ts +2 -2
  27. package/dist/{path-resolver-mPccVA0l.d.ts → path-resolver-CprD5DhS.d.ts} +2 -2
  28. package/dist/{provider-runner-D7lHu07L.d.ts → provider-runner-DGisz_lG.d.ts} +3 -3
  29. package/dist/{retry-policy-CnYVKGPv.d.ts → retry-policy-DUJ8-Qc_.d.ts} +1 -1
  30. package/dist/sdd/index.d.ts +3 -3
  31. package/dist/{secret-scrubber-Buo9zLGs.d.ts → secret-scrubber-CB11A2P7.d.ts} +1 -1
  32. package/dist/{secret-scrubber-BSgec8CU.d.ts → secret-scrubber-EqFa0SyI.d.ts} +1 -1
  33. package/dist/security/index.d.ts +3 -3
  34. package/dist/{selector-B-CGOshv.d.ts → selector-yqyxt-Ii.d.ts} +1 -1
  35. package/dist/{session-reader-DmOEmSkq.d.ts → session-reader-1tOyoY1s.d.ts} +1 -1
  36. package/dist/session-rewinder-C9HnMkhP.d.ts +23 -0
  37. package/dist/storage/index.d.ts +21 -534
  38. package/dist/storage/index.js +246 -3
  39. package/dist/storage/index.js.map +1 -1
  40. package/dist/{system-prompt-CzY1zrbC.d.ts → system-prompt-BJlzKGO6.d.ts} +1 -1
  41. package/dist/{tool-executor-CYe5cp5U.d.ts → tool-executor-B6kRcWeF.d.ts} +4 -4
  42. package/dist/types/index.d.ts +16 -15
  43. package/dist/utils/index.d.ts +1 -1
  44. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,54 +1,56 @@
1
- import { S as SystemPromptBuilder, M as ModelCapabilities, B as BuildContext, C as Container } from './system-prompt-CzY1zrbC.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-CzY1zrbC.js';
3
- import { E as EventBus, a as EventName, L as Listener } from './events-DYAbU84e.js';
4
- export { b as EventLogger, c as EventMap } from './events-DYAbU84e.js';
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';
5
5
  export { RunController, RunControllerOptions, TOKENS } from './kernel/index.js';
6
- import { b as ContentBlock, T as TextBlock, a0 as Context } from './context-P207fTpo.js';
7
- export { A as AgentError, C as Capabilities, a as ConfigError, a3 as ContextInit, a4 as ConversationState, E as ErrorCode, c as ErrorSeverity, d as ErrorSubsystem, 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, a5 as ReadonlyConversationState, R as Request, j as Response, k as ResumedSession, a6 as RunEnv, a7 as RunOptions, S as SessionData, l as SessionError, m as SessionEvent, n as SessionMetadata, o as SessionStore, p as SessionSummary, q as SessionWriter, a8 as StateChange, a9 as StateChangeHandler, r as StopReason, s as StreamEvent, t as ThinkingBlock, aa as TodoItem, a1 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, F as asBlocks, G as asText, ab as extractRunEnv, H as isAgentError, K as isConfigError, L as isImageBlock, N as isPluginError, O as isSessionError, Q as isTextBlock, V as isThinkingBlock, X as isToolError, Y as isToolResultBlock, Z as isToolUseBlock, _ as isWrongStackError, $ as toWrongStackError, ac as wrapAsState } from './context-P207fTpo.js';
8
- export { P as ProviderRunner, R as RunProviderOptions } from './provider-runner-D7lHu07L.js';
9
- import { a as Config } from './config-DO2eCKgq.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-DO2eCKgq.js';
11
- export { C as CompactReport, a as Compactor } from './compactor-CTHjZAwf.js';
12
- export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './secret-scrubber-Buo9zLGs.js';
13
- import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-DmOEmSkq.js';
14
- export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader } from './session-reader-DmOEmSkq.js';
15
- 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-BSgec8CU.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';
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';
16
17
  export { D as DefaultLogger, a as DefaultLoggerOptions } from './logger-BH6AE0W9.js';
17
- export { D as DefaultPathResolver, a as DefaultTokenCounter } from './path-resolver-mPccVA0l.js';
18
+ export { D as DefaultPathResolver, a as DefaultTokenCounter } from './path-resolver-CprD5DhS.js';
18
19
  import { b as MemoryStore } from './memory-CEXuo7sz.js';
19
20
  export { M as MemoryEntry, a as MemoryScope } from './memory-CEXuo7sz.js';
20
- 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-CYe5cp5U.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
22
  import { a as SkillLoader } from './skill-CxuWrsKK.js';
22
23
  export { S as SkillEntry, b as SkillManifest } from './skill-CxuWrsKK.js';
23
24
  export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
24
- 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-BNzUUDVR.js';
25
- 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-BNzUUDVR.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';
26
27
  export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-DqzwpBQy.js';
27
28
  import { c as ModeStore } from './mode-CV077NjV.js';
28
29
  export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-CV077NjV.js';
29
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-BkjOkSkD.js';
30
- 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-B1Nn9eC0.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';
31
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';
32
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';
33
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';
34
35
  export { W as WstackPathOptions, a as WstackPaths, p as projectHash, r as resolveWstackPaths } from './wstack-paths-BGu2INTm.js';
35
- export { AbandonedSession, AttachmentStoreOptions, ConfigLoaderOptions, ConfigMigration, ConfigMigrationError, ConfigSource, DEFAULT_CONFIG_MIGRATIONS, DefaultAttachmentStore, DefaultConfigLoader, DefaultConfigStore, DefaultMemoryStore, DefaultSessionStore, DirectorStateCheckpoint, DirectorStateSnapshot, DirectorSubagentState, DirectorTaskState, MemoryStoreOptions, MigrationContext, MigrationResult, PersistedQueueItem, PlanFile, PlanItem, QueueStore, RecoveryLock, RecoveryLockOptions, SessionAnalyzer, SessionStoreOptions, TodosCheckpointFile, addPlanItem, attachPlanCheckpoint, attachTodosCheckpoint, clearPlan, emptyPlan, formatPlan, loadDirectorState, loadPlan, loadTodosCheckpoint, removePlanItem, runConfigMigrations, savePlan, saveTodosCheckpoint, setPlanItemStatus } from './storage/index.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';
36
37
  export { AutoApprovePermissionPolicy, DefaultPermissionPolicy, PermissionPolicyOptions } from './security/index.js';
37
38
  export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, IntelligentCompactor, IntelligentCompactorOptions, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions } from './execution/index.js';
38
39
  export { DefaultProviderRunner } from './defaults/index.js';
39
- 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-BHL8QDCL.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';
40
41
  export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from './models/index.js';
41
42
  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';
42
43
  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';
43
- 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-CLkhKdnF.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';
44
45
  export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
46
+ export { DefaultSessionRewinder, SessionRewinderOptions } from './storage/index.js';
45
47
  import { L as Logger } from './logger-BMQgxvdy.js';
46
48
  export { a as LogLevel } from './logger-BMQgxvdy.js';
47
49
  export { a as ModelsDevPayload, c as ModelsDevProvider, M as ModelsRegistry, b as ResolvedModel, R as ResolvedProvider, W as WireFamily } from './models-registry-Y2xbog0E.js';
48
50
  export { S as SecretVault } from './secret-vault-DoISxaKO.js';
49
- import './retry-policy-CnYVKGPv.js';
51
+ import './retry-policy-DUJ8-Qc_.js';
50
52
  import './path-resolver-CPRj4bFY.js';
51
- import './selector-B-CGOshv.js';
53
+ import './selector-yqyxt-Ii.js';
52
54
  import 'node:events';
53
55
 
54
56
  interface InputBuilderOptions {
package/dist/index.js CHANGED
@@ -3641,11 +3641,11 @@ function validateAgainstSchema(value, schema) {
3641
3641
  walk2(value, schema, "", errors);
3642
3642
  return { ok: errors.length === 0, errors };
3643
3643
  }
3644
- function walk2(value, schema, path23, errors) {
3644
+ function walk2(value, schema, path24, errors) {
3645
3645
  if (schema.enum !== void 0) {
3646
3646
  if (!schema.enum.some((e) => deepEqual(e, value))) {
3647
3647
  errors.push({
3648
- path: path23 || "<root>",
3648
+ path: path24 || "<root>",
3649
3649
  message: `expected one of ${JSON.stringify(schema.enum)}, got ${JSON.stringify(value)}`
3650
3650
  });
3651
3651
  return;
@@ -3654,7 +3654,7 @@ function walk2(value, schema, path23, errors) {
3654
3654
  if (typeof schema.type === "string") {
3655
3655
  if (!checkType(value, schema.type)) {
3656
3656
  errors.push({
3657
- path: path23 || "<root>",
3657
+ path: path24 || "<root>",
3658
3658
  message: `expected ${schema.type}, got ${describeType(value)}`
3659
3659
  });
3660
3660
  return;
@@ -3664,19 +3664,19 @@ function walk2(value, schema, path23, errors) {
3664
3664
  const obj = value;
3665
3665
  for (const req of schema.required ?? []) {
3666
3666
  if (!(req in obj)) {
3667
- errors.push({ path: joinPath(path23, req), message: "required property missing" });
3667
+ errors.push({ path: joinPath(path24, req), message: "required property missing" });
3668
3668
  }
3669
3669
  }
3670
3670
  if (schema.properties) {
3671
3671
  for (const [key, subSchema] of Object.entries(schema.properties)) {
3672
3672
  if (key in obj) {
3673
- walk2(obj[key], subSchema, joinPath(path23, key), errors);
3673
+ walk2(obj[key], subSchema, joinPath(path24, key), errors);
3674
3674
  }
3675
3675
  }
3676
3676
  }
3677
3677
  }
3678
3678
  if (schema.type === "array" && Array.isArray(value) && schema.items) {
3679
- value.forEach((item, i) => walk2(item, schema.items, `${path23}[${i}]`, errors));
3679
+ value.forEach((item, i) => walk2(item, schema.items, `${path24}[${i}]`, errors));
3680
3680
  }
3681
3681
  }
3682
3682
  function checkType(value, type) {
@@ -3752,7 +3752,7 @@ var DefaultSessionStore = class {
3752
3752
  );
3753
3753
  }
3754
3754
  try {
3755
- return new FileSessionWriter(id, handle, startedAt, meta, { dir: this.dir, filePath: file });
3755
+ return new FileSessionWriter(id, handle, startedAt, meta, this.events, { dir: this.dir, filePath: file });
3756
3756
  } catch (err) {
3757
3757
  await handle.close().catch(() => {
3758
3758
  });
@@ -3780,6 +3780,7 @@ var DefaultSessionStore = class {
3780
3780
  model: data.metadata.model,
3781
3781
  provider: data.metadata.provider
3782
3782
  },
3783
+ this.events,
3783
3784
  { resumed: true, dir: this.dir, filePath: file }
3784
3785
  );
3785
3786
  return { writer, data };
@@ -3943,11 +3944,12 @@ var DefaultSessionStore = class {
3943
3944
  }
3944
3945
  };
3945
3946
  var FileSessionWriter = class {
3946
- constructor(id, handle, startedAt, meta, opts = {}) {
3947
+ constructor(id, handle, startedAt, meta, events, opts = {}) {
3947
3948
  this.id = id;
3948
3949
  this.handle = handle;
3949
3950
  this.startedAt = startedAt;
3950
3951
  this.meta = meta;
3952
+ this.events = events;
3951
3953
  this.resumed = opts.resumed ?? false;
3952
3954
  this.manifestFile = opts.dir ? path6.join(opts.dir, `${id}.summary.json`) : "";
3953
3955
  this.filePath = opts.filePath ?? "";
@@ -3964,6 +3966,7 @@ var FileSessionWriter = class {
3964
3966
  handle;
3965
3967
  startedAt;
3966
3968
  meta;
3969
+ events;
3967
3970
  closed = false;
3968
3971
  closing = false;
3969
3972
  manifestFile;
@@ -3981,6 +3984,13 @@ var FileSessionWriter = class {
3981
3984
  resumed;
3982
3985
  appendFailCount = 0;
3983
3986
  lastAppendWarnAt = 0;
3987
+ // Rewind support: track pending file changes and prompt index
3988
+ promptIndex = 0;
3989
+ pendingFileSnapshots = [];
3990
+ // Register a pending file change. Call recordFileChange() from tools.
3991
+ recordFileChange(input) {
3992
+ this.pendingFileSnapshots.push(input);
3993
+ }
3984
3994
  async writeSessionStartLazy() {
3985
3995
  const record = `${JSON.stringify({
3986
3996
  type: this.resumed ? "session_resumed" : "session_start",
@@ -4056,6 +4066,87 @@ var FileSessionWriter = class {
4056
4066
  } catch {
4057
4067
  }
4058
4068
  }
4069
+ async writeCheckpoint(promptIndex, promptPreview) {
4070
+ const fileCount = this.pendingFileSnapshots.length;
4071
+ if (fileCount > 0) {
4072
+ await this.writeFileSnapshot(promptIndex, [...this.pendingFileSnapshots]);
4073
+ this.pendingFileSnapshots = [];
4074
+ }
4075
+ this.promptIndex = promptIndex + 1;
4076
+ await this.append({
4077
+ type: "checkpoint",
4078
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
4079
+ promptIndex,
4080
+ promptPreview
4081
+ });
4082
+ this.events?.emit("checkpoint.written", {
4083
+ promptIndex,
4084
+ promptPreview,
4085
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
4086
+ fileCount
4087
+ });
4088
+ }
4089
+ async writeFileSnapshot(promptIndex, files) {
4090
+ await this.append({
4091
+ type: "file_snapshot",
4092
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
4093
+ promptIndex,
4094
+ files
4095
+ });
4096
+ }
4097
+ async truncateToCheckpoint(targetPromptIndex) {
4098
+ if (!this.filePath) return 0;
4099
+ const raw = await fsp2.readFile(this.filePath, "utf8");
4100
+ const lines = raw.split("\n");
4101
+ const kept = [];
4102
+ let removedCount = 0;
4103
+ let targetCheckpointLine = -1;
4104
+ let afterTarget = false;
4105
+ for (let i = 0; i < lines.length; i++) {
4106
+ const line = lines[i];
4107
+ if (!line.trim()) continue;
4108
+ let event;
4109
+ try {
4110
+ event = JSON.parse(line);
4111
+ } catch {
4112
+ kept.push(line);
4113
+ continue;
4114
+ }
4115
+ if (event.type === "checkpoint") {
4116
+ if (event.promptIndex === targetPromptIndex) {
4117
+ targetCheckpointLine = kept.length;
4118
+ afterTarget = true;
4119
+ } else if (event.promptIndex > targetPromptIndex) {
4120
+ afterTarget = true;
4121
+ }
4122
+ }
4123
+ if (event.promptIndex !== void 0 && event.promptIndex > targetPromptIndex) {
4124
+ removedCount++;
4125
+ } else if (event.promptIndex === void 0) {
4126
+ if (!afterTarget || targetCheckpointLine === -1) {
4127
+ kept.push(line);
4128
+ } else {
4129
+ removedCount++;
4130
+ }
4131
+ } else {
4132
+ kept.push(line);
4133
+ }
4134
+ }
4135
+ const truncated = kept.join("\n");
4136
+ await fsp2.writeFile(this.filePath, truncated + "\n", "utf8");
4137
+ await this.append({
4138
+ type: "rewound",
4139
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
4140
+ toPromptIndex: targetPromptIndex,
4141
+ revertedFiles: []
4142
+ });
4143
+ this.events?.emit("session.rewound", {
4144
+ toPromptIndex: targetPromptIndex,
4145
+ revertedFiles: [],
4146
+ removedEvents: removedCount
4147
+ });
4148
+ return removedCount;
4149
+ }
4059
4150
  };
4060
4151
  function userInputTitle(content) {
4061
4152
  if (typeof content === "string") return content.slice(0, 60);
@@ -10339,10 +10430,10 @@ var AISpecBuilder = class {
10339
10430
  async saveSession() {
10340
10431
  if (!this.sessionPath) return;
10341
10432
  try {
10342
- const fsp13 = await import('fs/promises');
10343
- const path23 = await import('path');
10344
- await fsp13.mkdir(path23.dirname(this.sessionPath), { recursive: true });
10345
- await fsp13.writeFile(this.sessionPath, JSON.stringify(this.session, null, 2), "utf8");
10433
+ const fsp14 = await import('fs/promises');
10434
+ const path24 = await import('path');
10435
+ await fsp14.mkdir(path24.dirname(this.sessionPath), { recursive: true });
10436
+ await fsp14.writeFile(this.sessionPath, JSON.stringify(this.session, null, 2), "utf8");
10346
10437
  } catch {
10347
10438
  }
10348
10439
  }
@@ -10350,8 +10441,8 @@ var AISpecBuilder = class {
10350
10441
  async loadSession() {
10351
10442
  if (!this.sessionPath) return false;
10352
10443
  try {
10353
- const fsp13 = await import('fs/promises');
10354
- const raw = await fsp13.readFile(this.sessionPath, "utf8");
10444
+ const fsp14 = await import('fs/promises');
10445
+ const raw = await fsp14.readFile(this.sessionPath, "utf8");
10355
10446
  const loaded = JSON.parse(raw);
10356
10447
  if (loaded?.id && loaded?.phase && loaded?.title) {
10357
10448
  this.session = loaded;
@@ -10365,8 +10456,8 @@ var AISpecBuilder = class {
10365
10456
  async deleteSession() {
10366
10457
  if (!this.sessionPath) return;
10367
10458
  try {
10368
- const fsp13 = await import('fs/promises');
10369
- await fsp13.unlink(this.sessionPath);
10459
+ const fsp14 = await import('fs/promises');
10460
+ await fsp14.unlink(this.sessionPath);
10370
10461
  } catch {
10371
10462
  }
10372
10463
  }
@@ -11044,15 +11135,15 @@ function computeCriticalPath(graph, topoOrder, blockedByMap) {
11044
11135
  maxId = id;
11045
11136
  }
11046
11137
  }
11047
- const path23 = [];
11138
+ const path24 = [];
11048
11139
  let current = maxId;
11049
11140
  const visited = /* @__PURE__ */ new Set();
11050
11141
  while (current && !visited.has(current)) {
11051
11142
  visited.add(current);
11052
- path23.unshift(current);
11143
+ path24.unshift(current);
11053
11144
  current = prev.get(current) ?? null;
11054
11145
  }
11055
- return path23;
11146
+ return path24;
11056
11147
  }
11057
11148
  function computeParallelGroups(graph, blockedByMap) {
11058
11149
  const groups = [];
@@ -11762,7 +11853,7 @@ async function startMetricsServer(opts) {
11762
11853
  const tls = opts.tls;
11763
11854
  const useHttps = !!(tls?.cert && tls?.key);
11764
11855
  const host = opts.host ?? "127.0.0.1";
11765
- const path23 = opts.path ?? "/metrics";
11856
+ const path24 = opts.path ?? "/metrics";
11766
11857
  const healthPath = opts.healthPath ?? "/healthz";
11767
11858
  const healthRegistry = opts.healthRegistry;
11768
11859
  const listener = (req, res) => {
@@ -11772,7 +11863,7 @@ async function startMetricsServer(opts) {
11772
11863
  return;
11773
11864
  }
11774
11865
  const url = req.url.split("?")[0];
11775
- if (url === path23) {
11866
+ if (url === path24) {
11776
11867
  let body;
11777
11868
  try {
11778
11869
  body = renderPrometheus(opts.sink.snapshot());
@@ -11836,7 +11927,7 @@ async function startMetricsServer(opts) {
11836
11927
  const protocol = useHttps ? "https" : "http";
11837
11928
  return {
11838
11929
  port: boundPort,
11839
- url: `${protocol}://${host}:${boundPort}${path23}`,
11930
+ url: `${protocol}://${host}:${boundPort}${path24}`,
11840
11931
  close: () => new Promise((resolve5, reject) => {
11841
11932
  server.close((err) => err ? reject(err) : resolve5());
11842
11933
  })
@@ -12918,6 +13009,158 @@ async function collectFiles(dir, baseDir) {
12918
13009
  }
12919
13010
  return results;
12920
13011
  }
13012
+ var DefaultSessionRewinder = class {
13013
+ constructor(sessionsDir) {
13014
+ this.sessionsDir = sessionsDir;
13015
+ }
13016
+ sessionsDir;
13017
+ async listCheckpoints(sessionId) {
13018
+ const file = path6.join(this.sessionsDir, `${sessionId}.jsonl`);
13019
+ const raw = await fsp2.readFile(file, "utf8");
13020
+ const events = parseEvents(raw);
13021
+ const fileCountMap = /* @__PURE__ */ new Map();
13022
+ for (const event of events) {
13023
+ if (event.type === "file_snapshot") {
13024
+ const e = event;
13025
+ fileCountMap.set(e.promptIndex, (fileCountMap.get(e.promptIndex) ?? 0) + e.files.length);
13026
+ }
13027
+ }
13028
+ const checkpoints = [];
13029
+ for (const event of events) {
13030
+ if (event.type === "checkpoint") {
13031
+ const e = event;
13032
+ checkpoints.push({
13033
+ promptIndex: e.promptIndex,
13034
+ promptPreview: e.promptPreview,
13035
+ ts: e.ts,
13036
+ fileCount: fileCountMap.get(e.promptIndex) ?? 0
13037
+ });
13038
+ }
13039
+ }
13040
+ return checkpoints;
13041
+ }
13042
+ async rewindToCheckpoint(sessionId, checkpointIndex) {
13043
+ const file = path6.join(this.sessionsDir, `${sessionId}.jsonl`);
13044
+ const raw = await fsp2.readFile(file, "utf8");
13045
+ const events = parseEvents(raw);
13046
+ let targetIdx = -1;
13047
+ for (let i = 0; i < events.length; i++) {
13048
+ const event = events[i];
13049
+ if (event.type === "checkpoint") {
13050
+ const checkpointEvent = event;
13051
+ if (checkpointEvent.promptIndex === checkpointIndex) {
13052
+ targetIdx = i;
13053
+ break;
13054
+ }
13055
+ }
13056
+ }
13057
+ if (targetIdx === -1) {
13058
+ throw new Error(`Checkpoint ${checkpointIndex} not found`);
13059
+ }
13060
+ const snapshotsToRevert = [];
13061
+ for (let i = targetIdx + 1; i < events.length; i++) {
13062
+ const event = events[i];
13063
+ if (event.type === "checkpoint") {
13064
+ break;
13065
+ }
13066
+ if (event.type === "file_snapshot") {
13067
+ const snapshotEvent = event;
13068
+ if (snapshotEvent.promptIndex >= checkpointIndex) {
13069
+ snapshotsToRevert.push({ promptIndex: snapshotEvent.promptIndex, files: snapshotEvent.files });
13070
+ }
13071
+ }
13072
+ }
13073
+ const result = await revertSnapshots(snapshotsToRevert);
13074
+ const removedEvents = events.length - targetIdx - 1;
13075
+ return { ...result, toPromptIndex: checkpointIndex, removedEvents };
13076
+ }
13077
+ async rewindLastN(sessionId, n) {
13078
+ const file = path6.join(this.sessionsDir, `${sessionId}.jsonl`);
13079
+ const raw = await fsp2.readFile(file, "utf8");
13080
+ const events = parseEvents(raw);
13081
+ const checkpoints = [];
13082
+ for (const event of events) {
13083
+ if (event.type === "checkpoint") {
13084
+ checkpoints.push({ promptIndex: event.promptIndex, ts: event.ts });
13085
+ }
13086
+ }
13087
+ if (checkpoints.length === 0) {
13088
+ return { revertedFiles: [], errors: [], toPromptIndex: 0, removedEvents: 0 };
13089
+ }
13090
+ checkpoints.sort((a, b) => b.promptIndex - a.promptIndex);
13091
+ const targetIndex = checkpoints[n]?.promptIndex ?? 0;
13092
+ const snapshotsToRevert = [];
13093
+ let shouldRevert = false;
13094
+ for (const event of events) {
13095
+ if (event.type === "checkpoint" && event.promptIndex === targetIndex) {
13096
+ shouldRevert = true;
13097
+ continue;
13098
+ }
13099
+ if (shouldRevert && event.type === "file_snapshot") {
13100
+ snapshotsToRevert.push({ promptIndex: event.promptIndex, files: event.files });
13101
+ }
13102
+ }
13103
+ const result = await revertSnapshots(snapshotsToRevert.reverse());
13104
+ return { ...result, toPromptIndex: targetIndex, removedEvents: snapshotsToRevert.length };
13105
+ }
13106
+ async rewindToStart(sessionId) {
13107
+ const file = path6.join(this.sessionsDir, `${sessionId}.jsonl`);
13108
+ const raw = await fsp2.readFile(file, "utf8");
13109
+ const events = parseEvents(raw);
13110
+ const allSnapshots = [];
13111
+ for (const event of events) {
13112
+ if (event.type === "file_snapshot") {
13113
+ allSnapshots.push({ promptIndex: event.promptIndex, files: event.files });
13114
+ }
13115
+ }
13116
+ if (allSnapshots.length === 0) {
13117
+ return { revertedFiles: [], errors: [], toPromptIndex: 0, removedEvents: 0 };
13118
+ }
13119
+ const result = await revertSnapshots(allSnapshots.reverse());
13120
+ return { ...result, toPromptIndex: 0, removedEvents: allSnapshots.length };
13121
+ }
13122
+ };
13123
+ function parseEvents(raw) {
13124
+ const lines = raw.split("\n").filter((l) => l.trim());
13125
+ const events = [];
13126
+ for (const line of lines) {
13127
+ try {
13128
+ const parsed = JSON.parse(line);
13129
+ if (parsed !== null && typeof parsed === "object" && typeof parsed.type === "string" && typeof parsed.ts === "string") {
13130
+ events.push(parsed);
13131
+ }
13132
+ } catch {
13133
+ }
13134
+ }
13135
+ return events;
13136
+ }
13137
+ async function revertSnapshots(snapshots) {
13138
+ const revertedFiles = [];
13139
+ const errors = [];
13140
+ for (const snapshot of snapshots) {
13141
+ for (const file of snapshot.files) {
13142
+ try {
13143
+ if (file.action === "deleted") {
13144
+ if (file.before !== null) {
13145
+ await fsp2.writeFile(file.path, file.before, { mode: 420 });
13146
+ revertedFiles.push(file.path);
13147
+ }
13148
+ } else if (file.action === "created") {
13149
+ await fsp2.unlink(file.path);
13150
+ revertedFiles.push(file.path);
13151
+ } else if (file.action === "modified") {
13152
+ if (file.before !== null) {
13153
+ await fsp2.writeFile(file.path, file.before, { mode: 420 });
13154
+ revertedFiles.push(file.path);
13155
+ }
13156
+ }
13157
+ } catch (err) {
13158
+ errors.push(`${file.path}: ${err instanceof Error ? err.message : String(err)}`);
13159
+ }
13160
+ }
13161
+ }
13162
+ return { revertedFiles, errors };
13163
+ }
12921
13164
 
12922
13165
  // src/extension/registry.ts
12923
13166
  var ExtensionRegistry = class {
@@ -15128,6 +15371,6 @@ function wrapApiForCapabilityCheck(plugin, api, log, enforce = false) {
15128
15371
  });
15129
15372
  }
15130
15373
 
15131
- export { AISpecBuilder, ALL_FLEET_AGENTS, AUDIT_LOG_AGENT, Agent, AgentError, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutonomousRunner, BUG_HUNTER_AGENT, BudgetExceededError, CONTEXT_WINDOW_MODES, ConfigError, ConfigMigrationError, Container, Context, ConversationState, DEFAULT_CONFIG_MIGRATIONS, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEFAULT_DIRECTOR_PREAMBLE, DEFAULT_MAX_ITERATIONS, DEFAULT_MODES, DEFAULT_RECOVERY_STRATEGIES, DEFAULT_SPEC_TEMPLATE, DEFAULT_SUBAGENT_BASELINE, DefaultAttachmentStore, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMemoryStore, DefaultModeStore, DefaultModelsRegistry, DefaultMultiAgentCoordinator, DefaultPathResolver, DefaultPermissionPolicy, DefaultPluginAPI, DefaultProviderRunner, DefaultRetryPolicy, DefaultSecretScrubber, DefaultSecretVault, DefaultSessionReader, DefaultSessionStore, DefaultSkillLoader, DefaultSystemPromptBuilder, DefaultTaskStore, DefaultTokenCounter, Director, DirectorBudgetError, DirectorStateCheckpoint, DoneConditionChecker, EventBus, ExtensionRegistry, FLEET_ROSTER, FLEET_ROSTER_BUDGETS, FleetBus, FleetUsageAggregator, HybridCompactor, InMemoryAgentBridge, InMemoryBridgeTransport, InMemoryMetricsSink, InputBuilder, IntelligentCompactor, KERNEL_API_VERSION, LAYER_1_IDENTITY, LLMSelector, NoopMetricsSink, NoopTracer, OTelTracer, PROMETHEUS_CONTENT_TYPE, Pipeline, PluginError, ProviderError, ProviderRegistry, QueueStore, REFACTOR_PLANNER_AGENT, RecoveryLock, RunController, SECURITY_SCANNER_AGENT, SPEC_TEMPLATES, SelectiveCompactor, SessionAnalyzer, SessionError, SkillInstaller, SkillManifestStore, SlashCommandRegistry, SpecDrivenDev, SpecParser, SpecStore, SpecVersioning, SubagentBudget, TOKENS, TaskFlow, TaskGenerator, TaskGraphStore, TaskTracker, ToolError, ToolExecutor, ToolRegistry, WrongStackError, addPlanItem, allServers, analyzeCriticalPath, applyRosterBudget, asBlocks, asText, atomicWrite, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, braveSearchServer, buildChildEnv, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildRecoveryStrategies, classifyFamily, clearPlan, color, compileGlob, compileUserRegex, composeDirectorPrompt, composeSubagentPrompt, computeTaskProgress, context7Server, contextManagerTool, createAutoExecutor, createContextManagerTool, createDefaultPipelines, createDelegateTool, createMessage, createToolOutputSerializer, decryptConfigSecrets, detectNewlineStyle, downloadGitHubTarball, emptyPlan, encryptConfigSecrets, ensureDir, estimateRequestTokens, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, extractRunEnv, filesystemServer, findCriticalPath, formatContextWindowModeList, formatPlan, formatTodosList, getContextWindowMode, getTemplate, githubServer, googleMapsServer, isAgentError, isConfigError, isContextWindowModeId, isImageBlock, isPluginError, isSessionError, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isWrongStackError, listContextWindowModes, listTemplates, loadDirectorState, loadPlan, loadPlugins, loadProjectModes, loadTodosCheckpoint, loadUserModes, makeAgentSubagentRunner, makeDirectorSessionFactory, matchAny, matchGlob, migratePlaintextSecrets, miniMaxVisionServer, normalizeToLf, parseSkillRef, projectHash, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resolveContextWindowPolicy, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, safeParse, safeStringify, sanitizeJsonString, savePlan, saveTodosCheckpoint, sentinelServer, setPlanItemStatus, slackServer, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, stripAnsi, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, unifiedDiff, unloadPlugins, validateAgainstSchema, wireMetricsToEvents, wrapAsState, zaiVisionServer };
15374
+ export { AISpecBuilder, ALL_FLEET_AGENTS, AUDIT_LOG_AGENT, Agent, AgentError, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutonomousRunner, BUG_HUNTER_AGENT, BudgetExceededError, CONTEXT_WINDOW_MODES, ConfigError, ConfigMigrationError, Container, Context, ConversationState, DEFAULT_CONFIG_MIGRATIONS, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEFAULT_DIRECTOR_PREAMBLE, DEFAULT_MAX_ITERATIONS, DEFAULT_MODES, DEFAULT_RECOVERY_STRATEGIES, DEFAULT_SPEC_TEMPLATE, DEFAULT_SUBAGENT_BASELINE, DefaultAttachmentStore, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMemoryStore, DefaultModeStore, DefaultModelsRegistry, DefaultMultiAgentCoordinator, DefaultPathResolver, DefaultPermissionPolicy, DefaultPluginAPI, DefaultProviderRunner, DefaultRetryPolicy, DefaultSecretScrubber, DefaultSecretVault, DefaultSessionReader, DefaultSessionRewinder, DefaultSessionStore, DefaultSkillLoader, DefaultSystemPromptBuilder, DefaultTaskStore, DefaultTokenCounter, Director, DirectorBudgetError, DirectorStateCheckpoint, DoneConditionChecker, EventBus, ExtensionRegistry, FLEET_ROSTER, FLEET_ROSTER_BUDGETS, FleetBus, FleetUsageAggregator, HybridCompactor, InMemoryAgentBridge, InMemoryBridgeTransport, InMemoryMetricsSink, InputBuilder, IntelligentCompactor, KERNEL_API_VERSION, LAYER_1_IDENTITY, LLMSelector, NoopMetricsSink, NoopTracer, OTelTracer, PROMETHEUS_CONTENT_TYPE, Pipeline, PluginError, ProviderError, ProviderRegistry, QueueStore, REFACTOR_PLANNER_AGENT, RecoveryLock, RunController, SECURITY_SCANNER_AGENT, SPEC_TEMPLATES, SelectiveCompactor, SessionAnalyzer, SessionError, SkillInstaller, SkillManifestStore, SlashCommandRegistry, SpecDrivenDev, SpecParser, SpecStore, SpecVersioning, SubagentBudget, TOKENS, TaskFlow, TaskGenerator, TaskGraphStore, TaskTracker, ToolError, ToolExecutor, ToolRegistry, WrongStackError, addPlanItem, allServers, analyzeCriticalPath, applyRosterBudget, asBlocks, asText, atomicWrite, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, braveSearchServer, buildChildEnv, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildRecoveryStrategies, classifyFamily, clearPlan, color, compileGlob, compileUserRegex, composeDirectorPrompt, composeSubagentPrompt, computeTaskProgress, context7Server, contextManagerTool, createAutoExecutor, createContextManagerTool, createDefaultPipelines, createDelegateTool, createMessage, createToolOutputSerializer, decryptConfigSecrets, detectNewlineStyle, downloadGitHubTarball, emptyPlan, encryptConfigSecrets, ensureDir, estimateRequestTokens, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, extractRunEnv, filesystemServer, findCriticalPath, formatContextWindowModeList, formatPlan, formatTodosList, getContextWindowMode, getTemplate, githubServer, googleMapsServer, isAgentError, isConfigError, isContextWindowModeId, isImageBlock, isPluginError, isSessionError, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isWrongStackError, listContextWindowModes, listTemplates, loadDirectorState, loadPlan, loadPlugins, loadProjectModes, loadTodosCheckpoint, loadUserModes, makeAgentSubagentRunner, makeDirectorSessionFactory, matchAny, matchGlob, migratePlaintextSecrets, miniMaxVisionServer, normalizeToLf, parseSkillRef, projectHash, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resolveContextWindowPolicy, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, safeParse, safeStringify, sanitizeJsonString, savePlan, saveTodosCheckpoint, sentinelServer, setPlanItemStatus, slackServer, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, stripAnsi, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, unifiedDiff, unloadPlugins, validateAgainstSchema, wireMetricsToEvents, wrapAsState, zaiVisionServer };
15132
15375
  //# sourceMappingURL=index.js.map
15133
15376
  //# sourceMappingURL=index.js.map