neuro-cli 4.1.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/LICENSE +21 -0
- package/README.md +510 -0
- package/dist/advisor/advisor.d.ts +50 -0
- package/dist/advisor/advisor.js +178 -0
- package/dist/agents/base.d.ts +62 -0
- package/dist/agents/base.js +215 -0
- package/dist/agents/orchestrator.d.ts +46 -0
- package/dist/agents/orchestrator.js +192 -0
- package/dist/agents/team.d.ts +51 -0
- package/dist/agents/team.js +210 -0
- package/dist/api/models.d.ts +23 -0
- package/dist/api/models.js +514 -0
- package/dist/api/ollama.d.ts +153 -0
- package/dist/api/ollama.js +751 -0
- package/dist/api/openrouter.d.ts +55 -0
- package/dist/api/openrouter.js +223 -0
- package/dist/commands/commands.d.ts +43 -0
- package/dist/commands/commands.js +308 -0
- package/dist/config/config.d.ts +8 -0
- package/dist/config/config.js +311 -0
- package/dist/context/compaction.d.ts +54 -0
- package/dist/context/compaction.js +251 -0
- package/dist/context/custom-agents.d.ts +107 -0
- package/dist/context/custom-agents.js +397 -0
- package/dist/context/custom-tools.d.ts +120 -0
- package/dist/context/custom-tools.js +564 -0
- package/dist/context/git-checkpoint.d.ts +52 -0
- package/dist/context/git-checkpoint.js +240 -0
- package/dist/context/neuro-md.d.ts +48 -0
- package/dist/context/neuro-md.js +202 -0
- package/dist/context/neuroignore.d.ts +102 -0
- package/dist/context/neuroignore.js +441 -0
- package/dist/context/repo-map.d.ts +38 -0
- package/dist/context/repo-map.js +220 -0
- package/dist/context/skill-standard.d.ts +262 -0
- package/dist/context/skill-standard.js +1156 -0
- package/dist/context/skill-system.d.ts +75 -0
- package/dist/context/skill-system.js +578 -0
- package/dist/context/tree-sitter.d.ts +99 -0
- package/dist/context/tree-sitter.js +1956 -0
- package/dist/core/acp.d.ts +325 -0
- package/dist/core/acp.js +1498 -0
- package/dist/core/api-server.d.ts +143 -0
- package/dist/core/api-server.js +550 -0
- package/dist/core/approval.d.ts +81 -0
- package/dist/core/approval.js +432 -0
- package/dist/core/auto-compact.d.ts +127 -0
- package/dist/core/auto-compact.js +436 -0
- package/dist/core/auto-mode.d.ts +232 -0
- package/dist/core/auto-mode.js +831 -0
- package/dist/core/background-session.d.ts +166 -0
- package/dist/core/background-session.js +696 -0
- package/dist/core/cicd.d.ts +257 -0
- package/dist/core/cicd.js +1443 -0
- package/dist/core/cloud-sync.d.ts +156 -0
- package/dist/core/cloud-sync.js +582 -0
- package/dist/core/code-review.d.ts +132 -0
- package/dist/core/code-review.js +1191 -0
- package/dist/core/completion.d.ts +49 -0
- package/dist/core/completion.js +384 -0
- package/dist/core/context.d.ts +38 -0
- package/dist/core/context.js +144 -0
- package/dist/core/diff-preview.d.ts +35 -0
- package/dist/core/diff-preview.js +173 -0
- package/dist/core/doom-loop.d.ts +51 -0
- package/dist/core/doom-loop.js +179 -0
- package/dist/core/engine.d.ts +183 -0
- package/dist/core/engine.js +942 -0
- package/dist/core/extended-thinking.d.ts +103 -0
- package/dist/core/extended-thinking.js +269 -0
- package/dist/core/fallback.d.ts +54 -0
- package/dist/core/fallback.js +104 -0
- package/dist/core/git-worktree.d.ts +139 -0
- package/dist/core/git-worktree.js +614 -0
- package/dist/core/headless.d.ts +30 -0
- package/dist/core/headless.js +101 -0
- package/dist/core/i18n.d.ts +83 -0
- package/dist/core/i18n.js +739 -0
- package/dist/core/linting.d.ts +129 -0
- package/dist/core/linting.js +699 -0
- package/dist/core/model-router.d.ts +109 -0
- package/dist/core/model-router.js +581 -0
- package/dist/core/multi-model.d.ts +243 -0
- package/dist/core/multi-model.js +1099 -0
- package/dist/core/multi-session.d.ts +144 -0
- package/dist/core/multi-session.js +442 -0
- package/dist/core/multimodal.d.ts +125 -0
- package/dist/core/multimodal.js +286 -0
- package/dist/core/observability.d.ts +93 -0
- package/dist/core/observability.js +737 -0
- package/dist/core/os-sandbox.d.ts +122 -0
- package/dist/core/os-sandbox.js +1193 -0
- package/dist/core/outcome-grading.d.ts +228 -0
- package/dist/core/outcome-grading.js +1123 -0
- package/dist/core/output-styles.d.ts +57 -0
- package/dist/core/output-styles.js +382 -0
- package/dist/core/parallel-agents.d.ts +183 -0
- package/dist/core/parallel-agents.js +563 -0
- package/dist/core/plugin-bundle.d.ts +236 -0
- package/dist/core/plugin-bundle.js +887 -0
- package/dist/core/plugin-sdk.d.ts +139 -0
- package/dist/core/plugin-sdk.js +273 -0
- package/dist/core/prompt-cache.d.ts +163 -0
- package/dist/core/prompt-cache.js +599 -0
- package/dist/core/sandbox.d.ts +127 -0
- package/dist/core/sandbox.js +369 -0
- package/dist/core/scheduled-tasks.d.ts +151 -0
- package/dist/core/scheduled-tasks.js +502 -0
- package/dist/core/security-scanner.d.ts +160 -0
- package/dist/core/security-scanner.js +1494 -0
- package/dist/core/session.d.ts +83 -0
- package/dist/core/session.js +269 -0
- package/dist/core/shell-completion.d.ts +51 -0
- package/dist/core/shell-completion.js +674 -0
- package/dist/core/smart-monitor.d.ts +146 -0
- package/dist/core/smart-monitor.js +1199 -0
- package/dist/core/spec-driven.d.ts +233 -0
- package/dist/core/spec-driven.js +1485 -0
- package/dist/core/spending-warnings.d.ts +123 -0
- package/dist/core/spending-warnings.js +456 -0
- package/dist/core/sub-agent.d.ts +298 -0
- package/dist/core/sub-agent.js +1023 -0
- package/dist/core/telemetry.d.ts +157 -0
- package/dist/core/telemetry.js +412 -0
- package/dist/core/terminal-ux.d.ts +134 -0
- package/dist/core/terminal-ux.js +649 -0
- package/dist/core/testing.d.ts +146 -0
- package/dist/core/testing.js +1200 -0
- package/dist/core/types.d.ts +439 -0
- package/dist/core/types.js +6 -0
- package/dist/core/undo-redo.d.ts +112 -0
- package/dist/core/undo-redo.js +290 -0
- package/dist/core/updater.d.ts +159 -0
- package/dist/core/updater.js +608 -0
- package/dist/core/vim-mode.d.ts +151 -0
- package/dist/core/vim-mode.js +771 -0
- package/dist/core/voice.d.ts +137 -0
- package/dist/core/voice.js +538 -0
- package/dist/core/web-dashboard.d.ts +109 -0
- package/dist/core/web-dashboard.js +484 -0
- package/dist/hooks/hooks.d.ts +74 -0
- package/dist/hooks/hooks.js +160 -0
- package/dist/hooks/llm-evaluator.d.ts +165 -0
- package/dist/hooks/llm-evaluator.js +560 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1186 -0
- package/dist/lsp/lsp-manager.d.ts +63 -0
- package/dist/lsp/lsp-manager.js +351 -0
- package/dist/mcp/client.d.ts +133 -0
- package/dist/mcp/client.js +684 -0
- package/dist/mcp/mcp-apps.d.ts +70 -0
- package/dist/mcp/mcp-apps.js +1007 -0
- package/dist/tools/bash.d.ts +5 -0
- package/dist/tools/bash.js +195 -0
- package/dist/tools/browser.d.ts +92 -0
- package/dist/tools/browser.js +1570 -0
- package/dist/tools/extended.d.ts +6 -0
- package/dist/tools/extended.js +191 -0
- package/dist/tools/file.d.ts +10 -0
- package/dist/tools/file.js +382 -0
- package/dist/tools/github.d.ts +389 -0
- package/dist/tools/github.js +759 -0
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.js +40 -0
- package/dist/tools/memory.d.ts +6 -0
- package/dist/tools/memory.js +197 -0
- package/dist/tools/registry.d.ts +29 -0
- package/dist/tools/registry.js +64 -0
- package/dist/tools/web.d.ts +6 -0
- package/dist/tools/web.js +150 -0
- package/dist/ui/renderer.d.ts +97 -0
- package/dist/ui/renderer.js +279 -0
- package/dist/ui/theme.d.ts +27 -0
- package/dist/ui/theme.js +106 -0
- package/package.json +83 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
export interface BundleManifest {
|
|
2
|
+
/** Unique bundle identifier */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Human-readable bundle name */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Semantic version */
|
|
7
|
+
version: string;
|
|
8
|
+
/** Bundle description */
|
|
9
|
+
description: string;
|
|
10
|
+
/** Author name or organization */
|
|
11
|
+
author: string;
|
|
12
|
+
/** List of skill directories (relative paths) */
|
|
13
|
+
skills: string[];
|
|
14
|
+
/** List of hook scripts (relative paths) */
|
|
15
|
+
hooks: string[];
|
|
16
|
+
/** List of MCP server config files (relative paths) */
|
|
17
|
+
mcpServers: string[];
|
|
18
|
+
/** List of custom tool scripts (relative paths) */
|
|
19
|
+
tools: string[];
|
|
20
|
+
/** Runtime dependencies */
|
|
21
|
+
dependencies: Record<string, string>;
|
|
22
|
+
/** Required permissions */
|
|
23
|
+
permissions: BundlePermission[];
|
|
24
|
+
/** Compatibility constraints */
|
|
25
|
+
compatibility: {
|
|
26
|
+
neuroVersion: string;
|
|
27
|
+
};
|
|
28
|
+
/** Bundle homepage or repository URL */
|
|
29
|
+
homepage?: string;
|
|
30
|
+
/** License identifier */
|
|
31
|
+
license?: string;
|
|
32
|
+
/** Keywords for search */
|
|
33
|
+
keywords?: string[];
|
|
34
|
+
/** Bundle entry point (optional) */
|
|
35
|
+
entry?: string;
|
|
36
|
+
/** Creation timestamp */
|
|
37
|
+
createdAt?: string;
|
|
38
|
+
/** Last update timestamp */
|
|
39
|
+
updatedAt?: string;
|
|
40
|
+
}
|
|
41
|
+
export type BundlePermission = 'file:read' | 'file:write' | 'file:delete' | 'bash:execute' | 'network:access' | 'env:read' | 'env:write' | 'git:access' | 'mcp:connect';
|
|
42
|
+
export interface PluginBundle {
|
|
43
|
+
manifest: BundleManifest;
|
|
44
|
+
/** Absolute path to the installed bundle */
|
|
45
|
+
installPath: string;
|
|
46
|
+
/** Installation timestamp */
|
|
47
|
+
installedAt: string;
|
|
48
|
+
/** Source URL or path */
|
|
49
|
+
source: string;
|
|
50
|
+
/** Integrity hash of the bundle */
|
|
51
|
+
checksum: string;
|
|
52
|
+
/** Whether the bundle is currently enabled */
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface BundleInstallResult {
|
|
56
|
+
success: boolean;
|
|
57
|
+
bundle?: PluginBundle;
|
|
58
|
+
warnings?: string[];
|
|
59
|
+
error?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface BundleValidationResult {
|
|
62
|
+
valid: boolean;
|
|
63
|
+
errors: BundleValidationError[];
|
|
64
|
+
warnings: BundleValidationWarning[];
|
|
65
|
+
manifest?: BundleManifest;
|
|
66
|
+
}
|
|
67
|
+
export interface BundleValidationError {
|
|
68
|
+
code: string;
|
|
69
|
+
message: string;
|
|
70
|
+
path?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface BundleValidationWarning {
|
|
73
|
+
code: string;
|
|
74
|
+
message: string;
|
|
75
|
+
path?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface CreateBundleOptions {
|
|
78
|
+
/** Output directory for the bundle */
|
|
79
|
+
outputDir: string;
|
|
80
|
+
/** Bundle manifest data */
|
|
81
|
+
manifest: Omit<BundleManifest, 'createdAt' | 'updatedAt'>;
|
|
82
|
+
/** Skill content map: skillName -> SKILL.md content */
|
|
83
|
+
skills?: Record<string, string>;
|
|
84
|
+
/** Hook content map: filename -> script content */
|
|
85
|
+
hooks?: Record<string, string>;
|
|
86
|
+
/** MCP server config map: filename -> JSON content */
|
|
87
|
+
mcpServers?: Record<string, Record<string, unknown>>;
|
|
88
|
+
/** Tool script map: filename -> script content */
|
|
89
|
+
tools?: Record<string, string>;
|
|
90
|
+
}
|
|
91
|
+
export interface BundleSearchResult {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
version: string;
|
|
95
|
+
description: string;
|
|
96
|
+
author: string;
|
|
97
|
+
keywords?: string[];
|
|
98
|
+
downloads?: number;
|
|
99
|
+
url: string;
|
|
100
|
+
}
|
|
101
|
+
export interface BundleUpdateResult {
|
|
102
|
+
success: boolean;
|
|
103
|
+
previousVersion?: string;
|
|
104
|
+
newVersion?: string;
|
|
105
|
+
error?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface BundleRegistryEntry {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
version: string;
|
|
111
|
+
description: string;
|
|
112
|
+
author: string;
|
|
113
|
+
url: string;
|
|
114
|
+
checksum: string;
|
|
115
|
+
keywords?: string[];
|
|
116
|
+
downloads: number;
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
}
|
|
119
|
+
export declare class PluginBundleManager {
|
|
120
|
+
private bundlesDir;
|
|
121
|
+
private registryFile;
|
|
122
|
+
private installedBundles;
|
|
123
|
+
constructor(bundlesDir?: string);
|
|
124
|
+
/**
|
|
125
|
+
* Install a plugin bundle from URL, path, or registry
|
|
126
|
+
*/
|
|
127
|
+
installBundle(source: string): Promise<BundleInstallResult>;
|
|
128
|
+
/**
|
|
129
|
+
* Uninstall a plugin bundle
|
|
130
|
+
*/
|
|
131
|
+
uninstallBundle(bundleId: string): {
|
|
132
|
+
success: boolean;
|
|
133
|
+
error?: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* List all installed bundles
|
|
137
|
+
*/
|
|
138
|
+
listBundles(): Array<{
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
version: string;
|
|
142
|
+
description: string;
|
|
143
|
+
author: string;
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
source: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Get bundle details
|
|
149
|
+
*/
|
|
150
|
+
getBundleInfo(bundleId: string): PluginBundle | null;
|
|
151
|
+
/**
|
|
152
|
+
* Update a bundle to the latest version
|
|
153
|
+
*/
|
|
154
|
+
updateBundle(bundleId: string): Promise<BundleUpdateResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Validate a bundle before install
|
|
157
|
+
*/
|
|
158
|
+
validateBundle(bundlePath: string): BundleValidationResult;
|
|
159
|
+
/**
|
|
160
|
+
* Create a new plugin bundle
|
|
161
|
+
*/
|
|
162
|
+
createBundle(options: CreateBundleOptions): {
|
|
163
|
+
success: boolean;
|
|
164
|
+
path?: string;
|
|
165
|
+
error?: string;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Publish a bundle to the registry
|
|
169
|
+
*/
|
|
170
|
+
publishBundle(bundlePath: string): {
|
|
171
|
+
success: boolean;
|
|
172
|
+
error?: string;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Search available bundles
|
|
176
|
+
*/
|
|
177
|
+
searchBundles(query: string): BundleSearchResult[];
|
|
178
|
+
/**
|
|
179
|
+
* Enable a bundle
|
|
180
|
+
*/
|
|
181
|
+
enableBundle(bundleId: string): {
|
|
182
|
+
success: boolean;
|
|
183
|
+
error?: string;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Disable a bundle
|
|
187
|
+
*/
|
|
188
|
+
disableBundle(bundleId: string): {
|
|
189
|
+
success: boolean;
|
|
190
|
+
error?: string;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Get all skill paths from enabled bundles
|
|
194
|
+
*/
|
|
195
|
+
getBundleSkillPaths(): Array<{
|
|
196
|
+
bundleId: string;
|
|
197
|
+
skillPath: string;
|
|
198
|
+
skillName: string;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* Get all hook scripts from enabled bundles
|
|
202
|
+
*/
|
|
203
|
+
getBundleHooks(): Array<{
|
|
204
|
+
bundleId: string;
|
|
205
|
+
hookPath: string;
|
|
206
|
+
hookName: string;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* Get all MCP server configs from enabled bundles
|
|
210
|
+
*/
|
|
211
|
+
getBundleMCPServers(): Array<{
|
|
212
|
+
bundleId: string;
|
|
213
|
+
configPath: string;
|
|
214
|
+
configName: string;
|
|
215
|
+
config: Record<string, unknown>;
|
|
216
|
+
}>;
|
|
217
|
+
/**
|
|
218
|
+
* Get all tool scripts from enabled bundles
|
|
219
|
+
*/
|
|
220
|
+
getBundleTools(): Array<{
|
|
221
|
+
bundleId: string;
|
|
222
|
+
toolPath: string;
|
|
223
|
+
toolName: string;
|
|
224
|
+
}>;
|
|
225
|
+
private installFromPath;
|
|
226
|
+
private installFromURL;
|
|
227
|
+
private installFromRegistry;
|
|
228
|
+
private findBundleRoot;
|
|
229
|
+
private validateBundleReferences;
|
|
230
|
+
private runLifecycleHook;
|
|
231
|
+
private loadInstalledBundles;
|
|
232
|
+
private saveInstalledBundles;
|
|
233
|
+
private loadRegistry;
|
|
234
|
+
private saveRegistry;
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=plugin-bundle.d.ts.map
|