@wrongstack/core 0.73.1 → 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.
- package/dist/{agent-bridge-C0Ze7Ldm.d.ts → agent-bridge-C9P_HPez.d.ts} +2 -2
- package/dist/{agent-subagent-runner-BmITbs1Q.d.ts → agent-subagent-runner-2Aq0jOSj.d.ts} +107 -102
- package/dist/{compactor-D_ExJajC.d.ts → compactor-CJq7LQev.d.ts} +3 -3
- package/dist/{config-Dy0CK_o6.d.ts → config-_DZ7dN-T.d.ts} +77 -75
- package/dist/{context-y87Jc5ei.d.ts → context-ToHAp4-U.d.ts} +119 -90
- package/dist/coordination/index.d.ts +16 -16
- package/dist/coordination/index.js +382 -43
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +31 -31
- package/dist/defaults/index.js +524 -110
- package/dist/defaults/index.js.map +1 -1
- package/dist/{director-state-BmYi3DGA.d.ts → director-state-CgIc30qi.d.ts} +19 -19
- package/dist/{events-BBAlxBuw.d.ts → events-DnRqXaZ3.d.ts} +77 -39
- package/dist/execution/index.d.ts +53 -53
- package/dist/execution/index.js +67 -23
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +9 -9
- package/dist/extension/index.js +8 -1
- package/dist/extension/index.js.map +1 -1
- package/dist/{goal-store-C7jcumEh.d.ts → goal-store-DvWLNu52.d.ts} +4 -4
- package/dist/{index-yQbZ2NQx.d.ts → index-BNOLadHw.d.ts} +28 -28
- package/dist/{index-BN6i2Nfg.d.ts → index-N0_c4bHQ.d.ts} +45 -45
- package/dist/index.d.ts +233 -160
- package/dist/index.js +825 -160
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +9 -9
- package/dist/infrastructure/index.js +29 -7
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +14 -14
- package/dist/kernel/index.js +7 -0
- package/dist/kernel/index.js.map +1 -1
- package/dist/logger-B72yyPc6.d.ts +12 -0
- package/dist/{logger-bOzkF5LL.d.ts → logger-C_27pj9i.d.ts} +12 -4
- package/dist/{mcp-servers-T0O6UN_w.d.ts → mcp-servers-Dck3T85_.d.ts} +20 -20
- package/dist/{mode-BO4SEUIv.d.ts → mode-CHo2XtHs.d.ts} +4 -4
- package/dist/models/index.d.ts +10 -10
- package/dist/models/index.js +8 -2
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-BcYJDKLm.d.ts → models-registry-Be3osGt5.d.ts} +28 -28
- package/dist/{models-registry-Cuq1C8V9.d.ts → models-registry-Boz639EI.d.ts} +12 -12
- package/dist/{multi-agent-coordinator-BSBbZt0e.d.ts → multi-agent-coordinator-DllpCVkF.d.ts} +12 -12
- package/dist/{null-fleet-bus-BCIRT_nV.d.ts → null-fleet-bus-BY0AN-sr.d.ts} +129 -120
- package/dist/observability/index.d.ts +41 -41
- package/dist/observability/index.js.map +1 -1
- package/dist/{observability-BhnVLBLS.d.ts → observability-CoSNZdhX.d.ts} +4 -4
- package/dist/{parallel-eternal-engine-CjAYGaCw.d.ts → parallel-eternal-engine-D402RASp.d.ts} +49 -49
- package/dist/{path-resolver-BnqXa9Ze.d.ts → path-resolver-UPFTsDyD.d.ts} +6 -6
- package/dist/{permission-V5BLOrY6.d.ts → permission-14CChMmO.d.ts} +10 -8
- package/dist/{permission-policy-CBVx-d-8.d.ts → permission-policy-gW5htOo1.d.ts} +7 -7
- package/dist/{plan-templates-DBgrTGPu.d.ts → plan-templates-DRvPgkfZ.d.ts} +70 -32
- package/dist/{provider-runner-n3KkHT_w.d.ts → provider-runner-COAJM8tC.d.ts} +6 -6
- package/dist/{retry-policy-CG3qvH_e.d.ts → retry-policy-DSu6O6rD.d.ts} +4 -4
- package/dist/sdd/index.d.ts +47 -47
- package/dist/sdd/index.js +47 -22
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.d.ts +6 -6
- package/dist/security/index.js +7 -1
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-RvBR_YRW.d.ts → selector-11-fm95U.d.ts} +2 -2
- package/dist/{session-event-bridge-CDHxcmQU.d.ts → session-event-bridge-D0u-x576.d.ts} +7 -7
- package/dist/{session-reader-BIpwM60D.d.ts → session-reader-BQU-toaN.d.ts} +23 -23
- package/dist/{skill-CxuWrsKK.d.ts → skill-BJeF2DwY.d.ts} +1 -1
- package/dist/skills/index.d.ts +9 -9
- package/dist/skills/index.js +15 -3
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +15 -15
- package/dist/storage/index.js +398 -80
- package/dist/storage/index.js.map +1 -1
- package/dist/{system-prompt-CA11g6Jo.d.ts → system-prompt-C0rLCeyn.d.ts} +16 -11
- package/dist/{task-graph-D1YQbpxF.d.ts → task-graph-CikNdRTG.d.ts} +22 -22
- package/dist/types/index.d.ts +25 -25
- package/dist/types/index.js +61 -12
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +46 -45
- package/dist/utils/index.js +64 -13
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-eMXnY1_X.d.ts → wstack-paths-BQMvEllz.d.ts} +10 -3
- package/package.json +1 -1
- 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-
|
|
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-
|
|
3
|
-
import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-
|
|
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-
|
|
5
|
-
import { d as WorktreeManager } from './index-
|
|
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-
|
|
7
|
-
import { d as Context, m as Provider, Q as Tool, p as Request, q as Response, c as ContentBlock, T as TextBlock } from './context-
|
|
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,
|
|
9
|
-
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-
|
|
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-
|
|
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-
|
|
12
|
-
export { C as CompactReport, a as Compactor } from './compactor-
|
|
13
|
-
export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './permission-
|
|
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-
|
|
16
|
-
export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-
|
|
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-
|
|
21
|
-
export { a as DefaultLoggerOptions } from './logger-
|
|
22
|
-
import { D as DefaultPathResolver } from './path-resolver-
|
|
23
|
-
export { a as DefaultTokenCounter } from './path-resolver-
|
|
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-
|
|
27
|
-
import { a as SkillLoader } from './skill-
|
|
28
|
-
export { S as SkillEntry, b as SkillManifest } from './skill-
|
|
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-
|
|
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-
|
|
32
|
-
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-
|
|
33
|
-
import { c as ModeStore } from './mode-
|
|
34
|
-
export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-
|
|
35
|
-
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-
|
|
36
|
-
import { l as TaskGraph, r as TaskType, n as TaskPriority, m as TaskNode } from './task-graph-
|
|
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-
|
|
38
|
-
import { T as Tracer, e as MetricsSink, b as HealthRegistry } from './observability-
|
|
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-
|
|
40
|
-
import { S as SystemPromptContributor, E as ExtensionRegistry, t as ToolRegistry, m as ProviderRegistry, p as ToolCallPipelinePayload } from './index-
|
|
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-
|
|
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-
|
|
45
|
-
export { W as WstackPathOptions, p as projectHash, r as resolveWstackPaths } from './wstack-paths-
|
|
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-
|
|
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-
|
|
48
|
-
export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-
|
|
49
|
-
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
63
|
-
import { a as RetryPolicy, E as ErrorHandler } from './retry-policy-
|
|
64
|
-
import { a as Logger } from './logger-
|
|
65
|
-
export { L as LogLevel } from './logger-
|
|
66
|
-
export { M as ModelsDevPayload, a as ModelsDevProvider, b as ModelsRegistry, R as ResolvedModel, c as ResolvedProvider, W as WireFamily } from './models-registry-
|
|
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-
|
|
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[];
|
|
@@ -968,6 +968,79 @@ declare function loadPlugins(plugins: Plugin[], opts: LoadPluginsOptions): Promi
|
|
|
968
968
|
*/
|
|
969
969
|
declare function unloadPlugins(loadedPlugins: Plugin[], opts: LoadPluginsOptions): Promise<void>;
|
|
970
970
|
|
|
971
|
+
/**
|
|
972
|
+
* Prompt refinement ("did you mean this?").
|
|
973
|
+
*
|
|
974
|
+
* Runs a one-shot LLM call in a SEPARATE context (its own system prompt, no
|
|
975
|
+
* conversation history, no tools) that rewrites a raw user message into a
|
|
976
|
+
* clearer, more complete instruction BEFORE the main agent sees it. The goal
|
|
977
|
+
* is to make the main context start from a well-understood request rather than
|
|
978
|
+
* guessing intent from terse input like "fix the bug".
|
|
979
|
+
*
|
|
980
|
+
* This mirrors `IntelligentCompactor.callSummarizer` — a plain
|
|
981
|
+
* `provider.complete()` with a dedicated system prompt — and is deliberately
|
|
982
|
+
* free of React / TUI dependencies so it can be unit-tested in isolation.
|
|
983
|
+
*/
|
|
984
|
+
declare const ENHANCER_SYSTEM_PROMPT = "You are a request refiner embedded in a coding agent. Your ONLY job is to rewrite the user's message into a single, clearer, unambiguous instruction that the coding agent can act on confidently.\n\nRules:\n- Preserve the user's intent and scope EXACTLY. Do not add new requirements, features, constraints, or steps the user did not ask for. Do not remove anything they did ask for.\n- Do NOT answer, solve, or perform the request. Only restate it more clearly.\n- Keep all concrete details verbatim: file paths, identifiers, code, error text, numbers, names, URLs.\n- Resolve obvious ambiguity by making the implied subject explicit, not by inventing specifics. If something is genuinely unspecified, leave it general rather than guessing.\n- Be concise: one tight instruction (a few sentences at most). No preamble, no explanation, no quotes, no markdown headers.\n- If the message is already clear and complete, return it essentially unchanged.\n- Preserve the user's language (if they wrote in Turkish, refine in Turkish).\n\nWhen earlier conversation turns are provided, they are CONTEXT ONLY. Use them to resolve references in the user's latest message \u2014 \"it\", \"that\", \"the same\", \"the other one\", \"this file\", \"again\" \u2014 so the refined instruction is self-contained. Refine ONLY the user's latest message; do not answer it, do not act on or restate earlier turns, and do not summarize the conversation.\n\nOutput ONLY the refined request text \u2014 nothing else.";
|
|
985
|
+
/**
|
|
986
|
+
* Heuristic gate: should this raw input be sent through the refiner at all?
|
|
987
|
+
* Pure + exported for unit testing. Returns false for inputs where refinement
|
|
988
|
+
* is pointless or unwanted (slash commands, one-word affirmations, trivially
|
|
989
|
+
* short text, bare numbers).
|
|
990
|
+
*/
|
|
991
|
+
declare function shouldEnhance(text: string): boolean;
|
|
992
|
+
/**
|
|
993
|
+
* Normalize for "did the refiner actually change anything?" comparison —
|
|
994
|
+
* collapse whitespace and lowercase so trivial reformatting doesn't trigger
|
|
995
|
+
* the confirmation panel.
|
|
996
|
+
*/
|
|
997
|
+
declare function normalizedEqual(a: string, b: string): boolean;
|
|
998
|
+
/** A single text-only conversation turn used as refiner context. */
|
|
999
|
+
interface ConversationTurn {
|
|
1000
|
+
role: 'user' | 'assistant';
|
|
1001
|
+
text: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface EnhanceUserPromptOptions {
|
|
1004
|
+
provider: Provider;
|
|
1005
|
+
model: string;
|
|
1006
|
+
text: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* Recent conversation turns (oldest→newest), text only, used purely as
|
|
1009
|
+
* CONTEXT so the refiner can resolve references in a follow-up message
|
|
1010
|
+
* ("it", "the same", "that file"). Without this, the refiner is blind to
|
|
1011
|
+
* the conversation and can only refine self-contained prompts. Build with
|
|
1012
|
+
* `recentTextTurns(ctx.messages)`.
|
|
1013
|
+
*/
|
|
1014
|
+
history?: ConversationTurn[] | undefined;
|
|
1015
|
+
/** Parent abort signal (e.g. the run controller / Esc). */
|
|
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
|
+
/** Max tokens for the refined output. Default 2048. */
|
|
1020
|
+
maxTokens?: number | undefined;
|
|
1021
|
+
/**
|
|
1022
|
+
* Called with a short reason when refinement fails (provider error, timeout,
|
|
1023
|
+
* empty response). NOT called when the caller cancels via `signal`. Lets the
|
|
1024
|
+
* UI surface *why* a refine fell through instead of a generic message.
|
|
1025
|
+
*/
|
|
1026
|
+
onError?: ((reason: string) => void) | undefined;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Refine a raw user prompt. Returns the refined text, or `null` when the
|
|
1030
|
+
* caller should fall back to the original (refiner errored, timed out, was
|
|
1031
|
+
* aborted, or returned nothing useful). NEVER throws — refinement is a
|
|
1032
|
+
* best-effort convenience and must never block the user from sending.
|
|
1033
|
+
*/
|
|
1034
|
+
declare function enhanceUserPrompt(opts: EnhanceUserPromptOptions): Promise<string | null>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Extract the last few user/assistant TEXT turns from a conversation, newest
|
|
1037
|
+
* last, for use as refiner context. Skips system messages and tool-only turns
|
|
1038
|
+
* (tool_use / tool_result carry no useful natural-language context and bloat
|
|
1039
|
+
* the call). Each turn is truncated to `maxChars`; at most `maxTurns` are
|
|
1040
|
+
* returned. Pure + exported for unit testing.
|
|
1041
|
+
*/
|
|
1042
|
+
declare function recentTextTurns(messages: Message[], maxTurns?: number, maxChars?: number): ConversationTurn[];
|
|
1043
|
+
|
|
971
1044
|
type PhaseStatus = 'pending' | 'ready' | 'running' | 'paused' | 'completed' | 'failed' | 'skipped';
|
|
972
1045
|
interface PhaseNode {
|
|
973
1046
|
id: string;
|
|
@@ -988,15 +1061,15 @@ interface PhaseNode {
|
|
|
988
1061
|
/** Tahmini süre (saat) */
|
|
989
1062
|
estimateHours: number;
|
|
990
1063
|
/** Gerçekleşen süre (ms) */
|
|
991
|
-
actualDurationMs?: number;
|
|
1064
|
+
actualDurationMs?: number | undefined;
|
|
992
1065
|
/** Başlangıç zamanı */
|
|
993
|
-
startedAt?: number;
|
|
1066
|
+
startedAt?: number | undefined;
|
|
994
1067
|
/** Bitiş zamanı */
|
|
995
|
-
completedAt?: number;
|
|
1068
|
+
completedAt?: number | undefined;
|
|
996
1069
|
/** Bu fazda atanmış agent'lar */
|
|
997
1070
|
assignedAgents: string[];
|
|
998
1071
|
/** Faz metadata */
|
|
999
|
-
metadata?: Record<string, unknown
|
|
1072
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1000
1073
|
createdAt: number;
|
|
1001
1074
|
updatedAt: number;
|
|
1002
1075
|
}
|
|
@@ -1020,8 +1093,8 @@ interface PhaseGraph {
|
|
|
1020
1093
|
stopOnComplete: boolean;
|
|
1021
1094
|
createdAt: number;
|
|
1022
1095
|
updatedAt: number;
|
|
1023
|
-
startedAt?: number;
|
|
1024
|
-
completedAt?: number;
|
|
1096
|
+
startedAt?: number | undefined;
|
|
1097
|
+
completedAt?: number | undefined;
|
|
1025
1098
|
}
|
|
1026
1099
|
interface PhaseProgress {
|
|
1027
1100
|
totalPhases: number;
|
|
@@ -1057,7 +1130,7 @@ interface PhaseEventMap {
|
|
|
1057
1130
|
'phase.failed': {
|
|
1058
1131
|
phaseId: string;
|
|
1059
1132
|
name: string;
|
|
1060
|
-
error?: string;
|
|
1133
|
+
error?: string | undefined;
|
|
1061
1134
|
};
|
|
1062
1135
|
'phase.taskCompleted': {
|
|
1063
1136
|
phaseId: string;
|
|
@@ -1091,7 +1164,7 @@ interface PhaseEventMap {
|
|
|
1091
1164
|
phaseId: string;
|
|
1092
1165
|
name: string;
|
|
1093
1166
|
attempt: number;
|
|
1094
|
-
error?: string;
|
|
1167
|
+
error?: string | undefined;
|
|
1095
1168
|
};
|
|
1096
1169
|
'phase.repairing': {
|
|
1097
1170
|
phaseId: string;
|
|
@@ -1136,8 +1209,8 @@ interface PhaseExecutionContext {
|
|
|
1136
1209
|
* worktree'sine (varsa) işaret eder; agent'ı izole çalışma dizininde koştur.
|
|
1137
1210
|
*/
|
|
1138
1211
|
executeTask: (task: TaskNode, phaseId: string, env?: {
|
|
1139
|
-
cwd?: string;
|
|
1140
|
-
branch?: string;
|
|
1212
|
+
cwd?: string | undefined;
|
|
1213
|
+
branch?: string | undefined;
|
|
1141
1214
|
}) => Promise<unknown>;
|
|
1142
1215
|
/**
|
|
1143
1216
|
* Opsiyonel doğrulama kapısı. Bir fazın tüm görevleri bittikten *sonra*,
|
|
@@ -1149,11 +1222,11 @@ interface PhaseExecutionContext {
|
|
|
1149
1222
|
* Tanımlanmazsa kapı atlanır (geriye dönük uyumlu — eski davranış).
|
|
1150
1223
|
*/
|
|
1151
1224
|
verifyPhase?: (phase: PhaseNode, env?: {
|
|
1152
|
-
cwd?: string;
|
|
1153
|
-
branch?: string;
|
|
1225
|
+
cwd?: string | undefined;
|
|
1226
|
+
branch?: string | undefined;
|
|
1154
1227
|
}) => Promise<{
|
|
1155
1228
|
ok: boolean;
|
|
1156
|
-
output?: string;
|
|
1229
|
+
output?: string | undefined;
|
|
1157
1230
|
}>;
|
|
1158
1231
|
/**
|
|
1159
1232
|
* Opsiyonel onarım geçişi. `verifyPhase` başarısız olduğunda, yakalanan hata
|
|
@@ -1162,8 +1235,8 @@ interface PhaseExecutionContext {
|
|
|
1162
1235
|
* yeniden koşar. `verifyPhase` tanımlı değilse hiç çağrılmaz.
|
|
1163
1236
|
*/
|
|
1164
1237
|
repairPhase?: (phase: PhaseNode, failure: string, attempt: number, env?: {
|
|
1165
|
-
cwd?: string;
|
|
1166
|
-
branch?: string;
|
|
1238
|
+
cwd?: string | undefined;
|
|
1239
|
+
branch?: string | undefined;
|
|
1167
1240
|
}) => Promise<void>;
|
|
1168
1241
|
/**
|
|
1169
1242
|
* Opsiyonel birleştirme-çakışması çözücü. Bir fazın worktree'si ana branch'e
|
|
@@ -1178,9 +1251,9 @@ interface PhaseExecutionContext {
|
|
|
1178
1251
|
cwd: string;
|
|
1179
1252
|
}) => Promise<boolean>;
|
|
1180
1253
|
/** Opsiyonel global Brain arbiter: policy/karar/escalation katmanı. */
|
|
1181
|
-
brain?: BrainArbiter;
|
|
1254
|
+
brain?: BrainArbiter | undefined;
|
|
1182
1255
|
/** Bir faz tamamlandığında çağrılır */
|
|
1183
|
-
onPhaseComplete?: (phase: PhaseNode) => void;
|
|
1256
|
+
onPhaseComplete?: ((phase: PhaseNode) => void) | undefined;
|
|
1184
1257
|
/** Bir faz başarısız olduğunda çağrılır */
|
|
1185
1258
|
onPhaseFail?: (phase: PhaseNode, error: Error) => void;
|
|
1186
1259
|
/** Her tick'te çağrılır (otonom modda) */
|
|
@@ -1191,35 +1264,35 @@ interface PhaseExecutionContext {
|
|
|
1191
1264
|
}
|
|
1192
1265
|
interface AutoPhaseOptions {
|
|
1193
1266
|
/** Maksimum parallel faz sayısı */
|
|
1194
|
-
maxConcurrentPhases?: number;
|
|
1267
|
+
maxConcurrentPhases?: number | undefined;
|
|
1195
1268
|
/** Maksimum parallel görev sayısı (faz içinde) */
|
|
1196
|
-
maxConcurrentTasks?: number;
|
|
1269
|
+
maxConcurrentTasks?: number | undefined;
|
|
1197
1270
|
/** Başarısız görev retry sayısı */
|
|
1198
|
-
maxRetries?: number;
|
|
1271
|
+
maxRetries?: number | undefined;
|
|
1199
1272
|
/**
|
|
1200
1273
|
* Doğrulama kapısı başarısız olduğunda yapılacak maksimum onarım denemesi.
|
|
1201
1274
|
* Toplam doğrulama koşusu = maxVerifyAttempts + 1 (ilk koşu + her onarım
|
|
1202
1275
|
* sonrası yeniden koşu). Varsayılan 2. `verifyPhase` verilmezse etkisizdir.
|
|
1203
1276
|
*/
|
|
1204
|
-
maxVerifyAttempts?: number;
|
|
1277
|
+
maxVerifyAttempts?: number | undefined;
|
|
1205
1278
|
/** Otonom mod: faz tamamlandıkça otomatik sonrakine geç */
|
|
1206
|
-
autonomous?: boolean;
|
|
1279
|
+
autonomous?: boolean | undefined;
|
|
1207
1280
|
/** Fazlar arası bekleme süresi (ms) */
|
|
1208
|
-
phaseDelayMs?: number;
|
|
1281
|
+
phaseDelayMs?: number | undefined;
|
|
1209
1282
|
/** Bir faz failed olursa dur */
|
|
1210
|
-
stopOnFailure?: boolean;
|
|
1283
|
+
stopOnFailure?: boolean | undefined;
|
|
1211
1284
|
/** Event bus */
|
|
1212
|
-
events?: EventBus;
|
|
1285
|
+
events?: EventBus | undefined;
|
|
1213
1286
|
/**
|
|
1214
1287
|
* Opsiyonel git-worktree yöneticisi. Verilirse her faz kendi
|
|
1215
1288
|
* worktree+branch'inde izole çalışır ve tamamlanınca ana branch'e sıralı
|
|
1216
1289
|
* squash-merge edilir. Yoksa davranış değişmez (paylaşılan working tree).
|
|
1217
1290
|
*/
|
|
1218
|
-
worktrees?: WorktreeManager;
|
|
1291
|
+
worktrees?: WorktreeManager | undefined;
|
|
1219
1292
|
}
|
|
1220
1293
|
interface PhaseFilter {
|
|
1221
|
-
status?: PhaseStatus[];
|
|
1222
|
-
priority?: PhaseNode['priority'][];
|
|
1294
|
+
status?: PhaseStatus[] | undefined;
|
|
1295
|
+
priority?: PhaseNode['priority'][] | undefined;
|
|
1223
1296
|
}
|
|
1224
1297
|
interface PhaseSort {
|
|
1225
1298
|
field: 'priority' | 'createdAt' | 'startedAt' | 'completedAt';
|
|
@@ -1238,28 +1311,28 @@ interface PhaseTemplate {
|
|
|
1238
1311
|
type: TaskType;
|
|
1239
1312
|
priority: TaskPriority;
|
|
1240
1313
|
estimateHours: number;
|
|
1241
|
-
tags?: string[];
|
|
1314
|
+
tags?: string[] | undefined;
|
|
1242
1315
|
}>;
|
|
1243
1316
|
}
|
|
1244
1317
|
|
|
1245
1318
|
interface AutoPhaseRunnerOptions extends AutoPhaseOptions {
|
|
1246
1319
|
/** Proje başlığı */
|
|
1247
1320
|
title: string;
|
|
1248
|
-
description?: string;
|
|
1321
|
+
description?: string | undefined;
|
|
1249
1322
|
/** Faz şablonları */
|
|
1250
1323
|
phases: PhaseTemplate[];
|
|
1251
1324
|
/** Task çalıştırma fonksiyonu */
|
|
1252
1325
|
executeTask: PhaseExecutionContext['executeTask'];
|
|
1253
1326
|
/** Opsiyonel doğrulama kapısı */
|
|
1254
|
-
verifyPhase?: PhaseExecutionContext['verifyPhase'];
|
|
1327
|
+
verifyPhase?: PhaseExecutionContext['verifyPhase'] | undefined;
|
|
1255
1328
|
/** Doğrulama başarısız olduğunda opsiyonel onarım geçişi */
|
|
1256
|
-
repairPhase?: PhaseExecutionContext['repairPhase'];
|
|
1329
|
+
repairPhase?: PhaseExecutionContext['repairPhase'] | undefined;
|
|
1257
1330
|
/** Worktree merge çakışmaları için opsiyonel çözücü */
|
|
1258
|
-
resolveConflict?: PhaseExecutionContext['resolveConflict'];
|
|
1331
|
+
resolveConflict?: PhaseExecutionContext['resolveConflict'] | undefined;
|
|
1259
1332
|
/** Opsiyonel Brain arbiter */
|
|
1260
|
-
brain?: PhaseExecutionContext['brain'];
|
|
1333
|
+
brain?: PhaseExecutionContext['brain'] | undefined;
|
|
1261
1334
|
/** Faz tamamlandığında */
|
|
1262
|
-
onPhaseComplete?: (phase: PhaseNode) => void;
|
|
1335
|
+
onPhaseComplete?: (((phase: PhaseNode) => void)) | undefined;
|
|
1263
1336
|
/** Faz başarısız olduğunda */
|
|
1264
1337
|
onPhaseFail?: (phase: PhaseNode, error: Error) => void;
|
|
1265
1338
|
/** Her tick'te */
|
|
@@ -1268,9 +1341,9 @@ interface AutoPhaseRunnerOptions extends AutoPhaseOptions {
|
|
|
1268
1341
|
readyPhases: PhaseNode[];
|
|
1269
1342
|
}) => void;
|
|
1270
1343
|
/** Progress değiştiğinde */
|
|
1271
|
-
onProgress?: (progress: PhaseProgress) => void;
|
|
1344
|
+
onProgress?: (((progress: PhaseProgress) => void)) | undefined;
|
|
1272
1345
|
/** Graph tamamlandığında */
|
|
1273
|
-
onComplete?: (graph: PhaseGraph) => void;
|
|
1346
|
+
onComplete?: (((graph: PhaseGraph) => void)) | undefined;
|
|
1274
1347
|
/** Graph başarısız olduğunda */
|
|
1275
1348
|
onFail?: (graph: PhaseGraph, failedPhase: PhaseNode, error: Error) => void;
|
|
1276
1349
|
}
|
|
@@ -1313,8 +1386,8 @@ declare class AutoPhaseRunner {
|
|
|
1313
1386
|
* Quick-start helper: Var olan bir TaskGraph'tan AutoPhaseRunner oluştur.
|
|
1314
1387
|
*/
|
|
1315
1388
|
declare function createAutoPhaseFromTaskGraph(taskGraph: TaskGraph, options: Omit<AutoPhaseRunnerOptions, 'phases' | 'title'> & {
|
|
1316
|
-
title?: string;
|
|
1317
|
-
tasksPerPhase?: number;
|
|
1389
|
+
title?: string | undefined;
|
|
1390
|
+
tasksPerPhase?: number | undefined;
|
|
1318
1391
|
}): Promise<AutoPhaseRunner>;
|
|
1319
1392
|
|
|
1320
1393
|
interface PhaseOrchestratorOptions extends AutoPhaseOptions {
|
|
@@ -1423,15 +1496,15 @@ declare class PhaseOrchestrator {
|
|
|
1423
1496
|
|
|
1424
1497
|
interface PhaseGraphBuilderOptions {
|
|
1425
1498
|
title: string;
|
|
1426
|
-
description?: string;
|
|
1499
|
+
description?: string | undefined;
|
|
1427
1500
|
/** Faz şablonları (sıralı) */
|
|
1428
1501
|
phases: PhaseTemplate[];
|
|
1429
1502
|
/** Otonom mod */
|
|
1430
|
-
autonomous?: boolean;
|
|
1503
|
+
autonomous?: boolean | undefined;
|
|
1431
1504
|
/** Başarısızlıkta dur */
|
|
1432
|
-
stopOnFailure?: boolean;
|
|
1505
|
+
stopOnFailure?: boolean | undefined;
|
|
1433
1506
|
/** Harici TaskStore (opsiyonel) */
|
|
1434
|
-
externalTaskStore?: TaskStore;
|
|
1507
|
+
externalTaskStore?: TaskStore | undefined;
|
|
1435
1508
|
}
|
|
1436
1509
|
/**
|
|
1437
1510
|
* PhaseGraphBuilder — Projeyi fazlara bölen ve her faz için task graph oluşturan builder.
|
|
@@ -1459,7 +1532,7 @@ declare class PhaseGraphBuilder {
|
|
|
1459
1532
|
*/
|
|
1460
1533
|
static fromTaskGraph(taskGraph: TaskGraph, options: Omit<PhaseGraphBuilderOptions, 'phases'> & {
|
|
1461
1534
|
/** Faz başına düşen task sayısı (default: 5) */
|
|
1462
|
-
tasksPerPhase?: number;
|
|
1535
|
+
tasksPerPhase?: number | undefined;
|
|
1463
1536
|
}): Promise<PhaseGraph>;
|
|
1464
1537
|
}
|
|
1465
1538
|
|
|
@@ -1485,13 +1558,13 @@ interface AutoPhasePlannerOptions {
|
|
|
1485
1558
|
/** Hedef/proje başlığı. */
|
|
1486
1559
|
goal: string;
|
|
1487
1560
|
/** package.json/dizin yapısı gibi opsiyonel proje bağlamı. */
|
|
1488
|
-
projectContext?: string;
|
|
1561
|
+
projectContext?: string | undefined;
|
|
1489
1562
|
/** İstenen minimum faz sayısı (default 3). */
|
|
1490
|
-
minPhases?: number;
|
|
1563
|
+
minPhases?: number | undefined;
|
|
1491
1564
|
/** İstenen maksimum faz sayısı (default 8). */
|
|
1492
|
-
maxPhases?: number;
|
|
1565
|
+
maxPhases?: number | undefined;
|
|
1493
1566
|
/** Faz başına hedeflenen todo sayısı (default 6). */
|
|
1494
|
-
todosPerPhase?: number;
|
|
1567
|
+
todosPerPhase?: number | undefined;
|
|
1495
1568
|
}
|
|
1496
1569
|
interface AutoPhasePlanResult {
|
|
1497
1570
|
/** PhaseGraphBuilder'a verilecek faz şablonları. */
|
|
@@ -1556,12 +1629,12 @@ interface Checkpoint {
|
|
|
1556
1629
|
title: string;
|
|
1557
1630
|
}>;
|
|
1558
1631
|
timestamp: number;
|
|
1559
|
-
label?: string;
|
|
1632
|
+
label?: string | undefined;
|
|
1560
1633
|
}
|
|
1561
1634
|
interface CheckpointManagerOptions {
|
|
1562
1635
|
store: PhaseStore;
|
|
1563
|
-
maxCheckpoints?: number;
|
|
1564
|
-
baseDir?: string;
|
|
1636
|
+
maxCheckpoints?: number | undefined;
|
|
1637
|
+
baseDir?: string | undefined;
|
|
1565
1638
|
}
|
|
1566
1639
|
/**
|
|
1567
1640
|
* CheckpointManager — Phase graph'ın anlık görüntülerini alır ve geri yükler.
|
|
@@ -1756,15 +1829,15 @@ interface CollabPauseMiddlewareOptions {
|
|
|
1756
1829
|
* Defaults to 60_000 ms. Set to 0 for an unbounded wait (the
|
|
1757
1830
|
* caller is then responsible for cancellation via the bus itself).
|
|
1758
1831
|
*/
|
|
1759
|
-
defaultTimeoutMs?: number;
|
|
1832
|
+
defaultTimeoutMs?: number | undefined;
|
|
1760
1833
|
/**
|
|
1761
1834
|
* Optional logger — receives a debug line on pause entry and on
|
|
1762
1835
|
* timeout-driven auto-resume. Matches the `Logger` token surface
|
|
1763
1836
|
* so the runtime can pass its existing logger.
|
|
1764
1837
|
*/
|
|
1765
1838
|
logger?: {
|
|
1766
|
-
debug?: (msg: string) => void;
|
|
1767
|
-
warn?: (msg: string) => void;
|
|
1839
|
+
debug?: ((msg: string) => void) | undefined;
|
|
1840
|
+
warn?: ((msg: string) => void) | undefined;
|
|
1768
1841
|
};
|
|
1769
1842
|
}
|
|
1770
1843
|
declare function collabPauseMiddleware(bus: CollaborationBus, opts?: CollabPauseMiddlewareOptions): (payload: ToolCallPipelinePayload, next: () => Promise<void>) => Promise<void>;
|
|
@@ -1797,8 +1870,8 @@ declare function collabPauseMiddleware(bus: CollaborationBus, opts?: CollabPause
|
|
|
1797
1870
|
*/
|
|
1798
1871
|
declare function collabInjectMiddleware(bus: CollaborationBus, opts?: {
|
|
1799
1872
|
logger?: {
|
|
1800
|
-
debug?: (msg: string) => void;
|
|
1801
|
-
warn?: (msg: string) => void;
|
|
1873
|
+
debug?: ((msg: string) => void) | undefined;
|
|
1874
|
+
warn?: ((msg: string) => void) | undefined;
|
|
1802
1875
|
};
|
|
1803
1876
|
}): (payload: ToolCallPipelinePayload, next: () => Promise<void>) => Promise<void>;
|
|
1804
1877
|
|
|
@@ -1871,8 +1944,8 @@ interface ReplayProviderRunnerOptions {
|
|
|
1871
1944
|
* upstream).
|
|
1872
1945
|
*/
|
|
1873
1946
|
logger?: {
|
|
1874
|
-
debug?: (msg: string) => void;
|
|
1875
|
-
warn?: (msg: string) => void;
|
|
1947
|
+
debug?: ((msg: string) => void) | undefined;
|
|
1948
|
+
warn?: ((msg: string) => void) | undefined;
|
|
1876
1949
|
};
|
|
1877
1950
|
}
|
|
1878
1951
|
declare class ReplayProviderRunner implements ProviderRunner {
|
|
@@ -1883,8 +1956,8 @@ declare class ReplayProviderRunner implements ProviderRunner {
|
|
|
1883
1956
|
}
|
|
1884
1957
|
|
|
1885
1958
|
interface PromptsPluginOptions {
|
|
1886
|
-
store?: DefaultPromptStore;
|
|
1887
|
-
paths?: WstackPaths;
|
|
1959
|
+
store?: DefaultPromptStore | undefined;
|
|
1960
|
+
paths?: WstackPaths | undefined;
|
|
1888
1961
|
}
|
|
1889
1962
|
/**
|
|
1890
1963
|
* PromptsPlugin — built-in prompt library.
|
|
@@ -1896,8 +1969,8 @@ interface PromptsPluginOptions {
|
|
|
1896
1969
|
declare function createPromptsPlugin(opts?: PromptsPluginOptions): Plugin;
|
|
1897
1970
|
|
|
1898
1971
|
interface SyncPluginOptions {
|
|
1899
|
-
paths?: WstackPaths;
|
|
1900
|
-
configStore?: ConfigStore;
|
|
1972
|
+
paths?: WstackPaths | undefined;
|
|
1973
|
+
configStore?: ConfigStore | undefined;
|
|
1901
1974
|
/** Secret vault for encrypting the GitHub token before persisting to disk. */
|
|
1902
1975
|
vault?: {
|
|
1903
1976
|
encrypt(plaintext: string): string;
|
|
@@ -1924,8 +1997,8 @@ declare function createSyncPlugin(opts?: SyncPluginOptions): Plugin;
|
|
|
1924
1997
|
declare function createGitPlugin(): Plugin;
|
|
1925
1998
|
|
|
1926
1999
|
interface ObservabilityPluginOptions {
|
|
1927
|
-
metricsSink?: MetricsSink;
|
|
1928
|
-
healthRegistry?: HealthRegistry;
|
|
2000
|
+
metricsSink?: MetricsSink | undefined;
|
|
2001
|
+
healthRegistry?: HealthRegistry | undefined;
|
|
1929
2002
|
}
|
|
1930
2003
|
/**
|
|
1931
2004
|
* ObservabilityPlugin — runtime metrics + health checks.
|
|
@@ -1946,7 +2019,7 @@ declare function createObservabilityPlugin(opts?: ObservabilityPluginOptions): P
|
|
|
1946
2019
|
declare function createSecurityPlugin(): Plugin;
|
|
1947
2020
|
|
|
1948
2021
|
interface SkillsPluginOptions {
|
|
1949
|
-
skillLoader?: SkillLoader;
|
|
2022
|
+
skillLoader?: SkillLoader | undefined;
|
|
1950
2023
|
}
|
|
1951
2024
|
/**
|
|
1952
2025
|
* SkillsPlugin — skill library + installer.
|
|
@@ -1959,7 +2032,7 @@ interface SkillsPluginOptions {
|
|
|
1959
2032
|
declare function createSkillsPlugin(opts?: SkillsPluginOptions): Plugin;
|
|
1960
2033
|
|
|
1961
2034
|
interface PlanPluginOptions {
|
|
1962
|
-
paths?: WstackPaths;
|
|
2035
|
+
paths?: WstackPaths | undefined;
|
|
1963
2036
|
}
|
|
1964
2037
|
/**
|
|
1965
2038
|
* PlanPlugin — strategic plan board (`/plan`), the higher-level counterpart to
|
|
@@ -1969,4 +2042,4 @@ interface PlanPluginOptions {
|
|
|
1969
2042
|
*/
|
|
1970
2043
|
declare function createPlanPlugin(opts?: PlanPluginOptions): Plugin;
|
|
1971
2044
|
|
|
1972
|
-
export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, parseContinueDirective, pendingBtwCount, phaseForRole, resolveModelMatrix, runProviderWithRetry, runShellHook, securitySlashCommand, setBtwNote, stableStringify, unloadPlugins };
|
|
2045
|
+
export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, type ConversationTurn, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, ENHANCER_SYSTEM_PROMPT, type EnhanceUserPromptOptions, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, Message, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolCallPipelinePayload, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, enhanceUserPrompt, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, normalizedEqual, parseContinueDirective, pendingBtwCount, phaseForRole, recentTextTurns, resolveModelMatrix, runProviderWithRetry, runShellHook, securitySlashCommand, setBtwNote, shouldEnhance, stableStringify, unloadPlugins };
|