@wrongstack/core 0.236.0 → 0.255.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-Cimv7bK7.d.ts → agent-bridge-l_DsFEbr.d.ts} +1 -1
- package/dist/{agent-subagent-runner-C658wj_c.d.ts → agent-subagent-runner-DhYLgAJo.d.ts} +4 -4
- package/dist/{brain-sCZ3lCjq.d.ts → brain-BaQsRNka.d.ts} +17 -0
- package/dist/{config-Koq6f3fs.d.ts → config-eSsrto5d.d.ts} +6 -0
- package/dist/coordination/index.d.ts +11 -11
- package/dist/coordination/index.js +137 -3
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +14 -14
- package/dist/defaults/index.js +8 -10
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +8 -8
- package/dist/execution/index.js +5 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +4 -4
- package/dist/{goal-preamble-CnbzyVvl.d.ts → goal-preamble-BgoPmZ8l.d.ts} +5 -5
- package/dist/{index-BlMqh5GO.d.ts → index-BilZMsOK.d.ts} +4 -4
- package/dist/{index-C2eSNPsB.d.ts → index-Csoc_bKs.d.ts} +3 -3
- package/dist/index.d.ts +26 -26
- package/dist/index.js +168 -19
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +4 -4
- package/dist/infrastructure/index.js +12 -0
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +5 -5
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-DFbirBv6.d.ts → mcp-servers-DfXxCASH.d.ts} +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/{models-registry-CnJRjTXc.d.ts → models-registry-DpanBg8D.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-60weDZoA.d.ts → multi-agent-coordinator-Bs-M0Mo6.d.ts} +1 -1
- package/dist/{null-fleet-bus-1068dEnr.d.ts → null-fleet-bus-CWdU1_cO.d.ts} +5 -5
- package/dist/observability/index.d.ts +1 -1
- package/dist/{package-outdated-watcher-pzJ5w7y8.d.ts → package-outdated-watcher-Dz-eNZlQ.d.ts} +23 -2
- package/dist/{parallel-eternal-engine-DtG1fjc9.d.ts → parallel-eternal-engine-CAMabk-X.d.ts} +5 -5
- package/dist/{path-resolver-CA1ULU0J.d.ts → path-resolver-B7VjhUHq.d.ts} +2 -2
- package/dist/{pipeline-DsmlwTXu.d.ts → pipeline-Bxa3wDcy.d.ts} +42 -2
- package/dist/{plan-templates-DPABrDvy.d.ts → plan-templates-D3guWwTi.d.ts} +2 -2
- package/dist/{provider-runner-D0HgUqwV.d.ts → provider-runner-C8_e4Lo1.d.ts} +1 -1
- package/dist/sdd/index.d.ts +5 -5
- package/dist/sdd/index.js +6 -8
- package/dist/sdd/index.js.map +1 -1
- package/dist/storage/index.d.ts +6 -6
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +12 -12
- package/dist/types/index.js +17 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +11 -2
- package/dist/utils/index.js +8 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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-Csoc_bKs.js';
|
|
2
2
|
import '../context-CLz3z_E8.js';
|
|
3
3
|
import '../logger-B63L5bTg.js';
|
|
4
|
-
import '../pipeline-
|
|
5
|
-
import '../config-
|
|
4
|
+
import '../pipeline-Bxa3wDcy.js';
|
|
5
|
+
import '../config-eSsrto5d.js';
|
|
6
6
|
import '../observability-D-HZN_mF.js';
|
|
7
|
-
import '../brain-
|
|
7
|
+
import '../brain-BaQsRNka.js';
|
|
8
8
|
import '../permission-DbWPbuoA.js';
|
|
@@ -3,12 +3,12 @@ import { W as WstackPaths } from './wstack-paths-CJjEwPXn.js';
|
|
|
3
3
|
import { P as Provider, C as Context } from './context-CLz3z_E8.js';
|
|
4
4
|
import { C as Compactor, a as CompactReport } from './compactor-BRfg3QPd.js';
|
|
5
5
|
import { M as MessageSelector } from './selector-Cb4_9-hf.js';
|
|
6
|
-
import { E as EventBus } from './brain-
|
|
7
|
-
import { M as MiddlewareHandler } from './pipeline-
|
|
6
|
+
import { E as EventBus } from './brain-BaQsRNka.js';
|
|
7
|
+
import { M as MiddlewareHandler } from './pipeline-Bxa3wDcy.js';
|
|
8
8
|
import { S as SessionEventBridge } from './session-event-bridge-BhtkkFFy.js';
|
|
9
|
-
import { C as ContextWindowAggressiveOn, g as ContextWindowPolicy } from './config-
|
|
10
|
-
import { g as Agent, D as DoneCondition } from './agent-subagent-runner-
|
|
11
|
-
import { R as RunResult, S as SystemPromptContributor } from './index-
|
|
9
|
+
import { C as ContextWindowAggressiveOn, g as ContextWindowPolicy } from './config-eSsrto5d.js';
|
|
10
|
+
import { g as Agent, D as DoneCondition } from './agent-subagent-runner-DhYLgAJo.js';
|
|
11
|
+
import { R as RunResult, S as SystemPromptContributor } from './index-Csoc_bKs.js';
|
|
12
12
|
|
|
13
13
|
interface SkillLoaderOptions {
|
|
14
14
|
paths: WstackPaths;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { T as Token, a as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './pipeline-
|
|
2
|
-
import { E as EventBus, l as MemoryStore, B as BrainArbiter } from './brain-
|
|
1
|
+
import { T as Token, a as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './pipeline-Bxa3wDcy.js';
|
|
2
|
+
import { E as EventBus, l as MemoryStore, B as BrainArbiter } from './brain-BaQsRNka.js';
|
|
3
3
|
import { C as Compactor } from './compactor-BRfg3QPd.js';
|
|
4
|
-
import { j as ConfigLoader, i as ConfigStore, M as ModelsRegistry } from './config-
|
|
4
|
+
import { j as ConfigLoader, i as ConfigStore, M as ModelsRegistry } from './config-eSsrto5d.js';
|
|
5
5
|
import { E as ErrorHandler, R as RetryPolicy } from './retry-policy-BVnkbMET.js';
|
|
6
6
|
import { I as InputReader } from './input-reader-E-ffP2ee.js';
|
|
7
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-DbWPbuoA.js';
|
|
11
|
-
import { P as ProviderRunner } from './provider-runner-
|
|
11
|
+
import { P as ProviderRunner } from './provider-runner-C8_e4Lo1.js';
|
|
12
12
|
import { c as TokenCounter, i as SessionStore } from './context-CLz3z_E8.js';
|
|
13
13
|
import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as TextBlock, T as Tool, l as ToolUseBlock, C as Context, m as ToolResultBlock, R as Request, b as Response, P as Provider, g as ContentBlock, a2 as WrongStackError } from './context-CLz3z_E8.js';
|
|
2
2
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
|
-
import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-
|
|
4
|
-
import { H as HookEvent, W as WireFamily, P as ProviderConfig } from './config-
|
|
3
|
+
import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-Bxa3wDcy.js';
|
|
4
|
+
import { H as HookEvent, W as WireFamily, P as ProviderConfig } from './config-eSsrto5d.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-BaQsRNka.js';
|
|
7
7
|
import { P as PermissionPolicy, S as SecretScrubber } from './permission-DbWPbuoA.js';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as SystemPromptBuilder,
|
|
2
|
-
export { h as AgentHeartbeatInput, A as AgentRegistrationInput,
|
|
3
|
-
import { E as EventBus, l as MemoryStore, a as EventName, L as Listener, B as BrainArbiter } from './brain-
|
|
4
|
-
export { b as BrainDecision, c as BrainDecisionOption, d as BrainDecisionQueue, e 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-
|
|
1
|
+
import { S as SystemPromptBuilder, q as ModelCapabilities, B as BuildContext, C as Container, H as HookRegistry, b as Mailbox, d as MailboxMessage, a as Renderer } from './pipeline-Bxa3wDcy.js';
|
|
2
|
+
export { h as AgentHeartbeatInput, A as AgentRegistrationInput, r as BindOptions, D as Decorator, F as Factory, f as MailboxAckInput, g as MailboxAgentStatus, l as MailboxMessageType, e as MailboxQuery, c as MailboxSendInput, m as MailboxTaskContext, s as Middleware, M as MiddlewareHandler, N as NextFn, P as Pipeline, t as PipelineOptions, n as ReadReceipts, o as RegisteredAgent, T as Token, u as hookMatcherMatches, p as normalizeRecipient } from './pipeline-Bxa3wDcy.js';
|
|
3
|
+
import { E as EventBus, l as MemoryStore, a as EventName, L as Listener, B as BrainArbiter } from './brain-BaQsRNka.js';
|
|
4
|
+
export { b as BrainDecision, c as BrainDecisionOption, d as BrainDecisionQueue, e 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-BaQsRNka.js';
|
|
5
|
+
import { W as WorktreeManager } from './index-BilZMsOK.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-BilZMsOK.js';
|
|
7
7
|
import { C as Context, P as Provider, T as Tool, R as Request, b as Response, M as Message, g as ContentBlock, n as TextBlock } from './context-CLz3z_E8.js';
|
|
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, N as SddError, q as SessionData, O as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, Q as StateChange, V as StateChangeHandler, W as StopReason, X as StreamEvent, Y as StreamHangError, Z as ThinkingBlock, s as TodoItem, c as TokenCounter, _ as ToolCallContext, $ as ToolError, a0 as ToolFinalEvent, j as ToolProgressEvent, m as ToolResultBlock, a1 as ToolStreamEvent, l as ToolUseBlock, U as Usage, a2 as WrongStackError, a3 as asBlocks, a4 as asText, a5 as extractRunEnv, a6 as isAgentError, a7 as isConfigError, a8 as isFsError, a9 as isImageBlock, aa as isPluginError, ab as isSddError, ac as isSessionError, ad as isTextBlock, ae as isThinkingBlock, af as isToolError, ag as isToolResultBlock, ah as isToolUseBlock, ai as isWrongStackError, aj as toWrongStackError, ak as wrapAsState } from './context-CLz3z_E8.js';
|
|
9
|
-
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-
|
|
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-
|
|
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, w as ModelsDevModel, a as ModelsDevPayload, x as ModelsDevProvider, M as ModelsRegistry, y as PluginConfig, z as ProviderApiKey, P as ProviderConfig, b as ResolvedModel, R as ResolvedProvider, B as SessionLoggingConfig, S as ShellHook, E as SyncCategory, k as SyncConfig, T as ToolsConfig, W as WireFamily, G as formatContextWindowModeList, J as getContextWindowMode, K as isContextWindowModeId, N as listContextWindowModes, O as resolveContextWindowPolicy } from './config-
|
|
8
|
+
export { A as AgentError, d as CacheStats, 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, N as SddError, q as SessionData, O as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, Q as StateChange, V as StateChangeHandler, W as StopReason, X as StreamEvent, Y as StreamHangError, Z as ThinkingBlock, s as TodoItem, c as TokenCounter, _ as ToolCallContext, $ as ToolError, a0 as ToolFinalEvent, j as ToolProgressEvent, m as ToolResultBlock, a1 as ToolStreamEvent, l as ToolUseBlock, U as Usage, a2 as WrongStackError, a3 as asBlocks, a4 as asText, a5 as extractRunEnv, a6 as isAgentError, a7 as isConfigError, a8 as isFsError, a9 as isImageBlock, aa as isPluginError, ab as isSddError, ac as isSessionError, ad as isTextBlock, ae as isThinkingBlock, af as isToolError, ag as isToolResultBlock, ah as isToolUseBlock, ai as isWrongStackError, aj as toWrongStackError, ak as wrapAsState } from './context-CLz3z_E8.js';
|
|
9
|
+
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-C8_e4Lo1.js';
|
|
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-eSsrto5d.js';
|
|
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, w as ModelsDevModel, a as ModelsDevPayload, x as ModelsDevProvider, M as ModelsRegistry, y as PluginConfig, z as ProviderApiKey, P as ProviderConfig, b as ResolvedModel, R as ResolvedProvider, B as SessionLoggingConfig, S as ShellHook, E as SyncCategory, k as SyncConfig, T as ToolsConfig, W as WireFamily, G as formatContextWindowModeList, J as getContextWindowMode, K as isContextWindowModeId, N as listContextWindowModes, O as resolveContextWindowPolicy } from './config-eSsrto5d.js';
|
|
12
12
|
export { a as CompactReport, C as Compactor } from './compactor-BRfg3QPd.js';
|
|
13
13
|
import { P as PermissionPolicy } from './permission-DbWPbuoA.js';
|
|
14
14
|
export { a as PermissionDecision, S as SecretScrubber, T as TrustPolicy } from './permission-DbWPbuoA.js';
|
|
@@ -20,45 +20,45 @@ import { a as DefaultSecretVault } from './secret-vault-CeVNiy_f.js';
|
|
|
20
20
|
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-CeVNiy_f.js';
|
|
21
21
|
import { D as DefaultLogger } from './logger-DmmQhf4P.js';
|
|
22
22
|
export { a as DefaultLoggerOptions, L as LogFormat, n as noOpLogger } from './logger-DmmQhf4P.js';
|
|
23
|
-
import { D as DefaultPathResolver } from './path-resolver-
|
|
24
|
-
export { a as DefaultTokenCounter } from './path-resolver-
|
|
25
|
-
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-
|
|
23
|
+
import { D as DefaultPathResolver } from './path-resolver-B7VjhUHq.js';
|
|
24
|
+
export { a as DefaultTokenCounter } from './path-resolver-B7VjhUHq.js';
|
|
25
|
+
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-CAMabk-X.js';
|
|
26
26
|
import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
|
|
27
27
|
export { b as SkillEntry, a as SkillManifest } from './skill-Bj6Ezqb8.js';
|
|
28
28
|
export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
|
|
29
|
-
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-
|
|
30
|
-
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-
|
|
31
|
-
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-
|
|
29
|
+
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-DhYLgAJo.js';
|
|
30
|
+
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-DhYLgAJo.js';
|
|
31
|
+
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-DpanBg8D.js';
|
|
32
32
|
import { M as ModeStore } from './mode-CZlO9iU1.js';
|
|
33
33
|
export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest } from './mode-CZlO9iU1.js';
|
|
34
|
-
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-
|
|
34
|
+
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-l_DsFEbr.js';
|
|
35
35
|
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';
|
|
36
36
|
import { d as TaskGraph, T as TaskType, a as TaskPriority, e as TaskNode } from './task-graph-u1q9Jkyk.js';
|
|
37
37
|
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';
|
|
38
38
|
import { T as Tracer, M as MetricsSink, H as HealthRegistry } from './observability-D-HZN_mF.js';
|
|
39
39
|
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';
|
|
40
|
-
import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, c as ToolCallPipelinePayload } from './index-
|
|
41
|
-
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, 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-
|
|
40
|
+
import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, c as ToolCallPipelinePayload } from './index-Csoc_bKs.js';
|
|
41
|
+
export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, 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-Csoc_bKs.js';
|
|
42
42
|
export { AutonomyStage, DistributiveOmit, DistributivePick } from './types/index.js';
|
|
43
43
|
import { estimateMessageTokens } from './utils/index.js';
|
|
44
|
-
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, computeMessageTokens, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, 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';
|
|
44
|
+
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, computeMessageTokens, createToolOutputSerializer, deepMerge, detectNewlineStyle, ensureDir, 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, truncate, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut } from './utils/index.js';
|
|
45
45
|
export { T as TaskItem, c as computeTaskItemProgress, f as formatTaskList, a as formatTaskProgress } from './task-format-vGOIftmK.js';
|
|
46
46
|
import { W as WstackPaths } from './wstack-paths-CJjEwPXn.js';
|
|
47
47
|
export { a as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths, w as wstackGlobalRoot } from './wstack-paths-CJjEwPXn.js';
|
|
48
48
|
export { expectDefined } from './utils/expect-defined.js';
|
|
49
|
-
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 mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from './plan-templates-
|
|
49
|
+
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 mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from './plan-templates-D3guWwTi.js';
|
|
50
50
|
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-BhtkkFFy.js';
|
|
51
51
|
export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BfeCUbmk.js';
|
|
52
52
|
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-AOk0LVsV.js';
|
|
53
|
-
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-
|
|
53
|
+
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-BgoPmZ8l.js';
|
|
54
54
|
export { DefaultProviderRunner } from './defaults/index.js';
|
|
55
|
-
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-
|
|
56
|
-
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-
|
|
55
|
+
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-CWdU1_cO.js';
|
|
56
|
+
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-Bs-M0Mo6.js';
|
|
57
57
|
export { D as DefaultModeStore, L as LLMSelector, a as LLMSelectorOptions, M as ModeLoaderOptions, l as loadProjectModes, b as loadUserModes } from './llm-selector-D22R4AFz.js';
|
|
58
58
|
import { TaskStore } from './sdd/index.js';
|
|
59
59
|
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';
|
|
60
60
|
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';
|
|
61
|
-
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-
|
|
61
|
+
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-DfXxCASH.js';
|
|
62
62
|
export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
|
|
63
63
|
import { ReplayLogStore, DefaultPromptStore } from './storage/index.js';
|
|
64
64
|
export { ALL_SYNC_CATEGORIES, AgentEntry, AgentLiveStatus, AgentStatusTracker, AgentStatusTrackerOptions, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, ConsolidationOp, DefaultSessionRewinder, GraphMemoryBackend, GraphMemoryBackendOptions, MemoryConsolidatorOptions, PromptEntry, PromptStore, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionLiveStatus, SessionMemoryConsolidator, SessionRecovery, SessionRegistry, SessionRegistryEntry, SessionRewinderOptions, StaleSession, SyncResult, TaskFile, ToolAuditLog, ToolAuditLogOptions, VerifyResult, emptyTaskFile, getSessionRegistry, hasSessionRegistry, loadTasks, mutateTasks, saveTasks } from './storage/index.js';
|
|
@@ -68,7 +68,7 @@ import { L as Logger } from './logger-B63L5bTg.js';
|
|
|
68
68
|
export { a as LogLevel } from './logger-B63L5bTg.js';
|
|
69
69
|
export { S as SecretVault, n as noOpVault } from './secret-vault-BJDY28ev.js';
|
|
70
70
|
export { ConversationTurn, ENHANCER_SYSTEM_PROMPT, EnhanceResult, EnhanceUserPromptOptions, enhanceUserPrompt, normalizedEqual, recentTextTurns, shouldEnhance } from './execution/prompt-enhancer.js';
|
|
71
|
-
export { B as BrainInterventionInput, a as BrainMonitor, b as BrainMonitorOptions, D as DEPENDENCY_FILE_PATTERNS, c as DefaultMailbox, d as DepWatchEntry, e as DepWatcherBridgeOptions, f as DependencyWatcherConfig, G as GlobalMailbox, M as MailToolsOptions, g as MailboxResolver, h as MailboxToolOptions, O as OutdatedNotifyMessage, P as PackageAuthorEntry, i as PackageAuthorLog, j as PackageAuthorTrackerOptions, k as PackageOutdatedEntry, l as PackageOutdatedResult, m as PackageOutdatedWatcherOptions, n as attachDepWatcherBridge, o as detectPackageEcosystem, p as getFullPackageLog, q as getManifestPackages, r as getPackageAuthor, s as getPackagesByAgent, t as mailboxSessionTag, u as makeDependencyWatcherConfig, v as makeMailInboxTool, w as makeMailSendTool, x as makeMailboxTool, y as recordPackageAction, z as resolveMailboxIdentity, A as resolveProjectDir, C as startPackageOutdatedWatcher, E as updatePackageOutdatedStatus } from './package-outdated-watcher-
|
|
71
|
+
export { B as BrainInterventionInput, a as BrainMonitor, b as BrainMonitorOptions, D as DEPENDENCY_FILE_PATTERNS, c as DefaultMailbox, d as DepWatchEntry, e as DepWatcherBridgeOptions, f as DependencyWatcherConfig, G as GlobalMailbox, M as MailToolsOptions, g as MailboxResolver, h as MailboxToolOptions, O as OutdatedNotifyMessage, P as PackageAuthorEntry, i as PackageAuthorLog, j as PackageAuthorTrackerOptions, k as PackageOutdatedEntry, l as PackageOutdatedResult, m as PackageOutdatedWatcherOptions, n as attachDepWatcherBridge, o as detectPackageEcosystem, p as getFullPackageLog, q as getManifestPackages, r as getPackageAuthor, s as getPackagesByAgent, t as mailboxSessionTag, u as makeDependencyWatcherConfig, v as makeMailInboxTool, w as makeMailSendTool, x as makeMailboxTool, y as recordPackageAction, z as resolveMailboxIdentity, A as resolveProjectDir, C as startPackageOutdatedWatcher, E as updatePackageOutdatedStatus } from './package-outdated-watcher-Dz-eNZlQ.js';
|
|
72
72
|
export { AutonomyBrainOptions, BrainAutoRisk, TieredBrainArbiterOptions, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary } from './execution/index.js';
|
|
73
73
|
import './path-resolver-CPRj4bFY.js';
|
|
74
74
|
import './selector-Cb4_9-hf.js';
|
package/dist/index.js
CHANGED
|
@@ -1317,6 +1317,11 @@ function asText(content) {
|
|
|
1317
1317
|
return content.filter((b) => b.type === "text").map((b) => b.text).join("");
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
+
// src/utils/string.ts
|
|
1321
|
+
function truncate(s, max) {
|
|
1322
|
+
return s.length <= max ? s : `${s.slice(0, max - 1)}\u2026`;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1320
1325
|
// src/types/provider.ts
|
|
1321
1326
|
var ProviderError = class extends WrongStackError {
|
|
1322
1327
|
status;
|
|
@@ -1375,9 +1380,6 @@ function describeStatus(status, type) {
|
|
|
1375
1380
|
if (type) return `${type} (${status})`;
|
|
1376
1381
|
return `HTTP ${status}`;
|
|
1377
1382
|
}
|
|
1378
|
-
function truncate(s, n) {
|
|
1379
|
-
return s.length <= n ? s : `${s.slice(0, n - 1)}\u2026`;
|
|
1380
|
-
}
|
|
1381
1383
|
var StreamHangError = class extends ProviderError {
|
|
1382
1384
|
/** Name of the provider that hung, e.g. "zai", "anthropic". */
|
|
1383
1385
|
hungProviderId;
|
|
@@ -2043,6 +2045,10 @@ var DefaultTokenCounter = class {
|
|
|
2043
2045
|
const price = model ? this.priceCache.get(model) : void 0;
|
|
2044
2046
|
if (price) {
|
|
2045
2047
|
this.applyPrice(usage, price);
|
|
2048
|
+
this.events?.emit("token.accounted", {
|
|
2049
|
+
usage: this.total(),
|
|
2050
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
2051
|
+
});
|
|
2046
2052
|
} else if (this.registry && this.providerId && model) {
|
|
2047
2053
|
if (this.priceCache.size >= PRICE_CACHE_MAX_SIZE) {
|
|
2048
2054
|
const keys = [...this.priceCache.keys()];
|
|
@@ -2053,6 +2059,10 @@ var DefaultTokenCounter = class {
|
|
|
2053
2059
|
const p = priceFromModel(m);
|
|
2054
2060
|
this.priceCache.set(model, p);
|
|
2055
2061
|
this.applyPrice(usage, p);
|
|
2062
|
+
this.events?.emit("token.accounted", {
|
|
2063
|
+
usage: this.total(),
|
|
2064
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
2065
|
+
});
|
|
2056
2066
|
}
|
|
2057
2067
|
}).catch(() => {
|
|
2058
2068
|
this.events?.emit("token.cost_estimate_unavailable", { model: model ?? "<unknown>" });
|
|
@@ -2075,6 +2085,10 @@ var DefaultTokenCounter = class {
|
|
|
2075
2085
|
}
|
|
2076
2086
|
this.priceCache.set(resolved.modelId, price);
|
|
2077
2087
|
this.applyPrice(usage, price);
|
|
2088
|
+
this.events?.emit("token.accounted", {
|
|
2089
|
+
usage: this.total(),
|
|
2090
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
2091
|
+
});
|
|
2078
2092
|
}
|
|
2079
2093
|
total() {
|
|
2080
2094
|
return {
|
|
@@ -5919,8 +5933,10 @@ function buildChildEnv(optsOrSessionId) {
|
|
|
5919
5933
|
);
|
|
5920
5934
|
}
|
|
5921
5935
|
const out = {};
|
|
5936
|
+
const nodeEnvDefaulted = process.env["WRONGSTACK_NODE_ENV_DEFAULTED"] === "1";
|
|
5922
5937
|
for (const [k, v] of Object.entries(process.env)) {
|
|
5923
5938
|
if (v === void 0) continue;
|
|
5939
|
+
if (nodeEnvDefaulted && (k === "NODE_ENV" || k === "WRONGSTACK_NODE_ENV_DEFAULTED")) continue;
|
|
5924
5940
|
if (passthrough) {
|
|
5925
5941
|
out[k] = v;
|
|
5926
5942
|
continue;
|
|
@@ -9991,7 +10007,7 @@ async function runProviderWithRetry(opts) {
|
|
|
9991
10007
|
span?.setAttribute("provider.usage_in", res.usage.input);
|
|
9992
10008
|
span?.setAttribute("provider.usage_out", res.usage.output);
|
|
9993
10009
|
span?.end();
|
|
9994
|
-
logger.
|
|
10010
|
+
logger.debug("Provider call succeeded", {
|
|
9995
10011
|
...providerLogCtx(provider, request),
|
|
9996
10012
|
stopReason: res.stopReason,
|
|
9997
10013
|
usageInput: res.usage.input,
|
|
@@ -22093,14 +22109,14 @@ function renderNode(graph, nodeId, lines, rendered, childrenMap, compact, prefix
|
|
|
22093
22109
|
const icon = STATUS_ICON2[node.status];
|
|
22094
22110
|
const prioIcon = PRIORITY_ICON2[node.priority];
|
|
22095
22111
|
const typeIcon = TYPE_ICON2[node.type];
|
|
22096
|
-
const title = compact ?
|
|
22112
|
+
const title = compact ? truncate(node.title, 40) : node.title;
|
|
22097
22113
|
const blockedBy = childrenMap.get(nodeId) ?? [];
|
|
22098
22114
|
const depsStr = blockedBy.length > 0 ? ` \u2190 [${blockedBy.map((d) => graph.nodes.get(d)?.title?.slice(0, 12) ?? "?").join(", ")}]` : "";
|
|
22099
22115
|
lines.push(`${prefix}${icon} ${typeIcon} ${prioIcon} ${title}${depsStr}`);
|
|
22100
22116
|
if (!compact && node.description) {
|
|
22101
22117
|
const descLines = node.description.split("\n").slice(0, 3);
|
|
22102
22118
|
for (const dl of descLines) {
|
|
22103
|
-
lines.push(`${prefix} \u2514 ${
|
|
22119
|
+
lines.push(`${prefix} \u2514 ${truncate(dl, 60)}`);
|
|
22104
22120
|
}
|
|
22105
22121
|
}
|
|
22106
22122
|
const dependents = graph.edges.filter((e) => e.type === "depends_on" && e.to === nodeId).map((e) => e.from).filter((id) => graph.nodes.has(id));
|
|
@@ -22176,10 +22192,6 @@ function renderSpecAnalysis(spec, analysis) {
|
|
|
22176
22192
|
}
|
|
22177
22193
|
return lines.join("\n");
|
|
22178
22194
|
}
|
|
22179
|
-
function truncate2(str, maxLen) {
|
|
22180
|
-
if (str.length <= maxLen) return str;
|
|
22181
|
-
return str.slice(0, maxLen - 1) + "\u2026";
|
|
22182
|
-
}
|
|
22183
22195
|
|
|
22184
22196
|
// src/sdd/critical-path.ts
|
|
22185
22197
|
function analyzeCriticalPath(graph) {
|
|
@@ -29516,7 +29528,9 @@ function normalizeRecipient(to) {
|
|
|
29516
29528
|
|
|
29517
29529
|
// src/coordination/global-mailbox.ts
|
|
29518
29530
|
var MAILBOX_FILE = "_mailbox.jsonl";
|
|
29531
|
+
var CLIENT_REGISTRY_FILE = "_mailbox.clients.json";
|
|
29519
29532
|
var AGENT_STALE_MS = 6e4;
|
|
29533
|
+
var CLIENT_STALE_MS = 6e4;
|
|
29520
29534
|
var HEARTBEAT_THROTTLE_MS = 5e3;
|
|
29521
29535
|
var REGISTRY_CACHE_TTL_MS = 2e3;
|
|
29522
29536
|
var LINE_SEPARATOR = "\n";
|
|
@@ -29528,6 +29542,8 @@ var GlobalMailbox = class {
|
|
|
29528
29542
|
messagePath;
|
|
29529
29543
|
/** Path to the JSON agent registry file. */
|
|
29530
29544
|
registryPath;
|
|
29545
|
+
/** Path to the JSON client registry file. */
|
|
29546
|
+
clientRegistryPath;
|
|
29531
29547
|
/** Optional event bus for emitting agent registration/heartbeat events. */
|
|
29532
29548
|
_events;
|
|
29533
29549
|
/**
|
|
@@ -29539,8 +29555,17 @@ var GlobalMailbox = class {
|
|
|
29539
29555
|
_registryCache = null;
|
|
29540
29556
|
/** When the registry cache was last refreshed from disk (epoch ms). */
|
|
29541
29557
|
_registryCacheAt = 0;
|
|
29558
|
+
/**
|
|
29559
|
+
* Local cache of the client registry to avoid re-reading on every call.
|
|
29560
|
+
* Same reasoning as agent registry cache.
|
|
29561
|
+
*/
|
|
29562
|
+
_clientRegistryCache = null;
|
|
29563
|
+
/** When the client registry cache was last refreshed from disk (epoch ms). */
|
|
29564
|
+
_clientRegistryCacheAt = 0;
|
|
29542
29565
|
/** Last time each local agent sent a heartbeat (throttle). */
|
|
29543
29566
|
_lastHeartbeat = /* @__PURE__ */ new Map();
|
|
29567
|
+
/** Last time each local client sent a heartbeat (throttle). */
|
|
29568
|
+
_lastClientHeartbeat = /* @__PURE__ */ new Map();
|
|
29544
29569
|
/**
|
|
29545
29570
|
* @param projectDir — `~/.wrongstack/projects/<slug>/`
|
|
29546
29571
|
* @param events — optional EventBus for real-time TUI/WebUI notifications
|
|
@@ -29548,6 +29573,7 @@ var GlobalMailbox = class {
|
|
|
29548
29573
|
constructor(projectDir, events) {
|
|
29549
29574
|
this.messagePath = path7.join(projectDir, MAILBOX_FILE);
|
|
29550
29575
|
this.registryPath = path7.join(projectDir, "_mailbox.registry.json");
|
|
29576
|
+
this.clientRegistryPath = path7.join(projectDir, CLIENT_REGISTRY_FILE);
|
|
29551
29577
|
this._events = events;
|
|
29552
29578
|
}
|
|
29553
29579
|
// ── Messages ────────────────────────────────────────────────────────────
|
|
@@ -29729,9 +29755,74 @@ var GlobalMailbox = class {
|
|
|
29729
29755
|
const all = await this.getAgentStatuses();
|
|
29730
29756
|
return all.filter((a) => a.online);
|
|
29731
29757
|
}
|
|
29758
|
+
// ── Client registry ─────────────────────────────────────────────────────
|
|
29759
|
+
async registerClient(input) {
|
|
29760
|
+
await this._ensureClientRegistry();
|
|
29761
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
29762
|
+
const client = {
|
|
29763
|
+
clientId: input.clientId,
|
|
29764
|
+
sessionId: input.sessionId,
|
|
29765
|
+
name: input.name,
|
|
29766
|
+
source: input.source,
|
|
29767
|
+
registeredAt: now,
|
|
29768
|
+
lastSeenAt: now,
|
|
29769
|
+
pid: input.pid
|
|
29770
|
+
};
|
|
29771
|
+
await withFileLock(this.clientRegistryPath, async () => {
|
|
29772
|
+
const registry = await this._readClientRegistry({ fresh: true });
|
|
29773
|
+
this._pruneStaleClientsInPlace(registry);
|
|
29774
|
+
registry.set(input.clientId, client);
|
|
29775
|
+
this._clientRegistryCache = registry;
|
|
29776
|
+
this._clientRegistryCacheAt = Date.now();
|
|
29777
|
+
await this._writeClientRegistry(registry);
|
|
29778
|
+
});
|
|
29779
|
+
this._events?.emitCustom("mailbox.client_registered", {
|
|
29780
|
+
clientId: input.clientId,
|
|
29781
|
+
sessionId: input.sessionId,
|
|
29782
|
+
name: input.name,
|
|
29783
|
+
source: input.source
|
|
29784
|
+
});
|
|
29785
|
+
}
|
|
29786
|
+
async clientHeartbeat(input) {
|
|
29787
|
+
const last = this._lastClientHeartbeat.get(input.clientId) ?? 0;
|
|
29788
|
+
const now = Date.now();
|
|
29789
|
+
if (now - last < HEARTBEAT_THROTTLE_MS) return;
|
|
29790
|
+
this._lastClientHeartbeat.set(input.clientId, now);
|
|
29791
|
+
await this._ensureClientRegistry();
|
|
29792
|
+
await withFileLock(this.clientRegistryPath, async () => {
|
|
29793
|
+
const registry = await this._readClientRegistry({ fresh: true });
|
|
29794
|
+
this._pruneStaleClientsInPlace(registry);
|
|
29795
|
+
const client = registry.get(input.clientId);
|
|
29796
|
+
if (client) {
|
|
29797
|
+
client.lastSeenAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
29798
|
+
}
|
|
29799
|
+
this._clientRegistryCache = registry;
|
|
29800
|
+
this._clientRegistryCacheAt = Date.now();
|
|
29801
|
+
await this._writeClientRegistry(registry);
|
|
29802
|
+
});
|
|
29803
|
+
this._events?.emitCustom("mailbox.client_heartbeat", {
|
|
29804
|
+
clientId: input.clientId
|
|
29805
|
+
});
|
|
29806
|
+
}
|
|
29807
|
+
async getClientStatuses() {
|
|
29808
|
+
await this._ensureClientRegistry();
|
|
29809
|
+
const registry = await this._readClientRegistry();
|
|
29810
|
+
this._pruneStaleClientsInPlace(registry);
|
|
29811
|
+
const now = Date.now();
|
|
29812
|
+
return Array.from(registry.values()).map((c) => ({
|
|
29813
|
+
clientId: c.clientId,
|
|
29814
|
+
name: c.name,
|
|
29815
|
+
source: c.source,
|
|
29816
|
+
sessionId: c.sessionId,
|
|
29817
|
+
lastSeenAt: c.lastSeenAt,
|
|
29818
|
+
online: now - new Date(c.lastSeenAt).getTime() < CLIENT_STALE_MS,
|
|
29819
|
+
pid: c.pid
|
|
29820
|
+
})).sort((a, b) => b.lastSeenAt.localeCompare(a.lastSeenAt));
|
|
29821
|
+
}
|
|
29732
29822
|
// ── Lifecycle ───────────────────────────────────────────────────────────
|
|
29733
29823
|
async close() {
|
|
29734
29824
|
this._registryCache = null;
|
|
29825
|
+
this._clientRegistryCache = null;
|
|
29735
29826
|
}
|
|
29736
29827
|
async clearAll() {
|
|
29737
29828
|
await withFileLock(this.messagePath, async () => {
|
|
@@ -29810,6 +29901,51 @@ var GlobalMailbox = class {
|
|
|
29810
29901
|
await fsp3.writeFile(tmp, JSON.stringify(obj, null, 2), "utf8");
|
|
29811
29902
|
await fsp3.rename(tmp, this.registryPath);
|
|
29812
29903
|
}
|
|
29904
|
+
// ── Client registry internals ───────────────────────────────────────────
|
|
29905
|
+
async _ensureClientRegistry() {
|
|
29906
|
+
await fsp3.mkdir(path7.dirname(this.clientRegistryPath), { recursive: true });
|
|
29907
|
+
}
|
|
29908
|
+
async _readClientRegistry(opts) {
|
|
29909
|
+
if (!opts?.fresh && this._clientRegistryCache && Date.now() - this._clientRegistryCacheAt < REGISTRY_CACHE_TTL_MS) {
|
|
29910
|
+
return new Map(this._clientRegistryCache);
|
|
29911
|
+
}
|
|
29912
|
+
try {
|
|
29913
|
+
const raw = await fsp3.readFile(this.clientRegistryPath, "utf8");
|
|
29914
|
+
const data = JSON.parse(raw);
|
|
29915
|
+
const map = /* @__PURE__ */ new Map();
|
|
29916
|
+
for (const [id, client] of Object.entries(data)) {
|
|
29917
|
+
map.set(id, client);
|
|
29918
|
+
}
|
|
29919
|
+
this._clientRegistryCache = map;
|
|
29920
|
+
this._clientRegistryCacheAt = Date.now();
|
|
29921
|
+
return new Map(map);
|
|
29922
|
+
} catch (err) {
|
|
29923
|
+
if (err.code === "ENOENT") {
|
|
29924
|
+
const empty = /* @__PURE__ */ new Map();
|
|
29925
|
+
this._clientRegistryCache = empty;
|
|
29926
|
+
this._clientRegistryCacheAt = Date.now();
|
|
29927
|
+
return empty;
|
|
29928
|
+
}
|
|
29929
|
+
throw err;
|
|
29930
|
+
}
|
|
29931
|
+
}
|
|
29932
|
+
_pruneStaleClientsInPlace(registry) {
|
|
29933
|
+
const cutoff = Date.now() - CLIENT_STALE_MS;
|
|
29934
|
+
for (const client of registry.values()) {
|
|
29935
|
+
if (new Date(client.lastSeenAt).getTime() < cutoff) {
|
|
29936
|
+
client.lastSeenAt = new Date(cutoff).toISOString();
|
|
29937
|
+
}
|
|
29938
|
+
}
|
|
29939
|
+
}
|
|
29940
|
+
async _writeClientRegistry(registry) {
|
|
29941
|
+
const obj = {};
|
|
29942
|
+
for (const [id, client] of registry) {
|
|
29943
|
+
obj[id] = client;
|
|
29944
|
+
}
|
|
29945
|
+
const tmp = `${this.clientRegistryPath}.${randomUUID().slice(0, 8)}.tmp`;
|
|
29946
|
+
await fsp3.writeFile(tmp, JSON.stringify(obj, null, 2), "utf8");
|
|
29947
|
+
await fsp3.rename(tmp, this.clientRegistryPath);
|
|
29948
|
+
}
|
|
29813
29949
|
};
|
|
29814
29950
|
function defaultResolveProjectDir(ctx) {
|
|
29815
29951
|
return resolveProjectDir(ctx.projectRoot, wstackGlobalRoot());
|
|
@@ -30883,7 +31019,8 @@ async function runShellHook(spec, input, logger) {
|
|
|
30883
31019
|
cwd: input.cwd,
|
|
30884
31020
|
env: buildChildEnv(),
|
|
30885
31021
|
stdio: ["pipe", "pipe", "pipe"],
|
|
30886
|
-
shell: true
|
|
31022
|
+
shell: true,
|
|
31023
|
+
windowsHide: true
|
|
30887
31024
|
});
|
|
30888
31025
|
} catch (err2) {
|
|
30889
31026
|
logger?.warn?.(`hook spawn failed: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
@@ -31975,7 +32112,8 @@ ${this.skillBodyCache}`);
|
|
|
31975
32112
|
proc = spawn("git", ["status", "--porcelain=v1", "--branch"], {
|
|
31976
32113
|
cwd: root,
|
|
31977
32114
|
env: buildChildEnv(),
|
|
31978
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
32115
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
32116
|
+
windowsHide: true
|
|
31979
32117
|
});
|
|
31980
32118
|
let buf = "";
|
|
31981
32119
|
proc.stdout?.on("data", (c) => {
|
|
@@ -34714,17 +34852,19 @@ ${check.stderr}`);
|
|
|
34714
34852
|
return new Promise((res) => {
|
|
34715
34853
|
let stdout = "";
|
|
34716
34854
|
let stderr = "";
|
|
34855
|
+
const MAX_GIT_OUTPUT = 1e6;
|
|
34717
34856
|
const child = spawn(this.gitBin, args, {
|
|
34718
34857
|
cwd,
|
|
34719
34858
|
env: buildChildEnv(),
|
|
34720
34859
|
stdio: ["ignore", "pipe", "pipe"],
|
|
34721
|
-
signal: AbortSignal.timeout(3e4)
|
|
34860
|
+
signal: AbortSignal.timeout(3e4),
|
|
34861
|
+
windowsHide: true
|
|
34722
34862
|
});
|
|
34723
34863
|
child.stdout?.on("data", (c) => {
|
|
34724
|
-
stdout += c.toString();
|
|
34864
|
+
if (stdout.length < MAX_GIT_OUTPUT) stdout += c.toString();
|
|
34725
34865
|
});
|
|
34726
34866
|
child.stderr?.on("data", (c) => {
|
|
34727
|
-
stderr += c.toString();
|
|
34867
|
+
if (stderr.length < MAX_GIT_OUTPUT) stderr += c.toString();
|
|
34728
34868
|
});
|
|
34729
34869
|
child.on("error", (err) => res({ code: 1, stdout, stderr: err.message }));
|
|
34730
34870
|
child.on("close", (code) => res({ code: code ?? 1, stdout, stderr }));
|
|
@@ -35092,7 +35232,7 @@ var CollaborationBus = class {
|
|
|
35092
35232
|
const timeoutPromise = new Promise((resolve14) => {
|
|
35093
35233
|
timer = setTimeout(() => resolve14("timeout"), timeoutMs);
|
|
35094
35234
|
});
|
|
35095
|
-
const resumedPromise = this.pausePromise.then(() => "resumed");
|
|
35235
|
+
const resumedPromise = this.pausePromise.then(() => "resumed").catch(() => "resumed");
|
|
35096
35236
|
const winner = await Promise.race([resumedPromise, timeoutPromise]);
|
|
35097
35237
|
if (timer) clearTimeout(timer);
|
|
35098
35238
|
if (winner === "timeout") {
|
|
@@ -35284,6 +35424,14 @@ var DefaultMailbox = class {
|
|
|
35284
35424
|
await fsp3.writeFile(this.filePath, "", "utf8");
|
|
35285
35425
|
});
|
|
35286
35426
|
}
|
|
35427
|
+
// ── Client registry stubs (not applicable per-session) ─────────────────
|
|
35428
|
+
async registerClient(_input) {
|
|
35429
|
+
}
|
|
35430
|
+
async clientHeartbeat(_input) {
|
|
35431
|
+
}
|
|
35432
|
+
async getClientStatuses() {
|
|
35433
|
+
return [];
|
|
35434
|
+
}
|
|
35287
35435
|
// ── Internal ──────────────────────────────────────────────────────────
|
|
35288
35436
|
async _readAll() {
|
|
35289
35437
|
try {
|
|
@@ -36600,7 +36748,7 @@ function createGitPlugin() {
|
|
|
36600
36748
|
async function runGit(args, cwd) {
|
|
36601
36749
|
try {
|
|
36602
36750
|
return await new Promise((resolve14, reject) => {
|
|
36603
|
-
const child = spawn("git", args, { cwd, stdio: ["ignore", "pipe", "pipe"], signal: AbortSignal.timeout(3e4) });
|
|
36751
|
+
const child = spawn("git", args, { cwd, stdio: ["ignore", "pipe", "pipe"], signal: AbortSignal.timeout(3e4), windowsHide: true });
|
|
36604
36752
|
let stdout = "";
|
|
36605
36753
|
let stderr = "";
|
|
36606
36754
|
child.stdout?.on("data", (d) => {
|
|
@@ -37429,7 +37577,8 @@ async function runGit2(args, cwd) {
|
|
|
37429
37577
|
child = spawn("git", args, {
|
|
37430
37578
|
cwd,
|
|
37431
37579
|
stdio: ["ignore", "pipe", "pipe"],
|
|
37432
|
-
signal: AbortSignal.timeout(15e3)
|
|
37580
|
+
signal: AbortSignal.timeout(15e3),
|
|
37581
|
+
windowsHide: true
|
|
37433
37582
|
});
|
|
37434
37583
|
} catch (err) {
|
|
37435
37584
|
reject(err);
|
|
@@ -37598,6 +37747,6 @@ function createChimeraPlugin() {
|
|
|
37598
37747
|
};
|
|
37599
37748
|
}
|
|
37600
37749
|
|
|
37601
|
-
export { ACP_AGENTS, AGENTS_BY_PHASE, AGENT_CATALOG, AISpecBuilder, ALL_AGENT_DEFINITIONS, ALL_FLEET_AGENTS, ALL_SYNC_CATEGORIES, AUDIT_LOG_AGENT, Agent, AgentError, AgentStatusTracker, AnnotationsStore, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutoPhasePlanner, AutoPhaseRunner, AutonomousRunner, BUG_HUNTER_AGENT, BrainDecisionQueue, BrainMonitor, BudgetExceededError, CHIMERA_REVIEW_PROMPT, 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, DEPENDENCY_FILE_PATTERNS, DefaultAttachmentStore, DefaultBrainArbiter, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMailbox, 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, GlobalMailbox, 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, SddError, SddParallelRun, SddTaskDecomposer, SecurityScanner, SecurityScannerOrchestrator, SelectiveCompactor, SessionAnalyzer, SessionError, SessionMemoryConsolidator, SessionRecovery, SessionRegistry, 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, attachDepWatcherBridge, attachMailboxChecker, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, bootConfig, braveSearchServer, buildBtwBlock, buildChildEnv, buildGoalPreamble, buildLosslessDigest, buildMailboxBlock, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildQueuedMessagesBlock, buildRecoveryStrategies, buildSmartDigest, classifyFamily, clearPlan, collabInjectMiddleware, collabPauseMiddleware, color, compactLog, compileGlob, compileUserRegex, completePartialObject, composeDirectorPrompt, composeSubagentPrompt, computeMessageTokens, computeTaskItemProgress, computeTaskProgress, consumeBtwNotes, consumeQueuedMessagesUpdate, context7Server, contextManagerTool, createAutoExecutor, createAutoPhaseFromTaskGraph, createAutonomyBrain, createChimeraPlugin, createContextManagerTool, createDefaultPipelines, createDelegateTool, createGitPlugin, createMailboxChecker, createMcpControlTool, createMessage, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSessionEventBridge, createSkillsPlugin, createStrategyCompactor, createSyncPlugin, createTieredBrainArbiter, createToolOutputSerializer, decryptConfigSecrets, deepMerge, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, deriveTodosFromPlanItem, detectNewlineStyle, detectEcosystem as detectPackageEcosystem, dispatchAgent, downloadGitHubTarball, eliseOldToolResults, emptyGoal, emptyPlan, emptyTaskFile, encryptConfigSecrets, enhanceUserPrompt, ensureDir, estimateMessageTokens, estimateMessages, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, expandGlob, expectDefined, extractRunEnv, extractText, filesystemServer, findCriticalPath, findPreserveStart, flagsToConfigPatch, formatContextWindowModeList, formatDecisionSummary, formatGoal, formatHumanPrompt, formatPlan, formatPlanTemplates, formatTaskList, formatTaskProgress, formatTodosList, getAgentDefinition, getCalibrationState, getContextWindowMode, getFileHistory, getFilesByAgent, getFullLog, getFullPackageLog, getLastAuthor, getManifestPackages, getPackageAuthor, getPackagesByAgent, getPlanTemplate, getSessionRegistry, getTemplate, getTermSize, githubServer, goalFilePath, googleMapsServer, hasSessionRegistry, hasTextContent, hashRequest, hookMatcherMatches, injectPendingMailboxMessages, isAgentError, isConfigError, isContextWindowModeId, isFsError, isImageBlock, isInteractive, isPluginError, isPrimitiveArray, isSddError, isSecretField, isSessionError, isStdinTTY, isStdoutTTY, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isValidMatrixKey, isWrongStackError, listContextWindowModes, listPlanTemplates, listTemplates, loadDirectorState, loadGoal, loadPlan, loadPlugins, loadProjectModes, loadTasks, loadTodosCheckpoint, loadUserModes, mailboxSessionTag, makeAgentSubagentRunner, makeAskTool, makeAssignTool, makeAutonomyPromptContributor, makeAwaitTasksTool, makeCollabDebugTool, makeContinueToNextIterationTool, makeDependencyWatcherConfig, makeDirectorSessionFactory, makeFleetEmitTool, makeFleetHealthTool, makeFleetSessionTool, makeFleetStatusTool, makeFleetUsageTool, makeLLMClassifier, makeMailInboxTool, makeMailSendTool, makeMailboxTool, makeRollUpTool, makeSpawnTool, makeTerminateTool, matchAny, matchGlob, matrixKeyKind, mergeCustomModelDefs, mergeModelsPayload, migratePlaintextSecrets, miniMaxVisionServer, mutatePlan, mutateTasks, noOpLogger, noOpVault, normalizeRecipient, normalizeToLf, normalizedEqual, onResize, parseContinueDirective, parseEntries, parseProgressFromText, parseSkillRef, peekQueuedMessages, pendingBtwCount, phaseForRole, projectHash, projectSlug, recentTextTurns, recordActualUsage, recordFileAction, recordPackageAction, recordProgress, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resetCalibration, resolveAuditLevel, resolveChimeraConfig, resolveContextWindowPolicy, resolveMailboxIdentity, resolveModelMatrix, resolveProjectDir, resolveSessionLoggingConfig, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, runProviderWithRetry, runShellHook, safeParse, safeStringify, sanitizeJsonString, saveGoal, savePlan, saveTasks, saveTodosCheckpoint, scoreAgents, scoreMessage, securitySlashCommand, sentinelServer, setBtwNote, setOutputLineGuard, setPlanItemStatus, setProgress, setQueuedMessagesSnapshot, setRawMode, shouldEnhance, slackServer, sleep, stableStringify, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, startPackageOutdatedWatcher, startTechStackConsumer, stripAnsi, summarizeUsage, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, unifiedDiff, unloadPlugins, updatePackageOutdatedStatus, validateAgainstSchema, wireMetricsToEvents, withFileLock, wrapAsState, writeErr, writeOut, wstackGlobalRoot, zaiVisionServer };
|
|
37750
|
+
export { ACP_AGENTS, AGENTS_BY_PHASE, AGENT_CATALOG, AISpecBuilder, ALL_AGENT_DEFINITIONS, ALL_FLEET_AGENTS, ALL_SYNC_CATEGORIES, AUDIT_LOG_AGENT, Agent, AgentError, AgentStatusTracker, AnnotationsStore, AutoApprovePermissionPolicy, AutoCompactionMiddleware, AutoExecutor, AutoPhasePlanner, AutoPhaseRunner, AutonomousRunner, BUG_HUNTER_AGENT, BrainDecisionQueue, BrainMonitor, BudgetExceededError, CHIMERA_REVIEW_PROMPT, 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, DEPENDENCY_FILE_PATTERNS, DefaultAttachmentStore, DefaultBrainArbiter, DefaultConfigLoader, DefaultConfigStore, DefaultErrorHandler, DefaultHealthRegistry, DefaultLogger, DefaultMailbox, 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, GlobalMailbox, 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, SddError, SddParallelRun, SddTaskDecomposer, SecurityScanner, SecurityScannerOrchestrator, SelectiveCompactor, SessionAnalyzer, SessionError, SessionMemoryConsolidator, SessionRecovery, SessionRegistry, 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, attachDepWatcherBridge, attachMailboxChecker, attachPlanCheckpoint, attachTodosCheckpoint, awsServer, blockServer, bootConfig, braveSearchServer, buildBtwBlock, buildChildEnv, buildGoalPreamble, buildLosslessDigest, buildMailboxBlock, buildOtlpMetricsRequest, buildOtlpTracesRequest, buildQueuedMessagesBlock, buildRecoveryStrategies, buildSmartDigest, classifyFamily, clearPlan, collabInjectMiddleware, collabPauseMiddleware, color, compactLog, compileGlob, compileUserRegex, completePartialObject, composeDirectorPrompt, composeSubagentPrompt, computeMessageTokens, computeTaskItemProgress, computeTaskProgress, consumeBtwNotes, consumeQueuedMessagesUpdate, context7Server, contextManagerTool, createAutoExecutor, createAutoPhaseFromTaskGraph, createAutonomyBrain, createChimeraPlugin, createContextManagerTool, createDefaultPipelines, createDelegateTool, createGitPlugin, createMailboxChecker, createMcpControlTool, createMessage, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSessionEventBridge, createSkillsPlugin, createStrategyCompactor, createSyncPlugin, createTieredBrainArbiter, createToolOutputSerializer, decryptConfigSecrets, deepMerge, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, deriveTodosFromPlanItem, detectNewlineStyle, detectEcosystem as detectPackageEcosystem, dispatchAgent, downloadGitHubTarball, eliseOldToolResults, emptyGoal, emptyPlan, emptyTaskFile, encryptConfigSecrets, enhanceUserPrompt, ensureDir, estimateMessageTokens, estimateMessages, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, everArtServer, expandGlob, expectDefined, extractRunEnv, extractText, filesystemServer, findCriticalPath, findPreserveStart, flagsToConfigPatch, formatContextWindowModeList, formatDecisionSummary, formatGoal, formatHumanPrompt, formatPlan, formatPlanTemplates, formatTaskList, formatTaskProgress, formatTodosList, getAgentDefinition, getCalibrationState, getContextWindowMode, getFileHistory, getFilesByAgent, getFullLog, getFullPackageLog, getLastAuthor, getManifestPackages, getPackageAuthor, getPackagesByAgent, getPlanTemplate, getSessionRegistry, getTemplate, getTermSize, githubServer, goalFilePath, googleMapsServer, hasSessionRegistry, hasTextContent, hashRequest, hookMatcherMatches, injectPendingMailboxMessages, isAgentError, isConfigError, isContextWindowModeId, isFsError, isImageBlock, isInteractive, isPluginError, isPrimitiveArray, isSddError, isSecretField, isSessionError, isStdinTTY, isStdoutTTY, isTextBlock, isThinkingBlock, isToolError, isToolResultBlock, isToolUseBlock, isValidMatrixKey, isWrongStackError, listContextWindowModes, listPlanTemplates, listTemplates, loadDirectorState, loadGoal, loadPlan, loadPlugins, loadProjectModes, loadTasks, loadTodosCheckpoint, loadUserModes, mailboxSessionTag, makeAgentSubagentRunner, makeAskTool, makeAssignTool, makeAutonomyPromptContributor, makeAwaitTasksTool, makeCollabDebugTool, makeContinueToNextIterationTool, makeDependencyWatcherConfig, makeDirectorSessionFactory, makeFleetEmitTool, makeFleetHealthTool, makeFleetSessionTool, makeFleetStatusTool, makeFleetUsageTool, makeLLMClassifier, makeMailInboxTool, makeMailSendTool, makeMailboxTool, makeRollUpTool, makeSpawnTool, makeTerminateTool, matchAny, matchGlob, matrixKeyKind, mergeCustomModelDefs, mergeModelsPayload, migratePlaintextSecrets, miniMaxVisionServer, mutatePlan, mutateTasks, noOpLogger, noOpVault, normalizeRecipient, normalizeToLf, normalizedEqual, onResize, parseContinueDirective, parseEntries, parseProgressFromText, parseSkillRef, peekQueuedMessages, pendingBtwCount, phaseForRole, projectHash, projectSlug, recentTextTurns, recordActualUsage, recordFileAction, recordPackageAction, recordProgress, removePlanItem, renderProgress, renderPrometheus, renderSpecAnalysis, renderTaskGraph, renderTaskList, repairToolUseAdjacency, resetCalibration, resolveAuditLevel, resolveChimeraConfig, resolveContextWindowPolicy, resolveMailboxIdentity, resolveModelMatrix, resolveProjectDir, resolveSessionLoggingConfig, resolveWstackPaths, rewriteConfigEncrypted, rosterSummaryFromConfigs, runConfigMigrations, runProviderWithRetry, runShellHook, safeParse, safeStringify, sanitizeJsonString, saveGoal, savePlan, saveTasks, saveTodosCheckpoint, scoreAgents, scoreMessage, securitySlashCommand, sentinelServer, setBtwNote, setOutputLineGuard, setPlanItemStatus, setProgress, setQueuedMessagesSnapshot, setRawMode, shouldEnhance, slackServer, sleep, stableStringify, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, startPackageOutdatedWatcher, startTechStackConsumer, stripAnsi, summarizeUsage, templateToMarkdown, toStyle, toWrongStackError, topologicalSort, truncate, unifiedDiff, unloadPlugins, updatePackageOutdatedStatus, validateAgainstSchema, wireMetricsToEvents, withFileLock, wrapAsState, writeErr, writeOut, wstackGlobalRoot, zaiVisionServer };
|
|
37602
37751
|
//# sourceMappingURL=index.js.map
|
|
37603
37752
|
//# sourceMappingURL=index.js.map
|