@x-otto/coding 0.0.1-alpha.16 → 0.0.1-alpha.18

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/README.md CHANGED
@@ -9,9 +9,9 @@ The application assembly layer, wiring subsystems together into the complete ott
9
9
  | Module | Function |
10
10
  | -------------------- | ------------------------------------------------ |
11
11
  | App | Dependency-injection container, assembles all subsystems |
12
- | AgentSession | Conversation lifecycle: message persistence + event stream forwarding + tool gateway |
13
- | CodingSessionManager | Multi-session container (InMemory / Disk / Remote) |
14
- | Runner | 4 run modes (Print / JSON / RPC / Interactive) |
12
+ | AgentSession | Conversation lifecycle (re-exported from `@x-otto/runtime`) |
13
+ | CodingSessionPool | Session pool (InMemory / Disk / Remote, re-exported from `@x-otto/runtime`) |
14
+ | AgentJobService | Background agent job lifecycle (isolated worktrees, diff apply) |
15
15
 
16
16
  ## Installation
17
17
 
@@ -25,14 +25,14 @@ pnpm add @x-otto/coding
25
25
  import { App } from '@x-otto/coding'
26
26
 
27
27
  const app = new App({
28
- model: 'claude-sonnet-4-5-20250929',
28
+ modelId: 'claude-sonnet-4-5-20250929',
29
29
  workspaceDir: process.cwd(),
30
- apiKey: process.env.ANTHROPIC_API_KEY,
30
+ logger: { name: 'app', level: 'info', destination: 'stderr' },
31
31
  })
32
32
 
33
33
  const session = await app.createSession()
34
34
  await session.prompt('Write a fibonacci function')
35
- await app.dispose()
35
+ await app.stop()
36
36
  ```
37
37
 
38
38
  ## API
@@ -40,30 +40,33 @@ await app.dispose()
40
40
  | Export | Type | Description |
41
41
  |---|---|---|
42
42
  | `App` | `class` | Dependency-injection container, assembles all subsystems |
43
- | `AgentSession` | `class` | Conversation lifecycle management |
44
- | `CodingSessionManager` | `class` | Multi-session container |
45
- | `createPrintRunner` | `function` | Print-mode runner |
46
- | `createInteractiveRunner` | `function` | Interactive-mode runner |
47
- | `createJsonRunner` | `function` | JSON-mode runner |
48
- | `createRpcRunner` | `function` | RPC-mode runner |
43
+ | `createApp` | `function` | App factory (from `./app/app`) |
44
+ | `createFrontendPort` | `function` | Frontend port factory |
45
+ | `ExtensionManager` | `class` | Bundled/user extension management |
46
+ | `AgentSession` | `class` | Conversation lifecycle (re-exported from `@x-otto/runtime`) |
47
+ | `CodingSessionPool` | `class` | Session pool alias (re-exported from `@x-otto/runtime`) |
48
+ | `AgentJobService` | `class` | Background agent job lifecycle |
49
+ | `readSkillLoopStatus` | `function` | Skill loop status query (RFC-318) |
50
+
51
+ Full export surface is dominated by plugin lifecycle utilities (manifest parsing, discovery, panel compilation, module loading) — see `src/index.ts`.
49
52
 
50
53
  ## Directory Overview
51
54
 
52
55
  ```
53
56
  src/
54
- types.ts # core types
55
- app.ts # application container
56
- agent-session.ts # conversation lifecycle
57
- coding-session-manager.ts # multi-session management
58
- run/
59
- print.ts # Print mode
60
- json.ts # JSON mode
61
- rpc.ts # RPC mode
62
- interactive.ts # interactive REPL
63
- index.ts
64
- tests/ # 29 test files
65
- example/
66
- docs/
57
+ index.ts # barrel export
58
+ types.ts # AppOptions / AppContext / StorageOptions
59
+ engine-main.ts # engine 独立进程入口 (RFC-091)
60
+ app/ # App composition root (app.ts / storage-wiring.ts / tool-callbacks.ts / sandbox-controller.ts / ...)
61
+ agent/ # declarative agents/teams + swarm runtime
62
+ session/ # session config resolution + task runner
63
+ hooks/ # coding business hooks (tool-guidance / lesson / skill-catalog / phase / session-learning)
64
+ input/ # sigil input system (builtin-resolvers / sigil-expand / sigil-resolver-registry)
65
+ plugin/ # plugin lifecycle / panel compiler / module loader / esbuild lifecycle
66
+ skill-loop/ # skill loop status (RFC-318)
67
+ feedback/ # pulse survey sink
68
+ vision/ # vision delegate service
69
+ tests/ # 233 test files
67
70
  ```
68
71
 
69
72
  ## Development Commands
package/dist/index.d.ts CHANGED
@@ -3,32 +3,32 @@ import * as _$_x_otto_env0 from "@x-otto/env";
3
3
  import { ResilienceConfig, ResilienceConfigOverride, UserIdentity, findWorkspaceRoot } from "@x-otto/env";
4
4
  import { Api, AuthStore, IsModelUsable, Message, Model, ModelCatalogStore, ModelRegistry, ModelSpec, ProviderRegistry, WireProtocolRegistry, WorkflowSlot, apiCredentialId } from "@x-otto/ai";
5
5
  import { Diagnoser, EditFileCallback, FailureSignalStore, HookRegistry, HookSpec, PermissionAuditLog, PermissionMode, PermissionPolicyRegistry } from "@x-otto/hooks";
6
- import { SandboxConfig, SandboxStrategy, SearchEcosystem, ToolRegistry } from "@x-otto/tools";
6
+ import { CapabilityGapReportRecorder, CapabilityGapReportStore, SandboxConfig, SandboxStrategy, SearchEcosystem, ToolRegistry } from "@x-otto/tools";
7
7
  import { LogLevel, Logger, attachLogListener } from "@x-otto/shared";
8
- import { AutoMemory, FileStateManager, MemoryStore, OperationalLearningStore } from "@x-otto/memory";
8
+ import { AutoMemory, EvolutionSignalRecord, EvolutionSignalSink, EvolutionSignalStore, FileStateManager, MemoryStore, OperationalLearningStore } from "@x-otto/memory";
9
+ import { AgentMessage, AgentTool, ClockPort, DescribeImagesPort, TraceEvent } from "@x-otto/agent";
9
10
  import * as _$_x_otto_runtime0 from "@x-otto/runtime";
10
- import { AgentJobRegistry, AgentJobStatus, AgentObservationSnapshot, AgentRuntime, AgentSession, AgentSession as AgentSession$1, AgentSessionInfo, AgentSessionInfo as AgentSessionInfo$1, AgentSessionJob, AgentSessionJob as AgentSessionJob$1, AgentSessionOptions, AgentSessionOptions as AgentSessionOptions$1, BackgroundProcess, Checkpoint, CheckpointData, CheckpointData as CheckpointData$1, FileEntrySnapshot, FileSnapshot, FleetMonitor, MemoryGovernor, MemoryPressureLevel, MemorySample, MemorySubsystem, PromptOptions, ReplayLevel, ResidencyGovernor, ResolvedSessionConfig, RestoreMode, SandboxRunner, SandboxToolCall, SandboxToolResult, SandboxUnavailableError, SessionPool, SessionPool as CodingSessionPool, SessionPoolOptions, TracebackView, captureFiles, createSessionStableInjectionHooks, defaultMaxToolTurnExtensions, deriveSessionTitle, globalAgentJobRegistry, globalAgentObservability, globalProcessRegistry, messagesFromSnapshot, reconstructMessages, resolveSessionTitle, restoreFiles } from "@x-otto/runtime";
11
+ import { AgentJobRegistry, AgentJobStatus, AgentObservationSnapshot, AgentRuntime, AgentSession, AgentSession as AgentSession$1, AgentSessionInfo, AgentSessionInfo as AgentSessionInfo$1, AgentSessionJob, AgentSessionJob as AgentSessionJob$1, AgentSessionOptions, AgentSessionOptions as AgentSessionOptions$1, ApplySignals, BackgroundProcess, Checkpoint, CheckpointData, CheckpointData as CheckpointData$1, FileEntrySnapshot, FileSnapshot, FleetMonitor, HostRegistry, MemoryGovernor, MemoryPressureLevel, MemorySample, MemorySubsystem, PromptOptions, ReplayLevel, ResidencyGovernor, ResolvedSessionConfig, RestoreMode, SandboxRunner, SandboxToolCall, SandboxToolResult, SandboxUnavailableError, SessionPool, SessionPool as CodingSessionPool, SessionPoolOptions, TracebackView, captureFiles, createSessionStableInjectionHooks, defaultMaxToolTurnExtensions, deriveSessionTitle, globalAgentJobRegistry, globalAgentObservability, globalProcessRegistry, messagesFromSnapshot, reconstructMessages, resolveSessionTitle, restoreFiles } from "@x-otto/runtime";
11
12
  import { AppendLog, LiveTap, StorageHost } from "@x-otto/persistence";
12
13
  import { FrontendPort, ResidencyBudgetConfig } from "@x-otto/session-contract";
13
14
  import { SkillProvider, SkillRegistry } from "@x-otto/skill";
14
15
  import { AgentProfile, PromptManager, PromptPreset, PromptProviderOptions, SubAgentPromptContext } from "@x-otto/prompt";
15
16
  import * as _$_x_otto_plugin0 from "@x-otto/plugin";
16
- import { CommandRef, ContextMap, ContextMap as ContextMap$1, DiscoverPluginsOptions, DiscoveredPlugin, DiscoveredPlugin as DiscoveredPlugin$1, DispatchCaps, FeedbackIssueInput, FeedbackProvider, FileProviderOptions, HIGH_RISK_CAPABILITIES, MonitorEvent, PLUGIN_MANIFEST_FILENAME, POINT, PluginContext, PluginContributes, PluginExecutableSurface, PluginFileViewerEntry, PluginI18nRegistry, PluginInputRegistry, PluginInputRegistry as PluginInputRegistry$1, PluginManifest, PluginModule, PluginRendererEntry, PluginServiceNotification, PluginTrustVerdict, PluginTrustVerdict as PluginTrustVerdict$1, PulseSurveyEntry, PulseSurveyEntry as PulseSurveyEntry$1, PulseSurveyRating, ResolvedAction, ResolvedAction as ResolvedAction$1, SessionIdleNotification, SigilEntry, SigilKind, SigilPrefix, SigilProvider, SigilSource, TranscriptMessage, createBuiltinHashtags, createFileProvider, createPluginInputRegistry, detectPluginExecutableSurface, discoverPlugins, dispatch, evaluatePluginTrust, grantPluginCapabilities, grantedPluginCapabilities, isPluginTrusted, parsePluginManifest, pluginTrustStorePath, readHighRiskCapabilities, resolveActions, sigilOf, trustPlugin, untrustPlugin } from "@x-otto/plugin";
17
+ import { CommandRef, ContextMap, ContextMap as ContextMap$1, DiscoverPluginsOptions, DiscoveredPlugin, DiscoveredPlugin as DiscoveredPlugin$1, DispatchCaps, FeedbackIssueInput, FeedbackProvider, FileProviderOptions, HIGH_RISK_CAPABILITIES, MonitorEvent, PLUGIN_MANIFEST_FILENAME, POINT, PluginContext, PluginContributes, PluginExecutableSurface, PluginFileViewerEntry, PluginI18nRegistry, PluginInputRegistry, PluginInputRegistry as PluginInputRegistry$1, PluginLoadFailureReason, PluginManifest, PluginModule, PluginRendererEntry, PluginServiceNotification, PluginTrustVerdict, PluginTrustVerdict as PluginTrustVerdict$1, PulseSurveyEntry, PulseSurveyEntry as PulseSurveyEntry$1, PulseSurveyRating, ResolvedAction, ResolvedAction as ResolvedAction$1, SessionIdleNotification, SigilEntry, SigilKind, SigilPrefix, SigilProvider, SigilSource, TranscriptMessage, createBuiltinHashtags, createFileProvider, createPluginInputRegistry, detectPluginExecutableSurface, discoverPlugins, dispatch, evaluatePluginTrust, grantPluginCapabilities, grantPluginCapabilitiesWithVersion, grantedPluginCapabilities, grantedPluginCapabilitiesForVersion, isPluginTrusted, parsePluginManifest, pluginTrustStorePath, readHighRiskCapabilities, resolveActions, sigilOf, trustPlugin, untrustPlugin } from "@x-otto/plugin";
17
18
  import { ClaudeExecutableSurface, ClaudeHookBridgeDeps, ClaudeHooksConfig, ClaudeTrustVerdict, ExpandOptions, FileCommand, FileCommand as FileCommand$1, HookRunner, ProjectConfigGating, ProjectConfigTrustContext, WorkspaceTrustAction, WorkspaceTrustPromptDecision, claudeTrustStorePath, createClaudeHookBridgeHooks, defaultHookRunner, detectClaudeExecutableSurface, detectProjectConfigGating, discoverFileCommands, evaluateClaudeTrust, evaluateWorkspaceTrustPrompt, expandCommandBody, interpretPreToolUse, isProjectTrusted, isStrictProjectConfigEnabled, loadClaudeHooksConfig, matchesHookMatcher, parseClaudeHooks, parseDotMcpJson, resolveClaudeMcpServers, resolveProjectConfigTrusted, trustProject, untrustProject } from "@x-otto/claude-compat";
18
19
  import { McpClient, McpManager, McpServerConfig } from "@x-otto/mcp";
19
- import { SqliteSessionRepository } from "@x-otto/session";
20
+ import { EntryRow, SessionEntry, SqliteSessionRepository } from "@x-otto/session";
20
21
  import { OrchestrationPattern, Orchestrator, RunSessionOptions } from "@x-otto/orchestrator";
21
22
  import * as _$_x_otto_setting0 from "@x-otto/setting";
22
23
  import { InstalledPluginEntry, Setting, SettingsManager } from "@x-otto/setting";
23
- import { AgentMessage, AgentTool, ClockPort, DescribeImagesPort, TraceEvent } from "@x-otto/agent";
24
24
  import { NotificationChannel, NotificationDispatcher, NotificationKind, NotificationKind as NotificationKind$1, PresenceTracker } from "@x-otto/notification";
25
25
  import * as _$_x_otto_workspace0 from "@x-otto/workspace";
26
26
  import { WorkspaceRef } from "@x-otto/workspace";
27
27
  import { WriteTodos } from "@x-otto/orchestration-contracts";
28
28
  import { FireOwnership, SCHEDULE_LEASE_MIGRATIONS, ScheduleRegistry, ScheduleStore, ScheduleSubscriber, ScheduledTask, ScheduledTask as ScheduledTask$1, ScheduledTaskInput, SchedulerDeps, SchedulerService, SchedulerService as SchedulerService$1, createLocalFireOwnership, createRemoteFireOwnership, createRemoteScheduleStore, createScheduleStore } from "@x-otto/schedule";
29
- import { ContentType, GitUpgradeCheckResult, InstallManager, InstallOptions, InstallProgress, InstallResult, InstallScope, InstallScope as InstallScope$1, InstallSourceMetadata, InstalledItem, ListInstalledOptions, LoadedRegistry, ParsedRegistry, PostInstallContext, PostInstallResult, ProgressPhase, RegistryClient, RegistryEntry, RegistrySourceConfig, ResolvedSource, SourceType, UninstallOptions, UninstallResult, UninstallTarget, UpgradeCheckOptions, UpgradeCheckResult, VersionInfo, builtinOfficialSource, checkArchiveBomb, checkGitUpgrades, checkUpgrades, cleanTempDir, createArchive, createTempDir, detectUninstallTarget, extractArchive, listInstalledItems, parseRegistry, scanInstalledVersions, uninstall, validateExtractedPaths } from "@x-otto/install";
30
29
  import * as _$_x_otto_interchange0 from "@x-otto/interchange";
31
30
  import { A2uiComponent, AgentTool as AgentTool$1, GrillAnswer, GrillQuestion, PluginInputRegistry as PluginInputRegistry$2, PluginPerfMetricResult, PluginPerfMetricResult as PluginPerfMetricResult$1, SigilResolver } from "@x-otto/interchange";
31
+ import { ContentType, GitUpgradeCheckResult, InstallManager, InstallOptions, InstallProgress, InstallResult, InstallScope, InstallScope as InstallScope$1, InstallSourceMetadata, InstalledItem, ListInstalledOptions, LoadedRegistry, ParsedRegistry, PostInstallContext, PostInstallResult, ProgressPhase, RegistryClient, RegistryEntry, RegistrySourceConfig, ResolvedSource, SourceType, UninstallOptions, UninstallResult, UninstallTarget, UpgradeCheckOptions, UpgradeCheckResult, VersionInfo, builtinOfficialSource, checkArchiveBomb, checkGitUpgrades, checkUpgrades, cleanTempDir, createArchive, createTempDir, detectUninstallTarget, extractArchive, listInstalledItems, parseRegistry, scanInstalledVersions, uninstall, validateExtractedPaths } from "@x-otto/install";
32
32
 
33
33
  //#region src/plugin/plugin-health-tracker.d.ts
34
34
  /** Plugin health tracker: crash/restart/hang detection + circuit breaker. */
@@ -582,8 +582,17 @@ declare class AgentJobService {
582
582
  dispose(): void;
583
583
  private onRunComplete;
584
584
  private onRunFailed;
585
- /** 把作业产物 apply 到主仓(带冲突检测;冲突不强改)。 */
586
- apply(jobId: string): ApplyOutcome;
585
+ /**
586
+ * 把作业产物 apply 到主仓(带冲突检测;冲突不强改)。
587
+ *
588
+ * 自主 apply 闸(governance/apply-policy):本方法是人手 `/job apply` 触发的落地路径,默认
589
+ * origin='user'(人即闸)——L0 默认策略下 decideApply 恒返 advise,照常 applyDiff,行为与
590
+ * 接入前逐字节一致。未来自主 apply 回路传 origin='main'/'plugin' 时:触治理禁区(铁律)返
591
+ * forbid,本方法拒绝落地并回明确错误;其余 verdict(gate/advise/auto)仍走 applyDiff。
592
+ */
593
+ apply(jobId: string, opts?: {
594
+ origin?: ApplySignals['origin'];
595
+ }): ApplyOutcome;
587
596
  /**
588
597
  * 撤销一次已 apply 的作业改动(反向 diff,check-first 不强撤)。
589
598
  * 工作树自 apply 后漂移 → 返回 partial + 冲突路径,不强撤。撤成则该 diff 不再可 revert。
@@ -598,6 +607,25 @@ declare class AgentJobService {
598
607
  declare function createToolGuidanceHook(toolRegistry: ToolRegistry, getPreset: () => 'minimal' | 'standard' | 'full'): HookSpec;
599
608
  //#endregion
600
609
  //#region src/hooks/lesson-injection.d.ts
610
+ interface GovernanceDecision {
611
+ key: string;
612
+ id: string;
613
+ scope: 'workspace' | 'local';
614
+ class: 'norm' | 'fact' | 'case' | 'ephemeral';
615
+ subclass?: string;
616
+ state: string;
617
+ supersededBy?: string;
618
+ }
619
+ /** RFC-327 M3-03/M3-04:lesson 注入 hooks 的可选接线点。 */
620
+ interface LessonInjectionHooksOptions {
621
+ /**
622
+ * governance plan 注入点(测试/宿主用)——缺省从仓库固定路径加载。
623
+ * 传空 Map 即模拟 plan 缺失 → relevant-hints 启用安全默认(而非关闭)。
624
+ */
625
+ governanceDecisions?: ReadonlyMap<string, GovernanceDecision>;
626
+ /** 进化信号出口——relevantHitCount 消费投影(只读真源,不双写,R3')。缺省不投影。 */
627
+ evolutionSignals?: EvolutionSignalSink;
628
+ }
601
629
  /**
602
630
  * `localLearningStore`(RFC-164 M164-1 D3):机器特定经验(scope='local')的独立 store。
603
631
  *
@@ -606,7 +634,7 @@ declare function createToolGuidanceHook(toolRegistry: ToolRegistry, getPreset: (
606
634
  * local pack 仍待后续里程碑落地,因此 local lessons 暂保留为独立 legacy block,不与可提交
607
635
  * workspace pack 混合,避免破坏 RFC-164 local-only 语义。
608
636
  */
609
- declare function createLessonInjectionHooks(learningStore: OperationalLearningStore, promptManager: PromptManager, localLearningStore?: OperationalLearningStore): HookSpec[];
637
+ declare function createLessonInjectionHooks(learningStore: OperationalLearningStore, promptManager: PromptManager, localLearningStore?: OperationalLearningStore, options?: LessonInjectionHooksOptions): HookSpec[];
610
638
  //#endregion
611
639
  //#region src/hooks/skill-catalog-injection.d.ts
612
640
  declare function createSkillCatalogInjectionHooks(registry: SkillRegistry): HookSpec[];
@@ -1781,7 +1809,7 @@ interface PluginModuleManagerDeps {
1781
1809
  /** RFC-105 D9:是否对声明了 `tools` 能力的插件启用 worker 隔离加载(默认 true——隔离)。 */
1782
1810
  useIsolatedLoading?: boolean;
1783
1811
  /** RFC-153 D3:插件加载/编译/工厂失败的旁路通知(可选,不传则不记录健康度)。 */
1784
- onPluginLoadError?: (pluginId: string, message: string) => void;
1812
+ onPluginLoadError?: (pluginId: string, message: string, reason: PluginLoadFailureReason) => void;
1785
1813
  workspaceDir: string;
1786
1814
  activePlugins: () => DiscoveredPlugin$1[];
1787
1815
  /**
@@ -1849,6 +1877,13 @@ interface PluginModuleManagerDeps {
1849
1877
  /** RFC-287 M3:工作区稳定标识(service 是 per-workspace 一实例)。缺省 'default'(storageDirFor 兜底);
1850
1878
  * RFC-303 M5 复用同一字段做 scoped persistence 的 workspaceKey 来源,惰性未就位时用 DEFAULT_WORKSPACE_KEY 兜底。 */
1851
1879
  getWorkspaceKey?: () => string | undefined;
1880
+ /**
1881
+ * RFC-327 修订 D2(M2):双平面注册边界——进程级 HostRegistry(可选)。
1882
+ * 注入后插件在 reload 时按 manifest plane 分桶注册(host 平面 / PRESET workspace 格),
1883
+ * 含 R6' 版本绑定与 M1/M2 汇合项(waterfall 贡献归 PRESET workspace 格);插件
1884
+ * removed/changed/停用时撤销对应条目。未注入 = 平面注册不接线(既有行为不变)。
1885
+ */
1886
+ planeRegistry?: _$_x_otto_runtime0.HostRegistry;
1852
1887
  callMcpTool: (server: string, tool: string, params?: Record<string, unknown>) => Promise<{
1853
1888
  content: {
1854
1889
  type: string;
@@ -1945,6 +1980,24 @@ declare class PluginModuleManager {
1945
1980
  private callOnDeactivate;
1946
1981
  /** 撤销全部轴上一轮的注册(cleanup() 进程退出路径用)。 */
1947
1982
  private unregisterAllAxes;
1983
+ /**
1984
+ * RFC-327 修订 D2(M2):按 manifest plane 分桶注册插件平面条目(T-327-M2-04/06)。
1985
+ *
1986
+ * 归属决策(M1/M2 汇合项 T-327-M2-06 定案):
1987
+ * - 插件身份条目(kind:'plugin'):manifest `plane:'host'` → host 平面
1988
+ * (`host.register()`);`plane:'preset'`(缺省)→ PRESET workspace 格
1989
+ * (`workspace.preset.register()`,workspaceKey 由格盖章——插件生命周期是
1990
+ * workspace 维度,service 是 per-workspace 一实例)。
1991
+ * - waterfall 贡献条目(kind:'waterfall'):M1 的 PluginHooks.waterfall 是插件
1992
+ * 贡献,经 PRESET 的 workspace 格注册(不随会话 dispose 清理——插件贡献的
1993
+ * 生命周期是 workspace 维度),随插件启用/停用清理(撤销在 unregisterPluginAxes)。
1994
+ *
1995
+ * R6'(版本绑定):条目携带 pluginVersion(manifest.version);注册前先
1996
+ * revalidatePlugin 检出上一轮残留的版本漂移条目(脏插件/撤销失败等异常路径——
1997
+ * 正常 reload 走 unregister→register 全量替换,无漂移残留),warn 提示需重新
1998
+ * 评估白名单(trust 不跨版本自动存续)。
1999
+ */
2000
+ private registerPluginPlaneEntries;
1948
2001
  /**
1949
2002
  * RFC-216 D2:撤销**指定插件**在全部轴上一轮的注册(差量 reload 的 removed/changed 分支)。
1950
2003
  *
@@ -1996,6 +2049,119 @@ declare class PluginModuleManager {
1996
2049
  cleanup(): Promise<void>;
1997
2050
  }
1998
2051
  //#endregion
2052
+ //#region src/trajectory-capture.d.ts
2053
+ type TrajectoryEventKind = 'turn.start' | 'user.message' | 'assistant.message' | 'tool.call' | 'tool.result' | 'compaction' | 'signal';
2054
+ /** 每行一个轨迹事件(JSONL 追加式、不可变、seq 单调可回放排序)。 */
2055
+ interface TrajectoryRecord {
2056
+ sessionId: string;
2057
+ /** 轨迹事件单调序号(0 起;按 session_entries 序 + 派生序展开)。 */
2058
+ seq: number;
2059
+ /** 事件原始时刻(数据派生:entry.timestamp / signal.at)。 */
2060
+ at: number;
2061
+ kind: TrajectoryEventKind;
2062
+ /** turn 边界编号(0 起;user 消息开新 turn)。signal/compaction 不带。 */
2063
+ turnIndex?: number;
2064
+ text?: string;
2065
+ model?: string;
2066
+ usage?: {
2067
+ input: number;
2068
+ output: number;
2069
+ };
2070
+ stopReason?: string;
2071
+ toolCallId?: string;
2072
+ toolName?: string;
2073
+ arguments?: Record<string, unknown>;
2074
+ isError?: boolean;
2075
+ summary?: string;
2076
+ boundaryId?: string;
2077
+ compactedCount?: number;
2078
+ signalKind?: string;
2079
+ key?: string;
2080
+ value?: number;
2081
+ detail?: Record<string, unknown>;
2082
+ }
2083
+ interface TrajectoryCaptureInput {
2084
+ sessionId: string;
2085
+ entries: ReadonlyArray<SessionEntry<AgentMessage>>;
2086
+ /**
2087
+ * 进化信号全集(跨会话)。内部按 sessionId 过滤做 turn 级质量标注联结
2088
+ * (RFC-385 D4 方案 A:EvolutionSignalRecord.sessionId)。
2089
+ */
2090
+ signals?: ReadonlyArray<EvolutionSignalRecord>;
2091
+ }
2092
+ declare function captureTrajectory(input: TrajectoryCaptureInput): TrajectoryRecord[];
2093
+ //#endregion
2094
+ //#region src/trajectory-export.d.ts
2095
+ /** JSONL 输出端口(与 Node `Writable` 结构兼容的最小面)。 */
2096
+ interface TrajectoryOutput {
2097
+ write(chunk: string): unknown;
2098
+ }
2099
+ /** 脱敏监听器:undefined = 抑制;抛异常 = 抑制(fail-closed);返回 record = 替换。 */
2100
+ type TrajectoryRedactFn = (record: TrajectoryRecord) => TrajectoryRecord | undefined;
2101
+ interface TrajectoryExportInput {
2102
+ records: ReadonlyArray<TrajectoryRecord>;
2103
+ redact?: TrajectoryRedactFn;
2104
+ output: TrajectoryOutput;
2105
+ }
2106
+ interface TrajectoryExportResult {
2107
+ /** 实际写出的行数(被 redaction 抑制的不计)。 */
2108
+ written: number;
2109
+ /** 被 redaction 抑制的行数(undefined 返回或抛异常)。 */
2110
+ suppressed: number;
2111
+ }
2112
+ /**
2113
+ * 把轨迹记录流式写成 JSONL(每行一个事件)。
2114
+ *
2115
+ * 纯函数(对 records/output 只读;排序用副本,不原地改写输入)。不直呼 Date.now/
2116
+ * Math.random/randomUUID——序列化本身无时钟需求。
2117
+ */
2118
+ declare function exportTrajectory(input: TrajectoryExportInput): TrajectoryExportResult;
2119
+ /** 会话读取端口(导出所需的两个仓储原语;SqliteSessionRepository 结构满足)。 */
2120
+ interface TrajectorySessionReadPort {
2121
+ loadEntries(sessionId: string, sinceSeq?: number): Promise<EntryRow[]>;
2122
+ getEntryCount(sessionId: string): Promise<number>;
2123
+ }
2124
+ /**
2125
+ * 快照有界选择(并发一致性核心纯函数):只保留 `sinceSeq < seq < upperSeq` 的行。
2126
+ * `seq >= upperSeq` 是导出开始后被并发 append 的超界事件,归下一批。
2127
+ */
2128
+ declare function selectTrajectoryEntries(rows: ReadonlyArray<EntryRow>, sinceSeq: number | undefined, upperSeq: number): EntryRow[];
2129
+ interface TrajectorySessionExportInput {
2130
+ sessionId: string;
2131
+ repo: TrajectorySessionReadPort;
2132
+ /** 增量游标:仅导出 seq > sinceSeq 的条目(缺省 = 全量)。 */
2133
+ sinceSeq?: number;
2134
+ redact?: TrajectoryRedactFn;
2135
+ output: TrajectoryOutput;
2136
+ /** 进化信号(内存态);缺省 = 空(EvolutionSignalStore 未持久化时无会话信号)。 */
2137
+ signals?: ReadonlyArray<EvolutionSignalRecord>;
2138
+ }
2139
+ interface TrajectorySessionExportResult extends TrajectoryExportResult {
2140
+ /** 快照 seq 上界(= 导出开始时的 next_seq);seq >= upperSeq 归下一批。 */
2141
+ upperSeq: number;
2142
+ /** 本次实际导出的 session_entries 行数(快照有界后)。 */
2143
+ entryCount: number;
2144
+ }
2145
+ /**
2146
+ * 从会话仓储读 entries → capture → export 的完整管道(on-demand 导出主路径)。
2147
+ *
2148
+ * 并发一致性顺序(先快照后裁剪):先 `getEntryCount` 取上界,再 `loadEntries`,再
2149
+ * `selectTrajectoryEntries` 裁掉超界行——即使 load 期间有并发 append,本次也不导出
2150
+ * 半截/超界事件(归下一批)。
2151
+ */
2152
+ declare function exportTrajectoryFromSession(input: TrajectorySessionExportInput): Promise<TrajectorySessionExportResult>;
2153
+ //#endregion
2154
+ //#region src/app/app-export.d.ts
2155
+ /** 活 App 导出的结果:既有管线结果 + output 缺省时收集到内存的导出行。 */
2156
+ interface AppTrajectoryExportResult extends TrajectorySessionExportResult {
2157
+ /** output 缺省时收集到内存的 JSONL 导出行(每行一个事件,含换行)。显式传 output 时 undefined。 */
2158
+ lines?: string[];
2159
+ }
2160
+ interface AppTrajectoryExportOptions {
2161
+ redact?: TrajectoryRedactFn;
2162
+ output?: TrajectoryOutput;
2163
+ }
2164
+ //#endregion
1999
2165
  //#region src/app/plugin-provider-manager.d.ts
2000
2166
  /** PluginProviderManager 依赖面(同 PluginModuleManager 的 DI 范式,M100)。 */
2001
2167
  interface PluginProviderManagerDeps {
@@ -2007,6 +2173,16 @@ interface PluginProviderManagerDeps {
2007
2173
  activePlugins: () => DiscoveredPlugin$1[];
2008
2174
  /** RFC-124 C1/C2:信任门拒绝时的结构化告警(同 PluginModuleManagerDeps.logger 范式)。 */
2009
2175
  logger: Logger;
2176
+ /**
2177
+ * 08-13 终局复核 B1 扩展:声明式 provider/oauth 装载拒绝的旁路通知(可选),宿主据此
2178
+ * emit `plugin.load-failed`(reason='provider-rejected')。与 PluginModuleManagerDeps.
2179
+ * onPluginLoadError 同范式。
2180
+ */
2181
+ onProviderRejected?: (failure: {
2182
+ pluginId: string;
2183
+ id: string;
2184
+ reason: string;
2185
+ }) => void;
2010
2186
  }
2011
2187
  /**
2012
2188
  * 插件声明式 provider(`contributes.providers`)的加载/卸载单源(RFC-105 M105-2-03b)。
@@ -2249,6 +2425,13 @@ declare class App implements AppContext, SessionPort, ModelPort, PermissionPort,
2249
2425
  readonly settings: SettingsManager;
2250
2426
  readonly toolRegistry: ToolRegistry;
2251
2427
  readonly hookRegistry: HookRegistry;
2428
+ /**
2429
+ * RFC-327 修订 D2(M2):双平面注册边界——进程级 HostRegistry(生命周期=进程)。
2430
+ * App 构造期建(对齐 app-builder.ts Phase 7 插件装载处):host 平面注册 + PRESET
2431
+ * workspace 格(workspace 挂载时建,start() workspaceRef 就位)+ PRESET 会话格
2432
+ * (runtime 会话池在会话创建时派生,会话 dispose 清理)。stop() 时 dispose 清空。
2433
+ */
2434
+ readonly planeRegistry: HostRegistry;
2252
2435
  readonly providerRegistry: ProviderRegistry;
2253
2436
  /** RFC-148 D2b:Wire 协议实现注册表(key space = wireApi,与 providerRegistry 职责正交)。 */
2254
2437
  readonly wireProtocolRegistry: WireProtocolRegistry;
@@ -2474,6 +2657,13 @@ declare class App implements AppContext, SessionPort, ModelPort, PermissionPort,
2474
2657
  * registry 客户端住在 cli 侧,coding 不反向依赖 cli。缺省 → 该工具不注册。
2475
2658
  */
2476
2659
  searchEcosystem?: SearchEcosystem;
2660
+ /**
2661
+ * RFC-327 M3(终局 review P1):进化观测层统一出口——进程级单例 EvolutionSignalStore。
2662
+ * 经 registerHooks → createLessonInjectionHooks 第四参注入 lesson-relevant-hints 投影;
2663
+ * capability_gap recorder 注入 tool-callbacks。消费侧(内化决策/训练语料)缓议。
2664
+ * RFC-388 M1:构造期接 SignalLog 持久化端口。
2665
+ */
2666
+ readonly evolutionSignals: EvolutionSignalStore;
2477
2667
  readonly notificationDispatcher: NotificationDispatcher;
2478
2668
  readonly presenceTracker: PresenceTracker;
2479
2669
  private followUpPendingProbe?;
@@ -2557,6 +2747,10 @@ declare class App implements AppContext, SessionPort, ModelPort, PermissionPort,
2557
2747
  private readonly pluginTopology;
2558
2748
  /** 插件代码模块(plugin.ts)的加载/接线/卸载——三段 computed 状态 + reload + cleanup(ARCH-083-01)。 */
2559
2749
  readonly pluginModuleManager: PluginModuleManager;
2750
+ /** capability_gap 跨会话聚合存储(recorder 底层实现)。 */
2751
+ readonly capabilityGapStore: CapabilityGapReportStore;
2752
+ /** RFC-327 M3-02 + 08-13 B2:缺口计数 + monitor 桥接(构造器接线,工厂见 app-evolution-wiring)。 */
2753
+ readonly capabilityGapRecorder: CapabilityGapReportRecorder;
2560
2754
  /** 插件声明式 provider(`contributes.providers`)的加载/卸载单源(RFC-105 M105-2-03b)。 */
2561
2755
  readonly pluginProviderManager: PluginProviderManager;
2562
2756
  /** 五轴能力热重载编排器(RFC-107 D4)。 */
@@ -2772,6 +2966,8 @@ declare class App implements AppContext, SessionPort, ModelPort, PermissionPort,
2772
2966
  removeSession(id: string): Promise<boolean>;
2773
2967
  /** 委托 app-session-export.ts(RFC-199 M1 提取)。 */
2774
2968
  exportSessionArchive(sessionId: string, outPath: string): Promise<SessionArchiveExport>;
2969
+ /** RFC-388 M2:活 App 内联轨迹导出(委托 app-export.ts;output 缺省=内存收集 lines)。 */
2970
+ exportTrajectory(sessionId: string, options?: AppTrajectoryExportOptions): Promise<AppTrajectoryExportResult>;
2775
2971
  /** 委托 app-session-methods.ts。 */
2776
2972
  archiveSession(id: string): Promise<boolean>;
2777
2973
  /** 委托 app-session-methods.ts。 */
@@ -3217,9 +3413,11 @@ declare function rewriteArtifactSourceHash(pluginDir: string, contentDir?: strin
3217
3413
  */
3218
3414
  declare function loadPluginModule(plugin: DiscoveredPlugin$1, ctx: PluginContext,
3219
3415
  /** RFC-153 D3:加载/编译/工厂失败的旁路通知(可选,宿主层注入),供
3220
- * `PluginHealthTracker.recordError` 写入。不改变现有 fail-soft 返回 null 的控制流。 */
3416
+ * `PluginHealthTracker.recordError` 写入。不改变现有 fail-soft 返回 null 的控制流。
3417
+ * reason 为结构化失败分类(08-13 终局 review B1)——本路径全部失败点均为
3418
+ * 'module-error',宿主层据此进入 `plugin.load-failed` monitor 事件面。 */
3221
3419
 
3222
- onLoadError?: (pluginId: string, message: string) => void): Promise<LoadedPluginModule | null>;
3420
+ onLoadError?: (pluginId: string, message: string, reason: PluginLoadFailureReason) => void): Promise<LoadedPluginModule | null>;
3223
3421
  //#endregion
3224
3422
  //#region src/plugin/artifact-portability.d.ts
3225
3423
  /**
@@ -3565,5 +3763,5 @@ interface PluginThemePresetEntry {
3565
3763
  */
3566
3764
  declare function collectPluginThemePresets(plugins: readonly DiscoveredPlugin$1[]): PluginThemePresetEntry[];
3567
3765
  //#endregion
3568
- export { AgentJobService, type AgentJobStatus, type AgentObservationSnapshot, AgentSession, type AgentSessionInfo, type AgentSessionJob, type AgentSessionOptions, App, type AppContext, type AppOptions, type ApplyOutcome, type AuthorizePluginOptions, type AuthorizePluginResult, type BackgroundProcess, type BuiltinResolverDeps, type Checkpoint, type CheckpointData, type ClaudeExecutableSurface, type ClaudeHookBridgeDeps, type ClaudeHooksConfig, type ClaudeTrustVerdict, CodingSessionPool, type CommandRef, type CompilePanelsResult, type ContentType, type ContextMap, DEFAULT_WORKSPACE_KEY, type DiscoverPluginsOptions, type DiscoveredPlugin, type DispatchCaps, type ExpandOptions, type ExpandSigilChipsOptions, type ExtensionApplies, type ExtensionCategory, type ExtensionItem, ExtensionManager, type FileCommand, type FileEntrySnapshot, type FileProviderOptions, type FileSnapshot, type FireOwnership, type GitUpgradeCheckResult, HIGH_RISK_CAPABILITIES, type HookRunner, INDUCTOR_PLUGIN_ID, InstallManager, type InstallOptions, type InstallPluginFromPackageOptions, type InstallPluginResult, type InstallProgress, type InstallResult, type InstallScope, type InstallSourceMetadata, type InstalledItem, type ListInstalledOptions, type LoadedRegistry, type MemoryPressureLevel, type MemorySample, type NotificationKind, PLUGIN_LOG_TAIL_LINES, PLUGIN_MANIFEST_FILENAME, POINT, type ParsedRegistry, type PluginConsistencyWarning, type PluginContributes, type PluginExecutableSurface, type PluginHealthStats, type PluginInputRegistry, type PluginLogEntry, type PluginManifest, type PluginPerfMetricResult, type PluginThemePresetEntry, type PluginTrustVerdict, type PortabilityViolations, type PostInstallContext, type PostInstallResult, type ProgressPhase, type ProjectConfigGating, type ProjectConfigTrustContext, type PromptOptions, type PulseSurveyEntry, type PulseSurveyRating, RegistryClient, type RegistryEntry, type RegistrySourceConfig, type ReplayLevel, type ResolvedAction, type ResolvedSource, type RestoreMode, SANDBOX_ESCALATION_MARKER, SCHEDULE_LEASE_MIGRATIONS, type SandboxRunner, type SandboxToolCall, type SandboxToolResult, SandboxUnavailableError, ScheduleRegistry, type ScheduleStore, type ScheduledTask, type ScheduledTaskInput, type SchedulerDeps, SchedulerService, type ServiceHostPort, type SessionArchiveExport, type SessionPoolOptions, type SigilEntry, type SigilKind, type SigilPrefix, type SigilProvider, SigilResolverRegistry, type SigilSource, type SkillLoopStatus, type SourceType, type StorageHostBinding, type StorageLocation, type StorageOptions, type TracebackView, type UninstallOptions, type UninstallResult, type UninstallTarget, type UpgradeCheckOptions, type UpgradeCheckResult, type VersionInfo, type WorkspaceTrustAction, type WorkspaceTrustPromptDecision, apiCredentialId, assertPortableArtifact, authorizePlugin, buildExtensionContext, buildMemoryStore, buildPluginCliRegistry, builtinOfficialSource, captureFiles, checkArchiveBomb, checkGitUpgrades, checkPluginConsistency, checkUpgrades, claudeTrustStorePath, cleanTempDir, collectPluginPerfMetrics, collectPluginThemePresets, compilePluginModule, compilePluginPanels, computeSourceHash, createApp, createArchive, createBuiltinHashtags, createBuiltinResolvers, createClaudeHookBridgeHooks, createFileProvider, createFrontendPort, createLessonInjectionHooks, createLocalFireOwnership, createPluginInputRegistry, createRemoteFireOwnership, createRemoteScheduleStore, createScheduleStore, createSessionStableInjectionHooks, createSkillCatalogInjectionHooks, createTempDir, createToolGuidanceHook, defaultHookRunner, defaultMaxToolTurnExtensions, executePostInstall as defaultPostInstallExecutor, deriveSessionTitle, detectClaudeExecutableSurface, detectPluginExecutableSurface, detectProjectConfigGating, detectUninstallTarget, discoverFileCommands, discoverPlugins, dispatch, evaluateClaudeTrust, evaluatePluginTrust, evaluateWorkspaceTrustPrompt, expandCommandBody, expandSigilChips, extractArchive, findPluginCliNameConflict, findPortabilityViolations, findWorkspaceRoot, getEsbuildModule, getIncompleteSubagentReason, getLastAssistantText, globalAgentJobRegistry, globalAgentObservability, globalProcessRegistry, grantPluginCapabilities, grantedPluginCapabilities, hasPortabilityViolations, inspectPluginAuthorization, installEsbuildExitHook, installEsbuildSignalBridges, installPluginFromDir, installPluginFromPackage, installPluginHostExternals, interpretPreToolUse, isInternalDelegatedSession, isPluginTrusted, isProjectTrusted, isStrictProjectConfigEnabled, listInstalledItems, loadClaudeHooksConfig, loadPluginModule, markEsbuildStarted, matchesHookMatcher, messagesFromSnapshot, openTarget, parseClaudeHooks, parseDotMcpJson, parsePluginManifest, parseRegistry, pluginTrustStorePath, purgePluginState, readHighRiskCapabilities, readPluginLogTail, readSkillLoopStatus, readTaskOutputTail, reconstructMessages, recordPluginInstalled, recordPluginUninstalled, removeInstalledPluginEntry, resolveActions, resolveClaudeMcpServers, resolveHostExternalPaths, resolvePackageDir, resolvePluginCliBin, resolvePluginMcpServers, resolveProjectConfigTrusted, resolveSessionTitle, restoreFiles, revokePluginAuthorization, rewriteArtifactSourceHash, runPluginScript, scanInstalledVersions, sigilOf, spawnPluginCli, stopEsbuildService, trustPlugin, trustProject, uninstall, untrustPlugin, untrustProject, upsertInstalledPluginEntry, validateExtractedPaths, withBuildTimeout };
3766
+ export { AgentJobService, type AgentJobStatus, type AgentObservationSnapshot, AgentSession, type AgentSessionInfo, type AgentSessionJob, type AgentSessionOptions, App, type AppContext, type AppOptions, type ApplyOutcome, type AuthorizePluginOptions, type AuthorizePluginResult, type BackgroundProcess, type BuiltinResolverDeps, type Checkpoint, type CheckpointData, type ClaudeExecutableSurface, type ClaudeHookBridgeDeps, type ClaudeHooksConfig, type ClaudeTrustVerdict, CodingSessionPool, type CommandRef, type CompilePanelsResult, type ContentType, type ContextMap, DEFAULT_WORKSPACE_KEY, type DiscoverPluginsOptions, type DiscoveredPlugin, type DispatchCaps, type ExpandOptions, type ExpandSigilChipsOptions, type ExtensionApplies, type ExtensionCategory, type ExtensionItem, ExtensionManager, type FileCommand, type FileEntrySnapshot, type FileProviderOptions, type FileSnapshot, type FireOwnership, type GitUpgradeCheckResult, HIGH_RISK_CAPABILITIES, type HookRunner, INDUCTOR_PLUGIN_ID, InstallManager, type InstallOptions, type InstallPluginFromPackageOptions, type InstallPluginResult, type InstallProgress, type InstallResult, type InstallScope, type InstallSourceMetadata, type InstalledItem, type ListInstalledOptions, type LoadedRegistry, type MemoryPressureLevel, type MemorySample, type NotificationKind, PLUGIN_LOG_TAIL_LINES, PLUGIN_MANIFEST_FILENAME, POINT, type ParsedRegistry, type PluginConsistencyWarning, type PluginContributes, type PluginExecutableSurface, type PluginHealthStats, type PluginInputRegistry, type PluginLogEntry, type PluginManifest, type PluginPerfMetricResult, type PluginThemePresetEntry, type PluginTrustVerdict, type PortabilityViolations, type PostInstallContext, type PostInstallResult, type ProgressPhase, type ProjectConfigGating, type ProjectConfigTrustContext, type PromptOptions, type PulseSurveyEntry, type PulseSurveyRating, RegistryClient, type RegistryEntry, type RegistrySourceConfig, type ReplayLevel, type ResolvedAction, type ResolvedSource, type RestoreMode, SANDBOX_ESCALATION_MARKER, SCHEDULE_LEASE_MIGRATIONS, type SandboxRunner, type SandboxToolCall, type SandboxToolResult, SandboxUnavailableError, ScheduleRegistry, type ScheduleStore, type ScheduledTask, type ScheduledTaskInput, type SchedulerDeps, SchedulerService, type ServiceHostPort, type SessionArchiveExport, type SessionPoolOptions, type SigilEntry, type SigilKind, type SigilPrefix, type SigilProvider, SigilResolverRegistry, type SigilSource, type SkillLoopStatus, type SourceType, type StorageHostBinding, type StorageLocation, type StorageOptions, type TracebackView, type TrajectoryCaptureInput, type TrajectoryEventKind, type TrajectoryExportInput, type TrajectoryExportResult, type TrajectoryOutput, type TrajectoryRecord, type TrajectoryRedactFn, type TrajectorySessionExportInput, type TrajectorySessionExportResult, type TrajectorySessionReadPort, type UninstallOptions, type UninstallResult, type UninstallTarget, type UpgradeCheckOptions, type UpgradeCheckResult, type VersionInfo, type WorkspaceTrustAction, type WorkspaceTrustPromptDecision, apiCredentialId, assertPortableArtifact, authorizePlugin, buildExtensionContext, buildMemoryStore, buildPluginCliRegistry, builtinOfficialSource, captureFiles, captureTrajectory, checkArchiveBomb, checkGitUpgrades, checkPluginConsistency, checkUpgrades, claudeTrustStorePath, cleanTempDir, collectPluginPerfMetrics, collectPluginThemePresets, compilePluginModule, compilePluginPanels, computeSourceHash, createApp, createArchive, createBuiltinHashtags, createBuiltinResolvers, createClaudeHookBridgeHooks, createFileProvider, createFrontendPort, createLessonInjectionHooks, createLocalFireOwnership, createPluginInputRegistry, createRemoteFireOwnership, createRemoteScheduleStore, createScheduleStore, createSessionStableInjectionHooks, createSkillCatalogInjectionHooks, createTempDir, createToolGuidanceHook, defaultHookRunner, defaultMaxToolTurnExtensions, executePostInstall as defaultPostInstallExecutor, deriveSessionTitle, detectClaudeExecutableSurface, detectPluginExecutableSurface, detectProjectConfigGating, detectUninstallTarget, discoverFileCommands, discoverPlugins, dispatch, evaluateClaudeTrust, evaluatePluginTrust, evaluateWorkspaceTrustPrompt, expandCommandBody, expandSigilChips, exportTrajectory, exportTrajectoryFromSession, extractArchive, findPluginCliNameConflict, findPortabilityViolations, findWorkspaceRoot, getEsbuildModule, getIncompleteSubagentReason, getLastAssistantText, globalAgentJobRegistry, globalAgentObservability, globalProcessRegistry, grantPluginCapabilities, grantPluginCapabilitiesWithVersion, grantedPluginCapabilities, grantedPluginCapabilitiesForVersion, hasPortabilityViolations, inspectPluginAuthorization, installEsbuildExitHook, installEsbuildSignalBridges, installPluginFromDir, installPluginFromPackage, installPluginHostExternals, interpretPreToolUse, isInternalDelegatedSession, isPluginTrusted, isProjectTrusted, isStrictProjectConfigEnabled, listInstalledItems, loadClaudeHooksConfig, loadPluginModule, markEsbuildStarted, matchesHookMatcher, messagesFromSnapshot, openTarget, parseClaudeHooks, parseDotMcpJson, parsePluginManifest, parseRegistry, pluginTrustStorePath, purgePluginState, readHighRiskCapabilities, readPluginLogTail, readSkillLoopStatus, readTaskOutputTail, reconstructMessages, recordPluginInstalled, recordPluginUninstalled, removeInstalledPluginEntry, resolveActions, resolveClaudeMcpServers, resolveHostExternalPaths, resolvePackageDir, resolvePluginCliBin, resolvePluginMcpServers, resolveProjectConfigTrusted, resolveSessionTitle, restoreFiles, revokePluginAuthorization, rewriteArtifactSourceHash, runPluginScript, scanInstalledVersions, selectTrajectoryEntries, sigilOf, spawnPluginCli, stopEsbuildService, trustPlugin, trustProject, uninstall, untrustPlugin, untrustProject, upsertInstalledPluginEntry, validateExtractedPaths, withBuildTimeout };
3569
3767
  //# sourceMappingURL=index.d.ts.map