@neovate/code 0.24.0 → 0.25.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/cli.mjs +902 -890
- package/dist/index.d.ts +84 -1
- package/dist/index.mjs +902 -890
- package/package.json +3 -2
- package/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/vendor/ripgrep/arm64-linux/rg +0 -0
- package/vendor/ripgrep/x64-darwin/rg +0 -0
- package/vendor/ripgrep/x64-linux/rg +0 -0
- package/vendor/ripgrep/x64-win32/rg.exe +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { z as _zod } from 'zod';
|
|
|
8
8
|
|
|
9
9
|
declare interface AddSkillOptions {
|
|
10
10
|
global?: boolean;
|
|
11
|
+
claude?: boolean;
|
|
11
12
|
overwrite?: boolean;
|
|
12
13
|
name?: string;
|
|
13
14
|
targetDir?: string;
|
|
@@ -263,6 +264,12 @@ declare type Config = {
|
|
|
263
264
|
* Example: { explore: { model: "anthropic/claude-haiku-4" } }
|
|
264
265
|
*/
|
|
265
266
|
agent?: Record<string, AgentConfig>;
|
|
267
|
+
/**
|
|
268
|
+
* Extra SKILL.md file paths for user-defined skills.
|
|
269
|
+
* Accepts absolute paths to SKILL.md files or directories containing SKILL.md.
|
|
270
|
+
* Example: ["/path/to/my-skill/SKILL.md", "/path/to/skill-dir"]
|
|
271
|
+
*/
|
|
272
|
+
skills?: string[];
|
|
266
273
|
/**
|
|
267
274
|
* Notification configuration.
|
|
268
275
|
* - true: play default sound (Funk/warning)
|
|
@@ -607,6 +614,10 @@ declare type HandlerMap = {
|
|
|
607
614
|
input: ModelsListInput;
|
|
608
615
|
output: ModelsListOutput;
|
|
609
616
|
};
|
|
617
|
+
'models.test': {
|
|
618
|
+
input: ModelsTestInput;
|
|
619
|
+
output: ModelsTestOutput;
|
|
620
|
+
};
|
|
610
621
|
'outputStyles.list': {
|
|
611
622
|
input: OutputStylesListInput;
|
|
612
623
|
output: OutputStylesListOutput;
|
|
@@ -1089,6 +1100,32 @@ declare type ModelsListOutput = {
|
|
|
1089
1100
|
};
|
|
1090
1101
|
};
|
|
1091
1102
|
|
|
1103
|
+
declare type ModelsTestInput = {
|
|
1104
|
+
cwd?: string;
|
|
1105
|
+
model: string;
|
|
1106
|
+
timeout?: number;
|
|
1107
|
+
prompt?: string;
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
declare type ModelsTestOutput = {
|
|
1111
|
+
success: true;
|
|
1112
|
+
data: {
|
|
1113
|
+
model: string;
|
|
1114
|
+
provider: string;
|
|
1115
|
+
modelName: string;
|
|
1116
|
+
prompt: string;
|
|
1117
|
+
response: string;
|
|
1118
|
+
responseTime: number;
|
|
1119
|
+
usage: {
|
|
1120
|
+
input_tokens: number;
|
|
1121
|
+
output_tokens: number;
|
|
1122
|
+
} | null;
|
|
1123
|
+
};
|
|
1124
|
+
} | {
|
|
1125
|
+
success: false;
|
|
1126
|
+
error: string;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1092
1129
|
declare type NodeBridgeHandlers = Partial<{
|
|
1093
1130
|
[K in keyof HandlerMap]: (data: HandlerMap[K]['input'], context: Context) => Promise<HandlerMap[K]['output']> | HandlerMap[K]['output'];
|
|
1094
1131
|
}>;
|
|
@@ -1282,6 +1319,12 @@ declare class PluginManager {
|
|
|
1282
1319
|
apply({ hook, args, memo, type, pluginContext, }: PluginApplyOpts): Promise<any>;
|
|
1283
1320
|
}
|
|
1284
1321
|
|
|
1322
|
+
declare interface PreviewSkillsResult {
|
|
1323
|
+
tempDir: string;
|
|
1324
|
+
skills: SkillPreview[];
|
|
1325
|
+
errors: SkillError[];
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1285
1328
|
declare type ProjectAddHistoryInput = {
|
|
1286
1329
|
cwd: string;
|
|
1287
1330
|
history: string;
|
|
@@ -1488,7 +1531,7 @@ declare interface Provider {
|
|
|
1488
1531
|
};
|
|
1489
1532
|
}
|
|
1490
1533
|
|
|
1491
|
-
declare type ProviderConfig = Partial<Omit<Provider, 'createModel'>>;
|
|
1534
|
+
export declare type ProviderConfig = Partial<Omit<Provider, 'createModel'>>;
|
|
1492
1535
|
|
|
1493
1536
|
declare type ProvidersListInput = {
|
|
1494
1537
|
cwd: string;
|
|
@@ -1503,6 +1546,13 @@ declare type ProvidersListOutput = {
|
|
|
1503
1546
|
doc?: string;
|
|
1504
1547
|
env?: string[];
|
|
1505
1548
|
apiEnv?: string[];
|
|
1549
|
+
api?: string;
|
|
1550
|
+
options?: {
|
|
1551
|
+
baseURL?: string;
|
|
1552
|
+
apiKey?: string;
|
|
1553
|
+
headers?: Record<string, string>;
|
|
1554
|
+
httpProxy?: string;
|
|
1555
|
+
};
|
|
1506
1556
|
validEnvs: string[];
|
|
1507
1557
|
hasApiKey: boolean;
|
|
1508
1558
|
maskedApiKey?: string;
|
|
@@ -1598,6 +1648,24 @@ export declare type SDKSessionOptions = {
|
|
|
1598
1648
|
cwd?: string;
|
|
1599
1649
|
productName?: string;
|
|
1600
1650
|
plugins?: Plugin_2[];
|
|
1651
|
+
/**
|
|
1652
|
+
* Custom provider configurations to add or override built-in providers.
|
|
1653
|
+
* Allows specifying custom API endpoints and model definitions.
|
|
1654
|
+
*
|
|
1655
|
+
* @example
|
|
1656
|
+
* ```typescript
|
|
1657
|
+
* providers: {
|
|
1658
|
+
* "my-custom-provider": {
|
|
1659
|
+
* api: "https://my-api.example.com/v1",
|
|
1660
|
+
* env: ["MY_API_KEY"],
|
|
1661
|
+
* models: {
|
|
1662
|
+
* "my-model": "deepseek-v3.2" // Reference existing model
|
|
1663
|
+
* }
|
|
1664
|
+
* }
|
|
1665
|
+
* }
|
|
1666
|
+
* ```
|
|
1667
|
+
*/
|
|
1668
|
+
providers?: Record<string, ProviderConfig>;
|
|
1601
1669
|
};
|
|
1602
1670
|
|
|
1603
1671
|
declare type SDKSystemMessage = {
|
|
@@ -1856,6 +1924,10 @@ declare class SkillManager {
|
|
|
1856
1924
|
loadSkills(): Promise<void>;
|
|
1857
1925
|
private loadSkillsFromDirectory;
|
|
1858
1926
|
private loadSkillFile;
|
|
1927
|
+
/**
|
|
1928
|
+
* Load skill from a path that can be either a SKILL.md file or a directory containing SKILL.md.
|
|
1929
|
+
*/
|
|
1930
|
+
private loadSkillPath;
|
|
1859
1931
|
private parseSkillFile;
|
|
1860
1932
|
addSkill(source: string, options?: AddSkillOptions): Promise<AddSkillResult>;
|
|
1861
1933
|
private normalizeSource;
|
|
@@ -1863,6 +1935,9 @@ declare class SkillManager {
|
|
|
1863
1935
|
private scanForSkills;
|
|
1864
1936
|
private copyDirectory;
|
|
1865
1937
|
private parseSkillFileForAdd;
|
|
1938
|
+
previewSkills(source: string): Promise<PreviewSkillsResult>;
|
|
1939
|
+
installFromPreview(preview: PreviewSkillsResult, selectedSkills: SkillPreview[], source: string, options?: AddSkillOptions): Promise<AddSkillResult>;
|
|
1940
|
+
cleanupPreview(preview: PreviewSkillsResult): void;
|
|
1866
1941
|
removeSkill(name: string, targetDir?: string): Promise<{
|
|
1867
1942
|
success: boolean;
|
|
1868
1943
|
error?: string;
|
|
@@ -1880,8 +1955,16 @@ declare interface SkillMetadata {
|
|
|
1880
1955
|
source: SkillSource;
|
|
1881
1956
|
}
|
|
1882
1957
|
|
|
1958
|
+
declare interface SkillPreview {
|
|
1959
|
+
name: string;
|
|
1960
|
+
description: string;
|
|
1961
|
+
skillPath: string;
|
|
1962
|
+
skillDir: string;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1883
1965
|
declare enum SkillSource {
|
|
1884
1966
|
Plugin = "plugin",
|
|
1967
|
+
Config = "config",
|
|
1885
1968
|
GlobalClaude = "global-claude",
|
|
1886
1969
|
Global = "global",
|
|
1887
1970
|
ProjectClaude = "project-claude",
|