@neovate/code 0.21.0 → 0.22.1
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/cli.mjs +583 -568
- package/dist/index.d.ts +43 -1
- package/dist/index.mjs +583 -568
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import EventEmitter from 'events';
|
|
2
2
|
import { LanguageModelV2 } from '@openrouter/ai-sdk-provider';
|
|
3
|
+
import type { OpenAICompatibleProvider } from '@ai-sdk/openai-compatible';
|
|
3
4
|
import type { OpenAIProvider } from '@ai-sdk/openai';
|
|
4
5
|
import * as z from 'zod';
|
|
5
6
|
import { z as _zod } from 'zod';
|
|
6
7
|
|
|
7
8
|
/** Supported application types for open and detect operations */
|
|
8
|
-
declare type App = 'cursor' | 'vscode' | 'vscode-insiders' | 'zed' | 'windsurf' | 'iterm' | 'warp' | 'terminal' | 'antigravity' | 'finder' | 'sourcetree';
|
|
9
|
+
declare type App = 'cursor' | 'vscode' | 'vscode-insiders' | 'zed' | 'windsurf' | 'iterm' | 'warp' | 'terminal' | 'antigravity' | 'finder' | 'sourcetree' | 'fork';
|
|
9
10
|
|
|
10
11
|
declare type ApprovalCategory = 'read' | 'write' | 'command' | 'network' | 'ask';
|
|
11
12
|
|
|
@@ -179,6 +180,7 @@ export declare class Context {
|
|
|
179
180
|
argvConfig: Record<string, any>;
|
|
180
181
|
mcpManager: MCPManager;
|
|
181
182
|
backgroundTaskManager: BackgroundTaskManager;
|
|
183
|
+
skillManager: SkillManager;
|
|
182
184
|
messageBus?: MessageBus;
|
|
183
185
|
plugins: (string | Plugin_2)[];
|
|
184
186
|
constructor(opts: ContextOpts);
|
|
@@ -208,6 +210,7 @@ declare type ContextOpts = {
|
|
|
208
210
|
argvConfig: Record<string, any>;
|
|
209
211
|
mcpManager: MCPManager;
|
|
210
212
|
backgroundTaskManager: BackgroundTaskManager;
|
|
213
|
+
skillManager: SkillManager;
|
|
211
214
|
messageBus?: MessageBus;
|
|
212
215
|
plugins: (string | Plugin_2)[];
|
|
213
216
|
};
|
|
@@ -943,6 +946,7 @@ declare type Plugin_2 = {
|
|
|
943
946
|
models: ModelMap;
|
|
944
947
|
defaultModelCreator: (name: string, provider: Provider) => LanguageModelV2;
|
|
945
948
|
createOpenAI: (options: any) => OpenAIProvider;
|
|
949
|
+
createOpenAICompatible: (options: any) => OpenAICompatibleProvider;
|
|
946
950
|
}) => Promise<ProvidersMap> | ProvidersMap;
|
|
947
951
|
modelAlias?: (this: PluginContext, modelAlias: ModelAlias) => Promise<ModelAlias> | ModelAlias;
|
|
948
952
|
initialized?: (this: PluginContext, opts: {
|
|
@@ -1571,6 +1575,44 @@ declare type SessionsResumeOutput = {
|
|
|
1571
1575
|
};
|
|
1572
1576
|
};
|
|
1573
1577
|
|
|
1578
|
+
declare interface SkillError {
|
|
1579
|
+
path: string;
|
|
1580
|
+
message: string;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
declare class SkillManager {
|
|
1584
|
+
private skillsMap;
|
|
1585
|
+
private errors;
|
|
1586
|
+
private paths;
|
|
1587
|
+
constructor(opts: SkillManagerOpts);
|
|
1588
|
+
getSkills(): SkillMetadata[];
|
|
1589
|
+
getSkill(name: string): SkillMetadata | undefined;
|
|
1590
|
+
getErrors(): SkillError[];
|
|
1591
|
+
readSkillBody(skill: SkillMetadata): Promise<string>;
|
|
1592
|
+
loadSkills(): Promise<void>;
|
|
1593
|
+
private loadSkillsFromDirectory;
|
|
1594
|
+
private loadSkillFile;
|
|
1595
|
+
private parseSkillFile;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare interface SkillManagerOpts {
|
|
1599
|
+
paths: Paths;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
declare interface SkillMetadata {
|
|
1603
|
+
name: string;
|
|
1604
|
+
description: string;
|
|
1605
|
+
path: string;
|
|
1606
|
+
source: SkillSource;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
declare enum SkillSource {
|
|
1610
|
+
GlobalClaude = "global-claude",
|
|
1611
|
+
Global = "global",
|
|
1612
|
+
ProjectClaude = "project-claude",
|
|
1613
|
+
Project = "project"
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1574
1616
|
declare type SlashCommand = LocalCommand | LocalJSXCommand | PromptCommand;
|
|
1575
1617
|
|
|
1576
1618
|
declare type SlashCommandExecuteInput = {
|