@skillkit/core 1.8.1 → 1.9.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 +835 -26
- package/dist/index.js +3416 -732
- package/dist/index.js.map +1 -1
- package/package.json +1 -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,188 @@ 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
|
+
interface TreeNode {
|
|
2419
|
+
id: string;
|
|
2420
|
+
name: string;
|
|
2421
|
+
description?: string;
|
|
2422
|
+
children: TreeNode[];
|
|
2423
|
+
skills: string[];
|
|
2424
|
+
skillCount: number;
|
|
2425
|
+
depth: number;
|
|
2426
|
+
}
|
|
2427
|
+
declare const TreeNodeSchema: z.ZodType<TreeNode>;
|
|
2428
|
+
declare const SkillTreeSchema: z.ZodObject<{
|
|
2429
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
2430
|
+
generatedAt: z.ZodString;
|
|
2431
|
+
rootNode: z.ZodType<TreeNode, z.ZodTypeDef, TreeNode>;
|
|
2432
|
+
totalSkills: z.ZodNumber;
|
|
2433
|
+
totalCategories: z.ZodNumber;
|
|
2434
|
+
maxDepth: z.ZodNumber;
|
|
2435
|
+
}, "strip", z.ZodTypeAny, {
|
|
2436
|
+
version: number;
|
|
2437
|
+
totalSkills: number;
|
|
2438
|
+
generatedAt: string;
|
|
2439
|
+
rootNode: TreeNode;
|
|
2440
|
+
totalCategories: number;
|
|
2441
|
+
maxDepth: number;
|
|
2442
|
+
}, {
|
|
2443
|
+
totalSkills: number;
|
|
2444
|
+
generatedAt: string;
|
|
2445
|
+
rootNode: TreeNode;
|
|
2446
|
+
totalCategories: number;
|
|
2447
|
+
maxDepth: number;
|
|
2448
|
+
version?: number | undefined;
|
|
2449
|
+
}>;
|
|
2450
|
+
type SkillTree = z.infer<typeof SkillTreeSchema>;
|
|
2451
|
+
interface TreePath {
|
|
2452
|
+
segments: string[];
|
|
2453
|
+
node: TreeNode;
|
|
2454
|
+
}
|
|
2455
|
+
interface CategoryMapping {
|
|
2456
|
+
category: string;
|
|
2457
|
+
subcategories: string[];
|
|
2458
|
+
tags: string[];
|
|
2459
|
+
keywords: string[];
|
|
2460
|
+
}
|
|
2461
|
+
declare const CATEGORY_TAXONOMY: CategoryMapping[];
|
|
2462
|
+
declare const TAG_TO_CATEGORY: Record<string, string[]>;
|
|
2463
|
+
interface TreeGeneratorOptions {
|
|
2464
|
+
maxDepth?: number;
|
|
2465
|
+
minSkillsPerNode?: number;
|
|
2466
|
+
includeEmpty?: boolean;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
declare const ReasoningProviderSchema: z.ZodEnum<["openai", "anthropic", "ollama", "mock"]>;
|
|
2470
|
+
type ReasoningProvider = z.infer<typeof ReasoningProviderSchema>;
|
|
2471
|
+
interface ReasoningConfig {
|
|
2472
|
+
provider: ReasoningProvider;
|
|
2473
|
+
apiKey?: string;
|
|
2474
|
+
model?: string;
|
|
2475
|
+
maxTokens?: number;
|
|
2476
|
+
temperature?: number;
|
|
2477
|
+
baseUrl?: string;
|
|
2478
|
+
}
|
|
2479
|
+
interface TreeSearchQuery {
|
|
2480
|
+
query: string;
|
|
2481
|
+
context?: ProjectProfile;
|
|
2482
|
+
maxResults?: number;
|
|
2483
|
+
minConfidence?: number;
|
|
2484
|
+
searchDepth?: number;
|
|
2485
|
+
}
|
|
2486
|
+
interface TreeTraversalStep {
|
|
2487
|
+
node: TreeNode;
|
|
2488
|
+
reasoning: string;
|
|
2489
|
+
confidence: number;
|
|
2490
|
+
action: 'explore' | 'skip' | 'select';
|
|
2491
|
+
selectedSkills: string[];
|
|
2492
|
+
}
|
|
2493
|
+
interface TreeSearchResult {
|
|
2494
|
+
skill: SkillSummary;
|
|
2495
|
+
path: string[];
|
|
2496
|
+
reasoning: string;
|
|
2497
|
+
confidence: number;
|
|
2498
|
+
relevantSections: string[];
|
|
2499
|
+
matchedKeywords: string[];
|
|
2500
|
+
}
|
|
2501
|
+
interface TreeReasoningResult {
|
|
2502
|
+
query: string;
|
|
2503
|
+
results: TreeSearchResult[];
|
|
2504
|
+
exploredPaths: string[][];
|
|
2505
|
+
reasoning: string;
|
|
2506
|
+
totalNodesVisited: number;
|
|
2507
|
+
processingTimeMs: number;
|
|
2508
|
+
}
|
|
2509
|
+
interface ExplainedMatch {
|
|
2510
|
+
matchedBecause: string[];
|
|
2511
|
+
relevantFor: string[];
|
|
2512
|
+
differentFrom: string[];
|
|
2513
|
+
confidence: 'high' | 'medium' | 'low';
|
|
2514
|
+
}
|
|
2515
|
+
interface ExplainedRecommendation {
|
|
2516
|
+
skill: SkillSummary;
|
|
2517
|
+
score: number;
|
|
2518
|
+
reasoning: ExplainedMatch;
|
|
2519
|
+
treePath: string[];
|
|
2520
|
+
}
|
|
2521
|
+
interface ReasoningPrompt {
|
|
2522
|
+
name: string;
|
|
2523
|
+
template: string;
|
|
2524
|
+
variables: string[];
|
|
2525
|
+
}
|
|
2526
|
+
interface LLMResponse {
|
|
2527
|
+
content: string;
|
|
2528
|
+
tokensUsed: number;
|
|
2529
|
+
model: string;
|
|
2530
|
+
}
|
|
2531
|
+
interface ReasoningCacheEntry {
|
|
2532
|
+
query: string;
|
|
2533
|
+
results: TreeSearchResult[];
|
|
2534
|
+
timestamp: number;
|
|
2535
|
+
ttl: number;
|
|
2536
|
+
}
|
|
2537
|
+
declare const DEFAULT_REASONING_CONFIG: ReasoningConfig;
|
|
2538
|
+
interface CategoryScore {
|
|
2539
|
+
category: string;
|
|
2540
|
+
score: number;
|
|
2541
|
+
reasoning: string;
|
|
2542
|
+
}
|
|
2543
|
+
interface SearchPlan {
|
|
2544
|
+
primaryCategories: string[];
|
|
2545
|
+
secondaryCategories: string[];
|
|
2546
|
+
keywords: string[];
|
|
2547
|
+
filters: {
|
|
2548
|
+
tags?: string[];
|
|
2549
|
+
frameworks?: string[];
|
|
2550
|
+
languages?: string[];
|
|
2551
|
+
};
|
|
2552
|
+
strategy: 'breadth-first' | 'depth-first' | 'targeted';
|
|
2553
|
+
}
|
|
2554
|
+
interface ReasoningEngineStats {
|
|
2555
|
+
totalQueries: number;
|
|
2556
|
+
cacheHits: number;
|
|
2557
|
+
cacheMisses: number;
|
|
2558
|
+
averageProcessingTimeMs: number;
|
|
2559
|
+
averageResultsPerQuery: number;
|
|
2560
|
+
}
|
|
2340
2561
|
|
|
2341
2562
|
/**
|
|
2342
2563
|
* Recommendation engine for matching skills to project profiles
|
|
@@ -2423,6 +2644,24 @@ declare class RecommendationEngine {
|
|
|
2423
2644
|
* Create a recommendation engine with default settings
|
|
2424
2645
|
*/
|
|
2425
2646
|
declare function createRecommendationEngine(weights?: Partial<ScoringWeights>): RecommendationEngine;
|
|
2647
|
+
/**
|
|
2648
|
+
* Enhanced Recommendation Engine with reasoning support
|
|
2649
|
+
*/
|
|
2650
|
+
declare class ReasoningRecommendationEngine extends RecommendationEngine {
|
|
2651
|
+
private reasoningEngine;
|
|
2652
|
+
private reasoningConfig?;
|
|
2653
|
+
constructor(weights?: Partial<ScoringWeights>, reasoningConfig?: Partial<ReasoningConfig>);
|
|
2654
|
+
initReasoning(): Promise<void>;
|
|
2655
|
+
recommendWithReasoning(profile: ProjectProfile, options?: ReasoningRecommendOptions): Promise<ReasoningRecommendationResult>;
|
|
2656
|
+
private buildQueryFromProfile;
|
|
2657
|
+
private extractKeywords;
|
|
2658
|
+
getReasoningStats(): ReasoningEngineStats | null;
|
|
2659
|
+
getSkillTree(): SkillTree | null;
|
|
2660
|
+
}
|
|
2661
|
+
/**
|
|
2662
|
+
* Create an enhanced recommendation engine with reasoning support
|
|
2663
|
+
*/
|
|
2664
|
+
declare function createReasoningRecommendationEngine(weights?: Partial<ScoringWeights>): ReasoningRecommendationEngine;
|
|
2426
2665
|
|
|
2427
2666
|
/**
|
|
2428
2667
|
* Known skill repositories to index
|
|
@@ -7822,6 +8061,8 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7822
8061
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7823
8062
|
/** Allowed tools for this agent */
|
|
7824
8063
|
allowedTools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
8064
|
+
/** Tools (Claude Code native format alias for allowedTools) */
|
|
8065
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
7825
8066
|
/** Agent-scoped hooks */
|
|
7826
8067
|
hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7827
8068
|
/** Hook event type */
|
|
@@ -7872,6 +8113,7 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7872
8113
|
'user-invocable'?: boolean | undefined;
|
|
7873
8114
|
'argument-hint'?: string | undefined;
|
|
7874
8115
|
skills?: string[] | undefined;
|
|
8116
|
+
tools?: string | string[] | undefined;
|
|
7875
8117
|
hooks?: {
|
|
7876
8118
|
type: "SessionStart" | "SessionEnd" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStop";
|
|
7877
8119
|
command: string;
|
|
@@ -7893,6 +8135,7 @@ declare const AgentFrontmatter: z.ZodObject<{
|
|
|
7893
8135
|
'user-invocable'?: boolean | undefined;
|
|
7894
8136
|
'argument-hint'?: string | undefined;
|
|
7895
8137
|
skills?: string[] | undefined;
|
|
8138
|
+
tools?: string | string[] | undefined;
|
|
7896
8139
|
hooks?: {
|
|
7897
8140
|
type: "SessionStart" | "SessionEnd" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStop";
|
|
7898
8141
|
command: string;
|
|
@@ -8195,6 +8438,46 @@ declare function isAgentCompatible(sourceFormat: AgentFormatCategory, targetForm
|
|
|
8195
8438
|
warnings: string[];
|
|
8196
8439
|
};
|
|
8197
8440
|
|
|
8441
|
+
/**
|
|
8442
|
+
* Skill to Subagent Converter
|
|
8443
|
+
*
|
|
8444
|
+
* Converts SkillKit skills into Claude Code native subagent format (.md files).
|
|
8445
|
+
* Supports both reference mode (skills: [skill-name]) and inline mode (embedded content).
|
|
8446
|
+
*/
|
|
8447
|
+
|
|
8448
|
+
/**
|
|
8449
|
+
* Options for skill-to-subagent conversion
|
|
8450
|
+
*/
|
|
8451
|
+
interface SkillToSubagentOptions {
|
|
8452
|
+
/** Embed full skill content in system prompt (default: false - use skills reference) */
|
|
8453
|
+
inline?: boolean;
|
|
8454
|
+
/** Model to use (sonnet, opus, haiku, inherit) */
|
|
8455
|
+
model?: 'sonnet' | 'opus' | 'haiku' | 'inherit';
|
|
8456
|
+
/** Permission mode for the agent */
|
|
8457
|
+
permissionMode?: AgentPermissionMode;
|
|
8458
|
+
/** Tools the agent is allowed to use */
|
|
8459
|
+
tools?: string[];
|
|
8460
|
+
/** Tools the agent cannot use */
|
|
8461
|
+
disallowedTools?: string[];
|
|
8462
|
+
}
|
|
8463
|
+
/**
|
|
8464
|
+
* Convert a skill to a CanonicalAgent representation
|
|
8465
|
+
*/
|
|
8466
|
+
declare function skillToSubagent(skill: Skill, skillContent: string, options?: SkillToSubagentOptions): CanonicalAgent;
|
|
8467
|
+
/**
|
|
8468
|
+
* Generate the markdown content for a Claude Code subagent from a skill
|
|
8469
|
+
*/
|
|
8470
|
+
declare function generateSubagentFromSkill(skill: Skill, skillContent: string, options?: SkillToSubagentOptions): string;
|
|
8471
|
+
/**
|
|
8472
|
+
* Load a skill and generate subagent content
|
|
8473
|
+
* Convenience function that reads skill content and generates subagent markdown
|
|
8474
|
+
*/
|
|
8475
|
+
declare function loadAndConvertSkill(skill: Skill, options?: SkillToSubagentOptions): {
|
|
8476
|
+
success: boolean;
|
|
8477
|
+
content?: string;
|
|
8478
|
+
error?: string;
|
|
8479
|
+
};
|
|
8480
|
+
|
|
8198
8481
|
/**
|
|
8199
8482
|
* Skill Translator
|
|
8200
8483
|
*
|
|
@@ -8430,14 +8713,14 @@ declare const CodeConvention: z.ZodObject<{
|
|
|
8430
8713
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8431
8714
|
quotes?: "single" | "double" | undefined;
|
|
8432
8715
|
semicolons?: boolean | undefined;
|
|
8433
|
-
trailingCommas?: "
|
|
8716
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8434
8717
|
maxLineLength?: number | undefined;
|
|
8435
8718
|
}, {
|
|
8436
8719
|
namingStyle?: "camelCase" | "snake_case" | "PascalCase" | "kebab-case" | undefined;
|
|
8437
8720
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8438
8721
|
quotes?: "single" | "double" | undefined;
|
|
8439
8722
|
semicolons?: boolean | undefined;
|
|
8440
|
-
trailingCommas?: "
|
|
8723
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8441
8724
|
maxLineLength?: number | undefined;
|
|
8442
8725
|
}>;
|
|
8443
8726
|
type CodeConvention = z.infer<typeof CodeConvention>;
|
|
@@ -8842,14 +9125,14 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
8842
9125
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8843
9126
|
quotes?: "single" | "double" | undefined;
|
|
8844
9127
|
semicolons?: boolean | undefined;
|
|
8845
|
-
trailingCommas?: "
|
|
9128
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8846
9129
|
maxLineLength?: number | undefined;
|
|
8847
9130
|
}, {
|
|
8848
9131
|
namingStyle?: "camelCase" | "snake_case" | "PascalCase" | "kebab-case" | undefined;
|
|
8849
9132
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
8850
9133
|
quotes?: "single" | "double" | undefined;
|
|
8851
9134
|
semicolons?: boolean | undefined;
|
|
8852
|
-
trailingCommas?: "
|
|
9135
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
8853
9136
|
maxLineLength?: number | undefined;
|
|
8854
9137
|
}>>;
|
|
8855
9138
|
ci: z.ZodOptional<z.ZodObject<{
|
|
@@ -9014,17 +9297,17 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9014
9297
|
hasCompose: boolean;
|
|
9015
9298
|
baseImage?: string | undefined;
|
|
9016
9299
|
} | undefined;
|
|
9017
|
-
env?: {
|
|
9018
|
-
hasEnvFile: boolean;
|
|
9019
|
-
hasEnvExample: boolean;
|
|
9020
|
-
envVariables?: string[] | undefined;
|
|
9021
|
-
} | undefined;
|
|
9022
9300
|
ci?: {
|
|
9023
9301
|
hasCI: boolean;
|
|
9024
9302
|
hasCD: boolean;
|
|
9025
9303
|
provider?: "github-actions" | "gitlab-ci" | "circleci" | "jenkins" | "travis" | "azure-pipelines" | undefined;
|
|
9026
9304
|
configFile?: string | undefined;
|
|
9027
9305
|
} | undefined;
|
|
9306
|
+
env?: {
|
|
9307
|
+
hasEnvFile: boolean;
|
|
9308
|
+
hasEnvExample: boolean;
|
|
9309
|
+
envVariables?: string[] | undefined;
|
|
9310
|
+
} | undefined;
|
|
9028
9311
|
structure?: {
|
|
9029
9312
|
hasWorkspaces: boolean;
|
|
9030
9313
|
type?: "flat" | "monorepo" | "src-based" | "packages" | undefined;
|
|
@@ -9039,7 +9322,7 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9039
9322
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
9040
9323
|
quotes?: "single" | "double" | undefined;
|
|
9041
9324
|
semicolons?: boolean | undefined;
|
|
9042
|
-
trailingCommas?: "
|
|
9325
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
9043
9326
|
maxLineLength?: number | undefined;
|
|
9044
9327
|
} | undefined;
|
|
9045
9328
|
buildCommands?: {
|
|
@@ -9135,17 +9418,17 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9135
9418
|
hasCompose?: boolean | undefined;
|
|
9136
9419
|
baseImage?: string | undefined;
|
|
9137
9420
|
} | undefined;
|
|
9138
|
-
env?: {
|
|
9139
|
-
hasEnvFile?: boolean | undefined;
|
|
9140
|
-
hasEnvExample?: boolean | undefined;
|
|
9141
|
-
envVariables?: string[] | undefined;
|
|
9142
|
-
} | undefined;
|
|
9143
9421
|
ci?: {
|
|
9144
9422
|
provider?: "github-actions" | "gitlab-ci" | "circleci" | "jenkins" | "travis" | "azure-pipelines" | undefined;
|
|
9145
9423
|
hasCI?: boolean | undefined;
|
|
9146
9424
|
hasCD?: boolean | undefined;
|
|
9147
9425
|
configFile?: string | undefined;
|
|
9148
9426
|
} | undefined;
|
|
9427
|
+
env?: {
|
|
9428
|
+
hasEnvFile?: boolean | undefined;
|
|
9429
|
+
hasEnvExample?: boolean | undefined;
|
|
9430
|
+
envVariables?: string[] | undefined;
|
|
9431
|
+
} | undefined;
|
|
9149
9432
|
packageManagers?: ("go" | "bun" | "npm" | "pnpm" | "yarn" | "pip" | "poetry" | "uv" | "cargo" | "maven" | "gradle" | "composer" | "bundler" | "cocoapods" | "swift-package-manager" | "nuget")[] | undefined;
|
|
9150
9433
|
structure?: {
|
|
9151
9434
|
type?: "flat" | "monorepo" | "src-based" | "packages" | undefined;
|
|
@@ -9161,7 +9444,7 @@ declare const PrimerAnalysis: z.ZodObject<{
|
|
|
9161
9444
|
indentation?: "tabs" | "spaces-2" | "spaces-4" | undefined;
|
|
9162
9445
|
quotes?: "single" | "double" | undefined;
|
|
9163
9446
|
semicolons?: boolean | undefined;
|
|
9164
|
-
trailingCommas?: "
|
|
9447
|
+
trailingCommas?: "none" | "all" | "es5" | undefined;
|
|
9165
9448
|
maxLineLength?: number | undefined;
|
|
9166
9449
|
} | undefined;
|
|
9167
9450
|
buildCommands?: {
|
|
@@ -9506,4 +9789,530 @@ declare function getGuidelineContent(id: string): string | null;
|
|
|
9506
9789
|
declare function getEnabledGuidelineContent(): string;
|
|
9507
9790
|
declare function isBuiltinGuideline(id: string): boolean;
|
|
9508
9791
|
|
|
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 };
|
|
9792
|
+
declare class TreeGenerator {
|
|
9793
|
+
private options;
|
|
9794
|
+
constructor(options?: TreeGeneratorOptions);
|
|
9795
|
+
generateTree(skills: SkillSummary[]): SkillTree;
|
|
9796
|
+
private buildTreeFromTaxonomy;
|
|
9797
|
+
private buildCategoryNode;
|
|
9798
|
+
private filterSkillsByCategory;
|
|
9799
|
+
private filterSkillsBySubcategory;
|
|
9800
|
+
private isSkillCategorized;
|
|
9801
|
+
private countTreeStats;
|
|
9802
|
+
findNode(tree: SkillTree, path: string[]): TreeNode | null;
|
|
9803
|
+
getPath(tree: SkillTree, skillName: string): string[] | null;
|
|
9804
|
+
getAllPaths(tree: SkillTree): Map<string, string[]>;
|
|
9805
|
+
getNodesAtDepth(tree: SkillTree, depth: number): TreeNode[];
|
|
9806
|
+
flattenTree(tree: SkillTree): TreeNode[];
|
|
9807
|
+
searchTree(tree: SkillTree, query: string): TreeNode[];
|
|
9808
|
+
}
|
|
9809
|
+
declare function generateSkillTree(skills: SkillSummary[], options?: TreeGeneratorOptions): SkillTree;
|
|
9810
|
+
|
|
9811
|
+
declare const TREE_FILE_NAME = "skill-tree.json";
|
|
9812
|
+
declare function serializeTree(tree: SkillTree): string;
|
|
9813
|
+
declare function deserializeTree(json: string): SkillTree;
|
|
9814
|
+
declare function saveTree(tree: SkillTree, path: string): void;
|
|
9815
|
+
declare function loadTree(path: string): SkillTree | null;
|
|
9816
|
+
declare function treeToText(tree: SkillTree, options?: {
|
|
9817
|
+
maxDepth?: number;
|
|
9818
|
+
}): string;
|
|
9819
|
+
declare function treeToMarkdown(tree: SkillTree): string;
|
|
9820
|
+
declare function compareTreeVersions(oldTree: SkillTree, newTree: SkillTree): {
|
|
9821
|
+
added: string[];
|
|
9822
|
+
removed: string[];
|
|
9823
|
+
moved: {
|
|
9824
|
+
skill: string;
|
|
9825
|
+
from: string[];
|
|
9826
|
+
to: string[];
|
|
9827
|
+
}[];
|
|
9828
|
+
};
|
|
9829
|
+
|
|
9830
|
+
type RelationType = 'similar' | 'complementary' | 'dependency' | 'alternative';
|
|
9831
|
+
interface SkillRelation {
|
|
9832
|
+
skillName: string;
|
|
9833
|
+
relationType: RelationType;
|
|
9834
|
+
strength: number;
|
|
9835
|
+
reason: string;
|
|
9836
|
+
}
|
|
9837
|
+
interface SkillNode {
|
|
9838
|
+
name: string;
|
|
9839
|
+
tags: string[];
|
|
9840
|
+
source?: string;
|
|
9841
|
+
relations: SkillRelation[];
|
|
9842
|
+
}
|
|
9843
|
+
interface SkillGraph {
|
|
9844
|
+
version: number;
|
|
9845
|
+
generatedAt: string;
|
|
9846
|
+
nodes: Map<string, SkillNode>;
|
|
9847
|
+
totalSkills: number;
|
|
9848
|
+
totalRelations: number;
|
|
9849
|
+
}
|
|
9850
|
+
interface RelatedSkillResult {
|
|
9851
|
+
skill: SkillSummary;
|
|
9852
|
+
relationType: RelationType;
|
|
9853
|
+
strength: number;
|
|
9854
|
+
reason: string;
|
|
9855
|
+
path?: string[];
|
|
9856
|
+
}
|
|
9857
|
+
declare function buildSkillGraph(skills: SkillSummary[]): SkillGraph;
|
|
9858
|
+
declare function getRelatedSkills(skillName: string, graph: SkillGraph, skills: SkillSummary[], options?: {
|
|
9859
|
+
limit?: number;
|
|
9860
|
+
types?: RelationType[];
|
|
9861
|
+
minStrength?: number;
|
|
9862
|
+
}): RelatedSkillResult[];
|
|
9863
|
+
declare function findSkillsByRelationType(graph: SkillGraph, skills: SkillSummary[], relationType: RelationType, limit?: number): Array<{
|
|
9864
|
+
skill: SkillSummary;
|
|
9865
|
+
relatedCount: number;
|
|
9866
|
+
}>;
|
|
9867
|
+
declare function getSkillPath(fromSkillName: string, toSkillName: string, graph: SkillGraph, maxHops?: number): string[] | null;
|
|
9868
|
+
declare function findSkillsInCategory(tree: SkillTree, categoryPath: string[]): string[];
|
|
9869
|
+
declare function serializeGraph(graph: SkillGraph): string;
|
|
9870
|
+
declare function deserializeGraph(json: string): SkillGraph;
|
|
9871
|
+
|
|
9872
|
+
declare class ReasoningEngine {
|
|
9873
|
+
private config;
|
|
9874
|
+
private skillMap;
|
|
9875
|
+
private tree;
|
|
9876
|
+
private cache;
|
|
9877
|
+
private stats;
|
|
9878
|
+
constructor(config?: Partial<ReasoningConfig>);
|
|
9879
|
+
loadSkills(skills: SkillSummary[]): void;
|
|
9880
|
+
loadTree(tree: SkillTree): void;
|
|
9881
|
+
generateTree(skills: SkillSummary[]): void;
|
|
9882
|
+
search(query: TreeSearchQuery): Promise<TreeReasoningResult>;
|
|
9883
|
+
explain(skill: SkillSummary, score: number, profile: ProjectProfile): Promise<ExplainedRecommendation>;
|
|
9884
|
+
explainBatch(skills: Array<{
|
|
9885
|
+
skill: SkillSummary;
|
|
9886
|
+
score: number;
|
|
9887
|
+
}>, profile: ProjectProfile): Promise<ExplainedRecommendation[]>;
|
|
9888
|
+
private createSearchPlan;
|
|
9889
|
+
private mockSearchPlan;
|
|
9890
|
+
private traverseTree;
|
|
9891
|
+
private findRelevantNodes;
|
|
9892
|
+
private evaluateSkillMatch;
|
|
9893
|
+
private fallbackSearch;
|
|
9894
|
+
private generateExplanation;
|
|
9895
|
+
private mockExplanation;
|
|
9896
|
+
private scoreToConfidence;
|
|
9897
|
+
private getSkillPath;
|
|
9898
|
+
private buildReasoningSummary;
|
|
9899
|
+
private callLLM;
|
|
9900
|
+
private getCacheKey;
|
|
9901
|
+
private getFromCache;
|
|
9902
|
+
private addToCache;
|
|
9903
|
+
private updateStats;
|
|
9904
|
+
getStats(): ReasoningEngineStats;
|
|
9905
|
+
clearCache(): void;
|
|
9906
|
+
getTree(): SkillTree | null;
|
|
9907
|
+
}
|
|
9908
|
+
declare function createReasoningEngine(config?: Partial<ReasoningConfig>): ReasoningEngine;
|
|
9909
|
+
|
|
9910
|
+
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}";
|
|
9911
|
+
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\"}";
|
|
9912
|
+
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}";
|
|
9913
|
+
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}";
|
|
9914
|
+
declare function buildSearchPlanPrompt(query: string, categories: string[], context?: ProjectProfile): string;
|
|
9915
|
+
declare function buildCategoryRelevancePrompt(query: string, node: TreeNode): string;
|
|
9916
|
+
declare function buildSkillMatchPrompt(query: string, skill: {
|
|
9917
|
+
name: string;
|
|
9918
|
+
description?: string;
|
|
9919
|
+
tags?: string[];
|
|
9920
|
+
}, context?: ProjectProfile): string;
|
|
9921
|
+
declare function buildExplanationPrompt(skill: {
|
|
9922
|
+
name: string;
|
|
9923
|
+
description?: string;
|
|
9924
|
+
tags?: string[];
|
|
9925
|
+
}, score: number, project: ProjectProfile): string;
|
|
9926
|
+
declare function extractJsonFromResponse(response: string): unknown;
|
|
9927
|
+
declare function validateSearchPlan(data: unknown): SearchPlan;
|
|
9928
|
+
declare function validateCategoryScore(data: unknown, fallbackCategory?: string): CategoryScore;
|
|
9929
|
+
|
|
9930
|
+
declare const ConnectorCategorySchema: z.ZodEnum<["crm", "chat", "email", "calendar", "docs", "data", "search", "enrichment", "analytics", "storage", "notifications", "ai", "custom"]>;
|
|
9931
|
+
type ConnectorCategory = z.infer<typeof ConnectorCategorySchema>;
|
|
9932
|
+
declare const ConnectorPlaceholderSchema: z.ZodObject<{
|
|
9933
|
+
placeholder: z.ZodString;
|
|
9934
|
+
category: z.ZodEnum<["crm", "chat", "email", "calendar", "docs", "data", "search", "enrichment", "analytics", "storage", "notifications", "ai", "custom"]>;
|
|
9935
|
+
description: z.ZodString;
|
|
9936
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9937
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9938
|
+
}, "strip", z.ZodTypeAny, {
|
|
9939
|
+
description: string;
|
|
9940
|
+
category: "custom" | "search" | "ai" | "chat" | "docs" | "data" | "crm" | "email" | "calendar" | "enrichment" | "analytics" | "storage" | "notifications";
|
|
9941
|
+
required: boolean;
|
|
9942
|
+
examples: string[];
|
|
9943
|
+
placeholder: string;
|
|
9944
|
+
}, {
|
|
9945
|
+
description: string;
|
|
9946
|
+
category: "custom" | "search" | "ai" | "chat" | "docs" | "data" | "crm" | "email" | "calendar" | "enrichment" | "analytics" | "storage" | "notifications";
|
|
9947
|
+
placeholder: string;
|
|
9948
|
+
required?: boolean | undefined;
|
|
9949
|
+
examples?: string[] | undefined;
|
|
9950
|
+
}>;
|
|
9951
|
+
type ConnectorPlaceholder = z.infer<typeof ConnectorPlaceholderSchema>;
|
|
9952
|
+
declare const ConnectorMappingSchema: z.ZodObject<{
|
|
9953
|
+
placeholder: z.ZodString;
|
|
9954
|
+
tool: z.ZodString;
|
|
9955
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
9956
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9957
|
+
}, "strip", z.ZodTypeAny, {
|
|
9958
|
+
tool: string;
|
|
9959
|
+
placeholder: string;
|
|
9960
|
+
config?: Record<string, unknown> | undefined;
|
|
9961
|
+
mcpServer?: string | undefined;
|
|
9962
|
+
}, {
|
|
9963
|
+
tool: string;
|
|
9964
|
+
placeholder: string;
|
|
9965
|
+
config?: Record<string, unknown> | undefined;
|
|
9966
|
+
mcpServer?: string | undefined;
|
|
9967
|
+
}>;
|
|
9968
|
+
type ConnectorMapping = z.infer<typeof ConnectorMappingSchema>;
|
|
9969
|
+
declare const ConnectorConfigSchema: z.ZodObject<{
|
|
9970
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
9971
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
9972
|
+
placeholder: z.ZodString;
|
|
9973
|
+
tool: z.ZodString;
|
|
9974
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
9975
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9976
|
+
}, "strip", z.ZodTypeAny, {
|
|
9977
|
+
tool: string;
|
|
9978
|
+
placeholder: string;
|
|
9979
|
+
config?: Record<string, unknown> | undefined;
|
|
9980
|
+
mcpServer?: string | undefined;
|
|
9981
|
+
}, {
|
|
9982
|
+
tool: string;
|
|
9983
|
+
placeholder: string;
|
|
9984
|
+
config?: Record<string, unknown> | undefined;
|
|
9985
|
+
mcpServer?: string | undefined;
|
|
9986
|
+
}>, "many">;
|
|
9987
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9988
|
+
}, "strip", z.ZodTypeAny, {
|
|
9989
|
+
version: number;
|
|
9990
|
+
mappings: {
|
|
9991
|
+
tool: string;
|
|
9992
|
+
placeholder: string;
|
|
9993
|
+
config?: Record<string, unknown> | undefined;
|
|
9994
|
+
mcpServer?: string | undefined;
|
|
9995
|
+
}[];
|
|
9996
|
+
description?: string | undefined;
|
|
9997
|
+
}, {
|
|
9998
|
+
mappings: {
|
|
9999
|
+
tool: string;
|
|
10000
|
+
placeholder: string;
|
|
10001
|
+
config?: Record<string, unknown> | undefined;
|
|
10002
|
+
mcpServer?: string | undefined;
|
|
10003
|
+
}[];
|
|
10004
|
+
description?: string | undefined;
|
|
10005
|
+
version?: number | undefined;
|
|
10006
|
+
}>;
|
|
10007
|
+
type ConnectorConfig = z.infer<typeof ConnectorConfigSchema>;
|
|
10008
|
+
declare const STANDARD_PLACEHOLDERS: Record<ConnectorCategory, ConnectorPlaceholder>;
|
|
10009
|
+
interface PlaceholderMatch {
|
|
10010
|
+
placeholder: string;
|
|
10011
|
+
category: ConnectorCategory | null;
|
|
10012
|
+
line: number;
|
|
10013
|
+
column: number;
|
|
10014
|
+
context: string;
|
|
10015
|
+
}
|
|
10016
|
+
interface PlaceholderReplacement {
|
|
10017
|
+
original: string;
|
|
10018
|
+
replacement: string;
|
|
10019
|
+
category: ConnectorCategory | null;
|
|
10020
|
+
}
|
|
10021
|
+
interface ConnectorAnalysis {
|
|
10022
|
+
placeholders: PlaceholderMatch[];
|
|
10023
|
+
categories: ConnectorCategory[];
|
|
10024
|
+
requiredCount: number;
|
|
10025
|
+
optionalCount: number;
|
|
10026
|
+
hasUnknownPlaceholders: boolean;
|
|
10027
|
+
}
|
|
10028
|
+
|
|
10029
|
+
declare function detectPlaceholders(content: string): PlaceholderMatch[];
|
|
10030
|
+
declare function analyzePlaceholders(content: string): ConnectorAnalysis;
|
|
10031
|
+
declare function replacePlaceholders(content: string, mappings: ConnectorMapping[]): {
|
|
10032
|
+
result: string;
|
|
10033
|
+
replacements: PlaceholderReplacement[];
|
|
10034
|
+
};
|
|
10035
|
+
declare function applyConnectorConfig(content: string, config: ConnectorConfig): {
|
|
10036
|
+
result: string;
|
|
10037
|
+
replacements: PlaceholderReplacement[];
|
|
10038
|
+
};
|
|
10039
|
+
declare function getPlaceholderInfo(placeholder: string): ConnectorPlaceholder | null;
|
|
10040
|
+
declare function generateConnectorsMarkdown(analysis: ConnectorAnalysis): string;
|
|
10041
|
+
declare function createConnectorConfig(mappings: Array<{
|
|
10042
|
+
placeholder: string;
|
|
10043
|
+
tool: string;
|
|
10044
|
+
mcpServer?: string;
|
|
10045
|
+
}>): ConnectorConfig;
|
|
10046
|
+
declare function validateConnectorConfig(config: ConnectorConfig, content: string): {
|
|
10047
|
+
valid: boolean;
|
|
10048
|
+
errors: string[];
|
|
10049
|
+
warnings: string[];
|
|
10050
|
+
};
|
|
10051
|
+
declare function suggestMappingsFromMcp(mcpServers: string[]): ConnectorMapping[];
|
|
10052
|
+
|
|
10053
|
+
declare const ExecutionStepStatusSchema: z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>;
|
|
10054
|
+
type ExecutionStepStatus = z.infer<typeof ExecutionStepStatusSchema>;
|
|
10055
|
+
declare const ExecutionStepSchema: z.ZodObject<{
|
|
10056
|
+
id: z.ZodString;
|
|
10057
|
+
name: z.ZodString;
|
|
10058
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10059
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10060
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10061
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10062
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
10063
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10064
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10065
|
+
error: z.ZodOptional<z.ZodString>;
|
|
10066
|
+
retryCount: z.ZodDefault<z.ZodNumber>;
|
|
10067
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10068
|
+
}, "strip", z.ZodTypeAny, {
|
|
10069
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10070
|
+
name: string;
|
|
10071
|
+
id: string;
|
|
10072
|
+
retryCount: number;
|
|
10073
|
+
description?: string | undefined;
|
|
10074
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10075
|
+
error?: string | undefined;
|
|
10076
|
+
startedAt?: string | undefined;
|
|
10077
|
+
completedAt?: string | undefined;
|
|
10078
|
+
output?: Record<string, unknown> | undefined;
|
|
10079
|
+
duration?: number | undefined;
|
|
10080
|
+
input?: Record<string, unknown> | undefined;
|
|
10081
|
+
}, {
|
|
10082
|
+
name: string;
|
|
10083
|
+
id: string;
|
|
10084
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10085
|
+
description?: string | undefined;
|
|
10086
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10087
|
+
error?: string | undefined;
|
|
10088
|
+
startedAt?: string | undefined;
|
|
10089
|
+
completedAt?: string | undefined;
|
|
10090
|
+
output?: Record<string, unknown> | undefined;
|
|
10091
|
+
duration?: number | undefined;
|
|
10092
|
+
input?: Record<string, unknown> | undefined;
|
|
10093
|
+
retryCount?: number | undefined;
|
|
10094
|
+
}>;
|
|
10095
|
+
type ExecutionStep = z.infer<typeof ExecutionStepSchema>;
|
|
10096
|
+
declare const ExecutionFlowSchema: z.ZodObject<{
|
|
10097
|
+
id: z.ZodString;
|
|
10098
|
+
skillName: z.ZodString;
|
|
10099
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
10100
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
10101
|
+
id: z.ZodString;
|
|
10102
|
+
name: z.ZodString;
|
|
10103
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10104
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10105
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10106
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10107
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
10108
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10109
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10110
|
+
error: z.ZodOptional<z.ZodString>;
|
|
10111
|
+
retryCount: z.ZodDefault<z.ZodNumber>;
|
|
10112
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10113
|
+
}, "strip", z.ZodTypeAny, {
|
|
10114
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10115
|
+
name: string;
|
|
10116
|
+
id: string;
|
|
10117
|
+
retryCount: number;
|
|
10118
|
+
description?: string | undefined;
|
|
10119
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10120
|
+
error?: string | undefined;
|
|
10121
|
+
startedAt?: string | undefined;
|
|
10122
|
+
completedAt?: string | undefined;
|
|
10123
|
+
output?: Record<string, unknown> | undefined;
|
|
10124
|
+
duration?: number | undefined;
|
|
10125
|
+
input?: Record<string, unknown> | undefined;
|
|
10126
|
+
}, {
|
|
10127
|
+
name: string;
|
|
10128
|
+
id: string;
|
|
10129
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10130
|
+
description?: string | undefined;
|
|
10131
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10132
|
+
error?: string | undefined;
|
|
10133
|
+
startedAt?: string | undefined;
|
|
10134
|
+
completedAt?: string | undefined;
|
|
10135
|
+
output?: Record<string, unknown> | undefined;
|
|
10136
|
+
duration?: number | undefined;
|
|
10137
|
+
input?: Record<string, unknown> | undefined;
|
|
10138
|
+
retryCount?: number | undefined;
|
|
10139
|
+
}>, "many">;
|
|
10140
|
+
currentStepIndex: z.ZodDefault<z.ZodNumber>;
|
|
10141
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
|
|
10142
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
10143
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
10144
|
+
totalDuration: z.ZodOptional<z.ZodNumber>;
|
|
10145
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10146
|
+
mode: z.ZodDefault<z.ZodEnum<["standalone", "enhanced"]>>;
|
|
10147
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10148
|
+
}, "strip", z.ZodTypeAny, {
|
|
10149
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10150
|
+
version: number;
|
|
10151
|
+
id: string;
|
|
10152
|
+
skillName: string;
|
|
10153
|
+
steps: {
|
|
10154
|
+
status: "pending" | "completed" | "failed" | "running" | "skipped";
|
|
10155
|
+
name: string;
|
|
10156
|
+
id: string;
|
|
10157
|
+
retryCount: number;
|
|
10158
|
+
description?: string | undefined;
|
|
10159
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10160
|
+
error?: string | undefined;
|
|
10161
|
+
startedAt?: string | undefined;
|
|
10162
|
+
completedAt?: string | undefined;
|
|
10163
|
+
output?: Record<string, unknown> | undefined;
|
|
10164
|
+
duration?: number | undefined;
|
|
10165
|
+
input?: Record<string, unknown> | undefined;
|
|
10166
|
+
}[];
|
|
10167
|
+
mode: "standalone" | "enhanced";
|
|
10168
|
+
currentStepIndex: number;
|
|
10169
|
+
context?: Record<string, unknown> | undefined;
|
|
10170
|
+
startedAt?: string | undefined;
|
|
10171
|
+
completedAt?: string | undefined;
|
|
10172
|
+
totalDuration?: number | undefined;
|
|
10173
|
+
mcpServers?: string[] | undefined;
|
|
10174
|
+
}, {
|
|
10175
|
+
id: string;
|
|
10176
|
+
skillName: string;
|
|
10177
|
+
steps: {
|
|
10178
|
+
name: string;
|
|
10179
|
+
id: string;
|
|
10180
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10181
|
+
description?: string | undefined;
|
|
10182
|
+
metadata?: Record<string, unknown> | undefined;
|
|
10183
|
+
error?: string | undefined;
|
|
10184
|
+
startedAt?: string | undefined;
|
|
10185
|
+
completedAt?: string | undefined;
|
|
10186
|
+
output?: Record<string, unknown> | undefined;
|
|
10187
|
+
duration?: number | undefined;
|
|
10188
|
+
input?: Record<string, unknown> | undefined;
|
|
10189
|
+
retryCount?: number | undefined;
|
|
10190
|
+
}[];
|
|
10191
|
+
status?: "pending" | "completed" | "failed" | "running" | "skipped" | undefined;
|
|
10192
|
+
version?: number | undefined;
|
|
10193
|
+
context?: Record<string, unknown> | undefined;
|
|
10194
|
+
startedAt?: string | undefined;
|
|
10195
|
+
completedAt?: string | undefined;
|
|
10196
|
+
mode?: "standalone" | "enhanced" | undefined;
|
|
10197
|
+
currentStepIndex?: number | undefined;
|
|
10198
|
+
totalDuration?: number | undefined;
|
|
10199
|
+
mcpServers?: string[] | undefined;
|
|
10200
|
+
}>;
|
|
10201
|
+
type ExecutionFlow = z.infer<typeof ExecutionFlowSchema>;
|
|
10202
|
+
interface ExecutionFlowConfig {
|
|
10203
|
+
maxRetries?: number;
|
|
10204
|
+
retryDelay?: number;
|
|
10205
|
+
timeout?: number;
|
|
10206
|
+
onStepStart?: (step: ExecutionStep, flow: ExecutionFlow) => void;
|
|
10207
|
+
onStepComplete?: (step: ExecutionStep, flow: ExecutionFlow) => void;
|
|
10208
|
+
onStepError?: (step: ExecutionStep, error: Error, flow: ExecutionFlow) => void;
|
|
10209
|
+
onFlowComplete?: (flow: ExecutionFlow) => void;
|
|
10210
|
+
}
|
|
10211
|
+
interface StepDefinition {
|
|
10212
|
+
name: string;
|
|
10213
|
+
description?: string;
|
|
10214
|
+
execute: (input: Record<string, unknown>, context: ExecutionContext) => Promise<Record<string, unknown>>;
|
|
10215
|
+
rollback?: (context: ExecutionContext) => Promise<void>;
|
|
10216
|
+
condition?: (context: ExecutionContext) => boolean;
|
|
10217
|
+
retryable?: boolean;
|
|
10218
|
+
timeout?: number;
|
|
10219
|
+
}
|
|
10220
|
+
interface ExecutionContext {
|
|
10221
|
+
flow: ExecutionFlow;
|
|
10222
|
+
stepIndex: number;
|
|
10223
|
+
previousOutput?: Record<string, unknown>;
|
|
10224
|
+
mcpTools?: string[];
|
|
10225
|
+
isEnhanced: boolean;
|
|
10226
|
+
}
|
|
10227
|
+
interface FlowSummary {
|
|
10228
|
+
id: string;
|
|
10229
|
+
skillName: string;
|
|
10230
|
+
status: ExecutionStepStatus;
|
|
10231
|
+
progress: number;
|
|
10232
|
+
currentStep?: string;
|
|
10233
|
+
startedAt?: string;
|
|
10234
|
+
completedAt?: string;
|
|
10235
|
+
totalDuration?: number;
|
|
10236
|
+
stepsCompleted: number;
|
|
10237
|
+
totalSteps: number;
|
|
10238
|
+
mode: 'standalone' | 'enhanced';
|
|
10239
|
+
}
|
|
10240
|
+
interface FlowMetrics {
|
|
10241
|
+
totalFlows: number;
|
|
10242
|
+
completedFlows: number;
|
|
10243
|
+
failedFlows: number;
|
|
10244
|
+
averageDuration: number;
|
|
10245
|
+
stepMetrics: Map<string, {
|
|
10246
|
+
executionCount: number;
|
|
10247
|
+
successCount: number;
|
|
10248
|
+
failureCount: number;
|
|
10249
|
+
averageDuration: number;
|
|
10250
|
+
}>;
|
|
10251
|
+
}
|
|
10252
|
+
|
|
10253
|
+
declare class ExecutionManager {
|
|
10254
|
+
private flows;
|
|
10255
|
+
private stepDefinitions;
|
|
10256
|
+
private config;
|
|
10257
|
+
private metrics;
|
|
10258
|
+
constructor(config?: ExecutionFlowConfig);
|
|
10259
|
+
createFlow(skillName: string, steps: Array<{
|
|
10260
|
+
name: string;
|
|
10261
|
+
description?: string;
|
|
10262
|
+
}>, options?: {
|
|
10263
|
+
mode?: 'standalone' | 'enhanced';
|
|
10264
|
+
mcpServers?: string[];
|
|
10265
|
+
context?: Record<string, unknown>;
|
|
10266
|
+
}): ExecutionFlow;
|
|
10267
|
+
registerStepDefinitions(skillName: string, definitions: StepDefinition[]): void;
|
|
10268
|
+
executeFlow(flowId: string): Promise<ExecutionFlow>;
|
|
10269
|
+
private executeStep;
|
|
10270
|
+
getFlow(flowId: string): ExecutionFlow | undefined;
|
|
10271
|
+
getFlowSummary(flowId: string): FlowSummary | null;
|
|
10272
|
+
getAllFlowSummaries(): FlowSummary[];
|
|
10273
|
+
getMetrics(): FlowMetrics;
|
|
10274
|
+
cancelFlow(flowId: string): boolean;
|
|
10275
|
+
clearCompletedFlows(): number;
|
|
10276
|
+
private calculateDuration;
|
|
10277
|
+
private updateAverageDuration;
|
|
10278
|
+
private updateStepMetrics;
|
|
10279
|
+
private delay;
|
|
10280
|
+
}
|
|
10281
|
+
declare function createExecutionManager(config?: ExecutionFlowConfig): ExecutionManager;
|
|
10282
|
+
|
|
10283
|
+
type ExecutionMode = 'standalone' | 'enhanced';
|
|
10284
|
+
interface ModeDetectionResult {
|
|
10285
|
+
mode: ExecutionMode;
|
|
10286
|
+
availableServers: string[];
|
|
10287
|
+
missingServers: string[];
|
|
10288
|
+
capabilities: ModeCapabilities;
|
|
10289
|
+
connectorMappings: ConnectorMapping[];
|
|
10290
|
+
}
|
|
10291
|
+
interface ModeCapabilities {
|
|
10292
|
+
canAccessCRM: boolean;
|
|
10293
|
+
canSendEmails: boolean;
|
|
10294
|
+
canAccessCalendar: boolean;
|
|
10295
|
+
canAccessDocs: boolean;
|
|
10296
|
+
canQueryData: boolean;
|
|
10297
|
+
canEnrichData: boolean;
|
|
10298
|
+
canSendNotifications: boolean;
|
|
10299
|
+
canUseAI: boolean;
|
|
10300
|
+
hasChat: boolean;
|
|
10301
|
+
hasStorage: boolean;
|
|
10302
|
+
hasSearch: boolean;
|
|
10303
|
+
hasAnalytics: boolean;
|
|
10304
|
+
}
|
|
10305
|
+
interface ExecutionModeConfig {
|
|
10306
|
+
requiredServers?: string[];
|
|
10307
|
+
optionalServers?: string[];
|
|
10308
|
+
mcpConfigPaths?: string[];
|
|
10309
|
+
fallbackToStandalone?: boolean;
|
|
10310
|
+
}
|
|
10311
|
+
declare function detectExecutionMode(config?: ExecutionModeConfig): ModeDetectionResult;
|
|
10312
|
+
declare function getModeDescription(result: ModeDetectionResult): string;
|
|
10313
|
+
declare function requireEnhancedMode(result: ModeDetectionResult): void;
|
|
10314
|
+
declare function requireCapability(result: ModeDetectionResult, capability: keyof ModeCapabilities): void;
|
|
10315
|
+
declare function getStandaloneAlternative(capability: keyof ModeCapabilities): string;
|
|
10316
|
+
declare function createModeAwareExecutor<T>(enhancedFn: () => Promise<T>, standaloneFn: () => Promise<T>, modeResult: ModeDetectionResult): () => Promise<T>;
|
|
10317
|
+
|
|
10318
|
+
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_CONTEXT_CATEGORIES, DEFAULT_GUIDELINE_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, 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 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, 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 LLMResponse, 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 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, type ReasoningCacheEntry, type ReasoningConfig, ReasoningEngine, type ReasoningEngineStats, type ReasoningPrompt, type ReasoningProvider, ReasoningProviderSchema, type ReasoningRecommendOptions, ReasoningRecommendationEngine, type ReasoningRecommendationResult, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type RelatedSkillResult, type RelationType, 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 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 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, approvePattern, benchmarkSkill, buildCategoryRelevancePrompt, buildExplanationPrompt, buildSearchPlanPrompt, buildSkillGraph, buildSkillIndex, buildSkillMatchPrompt, calculateBaseSkillsUrl, calculatePercentile, canTranslate, clusterPatterns, compareTreeVersions, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createConnectorConfig, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createExecutionManager, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createModeAwareExecutor, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createReasoningEngine, createReasoningRecommendationEngine, createRecommendationEngine, createRuleBasedCompressor, createSessionFile, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, deserializeGraph, deserializeTree, detectCategory, detectExecutionMode, detectPlaceholders, detectProvider, detectSkillFormat, disableGuideline, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverSkills, dryRunExecutor, enableGuideline, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executeWithAgent, exportBundle, exportPatternsAsJson, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractJsonFromResponse, extractPatternsFromSession, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, findSkillsByRelationType, findSkillsInCategory, formatSkillAsPrompt, fromCanonicalAgent, 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, 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, getRecentBugFixes, getRecentRefactors, getRelatedSkills, getSearchDirs, getSkillPath, getSkillsDir, getStackTags, getStandaloneAlternative, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, 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, 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, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };
|