@wrongstack/core 0.148.0 → 0.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-bridge-r9y6gdn4.d.ts → agent-bridge-BbZU5TPN.d.ts} +1 -1
- package/dist/{agent-subagent-runner-1GeQE_L0.d.ts → agent-subagent-runner-Bsueu0J2.d.ts} +2 -2
- package/dist/{brain-Cp_3GIS2.d.ts → brain-CS_B0vIE.d.ts} +2 -0
- package/dist/coordination/index.d.ts +7 -7
- package/dist/coordination/index.js +143 -6
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +13 -13
- package/dist/defaults/index.js +223 -65
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +6 -6
- package/dist/execution/index.js +143 -6
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +2 -2
- package/dist/{goal-preamble-CYJLg0wk.d.ts → goal-preamble-CbV8pXLD.d.ts} +3 -3
- package/dist/{index-CPweVoFM.d.ts → index-B5wz-GXm.d.ts} +1 -1
- package/dist/{index-BZdezm3g.d.ts → index-CI1hRfPt.d.ts} +2 -2
- package/dist/index.d.ts +22 -22
- package/dist/index.js +233 -70
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +3 -3
- package/dist/infrastructure/index.js +11 -2
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +3 -3
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-Bl5LTvQg.d.ts → mcp-servers-CPERR2De.d.ts} +8 -1
- package/dist/{multi-agent-coordinator-QWEzJDlm.d.ts → multi-agent-coordinator-BSKSFNhv.d.ts} +1 -1
- package/dist/{null-fleet-bus-BUyfqh23.d.ts → null-fleet-bus-CGOez8Le.d.ts} +4 -4
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-C75QuhAI.d.ts → parallel-eternal-engine-CYoTKjsz.d.ts} +4 -4
- package/dist/{path-resolver-DRjQBkoO.d.ts → path-resolver-DuhlmPil.d.ts} +1 -1
- package/dist/{plan-templates-CkKNPU3I.d.ts → plan-templates-DbH7lg-t.d.ts} +2 -2
- package/dist/{provider-runner-BNpuIyOL.d.ts → provider-runner-Cocq0O9E.d.ts} +1 -1
- package/dist/sdd/index.d.ts +3 -3
- package/dist/sdd/index.js +143 -6
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-DoISxaKO.d.ts → secret-vault-BJDY28ev.d.ts} +7 -1
- package/dist/{secret-vault-BTcC_T5v.d.ts → secret-vault-w8MbUe2Q.d.ts} +1 -1
- package/dist/security/index.d.ts +2 -2
- package/dist/security/index.js +59 -22
- package/dist/security/index.js.map +1 -1
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js +76 -42
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +11 -11
- package/dist/types/index.js +59 -22
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +65 -1
- package/dist/utils/index.js +61 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, v as ProviderRunnerFn, t as ProviderRunnerWrapper } from '../index-
|
|
1
|
+
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, v as ProviderRunnerFn, t as ProviderRunnerWrapper } from '../index-B5wz-GXm.js';
|
|
2
2
|
import '../context-C7G_MtLV.js';
|
|
3
3
|
import '../logger-B63L5bTg.js';
|
|
4
4
|
import '../pipeline-BG7UgbDc.js';
|
|
5
5
|
import '../config-BaVThgnT.js';
|
|
6
6
|
import '../observability-D-HZN_mF.js';
|
|
7
|
-
import '../brain-
|
|
7
|
+
import '../brain-CS_B0vIE.js';
|
|
8
8
|
import '../permission-B7nKnEvQ.js';
|
|
@@ -3,12 +3,12 @@ import { W as WstackPaths } from './wstack-paths-DD50Omgn.js';
|
|
|
3
3
|
import { P as Provider, C as Context } from './context-C7G_MtLV.js';
|
|
4
4
|
import { C as Compactor, a as CompactReport } from './compactor-BueGt7LG.js';
|
|
5
5
|
import { M as MessageSelector } from './selector-4vDFZKt3.js';
|
|
6
|
-
import { E as EventBus } from './brain-
|
|
6
|
+
import { E as EventBus } from './brain-CS_B0vIE.js';
|
|
7
7
|
import { M as MiddlewareHandler } from './pipeline-BG7UgbDc.js';
|
|
8
8
|
import { S as SessionEventBridge } from './session-event-bridge-DWlvglC2.js';
|
|
9
9
|
import { C as ContextWindowAggressiveOn, g as ContextWindowPolicy } from './config-BaVThgnT.js';
|
|
10
|
-
import { g as Agent, D as DoneCondition } from './agent-subagent-runner-
|
|
11
|
-
import { R as RunResult, S as SystemPromptContributor } from './index-
|
|
10
|
+
import { g as Agent, D as DoneCondition } from './agent-subagent-runner-Bsueu0J2.js';
|
|
11
|
+
import { R as RunResult, S as SystemPromptContributor } from './index-B5wz-GXm.js';
|
|
12
12
|
|
|
13
13
|
interface SkillLoaderOptions {
|
|
14
14
|
paths: WstackPaths;
|
|
@@ -3,7 +3,7 @@ import { L as Logger } from './logger-B63L5bTg.js';
|
|
|
3
3
|
import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-BG7UgbDc.js';
|
|
4
4
|
import { H as HookEvent, W as WireFamily, P as ProviderConfig } from './config-BaVThgnT.js';
|
|
5
5
|
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
6
|
-
import { E as EventBus } from './brain-
|
|
6
|
+
import { E as EventBus } from './brain-CS_B0vIE.js';
|
|
7
7
|
import { P as PermissionPolicy, S as SecretScrubber } from './permission-B7nKnEvQ.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as Token, a as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './pipeline-BG7UgbDc.js';
|
|
2
|
-
import { E as EventBus, l as MemoryStore, b as BrainArbiter } from './brain-
|
|
2
|
+
import { E as EventBus, l as MemoryStore, b as BrainArbiter } from './brain-CS_B0vIE.js';
|
|
3
3
|
import { C as Compactor } from './compactor-BueGt7LG.js';
|
|
4
4
|
import { j as ConfigLoader, i as ConfigStore, M as ModelsRegistry } from './config-BaVThgnT.js';
|
|
5
5
|
import { E as ErrorHandler, R as RetryPolicy } from './retry-policy-rutAfVeR.js';
|
|
@@ -8,7 +8,7 @@ import { L as Logger } from './logger-B63L5bTg.js';
|
|
|
8
8
|
import { M as ModeStore } from './mode-CZlO9iU1.js';
|
|
9
9
|
import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
|
|
10
10
|
import { P as PermissionPolicy, S as SecretScrubber } from './permission-B7nKnEvQ.js';
|
|
11
|
-
import { P as ProviderRunner } from './provider-runner-
|
|
11
|
+
import { P as ProviderRunner } from './provider-runner-Cocq0O9E.js';
|
|
12
12
|
import { c as TokenCounter, i as SessionStore } from './context-C7G_MtLV.js';
|
|
13
13
|
import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
|
|
14
14
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { S as SystemPromptBuilder, b as ModelCapabilities, B as BuildContext, C as Container, H as HookRegistry } from './pipeline-BG7UgbDc.js';
|
|
2
2
|
export { c as BindOptions, D as Decorator, F as Factory, d as Middleware, M as MiddlewareHandler, N as NextFn, P as Pipeline, e as PipelineOptions, a as Renderer, T as Token, h as hookMatcherMatches } from './pipeline-BG7UgbDc.js';
|
|
3
|
-
import { E as EventBus, l as MemoryStore, c as EventName, L as Listener, b as BrainArbiter } from './brain-
|
|
4
|
-
export { B as BrainDecision, d as BrainDecisionOption, e as BrainDecisionQueue, a as BrainDecisionRequest, f as BrainDecisionSource, g as BrainFallback, h as BrainRisk, D as DefaultBrainArbiter, i as DefaultBrainArbiterOptions, n as EventLogger, o as EventMap, H as HumanEscalatingBrainArbiter, p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, v as MemoryType, O as ObservableBrainArbiter, w as ScopedEventBus, S as ScoredEntry, j as formatHumanPrompt } from './brain-
|
|
5
|
-
import { W as WorktreeManager } from './index-
|
|
6
|
-
export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, c as WorktreeHandle, d as WorktreeManagerOptions, e as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-
|
|
3
|
+
import { E as EventBus, l as MemoryStore, c as EventName, L as Listener, b as BrainArbiter } from './brain-CS_B0vIE.js';
|
|
4
|
+
export { B as BrainDecision, d as BrainDecisionOption, e as BrainDecisionQueue, a as BrainDecisionRequest, f as BrainDecisionSource, g as BrainFallback, h as BrainRisk, D as DefaultBrainArbiter, i as DefaultBrainArbiterOptions, n as EventLogger, o as EventMap, H as HumanEscalatingBrainArbiter, p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, v as MemoryType, O as ObservableBrainArbiter, w as ScopedEventBus, S as ScoredEntry, j as formatHumanPrompt } from './brain-CS_B0vIE.js';
|
|
5
|
+
import { W as WorktreeManager } from './index-CI1hRfPt.js';
|
|
6
|
+
export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, c as WorktreeHandle, d as WorktreeManagerOptions, e as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-CI1hRfPt.js';
|
|
7
7
|
import { C as Context, P as Provider, T as Tool, R as Request, b as Response, g as ContentBlock, l as TextBlock, M as Message } from './context-C7G_MtLV.js';
|
|
8
8
|
export { A as AgentError, k as Capabilities, u as ConfigError, v as ContextInit, t as ConversationState, E as ERROR_CODES, w as ErrorCode, x as ErrorSeverity, y as ErrorSubsystem, F as FileSnapshot, z as FsError, I as ImageBlock, J as JSONSchema, B as MessageRole, f as Permission, D as PluginError, e as ProviderError, G as ProviderErrorBody, H as ReadonlyConversationState, p as ResumedSession, K as RiskTier, L as RunEnv, o as RunOptions, q as SessionData, N as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, O as StateChange, Q as StateChangeHandler, V as StopReason, W as StreamEvent, X as StreamHangError, Y as ThinkingBlock, s as TodoItem, c as TokenCounter, Z as ToolCallContext, _ as ToolError, $ as ToolFinalEvent, j as ToolProgressEvent, n as ToolResultBlock, a0 as ToolStreamEvent, m as ToolUseBlock, U as Usage, a1 as WrongStackError, a2 as asBlocks, a3 as asText, a4 as extractRunEnv, a5 as isAgentError, a6 as isConfigError, a7 as isFsError, a8 as isImageBlock, a9 as isPluginError, aa as isSessionError, ab as isTextBlock, ac as isThinkingBlock, ad as isToolError, ae as isToolResultBlock, af as isToolUseBlock, ag as isWrongStackError, ah as toWrongStackError, ai as wrapAsState } from './context-C7G_MtLV.js';
|
|
9
|
-
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-
|
|
9
|
+
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-Cocq0O9E.js';
|
|
10
10
|
import { c as MCPServerConfig, h as Config, l as HookInput, m as HookOutcome, H as HookEvent, e as HookMatcher, I as InProcessHook, d as ModelMatrixEntry, i as ConfigStore } from './config-BaVThgnT.js';
|
|
11
11
|
export { A as AutonomyConfig, n as CONTEXT_WINDOW_MODES, j as ConfigLoader, o as ContextConfig, C as ContextWindowAggressiveOn, p as ContextWindowConfigLike, q as ContextWindowMode, r as ContextWindowModeId, g as ContextWindowPolicy, s as ContextWindowThresholds, t as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, f as HookEntry, u as IndexingConfig, L as LaunchConfig, v as LogConfig, a as ModelsDevPayload, w as ModelsDevProvider, M as ModelsRegistry, x as PluginConfig, y as ProviderApiKey, P as ProviderConfig, b as ResolvedModel, R as ResolvedProvider, z as SessionLoggingConfig, S as ShellHook, B as SyncCategory, k as SyncConfig, T as ToolsConfig, W as WireFamily, E as formatContextWindowModeList, G as getContextWindowMode, J as isContextWindowModeId, K as listContextWindowModes, N as resolveContextWindowPolicy } from './config-BaVThgnT.js';
|
|
12
12
|
export { a as CompactReport, C as Compactor } from './compactor-BueGt7LG.js';
|
|
@@ -15,48 +15,48 @@ export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as
|
|
|
15
15
|
import { A as AttachmentStore, b as AttachmentRef, a as AddAttachmentInput } from './session-reader-BAtCxdaw.js';
|
|
16
16
|
export { c as Attachment, d as AttachmentKind, e as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-BAtCxdaw.js';
|
|
17
17
|
export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, b as DEFAULT_SESSION_LOGGING_CONFIG, c as DEFAULT_SESSION_PRUNE_DAYS, d as DEFAULT_TOOLS_CONFIG } from './default-config-CXsDvOmP.js';
|
|
18
|
-
import { a as DefaultSecretVault } from './secret-vault-
|
|
19
|
-
export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-
|
|
18
|
+
import { a as DefaultSecretVault } from './secret-vault-w8MbUe2Q.js';
|
|
19
|
+
export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-w8MbUe2Q.js';
|
|
20
20
|
import { D as DefaultLogger } from './logger-B9J5puGM.js';
|
|
21
21
|
export { a as DefaultLoggerOptions } from './logger-B9J5puGM.js';
|
|
22
|
-
import { D as DefaultPathResolver } from './path-resolver-
|
|
23
|
-
export { a as DefaultTokenCounter } from './path-resolver-
|
|
24
|
-
export { C as CompactorOptions, g as DEFAULT_RECOVERY_STRATEGIES, D as DefaultErrorHandler, a as DefaultRetryPolicy, E as EternalAutonomyEngine, b as EternalAutonomyOptions, c as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, d as ParallelEternalEngine, e as ParallelEternalOptions, f as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-
|
|
22
|
+
import { D as DefaultPathResolver } from './path-resolver-DuhlmPil.js';
|
|
23
|
+
export { a as DefaultTokenCounter } from './path-resolver-DuhlmPil.js';
|
|
24
|
+
export { C as CompactorOptions, g as DEFAULT_RECOVERY_STRATEGIES, D as DefaultErrorHandler, a as DefaultRetryPolicy, E as EternalAutonomyEngine, b as EternalAutonomyOptions, c as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, d as ParallelEternalEngine, e as ParallelEternalOptions, f as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-CYoTKjsz.js';
|
|
25
25
|
import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
|
|
26
26
|
export { b as SkillEntry, a as SkillManifest } from './skill-Bj6Ezqb8.js';
|
|
27
27
|
export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
|
|
28
|
-
import { z as SlashCommand, P as PluginAPI, E as PluginPipelines, G as ToolRegistryView, H as ProviderRegistryView, I as MCPRegistryView, J as SlashCommandRegistryView, K as SessionWriterView, L as MetricsSinkView, N as Plugin } from './agent-subagent-runner-
|
|
29
|
-
export { g as Agent, h as AgentFactory, i as AgentFactoryResult, j as AgentRunnerOptions, k as BudgetExceededError, l as BudgetKind, m as BudgetLimits, r as BudgetUsage, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, F as FleetBus, s as FleetEvent, t as FleetHandler, u as FleetUsage, v as FleetUsageAggregator, c as MultiAgentConfig, M as MultiAgentCoordinator, Q as PluginCapabilities, R as PluginDependency, e as SpawnResult, w as SubagentBudget, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, x as SubagentUsageSnapshot, Z as TaskDelegation, f as TaskResult, T as TaskSpec, y as makeAgentSubagentRunner } from './agent-subagent-runner-
|
|
28
|
+
import { z as SlashCommand, P as PluginAPI, E as PluginPipelines, G as ToolRegistryView, H as ProviderRegistryView, I as MCPRegistryView, J as SlashCommandRegistryView, K as SessionWriterView, L as MetricsSinkView, N as Plugin } from './agent-subagent-runner-Bsueu0J2.js';
|
|
29
|
+
export { g as Agent, h as AgentFactory, i as AgentFactoryResult, j as AgentRunnerOptions, k as BudgetExceededError, l as BudgetKind, m as BudgetLimits, r as BudgetUsage, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, F as FleetBus, s as FleetEvent, t as FleetHandler, u as FleetUsage, v as FleetUsageAggregator, c as MultiAgentConfig, M as MultiAgentCoordinator, Q as PluginCapabilities, R as PluginDependency, e as SpawnResult, w as SubagentBudget, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, x as SubagentUsageSnapshot, Z as TaskDelegation, f as TaskResult, T as TaskSpec, y as makeAgentSubagentRunner } from './agent-subagent-runner-Bsueu0J2.js';
|
|
30
30
|
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-D90K9UnM.js';
|
|
31
31
|
import { M as ModeStore } from './mode-CZlO9iU1.js';
|
|
32
32
|
export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest } from './mode-CZlO9iU1.js';
|
|
33
|
-
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-
|
|
33
|
+
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-BbZU5TPN.js';
|
|
34
34
|
export { 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 } from './spec-TBi3Jr6T.js';
|
|
35
35
|
import { d as TaskGraph, T as TaskType, a as TaskPriority, e as TaskNode } from './task-graph-u1q9Jkyk.js';
|
|
36
36
|
export { C as CriticalPathResult, f as TaskAssignment, g as TaskDependency, h as TaskEdge, i as TaskFilter, c as TaskProgress, j as TaskSort, b as TaskStatus, k as computeTaskProgress, l as findCriticalPath, t as topologicalSort } from './task-graph-u1q9Jkyk.js';
|
|
37
37
|
import { T as Tracer, M as MetricsSink, H as HealthRegistry } from './observability-D-HZN_mF.js';
|
|
38
38
|
export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, c as HealthStatus, d as MetricLabels, e as MetricSeries, f as MetricsSnapshot, S as Span } from './observability-D-HZN_mF.js';
|
|
39
|
-
import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, c as ToolCallPipelinePayload } from './index-
|
|
40
|
-
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, A as AgentPipelines, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, o as HookRunner, p as HookRunnerOptions, O as OnErrorHook, q as PreToolUseResult, r as PromptResult, s as ProviderFactory, t as ProviderRunnerWrapper, R as RunResult, d as ToolWrapper, U as UserInputPayload, u as createDefaultPipelines } from './index-
|
|
39
|
+
import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, c as ToolCallPipelinePayload } from './index-B5wz-GXm.js';
|
|
40
|
+
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, A as AgentPipelines, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, o as HookRunner, p as HookRunnerOptions, O as OnErrorHook, q as PreToolUseResult, r as PromptResult, s as ProviderFactory, t as ProviderRunnerWrapper, R as RunResult, d as ToolWrapper, U as UserInputPayload, u as createDefaultPipelines } from './index-B5wz-GXm.js';
|
|
41
41
|
export { AutonomyStage } from './types/index.js';
|
|
42
|
-
export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, FileLockOptions, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateMessageTokens, 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, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut } from './utils/index.js';
|
|
42
|
+
export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, DeepMergeOptions, FORBIDDEN_PROTO_KEYS, FileLockOptions, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isPrimitiveArray, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut } from './utils/index.js';
|
|
43
43
|
export { T as TaskItem, c as computeTaskItemProgress, f as formatTaskList, a as formatTaskProgress } from './task-format-vGOIftmK.js';
|
|
44
44
|
import { W as WstackPaths } from './wstack-paths-DD50Omgn.js';
|
|
45
45
|
export { a as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths } from './wstack-paths-DD50Omgn.js';
|
|
46
46
|
export { expectDefined } from './utils/expect-defined.js';
|
|
47
|
-
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, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as parseEntries, J as removePlanItem, K as runConfigMigrations, L as savePlan, N as saveTodosCheckpoint, O as setPlanItemStatus } from './plan-templates-
|
|
47
|
+
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, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as parseEntries, J as removePlanItem, K as runConfigMigrations, L as savePlan, N as saveTodosCheckpoint, O as setPlanItemStatus } from './plan-templates-DbH7lg-t.js';
|
|
48
48
|
export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-DWlvglC2.js';
|
|
49
49
|
export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BfeCUbmk.js';
|
|
50
50
|
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-8-6zBmfA.js';
|
|
51
|
-
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from './goal-preamble-
|
|
51
|
+
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from './goal-preamble-CbV8pXLD.js';
|
|
52
52
|
export { DefaultProviderRunner } from './defaults/index.js';
|
|
53
|
-
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-
|
|
54
|
-
export { b as AgentBudgetTier, c as AgentCapability, A as AgentDefinition, d as AgentPhase, e as DEFAULT_DISPATCH_ROLE, a as DefaultMultiAgentCoordinator, f as DispatchCandidate, D 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-
|
|
53
|
+
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-CGOez8Le.js';
|
|
54
|
+
export { b as AgentBudgetTier, c as AgentCapability, A as AgentDefinition, d as AgentPhase, e as DEFAULT_DISPATCH_ROLE, a as DefaultMultiAgentCoordinator, f as DispatchCandidate, D 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-BSKSFNhv.js';
|
|
55
55
|
export { D as DefaultModeStore, L as LLMSelector, a as LLMSelectorOptions, M as ModeLoaderOptions, l as loadProjectModes, b as loadUserModes } from './llm-selector-CP72f1lC.js';
|
|
56
56
|
import { TaskStore } from './sdd/index.js';
|
|
57
57
|
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';
|
|
58
58
|
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';
|
|
59
|
-
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,
|
|
59
|
+
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, q as slackServer, z as zaiVisionServer } from './mcp-servers-CPERR2De.js';
|
|
60
60
|
export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
|
|
61
61
|
import { ReplayLogStore, DefaultPromptStore } from './storage/index.js';
|
|
62
62
|
export { ALL_SYNC_CATEGORIES, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, ConsolidationOp, DefaultSessionRewinder, GraphMemoryBackend, GraphMemoryBackendOptions, MemoryConsolidatorOptions, PromptEntry, PromptStore, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionMemoryConsolidator, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, TaskFile, ToolAuditLog, ToolAuditLogOptions, VerifyResult, emptyTaskFile, loadTasks, saveTasks } from './storage/index.js';
|
|
@@ -64,7 +64,7 @@ export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PR
|
|
|
64
64
|
import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-rutAfVeR.js';
|
|
65
65
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
66
66
|
export { a as LogLevel } from './logger-B63L5bTg.js';
|
|
67
|
-
export { S as SecretVault } from './secret-vault-
|
|
67
|
+
export { S as SecretVault, n as noOpVault } from './secret-vault-BJDY28ev.js';
|
|
68
68
|
import './path-resolver-CPRj4bFY.js';
|
|
69
69
|
import './selector-4vDFZKt3.js';
|
|
70
70
|
import 'node:events';
|
package/dist/index.js
CHANGED
|
@@ -1186,9 +1186,75 @@ var DEFAULT_SESSION_PRUNE_DAYS = 30;
|
|
|
1186
1186
|
|
|
1187
1187
|
// src/types/secret-vault.ts
|
|
1188
1188
|
var ENCRYPTED_PREFIX = "enc:v1:";
|
|
1189
|
+
var noOpVault = {
|
|
1190
|
+
encrypt: (v) => v,
|
|
1191
|
+
decrypt: (v) => v,
|
|
1192
|
+
isEncrypted: () => false
|
|
1193
|
+
};
|
|
1189
1194
|
|
|
1190
1195
|
// src/security/secret-vault.ts
|
|
1191
1196
|
init_atomic_write();
|
|
1197
|
+
|
|
1198
|
+
// src/utils/deep-merge.ts
|
|
1199
|
+
var FORBIDDEN_PROTO_KEYS = /* @__PURE__ */ new Set([
|
|
1200
|
+
"__proto__",
|
|
1201
|
+
"constructor",
|
|
1202
|
+
"prototype",
|
|
1203
|
+
"__defineGetter__",
|
|
1204
|
+
"__defineSetter__",
|
|
1205
|
+
"__lookupGetter__",
|
|
1206
|
+
"__lookupSetter__"
|
|
1207
|
+
]);
|
|
1208
|
+
function isPrimitiveArray(a) {
|
|
1209
|
+
return a.every((v) => v === null || typeof v !== "object" && typeof v !== "function");
|
|
1210
|
+
}
|
|
1211
|
+
function deepMerge(base, patch, options = {}) {
|
|
1212
|
+
const {
|
|
1213
|
+
conflictResolution = "prefer-patch",
|
|
1214
|
+
arrayMode = "replace",
|
|
1215
|
+
protectProto = true,
|
|
1216
|
+
onNonPrimitiveArrayReplace
|
|
1217
|
+
} = options;
|
|
1218
|
+
if (typeof base !== "object" || base === null) {
|
|
1219
|
+
return conflictResolution === "prefer-patch" ? patch : base;
|
|
1220
|
+
}
|
|
1221
|
+
if (typeof patch !== "object" || patch === null) {
|
|
1222
|
+
return conflictResolution === "prefer-patch" ? patch : base;
|
|
1223
|
+
}
|
|
1224
|
+
if (Array.isArray(base) && Array.isArray(patch)) {
|
|
1225
|
+
if (arrayMode === "concat-primitives" && isPrimitiveArray(base) && isPrimitiveArray(patch)) {
|
|
1226
|
+
return [.../* @__PURE__ */ new Set([...base, ...patch])];
|
|
1227
|
+
}
|
|
1228
|
+
return conflictResolution === "prefer-patch" ? patch : base;
|
|
1229
|
+
}
|
|
1230
|
+
if (Array.isArray(base) || Array.isArray(patch)) {
|
|
1231
|
+
return conflictResolution === "prefer-patch" ? patch : base;
|
|
1232
|
+
}
|
|
1233
|
+
const baseObj = base;
|
|
1234
|
+
const patchObj = patch;
|
|
1235
|
+
const out = { ...baseObj };
|
|
1236
|
+
for (const [k, v] of Object.entries(patchObj)) {
|
|
1237
|
+
if (protectProto && FORBIDDEN_PROTO_KEYS.has(k)) continue;
|
|
1238
|
+
const existing = out[k];
|
|
1239
|
+
if (v !== null && typeof v === "object" && !Array.isArray(v) && existing !== null && typeof existing === "object" && !Array.isArray(existing)) {
|
|
1240
|
+
out[k] = deepMerge(existing, v, options);
|
|
1241
|
+
} else if (Array.isArray(v) && Array.isArray(existing)) {
|
|
1242
|
+
if (onNonPrimitiveArrayReplace && !isPrimitiveArray(v)) {
|
|
1243
|
+
onNonPrimitiveArrayReplace(k, existing.length, v.length);
|
|
1244
|
+
}
|
|
1245
|
+
out[k] = deepMerge(existing, v, options);
|
|
1246
|
+
} else if (v !== void 0) {
|
|
1247
|
+
if (onNonPrimitiveArrayReplace && Array.isArray(v) && !isPrimitiveArray(v)) {
|
|
1248
|
+
const existingLen = Array.isArray(existing) ? existing.length : 0;
|
|
1249
|
+
onNonPrimitiveArrayReplace(k, existingLen, v.length);
|
|
1250
|
+
}
|
|
1251
|
+
out[k] = v;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
return out;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
// src/security/secret-vault.ts
|
|
1192
1258
|
var KEY_BYTES = 32;
|
|
1193
1259
|
var IV_BYTES = 12;
|
|
1194
1260
|
var TAG_BYTES = 16;
|
|
@@ -1390,28 +1456,6 @@ function walkCount(node, vault, counter) {
|
|
|
1390
1456
|
}
|
|
1391
1457
|
return out;
|
|
1392
1458
|
}
|
|
1393
|
-
var FORBIDDEN_PROTO_KEYS = /* @__PURE__ */ new Set([
|
|
1394
|
-
"__proto__",
|
|
1395
|
-
"constructor",
|
|
1396
|
-
"prototype",
|
|
1397
|
-
"__defineGetter__",
|
|
1398
|
-
"__defineSetter__",
|
|
1399
|
-
"__lookupGetter__",
|
|
1400
|
-
"__lookupSetter__"
|
|
1401
|
-
]);
|
|
1402
|
-
function deepMerge(a, b) {
|
|
1403
|
-
const out = { ...a };
|
|
1404
|
-
for (const [k, v] of Object.entries(b)) {
|
|
1405
|
-
if (FORBIDDEN_PROTO_KEYS.has(k)) continue;
|
|
1406
|
-
const existing = out[k];
|
|
1407
|
-
if (v !== null && typeof v === "object" && !Array.isArray(v) && existing !== null && typeof existing === "object" && !Array.isArray(existing)) {
|
|
1408
|
-
out[k] = deepMerge(existing, v);
|
|
1409
|
-
} else {
|
|
1410
|
-
out[k] = v;
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
return out;
|
|
1414
|
-
}
|
|
1415
1459
|
|
|
1416
1460
|
// src/utils/term.ts
|
|
1417
1461
|
var hasStdout = () => typeof process !== "undefined" && !!process.stdout;
|
|
@@ -5118,7 +5162,7 @@ function buildChildEnv(optsOrSessionId) {
|
|
|
5118
5162
|
const passthrough = hasOwn && process.env["WRONGSTACK_CHILD_ENV_PASSTHROUGH"] === "1" || legacyHasOwn && process.env["WRONGSTACK_BASH_ENV_PASSTHROUGH"] === "1";
|
|
5119
5163
|
if (passthrough && !process.env["CI"]) {
|
|
5120
5164
|
console.warn(
|
|
5121
|
-
"[
|
|
5165
|
+
"[agent] WARNING: WRONGSTACK_*_ENV_PASSTHROUGH=1 is active \u2014\n all parent env vars (including API keys) forwarded to child processes.\n Do not use on shared or multi-tenant systems."
|
|
5122
5166
|
);
|
|
5123
5167
|
}
|
|
5124
5168
|
const out = {};
|
|
@@ -6477,7 +6521,7 @@ var FileMemoryBackend = class {
|
|
|
6477
6521
|
const line = `
|
|
6478
6522
|
- [${entry.ts}] ${id}${meta} ${entry.text.replace(/\n/g, " ")}
|
|
6479
6523
|
`;
|
|
6480
|
-
const next = existing.trim() ? existing.replace(/\n+$/, "") + line : `#
|
|
6524
|
+
const next = existing.trim() ? existing.replace(/\n+$/, "") + line : `# Agent Memory
|
|
6481
6525
|
${line}`;
|
|
6482
6526
|
await atomicWrite(file, next);
|
|
6483
6527
|
}
|
|
@@ -7044,43 +7088,16 @@ var defaultIndexing = {
|
|
|
7044
7088
|
watchExternal: true,
|
|
7045
7089
|
debounceMs: 400
|
|
7046
7090
|
};
|
|
7047
|
-
function isPrimitiveArray(a) {
|
|
7048
|
-
return a.every((v) => v === null || typeof v !== "object");
|
|
7049
|
-
}
|
|
7050
|
-
var FORBIDDEN_PROTO_KEYS2 = /* @__PURE__ */ new Set([
|
|
7051
|
-
"__proto__",
|
|
7052
|
-
"constructor",
|
|
7053
|
-
"prototype",
|
|
7054
|
-
"__defineGetter__",
|
|
7055
|
-
"__defineSetter__",
|
|
7056
|
-
"__lookupGetter__",
|
|
7057
|
-
"__lookupSetter__"
|
|
7058
|
-
]);
|
|
7059
7091
|
function deepMerge2(base, patch) {
|
|
7060
|
-
|
|
7061
|
-
if (
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
if (Array.isArray(existing) && isPrimitiveArray(v) && isPrimitiveArray(existing)) {
|
|
7068
|
-
out[k] = [.../* @__PURE__ */ new Set([...existing, ...v])];
|
|
7069
|
-
} else {
|
|
7070
|
-
out[k] = v;
|
|
7071
|
-
if (envBoolOptional(process.env.WRONGSTACK_DEBUG_CONFIG)) {
|
|
7072
|
-
console.warn(
|
|
7073
|
-
`[config] Non-primitive array for "${k}" replaced (global + local config merge). Global entries: ${existing?.length ?? 0}, local entries: ${v.length}.`
|
|
7074
|
-
);
|
|
7075
|
-
}
|
|
7076
|
-
}
|
|
7077
|
-
} else if (typeof v === "object" && v !== null && typeof existing === "object" && existing !== null) {
|
|
7078
|
-
out[k] = deepMerge2(existing, v);
|
|
7079
|
-
} else if (v !== void 0) {
|
|
7080
|
-
out[k] = v;
|
|
7081
|
-
}
|
|
7092
|
+
const opts = { arrayMode: "concat-primitives" };
|
|
7093
|
+
if (envBoolOptional(process.env.WRONGSTACK_DEBUG_CONFIG)) {
|
|
7094
|
+
opts.onNonPrimitiveArrayReplace = (key, existingLen, patchLen) => {
|
|
7095
|
+
console.warn(
|
|
7096
|
+
`[config] Non-primitive array for "${key}" replaced (global + local config merge). Global entries: ${existingLen}, local entries: ${patchLen}.`
|
|
7097
|
+
);
|
|
7098
|
+
};
|
|
7082
7099
|
}
|
|
7083
|
-
return
|
|
7100
|
+
return deepMerge(base, patch, opts);
|
|
7084
7101
|
}
|
|
7085
7102
|
var DefaultConfigLoader = class {
|
|
7086
7103
|
paths;
|
|
@@ -11032,6 +11049,7 @@ var SubagentBudget = class _SubagentBudget {
|
|
|
11032
11049
|
function makeAgentSubagentRunner(opts) {
|
|
11033
11050
|
const format = opts.formatTaskInput ?? defaultFormatTaskInput;
|
|
11034
11051
|
return async (task, ctx) => {
|
|
11052
|
+
const taskStartedAt = Date.now();
|
|
11035
11053
|
const factoryResult = await opts.factory(ctx.config);
|
|
11036
11054
|
const { agent, events } = factoryResult;
|
|
11037
11055
|
const detachFleet = opts.fleetBus?.attach(ctx.subagentId, events, task.id);
|
|
@@ -11128,7 +11146,7 @@ function makeAgentSubagentRunner(opts) {
|
|
|
11128
11146
|
}),
|
|
11129
11147
|
events.on("provider.text_delta", (e) => {
|
|
11130
11148
|
ctx.budget.markActivity();
|
|
11131
|
-
streamingTextAcc = (streamingTextAcc + e.text).slice(-
|
|
11149
|
+
streamingTextAcc = (streamingTextAcc + e.text).slice(-2e3);
|
|
11132
11150
|
})
|
|
11133
11151
|
);
|
|
11134
11152
|
const onParentAbort = () => aborter.abort();
|
|
@@ -11136,6 +11154,15 @@ function makeAgentSubagentRunner(opts) {
|
|
|
11136
11154
|
let result;
|
|
11137
11155
|
try {
|
|
11138
11156
|
result = await agent.run(format(task, ctx.config), { signal: aborter.signal });
|
|
11157
|
+
events.emit("subagent.task_completed", {
|
|
11158
|
+
subagentId: ctx.subagentId,
|
|
11159
|
+
taskId: task.id,
|
|
11160
|
+
status: result.status === "done" ? "success" : "failed",
|
|
11161
|
+
iterations: result.iterations,
|
|
11162
|
+
toolCalls: ctx.budget.usage().toolCalls,
|
|
11163
|
+
durationMs: Date.now() - taskStartedAt,
|
|
11164
|
+
finalText: result.finalText?.trim() || void 0
|
|
11165
|
+
});
|
|
11139
11166
|
} finally {
|
|
11140
11167
|
detachFleet?.();
|
|
11141
11168
|
ctx.signal.removeEventListener("abort", onParentAbort);
|
|
@@ -12045,15 +12072,44 @@ Working rules:
|
|
|
12045
12072
|
id: "e2e",
|
|
12046
12073
|
name: "E2E",
|
|
12047
12074
|
role: "e2e",
|
|
12048
|
-
tools: [
|
|
12075
|
+
tools: [
|
|
12076
|
+
...TOOLS.build,
|
|
12077
|
+
"fetch",
|
|
12078
|
+
"playwright_navigate",
|
|
12079
|
+
"playwright_screenshot",
|
|
12080
|
+
"playwright_click",
|
|
12081
|
+
"playwright_type",
|
|
12082
|
+
"playwright_evaluate",
|
|
12083
|
+
"playwright_select_option",
|
|
12084
|
+
"playwright_hover",
|
|
12085
|
+
"playwright_fill_form",
|
|
12086
|
+
"playwright_wait_for",
|
|
12087
|
+
"playwright_press_key",
|
|
12088
|
+
"playwright_drag"
|
|
12089
|
+
],
|
|
12049
12090
|
prompt: `You are the E2E agent. Your job is end-to-end testing: drive the whole
|
|
12050
12091
|
system the way a user would and verify the full flow works across boundaries.
|
|
12051
12092
|
|
|
12052
12093
|
Scope:
|
|
12053
12094
|
- Author end-to-end scenarios that exercise real user journeys
|
|
12054
12095
|
- Drive UI/CLI/API across process and network boundaries
|
|
12096
|
+
- Use Playwright browser tools (navigate, click, type, screenshot, evaluate)
|
|
12097
|
+
to automate web UI flows \u2014 open pages, interact with forms, capture evidence
|
|
12055
12098
|
- Set up and tear down realistic test state
|
|
12056
|
-
- Capture failures with enough detail to reproduce (screenshots, logs)
|
|
12099
|
+
- Capture failures with enough detail to reproduce (screenshots, logs, page HTML)
|
|
12100
|
+
|
|
12101
|
+
Playwright tools available (require the "playwright" MCP server to be enabled):
|
|
12102
|
+
playwright_navigate(url) \u2014 open a page at the given URL
|
|
12103
|
+
playwright_screenshot() \u2014 capture a full-page or viewport screenshot
|
|
12104
|
+
playwright_click(selector) \u2014 click on an element matching a CSS selector
|
|
12105
|
+
playwright_type(selector, text) \u2014 type text into a focused input element
|
|
12106
|
+
playwright_evaluate(script) \u2014 run arbitrary JavaScript in the page context
|
|
12107
|
+
playwright_select_option(selector, value) \u2014 pick a <select> dropdown option
|
|
12108
|
+
playwright_hover(selector) \u2014 hover the mouse over an element
|
|
12109
|
+
playwright_fill_form(fields) \u2014 fill multiple form fields in one call
|
|
12110
|
+
playwright_wait_for(selector) \u2014 block until an element appears on the page
|
|
12111
|
+
playwright_press_key(key) \u2014 press a keyboard key (Enter, Tab, Escape, \u2026)
|
|
12112
|
+
playwright_drag(from, to) \u2014 drag an element from one selector to another
|
|
12057
12113
|
|
|
12058
12114
|
Input format you accept:
|
|
12059
12115
|
{ "task": "scenario | smoke | journey", "flow": "<user journey>", "surface": "ui | cli | api" }
|
|
@@ -12067,8 +12123,10 @@ Output: Markdown e2e report:
|
|
|
12067
12123
|
Working rules:
|
|
12068
12124
|
- Test the real flow end to end; don't stub the thing under test
|
|
12069
12125
|
- Make scenarios deterministic \u2014 control time, randomness, and external state
|
|
12070
|
-
- On failure, capture artifacts (logs
|
|
12071
|
-
- Keep scenarios independent so one failure doesn't cascade
|
|
12126
|
+
- On failure, capture artifacts (screenshots, page HTML, logs) for reproduction
|
|
12127
|
+
- Keep scenarios independent so one failure doesn't cascade
|
|
12128
|
+
- For browser tests: playwright_navigate first, then interact, then playwright_screenshot as evidence
|
|
12129
|
+
- If playwright tools are unavailable, report it and fall back to API/CLI testing`
|
|
12072
12130
|
},
|
|
12073
12131
|
budget: HEAVY_BUDGET,
|
|
12074
12132
|
capability: {
|
|
@@ -12081,10 +12139,106 @@ Working rules:
|
|
|
12081
12139
|
"user journey",
|
|
12082
12140
|
"smoke test",
|
|
12083
12141
|
"playwright",
|
|
12142
|
+
"browser",
|
|
12143
|
+
"screenshot",
|
|
12144
|
+
"web ui",
|
|
12145
|
+
"headless",
|
|
12084
12146
|
"cypress",
|
|
12085
12147
|
"full flow",
|
|
12086
12148
|
"browser test",
|
|
12087
|
-
"acceptance test"
|
|
12149
|
+
"acceptance test",
|
|
12150
|
+
"navigate",
|
|
12151
|
+
"click",
|
|
12152
|
+
"form fill",
|
|
12153
|
+
"dom",
|
|
12154
|
+
"page load"
|
|
12155
|
+
]
|
|
12156
|
+
}
|
|
12157
|
+
},
|
|
12158
|
+
{
|
|
12159
|
+
config: {
|
|
12160
|
+
id: "browser",
|
|
12161
|
+
name: "Browser",
|
|
12162
|
+
role: "browser",
|
|
12163
|
+
tools: [
|
|
12164
|
+
...TOOLS.read,
|
|
12165
|
+
"fetch",
|
|
12166
|
+
"playwright_navigate",
|
|
12167
|
+
"playwright_screenshot",
|
|
12168
|
+
"playwright_click",
|
|
12169
|
+
"playwright_type",
|
|
12170
|
+
"playwright_evaluate",
|
|
12171
|
+
"playwright_select_option",
|
|
12172
|
+
"playwright_hover",
|
|
12173
|
+
"playwright_fill_form",
|
|
12174
|
+
"playwright_wait_for",
|
|
12175
|
+
"playwright_press_key",
|
|
12176
|
+
"playwright_drag"
|
|
12177
|
+
],
|
|
12178
|
+
prompt: `You are the Browser agent. Your job is browser automation: open web pages,
|
|
12179
|
+
interact with them, extract data, capture screenshots, and return structured
|
|
12180
|
+
results. You are a read-focused agent \u2014 you drive the browser, not the filesystem.
|
|
12181
|
+
|
|
12182
|
+
Scope:
|
|
12183
|
+
- Navigate to URLs and wait for pages to load
|
|
12184
|
+
- Take full-page or element screenshots as evidence
|
|
12185
|
+
- Click buttons, fill forms, select options, type text \u2014 full user simulation
|
|
12186
|
+
- Extract page content: text, HTML, element attributes, data tables
|
|
12187
|
+
- Evaluate JavaScript in the page context to extract structured data
|
|
12188
|
+
- Verify visual state (element visibility, text content, attribute values)
|
|
12189
|
+
|
|
12190
|
+
Playwright tools available (require the "playwright" MCP server to be enabled):
|
|
12191
|
+
playwright_navigate(url) \u2014 open a page at the given URL
|
|
12192
|
+
playwright_screenshot() \u2014 capture a full-page or viewport screenshot
|
|
12193
|
+
playwright_click(selector) \u2014 click on an element matching a CSS selector
|
|
12194
|
+
playwright_type(selector, text) \u2014 type text into a focused input element
|
|
12195
|
+
playwright_evaluate(script) \u2014 run arbitrary JavaScript in the page context
|
|
12196
|
+
playwright_select_option(selector, value) \u2014 pick a <select> dropdown option
|
|
12197
|
+
playwright_hover(selector) \u2014 hover the mouse over an element
|
|
12198
|
+
playwright_fill_form(fields) \u2014 fill multiple form fields in one call
|
|
12199
|
+
playwright_wait_for(selector) \u2014 block until an element appears on the page
|
|
12200
|
+
playwright_press_key(key) \u2014 press a keyboard key (Enter, Tab, Escape, \u2026)
|
|
12201
|
+
playwright_drag(from, to) \u2014 drag an element from one selector to another
|
|
12202
|
+
|
|
12203
|
+
Input format you accept:
|
|
12204
|
+
{ "task": "navigate | screenshot | extract | interact | verify", "url": "<url>", "steps": ["step1", "step2"] }
|
|
12205
|
+
|
|
12206
|
+
Output: Structured markdown report:
|
|
12207
|
+
- ## Page (URL, title, load status)
|
|
12208
|
+
- ## Actions Taken (step-by-step with timestamps)
|
|
12209
|
+
- ## Results (extracted data, element states, verification results)
|
|
12210
|
+
- ## Screenshots (list attached screenshot references)
|
|
12211
|
+
- ## Errors (any failures with stack traces)
|
|
12212
|
+
|
|
12213
|
+
Working rules:
|
|
12214
|
+
- Always playwright_navigate first before any interaction
|
|
12215
|
+
- Always playwright_wait_for after navigation to ensure the page is ready
|
|
12216
|
+
- playwright_screenshot is your primary evidence \u2014 use it before and after interactions
|
|
12217
|
+
- Use playwright_evaluate for structured data extraction (JSON, text content)
|
|
12218
|
+
- If a selector fails, try alternative selectors before giving up
|
|
12219
|
+
- Report exact CSS selectors used \u2014 they're part of the evidence
|
|
12220
|
+
- If playwright tools are unavailable, report the error immediately \u2014 do not guess`
|
|
12221
|
+
},
|
|
12222
|
+
budget: MEDIUM_BUDGET,
|
|
12223
|
+
capability: {
|
|
12224
|
+
phase: "verify",
|
|
12225
|
+
summary: "Browser automation: opens pages, clicks, types, screenshots, extracts data via Playwright headless Chromium.",
|
|
12226
|
+
keywords: [
|
|
12227
|
+
"browser",
|
|
12228
|
+
"screenshot",
|
|
12229
|
+
"navigate",
|
|
12230
|
+
"web page",
|
|
12231
|
+
"scrape",
|
|
12232
|
+
"crawl",
|
|
12233
|
+
"headless",
|
|
12234
|
+
"chrome",
|
|
12235
|
+
"open url",
|
|
12236
|
+
"capture",
|
|
12237
|
+
"page title",
|
|
12238
|
+
"extract data",
|
|
12239
|
+
"fill form",
|
|
12240
|
+
"click button",
|
|
12241
|
+
"take screenshot"
|
|
12088
12242
|
]
|
|
12089
12243
|
}
|
|
12090
12244
|
},
|
|
@@ -22381,6 +22535,14 @@ var zaiVisionServer = () => ({
|
|
|
22381
22535
|
],
|
|
22382
22536
|
permission: "auto"
|
|
22383
22537
|
});
|
|
22538
|
+
var playwrightServer = () => ({
|
|
22539
|
+
name: "playwright",
|
|
22540
|
+
description: "Browser automation \u2014 navigate, screenshot, click, type, evaluate JS (headless Chromium)",
|
|
22541
|
+
transport: "stdio",
|
|
22542
|
+
command: "npx",
|
|
22543
|
+
args: ["-y", "@modelcontextprotocol/server-playwright"],
|
|
22544
|
+
permission: "confirm"
|
|
22545
|
+
});
|
|
22384
22546
|
var miniMaxVisionServer = () => ({
|
|
22385
22547
|
name: "minimax-vision",
|
|
22386
22548
|
description: "MiniMax MCP \u2014 image understanding via understand_image",
|
|
@@ -22407,7 +22569,8 @@ var allServers = () => ({
|
|
|
22407
22569
|
"google-maps": { ...googleMapsServer(), enabled: false },
|
|
22408
22570
|
sentinel: { ...sentinelServer(), enabled: false },
|
|
22409
22571
|
"zai-vision": { ...zaiVisionServer(), enabled: false },
|
|
22410
|
-
"minimax-vision": { ...miniMaxVisionServer(), enabled: false }
|
|
22572
|
+
"minimax-vision": { ...miniMaxVisionServer(), enabled: false },
|
|
22573
|
+
playwright: { ...playwrightServer(), enabled: false }
|
|
22411
22574
|
});
|
|
22412
22575
|
function parseSkillRef(input) {
|
|
22413
22576
|
const trimmed = input.trim().replace(/^https?:\/\/github\.com\//, "").replace(/\.git$/, "");
|
|
@@ -25462,7 +25625,7 @@ var ReportGenerator = class {
|
|
|
25462
25625
|
lines.push("");
|
|
25463
25626
|
}
|
|
25464
25627
|
lines.push("---");
|
|
25465
|
-
lines.push(`*Report generated by
|
|
25628
|
+
lines.push(`*Report generated by security scanner*`);
|
|
25466
25629
|
return lines.join("\n");
|
|
25467
25630
|
}
|
|
25468
25631
|
formatFinding(finding) {
|
|
@@ -31792,9 +31955,9 @@ ${check.stderr}`);
|
|
|
31792
31955
|
if (name && email) return [];
|
|
31793
31956
|
return [
|
|
31794
31957
|
"-c",
|
|
31795
|
-
`user.name=${name || "
|
|
31958
|
+
`user.name=${name || "AutoPhase"}`,
|
|
31796
31959
|
"-c",
|
|
31797
|
-
`user.email=${email || "autophase@
|
|
31960
|
+
`user.email=${email || "autophase@agent.local"}`
|
|
31798
31961
|
];
|
|
31799
31962
|
}
|
|
31800
31963
|
async unmergedFiles() {
|
|
@@ -33297,6 +33460,6 @@ ${formatPlan(updated)}`
|
|
|
33297
33460
|
};
|
|
33298
33461
|
}
|
|
33299
33462
|
|
|
33300
|
-
export { ACP_AGENTS, AGENTS_BY_PHASE, AGENT_CATALOG, AISpecBuilder, ALL_AGENT_DEFINITIONS, ALL_FLEET_AGENTS, ALL_SYNC_CATEGORIES, AUDIT_LOG_AGENT, Agent, AgentError, AnnotationsStore, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutoPhasePlanner, AutoPhaseRunner, AutonomousRunner, BUG_HUNTER_AGENT, BrainDecisionQueue, BudgetExceededError, CONTEXT_WINDOW_MODES, CORE_RECONSTRUCT_EVENTS, CheckpointManager, CloudSync, CollaborationBus, ConfigError, ConfigMigrationError, Container, Context, ConversationState, DEFAULT_AUTONOMY_CONFIG, DEFAULT_CONFIG_MIGRATIONS, DEFAULT_CONTEXT_CONFIG, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEFAULT_DIRECTOR_PREAMBLE, DEFAULT_DISPATCH_ROLE, DEFAULT_MAX_ITERATIONS, DEFAULT_MODES, DEFAULT_RECOVERY_STRATEGIES, DEFAULT_SESSION_LOGGING_CONFIG, DEFAULT_SESSION_PRUNE_DAYS, DEFAULT_SPEC_TEMPLATE, DEFAULT_SUBAGENT_BASELINE, DEFAULT_TOOLS_CONFIG, DefaultAttachmentStore, DefaultBrainArbiter, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMemoryStore, DefaultModeStore, DefaultModelsRegistry, DefaultMultiAgentCoordinator, DefaultPathResolver, DefaultPermissionPolicy, DefaultPluginAPI, DefaultPromptStore, DefaultProviderRunner, DefaultRetryPolicy, DefaultSecretScrubber, DefaultSecretVault, DefaultSessionReader, DefaultSessionRewinder, DefaultSessionStore, DefaultSkillLoader, DefaultSystemPromptBuilder, DefaultTaskStore, DefaultTokenCounter, Director, DirectorStateCheckpoint, DoneConditionChecker, ENHANCER_SYSTEM_PROMPT, ERROR_CODES, EternalAutonomyEngine, EventBus, ExtensionRegistry, FLEET_ROSTER, FLEET_ROSTER_BUDGETS, FLEET_ROSTER_WITHACP, FileMemoryBackend, FleetBus, FleetCostCapError, FleetManager, FleetSpawnBudgetError, FleetUsageAggregator, FsError, GitignoreUpdater, GraphMemoryBackend, HookRegistry, HookRunner, HumanEscalatingBrainArbiter, HybridCompactor, InMemoryAgentBridge, InMemoryBridgeTransport, InMemoryMetricsSink, InputBuilder, IntelligentCompactor, KERNEL_API_VERSION, LAYER_1_IDENTITY, LLMSelector, MATRIX_PHASE_KEYS, MAX_JOURNAL_ENTRIES, MAX_PROGRESS_HISTORY, MEMORY_TYPE_LABELS, NULL_FLEET_BUS, NoopMetricsSink, NoopTracer, OTelTracer, ObservableBrainArbiter, PROMETHEUS_CONTENT_TYPE, ParallelEternalEngine, PhaseGraphBuilder, PhaseOrchestrator, PhaseStore, Pipeline, PluginError, ProviderError, ProviderRegistry, QueueStore, REFACTOR_PLANNER_AGENT, RecoveryLock, ReplayLogStore, ReplayProviderRunner, ReportGenerator, RunController, SECURITY_SCANNER_AGENT, SPEC_TEMPLATES, STANDARD_AUDIT_EVENTS, ScopedEventBus, SddParallelRun, SddTaskDecomposer, SecurityScanner, SecurityScannerOrchestrator, SelectiveCompactor, SessionAnalyzer, SessionError, SessionMemoryConsolidator, SessionRecovery, SkillGenerator, SkillInstaller, SkillManifestStore, SlashCommandRegistry, SpecDrivenDev, SpecParser, SpecStore, SpecVersioning, StreamHangError, SubagentBudget, TOKENS, TaskFlow, TaskGenerator, TaskGraphStore, TaskTracker, TechStackDetector, ToolAuditLog, ToolError, ToolExecutor, ToolRegistry, WorktreeManager, WrongStackError, addPlanItem, allServers, analyzeCriticalPath, appendJournal, applyRosterBudget, asBlocks, asText, assertNever, assertSafePath, atomicWrite, attachAutoExtend, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, bootConfig, braveSearchServer, buildBtwBlock, buildChildEnv, buildGoalPreamble, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildRecoveryStrategies, classifyFamily, clearPlan, collabInjectMiddleware, collabPauseMiddleware, color, compileGlob, compileUserRegex, completePartialObject, composeDirectorPrompt, composeSubagentPrompt, computeTaskItemProgress, computeTaskProgress, consumeBtwNotes, context7Server, contextManagerTool, createAutoExecutor, createAutoPhaseFromTaskGraph, createContextManagerTool, createDefaultPipelines, createDelegateTool, createGitPlugin, createMcpControlTool, createMessage, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSessionEventBridge, createSkillsPlugin, createStrategyCompactor, createSyncPlugin, createToolOutputSerializer, decryptConfigSecrets, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, deriveTodosFromPlanItem, detectNewlineStyle, dispatchAgent, downloadGitHubTarball, emptyGoal, emptyPlan, emptyTaskFile, encryptConfigSecrets, enhanceUserPrompt, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, expandGlob, expectDefined, extractRunEnv, filesystemServer, findCriticalPath, flagsToConfigPatch, formatContextWindowModeList, formatGoal, formatHumanPrompt, formatPlan, formatPlanTemplates, formatTaskList, formatTaskProgress, formatTodosList, getAgentDefinition, getCalibrationState, getContextWindowMode, getPlanTemplate, getTemplate, getTermSize, githubServer, goalFilePath, googleMapsServer, hashRequest, hookMatcherMatches, isAgentError, isConfigError, isContextWindowModeId, isFsError, isImageBlock, isInteractive, isPluginError, isSecretField, isSessionError, isStdinTTY, isStdoutTTY, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isValidMatrixKey, isWrongStackError, listContextWindowModes, listPlanTemplates, listTemplates, loadDirectorState, loadGoal, loadPlan, loadPlugins, loadProjectModes, loadTasks, loadTodosCheckpoint, loadUserModes, makeAgentSubagentRunner, makeAskTool, makeAssignTool, makeAutonomyPromptContributor, makeAwaitTasksTool, makeCollabDebugTool, makeContinueToNextIterationTool, makeDirectorSessionFactory, makeFleetEmitTool, makeFleetHealthTool, makeFleetSessionTool, makeFleetStatusTool, makeFleetUsageTool, makeLLMClassifier, makeRollUpTool, makeSpawnTool, makeTerminateTool, matchAny, matchGlob, matrixKeyKind, mergeCustomModelDefs, mergeModelsPayload, migratePlaintextSecrets, miniMaxVisionServer, normalizeToLf, normalizedEqual, onResize, parseContinueDirective, parseEntries, parseProgressFromText, parseSkillRef, pendingBtwCount, phaseForRole, projectHash, projectSlug, recentTextTurns, recordActualUsage, recordProgress, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resetCalibration, resolveAuditLevel, resolveContextWindowPolicy, resolveModelMatrix, resolveSessionLoggingConfig, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, runProviderWithRetry, runShellHook, safeParse, safeStringify, sanitizeJsonString, saveGoal, savePlan, saveTasks, saveTodosCheckpoint, scoreAgents, securitySlashCommand, sentinelServer, setBtwNote, setOutputLineGuard, setPlanItemStatus, setProgress, setRawMode, shouldEnhance, slackServer, sleep, stableStringify, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, stripAnsi, summarizeUsage, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, unifiedDiff, unloadPlugins, validateAgainstSchema, wireMetricsToEvents, withFileLock, wrapAsState, writeErr, writeOut, zaiVisionServer };
|
|
33463
|
+
export { ACP_AGENTS, AGENTS_BY_PHASE, AGENT_CATALOG, AISpecBuilder, ALL_AGENT_DEFINITIONS, ALL_FLEET_AGENTS, ALL_SYNC_CATEGORIES, AUDIT_LOG_AGENT, Agent, AgentError, AnnotationsStore, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutoPhasePlanner, AutoPhaseRunner, AutonomousRunner, BUG_HUNTER_AGENT, BrainDecisionQueue, BudgetExceededError, CONTEXT_WINDOW_MODES, CORE_RECONSTRUCT_EVENTS, CheckpointManager, CloudSync, CollaborationBus, ConfigError, ConfigMigrationError, Container, Context, ConversationState, DEFAULT_AUTONOMY_CONFIG, DEFAULT_CONFIG_MIGRATIONS, DEFAULT_CONTEXT_CONFIG, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEFAULT_DIRECTOR_PREAMBLE, DEFAULT_DISPATCH_ROLE, DEFAULT_MAX_ITERATIONS, DEFAULT_MODES, DEFAULT_RECOVERY_STRATEGIES, DEFAULT_SESSION_LOGGING_CONFIG, DEFAULT_SESSION_PRUNE_DAYS, DEFAULT_SPEC_TEMPLATE, DEFAULT_SUBAGENT_BASELINE, DEFAULT_TOOLS_CONFIG, DefaultAttachmentStore, DefaultBrainArbiter, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMemoryStore, DefaultModeStore, DefaultModelsRegistry, DefaultMultiAgentCoordinator, DefaultPathResolver, DefaultPermissionPolicy, DefaultPluginAPI, DefaultPromptStore, DefaultProviderRunner, DefaultRetryPolicy, DefaultSecretScrubber, DefaultSecretVault, DefaultSessionReader, DefaultSessionRewinder, DefaultSessionStore, DefaultSkillLoader, DefaultSystemPromptBuilder, DefaultTaskStore, DefaultTokenCounter, Director, DirectorStateCheckpoint, DoneConditionChecker, ENHANCER_SYSTEM_PROMPT, ERROR_CODES, EternalAutonomyEngine, EventBus, ExtensionRegistry, FLEET_ROSTER, FLEET_ROSTER_BUDGETS, FLEET_ROSTER_WITHACP, FORBIDDEN_PROTO_KEYS, FileMemoryBackend, FleetBus, FleetCostCapError, FleetManager, FleetSpawnBudgetError, FleetUsageAggregator, FsError, GitignoreUpdater, GraphMemoryBackend, HookRegistry, HookRunner, HumanEscalatingBrainArbiter, HybridCompactor, InMemoryAgentBridge, InMemoryBridgeTransport, InMemoryMetricsSink, InputBuilder, IntelligentCompactor, KERNEL_API_VERSION, LAYER_1_IDENTITY, LLMSelector, MATRIX_PHASE_KEYS, MAX_JOURNAL_ENTRIES, MAX_PROGRESS_HISTORY, MEMORY_TYPE_LABELS, NULL_FLEET_BUS, NoopMetricsSink, NoopTracer, OTelTracer, ObservableBrainArbiter, PROMETHEUS_CONTENT_TYPE, ParallelEternalEngine, PhaseGraphBuilder, PhaseOrchestrator, PhaseStore, Pipeline, PluginError, ProviderError, ProviderRegistry, QueueStore, REFACTOR_PLANNER_AGENT, RecoveryLock, ReplayLogStore, ReplayProviderRunner, ReportGenerator, RunController, SECURITY_SCANNER_AGENT, SPEC_TEMPLATES, STANDARD_AUDIT_EVENTS, ScopedEventBus, SddParallelRun, SddTaskDecomposer, SecurityScanner, SecurityScannerOrchestrator, SelectiveCompactor, SessionAnalyzer, SessionError, SessionMemoryConsolidator, SessionRecovery, SkillGenerator, SkillInstaller, SkillManifestStore, SlashCommandRegistry, SpecDrivenDev, SpecParser, SpecStore, SpecVersioning, StreamHangError, SubagentBudget, TOKENS, TaskFlow, TaskGenerator, TaskGraphStore, TaskTracker, TechStackDetector, ToolAuditLog, ToolError, ToolExecutor, ToolRegistry, WorktreeManager, WrongStackError, addPlanItem, allServers, analyzeCriticalPath, appendJournal, applyRosterBudget, asBlocks, asText, assertNever, assertSafePath, atomicWrite, attachAutoExtend, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, bootConfig, braveSearchServer, buildBtwBlock, buildChildEnv, buildGoalPreamble, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildRecoveryStrategies, classifyFamily, clearPlan, collabInjectMiddleware, collabPauseMiddleware, color, compileGlob, compileUserRegex, completePartialObject, composeDirectorPrompt, composeSubagentPrompt, computeTaskItemProgress, computeTaskProgress, consumeBtwNotes, context7Server, contextManagerTool, createAutoExecutor, createAutoPhaseFromTaskGraph, createContextManagerTool, createDefaultPipelines, createDelegateTool, createGitPlugin, createMcpControlTool, createMessage, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSessionEventBridge, createSkillsPlugin, createStrategyCompactor, createSyncPlugin, createToolOutputSerializer, decryptConfigSecrets, deepMerge, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, deriveTodosFromPlanItem, detectNewlineStyle, dispatchAgent, downloadGitHubTarball, emptyGoal, emptyPlan, emptyTaskFile, encryptConfigSecrets, enhanceUserPrompt, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, expandGlob, expectDefined, extractRunEnv, filesystemServer, findCriticalPath, flagsToConfigPatch, formatContextWindowModeList, formatGoal, formatHumanPrompt, formatPlan, formatPlanTemplates, formatTaskList, formatTaskProgress, formatTodosList, getAgentDefinition, getCalibrationState, getContextWindowMode, getPlanTemplate, getTemplate, getTermSize, githubServer, goalFilePath, googleMapsServer, hashRequest, hookMatcherMatches, isAgentError, isConfigError, isContextWindowModeId, isFsError, isImageBlock, isInteractive, isPluginError, isPrimitiveArray, isSecretField, isSessionError, isStdinTTY, isStdoutTTY, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isValidMatrixKey, isWrongStackError, listContextWindowModes, listPlanTemplates, listTemplates, loadDirectorState, loadGoal, loadPlan, loadPlugins, loadProjectModes, loadTasks, loadTodosCheckpoint, loadUserModes, makeAgentSubagentRunner, makeAskTool, makeAssignTool, makeAutonomyPromptContributor, makeAwaitTasksTool, makeCollabDebugTool, makeContinueToNextIterationTool, makeDirectorSessionFactory, makeFleetEmitTool, makeFleetHealthTool, makeFleetSessionTool, makeFleetStatusTool, makeFleetUsageTool, makeLLMClassifier, makeRollUpTool, makeSpawnTool, makeTerminateTool, matchAny, matchGlob, matrixKeyKind, mergeCustomModelDefs, mergeModelsPayload, migratePlaintextSecrets, miniMaxVisionServer, noOpVault, normalizeToLf, normalizedEqual, onResize, parseContinueDirective, parseEntries, parseProgressFromText, parseSkillRef, pendingBtwCount, phaseForRole, projectHash, projectSlug, recentTextTurns, recordActualUsage, recordProgress, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resetCalibration, resolveAuditLevel, resolveContextWindowPolicy, resolveModelMatrix, resolveSessionLoggingConfig, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, runProviderWithRetry, runShellHook, safeParse, safeStringify, sanitizeJsonString, saveGoal, savePlan, saveTasks, saveTodosCheckpoint, scoreAgents, securitySlashCommand, sentinelServer, setBtwNote, setOutputLineGuard, setPlanItemStatus, setProgress, setRawMode, shouldEnhance, slackServer, sleep, stableStringify, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, stripAnsi, summarizeUsage, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, unifiedDiff, unloadPlugins, validateAgainstSchema, wireMetricsToEvents, withFileLock, wrapAsState, writeErr, writeOut, zaiVisionServer };
|
|
33301
33464
|
//# sourceMappingURL=index.js.map
|
|
33302
33465
|
//# sourceMappingURL=index.js.map
|