@skillkit/core 1.8.1 → 1.10.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 +1223 -26
- package/dist/index.js +5768 -1480
- package/dist/index.js.map +1 -1
- package/package.json +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const AgentType: z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "amp", "clawdbot", "droid", "github-copilot", "goose", "kilo", "kiro-cli", "roo", "trae", "windsurf", "universal", "cline", "codebuddy", "commandcode", "continue", "crush", "factory", "mcpjam", "mux", "neovate", "openhands", "pi", "qoder", "qwen", "vercel", "zencoder"]>;
|
|
4
4
|
type AgentType = z.infer<typeof AgentType>;
|
|
5
|
-
declare const GitProvider: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
5
|
+
declare const GitProvider: z.ZodEnum<["github", "gitlab", "bitbucket", "local", "wellknown"]>;
|
|
6
6
|
type GitProvider = z.infer<typeof GitProvider>;
|
|
7
7
|
declare const SkillFrontmatter: z.ZodObject<{
|
|
8
8
|
name: z.ZodString;
|
|
@@ -43,7 +43,7 @@ declare const SkillMetadata: z.ZodObject<{
|
|
|
43
43
|
name: z.ZodString;
|
|
44
44
|
description: z.ZodString;
|
|
45
45
|
source: z.ZodString;
|
|
46
|
-
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
46
|
+
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local", "wellknown"]>;
|
|
47
47
|
subpath: z.ZodOptional<z.ZodString>;
|
|
48
48
|
installedAt: z.ZodString;
|
|
49
49
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -54,7 +54,7 @@ declare const SkillMetadata: z.ZodObject<{
|
|
|
54
54
|
name: string;
|
|
55
55
|
description: string;
|
|
56
56
|
source: string;
|
|
57
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
57
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
58
58
|
installedAt: string;
|
|
59
59
|
enabled: boolean;
|
|
60
60
|
version?: string | undefined;
|
|
@@ -65,7 +65,7 @@ declare const SkillMetadata: z.ZodObject<{
|
|
|
65
65
|
name: string;
|
|
66
66
|
description: string;
|
|
67
67
|
source: string;
|
|
68
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
68
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
69
69
|
installedAt: string;
|
|
70
70
|
version?: string | undefined;
|
|
71
71
|
subpath?: string | undefined;
|
|
@@ -85,7 +85,7 @@ declare const Skill: z.ZodObject<{
|
|
|
85
85
|
name: z.ZodString;
|
|
86
86
|
description: z.ZodString;
|
|
87
87
|
source: z.ZodString;
|
|
88
|
-
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
88
|
+
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local", "wellknown"]>;
|
|
89
89
|
subpath: z.ZodOptional<z.ZodString>;
|
|
90
90
|
installedAt: z.ZodString;
|
|
91
91
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -96,7 +96,7 @@ declare const Skill: z.ZodObject<{
|
|
|
96
96
|
name: string;
|
|
97
97
|
description: string;
|
|
98
98
|
source: string;
|
|
99
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
99
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
100
100
|
installedAt: string;
|
|
101
101
|
enabled: boolean;
|
|
102
102
|
version?: string | undefined;
|
|
@@ -107,7 +107,7 @@ declare const Skill: z.ZodObject<{
|
|
|
107
107
|
name: string;
|
|
108
108
|
description: string;
|
|
109
109
|
source: string;
|
|
110
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
110
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
111
111
|
installedAt: string;
|
|
112
112
|
version?: string | undefined;
|
|
113
113
|
subpath?: string | undefined;
|
|
@@ -126,7 +126,7 @@ declare const Skill: z.ZodObject<{
|
|
|
126
126
|
name: string;
|
|
127
127
|
description: string;
|
|
128
128
|
source: string;
|
|
129
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
129
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
130
130
|
installedAt: string;
|
|
131
131
|
enabled: boolean;
|
|
132
132
|
version?: string | undefined;
|
|
@@ -143,7 +143,7 @@ declare const Skill: z.ZodObject<{
|
|
|
143
143
|
name: string;
|
|
144
144
|
description: string;
|
|
145
145
|
source: string;
|
|
146
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
146
|
+
sourceType: "github" | "gitlab" | "bitbucket" | "local" | "wellknown";
|
|
147
147
|
installedAt: string;
|
|
148
148
|
version?: string | undefined;
|
|
149
149
|
subpath?: string | undefined;
|
|
@@ -417,6 +417,45 @@ declare class LocalProvider implements GitProviderAdapter {
|
|
|
417
417
|
clone(source: string, _targetDir: string, _options?: CloneOptions): Promise<CloneResult>;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
interface WellKnownSkill {
|
|
421
|
+
name: string;
|
|
422
|
+
description?: string;
|
|
423
|
+
files: string[];
|
|
424
|
+
}
|
|
425
|
+
interface WellKnownIndex {
|
|
426
|
+
version?: string;
|
|
427
|
+
skills: WellKnownSkill[];
|
|
428
|
+
}
|
|
429
|
+
declare class WellKnownProvider implements GitProviderAdapter {
|
|
430
|
+
readonly type: GitProvider;
|
|
431
|
+
readonly name = "Well-Known";
|
|
432
|
+
readonly baseUrl = "";
|
|
433
|
+
parseSource(source: string): {
|
|
434
|
+
owner: string;
|
|
435
|
+
repo: string;
|
|
436
|
+
subpath?: string;
|
|
437
|
+
} | null;
|
|
438
|
+
matches(source: string): boolean;
|
|
439
|
+
getCloneUrl(_owner: string, _repo: string): string;
|
|
440
|
+
getSshUrl(_owner: string, _repo: string): string;
|
|
441
|
+
clone(source: string, _targetDir: string, _options?: CloneOptions): Promise<CloneResult>;
|
|
442
|
+
}
|
|
443
|
+
declare function calculateBaseSkillsUrl(foundUrl: string): string;
|
|
444
|
+
declare function generateWellKnownIndex(skills: Array<{
|
|
445
|
+
name: string;
|
|
446
|
+
description?: string;
|
|
447
|
+
files: string[];
|
|
448
|
+
}>): WellKnownIndex;
|
|
449
|
+
declare function generateWellKnownStructure(outputDir: string, skills: Array<{
|
|
450
|
+
name: string;
|
|
451
|
+
description?: string;
|
|
452
|
+
content: string;
|
|
453
|
+
additionalFiles?: Record<string, string>;
|
|
454
|
+
}>): {
|
|
455
|
+
indexPath: string;
|
|
456
|
+
skillPaths: string[];
|
|
457
|
+
};
|
|
458
|
+
|
|
420
459
|
declare function getProvider(type: GitProvider): GitProviderAdapter | undefined;
|
|
421
460
|
declare function getAllProviders(): GitProviderAdapter[];
|
|
422
461
|
declare function detectProvider(source: string): GitProviderAdapter | undefined;
|
|
@@ -2337,6 +2376,208 @@ declare const TAG_TO_TECH: Record<string, string[]>;
|
|
|
2337
2376
|
* Reverse mapping: tech to tags
|
|
2338
2377
|
*/
|
|
2339
2378
|
declare function getTechTags(techName: string): string[];
|
|
2379
|
+
/**
|
|
2380
|
+
* Enhanced recommendation options with reasoning support
|
|
2381
|
+
*/
|
|
2382
|
+
interface ReasoningRecommendOptions extends RecommendOptions {
|
|
2383
|
+
reasoning?: boolean;
|
|
2384
|
+
explainResults?: boolean;
|
|
2385
|
+
useTree?: boolean;
|
|
2386
|
+
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Explained match details
|
|
2389
|
+
*/
|
|
2390
|
+
interface ExplainedMatchDetails {
|
|
2391
|
+
matchedBecause: string[];
|
|
2392
|
+
relevantFor: string[];
|
|
2393
|
+
differentFrom: string[];
|
|
2394
|
+
confidence: 'high' | 'medium' | 'low';
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* Enhanced scored skill with reasoning
|
|
2398
|
+
*/
|
|
2399
|
+
interface ExplainedScoredSkill extends ScoredSkill {
|
|
2400
|
+
explanation?: ExplainedMatchDetails;
|
|
2401
|
+
treePath?: string[];
|
|
2402
|
+
reasoningDetails?: string;
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Enhanced recommendation result with reasoning
|
|
2406
|
+
*/
|
|
2407
|
+
interface ReasoningRecommendationResult extends RecommendationResult {
|
|
2408
|
+
recommendations: ExplainedScoredSkill[];
|
|
2409
|
+
reasoningSummary?: string;
|
|
2410
|
+
searchPlan?: {
|
|
2411
|
+
primaryCategories: string[];
|
|
2412
|
+
secondaryCategories: string[];
|
|
2413
|
+
keywords: string[];
|
|
2414
|
+
strategy: string;
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Hybrid search options for RecommendationEngine
|
|
2419
|
+
*/
|
|
2420
|
+
interface RecommendHybridSearchOptions extends SearchOptions {
|
|
2421
|
+
hybrid?: boolean;
|
|
2422
|
+
enableExpansion?: boolean;
|
|
2423
|
+
enableReranking?: boolean;
|
|
2424
|
+
semanticWeight?: number;
|
|
2425
|
+
keywordWeight?: number;
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
* Hybrid search result with additional metadata for RecommendationEngine
|
|
2429
|
+
*/
|
|
2430
|
+
interface RecommendHybridSearchResult extends SearchResult {
|
|
2431
|
+
hybridScore?: number;
|
|
2432
|
+
vectorSimilarity?: number;
|
|
2433
|
+
keywordScore?: number;
|
|
2434
|
+
rrfScore?: number;
|
|
2435
|
+
expandedTerms?: string[];
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
interface TreeNode {
|
|
2439
|
+
id: string;
|
|
2440
|
+
name: string;
|
|
2441
|
+
description?: string;
|
|
2442
|
+
children: TreeNode[];
|
|
2443
|
+
skills: string[];
|
|
2444
|
+
skillCount: number;
|
|
2445
|
+
depth: number;
|
|
2446
|
+
}
|
|
2447
|
+
declare const TreeNodeSchema: z.ZodType<TreeNode>;
|
|
2448
|
+
declare const SkillTreeSchema: z.ZodObject<{
|
|
2449
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
2450
|
+
generatedAt: z.ZodString;
|
|
2451
|
+
rootNode: z.ZodType<TreeNode, z.ZodTypeDef, TreeNode>;
|
|
2452
|
+
totalSkills: z.ZodNumber;
|
|
2453
|
+
totalCategories: z.ZodNumber;
|
|
2454
|
+
maxDepth: z.ZodNumber;
|
|
2455
|
+
}, "strip", z.ZodTypeAny, {
|
|
2456
|
+
version: number;
|
|
2457
|
+
totalSkills: number;
|
|
2458
|
+
generatedAt: string;
|
|
2459
|
+
rootNode: TreeNode;
|
|
2460
|
+
totalCategories: number;
|
|
2461
|
+
maxDepth: number;
|
|
2462
|
+
}, {
|
|
2463
|
+
totalSkills: number;
|
|
2464
|
+
generatedAt: string;
|
|
2465
|
+
rootNode: TreeNode;
|
|
2466
|
+
totalCategories: number;
|
|
2467
|
+
maxDepth: number;
|
|
2468
|
+
version?: number | undefined;
|
|
2469
|
+
}>;
|
|
2470
|
+
type SkillTree = z.infer<typeof SkillTreeSchema>;
|
|
2471
|
+
interface TreePath {
|
|
2472
|
+
segments: string[];
|
|
2473
|
+
node: TreeNode;
|
|
2474
|
+
}
|
|
2475
|
+
interface CategoryMapping {
|
|
2476
|
+
category: string;
|
|
2477
|
+
subcategories: string[];
|
|
2478
|
+
tags: string[];
|
|
2479
|
+
keywords: string[];
|
|
2480
|
+
}
|
|
2481
|
+
declare const CATEGORY_TAXONOMY: CategoryMapping[];
|
|
2482
|
+
declare const TAG_TO_CATEGORY: Record<string, string[]>;
|
|
2483
|
+
interface TreeGeneratorOptions {
|
|
2484
|
+
maxDepth?: number;
|
|
2485
|
+
minSkillsPerNode?: number;
|
|
2486
|
+
includeEmpty?: boolean;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
declare const ReasoningProviderSchema: z.ZodEnum<["openai", "anthropic", "ollama", "mock"]>;
|
|
2490
|
+
type ReasoningProvider = z.infer<typeof ReasoningProviderSchema>;
|
|
2491
|
+
interface ReasoningConfig {
|
|
2492
|
+
provider: ReasoningProvider;
|
|
2493
|
+
apiKey?: string;
|
|
2494
|
+
model?: string;
|
|
2495
|
+
maxTokens?: number;
|
|
2496
|
+
temperature?: number;
|
|
2497
|
+
baseUrl?: string;
|
|
2498
|
+
}
|
|
2499
|
+
interface TreeSearchQuery {
|
|
2500
|
+
query: string;
|
|
2501
|
+
context?: ProjectProfile;
|
|
2502
|
+
maxResults?: number;
|
|
2503
|
+
minConfidence?: number;
|
|
2504
|
+
searchDepth?: number;
|
|
2505
|
+
}
|
|
2506
|
+
interface TreeTraversalStep {
|
|
2507
|
+
node: TreeNode;
|
|
2508
|
+
reasoning: string;
|
|
2509
|
+
confidence: number;
|
|
2510
|
+
action: 'explore' | 'skip' | 'select';
|
|
2511
|
+
selectedSkills: string[];
|
|
2512
|
+
}
|
|
2513
|
+
interface TreeSearchResult {
|
|
2514
|
+
skill: SkillSummary;
|
|
2515
|
+
path: string[];
|
|
2516
|
+
reasoning: string;
|
|
2517
|
+
confidence: number;
|
|
2518
|
+
relevantSections: string[];
|
|
2519
|
+
matchedKeywords: string[];
|
|
2520
|
+
}
|
|
2521
|
+
interface TreeReasoningResult {
|
|
2522
|
+
query: string;
|
|
2523
|
+
results: TreeSearchResult[];
|
|
2524
|
+
exploredPaths: string[][];
|
|
2525
|
+
reasoning: string;
|
|
2526
|
+
totalNodesVisited: number;
|
|
2527
|
+
processingTimeMs: number;
|
|
2528
|
+
}
|
|
2529
|
+
interface ExplainedMatch {
|
|
2530
|
+
matchedBecause: string[];
|
|
2531
|
+
relevantFor: string[];
|
|
2532
|
+
differentFrom: string[];
|
|
2533
|
+
confidence: 'high' | 'medium' | 'low';
|
|
2534
|
+
}
|
|
2535
|
+
interface ExplainedRecommendation {
|
|
2536
|
+
skill: SkillSummary;
|
|
2537
|
+
score: number;
|
|
2538
|
+
reasoning: ExplainedMatch;
|
|
2539
|
+
treePath: string[];
|
|
2540
|
+
}
|
|
2541
|
+
interface ReasoningPrompt {
|
|
2542
|
+
name: string;
|
|
2543
|
+
template: string;
|
|
2544
|
+
variables: string[];
|
|
2545
|
+
}
|
|
2546
|
+
interface LLMResponse {
|
|
2547
|
+
content: string;
|
|
2548
|
+
tokensUsed: number;
|
|
2549
|
+
model: string;
|
|
2550
|
+
}
|
|
2551
|
+
interface ReasoningCacheEntry {
|
|
2552
|
+
query: string;
|
|
2553
|
+
results: TreeSearchResult[];
|
|
2554
|
+
timestamp: number;
|
|
2555
|
+
ttl: number;
|
|
2556
|
+
}
|
|
2557
|
+
declare const DEFAULT_REASONING_CONFIG: ReasoningConfig;
|
|
2558
|
+
interface CategoryScore {
|
|
2559
|
+
category: string;
|
|
2560
|
+
score: number;
|
|
2561
|
+
reasoning: string;
|
|
2562
|
+
}
|
|
2563
|
+
interface SearchPlan {
|
|
2564
|
+
primaryCategories: string[];
|
|
2565
|
+
secondaryCategories: string[];
|
|
2566
|
+
keywords: string[];
|
|
2567
|
+
filters: {
|
|
2568
|
+
tags?: string[];
|
|
2569
|
+
frameworks?: string[];
|
|
2570
|
+
languages?: string[];
|
|
2571
|
+
};
|
|
2572
|
+
strategy: 'breadth-first' | 'depth-first' | 'targeted';
|
|
2573
|
+
}
|
|
2574
|
+
interface ReasoningEngineStats {
|
|
2575
|
+
totalQueries: number;
|
|
2576
|
+
cacheHits: number;
|
|
2577
|
+
cacheMisses: number;
|
|
2578
|
+
averageProcessingTimeMs: number;
|
|
2579
|
+
averageResultsPerQuery: number;
|
|
2580
|
+
}
|
|
2340
2581
|
|
|
2341
2582
|
/**
|
|
2342
2583
|
* Recommendation engine for matching skills to project profiles
|
|
@@ -2344,7 +2585,16 @@ declare function getTechTags(techName: string): string[];
|
|
|
2344
2585
|
declare class RecommendationEngine {
|
|
2345
2586
|
private weights;
|
|
2346
2587
|
private index;
|
|
2588
|
+
private hybridPipeline;
|
|
2347
2589
|
constructor(weights?: Partial<ScoringWeights>);
|
|
2590
|
+
/**
|
|
2591
|
+
* Initialize hybrid search pipeline for vector + keyword search
|
|
2592
|
+
*/
|
|
2593
|
+
initHybridSearch(): Promise<void>;
|
|
2594
|
+
/**
|
|
2595
|
+
* Check if hybrid search is available
|
|
2596
|
+
*/
|
|
2597
|
+
isHybridSearchAvailable(): boolean;
|
|
2348
2598
|
/**
|
|
2349
2599
|
* Load skill index from cache or generate from local skills
|
|
2350
2600
|
*/
|
|
@@ -2409,6 +2659,19 @@ declare class RecommendationEngine {
|
|
|
2409
2659
|
* Calculate search relevance for a skill
|
|
2410
2660
|
*/
|
|
2411
2661
|
private calculateRelevance;
|
|
2662
|
+
/**
|
|
2663
|
+
* Hybrid search combining vector embeddings and keyword matching
|
|
2664
|
+
*/
|
|
2665
|
+
hybridSearch(options: RecommendHybridSearchOptions): Promise<RecommendHybridSearchResult[]>;
|
|
2666
|
+
/**
|
|
2667
|
+
* Build hybrid search index from skills
|
|
2668
|
+
*/
|
|
2669
|
+
buildHybridIndex(onProgress?: (progress: {
|
|
2670
|
+
phase: string;
|
|
2671
|
+
current: number;
|
|
2672
|
+
total: number;
|
|
2673
|
+
message?: string;
|
|
2674
|
+
}) => void): Promise<void>;
|
|
2412
2675
|
/**
|
|
2413
2676
|
* Check freshness of installed skills against project dependencies
|
|
2414
2677
|
*
|
|
@@ -2423,6 +2686,24 @@ declare class RecommendationEngine {
|
|
|
2423
2686
|
* Create a recommendation engine with default settings
|
|
2424
2687
|
*/
|
|
2425
2688
|
declare function createRecommendationEngine(weights?: Partial<ScoringWeights>): RecommendationEngine;
|
|
2689
|
+
/**
|
|
2690
|
+
* Enhanced Recommendation Engine with reasoning support
|
|
2691
|
+
*/
|
|
2692
|
+
declare class ReasoningRecommendationEngine extends RecommendationEngine {
|
|
2693
|
+
private reasoningEngine;
|
|
2694
|
+
private reasoningConfig?;
|
|
2695
|
+
constructor(weights?: Partial<ScoringWeights>, reasoningConfig?: Partial<ReasoningConfig>);
|
|
2696
|
+
initReasoning(): Promise<void>;
|
|
2697
|
+
recommendWithReasoning(profile: ProjectProfile, options?: ReasoningRecommendOptions): Promise<ReasoningRecommendationResult>;
|
|
2698
|
+
private buildQueryFromProfile;
|
|
2699
|
+
private extractKeywords;
|
|
2700
|
+
getReasoningStats(): ReasoningEngineStats | null;
|
|
2701
|
+
getSkillTree(): SkillTree | null;
|
|
2702
|
+
}
|
|
2703
|
+
/**
|
|
2704
|
+
* Create an enhanced recommendation engine with reasoning support
|
|
2705
|
+
*/
|
|
2706
|
+
declare function createReasoningRecommendationEngine(weights?: Partial<ScoringWeights>): ReasoningRecommendationEngine;
|
|
2426
2707
|
|
|
2427
2708
|
/**
|
|
2428
2709
|
* Known skill repositories to index
|
|
@@ -7822,6 +8103,8 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7822
8103
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7823
8104
|
/** Allowed tools for this agent */
|
|
7824
8105
|
allowedTools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
8106
|
+
/** Tools (Claude Code native format alias for allowedTools) */
|
|
8107
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
7825
8108
|
/** Agent-scoped hooks */
|
|
7826
8109
|
hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7827
8110
|
/** Hook event type */
|
|
@@ -7872,6 +8155,7 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7872
8155
|
'user-invocable'?: boolean | undefined;
|
|
7873
8156
|
'argument-hint'?: string | undefined;
|
|
7874
8157
|
skills?: string[] | undefined;
|
|
8158
|
+
tools?: string | string[] | undefined;
|
|
7875
8159
|
hooks?: {
|
|
7876
8160
|
type: "SessionStart" | "SessionEnd" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStop";
|
|
7877
8161
|
command: string;
|
|
@@ -7893,6 +8177,7 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7893
8177
|
'user-invocable'?: boolean | undefined;
|
|
7894
8178
|
'argument-hint'?: string | undefined;
|
|
7895
8179
|
skills?: string[] | undefined;
|
|
8180
|
+
tools?: string | string[] | undefined;
|
|
7896
8181
|
hooks?: {
|
|
7897
8182
|
type: "SessionStart" | "SessionEnd" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStop";
|
|
7898
8183
|
command: string;
|
|
@@ -8195,6 +8480,46 @@ declare function isAgentCompatible(sourceFormat: AgentFormatCategory, targetForm
|
|
|
8195
8480
|
warnings: string[];
|
|
8196
8481
|
};
|
|
8197
8482
|
|
|
8483
|
+
/**
|
|
8484
|
+
* Skill to Subagent Converter
|
|
8485
|
+
*
|
|
8486
|
+
* Converts SkillKit skills into Claude Code native subagent format (.md files).
|
|
8487
|
+
* Supports both reference mode (skills: [skill-name]) and inline mode (embedded content).
|
|
8488
|
+
*/
|
|
8489
|
+
|
|
8490
|
+
/**
|
|
8491
|
+
* Options for skill-to-subagent conversion
|
|
8492
|
+
*/
|
|
8493
|
+
interface SkillToSubagentOptions {
|
|
8494
|
+
/** Embed full skill content in system prompt (default: false - use skills reference) */
|
|
8495
|
+
inline?: boolean;
|
|
8496
|
+
/** Model to use (sonnet, opus, haiku, inherit) */
|
|
8497
|
+
model?: 'sonnet' | 'opus' | 'haiku' | 'inherit';
|
|
8498
|
+
/** Permission mode for the agent */
|
|
8499
|
+
permissionMode?: AgentPermissionMode;
|
|
8500
|
+
/** Tools the agent is allowed to use */
|
|
8501
|
+
tools?: string[];
|
|
8502
|
+
/** Tools the agent cannot use */
|
|
8503
|
+
disallowedTools?: string[];
|
|
8504
|
+
}
|
|
8505
|
+
/**
|
|
8506
|
+
* Convert a skill to a CanonicalAgent representation
|
|
8507
|
+
*/
|
|
8508
|
+
declare function skillToSubagent(skill: Skill, skillContent: string, options?: SkillToSubagentOptions): CanonicalAgent;
|
|
8509
|
+
/**
|
|
8510
|
+
* Generate the markdown content for a Claude Code subagent from a skill
|
|
8511
|
+
*/
|
|
8512
|
+
declare function generateSubagentFromSkill(skill: Skill, skillContent: string, options?: SkillToSubagentOptions): string;
|
|
8513
|
+
/**
|
|
8514
|
+
* Load a skill and generate subagent content
|
|
8515
|
+
* Convenience function that reads skill content and generates subagent markdown
|
|
8516
|
+
*/
|
|
8517
|
+
declare function loadAndConvertSkill(skill: Skill, options?: SkillToSubagentOptions): {
|
|
8518
|
+
success: boolean;
|
|
8519
|
+
content?: string;
|
|
8520
|
+
error?: string;
|
|
8521
|
+
};
|
|
8522
|
+
|
|
8198
8523
|
/**
|
|
8199
8524
|
* Skill Translator
|
|
8200
8525
|
*
|
|
@@ -8430,14 +8755,14 @@ declare const CodeConvention: z.ZodObject<{
|
|
|
8430
8755
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8431
8756
|
quotes?: "single" | "double" | undefined;
|
|
8432
8757
|
semicolons?: boolean | undefined;
|
|
8433
|
-
trailingCommas?: "
|
|
8758
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8434
8759
|
maxLineLength?: number | undefined;
|
|
8435
8760
|
}, {
|
|
8436
8761
|
namingStyle?: "camelCase" | "snake_case" | "PascalCase" | "kebab-case" | undefined;
|
|
8437
8762
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8438
8763
|
quotes?: "single" | "double" | undefined;
|
|
8439
8764
|
semicolons?: boolean | undefined;
|
|
8440
|
-
trailingCommas?: "
|
|
8765
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8441
8766
|
maxLineLength?: number | undefined;
|
|
8442
8767
|
}>;
|
|
8443
8768
|
type CodeConvention = z.infer<typeof CodeConvention>;
|
|
@@ -8842,14 +9167,14 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
8842
9167
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8843
9168
|
quotes?: "single" | "double" | undefined;
|
|
8844
9169
|
semicolons?: boolean | undefined;
|
|
8845
|
-
trailingCommas?: "
|
|
9170
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8846
9171
|
maxLineLength?: number | undefined;
|
|
8847
9172
|
}, {
|
|
8848
9173
|
namingStyle?: "camelCase" | "snake_case" | "PascalCase" | "kebab-case" | undefined;
|
|
8849
9174
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8850
9175
|
quotes?: "single" | "double" | undefined;
|
|
8851
9176
|
semicolons?: boolean | undefined;
|
|
8852
|
-
trailingCommas?: "
|
|
9177
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8853
9178
|
maxLineLength?: number | undefined;
|
|
8854
9179
|
}>>;
|
|
8855
9180
|
ci: z.ZodOptional<z.ZodObject<{
|
|
@@ -9014,17 +9339,17 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9014
9339
|
hasCompose: boolean;
|
|
9015
9340
|
baseImage?: string | undefined;
|
|
9016
9341
|
} | undefined;
|
|
9017
|
-
env?: {
|
|
9018
|
-
hasEnvFile: boolean;
|
|
9019
|
-
hasEnvExample: boolean;
|
|
9020
|
-
envVariables?: string[] | undefined;
|
|
9021
|
-
} | undefined;
|
|
9022
9342
|
ci?: {
|
|
9023
9343
|
hasCI: boolean;
|
|
9024
9344
|
hasCD: boolean;
|
|
9025
9345
|
provider?: "github-actions" | "gitlab-ci" | "circleci" | "jenkins" | "travis" | "azure-pipelines" | undefined;
|
|
9026
9346
|
configFile?: string | undefined;
|
|
9027
9347
|
} | undefined;
|
|
9348
|
+
env?: {
|
|
9349
|
+
hasEnvFile: boolean;
|
|
9350
|
+
hasEnvExample: boolean;
|
|
9351
|
+
envVariables?: string[] | undefined;
|
|
9352
|
+
} | undefined;
|
|
9028
9353
|
structure?: {
|
|
9029
9354
|
hasWorkspaces: boolean;
|
|
9030
9355
|
type?: "flat" | "monorepo" | "src-based" | "packages" | undefined;
|
|
@@ -9039,7 +9364,7 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9039
9364
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
9040
9365
|
quotes?: "single" | "double" | undefined;
|
|
9041
9366
|
semicolons?: boolean | undefined;
|
|
9042
|
-
trailingCommas?: "
|
|
9367
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
9043
9368
|
maxLineLength?: number | undefined;
|
|
9044
9369
|
} | undefined;
|
|
9045
9370
|
buildCommands?: {
|
|
@@ -9135,17 +9460,17 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9135
9460
|
hasCompose?: boolean | undefined;
|
|
9136
9461
|
baseImage?: string | undefined;
|
|
9137
9462
|
} | undefined;
|
|
9138
|
-
env?: {
|
|
9139
|
-
hasEnvFile?: boolean | undefined;
|
|
9140
|
-
hasEnvExample?: boolean | undefined;
|
|
9141
|
-
envVariables?: string[] | undefined;
|
|
9142
|
-
} | undefined;
|
|
9143
9463
|
ci?: {
|
|
9144
9464
|
provider?: "github-actions" | "gitlab-ci" | "circleci" | "jenkins" | "travis" | "azure-pipelines" | undefined;
|
|
9145
9465
|
hasCI?: boolean | undefined;
|
|
9146
9466
|
hasCD?: boolean | undefined;
|
|
9147
9467
|
configFile?: string | undefined;
|
|
9148
9468
|
} | undefined;
|
|
9469
|
+
env?: {
|
|
9470
|
+
hasEnvFile?: boolean | undefined;
|
|
9471
|
+
hasEnvExample?: boolean | undefined;
|
|
9472
|
+
envVariables?: string[] | undefined;
|
|
9473
|
+
} | undefined;
|
|
9149
9474
|
packageManagers?: ("go" | "bun" | "npm" | "pnpm" | "yarn" | "pip" | "poetry" | "uv" | "cargo" | "maven" | "gradle" | "composer" | "bundler" | "cocoapods" | "swift-package-manager" | "nuget")[] | undefined;
|
|
9150
9475
|
structure?: {
|
|
9151
9476
|
type?: "flat" | "monorepo" | "src-based" | "packages" | undefined;
|
|
@@ -9161,7 +9486,7 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9161
9486
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
9162
9487
|
quotes?: "single" | "double" | undefined;
|
|
9163
9488
|
semicolons?: boolean | undefined;
|
|
9164
|
-
trailingCommas?: "
|
|
9489
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
9165
9490
|
maxLineLength?: number | undefined;
|
|
9166
9491
|
} | undefined;
|
|
9167
9492
|
buildCommands?: {
|
|
@@ -9506,4 +9831,876 @@ declare function getGuidelineContent(id: string): string | null;
|
|
|
9506
9831
|
declare function getEnabledGuidelineContent(): string;
|
|
9507
9832
|
declare function isBuiltinGuideline(id: string): boolean;
|
|
9508
9833
|
|
|
9509
|
-
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, CIConfig, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CanonicalAgent, type CanonicalSkill, 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, type CompletenessResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, 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_CONTEXT_CATEGORIES, DEFAULT_GUIDELINE_CONFIG, DEFAULT_LEARNING_CONFIG, DEFAULT_MEMORY_CONFIG, DEFAULT_PROFILE_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, DockerConfig, EnvConfig, type EvolvingPattern, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionHistory, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStrategy, type ExecutionTaskStatus, type FeedbackResult, 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, 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, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type LearnedPattern, type LearnedSkillOutput, type Learning, type LearningConfig, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, LocalProvider, MARKETPLACE_CACHE_FILE, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, 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 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 PatternCategory, type PatternDomain, type PatternExtractionResult, type PatternGenerateOptions, type PatternStore, type PipelineStage, 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, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SESSION_FILE, SKILL_DISCOVERY_PATHS, type ScoredSkill, type ScoringWeights, type SearchOptions, 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 SkillEntry, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillHook, type SkillIndex, SkillLocation, SkillMdTranslator, SkillMetadata, SkillPreferences, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, type SkillTranslationOptions, type SkillTranslationResult, SkillTriggerEngine, SkillkitConfig, type SkillsManifest, type SlashCommand, type SlashCommandResult, type SpecificityScore, type StepExecutor, type StepType, type StructureScore, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_TECH, TASK_TEMPLATES, 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, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, addCustomGuideline, addCustomProfile, addPattern, addToManifest, agentExists, analyzeForPrimer, analyzeGitHistory, analyzePrimer, analyzeProject, approvePattern, benchmarkSkill, buildSkillIndex, calculatePercentile, canTranslate, clusterPatterns, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createRecommendationEngine, createRuleBasedCompressor, createSessionFile, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, detectCategory, detectProvider, detectSkillFormat, disableGuideline, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverSkills, dryRunExecutor, enableGuideline, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executeWithAgent, exportBundle, exportPatternsAsJson, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractPatternsFromSession, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, formatSkillAsPrompt, fromCanonicalAgent, generateComparisonNotes, generateManifestFromInstalled, generatePatternReport, generatePrimer, generatePrimerForAgent, generateRecommendations, generateSkillFromPatterns, generateSkillsConfig, 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, getDefaultStorePath, getEnabledGuidelineContent, getEnabledGuidelines, getEvolvingPattern, getEvolvingPatternsByDomain, getExecutionStrategy, getGitCommits, getGlobalConfigPath, getGlobalSkillsDir, getGrade, getGuideline, getGuidelineContent, getGuidelinesByCategory, getHighConfidencePatterns, getIndexStatus, getInstallDir, getLowConfidencePatterns, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getMostRecentSession, getMostUsedPatterns, getPattern, getPatternStats, getPatternsByCategory, getProfile, getProfileContext, getProfileNames, getProjectConfigPath, getProvider, getQualityGrade, getRecentBugFixes, getRecentRefactors, getSearchDirs, getSkillsDir, getStackTags, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, importBundle, importPatternsFromJson, initContext, initManifest, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isBuiltinGuideline, isBuiltinProfile, isGitUrl, isGuidelineEnabled, isHighQuality, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listSessions, listWorkflows, loadAgentMetadata, loadConfig, loadContext, loadGuidelineConfig, loadIndex, loadLearningConfig, loadManifest, loadMetadata, loadPatternStore, loadPlugin, loadPluginsFromDirectory, loadProfileConfig, loadSessionFile, loadSkillMetadata, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, mergePatterns, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSkillContentToCanonical, parseSkillToCanonical, parseSource, parseWorkflow, readAgentContent, readSkillContent, recordFailure, recordSuccess, rejectPattern, removeCustomGuideline, removeCustomProfile, removeFromManifest, removePattern, runTestSuite, saveConfig, saveGeneratedSkill, saveGuidelineConfig, saveIndex, saveLearningConfig, saveManifest, savePatternStore, saveProfileConfig, saveSessionFile, saveSkillMetadata, saveWorkflow, serializeWorkflow, setActiveProfile, setSkillEnabled, shellExecutor, skillMdTranslator, supportsAutoDiscovery, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translateSkillToAgent, translateSkillToAll, translatorRegistry, updateSessionFile, validateAgent, validateBuiltinPacks, validatePackDirectory, validatePackManifest, validatePlan, validateSkill, validateSkillContent, validateWorkflow, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };
|
|
9834
|
+
declare class TreeGenerator {
|
|
9835
|
+
private options;
|
|
9836
|
+
constructor(options?: TreeGeneratorOptions);
|
|
9837
|
+
generateTree(skills: SkillSummary[]): SkillTree;
|
|
9838
|
+
private buildTreeFromTaxonomy;
|
|
9839
|
+
private buildCategoryNode;
|
|
9840
|
+
private filterSkillsByCategory;
|
|
9841
|
+
private filterSkillsBySubcategory;
|
|
9842
|
+
private isSkillCategorized;
|
|
9843
|
+
private countTreeStats;
|
|
9844
|
+
findNode(tree: SkillTree, path: string[]): TreeNode | null;
|
|
9845
|
+
getPath(tree: SkillTree, skillName: string): string[] | null;
|
|
9846
|
+
getAllPaths(tree: SkillTree): Map<string, string[]>;
|
|
9847
|
+
getNodesAtDepth(tree: SkillTree, depth: number): TreeNode[];
|
|
9848
|
+
flattenTree(tree: SkillTree): TreeNode[];
|
|
9849
|
+
searchTree(tree: SkillTree, query: string): TreeNode[];
|
|
9850
|
+
}
|
|
9851
|
+
declare function generateSkillTree(skills: SkillSummary[], options?: TreeGeneratorOptions): SkillTree;
|
|
9852
|
+
|
|
9853
|
+
declare const TREE_FILE_NAME = "skill-tree.json";
|
|
9854
|
+
declare function serializeTree(tree: SkillTree): string;
|
|
9855
|
+
declare function deserializeTree(json: string): SkillTree;
|
|
9856
|
+
declare function saveTree(tree: SkillTree, path: string): void;
|
|
9857
|
+
declare function loadTree(path: string): SkillTree | null;
|
|
9858
|
+
declare function treeToText(tree: SkillTree, options?: {
|
|
9859
|
+
maxDepth?: number;
|
|
9860
|
+
}): string;
|
|
9861
|
+
declare function treeToMarkdown(tree: SkillTree): string;
|
|
9862
|
+
declare function compareTreeVersions(oldTree: SkillTree, newTree: SkillTree): {
|
|
9863
|
+
added: string[];
|
|
9864
|
+
removed: string[];
|
|
9865
|
+
moved: {
|
|
9866
|
+
skill: string;
|
|
9867
|
+
from: string[];
|
|
9868
|
+
to: string[];
|
|
9869
|
+
}[];
|
|
9870
|
+
};
|
|
9871
|
+
|
|
9872
|
+
type RelationType = 'similar' | 'complementary' | 'dependency' | 'alternative';
|
|
9873
|
+
interface SkillRelation {
|
|
9874
|
+
skillName: string;
|
|
9875
|
+
relationType: RelationType;
|
|
9876
|
+
strength: number;
|
|
9877
|
+
reason: string;
|
|
9878
|
+
}
|
|
9879
|
+
interface SkillNode {
|
|
9880
|
+
name: string;
|
|
9881
|
+
tags: string[];
|
|
9882
|
+
source?: string;
|
|
9883
|
+
relations: SkillRelation[];
|
|
9884
|
+
}
|
|
9885
|
+
interface SkillGraph {
|
|
9886
|
+
version: number;
|
|
9887
|
+
generatedAt: string;
|
|
9888
|
+
nodes: Map<string, SkillNode>;
|
|
9889
|
+
totalSkills: number;
|
|
9890
|
+
totalRelations: number;
|
|
9891
|
+
}
|
|
9892
|
+
interface RelatedSkillResult {
|
|
9893
|
+
skill: SkillSummary;
|
|
9894
|
+
relationType: RelationType;
|
|
9895
|
+
strength: number;
|
|
9896
|
+
reason: string;
|
|
9897
|
+
path?: string[];
|
|
9898
|
+
}
|
|
9899
|
+
declare function buildSkillGraph(skills: SkillSummary[]): SkillGraph;
|
|
9900
|
+
declare function getRelatedSkills(skillName: string, graph: SkillGraph, skills: SkillSummary[], options?: {
|
|
9901
|
+
limit?: number;
|
|
9902
|
+
types?: RelationType[];
|
|
9903
|
+
minStrength?: number;
|
|
9904
|
+
}): RelatedSkillResult[];
|
|
9905
|
+
declare function findSkillsByRelationType(graph: SkillGraph, skills: SkillSummary[], relationType: RelationType, limit?: number): Array<{
|
|
9906
|
+
skill: SkillSummary;
|
|
9907
|
+
relatedCount: number;
|
|
9908
|
+
}>;
|
|
9909
|
+
declare function getSkillPath(fromSkillName: string, toSkillName: string, graph: SkillGraph, maxHops?: number): string[] | null;
|
|
9910
|
+
declare function findSkillsInCategory(tree: SkillTree, categoryPath: string[]): string[];
|
|
9911
|
+
declare function serializeGraph(graph: SkillGraph): string;
|
|
9912
|
+
declare function deserializeGraph(json: string): SkillGraph;
|
|
9913
|
+
|
|
9914
|
+
declare class ReasoningEngine {
|
|
9915
|
+
private config;
|
|
9916
|
+
private skillMap;
|
|
9917
|
+
private tree;
|
|
9918
|
+
private cache;
|
|
9919
|
+
private stats;
|
|
9920
|
+
constructor(config?: Partial<ReasoningConfig>);
|
|
9921
|
+
loadSkills(skills: SkillSummary[]): void;
|
|
9922
|
+
loadTree(tree: SkillTree): void;
|
|
9923
|
+
generateTree(skills: SkillSummary[]): void;
|
|
9924
|
+
search(query: TreeSearchQuery): Promise<TreeReasoningResult>;
|
|
9925
|
+
explain(skill: SkillSummary, score: number, profile: ProjectProfile): Promise<ExplainedRecommendation>;
|
|
9926
|
+
explainBatch(skills: Array<{
|
|
9927
|
+
skill: SkillSummary;
|
|
9928
|
+
score: number;
|
|
9929
|
+
}>, profile: ProjectProfile): Promise<ExplainedRecommendation[]>;
|
|
9930
|
+
private createSearchPlan;
|
|
9931
|
+
private mockSearchPlan;
|
|
9932
|
+
private traverseTree;
|
|
9933
|
+
private findRelevantNodes;
|
|
9934
|
+
private evaluateSkillMatch;
|
|
9935
|
+
private fallbackSearch;
|
|
9936
|
+
private generateExplanation;
|
|
9937
|
+
private mockExplanation;
|
|
9938
|
+
private scoreToConfidence;
|
|
9939
|
+
private getSkillPath;
|
|
9940
|
+
private buildReasoningSummary;
|
|
9941
|
+
private callLLM;
|
|
9942
|
+
private getCacheKey;
|
|
9943
|
+
private getFromCache;
|
|
9944
|
+
private addToCache;
|
|
9945
|
+
private updateStats;
|
|
9946
|
+
getStats(): ReasoningEngineStats;
|
|
9947
|
+
clearCache(): void;
|
|
9948
|
+
getTree(): SkillTree | null;
|
|
9949
|
+
}
|
|
9950
|
+
declare function createReasoningEngine(config?: Partial<ReasoningConfig>): ReasoningEngine;
|
|
9951
|
+
|
|
9952
|
+
declare const SEARCH_PLANNING_PROMPT = "You are a skill discovery assistant. Given a user query and optional project context, create a search plan.\n\nUser Query: {{query}}\n\n{{#if context}}\nProject Context:\n- Languages: {{context.languages}}\n- Frameworks: {{context.frameworks}}\n- Project Type: {{context.type}}\n{{/if}}\n\nAvailable Categories:\n{{categories}}\n\nRespond with a JSON search plan:\n{\n \"primaryCategories\": [\"most relevant categories\"],\n \"secondaryCategories\": [\"somewhat relevant categories\"],\n \"keywords\": [\"extracted search terms\"],\n \"filters\": {\n \"tags\": [\"relevant tags\"],\n \"frameworks\": [\"relevant frameworks\"],\n \"languages\": [\"relevant languages\"]\n },\n \"strategy\": \"breadth-first\" | \"depth-first\" | \"targeted\"\n}";
|
|
9953
|
+
declare const CATEGORY_RELEVANCE_PROMPT = "Rate the relevance of this category for the user's query.\n\nQuery: {{query}}\n\nCategory: {{category.name}}\nSkills in category: {{category.skillCount}}\nSubcategories: {{category.subcategories}}\n\nRate from 0-100 and explain briefly.\nRespond as JSON: {\"score\": number, \"reasoning\": \"brief explanation\"}";
|
|
9954
|
+
declare const SKILL_MATCH_PROMPT = "Evaluate how well this skill matches the user's query.\n\nQuery: {{query}}\n\nSkill: {{skill.name}}\nDescription: {{skill.description}}\nTags: {{skill.tags}}\n\n{{#if context}}\nProject Stack:\n- Languages: {{context.languages}}\n- Frameworks: {{context.frameworks}}\n{{/if}}\n\nEvaluate match quality and explain why.\nRespond as JSON:\n{\n \"confidence\": 0-100,\n \"matchedKeywords\": [\"words from query that match\"],\n \"relevantSections\": [\"which parts of skill are relevant\"],\n \"reasoning\": \"explanation of match quality\"\n}";
|
|
9955
|
+
declare const EXPLANATION_PROMPT = "Explain why this skill was recommended for the user's project.\n\nSkill: {{skill.name}}\nDescription: {{skill.description}}\nTags: {{skill.tags}}\nScore: {{score}}\n\nProject:\n- Name: {{project.name}}\n- Type: {{project.type}}\n- Languages: {{project.languages}}\n- Frameworks: {{project.frameworks}}\n\nExplain the match clearly and concisely.\nRespond as JSON:\n{\n \"matchedBecause\": [\"specific match reasons\"],\n \"relevantFor\": [\"how it helps this project\"],\n \"differentFrom\": [\"what distinguishes it from alternatives\"],\n \"confidence\": \"high\" | \"medium\" | \"low\"\n}";
|
|
9956
|
+
declare function buildSearchPlanPrompt(query: string, categories: string[], context?: ProjectProfile): string;
|
|
9957
|
+
declare function buildCategoryRelevancePrompt(query: string, node: TreeNode): string;
|
|
9958
|
+
declare function buildSkillMatchPrompt(query: string, skill: {
|
|
9959
|
+
name: string;
|
|
9960
|
+
description?: string;
|
|
9961
|
+
tags?: string[];
|
|
9962
|
+
}, context?: ProjectProfile): string;
|
|
9963
|
+
declare function buildExplanationPrompt(skill: {
|
|
9964
|
+
name: string;
|
|
9965
|
+
description?: string;
|
|
9966
|
+
tags?: string[];
|
|
9967
|
+
}, score: number, project: ProjectProfile): string;
|
|
9968
|
+
declare function extractJsonFromResponse(response: string): unknown;
|
|
9969
|
+
declare function validateSearchPlan(data: unknown): SearchPlan;
|
|
9970
|
+
declare function validateCategoryScore(data: unknown, fallbackCategory?: string): CategoryScore;
|
|
9971
|
+
|
|
9972
|
+
declare const ConnectorCategorySchema: z.ZodEnum<["crm", "chat", "email", "calendar", "docs", "data", "search", "enrichment", "analytics", "storage", "notifications", "ai", "custom"]>;
|
|
9973
|
+
type ConnectorCategory = z.infer<typeof ConnectorCategorySchema>;
|
|
9974
|
+
declare const ConnectorPlaceholderSchema: z.ZodObject<{
|
|
9975
|
+
placeholder: z.ZodString;
|
|
9976
|
+
category: z.ZodEnum<["crm", "chat", "email", "calendar", "docs", "data", "search", "enrichment", "analytics", "storage", "notifications", "ai", "custom"]>;
|
|
9977
|
+
description: z.ZodString;
|
|
9978
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9979
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9980
|
+
}, "strip", z.ZodTypeAny, {
|
|
9981
|
+
description: string;
|
|
9982
|
+
category: "custom" | "search" | "ai" | "storage" | "data" | "chat" | "docs" | "crm" | "email" | "calendar" | "enrichment" | "analytics" | "notifications";
|
|
9983
|
+
required: boolean;
|
|
9984
|
+
examples: string[];
|
|
9985
|
+
placeholder: string;
|
|
9986
|
+
}, {
|
|
9987
|
+
description: string;
|
|
9988
|
+
category: "custom" | "search" | "ai" | "storage" | "data" | "chat" | "docs" | "crm" | "email" | "calendar" | "enrichment" | "analytics" | "notifications";
|
|
9989
|
+
placeholder: string;
|
|
9990
|
+
required?: boolean | undefined;
|
|
9991
|
+
examples?: string[] | undefined;
|
|
9992
|
+
}>;
|
|
9993
|
+
type ConnectorPlaceholder = z.infer<typeof ConnectorPlaceholderSchema>;
|
|
9994
|
+
declare const ConnectorMappingSchema: z.ZodObject<{
|
|
9995
|
+
placeholder: z.ZodString;
|
|
9996
|
+
tool: z.ZodString;
|
|
9997
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
9998
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9999
|
+
}, "strip", z.ZodTypeAny, {
|
|
10000
|
+
tool: string;
|
|
10001
|
+
placeholder: string;
|
|
10002
|
+
config?: Record<string, unknown> | undefined;
|
|
10003
|
+
mcpServer?: string | undefined;
|
|
10004
|
+
}, {
|
|
10005
|
+
tool: string;
|
|
10006
|
+
placeholder: string;
|
|
10007
|
+
config?: Record<string, unknown> | undefined;
|
|
10008
|
+
mcpServer?: string | undefined;
|
|
10009
|
+
}>;
|
|
10010
|
+
type ConnectorMapping = z.infer<typeof ConnectorMappingSchema>;
|
|
10011
|
+
declare const ConnectorConfigSchema: z.ZodObject<{
|
|
10012
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
10013
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
10014
|
+
placeholder: z.ZodString;
|
|
10015
|
+
tool: z.ZodString;
|
|
10016
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
10017
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10018
|
+
}, "strip", z.ZodTypeAny, {
|
|
10019
|
+
tool: string;
|
|
10020
|
+
placeholder: string;
|
|
10021
|
+
config?: Record<string, unknown> | undefined;
|
|
10022
|
+
mcpServer?: string | undefined;
|
|
10023
|
+
}, {
|
|
10024
|
+
tool: string;
|
|
10025
|
+
placeholder: string;
|
|
10026
|
+
config?: Record<string, unknown> | undefined;
|
|
10027
|
+
mcpServer?: string | undefined;
|
|
10028
|
+
}>, "many">;
|
|
10029
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10030
|
+
}, "strip", z.ZodTypeAny, {
|
|
10031
|
+
version: number;
|
|
10032
|
+
mappings: {
|
|
10033
|
+
tool: string;
|
|
10034
|
+
placeholder: string;
|
|
10035
|
+
config?: Record<string, unknown> | undefined;
|
|
10036
|
+
mcpServer?: string | undefined;
|
|
10037
|
+
}[];
|
|
10038
|
+
description?: string | undefined;
|
|
10039
|
+
}, {
|
|
10040
|
+
mappings: {
|
|
10041
|
+
tool: string;
|
|
10042
|
+
placeholder: string;
|
|
10043
|
+
config?: Record<string, unknown> | undefined;
|
|
10044
|
+
mcpServer?: string | undefined;
|
|
10045
|
+
}[];
|
|
10046
|
+
description?: string | undefined;
|
|
10047
|
+
version?: number | undefined;
|
|
10048
|
+
}>;
|
|
10049
|
+
type ConnectorConfig = z.infer<typeof ConnectorConfigSchema>;
|
|
10050
|
+
declare const STANDARD_PLACEHOLDERS: Record<ConnectorCategory, ConnectorPlaceholder>;
|
|
10051
|
+
interface PlaceholderMatch {
|
|
10052
|
+
placeholder: string;
|
|
10053
|
+
category: ConnectorCategory | null;
|
|
10054
|
+
line: number;
|
|
10055
|
+
column: number;
|
|
10056
|
+
context: string;
|
|
10057
|
+
}
|
|
10058
|
+
interface PlaceholderReplacement {
|
|
10059
|
+
original: string;
|
|
10060
|
+
replacement: string;
|
|
10061
|
+
category: ConnectorCategory | null;
|
|
10062
|
+
}
|
|
10063
|
+
interface ConnectorAnalysis {
|
|
10064
|
+
placeholders: PlaceholderMatch[];
|
|
10065
|
+
categories: ConnectorCategory[];
|
|
10066
|
+
requiredCount: number;
|
|
10067
|
+
optionalCount: number;
|
|
10068
|
+
hasUnknownPlaceholders: boolean;
|
|
10069
|
+
}
|
|
10070
|
+
|
|
10071
|
+
declare function detectPlaceholders(content: string): PlaceholderMatch[];
|
|
10072
|
+
declare function analyzePlaceholders(content: string): ConnectorAnalysis;
|
|
10073
|
+
declare function replacePlaceholders(content: string, mappings: ConnectorMapping[]): {
|
|
10074
|
+
result: string;
|
|
10075
|
+
replacements: PlaceholderReplacement[];
|
|
10076
|
+
};
|
|
10077
|
+
declare function applyConnectorConfig(content: string, config: ConnectorConfig): {
|
|
10078
|
+
result: string;
|
|
10079
|
+
replacements: PlaceholderReplacement[];
|
|
10080
|
+
};
|
|
10081
|
+
declare function getPlaceholderInfo(placeholder: string): ConnectorPlaceholder | null;
|
|
10082
|
+
declare function generateConnectorsMarkdown(analysis: ConnectorAnalysis): string;
|
|
10083
|
+
declare function createConnectorConfig(mappings: Array<{
|
|
10084
|
+
placeholder: string;
|
|
10085
|
+
tool: string;
|
|
10086
|
+
mcpServer?: string;
|
|
10087
|
+
}>): ConnectorConfig;
|
|
10088
|
+
declare function validateConnectorConfig(config: ConnectorConfig, content: string): {
|
|
10089
|
+
valid: boolean;
|
|
10090
|
+
errors: string[];
|
|
10091
|
+
warnings: string[];
|
|
10092
|
+
};
|
|
10093
|
+
declare function suggestMappingsFromMcp(mcpServers: string[]): ConnectorMapping[];
|
|
10094
|
+
|
|
10095
|
+
declare const ExecutionStepStatusSchema: z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>;
|
|
10096
|
+
type ExecutionStepStatus = z.infer<typeof ExecutionStepStatusSchema>;
|
|
10097
|
+
declare const ExecutionStepSchema: z.ZodObject<{
|
|
10098
|
+
id: z.ZodString;
|
|
10099
|
+
name: z.ZodString;
|
|
10100
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10101
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10102
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10103
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10104
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
10105
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10106
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10107
|
+
error: z.ZodOptional<z.ZodString>;
|
|
10108
|
+
retryCount: z.ZodDefault<z.ZodNumber>;
|
|
10109
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10110
|
+
}, "strip", z.ZodTypeAny, {
|
|
10111
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10112
|
+
name: string;
|
|
10113
|
+
id: string;
|
|
10114
|
+
retryCount: number;
|
|
10115
|
+
description?: string | undefined;
|
|
10116
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10117
|
+
error?: string | undefined;
|
|
10118
|
+
input?: Record<string, unknown> | undefined;
|
|
10119
|
+
startedAt?: string | undefined;
|
|
10120
|
+
completedAt?: string | undefined;
|
|
10121
|
+
output?: Record<string, unknown> | undefined;
|
|
10122
|
+
duration?: number | undefined;
|
|
10123
|
+
}, {
|
|
10124
|
+
name: string;
|
|
10125
|
+
id: string;
|
|
10126
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10127
|
+
description?: string | undefined;
|
|
10128
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10129
|
+
error?: string | undefined;
|
|
10130
|
+
input?: Record<string, unknown> | undefined;
|
|
10131
|
+
startedAt?: string | undefined;
|
|
10132
|
+
completedAt?: string | undefined;
|
|
10133
|
+
output?: Record<string, unknown> | undefined;
|
|
10134
|
+
duration?: number | undefined;
|
|
10135
|
+
retryCount?: number | undefined;
|
|
10136
|
+
}>;
|
|
10137
|
+
type ExecutionStep = z.infer<typeof ExecutionStepSchema>;
|
|
10138
|
+
declare const ExecutionFlowSchema: z.ZodObject<{
|
|
10139
|
+
id: z.ZodString;
|
|
10140
|
+
skillName: z.ZodString;
|
|
10141
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
10142
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
10143
|
+
id: z.ZodString;
|
|
10144
|
+
name: z.ZodString;
|
|
10145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10146
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10147
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10148
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10149
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
10150
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10151
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10152
|
+
error: z.ZodOptional<z.ZodString>;
|
|
10153
|
+
retryCount: z.ZodDefault<z.ZodNumber>;
|
|
10154
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10155
|
+
}, "strip", z.ZodTypeAny, {
|
|
10156
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10157
|
+
name: string;
|
|
10158
|
+
id: string;
|
|
10159
|
+
retryCount: number;
|
|
10160
|
+
description?: string | undefined;
|
|
10161
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10162
|
+
error?: string | undefined;
|
|
10163
|
+
input?: Record<string, unknown> | undefined;
|
|
10164
|
+
startedAt?: string | undefined;
|
|
10165
|
+
completedAt?: string | undefined;
|
|
10166
|
+
output?: Record<string, unknown> | undefined;
|
|
10167
|
+
duration?: number | undefined;
|
|
10168
|
+
}, {
|
|
10169
|
+
name: string;
|
|
10170
|
+
id: string;
|
|
10171
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10172
|
+
description?: string | undefined;
|
|
10173
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10174
|
+
error?: string | undefined;
|
|
10175
|
+
input?: Record<string, unknown> | undefined;
|
|
10176
|
+
startedAt?: string | undefined;
|
|
10177
|
+
completedAt?: string | undefined;
|
|
10178
|
+
output?: Record<string, unknown> | undefined;
|
|
10179
|
+
duration?: number | undefined;
|
|
10180
|
+
retryCount?: number | undefined;
|
|
10181
|
+
}>, "many">;
|
|
10182
|
+
currentStepIndex: z.ZodDefault<z.ZodNumber>;
|
|
10183
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10184
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10185
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10186
|
+
totalDuration: z.ZodOptional<z.ZodNumber>;
|
|
10187
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10188
|
+
mode: z.ZodDefault<z.ZodEnum<["standalone", "enhanced"]>>;
|
|
10189
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10190
|
+
}, "strip", z.ZodTypeAny, {
|
|
10191
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10192
|
+
version: number;
|
|
10193
|
+
skillName: string;
|
|
10194
|
+
id: string;
|
|
10195
|
+
steps: {
|
|
10196
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10197
|
+
name: string;
|
|
10198
|
+
id: string;
|
|
10199
|
+
retryCount: number;
|
|
10200
|
+
description?: string | undefined;
|
|
10201
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10202
|
+
error?: string | undefined;
|
|
10203
|
+
input?: Record<string, unknown> | undefined;
|
|
10204
|
+
startedAt?: string | undefined;
|
|
10205
|
+
completedAt?: string | undefined;
|
|
10206
|
+
output?: Record<string, unknown> | undefined;
|
|
10207
|
+
duration?: number | undefined;
|
|
10208
|
+
}[];
|
|
10209
|
+
mode: "standalone" | "enhanced";
|
|
10210
|
+
currentStepIndex: number;
|
|
10211
|
+
context?: Record<string, unknown> | undefined;
|
|
10212
|
+
startedAt?: string | undefined;
|
|
10213
|
+
completedAt?: string | undefined;
|
|
10214
|
+
totalDuration?: number | undefined;
|
|
10215
|
+
mcpServers?: string[] | undefined;
|
|
10216
|
+
}, {
|
|
10217
|
+
skillName: string;
|
|
10218
|
+
id: string;
|
|
10219
|
+
steps: {
|
|
10220
|
+
name: string;
|
|
10221
|
+
id: string;
|
|
10222
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10223
|
+
description?: string | undefined;
|
|
10224
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10225
|
+
error?: string | undefined;
|
|
10226
|
+
input?: Record<string, unknown> | undefined;
|
|
10227
|
+
startedAt?: string | undefined;
|
|
10228
|
+
completedAt?: string | undefined;
|
|
10229
|
+
output?: Record<string, unknown> | undefined;
|
|
10230
|
+
duration?: number | undefined;
|
|
10231
|
+
retryCount?: number | undefined;
|
|
10232
|
+
}[];
|
|
10233
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10234
|
+
version?: number | undefined;
|
|
10235
|
+
context?: Record<string, unknown> | undefined;
|
|
10236
|
+
startedAt?: string | undefined;
|
|
10237
|
+
completedAt?: string | undefined;
|
|
10238
|
+
mode?: "standalone" | "enhanced" | undefined;
|
|
10239
|
+
currentStepIndex?: number | undefined;
|
|
10240
|
+
totalDuration?: number | undefined;
|
|
10241
|
+
mcpServers?: string[] | undefined;
|
|
10242
|
+
}>;
|
|
10243
|
+
type ExecutionFlow = z.infer<typeof ExecutionFlowSchema>;
|
|
10244
|
+
interface ExecutionFlowConfig {
|
|
10245
|
+
maxRetries?: number;
|
|
10246
|
+
retryDelay?: number;
|
|
10247
|
+
timeout?: number;
|
|
10248
|
+
onStepStart?: (step: ExecutionStep, flow: ExecutionFlow) => void;
|
|
10249
|
+
onStepComplete?: (step: ExecutionStep, flow: ExecutionFlow) => void;
|
|
10250
|
+
onStepError?: (step: ExecutionStep, error: Error, flow: ExecutionFlow) => void;
|
|
10251
|
+
onFlowComplete?: (flow: ExecutionFlow) => void;
|
|
10252
|
+
}
|
|
10253
|
+
interface StepDefinition {
|
|
10254
|
+
name: string;
|
|
10255
|
+
description?: string;
|
|
10256
|
+
execute: (input: Record<string, unknown>, context: ExecutionContext) => Promise<Record<string, unknown>>;
|
|
10257
|
+
rollback?: (context: ExecutionContext) => Promise<void>;
|
|
10258
|
+
condition?: (context: ExecutionContext) => boolean;
|
|
10259
|
+
retryable?: boolean;
|
|
10260
|
+
timeout?: number;
|
|
10261
|
+
}
|
|
10262
|
+
interface ExecutionContext {
|
|
10263
|
+
flow: ExecutionFlow;
|
|
10264
|
+
stepIndex: number;
|
|
10265
|
+
previousOutput?: Record<string, unknown>;
|
|
10266
|
+
mcpTools?: string[];
|
|
10267
|
+
isEnhanced: boolean;
|
|
10268
|
+
}
|
|
10269
|
+
interface FlowSummary {
|
|
10270
|
+
id: string;
|
|
10271
|
+
skillName: string;
|
|
10272
|
+
status: ExecutionStepStatus;
|
|
10273
|
+
progress: number;
|
|
10274
|
+
currentStep?: string;
|
|
10275
|
+
startedAt?: string;
|
|
10276
|
+
completedAt?: string;
|
|
10277
|
+
totalDuration?: number;
|
|
10278
|
+
stepsCompleted: number;
|
|
10279
|
+
totalSteps: number;
|
|
10280
|
+
mode: 'standalone' | 'enhanced';
|
|
10281
|
+
}
|
|
10282
|
+
interface FlowMetrics {
|
|
10283
|
+
totalFlows: number;
|
|
10284
|
+
completedFlows: number;
|
|
10285
|
+
failedFlows: number;
|
|
10286
|
+
averageDuration: number;
|
|
10287
|
+
stepMetrics: Map<string, {
|
|
10288
|
+
executionCount: number;
|
|
10289
|
+
successCount: number;
|
|
10290
|
+
failureCount: number;
|
|
10291
|
+
averageDuration: number;
|
|
10292
|
+
}>;
|
|
10293
|
+
}
|
|
10294
|
+
|
|
10295
|
+
declare class ExecutionManager {
|
|
10296
|
+
private flows;
|
|
10297
|
+
private stepDefinitions;
|
|
10298
|
+
private config;
|
|
10299
|
+
private metrics;
|
|
10300
|
+
constructor(config?: ExecutionFlowConfig);
|
|
10301
|
+
createFlow(skillName: string, steps: Array<{
|
|
10302
|
+
name: string;
|
|
10303
|
+
description?: string;
|
|
10304
|
+
}>, options?: {
|
|
10305
|
+
mode?: 'standalone' | 'enhanced';
|
|
10306
|
+
mcpServers?: string[];
|
|
10307
|
+
context?: Record<string, unknown>;
|
|
10308
|
+
}): ExecutionFlow;
|
|
10309
|
+
registerStepDefinitions(skillName: string, definitions: StepDefinition[]): void;
|
|
10310
|
+
executeFlow(flowId: string): Promise<ExecutionFlow>;
|
|
10311
|
+
private executeStep;
|
|
10312
|
+
getFlow(flowId: string): ExecutionFlow | undefined;
|
|
10313
|
+
getFlowSummary(flowId: string): FlowSummary | null;
|
|
10314
|
+
getAllFlowSummaries(): FlowSummary[];
|
|
10315
|
+
getMetrics(): FlowMetrics;
|
|
10316
|
+
cancelFlow(flowId: string): boolean;
|
|
10317
|
+
clearCompletedFlows(): number;
|
|
10318
|
+
private calculateDuration;
|
|
10319
|
+
private updateAverageDuration;
|
|
10320
|
+
private updateStepMetrics;
|
|
10321
|
+
private delay;
|
|
10322
|
+
}
|
|
10323
|
+
declare function createExecutionManager(config?: ExecutionFlowConfig): ExecutionManager;
|
|
10324
|
+
|
|
10325
|
+
type ExecutionMode = 'standalone' | 'enhanced';
|
|
10326
|
+
interface ModeDetectionResult {
|
|
10327
|
+
mode: ExecutionMode;
|
|
10328
|
+
availableServers: string[];
|
|
10329
|
+
missingServers: string[];
|
|
10330
|
+
capabilities: ModeCapabilities;
|
|
10331
|
+
connectorMappings: ConnectorMapping[];
|
|
10332
|
+
}
|
|
10333
|
+
interface ModeCapabilities {
|
|
10334
|
+
canAccessCRM: boolean;
|
|
10335
|
+
canSendEmails: boolean;
|
|
10336
|
+
canAccessCalendar: boolean;
|
|
10337
|
+
canAccessDocs: boolean;
|
|
10338
|
+
canQueryData: boolean;
|
|
10339
|
+
canEnrichData: boolean;
|
|
10340
|
+
canSendNotifications: boolean;
|
|
10341
|
+
canUseAI: boolean;
|
|
10342
|
+
hasChat: boolean;
|
|
10343
|
+
hasStorage: boolean;
|
|
10344
|
+
hasSearch: boolean;
|
|
10345
|
+
hasAnalytics: boolean;
|
|
10346
|
+
}
|
|
10347
|
+
interface ExecutionModeConfig {
|
|
10348
|
+
requiredServers?: string[];
|
|
10349
|
+
optionalServers?: string[];
|
|
10350
|
+
mcpConfigPaths?: string[];
|
|
10351
|
+
fallbackToStandalone?: boolean;
|
|
10352
|
+
}
|
|
10353
|
+
declare function detectExecutionMode(config?: ExecutionModeConfig): ModeDetectionResult;
|
|
10354
|
+
declare function getModeDescription(result: ModeDetectionResult): string;
|
|
10355
|
+
declare function requireEnhancedMode(result: ModeDetectionResult): void;
|
|
10356
|
+
declare function requireCapability(result: ModeDetectionResult, capability: keyof ModeCapabilities): void;
|
|
10357
|
+
declare function getStandaloneAlternative(capability: keyof ModeCapabilities): string;
|
|
10358
|
+
declare function createModeAwareExecutor<T>(enhancedFn: () => Promise<T>, standaloneFn: () => Promise<T>, modeResult: ModeDetectionResult): () => Promise<T>;
|
|
10359
|
+
|
|
10360
|
+
declare const LocalModelConfigSchema: z.ZodObject<{
|
|
10361
|
+
embedModel: z.ZodDefault<z.ZodString>;
|
|
10362
|
+
llmModel: z.ZodDefault<z.ZodString>;
|
|
10363
|
+
modelDir: z.ZodOptional<z.ZodString>;
|
|
10364
|
+
autoDownload: z.ZodDefault<z.ZodBoolean>;
|
|
10365
|
+
gpuLayers: z.ZodDefault<z.ZodNumber>;
|
|
10366
|
+
}, "strip", z.ZodTypeAny, {
|
|
10367
|
+
embedModel: string;
|
|
10368
|
+
llmModel: string;
|
|
10369
|
+
autoDownload: boolean;
|
|
10370
|
+
gpuLayers: number;
|
|
10371
|
+
modelDir?: string | undefined;
|
|
10372
|
+
}, {
|
|
10373
|
+
embedModel?: string | undefined;
|
|
10374
|
+
llmModel?: string | undefined;
|
|
10375
|
+
modelDir?: string | undefined;
|
|
10376
|
+
autoDownload?: boolean | undefined;
|
|
10377
|
+
gpuLayers?: number | undefined;
|
|
10378
|
+
}>;
|
|
10379
|
+
type LocalModelConfig = z.infer<typeof LocalModelConfigSchema>;
|
|
10380
|
+
declare const SkillChunkSchema: z.ZodObject<{
|
|
10381
|
+
content: z.ZodString;
|
|
10382
|
+
startLine: z.ZodNumber;
|
|
10383
|
+
endLine: z.ZodNumber;
|
|
10384
|
+
tokenCount: z.ZodNumber;
|
|
10385
|
+
}, "strip", z.ZodTypeAny, {
|
|
10386
|
+
content: string;
|
|
10387
|
+
startLine: number;
|
|
10388
|
+
endLine: number;
|
|
10389
|
+
tokenCount: number;
|
|
10390
|
+
}, {
|
|
10391
|
+
content: string;
|
|
10392
|
+
startLine: number;
|
|
10393
|
+
endLine: number;
|
|
10394
|
+
tokenCount: number;
|
|
10395
|
+
}>;
|
|
10396
|
+
type SkillChunk = z.infer<typeof SkillChunkSchema>;
|
|
10397
|
+
interface SkillEmbedding {
|
|
10398
|
+
skillName: string;
|
|
10399
|
+
vector: Float32Array;
|
|
10400
|
+
textContent: string;
|
|
10401
|
+
chunks?: {
|
|
10402
|
+
content: string;
|
|
10403
|
+
vector: Float32Array;
|
|
10404
|
+
startLine: number;
|
|
10405
|
+
endLine: number;
|
|
10406
|
+
}[];
|
|
10407
|
+
generatedAt: string;
|
|
10408
|
+
}
|
|
10409
|
+
interface VectorSearchResult {
|
|
10410
|
+
skillName: string;
|
|
10411
|
+
similarity: number;
|
|
10412
|
+
matchedChunk?: {
|
|
10413
|
+
content: string;
|
|
10414
|
+
startLine: number;
|
|
10415
|
+
};
|
|
10416
|
+
}
|
|
10417
|
+
interface ExpandedQuery {
|
|
10418
|
+
original: string;
|
|
10419
|
+
variations: string[];
|
|
10420
|
+
weights: number[];
|
|
10421
|
+
}
|
|
10422
|
+
interface RRFRanking {
|
|
10423
|
+
skillName: string;
|
|
10424
|
+
rrfScore: number;
|
|
10425
|
+
ranks: {
|
|
10426
|
+
source: string;
|
|
10427
|
+
rank: number;
|
|
10428
|
+
}[];
|
|
10429
|
+
}
|
|
10430
|
+
interface HybridSearchOptions {
|
|
10431
|
+
query: string;
|
|
10432
|
+
limit?: number;
|
|
10433
|
+
enableExpansion?: boolean;
|
|
10434
|
+
enableReranking?: boolean;
|
|
10435
|
+
semanticWeight?: number;
|
|
10436
|
+
keywordWeight?: number;
|
|
10437
|
+
rrfK?: number;
|
|
10438
|
+
positionAwareBlending?: boolean;
|
|
10439
|
+
}
|
|
10440
|
+
interface HybridSearchResult extends SearchResult {
|
|
10441
|
+
hybridScore: number;
|
|
10442
|
+
vectorSimilarity?: number;
|
|
10443
|
+
keywordScore?: number;
|
|
10444
|
+
rrfScore?: number;
|
|
10445
|
+
rerankerScore?: number;
|
|
10446
|
+
expandedTerms?: string[];
|
|
10447
|
+
blendingWeights?: {
|
|
10448
|
+
retrieval: number;
|
|
10449
|
+
reranker: number;
|
|
10450
|
+
};
|
|
10451
|
+
}
|
|
10452
|
+
interface HybridSearchResponse {
|
|
10453
|
+
results: HybridSearchResult[];
|
|
10454
|
+
query: {
|
|
10455
|
+
original: string;
|
|
10456
|
+
expanded?: ExpandedQuery;
|
|
10457
|
+
};
|
|
10458
|
+
timing: {
|
|
10459
|
+
totalMs: number;
|
|
10460
|
+
embeddingMs?: number;
|
|
10461
|
+
vectorSearchMs?: number;
|
|
10462
|
+
keywordSearchMs?: number;
|
|
10463
|
+
fusionMs?: number;
|
|
10464
|
+
rerankingMs?: number;
|
|
10465
|
+
};
|
|
10466
|
+
stats: {
|
|
10467
|
+
candidatesFromVector: number;
|
|
10468
|
+
candidatesFromKeyword: number;
|
|
10469
|
+
totalMerged: number;
|
|
10470
|
+
reranked: number;
|
|
10471
|
+
};
|
|
10472
|
+
}
|
|
10473
|
+
interface EmbeddingServiceStats {
|
|
10474
|
+
totalSkillsIndexed: number;
|
|
10475
|
+
totalChunks: number;
|
|
10476
|
+
indexSizeBytes: number;
|
|
10477
|
+
lastIndexedAt: string;
|
|
10478
|
+
modelName: string;
|
|
10479
|
+
embeddingDimensions: number;
|
|
10480
|
+
}
|
|
10481
|
+
interface VectorStoreConfig {
|
|
10482
|
+
dbPath: string;
|
|
10483
|
+
tableName?: string;
|
|
10484
|
+
dimensions?: number;
|
|
10485
|
+
}
|
|
10486
|
+
interface IndexBuildProgress {
|
|
10487
|
+
phase: 'downloading' | 'loading' | 'embedding' | 'storing' | 'complete';
|
|
10488
|
+
current: number;
|
|
10489
|
+
total: number;
|
|
10490
|
+
skillName?: string;
|
|
10491
|
+
message?: string;
|
|
10492
|
+
}
|
|
10493
|
+
type IndexBuildCallback = (progress: IndexBuildProgress) => void;
|
|
10494
|
+
declare const MODEL_REGISTRY: {
|
|
10495
|
+
readonly embeddings: {
|
|
10496
|
+
readonly 'nomic-embed-text-v1.5.Q4_K_M.gguf': {
|
|
10497
|
+
readonly url: "https://huggingface.co/nomic-ai/nomic-embed-text-v1.5-GGUF/resolve/main/nomic-embed-text-v1.5.Q4_K_M.gguf";
|
|
10498
|
+
readonly size: 547000000;
|
|
10499
|
+
readonly dimensions: 768;
|
|
10500
|
+
readonly description: "Nomic Embed Text v1.5 - High quality embeddings";
|
|
10501
|
+
};
|
|
10502
|
+
};
|
|
10503
|
+
readonly llm: {
|
|
10504
|
+
readonly 'gemma-2b-it-Q4_K_M.gguf': {
|
|
10505
|
+
readonly url: "https://huggingface.co/bartowski/gemma-2-2b-it-GGUF/resolve/main/gemma-2-2b-it-Q4_K_M.gguf";
|
|
10506
|
+
readonly size: 1500000000;
|
|
10507
|
+
readonly description: "Gemma 2 2B Instruct - Fast query expansion and reranking";
|
|
10508
|
+
};
|
|
10509
|
+
};
|
|
10510
|
+
};
|
|
10511
|
+
declare const DEFAULT_CHUNKING_CONFIG: {
|
|
10512
|
+
readonly maxTokens: 800;
|
|
10513
|
+
readonly overlapPercent: 15;
|
|
10514
|
+
readonly minChunkSize: 100;
|
|
10515
|
+
};
|
|
10516
|
+
declare const DEFAULT_HYBRID_CONFIG: {
|
|
10517
|
+
readonly rrfK: 60;
|
|
10518
|
+
readonly semanticWeight: 0.5;
|
|
10519
|
+
readonly keywordWeight: 0.5;
|
|
10520
|
+
readonly rerankTopN: 30;
|
|
10521
|
+
readonly positionBlending: {
|
|
10522
|
+
readonly top3: {
|
|
10523
|
+
readonly retrieval: 0.75;
|
|
10524
|
+
readonly reranker: 0.25;
|
|
10525
|
+
};
|
|
10526
|
+
readonly top10: {
|
|
10527
|
+
readonly retrieval: 0.6;
|
|
10528
|
+
readonly reranker: 0.4;
|
|
10529
|
+
};
|
|
10530
|
+
readonly rest: {
|
|
10531
|
+
readonly retrieval: 0.4;
|
|
10532
|
+
readonly reranker: 0.6;
|
|
10533
|
+
};
|
|
10534
|
+
};
|
|
10535
|
+
readonly expansionCacheTtlMs: number;
|
|
10536
|
+
};
|
|
10537
|
+
interface RerankerInput {
|
|
10538
|
+
query: string;
|
|
10539
|
+
skillName: string;
|
|
10540
|
+
skillDescription: string;
|
|
10541
|
+
skillTags: string[];
|
|
10542
|
+
}
|
|
10543
|
+
interface RerankerOutput {
|
|
10544
|
+
skillName: string;
|
|
10545
|
+
score: number;
|
|
10546
|
+
reasoning?: string;
|
|
10547
|
+
}
|
|
10548
|
+
|
|
10549
|
+
declare class LocalModelManager {
|
|
10550
|
+
private config;
|
|
10551
|
+
private embedModelPath;
|
|
10552
|
+
private llmModelPath;
|
|
10553
|
+
constructor(config?: Partial<LocalModelConfig>);
|
|
10554
|
+
ensureModelsDirectory(): Promise<void>;
|
|
10555
|
+
getEmbedModelPath(): string;
|
|
10556
|
+
getLlmModelPath(): string;
|
|
10557
|
+
isEmbedModelAvailable(): boolean;
|
|
10558
|
+
isLlmModelAvailable(): boolean;
|
|
10559
|
+
private getModelInfo;
|
|
10560
|
+
downloadModel(modelType: 'embed' | 'llm', onProgress?: IndexBuildCallback): Promise<string>;
|
|
10561
|
+
ensureEmbedModel(onProgress?: IndexBuildCallback): Promise<string>;
|
|
10562
|
+
ensureLlmModel(onProgress?: IndexBuildCallback): Promise<string>;
|
|
10563
|
+
ensureAllModels(onProgress?: IndexBuildCallback): Promise<{
|
|
10564
|
+
embedModel: string;
|
|
10565
|
+
llmModel: string;
|
|
10566
|
+
}>;
|
|
10567
|
+
getPublicModelInfo(modelType: 'embed' | 'llm'): {
|
|
10568
|
+
name: string;
|
|
10569
|
+
path: string;
|
|
10570
|
+
available: boolean;
|
|
10571
|
+
size: number;
|
|
10572
|
+
description: string;
|
|
10573
|
+
};
|
|
10574
|
+
clearModels(): Promise<void>;
|
|
10575
|
+
getConfig(): Required<LocalModelConfig>;
|
|
10576
|
+
}
|
|
10577
|
+
declare function formatBytes(bytes: number): string;
|
|
10578
|
+
declare function getDefaultModelDir(): string;
|
|
10579
|
+
|
|
10580
|
+
declare class EmbeddingService {
|
|
10581
|
+
private modelManager;
|
|
10582
|
+
private model;
|
|
10583
|
+
private context;
|
|
10584
|
+
private initialized;
|
|
10585
|
+
private dimensions;
|
|
10586
|
+
constructor(modelManager?: LocalModelManager);
|
|
10587
|
+
initialize(onProgress?: IndexBuildCallback): Promise<void>;
|
|
10588
|
+
embed(text: string): Promise<Float32Array>;
|
|
10589
|
+
embedBatch(texts: string[]): Promise<Float32Array[]>;
|
|
10590
|
+
embedSkill(skill: SkillSummary): Promise<SkillEmbedding>;
|
|
10591
|
+
embedSkillWithChunks(skill: SkillSummary, fullContent?: string): Promise<SkillEmbedding>;
|
|
10592
|
+
embedSkills(skills: SkillSummary[], onProgress?: IndexBuildCallback): Promise<SkillEmbedding[]>;
|
|
10593
|
+
private buildSkillText;
|
|
10594
|
+
private chunkText;
|
|
10595
|
+
cosineSimilarity(a: Float32Array, b: Float32Array): number;
|
|
10596
|
+
getDimensions(): number;
|
|
10597
|
+
isInitialized(): boolean;
|
|
10598
|
+
dispose(): Promise<void>;
|
|
10599
|
+
}
|
|
10600
|
+
declare function createEmbeddingService(modelManager?: LocalModelManager): EmbeddingService;
|
|
10601
|
+
|
|
10602
|
+
declare class VectorStore {
|
|
10603
|
+
private config;
|
|
10604
|
+
private db;
|
|
10605
|
+
private initialized;
|
|
10606
|
+
private usingSqliteVec;
|
|
10607
|
+
private embeddings;
|
|
10608
|
+
private embeddingService;
|
|
10609
|
+
constructor(config?: Partial<VectorStoreConfig>, embeddingService?: EmbeddingService);
|
|
10610
|
+
initialize(): Promise<void>;
|
|
10611
|
+
private initializeSqliteVecTables;
|
|
10612
|
+
private initializeFallbackTables;
|
|
10613
|
+
private loadEmbeddingsFromDb;
|
|
10614
|
+
store(embedding: SkillEmbedding): Promise<void>;
|
|
10615
|
+
storeBatch(embeddings: SkillEmbedding[], onProgress?: IndexBuildCallback): Promise<void>;
|
|
10616
|
+
search(queryVector: Float32Array, limit?: number): Promise<VectorSearchResult[]>;
|
|
10617
|
+
private searchWithSqliteVec;
|
|
10618
|
+
private searchInMemory;
|
|
10619
|
+
searchChunks(queryVector: Float32Array, limit?: number): Promise<VectorSearchResult[]>;
|
|
10620
|
+
has(skillName: string): boolean;
|
|
10621
|
+
get(skillName: string): SkillEmbedding | undefined;
|
|
10622
|
+
delete(skillName: string): Promise<void>;
|
|
10623
|
+
clear(): Promise<void>;
|
|
10624
|
+
getStats(): EmbeddingServiceStats;
|
|
10625
|
+
isInitialized(): boolean;
|
|
10626
|
+
isUsingSqliteVec(): boolean;
|
|
10627
|
+
getEmbeddingCount(): number;
|
|
10628
|
+
close(): Promise<void>;
|
|
10629
|
+
}
|
|
10630
|
+
declare function createVectorStore(config?: Partial<VectorStoreConfig>, embeddingService?: EmbeddingService): VectorStore;
|
|
10631
|
+
|
|
10632
|
+
interface RankerResult {
|
|
10633
|
+
skillName: string;
|
|
10634
|
+
score: number;
|
|
10635
|
+
}
|
|
10636
|
+
interface RRFInput {
|
|
10637
|
+
source: string;
|
|
10638
|
+
results: RankerResult[];
|
|
10639
|
+
}
|
|
10640
|
+
declare function computeRRFScore(ranks: number[], k?: number): number;
|
|
10641
|
+
declare function fuseWithRRF(rankerInputs: RRFInput[], k?: number): RRFRanking[];
|
|
10642
|
+
declare function normalizeScores(results: RankerResult[]): RankerResult[];
|
|
10643
|
+
declare function weightedCombine(results: RRFInput[], weights: Record<string, number>): RankerResult[];
|
|
10644
|
+
declare function applyPositionAwareBlending(retrievalScores: Map<string, number>, rerankerScores: Map<string, number>, sortedSkillNames: string[], config?: {
|
|
10645
|
+
readonly top3: {
|
|
10646
|
+
readonly retrieval: 0.75;
|
|
10647
|
+
readonly reranker: 0.25;
|
|
10648
|
+
};
|
|
10649
|
+
readonly top10: {
|
|
10650
|
+
readonly retrieval: 0.6;
|
|
10651
|
+
readonly reranker: 0.4;
|
|
10652
|
+
};
|
|
10653
|
+
readonly rest: {
|
|
10654
|
+
readonly retrieval: 0.4;
|
|
10655
|
+
readonly reranker: 0.6;
|
|
10656
|
+
};
|
|
10657
|
+
}): Map<string, number>;
|
|
10658
|
+
declare function getRankFromScore(skillName: string, rankedResults: RankerResult[]): number;
|
|
10659
|
+
declare function mergeRankings(primaryRankings: RRFRanking[], secondaryRankings: RRFRanking[], primaryWeight?: number): RRFRanking[];
|
|
10660
|
+
|
|
10661
|
+
declare class QueryExpander {
|
|
10662
|
+
private modelManager;
|
|
10663
|
+
private model;
|
|
10664
|
+
private context;
|
|
10665
|
+
private initialized;
|
|
10666
|
+
private cacheTtlMs;
|
|
10667
|
+
constructor(modelManager?: LocalModelManager, cacheTtlMs?: number);
|
|
10668
|
+
initialize(onProgress?: IndexBuildCallback): Promise<void>;
|
|
10669
|
+
expand(query: string, maxVariations?: number): Promise<ExpandedQuery>;
|
|
10670
|
+
private generateVariations;
|
|
10671
|
+
private expandWithoutLLM;
|
|
10672
|
+
private getFromCache;
|
|
10673
|
+
private addToCache;
|
|
10674
|
+
clearCache(): void;
|
|
10675
|
+
isInitialized(): boolean;
|
|
10676
|
+
dispose(): Promise<void>;
|
|
10677
|
+
}
|
|
10678
|
+
declare function createQueryExpander(modelManager?: LocalModelManager, cacheTtlMs?: number): QueryExpander;
|
|
10679
|
+
declare function expandQuerySimple(query: string): ExpandedQuery;
|
|
10680
|
+
|
|
10681
|
+
declare class HybridSearchPipeline {
|
|
10682
|
+
private embeddingService;
|
|
10683
|
+
private vectorStore;
|
|
10684
|
+
private queryExpander;
|
|
10685
|
+
private modelManager;
|
|
10686
|
+
private recommendationEngine;
|
|
10687
|
+
private initialized;
|
|
10688
|
+
private skillsMap;
|
|
10689
|
+
constructor(config?: Partial<LocalModelConfig>);
|
|
10690
|
+
initialize(onProgress?: IndexBuildCallback): Promise<void>;
|
|
10691
|
+
buildIndex(skills: SkillSummary[], onProgress?: IndexBuildCallback): Promise<void>;
|
|
10692
|
+
search(options: HybridSearchOptions): Promise<HybridSearchResponse>;
|
|
10693
|
+
private rerank;
|
|
10694
|
+
loadSkillsIndex(index: SkillIndex): void;
|
|
10695
|
+
getStats(): {
|
|
10696
|
+
vectorStore: ReturnType<VectorStore['getStats']>;
|
|
10697
|
+
initialized: boolean;
|
|
10698
|
+
skillCount: number;
|
|
10699
|
+
};
|
|
10700
|
+
isInitialized(): boolean;
|
|
10701
|
+
dispose(): Promise<void>;
|
|
10702
|
+
}
|
|
10703
|
+
declare function createHybridSearchPipeline(config?: Partial<LocalModelConfig>): HybridSearchPipeline;
|
|
10704
|
+
declare function hybridSearch(skills: SkillSummary[], query: string, options?: Partial<HybridSearchOptions>): Promise<HybridSearchResponse>;
|
|
10705
|
+
|
|
10706
|
+
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 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, 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 FeedbackResult, 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, 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, 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 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 RankerResult, 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, type RerankerInput, type RerankerOutput, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SEARCH_PLANNING_PROMPT, SESSION_FILE, SKILL_DISCOVERY_PATHS, SKILL_MATCH_PROMPT, STANDARD_PLACEHOLDERS, 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, SkillLocation, SkillMdTranslator, SkillMetadata, type SkillNode, SkillPreferences, 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, 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, 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, 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 };
|