@skillkit/core 1.12.0 → 1.14.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/index.d.ts CHANGED
@@ -2350,7 +2350,7 @@ interface SearchOptions {
2350
2350
  /**
2351
2351
  * Search result
2352
2352
  */
2353
- interface SearchResult {
2353
+ interface SearchResult$1 {
2354
2354
  skill: SkillSummary;
2355
2355
  relevance: number;
2356
2356
  matchedTerms: string[];
@@ -2427,7 +2427,7 @@ interface RecommendHybridSearchOptions extends SearchOptions {
2427
2427
  /**
2428
2428
  * Hybrid search result with additional metadata for RecommendationEngine
2429
2429
  */
2430
- interface RecommendHybridSearchResult extends SearchResult {
2430
+ interface RecommendHybridSearchResult extends SearchResult$1 {
2431
2431
  hybridScore?: number;
2432
2432
  vectorSimilarity?: number;
2433
2433
  keywordScore?: number;
@@ -2654,7 +2654,7 @@ declare class RecommendationEngine {
2654
2654
  /**
2655
2655
  * Search skills by query (task-based search)
2656
2656
  */
2657
- search(options: SearchOptions): SearchResult[];
2657
+ search(options: SearchOptions): SearchResult$1[];
2658
2658
  /**
2659
2659
  * Calculate search relevance for a skill
2660
2660
  */
@@ -4150,16 +4150,61 @@ interface MemorySearchResult {
4150
4150
  matchedTags: string[];
4151
4151
  }
4152
4152
 
4153
+ /**
4154
+ * Auto-compression callback type
4155
+ */
4156
+ type AutoCompressCallback = (observations: Observation[]) => Promise<void>;
4157
+ /**
4158
+ * Observation store options
4159
+ */
4160
+ interface ObservationStoreOptions {
4161
+ compressionThreshold?: number;
4162
+ autoCompress?: boolean;
4163
+ onThresholdReached?: AutoCompressCallback;
4164
+ }
4153
4165
  declare class ObservationStore {
4154
4166
  private readonly filePath;
4167
+ private readonly projectPath;
4155
4168
  private data;
4156
4169
  private sessionId;
4157
- constructor(projectPath: string, sessionId?: string);
4170
+ private compressionThreshold;
4171
+ private autoCompress;
4172
+ private onThresholdReached?;
4173
+ private compressionInProgress;
4174
+ constructor(projectPath: string, sessionId?: string, options?: ObservationStoreOptions);
4158
4175
  private ensureDir;
4159
4176
  private load;
4160
4177
  private createEmpty;
4161
4178
  private save;
4162
4179
  add(type: ObservationType, content: ObservationContent, agent: AgentType, relevance?: number): Observation;
4180
+ /**
4181
+ * Check if auto-compression should trigger
4182
+ */
4183
+ private checkAutoCompression;
4184
+ /**
4185
+ * Set auto-compression callback
4186
+ */
4187
+ setAutoCompressCallback(callback: AutoCompressCallback): void;
4188
+ /**
4189
+ * Enable/disable auto-compression
4190
+ */
4191
+ setAutoCompress(enabled: boolean): void;
4192
+ /**
4193
+ * Set compression threshold
4194
+ */
4195
+ setCompressionThreshold(threshold: number): void;
4196
+ /**
4197
+ * Get compression threshold
4198
+ */
4199
+ getCompressionThreshold(): number;
4200
+ /**
4201
+ * Check if threshold is reached
4202
+ */
4203
+ isThresholdReached(): boolean;
4204
+ /**
4205
+ * Get project path
4206
+ */
4207
+ getProjectPath(): string;
4163
4208
  getAll(): Observation[];
4164
4209
  getByType(type: ObservationType): Observation[];
4165
4210
  getByRelevance(minRelevance: number): Observation[];
@@ -4861,6 +4906,646 @@ declare class MemoryInjector {
4861
4906
  */
4862
4907
  declare function createMemoryInjector(projectPath: string, projectName?: string, projectContext?: ProjectContext): MemoryInjector;
4863
4908
 
4909
+ /**
4910
+ * Memory Hooks Types
4911
+ *
4912
+ * Types for Claude Code lifecycle hooks that integrate with SkillKit memory.
4913
+ */
4914
+
4915
+ /**
4916
+ * Claude Code hook event types
4917
+ */
4918
+ type ClaudeCodeHookEvent = 'SessionStart' | 'SessionResume' | 'SessionEnd' | 'PreToolUse' | 'PostToolUse' | 'UserPromptSubmit' | 'PreCompact' | 'Notification' | 'Stop';
4919
+ /**
4920
+ * Tool use event for PostToolUse hook
4921
+ */
4922
+ interface ToolUseEvent {
4923
+ tool_name: string;
4924
+ tool_input: Record<string, unknown>;
4925
+ tool_result?: string;
4926
+ is_error?: boolean;
4927
+ duration_ms?: number;
4928
+ }
4929
+ /**
4930
+ * Session start event context
4931
+ */
4932
+ interface SessionStartContext {
4933
+ session_id: string;
4934
+ project_path: string;
4935
+ agent: AgentType;
4936
+ timestamp: string;
4937
+ working_directory?: string;
4938
+ }
4939
+ /**
4940
+ * Session end event context
4941
+ */
4942
+ interface SessionEndContext {
4943
+ session_id: string;
4944
+ project_path: string;
4945
+ agent: AgentType;
4946
+ timestamp: string;
4947
+ duration_ms?: number;
4948
+ tool_calls_count?: number;
4949
+ }
4950
+ /**
4951
+ * Memory hook configuration
4952
+ */
4953
+ interface MemoryHookConfig {
4954
+ enabled: boolean;
4955
+ autoInjectOnSessionStart: boolean;
4956
+ autoCaptureToolUse: boolean;
4957
+ autoCompressOnSessionEnd: boolean;
4958
+ minRelevanceForCapture: number;
4959
+ maxTokensForInjection: number;
4960
+ compressionThreshold: number;
4961
+ capturePatterns?: string[];
4962
+ excludeTools?: string[];
4963
+ }
4964
+ /**
4965
+ * Default memory hook configuration
4966
+ */
4967
+ declare const DEFAULT_MEMORY_HOOK_CONFIG: MemoryHookConfig;
4968
+ /**
4969
+ * Session start hook result
4970
+ */
4971
+ interface SessionStartResult {
4972
+ injected: boolean;
4973
+ learnings: Learning[];
4974
+ tokenCount: number;
4975
+ formattedContent: string;
4976
+ }
4977
+ /**
4978
+ * Tool use capture result
4979
+ */
4980
+ interface ToolUseCaptureResult {
4981
+ captured: boolean;
4982
+ observation?: Observation;
4983
+ reason?: string;
4984
+ }
4985
+ /**
4986
+ * Session end hook result
4987
+ */
4988
+ interface SessionEndResult {
4989
+ compressed: boolean;
4990
+ observationCount: number;
4991
+ learningCount: number;
4992
+ learnings: Learning[];
4993
+ }
4994
+ /**
4995
+ * Hook script output format for Claude Code
4996
+ */
4997
+ interface ClaudeCodeHookOutput {
4998
+ continue: boolean;
4999
+ message?: string;
5000
+ inject?: string;
5001
+ suppress?: boolean;
5002
+ }
5003
+ /**
5004
+ * Memory hook statistics
5005
+ */
5006
+ interface MemoryHookStats {
5007
+ sessionId: string;
5008
+ startedAt: string;
5009
+ observationsCaptured: number;
5010
+ learningsInjected: number;
5011
+ tokensUsed: number;
5012
+ toolCallsCaptured: number;
5013
+ errorsRecorded: number;
5014
+ solutionsRecorded: number;
5015
+ }
5016
+
5017
+ /**
5018
+ * Session Start Hook
5019
+ *
5020
+ * Injects relevant memories when a Claude Code session starts.
5021
+ * This hook runs at the beginning of each session to provide context
5022
+ * from previous sessions.
5023
+ */
5024
+
5025
+ /**
5026
+ * Session Start Hook Handler
5027
+ *
5028
+ * Retrieves and formats relevant memories for injection at session start.
5029
+ */
5030
+ declare class SessionStartHook {
5031
+ private config;
5032
+ private projectPath;
5033
+ private agent;
5034
+ constructor(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>);
5035
+ /**
5036
+ * Execute the session start hook
5037
+ */
5038
+ execute(context: SessionStartContext): Promise<SessionStartResult>;
5039
+ /**
5040
+ * Generate Claude Code hook output format
5041
+ */
5042
+ generateHookOutput(context: SessionStartContext): Promise<ClaudeCodeHookOutput>;
5043
+ /**
5044
+ * Generate hook output from pre-computed result (avoids double execution)
5045
+ */
5046
+ generateHookOutputFromResult(result: SessionStartResult): ClaudeCodeHookOutput;
5047
+ /**
5048
+ * Format learnings for injection into Claude Code context
5049
+ */
5050
+ private formatInjection;
5051
+ /**
5052
+ * Get configuration
5053
+ */
5054
+ getConfig(): MemoryHookConfig;
5055
+ /**
5056
+ * Update configuration
5057
+ */
5058
+ setConfig(config: Partial<MemoryHookConfig>): void;
5059
+ }
5060
+ /**
5061
+ * Create a session start hook handler
5062
+ */
5063
+ declare function createSessionStartHook(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>): SessionStartHook;
5064
+ /**
5065
+ * Execute session start hook (standalone function for scripts)
5066
+ */
5067
+ declare function executeSessionStartHook(projectPath: string, context: SessionStartContext, config?: Partial<MemoryHookConfig>): Promise<SessionStartResult>;
5068
+
5069
+ /**
5070
+ * Post Tool Use Hook
5071
+ *
5072
+ * Captures tool outcomes as observations after each tool use in Claude Code.
5073
+ * This enables automatic memory capture without manual intervention.
5074
+ */
5075
+
5076
+ /**
5077
+ * Post Tool Use Hook Handler
5078
+ *
5079
+ * Captures tool outcomes and stores them as observations.
5080
+ */
5081
+ declare class PostToolUseHook {
5082
+ private config;
5083
+ private agent;
5084
+ private store;
5085
+ private pendingErrors;
5086
+ constructor(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>, sessionId?: string);
5087
+ /**
5088
+ * Execute the post tool use hook
5089
+ */
5090
+ execute(event: ToolUseEvent): Promise<ToolUseCaptureResult>;
5091
+ /**
5092
+ * Generate Claude Code hook output format
5093
+ */
5094
+ generateHookOutput(event: ToolUseEvent): Promise<ClaudeCodeHookOutput>;
5095
+ /**
5096
+ * Generate hook output from pre-computed result (avoids double execution)
5097
+ */
5098
+ generateHookOutputFromResult(event: ToolUseEvent, result: ToolUseCaptureResult): ClaudeCodeHookOutput;
5099
+ /**
5100
+ * Get configuration
5101
+ */
5102
+ getConfig(): MemoryHookConfig;
5103
+ /**
5104
+ * Update configuration
5105
+ */
5106
+ setConfig(config: Partial<MemoryHookConfig>): void;
5107
+ /**
5108
+ * Record an error explicitly
5109
+ */
5110
+ recordError(error: string, context: string): Observation;
5111
+ /**
5112
+ * Record a solution explicitly
5113
+ */
5114
+ recordSolution(solution: string, context: string, relatedError?: string): Observation;
5115
+ /**
5116
+ * Record a decision explicitly
5117
+ */
5118
+ recordDecision(decision: string, options: string[], context: string): Observation;
5119
+ /**
5120
+ * Record file modifications
5121
+ */
5122
+ recordFileChange(files: string[], action: string, context: string): Observation;
5123
+ /**
5124
+ * Get pending errors that haven't been resolved
5125
+ */
5126
+ getPendingErrors(): Array<{
5127
+ error: string;
5128
+ timestamp: string;
5129
+ }>;
5130
+ /**
5131
+ * Clear old pending errors (older than 30 minutes)
5132
+ */
5133
+ clearOldPendingErrors(): number;
5134
+ /**
5135
+ * Get observation store
5136
+ */
5137
+ getStore(): ObservationStore;
5138
+ /**
5139
+ * Get observation count
5140
+ */
5141
+ getObservationCount(): number;
5142
+ private shouldExcludeTool;
5143
+ private calculateRelevance;
5144
+ private getObservationType;
5145
+ private extractContent;
5146
+ private summarizeInput;
5147
+ private extractContext;
5148
+ private extractFiles;
5149
+ private generateErrorId;
5150
+ private findMatchingSolution;
5151
+ }
5152
+ /**
5153
+ * Create a post tool use hook handler
5154
+ */
5155
+ declare function createPostToolUseHook(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>, sessionId?: string): PostToolUseHook;
5156
+ /**
5157
+ * Execute post tool use hook (standalone function for scripts)
5158
+ */
5159
+ declare function executePostToolUseHook(projectPath: string, event: ToolUseEvent, config?: Partial<MemoryHookConfig>, sessionId?: string): Promise<ToolUseCaptureResult>;
5160
+
5161
+ /**
5162
+ * Session End Hook
5163
+ *
5164
+ * Compresses observations to learnings when a Claude Code session ends.
5165
+ * This enables automatic memory consolidation without manual intervention.
5166
+ */
5167
+
5168
+ /**
5169
+ * Session End Hook Handler
5170
+ *
5171
+ * Compresses observations collected during the session into learnings.
5172
+ */
5173
+ declare class SessionEndHook {
5174
+ private config;
5175
+ private projectPath;
5176
+ private agent;
5177
+ constructor(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>);
5178
+ /**
5179
+ * Execute the session end hook
5180
+ */
5181
+ execute(context: SessionEndContext): Promise<SessionEndResult>;
5182
+ /**
5183
+ * Generate Claude Code hook output format
5184
+ */
5185
+ generateHookOutput(context: SessionEndContext): Promise<ClaudeCodeHookOutput>;
5186
+ /**
5187
+ * Generate hook output from pre-computed result (avoids double execution)
5188
+ */
5189
+ generateHookOutputFromResult(result: SessionEndResult): ClaudeCodeHookOutput;
5190
+ /**
5191
+ * Force compression regardless of settings
5192
+ */
5193
+ forceCompress(sessionId?: string): Promise<SessionEndResult>;
5194
+ /**
5195
+ * Preview what would be compressed (dry-run)
5196
+ */
5197
+ preview(sessionId?: string): Promise<{
5198
+ wouldCompress: boolean;
5199
+ observationCount: number;
5200
+ estimatedLearnings: number;
5201
+ observationTypes: Record<string, number>;
5202
+ }>;
5203
+ /**
5204
+ * Get configuration
5205
+ */
5206
+ getConfig(): MemoryHookConfig;
5207
+ /**
5208
+ * Update configuration
5209
+ */
5210
+ setConfig(config: Partial<MemoryHookConfig>): void;
5211
+ }
5212
+ /**
5213
+ * Create a session end hook handler
5214
+ */
5215
+ declare function createSessionEndHook(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>): SessionEndHook;
5216
+ /**
5217
+ * Execute session end hook (standalone function for scripts)
5218
+ */
5219
+ declare function executeSessionEndHook(projectPath: string, context: SessionEndContext, config?: Partial<MemoryHookConfig>): Promise<SessionEndResult>;
5220
+
5221
+ /**
5222
+ * Memory Hook Manager
5223
+ *
5224
+ * Unified manager for all memory lifecycle hooks.
5225
+ * Provides a single interface for session memory management.
5226
+ */
5227
+
5228
+ /**
5229
+ * Memory Hook Manager
5230
+ *
5231
+ * Coordinates all memory hooks for a session.
5232
+ */
5233
+ declare class MemoryHookManager {
5234
+ private config;
5235
+ private projectPath;
5236
+ private agent;
5237
+ private sessionId;
5238
+ private startedAt;
5239
+ private sessionStartHook;
5240
+ private postToolUseHook;
5241
+ private sessionEndHook;
5242
+ private stats;
5243
+ constructor(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>, sessionId?: string);
5244
+ /**
5245
+ * Handle session start
5246
+ */
5247
+ onSessionStart(workingDirectory?: string): Promise<ClaudeCodeHookOutput>;
5248
+ /**
5249
+ * Handle tool use
5250
+ */
5251
+ onToolUse(event: ToolUseEvent): Promise<ClaudeCodeHookOutput>;
5252
+ /**
5253
+ * Handle session end
5254
+ */
5255
+ onSessionEnd(toolCallsCount?: number): Promise<ClaudeCodeHookOutput>;
5256
+ /**
5257
+ * Record an error manually
5258
+ */
5259
+ recordError(error: string, context: string): Observation;
5260
+ /**
5261
+ * Record a solution manually
5262
+ */
5263
+ recordSolution(solution: string, context: string, relatedError?: string): Observation;
5264
+ /**
5265
+ * Record a decision manually
5266
+ */
5267
+ recordDecision(decision: string, options: string[], context: string): Observation;
5268
+ /**
5269
+ * Record file changes manually
5270
+ */
5271
+ recordFileChange(files: string[], action: string, context: string): Observation;
5272
+ /**
5273
+ * Force compression (regardless of threshold)
5274
+ */
5275
+ forceCompress(): Promise<Learning[]>;
5276
+ /**
5277
+ * Preview compression without executing
5278
+ */
5279
+ previewCompression(): Promise<{
5280
+ wouldCompress: boolean;
5281
+ observationCount: number;
5282
+ estimatedLearnings: number;
5283
+ observationTypes: Record<string, number>;
5284
+ }>;
5285
+ /**
5286
+ * Get current stats
5287
+ */
5288
+ getStats(): MemoryHookStats;
5289
+ /**
5290
+ * Get session ID
5291
+ */
5292
+ getSessionId(): string;
5293
+ /**
5294
+ * Get observation count
5295
+ */
5296
+ getObservationCount(): number;
5297
+ /**
5298
+ * Get pending errors
5299
+ */
5300
+ getPendingErrors(): Array<{
5301
+ error: string;
5302
+ timestamp: string;
5303
+ }>;
5304
+ /**
5305
+ * Get configuration
5306
+ */
5307
+ getConfig(): MemoryHookConfig;
5308
+ /**
5309
+ * Update configuration
5310
+ */
5311
+ setConfig(config: Partial<MemoryHookConfig>): void;
5312
+ /**
5313
+ * Check if auto-compression should trigger
5314
+ */
5315
+ private checkAutoCompression;
5316
+ /**
5317
+ * Generate Claude Code hooks.json configuration
5318
+ */
5319
+ generateClaudeCodeHooksConfig(): Record<string, unknown>;
5320
+ }
5321
+ /**
5322
+ * Create a memory hook manager
5323
+ */
5324
+ declare function createMemoryHookManager(projectPath: string, agent?: AgentType, config?: Partial<MemoryHookConfig>, sessionId?: string): MemoryHookManager;
5325
+
5326
+ /**
5327
+ * CLAUDE.md Auto-Updater
5328
+ *
5329
+ * Automatically updates CLAUDE.md with learnings from memory.
5330
+ * Populates the LEARNED section with high-effectiveness insights.
5331
+ */
5332
+
5333
+ /**
5334
+ * Update options
5335
+ */
5336
+ interface ClaudeMdUpdateOptions {
5337
+ minEffectiveness?: number;
5338
+ maxLearnings?: number;
5339
+ includeGlobal?: boolean;
5340
+ preserveManualEntries?: boolean;
5341
+ sectionTitle?: string;
5342
+ addTimestamp?: boolean;
5343
+ }
5344
+ /**
5345
+ * Parsed CLAUDE.md structure
5346
+ */
5347
+ interface ParsedClaudeMd {
5348
+ content: string;
5349
+ sections: Map<string, {
5350
+ start: number;
5351
+ end: number;
5352
+ content: string;
5353
+ }>;
5354
+ hasLearnedSection: boolean;
5355
+ learnedSectionContent?: string;
5356
+ learnedSectionRange?: {
5357
+ start: number;
5358
+ end: number;
5359
+ };
5360
+ }
5361
+ /**
5362
+ * Update result
5363
+ */
5364
+ interface ClaudeMdUpdateResult {
5365
+ updated: boolean;
5366
+ path: string;
5367
+ learningsAdded: number;
5368
+ learningSummaries: string[];
5369
+ previousLearnings: number;
5370
+ }
5371
+ /**
5372
+ * CLAUDE.md Updater
5373
+ *
5374
+ * Manages automatic updates to CLAUDE.md with learnings from memory.
5375
+ */
5376
+ declare class ClaudeMdUpdater {
5377
+ private projectPath;
5378
+ private claudeMdPath;
5379
+ constructor(projectPath: string, claudeMdPath?: string);
5380
+ /**
5381
+ * Parse CLAUDE.md to extract structure
5382
+ */
5383
+ parse(): ParsedClaudeMd;
5384
+ /**
5385
+ * Get learnings to add to CLAUDE.md
5386
+ */
5387
+ getLearningsForClaudeMd(options?: ClaudeMdUpdateOptions): Learning[];
5388
+ /**
5389
+ * Format learnings as CLAUDE.md LEARNED section
5390
+ */
5391
+ formatLearnedSection(learnings: Learning[], options?: ClaudeMdUpdateOptions): string;
5392
+ /**
5393
+ * Update CLAUDE.md with learnings
5394
+ */
5395
+ update(options?: ClaudeMdUpdateOptions): ClaudeMdUpdateResult;
5396
+ /**
5397
+ * Preview update without writing
5398
+ */
5399
+ preview(options?: ClaudeMdUpdateOptions): {
5400
+ learnings: Learning[];
5401
+ formattedSection: string;
5402
+ wouldUpdate: boolean;
5403
+ };
5404
+ /**
5405
+ * Check if CLAUDE.md exists
5406
+ */
5407
+ exists(): boolean;
5408
+ /**
5409
+ * Get CLAUDE.md path
5410
+ */
5411
+ getPath(): string;
5412
+ private categorizeLearnings;
5413
+ private formatLearningTitle;
5414
+ private extractSummary;
5415
+ private extractManualEntries;
5416
+ private combineWithManualEntries;
5417
+ private countLearnings;
5418
+ private createNewClaudeMd;
5419
+ }
5420
+ /**
5421
+ * Create a CLAUDE.md updater
5422
+ */
5423
+ declare function createClaudeMdUpdater(projectPath: string, claudeMdPath?: string): ClaudeMdUpdater;
5424
+ /**
5425
+ * Update CLAUDE.md with learnings (standalone function)
5426
+ */
5427
+ declare function updateClaudeMd(projectPath: string, options?: ClaudeMdUpdateOptions): ClaudeMdUpdateResult;
5428
+ /**
5429
+ * Sync global CLAUDE.md with global learnings
5430
+ */
5431
+ declare function syncGlobalClaudeMd(options?: ClaudeMdUpdateOptions): ClaudeMdUpdateResult;
5432
+
5433
+ /**
5434
+ * Progressive Disclosure System
5435
+ *
5436
+ * Implements 3-layer token-optimized retrieval for efficient context usage:
5437
+ * - Layer 1: Index (titles, timestamps, IDs) - ~50-100 tokens
5438
+ * - Layer 2: Timeline (context around observations) - ~200 tokens
5439
+ * - Layer 3: Details (full content) - ~500-1000 tokens
5440
+ */
5441
+ /**
5442
+ * Index entry (Layer 1)
5443
+ * Minimal information for fast scanning
5444
+ */
5445
+ interface IndexEntry {
5446
+ id: string;
5447
+ title: string;
5448
+ timestamp: string;
5449
+ tags: string[];
5450
+ scope: 'project' | 'global';
5451
+ effectiveness?: number;
5452
+ useCount: number;
5453
+ }
5454
+ /**
5455
+ * Timeline entry (Layer 2)
5456
+ * Context around the learning with activity timeline
5457
+ */
5458
+ interface TimelineEntry extends IndexEntry {
5459
+ excerpt: string;
5460
+ frameworks?: string[];
5461
+ patterns?: string[];
5462
+ sourceCount: number;
5463
+ lastUsed?: string;
5464
+ activityTimeline?: ActivityPoint[];
5465
+ }
5466
+ /**
5467
+ * Activity point for timeline
5468
+ */
5469
+ interface ActivityPoint {
5470
+ timestamp: string;
5471
+ type: 'created' | 'used' | 'updated' | 'rated';
5472
+ description?: string;
5473
+ }
5474
+ /**
5475
+ * Details entry (Layer 3)
5476
+ * Full content with all metadata
5477
+ */
5478
+ interface DetailsEntry extends TimelineEntry {
5479
+ content: string;
5480
+ sourceObservations?: string[];
5481
+ metadata?: Record<string, unknown>;
5482
+ }
5483
+ /**
5484
+ * Progressive disclosure options
5485
+ */
5486
+ interface ProgressiveDisclosureOptions {
5487
+ includeGlobal?: boolean;
5488
+ minRelevance?: number;
5489
+ maxResults?: number;
5490
+ }
5491
+ /**
5492
+ * Progressive Disclosure Manager
5493
+ *
5494
+ * Provides 3-layer retrieval for optimal token usage.
5495
+ */
5496
+ declare class ProgressiveDisclosureManager {
5497
+ private projectStore;
5498
+ private globalStore;
5499
+ constructor(projectPath: string, projectName?: string);
5500
+ /**
5501
+ * Layer 1: Get index of all learnings
5502
+ * Minimal tokens (~50-100 per entry)
5503
+ */
5504
+ getIndex(options?: ProgressiveDisclosureOptions): IndexEntry[];
5505
+ /**
5506
+ * Layer 2: Get timeline entries for specific IDs
5507
+ * Medium tokens (~200 per entry)
5508
+ */
5509
+ getTimeline(ids: string[], options?: ProgressiveDisclosureOptions): TimelineEntry[];
5510
+ /**
5511
+ * Layer 3: Get full details for specific IDs
5512
+ * High tokens (~500-1000 per entry)
5513
+ */
5514
+ getDetails(ids: string[], options?: ProgressiveDisclosureOptions): DetailsEntry[];
5515
+ /**
5516
+ * Smart retrieval with automatic layer selection
5517
+ * Uses minimum tokens needed to satisfy the query.
5518
+ *
5519
+ * Note: tokensUsed reflects cumulative cost of the retrieval operation
5520
+ * (index lookup + any deeper layer fetches), not just the returned entries.
5521
+ * This is intentional since progressive disclosure requires scanning
5522
+ * the index first before fetching timeline/details.
5523
+ */
5524
+ smartRetrieve(query: string, tokenBudget?: number, options?: ProgressiveDisclosureOptions): {
5525
+ layer: 1 | 2 | 3;
5526
+ entries: IndexEntry[] | TimelineEntry[] | DetailsEntry[];
5527
+ tokensUsed: number;
5528
+ tokensRemaining: number;
5529
+ };
5530
+ /**
5531
+ * Estimate tokens for a given layer and count
5532
+ */
5533
+ estimateTokens(layer: 1 | 2 | 3, count: number): number;
5534
+ /**
5535
+ * Format entries for injection
5536
+ */
5537
+ formatForInjection(entries: IndexEntry[] | TimelineEntry[] | DetailsEntry[], layer: 1 | 2 | 3): string;
5538
+ private toIndexEntry;
5539
+ private toTimelineEntry;
5540
+ private toDetailsEntry;
5541
+ private buildActivityTimeline;
5542
+ private findRelevantIds;
5543
+ }
5544
+ /**
5545
+ * Create a progressive disclosure manager
5546
+ */
5547
+ declare function createProgressiveDisclosureManager(projectPath: string, projectName?: string): ProgressiveDisclosureManager;
5548
+
4864
5549
  /**
4865
5550
  * Team Collaboration Types
4866
5551
  */
@@ -5517,7 +6202,7 @@ interface MethodologyManagerOptions {
5517
6202
  /**
5518
6203
  * Result of pack/skill installation
5519
6204
  */
5520
- interface InstallResult {
6205
+ interface InstallResult$1 {
5521
6206
  /** Whether installation succeeded */
5522
6207
  success: boolean;
5523
6208
  /** Installed items */
@@ -5693,15 +6378,15 @@ declare class MethodologyManager {
5693
6378
  /**
5694
6379
  * Install a methodology pack
5695
6380
  */
5696
- installPack(packName: string): Promise<InstallResult>;
6381
+ installPack(packName: string): Promise<InstallResult$1>;
5697
6382
  /**
5698
6383
  * Install all available packs
5699
6384
  */
5700
- installAllPacks(): Promise<InstallResult>;
6385
+ installAllPacks(): Promise<InstallResult$1>;
5701
6386
  /**
5702
6387
  * Install a single skill by ID
5703
6388
  */
5704
- installSkill(skillId: string): Promise<InstallResult>;
6389
+ installSkill(skillId: string): Promise<InstallResult$1>;
5705
6390
  /**
5706
6391
  * Uninstall a pack
5707
6392
  */
@@ -7907,7 +8592,7 @@ interface GeneratedSkill {
7907
8592
  reasoning: string;
7908
8593
  }
7909
8594
  interface AIConfig {
7910
- provider: 'anthropic' | 'openai' | 'none';
8595
+ provider: 'anthropic' | 'openai' | 'google' | 'ollama' | 'openrouter' | 'mock' | 'none';
7911
8596
  apiKey?: string;
7912
8597
  model?: string;
7913
8598
  maxTokens?: number;
@@ -7976,14 +8661,717 @@ declare abstract class BaseAIProvider implements AIProvider {
7976
8661
  protected parseGenerateResponse(response: string): GeneratedSkill;
7977
8662
  }
7978
8663
 
7979
- declare class MockAIProvider extends BaseAIProvider {
8664
+ type ProviderName = 'anthropic' | 'openai' | 'google' | 'ollama' | 'openrouter' | 'mock';
8665
+ interface ProviderConfig {
8666
+ apiKey?: string;
8667
+ model?: string;
8668
+ baseUrl?: string;
8669
+ maxTokens?: number;
8670
+ temperature?: number;
8671
+ }
8672
+ interface GenerationContext {
8673
+ expertise: string;
8674
+ contextChunks: ContextChunk[];
8675
+ clarifications: ClarificationAnswer[];
8676
+ targetAgents: string[];
8677
+ composedFrom?: string[];
8678
+ memoryPatterns?: MemoryPattern[];
8679
+ }
8680
+ interface ContextChunk {
8681
+ source: 'docs' | 'codebase' | 'skills' | 'memory';
8682
+ content: string;
8683
+ relevance: number;
8684
+ metadata?: Record<string, unknown>;
8685
+ }
8686
+ interface ClarificationQuestion {
8687
+ id: string;
8688
+ question: string;
8689
+ options?: string[];
8690
+ type: 'text' | 'select' | 'confirm' | 'multiselect';
8691
+ context?: string;
8692
+ }
8693
+ interface ClarificationAnswer {
8694
+ questionId: string;
8695
+ answer: string | string[] | boolean;
8696
+ }
8697
+ interface MemoryPattern {
8698
+ category: string;
8699
+ pattern: string;
8700
+ confidence: number;
8701
+ }
8702
+ interface GeneratedSkillResult extends GeneratedSkill {
8703
+ composedFrom?: string[];
8704
+ agentVariants?: Record<string, string>;
8705
+ }
8706
+ interface WizardContext {
8707
+ expertise: string;
8708
+ contextSources: ContextSourceConfig[];
8709
+ composableSkills?: ComposableSkill[];
8710
+ clarifications: ClarificationAnswer[];
8711
+ targetAgents: string[];
8712
+ memoryPersonalization: boolean;
8713
+ gatheredContext?: ContextChunk[];
8714
+ }
8715
+ interface ContextSourceConfig {
8716
+ name: 'docs' | 'codebase' | 'skills' | 'memory';
8717
+ enabled: boolean;
8718
+ weight?: number;
8719
+ }
8720
+ interface ComposableSkill {
7980
8721
  name: string;
7981
- search(query: string, skills: SearchableSkill[]): Promise<AISearchResult[]>;
7982
- generateSkill(example: SkillExample): Promise<GeneratedSkill>;
8722
+ description?: string;
8723
+ content: string;
8724
+ trustScore: number;
8725
+ relevance: number;
8726
+ source?: string;
8727
+ }
8728
+ interface LLMProvider {
8729
+ readonly name: ProviderName;
8730
+ readonly displayName: string;
8731
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8732
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8733
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8734
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8735
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8736
+ chat(messages: ChatMessage[]): Promise<string>;
8737
+ isConfigured(): boolean;
8738
+ }
8739
+ interface SearchResult {
8740
+ skill: SearchableSkill;
8741
+ relevance: number;
8742
+ reasoning: string;
8743
+ }
8744
+ interface ChatMessage {
8745
+ role: 'system' | 'user' | 'assistant';
8746
+ content: string;
8747
+ }
8748
+ interface ProviderCapabilities {
8749
+ maxContextLength: number;
8750
+ supportsStreaming: boolean;
8751
+ supportsJSON: boolean;
8752
+ supportsFunctionCalling: boolean;
8753
+ }
8754
+
8755
+ declare class MockAIProvider implements LLMProvider, AIProvider {
8756
+ readonly name: ProviderName;
8757
+ readonly displayName = "Mock Provider";
8758
+ isConfigured(): boolean;
8759
+ chat(messages: ChatMessage[]): Promise<string>;
8760
+ generateSkill(contextOrExample: GenerationContext | SkillExample): Promise<GeneratedSkillResult>;
8761
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8762
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8763
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[] & AISearchResult[]>;
8764
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
7983
8765
  private buildReasoning;
7984
8766
  private generateName;
7985
8767
  private generateTags;
7986
8768
  private generateContent;
8769
+ private generateContentFromExample;
8770
+ }
8771
+
8772
+ declare class AnthropicProvider implements LLMProvider {
8773
+ readonly name: "anthropic";
8774
+ readonly displayName = "Claude (Anthropic)";
8775
+ private apiKey;
8776
+ private model;
8777
+ private maxTokens;
8778
+ private temperature;
8779
+ constructor(config?: ProviderConfig);
8780
+ isConfigured(): boolean;
8781
+ chat(messages: ChatMessage[]): Promise<string>;
8782
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8783
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8784
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8785
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8786
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8787
+ private buildSearchPrompt;
8788
+ private buildGeneratePrompt;
8789
+ private parseSearchResponse;
8790
+ private parseGenerateResponse;
8791
+ private makeRequest;
8792
+ private buildGenerationSystemPrompt;
8793
+ private buildGenerationUserPrompt;
8794
+ private parseGeneratedSkillResult;
8795
+ private parseJSON;
8796
+ private getAgentConstraints;
8797
+ }
8798
+
8799
+ declare class OpenAIProvider implements LLMProvider {
8800
+ readonly name: "openai";
8801
+ readonly displayName = "GPT-4 (OpenAI)";
8802
+ private apiKey;
8803
+ private model;
8804
+ private maxTokens;
8805
+ private temperature;
8806
+ private baseUrl;
8807
+ constructor(config?: ProviderConfig);
8808
+ isConfigured(): boolean;
8809
+ chat(messages: ChatMessage[]): Promise<string>;
8810
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8811
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8812
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8813
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8814
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8815
+ private makeRequest;
8816
+ private buildGenerationSystemPrompt;
8817
+ private buildGenerationUserPrompt;
8818
+ private parseGeneratedSkillResult;
8819
+ private parseJSON;
8820
+ private getAgentConstraints;
8821
+ }
8822
+
8823
+ declare class GoogleProvider implements LLMProvider {
8824
+ readonly name: "google";
8825
+ readonly displayName = "Gemini (Google)";
8826
+ private apiKey;
8827
+ private model;
8828
+ private maxTokens;
8829
+ private temperature;
8830
+ constructor(config?: ProviderConfig);
8831
+ isConfigured(): boolean;
8832
+ chat(messages: ChatMessage[]): Promise<string>;
8833
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8834
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8835
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8836
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8837
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8838
+ private makeRequest;
8839
+ private buildGenerationSystemPrompt;
8840
+ private buildGenerationUserPrompt;
8841
+ private parseGeneratedSkillResult;
8842
+ private parseJSON;
8843
+ private getAgentConstraints;
8844
+ }
8845
+
8846
+ declare class OllamaProvider implements LLMProvider {
8847
+ readonly name: "ollama";
8848
+ readonly displayName = "Ollama (Local)";
8849
+ private baseUrl;
8850
+ private model;
8851
+ private temperature;
8852
+ constructor(config?: ProviderConfig);
8853
+ isConfigured(): boolean;
8854
+ chat(messages: ChatMessage[]): Promise<string>;
8855
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8856
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8857
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8858
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8859
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8860
+ private makeRequest;
8861
+ private buildGenerationSystemPrompt;
8862
+ private buildGenerationUserPrompt;
8863
+ private parseGeneratedSkillResult;
8864
+ private parseJSON;
8865
+ }
8866
+
8867
+ declare class OpenRouterProvider implements LLMProvider {
8868
+ readonly name: "openrouter";
8869
+ readonly displayName = "OpenRouter (100+ Models)";
8870
+ private apiKey;
8871
+ private model;
8872
+ private maxTokens;
8873
+ private temperature;
8874
+ constructor(config?: ProviderConfig);
8875
+ isConfigured(): boolean;
8876
+ chat(messages: ChatMessage[]): Promise<string>;
8877
+ generateSkill(context: GenerationContext): Promise<GeneratedSkillResult>;
8878
+ generateClarifications(context: WizardContext): Promise<ClarificationQuestion[]>;
8879
+ optimizeForAgent(skillContent: string, agentId: string): Promise<string>;
8880
+ search(query: string, skills: SearchableSkill[]): Promise<SearchResult[]>;
8881
+ generateFromExample(example: SkillExample): Promise<GeneratedSkill>;
8882
+ private makeRequest;
8883
+ private buildGenerationSystemPrompt;
8884
+ private buildGenerationUserPrompt;
8885
+ private parseGeneratedSkillResult;
8886
+ private parseJSON;
8887
+ private getAgentConstraints;
8888
+ }
8889
+
8890
+ interface ProviderDetectionResult {
8891
+ provider: ProviderName;
8892
+ displayName: string;
8893
+ configured: boolean;
8894
+ envVar?: string;
8895
+ }
8896
+ declare function detectProviders(): ProviderDetectionResult[];
8897
+ declare function getDefaultProvider(): ProviderName;
8898
+ declare function createProvider(providerName?: ProviderName, config?: ProviderConfig): LLMProvider;
8899
+ declare function isProviderConfigured(providerName: ProviderName): boolean;
8900
+ declare function getProviderEnvVars(): Record<ProviderName, string[]>;
8901
+ declare function getProviderModels(providerName: ProviderName): string[];
8902
+ declare class ProviderFactory {
8903
+ private static instance;
8904
+ private providerCache;
8905
+ static getInstance(): ProviderFactory;
8906
+ getProvider(providerName?: ProviderName, config?: ProviderConfig): LLMProvider;
8907
+ clearCache(): void;
8908
+ getDetectedProviders(): ProviderDetectionResult[];
8909
+ getDefaultProviderName(): ProviderName;
8910
+ isConfigured(providerName: ProviderName): boolean;
8911
+ }
8912
+
8913
+ declare class DocsSource implements ContextSource {
8914
+ readonly name: "docs";
8915
+ readonly displayName = "Documentation (Context7)";
8916
+ private libraryCache;
8917
+ fetch(query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
8918
+ isAvailable(): Promise<boolean>;
8919
+ private resolveLibraries;
8920
+ private queryDocs;
8921
+ private getKnownLibrary;
8922
+ private getFallbackDocs;
8923
+ private fallbackSearch;
8924
+ private extractKeywords;
8925
+ private formatDocChunk;
8926
+ }
8927
+
8928
+ declare class CodebaseSource implements ContextSource {
8929
+ readonly name: "codebase";
8930
+ readonly displayName = "Local Codebase";
8931
+ private projectPath;
8932
+ constructor(projectPath: string);
8933
+ fetch(query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
8934
+ isAvailable(): Promise<boolean>;
8935
+ private analyzeCodebase;
8936
+ private detectFrameworks;
8937
+ private detectTestingSetup;
8938
+ private extractConfigs;
8939
+ private findRelevantCode;
8940
+ private findFilesRecursive;
8941
+ private calculateRelevance;
8942
+ private extractRelevantSection;
8943
+ private isRelevant;
8944
+ private formatPattern;
8945
+ }
8946
+
8947
+ declare class SkillsSource implements ContextSource {
8948
+ readonly name: "skills";
8949
+ readonly displayName = "Marketplace Skills";
8950
+ fetch(query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
8951
+ isAvailable(): Promise<boolean>;
8952
+ searchSkills(query: string, limit?: number): Promise<Array<{
8953
+ skill: SkillSummary;
8954
+ score: number;
8955
+ }>>;
8956
+ private scoreSkills;
8957
+ private calculateScore;
8958
+ private extractKeywords;
8959
+ private formatSkill;
8960
+ }
8961
+
8962
+ declare class MemorySource implements ContextSource {
8963
+ readonly name: "memory";
8964
+ readonly displayName = "Memory & Learnings";
8965
+ private projectPath;
8966
+ constructor(projectPath: string);
8967
+ fetch(query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
8968
+ isAvailable(): Promise<boolean>;
8969
+ getMemoryPatterns(keywords: string[]): Promise<MemoryPattern[]>;
8970
+ private getLearnedEntries;
8971
+ private parseLearnedSection;
8972
+ private getRelevantObservations;
8973
+ private filterRelevant;
8974
+ private calculateRelevance;
8975
+ private extractKeywords;
8976
+ private formatObservation;
8977
+ private findClaudeMd;
8978
+ }
8979
+
8980
+ interface ContextSource {
8981
+ readonly name: 'docs' | 'codebase' | 'skills' | 'memory';
8982
+ readonly displayName: string;
8983
+ fetch(query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
8984
+ isAvailable(): Promise<boolean>;
8985
+ }
8986
+ interface ContextFetchOptions {
8987
+ maxChunks?: number;
8988
+ minRelevance?: number;
8989
+ projectPath?: string;
8990
+ }
8991
+ interface AggregatedContext {
8992
+ chunks: ContextChunk[];
8993
+ sources: SourceSummary[];
8994
+ totalTokensEstimate: number;
8995
+ }
8996
+ interface SourceSummary {
8997
+ name: string;
8998
+ chunkCount: number;
8999
+ status: 'success' | 'error' | 'unavailable';
9000
+ error?: string;
9001
+ }
9002
+ interface ContextEngineOptions {
9003
+ projectPath?: string;
9004
+ maxTotalChunks?: number;
9005
+ defaultSources?: ContextSourceConfig[];
9006
+ }
9007
+ declare class ContextEngine {
9008
+ private sources;
9009
+ private projectPath;
9010
+ private maxTotalChunks;
9011
+ constructor(options?: ContextEngineOptions);
9012
+ gather(expertise: string, sourceConfigs?: ContextSourceConfig[]): Promise<AggregatedContext>;
9013
+ gatherFromSource(sourceName: string, query: string, options?: ContextFetchOptions): Promise<ContextChunk[]>;
9014
+ getAvailableSources(): string[];
9015
+ checkSourceAvailability(): Promise<Record<string, boolean>>;
9016
+ private getDefaultSourceConfigs;
9017
+ private estimateTokens;
9018
+ }
9019
+
9020
+ interface SkillAnalysis {
9021
+ sections: SkillSection[];
9022
+ patterns: string[];
9023
+ complexity: number;
9024
+ estimatedTokens: number;
9025
+ }
9026
+ interface SkillSection {
9027
+ title: string;
9028
+ content: string;
9029
+ type: 'instruction' | 'example' | 'rule' | 'metadata' | 'trigger';
9030
+ importance: number;
9031
+ }
9032
+ declare class SkillAnalyzer {
9033
+ private skillsSource;
9034
+ constructor();
9035
+ findComposableSkills(query: string, limit?: number): Promise<ComposableSkill[]>;
9036
+ analyzeSkillContent(content: string): {
9037
+ sections: string[];
9038
+ patterns: string[];
9039
+ complexity: number;
9040
+ };
9041
+ parseSkillContent(content: string): SkillAnalysis;
9042
+ findOverlappingSections(skills: ComposableSkill[]): Map<string, string[]>;
9043
+ private classifySectionType;
9044
+ private calculateSectionImportance;
9045
+ private extractPatterns;
9046
+ private calculateComplexity;
9047
+ private normalizeTitle;
9048
+ private generateSkillContent;
9049
+ private estimateTrustScore;
9050
+ }
9051
+
9052
+ interface MergeResult {
9053
+ content: string;
9054
+ report: MergeReport;
9055
+ }
9056
+ declare class SkillMerger {
9057
+ private analyzer;
9058
+ constructor(_provider?: LLMProvider);
9059
+ merge(skills: ComposableSkill[], options?: ComposeOptions): Promise<MergeResult>;
9060
+ private groupSections;
9061
+ private sortSectionGroups;
9062
+ private mergeSectionGroup;
9063
+ private intelligentMerge;
9064
+ private normalizeTitle;
9065
+ private normalizeLine;
9066
+ private isHeading;
9067
+ private getSectionTypePriority;
9068
+ private cleanupContent;
9069
+ }
9070
+
9071
+ interface ComposeOptions {
9072
+ preserveAll?: boolean;
9073
+ conflictStrategy?: 'first' | 'merge' | 'best';
9074
+ targetAgent?: string;
9075
+ }
9076
+ interface ComposedSkill {
9077
+ name: string;
9078
+ description: string;
9079
+ content: string;
9080
+ sourceSkills: string[];
9081
+ mergeReport: MergeReport;
9082
+ }
9083
+ interface MergeReport {
9084
+ sectionsPreserved: number;
9085
+ conflictsResolved: number;
9086
+ duplicatesRemoved: number;
9087
+ totalSections: number;
9088
+ }
9089
+ interface CompositionResult {
9090
+ skill: ComposedSkill;
9091
+ warnings: string[];
9092
+ suggestions: string[];
9093
+ }
9094
+ declare class SkillComposer {
9095
+ private analyzer;
9096
+ private merger;
9097
+ private provider?;
9098
+ constructor(provider?: LLMProvider);
9099
+ findComposable(query: string, limit?: number): Promise<ComposableSkill[]>;
9100
+ analyzeSkill(skillContent: string): Promise<{
9101
+ sections: string[];
9102
+ patterns: string[];
9103
+ complexity: number;
9104
+ }>;
9105
+ compose(skills: ComposableSkill[], options?: ComposeOptions): Promise<CompositionResult>;
9106
+ composeWithAI(skills: ComposableSkill[], expertise: string, options?: ComposeOptions): Promise<CompositionResult>;
9107
+ private generateComposedName;
9108
+ private generateComposedDescription;
9109
+ private findCommonWords;
9110
+ private extractThemes;
9111
+ }
9112
+
9113
+ interface AgentConstraints {
9114
+ maxContextLength: number;
9115
+ supportsMarkdown: boolean;
9116
+ supportsMCP: boolean;
9117
+ supportsTools: boolean;
9118
+ format: string;
9119
+ fileExtension: string;
9120
+ }
9121
+ interface OptimizationResult {
9122
+ content: string;
9123
+ agentId: string;
9124
+ changes: string[];
9125
+ estimatedTokens: number;
9126
+ }
9127
+ declare class AgentOptimizer {
9128
+ private provider?;
9129
+ constructor(provider?: LLMProvider);
9130
+ optimizeForAgent(content: string, agentId: string): Promise<OptimizationResult>;
9131
+ optimizeForMultipleAgents(content: string, agentIds: string[]): Promise<Map<string, OptimizationResult>>;
9132
+ getConstraints(agentId: string): AgentConstraints;
9133
+ getSupportedAgents(): string[];
9134
+ private truncateContent;
9135
+ private splitIntoSections;
9136
+ private prioritizeSections;
9137
+ private getSectionPriority;
9138
+ private removeMCPReferences;
9139
+ private removeToolReferences;
9140
+ private convertToCursorFormat;
9141
+ private condenseContent;
9142
+ }
9143
+
9144
+ interface CompatibilityScore {
9145
+ score: number;
9146
+ grade: 'A' | 'B' | 'C' | 'D' | 'F';
9147
+ limitations: string[];
9148
+ optimizations: string[];
9149
+ }
9150
+ interface CompatibilityMatrix {
9151
+ [agentId: string]: CompatibilityScore;
9152
+ }
9153
+ interface SkillRequirements {
9154
+ estimatedTokens: number;
9155
+ usesMCP: boolean;
9156
+ usesTools: boolean;
9157
+ hasCodeExamples: boolean;
9158
+ hasMarkdown: boolean;
9159
+ complexity: 'low' | 'medium' | 'high';
9160
+ }
9161
+ declare class CompatibilityScorer {
9162
+ private optimizer;
9163
+ constructor();
9164
+ scoreSkillForAgent(skillContent: string, agentId: string): CompatibilityScore;
9165
+ generateMatrix(skillContent: string, agentIds?: string[]): CompatibilityMatrix;
9166
+ getBestAgents(skillContent: string, limit?: number): Array<{
9167
+ agentId: string;
9168
+ score: CompatibilityScore;
9169
+ }>;
9170
+ analyzeSkillRequirements(content: string): SkillRequirements;
9171
+ private calculateScore;
9172
+ private assessComplexity;
9173
+ private scoreToGrade;
9174
+ }
9175
+
9176
+ interface TrustScore {
9177
+ score: number;
9178
+ grade: 'trusted' | 'review' | 'caution';
9179
+ breakdown: TrustBreakdown;
9180
+ warnings: string[];
9181
+ recommendations: string[];
9182
+ }
9183
+ interface TrustBreakdown {
9184
+ clarity: number;
9185
+ boundaries: number;
9186
+ specificity: number;
9187
+ safety: number;
9188
+ }
9189
+ interface TrustScoreOptions {
9190
+ weights?: Partial<TrustBreakdown>;
9191
+ strictMode?: boolean;
9192
+ }
9193
+ declare class TrustScorer {
9194
+ private weights;
9195
+ private strictMode;
9196
+ constructor(options?: TrustScoreOptions);
9197
+ score(skillContent: string): TrustScore;
9198
+ private scoreClarity;
9199
+ private scoreBoundaries;
9200
+ private scoreSpecificity;
9201
+ private scoreSafety;
9202
+ private generateRecommendations;
9203
+ private scoreToGrade;
9204
+ }
9205
+ declare function quickTrustScore(content: string): number;
9206
+
9207
+ interface InjectionDetectionResult {
9208
+ isClean: boolean;
9209
+ threats: InjectionThreat[];
9210
+ riskLevel: 'none' | 'low' | 'medium' | 'high' | 'critical';
9211
+ sanitizedContent?: string;
9212
+ }
9213
+ interface InjectionThreat {
9214
+ type: InjectionType;
9215
+ description: string;
9216
+ location: {
9217
+ start: number;
9218
+ end: number;
9219
+ };
9220
+ severity: 'low' | 'medium' | 'high' | 'critical';
9221
+ pattern: string;
9222
+ }
9223
+ type InjectionType = 'instruction_override' | 'role_manipulation' | 'unicode_tricks' | 'delimiter_injection' | 'context_escape' | 'hidden_text' | 'recursive_prompt';
9224
+ interface InjectionPattern {
9225
+ type: InjectionType;
9226
+ pattern: RegExp;
9227
+ description: string;
9228
+ severity: InjectionThreat['severity'];
9229
+ }
9230
+ declare class InjectionDetector {
9231
+ private patterns;
9232
+ private customPatterns;
9233
+ constructor();
9234
+ detect(content: string): InjectionDetectionResult;
9235
+ sanitize(content: string, threats?: InjectionThreat[]): string;
9236
+ addCustomPattern(pattern: InjectionPattern): void;
9237
+ removeCustomPattern(type: InjectionType): void;
9238
+ private calculateRiskLevel;
9239
+ private escapeRegex;
9240
+ }
9241
+ declare function quickInjectionCheck(content: string): boolean;
9242
+ declare function sanitizeSkillContent(content: string): string;
9243
+
9244
+ type WizardStep = 'expertise' | 'context-sources' | 'composition' | 'clarification' | 'review' | 'install';
9245
+ interface WizardState {
9246
+ currentStep: WizardStep;
9247
+ expertise: string;
9248
+ contextSources: ContextSourceConfig[];
9249
+ composableSkills: ComposableSkill[];
9250
+ clarifications: ClarificationAnswer[];
9251
+ targetAgents: string[];
9252
+ memoryPersonalization: boolean;
9253
+ gatheredContext: ContextChunk[];
9254
+ generatedQuestions: ClarificationQuestion[];
9255
+ generatedSkill: GeneratedSkillPreview | null;
9256
+ trustScore: TrustScore | null;
9257
+ compatibilityMatrix: CompatibilityMatrix | null;
9258
+ installResults: InstallResult[];
9259
+ errors: WizardError[];
9260
+ }
9261
+ interface GeneratedSkillPreview {
9262
+ name: string;
9263
+ description: string;
9264
+ content: string;
9265
+ tags: string[];
9266
+ confidence: number;
9267
+ composedFrom: string[];
9268
+ estimatedTokens: number;
9269
+ }
9270
+ interface InstallResult {
9271
+ agentId: string;
9272
+ success: boolean;
9273
+ path: string;
9274
+ optimized: boolean;
9275
+ changes: string[];
9276
+ error?: string;
9277
+ }
9278
+ interface WizardError {
9279
+ step: WizardStep;
9280
+ message: string;
9281
+ recoverable: boolean;
9282
+ }
9283
+ interface WizardOptions {
9284
+ projectPath?: string;
9285
+ provider?: string;
9286
+ model?: string;
9287
+ skipClarification?: boolean;
9288
+ skipComposition?: boolean;
9289
+ autoInstall?: boolean;
9290
+ }
9291
+ interface StepResult<T = unknown> {
9292
+ success: boolean;
9293
+ data?: T;
9294
+ error?: string;
9295
+ nextStep?: WizardStep;
9296
+ }
9297
+ interface WizardEvents {
9298
+ onStepChange?: (step: WizardStep, state: WizardState) => void;
9299
+ onProgress?: (message: string, progress?: number) => void;
9300
+ onError?: (error: WizardError) => void;
9301
+ onComplete?: (state: WizardState) => void;
9302
+ }
9303
+ declare function createInitialState(): WizardState;
9304
+ declare function getStepOrder(): WizardStep[];
9305
+ declare function getNextStep(current: WizardStep): WizardStep | null;
9306
+ declare function getPreviousStep(current: WizardStep): WizardStep | null;
9307
+ declare function getStepNumber(step: WizardStep): number;
9308
+ declare function getTotalSteps(): number;
9309
+
9310
+ interface ClarificationOptions {
9311
+ maxQuestions?: number;
9312
+ includeCodeExamples?: boolean;
9313
+ focusAreas?: string[];
9314
+ }
9315
+ declare class ClarificationGenerator {
9316
+ private provider;
9317
+ constructor(provider: LLMProvider);
9318
+ generate(context: WizardContext, options?: ClarificationOptions): Promise<ClarificationQuestion[]>;
9319
+ private filterRelevantQuestions;
9320
+ private getFallbackQuestions;
9321
+ refineQuestions(questions: ClarificationQuestion[], answers: Record<string, string | string[] | boolean>, _context: WizardContext): Promise<ClarificationQuestion[]>;
9322
+ }
9323
+ declare function createQuestionFromPattern(id: string, pattern: 'framework' | 'coverage' | 'style' | 'scope', customOptions?: string[]): ClarificationQuestion;
9324
+
9325
+ interface StepHandler<TInput, TOutput> {
9326
+ validate(input: TInput, state: WizardState): string | null;
9327
+ execute(input: TInput, state: WizardState, options: StepExecutionOptions): Promise<StepResult<TOutput>>;
9328
+ }
9329
+ interface StepExecutionOptions {
9330
+ provider?: LLMProvider;
9331
+ projectPath: string;
9332
+ wizardOptions: WizardOptions;
9333
+ }
9334
+ declare const STEP_HANDLERS: Record<WizardStep, StepHandler<unknown, unknown>>;
9335
+
9336
+ interface WizardConfig {
9337
+ provider?: LLMProvider;
9338
+ projectPath?: string;
9339
+ options?: WizardOptions;
9340
+ events?: WizardEvents;
9341
+ }
9342
+ declare class SkillWizard {
9343
+ private state;
9344
+ private provider;
9345
+ private projectPath;
9346
+ private options;
9347
+ private events;
9348
+ constructor(config?: WizardConfig);
9349
+ getState(): Readonly<WizardState>;
9350
+ getCurrentStep(): WizardStep;
9351
+ getProgress(): {
9352
+ current: number;
9353
+ total: number;
9354
+ percentage: number;
9355
+ };
9356
+ executeStep<T>(input: T): Promise<StepResult<unknown>>;
9357
+ setExpertise(expertise: string): Promise<StepResult<unknown>>;
9358
+ setContextSources(sources: ContextSourceConfig[]): Promise<StepResult<unknown>>;
9359
+ selectSkillsForComposition(skills: ComposableSkill[], searchQuery?: string): Promise<StepResult<unknown>>;
9360
+ answerClarifications(answers: ClarificationAnswer[]): Promise<StepResult<unknown>>;
9361
+ generateSkill(): Promise<StepResult<unknown>>;
9362
+ approveSkill(): Promise<StepResult<unknown>>;
9363
+ installToAgents(agentIds: string[]): Promise<StepResult<unknown>>;
9364
+ goBack(): boolean;
9365
+ canGoBack(): boolean;
9366
+ reset(): void;
9367
+ getGeneratedSkill(): GeneratedSkillPreview | null;
9368
+ setTargetAgents(agentIds: string[]): void;
9369
+ setMemoryPersonalization(enabled: boolean): void;
9370
+ updateSkillContent(content: string): void;
9371
+ private emitStepChange;
9372
+ private emitProgress;
9373
+ private emitError;
9374
+ private emitComplete;
7987
9375
  }
7988
9376
 
7989
9377
  type AuditEventType = 'skill.install' | 'skill.uninstall' | 'skill.sync' | 'skill.translate' | 'skill.execute' | 'team.create' | 'team.share' | 'team.import' | 'team.sync' | 'bundle.create' | 'bundle.export' | 'bundle.import' | 'plugin.install' | 'plugin.uninstall' | 'plugin.enable' | 'plugin.disable' | 'workflow.execute' | 'ai.search' | 'ai.generate';
@@ -10437,7 +11825,7 @@ interface HybridSearchOptions {
10437
11825
  rrfK?: number;
10438
11826
  positionAwareBlending?: boolean;
10439
11827
  }
10440
- interface HybridSearchResult extends SearchResult {
11828
+ interface HybridSearchResult extends SearchResult$1 {
10441
11829
  hybridScore: number;
10442
11830
  vectorSimilarity?: number;
10443
11831
  keywordScore?: number;
@@ -10868,4 +12256,4 @@ declare class SkillInjector {
10868
12256
  cacheStats(): CacheStats;
10869
12257
  }
10870
12258
 
10871
- export { AGENT_CLI_CONFIGS, AGENT_CONFIG, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, AGENT_INSTRUCTION_TEMPLATES, AGENT_SKILL_FORMATS, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type AdvancedScore, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentDirectoryConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, type AgentInstructionTemplate, AgentLocation, AgentMetadata, AgentPermissionMode, type AgentPipeline, type AgentSkillFormat, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, BUILTIN_PIPELINES, BaseAIProvider, type BenchmarkResult, BitbucketProvider, type BundleManifest, CATEGORY_RELEVANCE_PROMPT, CATEGORY_TAXONOMY, CIConfig, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CacheBackend, type CacheOptions, type CacheStats, type CanonicalAgent, type CanonicalSkill, type CategoryMapping, type CategoryScore, type CategoryStats, type CheckpointHandler, type CheckpointResponse, type ClarityScore, type CloneOptions, type CloneResult, CodeConvention, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, CommunityRegistry, type CompletenessResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ConnectorAnalysis, type ConnectorCategory, ConnectorCategorySchema, type ConnectorConfig, ConnectorConfigSchema, type ConnectorMapping, ConnectorMappingSchema, type ConnectorPlaceholder, ConnectorPlaceholderSchema, type ContextCategory, type ContextExportOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, ContextSync, type ContextSyncOptions, CopilotTranslator, type CrossAgentSkill, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CHUNKING_CONFIG, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_GUIDELINE_CONFIG, DEFAULT_HYBRID_CONFIG, DEFAULT_LEARNING_CONFIG, DEFAULT_MEMORY_CONFIG, DEFAULT_PROFILE_CONFIG, DEFAULT_REASONING_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, DockerConfig, EXPLANATION_PROMPT, EmbeddingService, type EmbeddingServiceStats, EnvConfig, type EvolvingPattern, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionContext, type ExecutionFlow, type ExecutionFlowConfig, ExecutionFlowSchema, type ExecutionHistory, ExecutionManager, type ExecutionMode, type ExecutionModeConfig, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStep, ExecutionStepSchema, type ExecutionStepStatus, ExecutionStepStatusSchema, type ExecutionStrategy, type ExecutionTaskStatus, type ExpandedQuery, type ExplainedMatch, type ExplainedMatchDetails, type ExplainedRecommendation, type ExplainedScoredSkill, type ExternalRegistry, type ExternalSkill, type FederatedResult, FederatedSearch, type FeedbackResult, type FetchedSkill, type FlowMetrics, type FlowSummary, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedInstruction, type GeneratedSkill, type GitAnalysisOptions, type GitAnalysisResult, type GitAnalysisSummary, type GitCommit, type GitFileChange, GitHubProvider, GitHubSkillRegistry, GitLabProvider, GitProvider, type GitProviderAdapter, type Guideline, type GuidelineCategory, type GuidelineConfig, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, type HybridSearchOptions, HybridSearchPipeline, type HybridSearchResponse, type HybridSearchResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexBuildCallback, type IndexBuildProgress, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type LLMResponse, type LearnedPattern, type LearnedSkillOutput, type Learning, type LearningConfig, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, type LocalModelConfig, LocalModelConfigSchema, LocalModelManager, LocalProvider, MARKETPLACE_CACHE_FILE, MODEL_REGISTRY, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCache, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, type MemoryStatus, type MemorySummary, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ModeCapabilities, type ModeDetectionResult, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationType, type OperationalProfile, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, PackageManager, type ParseOptions, type ParsedSkillContent, type PatternCategory, type PatternDomain, type PatternExtractionResult, type PatternGenerateOptions, type PatternStore, type PipelineStage, type PlaceholderMatch, type PlaceholderReplacement, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, PrimerAnalysis, PrimerAnalyzer, PrimerGenerator, PrimerLanguage, type PrimerOptions, type PrimerResult, type ProfileConfig, type ProfileName, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, ProjectStructure, type ProviderPlugin, type QualityScore, QueryExpander, type RRFInput, type RRFRanking, type RankableSkill, type RankedSkill, type RankerResult, RateLimitError, type ReasoningCacheEntry, type ReasoningConfig, ReasoningEngine, type ReasoningEngineStats, type ReasoningPrompt, type ReasoningProvider, ReasoningProviderSchema, type ReasoningRecommendOptions, ReasoningRecommendationEngine, type ReasoningRecommendationResult, type RecommendHybridSearchOptions, type RecommendHybridSearchResult, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type RelatedSkillResult, type RelationType, RelevanceRanker, type RerankerInput, type RerankerOutput, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, type RuntimeSkillSource, SEARCH_PLANNING_PROMPT, SESSION_FILE, SKILL_DISCOVERY_PATHS, SKILL_MATCH_PROMPT, STANDARD_PLACEHOLDERS, type ScoreBreakdown, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchPlan, type SearchResult, type SearchableSkill, type SessionContext, type SessionDecision, type SessionFile, SessionManager, type SessionMessage, type SessionState, type SessionSummary, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillBundle, type SkillChunk, SkillChunkSchema, type SkillEmbedding, type SkillEntry, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillGraph, type SkillHook, type SkillIndex, SkillInjector, SkillLocation, SkillMdTranslator, SkillMetadata, type SkillNode, SkillPreferences, type SkillReference, type SkillRelation, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, type SkillToSubagentOptions, type SkillTranslationOptions, type SkillTranslationResult, type SkillTree, SkillTreeSchema, SkillTriggerEngine, SkillkitConfig, type SkillsManifest, type SlashCommand, type SlashCommandResult, type SpecificityScore, type StepDefinition, type StepExecutor, type StepType, type StructureScore, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_CATEGORY, TAG_TO_TECH, TASK_TEMPLATES, TREE_FILE_NAME, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, TreeGenerator, type TreeGeneratorOptions, type TreeNode, TreeNodeSchema, type TreePath, type TreeReasoningResult, type TreeSearchQuery, type TreeSearchResult, type TreeTraversalStep, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VectorSearchResult, VectorStore, type VectorStoreConfig, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, type WellKnownIndex, WellKnownProvider, type WellKnownSkill, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, addCustomGuideline, addCustomProfile, addPattern, addToManifest, agentExists, analyzeForPrimer, analyzeGitHistory, analyzePlaceholders, analyzePrimer, analyzeProject, applyConnectorConfig, applyPositionAwareBlending, approvePattern, benchmarkSkill, buildCategoryRelevancePrompt, buildExplanationPrompt, buildSearchPlanPrompt, buildSkillGraph, buildSkillIndex, buildSkillMatchPrompt, calculateBaseSkillsUrl, calculatePercentile, canTranslate, clusterPatterns, compareTreeVersions, computeRRFScore, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createConnectorConfig, createContextLoader, createContextManager, createContextSync, createEmbeddingService, createExecutionEngine, createExecutionManager, createHookManager, createHybridSearchPipeline, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createModeAwareExecutor, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createQueryExpander, createReasoningEngine, createReasoningRecommendationEngine, createRecommendationEngine, createRuleBasedCompressor, createSessionFile, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createVectorStore, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, deserializeGraph, deserializeTree, detectCategory, detectExecutionMode, detectPlaceholders, detectProvider, detectSkillFormat, disableGuideline, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverReferences, discoverSkills, dryRunExecutor, enableGuideline, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executeWithAgent, expandQuerySimple, exportBundle, exportPatternsAsJson, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractJsonFromResponse, extractPatternsFromSession, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, findSkillsByRelationType, findSkillsInCategory, formatBytes, formatSkillAsPrompt, fromCanonicalAgent, fuseWithRRF, generateComparisonNotes, generateConnectorsMarkdown, generateManifestFromInstalled, generatePatternReport, generatePrimer, generatePrimerForAgent, generateRecommendations, generateSkillFromPatterns, generateSkillTree, generateSkillsConfig, generateSubagentFromSkill, generateWellKnownIndex, generateWellKnownStructure, getActiveProfile, getAgentCLIConfig, getAgentConfigFile, getAgentConfigPath, getAgentDirectoryConfig, getAgentFilename, getAgentFormat, getAgentSkillsDir, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllCategories, getAllGuidelines, getAllPatterns, getAllProfiles, getAllProviders, getAllSkillsDirs, getApprovedPatterns, getAvailableCLIAgents, getBuiltinGuidelines, getBuiltinPacksDir, getBuiltinPipeline, getBuiltinPipelines, getBuiltinProfiles, getCICDTemplate, getCategoryStats, getConfigFile, getConfigFormat, getDefaultConfigPath, getDefaultModelDir, getDefaultStorePath, getEnabledGuidelineContent, getEnabledGuidelines, getEvolvingPattern, getEvolvingPatternsByDomain, getExecutionStrategy, getGitCommits, getGlobalConfigPath, getGlobalSkillsDir, getGrade, getGuideline, getGuidelineContent, getGuidelinesByCategory, getHighConfidencePatterns, getIndexStatus, getInstallDir, getLowConfidencePatterns, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getModeDescription, getMostRecentSession, getMostUsedPatterns, getPattern, getPatternStats, getPatternsByCategory, getPlaceholderInfo, getProfile, getProfileContext, getProfileNames, getProjectConfigPath, getProvider, getQualityGrade, getRankFromScore, getRecentBugFixes, getRecentRefactors, getRelatedSkills, getSearchDirs, getSkillPath, getSkillsDir, getStackTags, getStandaloneAlternative, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, hybridSearch, importBundle, importPatternsFromJson, initContext, initManifest, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isBuiltinGuideline, isBuiltinProfile, isGitUrl, isGuidelineEnabled, isHighQuality, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listSessions, listWorkflows, loadAgentMetadata, loadAndConvertSkill, loadConfig, loadContext, loadGuidelineConfig, loadIndex, loadLearningConfig, loadManifest, loadMetadata, loadPatternStore, loadPlugin, loadPluginsFromDirectory, loadProfileConfig, loadSessionFile, loadSkillMetadata, loadTree, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, mergePatterns, mergeRankings, normalizeScores, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSkillContentToCanonical, parseSkillMd, parseSkillToCanonical, parseSource, parseWorkflow, readAgentContent, readSkillContent, recordFailure, recordSuccess, rejectPattern, removeCustomGuideline, removeCustomProfile, removeFromManifest, removePattern, replacePlaceholders, requireCapability, requireEnhancedMode, runTestSuite, saveConfig, saveGeneratedSkill, saveGuidelineConfig, saveIndex, saveLearningConfig, saveManifest, savePatternStore, saveProfileConfig, saveSessionFile, saveSkillMetadata, saveTree, saveWorkflow, serializeGraph, serializeTree, serializeWorkflow, setActiveProfile, setSkillEnabled, shellExecutor, skillMdTranslator, skillToSubagent, stripFrontmatter, suggestMappingsFromMcp, supportsAutoDiscovery, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translateSkillToAgent, translateSkillToAll, translatorRegistry, treeToMarkdown, treeToText, updateSessionFile, validateAgent, validateBuiltinPacks, validateCategoryScore, validateConnectorConfig, validatePackDirectory, validatePackManifest, validatePlan, validateSearchPlan, validateSkill, validateSkillContent, validateWorkflow, weightedCombine, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };
12259
+ export { AGENT_CLI_CONFIGS, AGENT_CONFIG, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, AGENT_INSTRUCTION_TEMPLATES, AGENT_SKILL_FORMATS, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type ActivityPoint, type AdvancedScore, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentConstraints, type AgentDirectoryConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, type AgentInstructionTemplate, AgentLocation, AgentMetadata, AgentOptimizer, AgentPermissionMode, type AgentPipeline, type AgentSkillFormat, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AggregatedContext, AnthropicProvider, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, type AutoCompressCallback, BUILTIN_PIPELINES, BaseAIProvider, type BenchmarkResult, BitbucketProvider, type BundleManifest, CATEGORY_RELEVANCE_PROMPT, CATEGORY_TAXONOMY, CIConfig, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CacheBackend, type CacheOptions, type CacheStats, type CanonicalAgent, type CanonicalSkill, type CategoryMapping, type CategoryScore, type CategoryStats, type ChatMessage, type CheckpointHandler, type CheckpointResponse, type ClarificationAnswer, ClarificationGenerator, type ClarificationQuestion, type ClarityScore, type ClaudeCodeHookEvent, type ClaudeCodeHookOutput, type ClaudeMdUpdateOptions, type ClaudeMdUpdateResult, ClaudeMdUpdater, type CloneOptions, type CloneResult, CodeConvention, CodebaseSource, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, CommunityRegistry, type CompatibilityMatrix, type CompatibilityScore, CompatibilityScorer, type CompletenessResult, type ComposableSkill, type ComposeOptions, type ComposedSkill, type CompositionResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ConnectorAnalysis, type ConnectorCategory, ConnectorCategorySchema, type ConnectorConfig, ConnectorConfigSchema, type ConnectorMapping, ConnectorMappingSchema, type ConnectorPlaceholder, ConnectorPlaceholderSchema, type ContextCategory, type ContextChunk, ContextEngine, type ContextEngineOptions, type ContextExportOptions, type ContextFetchOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, type ContextSource, type ContextSourceConfig, ContextSync, type ContextSyncOptions, CopilotTranslator, type CrossAgentSkill, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CHUNKING_CONFIG, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_GUIDELINE_CONFIG, DEFAULT_HYBRID_CONFIG, DEFAULT_LEARNING_CONFIG, DEFAULT_MEMORY_CONFIG, DEFAULT_MEMORY_HOOK_CONFIG, DEFAULT_PROFILE_CONFIG, DEFAULT_REASONING_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, type DetailsEntry, Detection, type DetectionSource, type DiscoveredSkill, DockerConfig, DocsSource, EXPLANATION_PROMPT, EmbeddingService, type EmbeddingServiceStats, EnvConfig, type EvolvingPattern, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionContext, type ExecutionFlow, type ExecutionFlowConfig, ExecutionFlowSchema, type ExecutionHistory, ExecutionManager, type ExecutionMode, type ExecutionModeConfig, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStep, ExecutionStepSchema, type ExecutionStepStatus, ExecutionStepStatusSchema, type ExecutionStrategy, type ExecutionTaskStatus, type ExpandedQuery, type ExplainedMatch, type ExplainedMatchDetails, type ExplainedRecommendation, type ExplainedScoredSkill, type ExternalRegistry, type ExternalSkill, type FederatedResult, FederatedSearch, type FeedbackResult, type FetchedSkill, type FlowMetrics, type FlowSummary, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedInstruction, type GeneratedSkill, type GeneratedSkillPreview, type GeneratedSkillResult, type GenerationContext, type GitAnalysisOptions, type GitAnalysisResult, type GitAnalysisSummary, type GitCommit, type GitFileChange, GitHubProvider, GitHubSkillRegistry, GitLabProvider, GitProvider, type GitProviderAdapter, GoogleProvider, type Guideline, type GuidelineCategory, type GuidelineConfig, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, type HybridSearchOptions, HybridSearchPipeline, type HybridSearchResponse, type HybridSearchResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexBuildCallback, type IndexBuildProgress, type IndexEntry, type IndexSource, type InjectedMemory, type InjectionDetectionResult, InjectionDetector, type InjectionMode, type InjectionOptions, type InjectionResult, type InjectionThreat, type InjectionType, type InstallOptions, type InstallResult$1 as InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type LLMProvider, type LLMResponse, type SearchResult as LLMSearchResult, type LearnedPattern, type LearnedSkillOutput, type Learning, type LearningConfig, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, type LocalModelConfig, LocalModelConfigSchema, LocalModelManager, LocalProvider, MARKETPLACE_CACHE_FILE, MODEL_REGISTRY, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCache, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryHookConfig, MemoryHookManager, type MemoryHookStats, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPattern, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, MemorySource, type MemoryStatus, type MemorySummary, type MergeReport, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ModeCapabilities, type ModeDetectionResult, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationStoreOptions, type ObservationType, OllamaProvider, OpenAIProvider, OpenRouterProvider, type OperationalProfile, type OptimizationResult, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, PackageManager, type ParseOptions, type ParsedClaudeMd, type ParsedSkillContent, type PatternCategory, type PatternDomain, type PatternExtractionResult, type PatternGenerateOptions, type PatternStore, type PipelineStage, type PlaceholderMatch, type PlaceholderReplacement, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, PostToolUseHook, PrimerAnalysis, PrimerAnalyzer, PrimerGenerator, PrimerLanguage, type PrimerOptions, type PrimerResult, type ProfileConfig, type ProfileName, ProgressiveDisclosureManager, type ProgressiveDisclosureOptions, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, ProjectStructure, type ProviderCapabilities, type ProviderConfig, type ProviderDetectionResult, ProviderFactory, type ProviderName, type ProviderPlugin, type QualityScore, QueryExpander, type RRFInput, type RRFRanking, type RankableSkill, type RankedSkill, type RankerResult, RateLimitError, type ReasoningCacheEntry, type ReasoningConfig, ReasoningEngine, type ReasoningEngineStats, type ReasoningPrompt, type ReasoningProvider, ReasoningProviderSchema, type ReasoningRecommendOptions, ReasoningRecommendationEngine, type ReasoningRecommendationResult, type RecommendHybridSearchOptions, type RecommendHybridSearchResult, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type RelatedSkillResult, type RelationType, RelevanceRanker, type RerankerInput, type RerankerOutput, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, type RuntimeSkillSource, SEARCH_PLANNING_PROMPT, SESSION_FILE, SKILL_DISCOVERY_PATHS, SKILL_MATCH_PROMPT, STANDARD_PLACEHOLDERS, STEP_HANDLERS, type ScoreBreakdown, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchPlan, type SearchResult$1 as SearchResult, type SearchableSkill, type SessionContext, type SessionDecision, type SessionEndContext, SessionEndHook, type SessionEndResult, type SessionFile, SessionManager, type SessionMessage, type SessionStartContext, SessionStartHook, type SessionStartResult, type SessionState, type SessionSummary, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillAnalyzer, SkillBundle, type SkillChunk, SkillChunkSchema, SkillComposer, type SkillEmbedding, type SkillEntry, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillGraph, type SkillHook, type SkillIndex, SkillInjector, SkillLocation, SkillMdTranslator, SkillMerger, SkillMetadata, type SkillNode, SkillPreferences, type SkillReference, type SkillRelation, type SkillRequirements, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, type SkillToSubagentOptions, type SkillTranslationOptions, type SkillTranslationResult, type SkillTree, SkillTreeSchema, SkillTriggerEngine, SkillWizard, SkillkitConfig, type SkillsManifest, SkillsSource, type SlashCommand, type SlashCommandResult, type SourceSummary, type SpecificityScore, type StepDefinition, type StepExecutor, type StepResult, type StepType, type StructureScore, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_CATEGORY, TAG_TO_TECH, TASK_TEMPLATES, TREE_FILE_NAME, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, type TimelineEntry, type ToolUseCaptureResult, type ToolUseEvent, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, TreeGenerator, type TreeGeneratorOptions, type TreeNode, TreeNodeSchema, type TreePath, type TreeReasoningResult, type TreeSearchQuery, type TreeSearchResult, type TreeTraversalStep, type TriggerEngineOptions, type TrustBreakdown, type TrustScore, type TrustScoreOptions, TrustScorer, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VectorSearchResult, VectorStore, type VectorStoreConfig, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, type WellKnownIndex, WellKnownProvider, type WellKnownSkill, WindsurfTranslator, type WizardContext, type WizardError, type WizardEvents, type InstallResult as WizardInstallResult, type WizardOptions, type WizardState, type WizardStep, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, addCustomGuideline, addCustomProfile, addPattern, addToManifest, agentExists, analyzeForPrimer, analyzeGitHistory, analyzePlaceholders, analyzePrimer, analyzeProject, applyConnectorConfig, applyPositionAwareBlending, approvePattern, benchmarkSkill, buildCategoryRelevancePrompt, buildExplanationPrompt, buildSearchPlanPrompt, buildSkillGraph, buildSkillIndex, buildSkillMatchPrompt, calculateBaseSkillsUrl, calculatePercentile, canTranslate, clusterPatterns, compareTreeVersions, computeRRFScore, copilotTranslator, createAPIBasedCompressor, createClaudeMdUpdater, createCommandGenerator, createCommandRegistry, createConnectorConfig, createContextLoader, createContextManager, createContextSync, createEmbeddingService, createExecutionEngine, createExecutionManager, createHookManager, createHybridSearchPipeline, createInitialState, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryHookManager, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createModeAwareExecutor, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createPostToolUseHook, createProgressiveDisclosureManager, createProvider, createQueryExpander, createQuestionFromPattern, createReasoningEngine, createReasoningRecommendationEngine, createRecommendationEngine, createRuleBasedCompressor, createSessionEndHook, createSessionFile, createSessionManager, createSessionStartHook, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createVectorStore, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, deserializeGraph, deserializeTree, detectCategory, detectExecutionMode, detectPlaceholders, detectProvider, detectProviders, detectSkillFormat, disableGuideline, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverReferences, discoverSkills, dryRunExecutor, enableGuideline, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executePostToolUseHook, executeSessionEndHook, executeSessionStartHook, executeWithAgent, expandQuerySimple, exportBundle, exportPatternsAsJson, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractJsonFromResponse, extractPatternsFromSession, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, findSkillsByRelationType, findSkillsInCategory, formatBytes, formatSkillAsPrompt, fromCanonicalAgent, fuseWithRRF, generateComparisonNotes, generateConnectorsMarkdown, generateManifestFromInstalled, generatePatternReport, generatePrimer, generatePrimerForAgent, generateRecommendations, generateSkillFromPatterns, generateSkillTree, generateSkillsConfig, generateSubagentFromSkill, generateWellKnownIndex, generateWellKnownStructure, getActiveProfile, getAgentCLIConfig, getAgentConfigFile, getAgentConfigPath, getAgentDirectoryConfig, getAgentFilename, getAgentFormat, getAgentSkillsDir, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllCategories, getAllGuidelines, getAllPatterns, getAllProfiles, getAllProviders, getAllSkillsDirs, getApprovedPatterns, getAvailableCLIAgents, getBuiltinGuidelines, getBuiltinPacksDir, getBuiltinPipeline, getBuiltinPipelines, getBuiltinProfiles, getCICDTemplate, getCategoryStats, getConfigFile, getConfigFormat, getDefaultConfigPath, getDefaultModelDir, getDefaultProvider, getDefaultStorePath, getEnabledGuidelineContent, getEnabledGuidelines, getEvolvingPattern, getEvolvingPatternsByDomain, getExecutionStrategy, getGitCommits, getGlobalConfigPath, getGlobalSkillsDir, getGrade, getGuideline, getGuidelineContent, getGuidelinesByCategory, getHighConfidencePatterns, getIndexStatus, getInstallDir, getLowConfidencePatterns, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getModeDescription, getMostRecentSession, getMostUsedPatterns, getNextStep, getPattern, getPatternStats, getPatternsByCategory, getPlaceholderInfo, getPreviousStep, getProfile, getProfileContext, getProfileNames, getProjectConfigPath, getProvider, getProviderEnvVars, getProviderModels, getQualityGrade, getRankFromScore, getRecentBugFixes, getRecentRefactors, getRelatedSkills, getSearchDirs, getSkillPath, getSkillsDir, getStackTags, getStandaloneAlternative, getStepNumber, getStepOrder, getSupportedTranslationAgents, getTechTags, getTotalSteps, globalMemoryDirectoryExists, hybridSearch, importBundle, importPatternsFromJson, initContext, initManifest, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isBuiltinGuideline, isBuiltinProfile, isGitUrl, isGuidelineEnabled, isHighQuality, isIndexStale, isLocalPath, isPathInside, isProviderConfigured, listCICDTemplates, listSessions, listWorkflows, loadAgentMetadata, loadAndConvertSkill, loadConfig, loadContext, loadGuidelineConfig, loadIndex, loadLearningConfig, loadManifest, loadMetadata, loadPatternStore, loadPlugin, loadPluginsFromDirectory, loadProfileConfig, loadSessionFile, loadSkillMetadata, loadTree, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, mergePatterns, mergeRankings, normalizeScores, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSkillContentToCanonical, parseSkillMd, parseSkillToCanonical, parseSource, parseWorkflow, quickInjectionCheck, quickTrustScore, readAgentContent, readSkillContent, recordFailure, recordSuccess, rejectPattern, removeCustomGuideline, removeCustomProfile, removeFromManifest, removePattern, replacePlaceholders, requireCapability, requireEnhancedMode, runTestSuite, sanitizeSkillContent, saveConfig, saveGeneratedSkill, saveGuidelineConfig, saveIndex, saveLearningConfig, saveManifest, savePatternStore, saveProfileConfig, saveSessionFile, saveSkillMetadata, saveTree, saveWorkflow, serializeGraph, serializeTree, serializeWorkflow, setActiveProfile, setSkillEnabled, shellExecutor, skillMdTranslator, skillToSubagent, stripFrontmatter, suggestMappingsFromMcp, supportsAutoDiscovery, supportsSlashCommands, syncGlobalClaudeMd, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translateSkillToAgent, translateSkillToAll, translatorRegistry, treeToMarkdown, treeToText, updateClaudeMd, updateSessionFile, validateAgent, validateBuiltinPacks, validateCategoryScore, validateConnectorConfig, validatePackDirectory, validatePackManifest, validatePlan, validateSearchPlan, validateSkill, validateSkillContent, validateWorkflow, weightedCombine, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };