@neovate/code 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -179,6 +179,7 @@ export declare class Context {
179
179
  argvConfig: Record<string, any>;
180
180
  mcpManager: MCPManager;
181
181
  backgroundTaskManager: BackgroundTaskManager;
182
+ skillManager: SkillManager;
182
183
  messageBus?: MessageBus;
183
184
  plugins: (string | Plugin_2)[];
184
185
  constructor(opts: ContextOpts);
@@ -208,6 +209,7 @@ declare type ContextOpts = {
208
209
  argvConfig: Record<string, any>;
209
210
  mcpManager: MCPManager;
210
211
  backgroundTaskManager: BackgroundTaskManager;
212
+ skillManager: SkillManager;
211
213
  messageBus?: MessageBus;
212
214
  plugins: (string | Plugin_2)[];
213
215
  };
@@ -1571,6 +1573,44 @@ declare type SessionsResumeOutput = {
1571
1573
  };
1572
1574
  };
1573
1575
 
1576
+ declare interface SkillError {
1577
+ path: string;
1578
+ message: string;
1579
+ }
1580
+
1581
+ declare class SkillManager {
1582
+ private skillsMap;
1583
+ private errors;
1584
+ private paths;
1585
+ constructor(opts: SkillManagerOpts);
1586
+ getSkills(): SkillMetadata[];
1587
+ getSkill(name: string): SkillMetadata | undefined;
1588
+ getErrors(): SkillError[];
1589
+ readSkillBody(skill: SkillMetadata): Promise<string>;
1590
+ loadSkills(): Promise<void>;
1591
+ private loadSkillsFromDirectory;
1592
+ private loadSkillFile;
1593
+ private parseSkillFile;
1594
+ }
1595
+
1596
+ declare interface SkillManagerOpts {
1597
+ paths: Paths;
1598
+ }
1599
+
1600
+ declare interface SkillMetadata {
1601
+ name: string;
1602
+ description: string;
1603
+ path: string;
1604
+ source: SkillSource;
1605
+ }
1606
+
1607
+ declare enum SkillSource {
1608
+ GlobalClaude = "global-claude",
1609
+ Global = "global",
1610
+ ProjectClaude = "project-claude",
1611
+ Project = "project"
1612
+ }
1613
+
1574
1614
  declare type SlashCommand = LocalCommand | LocalJSXCommand | PromptCommand;
1575
1615
 
1576
1616
  declare type SlashCommandExecuteInput = {