@wrongstack/core 0.54.1 → 0.63.4
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-Dnhw4tnM.d.ts → agent-bridge-B5rxWrg3.d.ts} +1 -1
- package/dist/{agent-subagent-runner-By7jruZ_.d.ts → agent-subagent-runner-Zc3f37Sg.d.ts} +3 -3
- package/dist/{compactor-Duhsf0ge.d.ts → compactor-0vjZ8KTk.d.ts} +1 -1
- package/dist/{config-bht0txXS.d.ts → config-BdDuaZmB.d.ts} +112 -2
- package/dist/{context-DtPKqKYV.d.ts → context-iFMEO2rN.d.ts} +8 -8
- package/dist/coordination/index.d.ts +12 -12
- package/dist/defaults/index.d.ts +21 -21
- package/dist/defaults/index.js +254 -92
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-CbHTS4ZZ.d.ts → events-k8CHjcrN.d.ts} +20 -1
- package/dist/execution/index.d.ts +14 -14
- package/dist/execution/index.js +70 -10
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +7 -7
- package/dist/{goal-store-DwcTDDiX.d.ts → goal-store-iHltMi5n.d.ts} +1 -1
- package/dist/{index-CI271MjL.d.ts → index-Bc6BiP5q.d.ts} +77 -6
- package/dist/{index-ge5F2dnc.d.ts → index-CWdW_CJt.d.ts} +10 -8
- package/dist/index.d.ts +56 -32
- package/dist/index.js +520 -85
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +1 -1
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +9 -9
- package/dist/kernel/index.js +3 -1
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-DE6gzBry.d.ts → mcp-servers-CwqQDMYy.d.ts} +3 -3
- package/dist/models/index.d.ts +2 -2
- package/dist/{multi-agent-BmC_xiog.d.ts → multi-agent-SASYOrWA.d.ts} +2 -2
- package/dist/{multi-agent-coordinator-CjNX4uBD.d.ts → multi-agent-coordinator-CNUJYq7U.d.ts} +2 -2
- package/dist/{null-fleet-bus-BNiSlTna.d.ts → null-fleet-bus-DRoJ0uOY.d.ts} +7 -7
- package/dist/observability/index.d.ts +2 -2
- package/dist/{path-resolver-Bax85amb.d.ts → path-resolver-C5sPVne8.d.ts} +2 -2
- package/dist/{permission-Drm7LpPo.d.ts → permission-Ld-i5ugf.d.ts} +13 -1
- package/dist/{permission-policy-CU6sqWxF.d.ts → permission-policy-CL-mPufp.d.ts} +14 -7
- package/dist/{plan-templates-CLRcurWN.d.ts → plan-templates-ThBHOjaM.d.ts} +4 -4
- package/dist/{provider-runner-BikCxGCx.d.ts → provider-runner-DJQa211J.d.ts} +3 -3
- package/dist/{retry-policy-Chtlvr5b.d.ts → retry-policy-BfBScewS.d.ts} +1 -1
- package/dist/sdd/index.d.ts +9 -9
- package/dist/sdd/index.js +1 -1
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.d.ts +3 -3
- package/dist/security/index.js +115 -13
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-BvSPdJj6.d.ts → selector-DxhW7ML3.d.ts} +1 -1
- package/dist/{session-reader-BGhzMir4.d.ts → session-reader-q2ThszgG.d.ts} +1 -1
- package/dist/storage/index.d.ts +6 -6
- package/dist/{system-prompt-dtzV_mLm.d.ts → system-prompt-7LHyBbIf.d.ts} +32 -2
- package/dist/{tool-executor-CgU0yWpB.d.ts → tool-executor-CIjpGaRA.d.ts} +5 -4
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.js +62 -6
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, d as AgentExtension, B as BeforeIterationHook, h as BeforeRunHook, i as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook,
|
|
2
|
-
import '../context-
|
|
1
|
+
export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, d as AgentExtension, B as BeforeIterationHook, h as BeforeRunHook, i as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, w as ProviderRunnerFn, x as ProviderRunnerWrapper } from '../index-Bc6BiP5q.js';
|
|
2
|
+
import '../context-iFMEO2rN.js';
|
|
3
3
|
import '../logger-DDd5C--Z.js';
|
|
4
|
-
import '../system-prompt-
|
|
4
|
+
import '../system-prompt-7LHyBbIf.js';
|
|
5
|
+
import '../config-BdDuaZmB.js';
|
|
6
|
+
import '../models-registry-BcYJDKLm.js';
|
|
5
7
|
import '../observability-BhnVLBLS.js';
|
|
6
|
-
import '../events-
|
|
8
|
+
import '../events-k8CHjcrN.js';
|
|
7
9
|
import '../secret-scrubber-3MHDDAtm.js';
|
|
8
|
-
import '../permission-
|
|
9
|
-
import '../config-bht0txXS.js';
|
|
10
|
-
import '../models-registry-BcYJDKLm.js';
|
|
10
|
+
import '../permission-Ld-i5ugf.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Q as Tool, Y as ToolResultBlock, _ as ToolUseBlock, d as Context, T as TextBlock, p as Request, q as Response, m as Provider, a0 as WrongStackError, c as ContentBlock, u as RunOptions, J as JSONSchema } from './context-
|
|
1
|
+
import { Q as Tool, Y as ToolResultBlock, _ as ToolUseBlock, d as Context, T as TextBlock, p as Request, q as Response, m as Provider, a0 as WrongStackError, c as ContentBlock, u as RunOptions, J as JSONSchema } from './context-iFMEO2rN.js';
|
|
2
2
|
import { a as Logger } from './logger-DDd5C--Z.js';
|
|
3
|
-
import { e as Renderer, a as BuildContext, C as Container, P as Pipeline, R as ReadonlyPipeline } from './system-prompt-
|
|
3
|
+
import { H as HookRegistry, e as Renderer, a as BuildContext, C as Container, P as Pipeline, R as ReadonlyPipeline } from './system-prompt-7LHyBbIf.js';
|
|
4
|
+
import { l as HookEvent, r as ProviderConfig, n as HookMatcher, I as InProcessHook, a as Config } from './config-BdDuaZmB.js';
|
|
4
5
|
import { T as Tracer } from './observability-BhnVLBLS.js';
|
|
5
|
-
import { E as EventBus, k as EventName, L as Listener } from './events-
|
|
6
|
+
import { E as EventBus, k as EventName, L as Listener } from './events-k8CHjcrN.js';
|
|
6
7
|
import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
|
|
7
|
-
import { a as PermissionPolicy } from './permission-
|
|
8
|
-
import { n as ProviderConfig, a as Config } from './config-bht0txXS.js';
|
|
8
|
+
import { a as PermissionPolicy } from './permission-Ld-i5ugf.js';
|
|
9
9
|
import { W as WireFamily } from './models-registry-BcYJDKLm.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -95,6 +95,62 @@ declare class ToolRegistry {
|
|
|
95
95
|
clone(): ToolRegistry;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/** Minimal run-state the runner reads. `Context` structurally satisfies it. */
|
|
99
|
+
interface HookRunEnv {
|
|
100
|
+
cwd: string;
|
|
101
|
+
}
|
|
102
|
+
interface HookRunnerOptions {
|
|
103
|
+
registry: HookRegistry;
|
|
104
|
+
logger?: Logger;
|
|
105
|
+
/**
|
|
106
|
+
* When false, shell hooks are skipped entirely (in-process hooks still run).
|
|
107
|
+
* Set by the boot path under `--bare` / `--no-hooks` / untrusted sessions.
|
|
108
|
+
*/
|
|
109
|
+
allowShell?: boolean;
|
|
110
|
+
/** Resolves the active session id for the `HookInput` payload. */
|
|
111
|
+
sessionId?: () => string | undefined;
|
|
112
|
+
}
|
|
113
|
+
interface PreToolUseResult {
|
|
114
|
+
block?: boolean;
|
|
115
|
+
reason?: string;
|
|
116
|
+
/** Present only when a hook replaced the tool input. */
|
|
117
|
+
input?: Record<string, unknown>;
|
|
118
|
+
}
|
|
119
|
+
interface PromptResult {
|
|
120
|
+
block?: boolean;
|
|
121
|
+
reason?: string;
|
|
122
|
+
additionalContext?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Drives the registered hooks at each lifecycle phase. Pure orchestration —
|
|
126
|
+
* the executor / pipeline / agent extension call the matching method and act on
|
|
127
|
+
* the returned decision. Hook failures are caught and logged; they never abort
|
|
128
|
+
* the agent.
|
|
129
|
+
*/
|
|
130
|
+
declare class HookRunner {
|
|
131
|
+
private readonly opts;
|
|
132
|
+
private readonly registry;
|
|
133
|
+
constructor(opts: HookRunnerOptions);
|
|
134
|
+
/** Cheap guard so callers can skip building payloads when nothing listens. */
|
|
135
|
+
has(event: HookEvent): boolean;
|
|
136
|
+
preToolUse(toolName: string, toolInput: Record<string, unknown>, env: HookRunEnv): Promise<PreToolUseResult>;
|
|
137
|
+
postToolUse(toolName: string, toolInput: unknown, result: {
|
|
138
|
+
content: string;
|
|
139
|
+
isError: boolean;
|
|
140
|
+
}, env: HookRunEnv): Promise<{
|
|
141
|
+
additionalContext?: string;
|
|
142
|
+
}>;
|
|
143
|
+
userPromptSubmit(prompt: string, env: HookRunEnv): Promise<PromptResult>;
|
|
144
|
+
sessionStart(env: HookRunEnv): Promise<{
|
|
145
|
+
additionalContext?: string;
|
|
146
|
+
}>;
|
|
147
|
+
stop(env: HookRunEnv): Promise<void>;
|
|
148
|
+
private base;
|
|
149
|
+
private matching;
|
|
150
|
+
private invoke;
|
|
151
|
+
private collectContext;
|
|
152
|
+
}
|
|
153
|
+
|
|
98
154
|
/**
|
|
99
155
|
* Output from a single tool execution.
|
|
100
156
|
*/
|
|
@@ -136,6 +192,13 @@ interface ToolExecutorOptions {
|
|
|
136
192
|
confirmAwaiter?: ConfirmAwaiter | undefined;
|
|
137
193
|
iterationTimeoutMs?: number;
|
|
138
194
|
perIterationOutputCapBytes?: number;
|
|
195
|
+
/**
|
|
196
|
+
* Optional lifecycle hook runner. When present, `PreToolUse` hooks run
|
|
197
|
+
* before the permission check (and can block the call or rewrite its input)
|
|
198
|
+
* and `PostToolUse` hooks run after the tool returns (and can append context
|
|
199
|
+
* to the result the model sees).
|
|
200
|
+
*/
|
|
201
|
+
hookRunner?: HookRunner | undefined;
|
|
139
202
|
}
|
|
140
203
|
/**
|
|
141
204
|
* Result returned by executeBatch when a tool needs confirmation and
|
|
@@ -784,6 +847,14 @@ interface PluginAPI {
|
|
|
784
847
|
* Returns an unregister function.
|
|
785
848
|
*/
|
|
786
849
|
registerSystemPromptContributor(c: SystemPromptContributor): () => void;
|
|
850
|
+
/**
|
|
851
|
+
* Register an in-process lifecycle hook. `matcher` is a tool-name filter for
|
|
852
|
+
* `PreToolUse`/`PostToolUse` (`"Bash"`, `"edit|write"`, `"*"`) and ignored
|
|
853
|
+
* for other events. The hook can block, rewrite tool input, or inject extra
|
|
854
|
+
* context — see `HookOutcome`. Automatically removed when the plugin is
|
|
855
|
+
* uninstalled. Returns an unregister function.
|
|
856
|
+
*/
|
|
857
|
+
registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook): () => void;
|
|
787
858
|
config: Config;
|
|
788
859
|
log: Logger;
|
|
789
860
|
/**
|
|
@@ -900,4 +971,4 @@ interface Plugin {
|
|
|
900
971
|
}>;
|
|
901
972
|
}
|
|
902
973
|
|
|
903
|
-
export { type AfterIterationHook as A, type BeforeIterationHook as B,
|
|
974
|
+
export { type AfterIterationHook as A, type BeforeIterationHook as B, type SystemPromptContributor as C, DEFAULT_MAX_ITERATIONS as D, ExtensionRegistry as E, type ToolCallPipelinePayload as F, type ToolExecutorOptions as G, type HookRunEnv as H, type ToolExecutorStrategy as I, ToolRegistry as J, type ToolRegistryView as K, type ToolWrapper as L, type MCPRegistryView as M, createDefaultPipelines as N, type OnErrorHook as O, type Plugin as P, type RunResult as R, type SessionWriterView as S, type ToolBatchResult as T, type UserInputPayload as U, type AfterRunHook as a, type AfterToolExecutionHook as b, Agent as c, type AgentExtension as d, type AgentInit as e, type AgentInput as f, type AgentPipelines as g, type BeforeRunHook as h, type BeforeToolExecutionHook as i, HookRunner as j, type HookRunnerOptions as k, type MetricsSinkView as l, type PluginAPI as m, type PluginCapabilities as n, type PluginDependency as o, type PluginPipelines as p, type PreToolUseResult as q, type PromptResult as r, type ProviderFactory as s, type ProviderFactory$1 as t, ProviderRegistry as u, type ProviderRegistryView as v, type ProviderRunnerFn as w, type ProviderRunnerWrapper as x, type SlashCommand as y, type SlashCommandRegistryView as z };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { T as Token, e as Renderer, S as SystemPromptBuilder } from './system-prompt-
|
|
2
|
-
import { E as EventBus, B as BrainArbiter } from './events-
|
|
3
|
-
import { a as Compactor } from './compactor-
|
|
4
|
-
import { b as ConfigLoader, c as ConfigStore } from './config-
|
|
5
|
-
import { E as ErrorHandler, a as RetryPolicy } from './retry-policy-
|
|
1
|
+
import { T as Token, e as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './system-prompt-7LHyBbIf.js';
|
|
2
|
+
import { E as EventBus, B as BrainArbiter } from './events-k8CHjcrN.js';
|
|
3
|
+
import { a as Compactor } from './compactor-0vjZ8KTk.js';
|
|
4
|
+
import { b as ConfigLoader, c as ConfigStore } from './config-BdDuaZmB.js';
|
|
5
|
+
import { E as ErrorHandler, a as RetryPolicy } from './retry-policy-BfBScewS.js';
|
|
6
6
|
import { I as InputReader } from './input-reader-E-ffP2ee.js';
|
|
7
7
|
import { a as Logger } from './logger-DDd5C--Z.js';
|
|
8
8
|
import { b as MemoryStore } from './memory-CEXuo7sz.js';
|
|
9
9
|
import { c as ModeStore } from './mode-CV077NjV.js';
|
|
10
10
|
import { b as ModelsRegistry } from './models-registry-BcYJDKLm.js';
|
|
11
11
|
import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
|
|
12
|
-
import { a as PermissionPolicy } from './permission-
|
|
13
|
-
import { P as ProviderRunner } from './provider-runner-
|
|
12
|
+
import { a as PermissionPolicy } from './permission-Ld-i5ugf.js';
|
|
13
|
+
import { P as ProviderRunner } from './provider-runner-DJQa211J.js';
|
|
14
14
|
import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
|
|
15
|
-
import { O as TokenCounter, y as SessionStore } from './context-
|
|
15
|
+
import { O as TokenCounter, y as SessionStore } from './context-iFMEO2rN.js';
|
|
16
16
|
import { a as SkillLoader } from './skill-CxuWrsKK.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -190,6 +190,8 @@ declare const TOKENS: {
|
|
|
190
190
|
readonly WorktreeManager: Token<WorktreeManager>;
|
|
191
191
|
/** Optional global Brain arbiter for policy/decision escalation. */
|
|
192
192
|
readonly BrainArbiter: Token<BrainArbiter>;
|
|
193
|
+
/** Lifecycle hook registry (shell + in-process hooks). */
|
|
194
|
+
readonly HookRegistry: Token<HookRegistry>;
|
|
193
195
|
};
|
|
194
196
|
|
|
195
197
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { S as SystemPromptBuilder, c as ModelCapabilities, a as BuildContext, C as Container } from './system-prompt-
|
|
2
|
-
export { B as BindOptions, D as Decorator, F as Factory, M as Middleware, b as MiddlewareHandler, N as NextFn, P as Pipeline, d as PipelineOptions, e as Renderer, T as Token } from './system-prompt-
|
|
3
|
-
import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-
|
|
4
|
-
export { a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, i as EventLogger, j as EventMap, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, S as ScopedEventBus, l as formatHumanPrompt } from './events-
|
|
5
|
-
import { d as WorktreeManager } from './index-
|
|
6
|
-
export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, W as WorktreeHandle, e as WorktreeManagerOptions, c as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-
|
|
7
|
-
import { d as Context, m as Provider, Q as Tool, p as Request, q as Response, c as ContentBlock, T as TextBlock } from './context-
|
|
8
|
-
export { A as AgentError, a as Capabilities, b as ConfigError, e as ContextInit, f as ConversationState, E as ERROR_CODES, g as ErrorCode, h as ErrorSeverity, i as ErrorSubsystem, F as FileSnapshot, j as FsError, I as ImageBlock, J as JSONSchema, M as Message, k as MessageRole, P as Permission, l as PluginError, n as ProviderError, o as ProviderErrorBody, R as ReadonlyConversationState, r as ResumedSession, s as RiskTier, t as RunEnv, u as RunOptions, S as SessionData, v as SessionError, w as SessionEvent, x as SessionMetadata, y as SessionStore, z as SessionSummary, B as SessionWriter, D as StateChange, G as StateChangeHandler, H as StopReason, K as StreamEvent, L as ThinkingBlock, N as TodoItem, O as TokenCounter, U as ToolCallContext, V as ToolError, W as ToolFinalEvent, X as ToolProgressEvent, Y as ToolResultBlock, Z as ToolStreamEvent, _ as ToolUseBlock, $ as Usage, a0 as WrongStackError, a1 as asBlocks, a2 as asText, a3 as extractRunEnv, a4 as isAgentError, a5 as isConfigError, a6 as isFsError, a7 as isImageBlock, a8 as isPluginError, a9 as isSessionError, aa as isTextBlock, ab as isThinkingBlock, ac as isToolError, ad as isToolResultBlock, ae as isToolUseBlock, af as isWrongStackError, ag as toWrongStackError, ah as wrapAsState } from './context-
|
|
9
|
-
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-
|
|
10
|
-
import { M as MCPServerConfig, a as Config, l as ModelMatrixEntry, c as ConfigStore } from './config-
|
|
11
|
-
export { A as AutonomyConfig, C as CONTEXT_WINDOW_MODES, b as ConfigLoader, d as ContextConfig, e as ContextWindowAggressiveOn, f as ContextWindowConfigLike, g as ContextWindowMode, h as ContextWindowModeId, i as ContextWindowPolicy, j as ContextWindowThresholds, k as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, L as LogConfig, P as PluginConfig,
|
|
12
|
-
export { C as CompactReport, a as Compactor } from './compactor-
|
|
13
|
-
export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './permission-
|
|
1
|
+
import { S as SystemPromptBuilder, c as ModelCapabilities, a as BuildContext, C as Container, H as HookRegistry } from './system-prompt-7LHyBbIf.js';
|
|
2
|
+
export { B as BindOptions, D as Decorator, F as Factory, M as Middleware, b as MiddlewareHandler, N as NextFn, P as Pipeline, d as PipelineOptions, e as Renderer, T as Token, h as hookMatcherMatches } from './system-prompt-7LHyBbIf.js';
|
|
3
|
+
import { E as EventBus, k as EventName, L as Listener, B as BrainArbiter } from './events-k8CHjcrN.js';
|
|
4
|
+
export { a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, i as EventLogger, j as EventMap, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, S as ScopedEventBus, l as formatHumanPrompt } from './events-k8CHjcrN.js';
|
|
5
|
+
import { d as WorktreeManager } from './index-CWdW_CJt.js';
|
|
6
|
+
export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, W as WorktreeHandle, e as WorktreeManagerOptions, c as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-CWdW_CJt.js';
|
|
7
|
+
import { d as Context, m as Provider, Q as Tool, p as Request, q as Response, c as ContentBlock, T as TextBlock } from './context-iFMEO2rN.js';
|
|
8
|
+
export { A as AgentError, a as Capabilities, b as ConfigError, e as ContextInit, f as ConversationState, E as ERROR_CODES, g as ErrorCode, h as ErrorSeverity, i as ErrorSubsystem, F as FileSnapshot, j as FsError, I as ImageBlock, J as JSONSchema, M as Message, k as MessageRole, P as Permission, l as PluginError, n as ProviderError, o as ProviderErrorBody, R as ReadonlyConversationState, r as ResumedSession, s as RiskTier, t as RunEnv, u as RunOptions, S as SessionData, v as SessionError, w as SessionEvent, x as SessionMetadata, y as SessionStore, z as SessionSummary, B as SessionWriter, D as StateChange, G as StateChangeHandler, H as StopReason, K as StreamEvent, L as ThinkingBlock, N as TodoItem, O as TokenCounter, U as ToolCallContext, V as ToolError, W as ToolFinalEvent, X as ToolProgressEvent, Y as ToolResultBlock, Z as ToolStreamEvent, _ as ToolUseBlock, $ as Usage, a0 as WrongStackError, a1 as asBlocks, a2 as asText, a3 as extractRunEnv, a4 as isAgentError, a5 as isConfigError, a6 as isFsError, a7 as isImageBlock, a8 as isPluginError, a9 as isSessionError, aa as isTextBlock, ab as isThinkingBlock, ac as isToolError, ad as isToolResultBlock, ae as isToolUseBlock, af as isWrongStackError, ag as toWrongStackError, ah as wrapAsState } from './context-iFMEO2rN.js';
|
|
9
|
+
import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-DJQa211J.js';
|
|
10
|
+
import { M as MCPServerConfig, a as Config, m as HookInput, o as HookOutcome, l as HookEvent, n as HookMatcher, I as InProcessHook, p as ModelMatrixEntry, c as ConfigStore } from './config-BdDuaZmB.js';
|
|
11
|
+
export { A as AutonomyConfig, C as CONTEXT_WINDOW_MODES, b as ConfigLoader, d as ContextConfig, e as ContextWindowAggressiveOn, f as ContextWindowConfigLike, g as ContextWindowMode, h as ContextWindowModeId, i as ContextWindowPolicy, j as ContextWindowThresholds, k as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, H as HookEntry, L as LogConfig, P as PluginConfig, q as ProviderApiKey, r as ProviderConfig, S as SessionLoggingConfig, s as ShellHook, t as SyncCategory, u as SyncConfig, T as ToolsConfig, v as formatContextWindowModeList, w as getContextWindowMode, x as isContextWindowModeId, y as listContextWindowModes, z as resolveContextWindowPolicy } from './config-BdDuaZmB.js';
|
|
12
|
+
export { C as CompactReport, a as Compactor } from './compactor-0vjZ8KTk.js';
|
|
13
|
+
export { P as PermissionDecision, a as PermissionPolicy, T as TrustPolicy } from './permission-Ld-i5ugf.js';
|
|
14
14
|
export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from './session-rewinder-C9HnMkhP.js';
|
|
15
|
-
import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-
|
|
16
|
-
export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-
|
|
15
|
+
import { e as AttachmentStore, d as AttachmentRef, A as AddAttachmentInput } from './session-reader-q2ThszgG.js';
|
|
16
|
+
export { a as Attachment, b as AttachmentKind, c as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-q2ThszgG.js';
|
|
17
17
|
export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, b as DEFAULT_SESSION_LOGGING_CONFIG, c as DEFAULT_TOOLS_CONFIG } from './default-config-DEXI4jsl.js';
|
|
18
18
|
import { a as DefaultSecretVault } from './secret-scrubber-7rSC_emZ.js';
|
|
19
19
|
export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-scrubber-7rSC_emZ.js';
|
|
20
20
|
import { D as DefaultLogger } from './logger-bOzkF5LL.js';
|
|
21
21
|
export { a as DefaultLoggerOptions } from './logger-bOzkF5LL.js';
|
|
22
|
-
import { D as DefaultPathResolver } from './path-resolver-
|
|
23
|
-
export { a as DefaultTokenCounter } from './path-resolver-
|
|
22
|
+
import { D as DefaultPathResolver } from './path-resolver-C5sPVne8.js';
|
|
23
|
+
export { a as DefaultTokenCounter } from './path-resolver-C5sPVne8.js';
|
|
24
24
|
import { b as MemoryStore } from './memory-CEXuo7sz.js';
|
|
25
25
|
export { M as MemoryEntry, a as MemoryScope } from './memory-CEXuo7sz.js';
|
|
26
|
-
export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, c as buildRecoveryStrategies } from './tool-executor-
|
|
26
|
+
export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, c as buildRecoveryStrategies } from './tool-executor-CIjpGaRA.js';
|
|
27
27
|
import { a as SkillLoader } from './skill-CxuWrsKK.js';
|
|
28
28
|
export { S as SkillEntry, b as SkillManifest } from './skill-CxuWrsKK.js';
|
|
29
29
|
export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
|
|
30
|
-
import {
|
|
31
|
-
export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as Agent, d as AgentExtension, e as AgentInit, f as AgentInput, g as AgentPipelines, B as BeforeIterationHook, h as BeforeRunHook, i as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, O as OnErrorHook,
|
|
30
|
+
import { y as SlashCommand, C as SystemPromptContributor, m as PluginAPI, p as PluginPipelines, K as ToolRegistryView, v as ProviderRegistryView, M as MCPRegistryView, z as SlashCommandRegistryView, E as ExtensionRegistry, S as SessionWriterView, l as MetricsSinkView, J as ToolRegistry, u as ProviderRegistry, P as Plugin, F as ToolCallPipelinePayload } from './index-Bc6BiP5q.js';
|
|
31
|
+
export { A as AfterIterationHook, a as AfterRunHook, b as AfterToolExecutionHook, c as Agent, d as AgentExtension, e as AgentInit, f as AgentInput, g as AgentPipelines, B as BeforeIterationHook, h as BeforeRunHook, i as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, j as HookRunner, k as HookRunnerOptions, O as OnErrorHook, n as PluginCapabilities, o as PluginDependency, q as PreToolUseResult, r as PromptResult, t as ProviderFactory, x as ProviderRunnerWrapper, R as RunResult, L as ToolWrapper, U as UserInputPayload, N as createDefaultPipelines } from './index-Bc6BiP5q.js';
|
|
32
32
|
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-Cuq1C8V9.js';
|
|
33
33
|
import { c as ModeStore } from './mode-CV077NjV.js';
|
|
34
34
|
export { D as DEFAULT_MODES, M as Mode, a as ModeConfig, b as ModeManifest } from './mode-CV077NjV.js';
|
|
35
|
-
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-
|
|
36
|
-
export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, j as BudgetUsage, C as CoordinatorEvents, k as CoordinatorStatus, D as DoneCondition, M as MultiAgentConfig, l as MultiAgentCoordinator, S as SpawnResult, m as SubagentBudget, n as SubagentConfig, o as SubagentContext, p as SubagentError, q as SubagentErrorKind, r as SubagentRunContext, s as SubagentRunOutcome, t as SubagentRunner, T as TaskDelegation, u as TaskResult, v as TaskSpec } from './multi-agent-
|
|
35
|
+
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-B5rxWrg3.js';
|
|
36
|
+
export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, j as BudgetUsage, C as CoordinatorEvents, k as CoordinatorStatus, D as DoneCondition, M as MultiAgentConfig, l as MultiAgentCoordinator, S as SpawnResult, m as SubagentBudget, n as SubagentConfig, o as SubagentContext, p as SubagentError, q as SubagentErrorKind, r as SubagentRunContext, s as SubagentRunOutcome, t as SubagentRunner, T as TaskDelegation, u as TaskResult, v as TaskSpec } from './multi-agent-SASYOrWA.js';
|
|
37
37
|
import { l as TaskGraph, r as TaskType, n as TaskPriority, m as TaskNode } from './task-graph-D1YQbpxF.js';
|
|
38
38
|
export { C as CriticalPathResult, D as DEFAULT_SPEC_TEMPLATE, S as SpecAnalysis, a as SpecApiEndpoint, b as SpecRequirement, c as SpecSection, d as SpecSectionType, e as SpecStatus, f as SpecTemplate, g as SpecValidationResult, h as Specification, T as TaskAssignment, i as TaskDependency, j as TaskEdge, k as TaskFilter, o as TaskProgress, p as TaskSort, q as TaskStatus, s as computeTaskProgress, t as findCriticalPath, u as topologicalSort } from './task-graph-D1YQbpxF.js';
|
|
39
39
|
import { T as Tracer, e as MetricsSink, b as HealthRegistry } from './observability-BhnVLBLS.js';
|
|
@@ -41,31 +41,31 @@ export { A as AggregateHealth, H as HealthCheck, a as HealthCheckResult, c as He
|
|
|
41
41
|
export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, MessageRepairReport, MessageRepairResult, NewlineStyle, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setRawMode, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, writeErr, writeOut } from './utils/index.js';
|
|
42
42
|
import { a as WstackPaths } from './wstack-paths-eMXnY1_X.js';
|
|
43
43
|
export { W as WstackPathOptions, p as projectHash, r as resolveWstackPaths } from './wstack-paths-eMXnY1_X.js';
|
|
44
|
-
export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from './plan-templates-
|
|
45
|
-
export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, S as STANDARD_AUDIT_EVENTS, a as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as appendJournal, e as createSessionEventBridge, f as emptyGoal, g as formatGoal, h as goalFilePath, l as loadGoal, r as resolveAuditLevel, i as resolveSessionLoggingConfig, s as saveGoal, j as summarizeUsage } from './goal-store-
|
|
44
|
+
export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from './plan-templates-ThBHOjaM.js';
|
|
45
|
+
export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, S as STANDARD_AUDIT_EVENTS, a as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as appendJournal, e as createSessionEventBridge, f as emptyGoal, g as formatGoal, h as goalFilePath, l as loadGoal, r as resolveAuditLevel, i as resolveSessionLoggingConfig, s as saveGoal, j as summarizeUsage } from './goal-store-iHltMi5n.js';
|
|
46
46
|
export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BmYi3DGA.js';
|
|
47
|
-
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-
|
|
47
|
+
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-CL-mPufp.js';
|
|
48
48
|
export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, AutonomyPromptContributorOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, EternalAutonomyEngine, EternalAutonomyOptions, EternalEngineState, IntelligentCompactor, IntelligentCompactorOptions, IterationStage, ParallelEngineState, ParallelEternalEngine, ParallelEternalOptions, ParallelIterationStage, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions, buildGoalPreamble, makeAutonomyPromptContributor } from './execution/index.js';
|
|
49
49
|
export { DefaultProviderRunner } from './defaults/index.js';
|
|
50
|
-
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-
|
|
51
|
-
export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-
|
|
52
|
-
export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from './agent-subagent-runner-
|
|
50
|
+
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-DRoJ0uOY.js';
|
|
51
|
+
export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-CNUJYq7U.js';
|
|
52
|
+
export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from './agent-subagent-runner-Zc3f37Sg.js';
|
|
53
53
|
export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from './models/index.js';
|
|
54
54
|
import { TaskStore } from './sdd/index.js';
|
|
55
55
|
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';
|
|
56
56
|
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';
|
|
57
|
-
export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-
|
|
57
|
+
export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-CwqQDMYy.js';
|
|
58
58
|
export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
|
|
59
59
|
import { ReplayLogStore, DefaultPromptStore } from './storage/index.js';
|
|
60
60
|
export { ALL_SYNC_CATEGORIES, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, DefaultSessionRewinder, PromptEntry, PromptStore, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, ToolAuditLog, ToolAuditLogOptions, VerifyResult } from './storage/index.js';
|
|
61
|
-
import { a as RetryPolicy, E as ErrorHandler } from './retry-policy-
|
|
61
|
+
import { a as RetryPolicy, E as ErrorHandler } from './retry-policy-BfBScewS.js';
|
|
62
62
|
import { a as Logger } from './logger-DDd5C--Z.js';
|
|
63
63
|
export { L as LogLevel } from './logger-DDd5C--Z.js';
|
|
64
64
|
export { M as ModelsDevPayload, a as ModelsDevProvider, b as ModelsRegistry, R as ResolvedModel, c as ResolvedProvider, W as WireFamily } from './models-registry-BcYJDKLm.js';
|
|
65
65
|
export { S as SecretVault } from './secret-vault-DoISxaKO.js';
|
|
66
66
|
export { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.js';
|
|
67
67
|
import './path-resolver-CPRj4bFY.js';
|
|
68
|
-
import './selector-
|
|
68
|
+
import './selector-DxhW7ML3.js';
|
|
69
69
|
import 'node:events';
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -420,6 +420,22 @@ interface RunProviderOptions {
|
|
|
420
420
|
*/
|
|
421
421
|
declare function runProviderWithRetry(opts: RunProviderOptions): Promise<Response>;
|
|
422
422
|
|
|
423
|
+
interface ShellHookSpec {
|
|
424
|
+
command: string;
|
|
425
|
+
timeoutMs?: number;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Run a shell hook (Claude-compatible). The `HookInput` JSON is written to the
|
|
429
|
+
* command's stdin. Resolution rules, in order:
|
|
430
|
+
* - exit code 2 → `{ decision: 'block', reason: <stderr or stdout> }`
|
|
431
|
+
* - stdout parses as a JSON object → returned verbatim as a `HookOutcome`
|
|
432
|
+
* - otherwise → no-op (`null`)
|
|
433
|
+
*
|
|
434
|
+
* The hook never throws into the agent loop: spawn errors and timeouts resolve
|
|
435
|
+
* to `null` and are logged. Output is capped at 64 KiB.
|
|
436
|
+
*/
|
|
437
|
+
declare function runShellHook(spec: ShellHookSpec, input: HookInput, logger?: Logger): Promise<HookOutcome | null>;
|
|
438
|
+
|
|
423
439
|
/**
|
|
424
440
|
* Options for {@link bootConfig}. Both the CLI and the WebUI server boot the
|
|
425
441
|
* same way; the only intentional differences are the label used in the
|
|
@@ -827,6 +843,11 @@ interface PluginAPIInit {
|
|
|
827
843
|
* instances here to hook into agent lifecycle events.
|
|
828
844
|
*/
|
|
829
845
|
extensions?: ExtensionRegistry;
|
|
846
|
+
/**
|
|
847
|
+
* The host's lifecycle hook registry. When provided, `api.registerHook`
|
|
848
|
+
* adds in-process hooks here. When absent, `registerHook` is a noop.
|
|
849
|
+
*/
|
|
850
|
+
hookRegistry?: HookRegistry;
|
|
830
851
|
/**
|
|
831
852
|
* The active session writer. Plugins append custom events here.
|
|
832
853
|
* When not provided, a noop writer is used.
|
|
@@ -870,6 +891,8 @@ declare class DefaultPluginAPI implements PluginAPI {
|
|
|
870
891
|
readonly config: Config;
|
|
871
892
|
readonly log: Logger;
|
|
872
893
|
private readonly configStore;
|
|
894
|
+
private readonly hookRegistry;
|
|
895
|
+
private readonly ownerName;
|
|
873
896
|
private readonly pluginCleanupFns;
|
|
874
897
|
constructor(init: PluginAPIInit);
|
|
875
898
|
onEvent<K extends EventName>(event: K, handler: Listener<K>): () => void;
|
|
@@ -879,6 +902,7 @@ declare class DefaultPluginAPI implements PluginAPI {
|
|
|
879
902
|
/** Called by the plugin loader when uninstalling the plugin. */
|
|
880
903
|
drainCleanup(): void;
|
|
881
904
|
registerSystemPromptContributor(c: SystemPromptContributor): () => void;
|
|
905
|
+
registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook): () => void;
|
|
882
906
|
}
|
|
883
907
|
|
|
884
908
|
/**
|
|
@@ -1941,4 +1965,4 @@ interface PlanPluginOptions {
|
|
|
1941
1965
|
*/
|
|
1942
1966
|
declare function createPlanPlugin(opts?: PlanPluginOptions): Plugin;
|
|
1943
1967
|
|
|
1944
|
-
export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, parseContinueDirective, pendingBtwCount, phaseForRole, resolveModelMatrix, runProviderWithRetry, securitySlashCommand, setBtwNote, stableStringify, unloadPlugins };
|
|
1968
|
+
export { AddAttachmentInput, AttachmentRef, AttachmentStore, type AutoPhaseOptions, type AutoPhasePlanResult, AutoPhasePlanner, type AutoPhasePlannerOptions, AutoPhaseRunner, type AutoPhaseRunnerOptions, type BootConfigOptions, type BootConfigResult, BrainArbiter, BuildContext, type Checkpoint, CheckpointManager, type CheckpointManagerOptions, type CollabBusState, type InjectedToolResult as CollabInjectedToolResult, type CollabPauseMiddlewareOptions, CollaborationBus, Config, ConfigStore, Container, ContentBlock, Context, type ContinueDirective, DefaultLogger, DefaultPathResolver, DefaultPluginAPI, DefaultPromptStore, DefaultSecretVault, DefaultSystemPromptBuilder, type DefaultSystemPromptBuilderOptions, type DetectedDependency, type DetectionResult, EventBus, EventName, ExtensionRegistry, type Finding, type FullScanResult, type GeneratedSecuritySkill, type GeneratedSkill, type GeneratedSkillContent, GitignoreUpdater, HealthRegistry, HookEvent, HookInput, HookMatcher, HookOutcome, HookRegistry, InProcessHook, InputBuilder, type InputBuilderEvent, type InputBuilderOptions, KERNEL_API_VERSION, LAYER_1_IDENTITY, Listener, type LoadPluginsOptions, Logger, MATRIX_PHASE_KEYS, type MCPRegistryHandle, MCPRegistryView, MCPServerConfig, type MatrixKeyKind, MemoryStore, MetricsSink, MetricsSinkView, ModeStore, ModelCapabilities, ModelMatrixEntry, type PackageManager, type PhaseEventMap, type PhaseEventName, type PhaseExecutionContext, type PhaseFilter, type PhaseGraph, PhaseGraphBuilder, type PhaseGraphBuilderOptions, type PhaseNode, PhaseOrchestrator, type PhaseOrchestratorOptions, type PhaseProgress, type PhaseSort, type PhaseStatus, PhaseStore, type PhaseStoreOptions, type PhaseTemplate, Plugin, PluginAPI, type PluginAPIInit, PluginPipelines, Provider, ProviderRegistry, ProviderRegistryView, ProviderRunner, ReplayLogStore, type ReplayMode, ReplayProviderRunner, type ReplayProviderRunnerOptions, ReportGenerator, type ReportOptions, Request, Response, RunProviderOptions$1 as RunProviderOptions, type ScanOptions, type ScanResult, type ScanScope, type SecurityPattern, SecurityScanner, type SecurityScannerContext, type SecurityScannerOptions, SecurityScannerOrchestrator, SessionWriterView, type SeverityLevel, type ShellHookSpec, type SkillGenerationContext, SkillGenerator, type SkillGeneratorOptions, SkillLoader, SlashCommand, SlashCommandRegistry, SlashCommandRegistryView, SystemPromptBuilder, SystemPromptContributor, TaskGraph, TaskNode, TaskPriority, TaskStore, TaskType, type TechStack, TechStackDetector, type TechStackInfo, TextBlock, Tool, ToolRegistry, ToolRegistryView, Tracer, WorktreeManager, WstackPaths, bootConfig, buildBtwBlock, collabInjectMiddleware, collabPauseMiddleware, consumeBtwNotes, createAutoPhaseFromTaskGraph, createGitPlugin, createMcpControlTool, createObservabilityPlugin, createPlanPlugin, createPromptsPlugin, createSecurityPlugin, createSecuritySlashCommand, createSkillsPlugin, createSyncPlugin, defaultGitignoreUpdater, defaultOrchestrator, defaultReportGenerator, defaultSecurityScanner, defaultSkillGenerator, defaultTechStackDetector, flagsToConfigPatch, hashRequest, isValidMatrixKey, loadPlugins, makeContinueToNextIterationTool, matrixKeyKind, parseContinueDirective, pendingBtwCount, phaseForRole, resolveModelMatrix, runProviderWithRetry, runShellHook, securitySlashCommand, setBtwNote, stableStringify, unloadPlugins };
|