@nexagent-cli/cli 0.5.1 → 0.7.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/README.md +5 -5
- package/dist/bin/amarax.d.ts +3 -0
- package/dist/bin/amarax.d.ts.map +1 -0
- package/dist/bin/amarax.js +7 -0
- package/dist/bin/amarax.js.map +1 -0
- package/dist/bin/sophie.d.ts +3 -0
- package/dist/bin/sophie.d.ts.map +1 -0
- package/dist/bin/sophie.js +7 -0
- package/dist/bin/sophie.js.map +1 -0
- package/dist/commands/amarax.d.ts +10 -0
- package/dist/commands/amarax.d.ts.map +1 -0
- package/dist/commands/amarax.js +143 -0
- package/dist/commands/amarax.js.map +1 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +22 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/sophie.d.ts +11 -0
- package/dist/commands/sophie.d.ts.map +1 -0
- package/dist/commands/sophie.js +140 -0
- package/dist/commands/sophie.js.map +1 -0
- package/dist/db/audit-log.d.ts +23 -0
- package/dist/db/audit-log.d.ts.map +1 -0
- package/dist/db/audit-log.js +29 -0
- package/dist/db/audit-log.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +175 -249
- package/dist/index.js.map +1 -1
- package/dist/profiles/aiko.d.ts +3 -0
- package/dist/profiles/aiko.d.ts.map +1 -0
- package/dist/profiles/aiko.js +25 -0
- package/dist/profiles/aiko.js.map +1 -0
- package/dist/profiles/amarax.d.ts +3 -0
- package/dist/profiles/amarax.d.ts.map +1 -0
- package/dist/profiles/amarax.js +31 -0
- package/dist/profiles/amarax.js.map +1 -0
- package/dist/profiles/nexagent.d.ts +3 -0
- package/dist/profiles/nexagent.d.ts.map +1 -0
- package/dist/profiles/nexagent.js +36 -0
- package/dist/profiles/nexagent.js.map +1 -0
- package/dist/profiles/registry.d.ts +13 -0
- package/dist/profiles/registry.d.ts.map +1 -0
- package/dist/profiles/registry.js +51 -0
- package/dist/profiles/registry.js.map +1 -0
- package/dist/profiles/sophie.d.ts +3 -0
- package/dist/profiles/sophie.d.ts.map +1 -0
- package/dist/profiles/sophie.js +31 -0
- package/dist/profiles/sophie.js.map +1 -0
- package/dist/profiles/types.d.ts +50 -0
- package/dist/profiles/types.d.ts.map +1 -0
- package/dist/profiles/types.js +5 -0
- package/dist/profiles/types.js.map +1 -0
- package/dist/runtime/dispatch.d.ts +24 -0
- package/dist/runtime/dispatch.d.ts.map +1 -0
- package/dist/runtime/dispatch.js +49 -0
- package/dist/runtime/dispatch.js.map +1 -0
- package/dist/safety/command-profile.d.ts +22 -0
- package/dist/safety/command-profile.d.ts.map +1 -0
- package/dist/safety/command-profile.js +138 -0
- package/dist/safety/command-profile.js.map +1 -0
- package/dist/tools/shell-exec.d.ts +2 -0
- package/dist/tools/shell-exec.d.ts.map +1 -1
- package/dist/tools/shell-exec.js +129 -45
- package/dist/tools/shell-exec.js.map +1 -1
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// ============================================================
|
|
3
|
-
// NexAgent CLI — Entry Point
|
|
4
|
-
//
|
|
3
|
+
// NexAgent CLI — Entry Point with Profile-Aware Dispatch
|
|
4
|
+
// Supports: nexagent (default), sophie, amarax profiles
|
|
5
5
|
// ============================================================
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { NEXAGENT_VERSION } from '@nexagent-cli/shared';
|
|
8
8
|
import { checkNodeVersion } from './utils/env.js';
|
|
9
|
+
import { detectInvocation, buildProfileHelp } from './runtime/dispatch.js';
|
|
10
|
+
import { resolveProfile, listProfiles } from './profiles/registry.js';
|
|
11
|
+
// Commands
|
|
9
12
|
import { runChat } from './commands/chat.js';
|
|
10
13
|
import { runRun } from './commands/run.js';
|
|
11
14
|
import { runMemory } from './commands/memory.js';
|
|
@@ -19,277 +22,200 @@ import { runServer } from './commands/server.js';
|
|
|
19
22
|
import { runDashboard } from './commands/dashboard.js';
|
|
20
23
|
import { runMcp } from './commands/mcp.js';
|
|
21
24
|
import { runCompletion } from './commands/completion.js';
|
|
25
|
+
import { runSophie } from './commands/sophie.js';
|
|
26
|
+
import { runAmarax } from './commands/amarax.js';
|
|
22
27
|
// ── Pre-flight checks ────────────────────────────────────────
|
|
23
28
|
checkNodeVersion();
|
|
24
|
-
// ──
|
|
29
|
+
// ── Detect invocation profile ────────────────────────────────
|
|
30
|
+
const { invokedAs, explicitProfile } = detectInvocation();
|
|
31
|
+
const activeProfile = resolveProfile(invokedAs, explicitProfile);
|
|
32
|
+
const isBranded = activeProfile.name !== 'nexagent';
|
|
33
|
+
// ── Build Commander program ──────────────────────────────────
|
|
25
34
|
const program = new Command();
|
|
26
35
|
program
|
|
27
|
-
.name(
|
|
28
|
-
.description(
|
|
36
|
+
.name(activeProfile.aliases[0])
|
|
37
|
+
.description(`${activeProfile.icon} ${activeProfile.description}`)
|
|
29
38
|
.version(NEXAGENT_VERSION, '-v, --version', 'Output current version')
|
|
30
39
|
.helpOption('-h, --help', 'Show help')
|
|
31
40
|
.addHelpCommand('help [command]', 'Show help for a command')
|
|
32
|
-
// Global flags
|
|
33
41
|
.option('--no-color', 'Disable colour output')
|
|
34
42
|
.option('--json', 'Output machine-readable JSON (pipe mode)')
|
|
35
43
|
.option('--debug', 'Enable verbose debug logging')
|
|
36
|
-
.option('--data-dir <path>', 'Override agent data directory (default: ~/.nexagent)')
|
|
37
|
-
|
|
44
|
+
.option('--data-dir <path>', 'Override agent data directory (default: ~/.nexagent)')
|
|
45
|
+
.option('--profile <name>', 'Switch profile (sophie, amarax, aiko)');
|
|
46
|
+
// ── Profile-specific help override ───────────────────────────
|
|
47
|
+
if (isBranded) {
|
|
48
|
+
program.configureHelp({
|
|
49
|
+
formatHelp: (cmd, helper) => {
|
|
50
|
+
const base = helper.formatHelp(cmd, helper);
|
|
51
|
+
const profileHelp = buildProfileHelp(activeProfile);
|
|
52
|
+
return `${profileHelp}\n\n${base}`;
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// ── Core commands (all profiles) ─────────────────────────────
|
|
38
57
|
program
|
|
39
58
|
.command('chat')
|
|
40
59
|
.alias('c')
|
|
41
|
-
.description('Start an interactive chat session
|
|
42
|
-
.option('-a, --agent <name>', 'Agent name
|
|
43
|
-
.option('-m, --model <model>', 'LLM model override
|
|
44
|
-
.option('-p, --provider <provider>', 'LLM provider override
|
|
45
|
-
.option('--no-memory', 'Disable memory
|
|
46
|
-
.option('--no-subagents', 'Disable subagents
|
|
47
|
-
.option('--safety <level>', 'Safety level
|
|
48
|
-
.option('--max-turns <n>', 'Maximum turns
|
|
49
|
-
.option('--cwd <dir>', 'Working directory
|
|
50
|
-
.option('--resume <sessionId>', 'Resume
|
|
60
|
+
.description('Start an interactive chat session')
|
|
61
|
+
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
62
|
+
.option('-m, --model <model>', 'LLM model override')
|
|
63
|
+
.option('-p, --provider <provider>', 'LLM provider override')
|
|
64
|
+
.option('--no-memory', 'Disable memory')
|
|
65
|
+
.option('--no-subagents', 'Disable subagents')
|
|
66
|
+
.option('--safety <level>', 'Safety level', 'standard')
|
|
67
|
+
.option('--max-turns <n>', 'Maximum turns', '100')
|
|
68
|
+
.option('--cwd <dir>', 'Working directory')
|
|
69
|
+
.option('--resume <sessionId>', 'Resume session')
|
|
51
70
|
.action(async (opts, cmd) => {
|
|
52
71
|
const globals = cmd.parent?.opts() ?? {};
|
|
53
|
-
await runChat({ ...opts, ...globals });
|
|
72
|
+
await runChat({ ...opts, ...globals, agent: activeProfile.memoryNamespace });
|
|
54
73
|
});
|
|
55
|
-
// ── nexagent run ──────────────────────────────────────────────
|
|
56
74
|
program
|
|
57
75
|
.command('run <prompt>')
|
|
58
76
|
.alias('r')
|
|
59
|
-
.description('Run a single prompt non-interactively
|
|
77
|
+
.description('Run a single prompt non-interactively')
|
|
60
78
|
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
61
79
|
.option('-m, --model <model>', 'LLM model override')
|
|
62
|
-
.option('--max-turns <n>', 'Max
|
|
63
|
-
.option('--cwd <dir>', 'Working directory
|
|
64
|
-
.option('--dry-run', 'Show what tools WOULD do
|
|
65
|
-
.option('--json', 'Output
|
|
80
|
+
.option('--max-turns <n>', 'Max turns', '10')
|
|
81
|
+
.option('--cwd <dir>', 'Working directory')
|
|
82
|
+
.option('--dry-run', 'Show what tools WOULD do')
|
|
83
|
+
.option('--json', 'Output as JSON')
|
|
66
84
|
.action(async (prompt, opts, cmd) => {
|
|
67
85
|
const globals = cmd.parent?.opts() ?? {};
|
|
68
|
-
await runRun(prompt, { ...opts, ...globals });
|
|
86
|
+
await runRun(prompt, { ...opts, ...globals, agent: activeProfile.memoryNamespace });
|
|
69
87
|
});
|
|
70
|
-
// ──
|
|
71
|
-
const memCmd = program.command('memory').alias('mem').description('Manage agent memory
|
|
72
|
-
memCmd
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.command('show <blockId>')
|
|
80
|
-
.description('Show a specific memory block')
|
|
81
|
-
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
82
|
-
.action(async (blockId, opts) => runMemory('show', { ...opts, blockId }));
|
|
83
|
-
memCmd
|
|
84
|
-
.command('edit <blockId>')
|
|
85
|
-
.description('Open a memory block in $EDITOR')
|
|
86
|
-
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
87
|
-
.action(async (blockId, opts) => runMemory('edit', { ...opts, blockId }));
|
|
88
|
-
memCmd
|
|
89
|
-
.command('delete <blockId>')
|
|
90
|
-
.description('Delete a memory block (requires confirmation)')
|
|
91
|
-
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
92
|
-
.option('-f, --force', 'Skip confirmation prompt')
|
|
93
|
-
.action(async (blockId, opts) => runMemory('delete', { ...opts, blockId }));
|
|
94
|
-
memCmd
|
|
95
|
-
.command('export')
|
|
96
|
-
.description('Export all memory blocks to a .nxpkg file')
|
|
97
|
-
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
98
|
-
.option('-o, --out <file>', 'Output file path')
|
|
99
|
-
.action(async (opts) => runMemory('export', opts));
|
|
100
|
-
memCmd
|
|
101
|
-
.command('import <file>')
|
|
102
|
-
.description('Import memory blocks from a .nxpkg file')
|
|
103
|
-
.option('-a, --agent <name>', 'Agent name', 'default')
|
|
104
|
-
.option('--merge', 'Merge with existing memory (default: replace)')
|
|
105
|
-
.action(async (file, opts) => runMemory('import', { ...opts, file }));
|
|
106
|
-
// ── nexagent session ──────────────────────────────────────────
|
|
88
|
+
// ── Memory ───────────────────────────────────────────────────
|
|
89
|
+
const memCmd = program.command('memory').alias('mem').description('Manage agent memory');
|
|
90
|
+
memCmd.command('list').option('-a, --agent <name>', 'Agent', 'default').option('--json').action(async (opts) => runMemory('list', opts));
|
|
91
|
+
memCmd.command('show <blockId>').option('-a, --agent <name>', 'Agent', 'default').action(async (blockId, opts) => runMemory('show', { ...opts, blockId }));
|
|
92
|
+
memCmd.command('edit <blockId>').option('-a, --agent <name>', 'Agent', 'default').action(async (blockId, opts) => runMemory('edit', { ...opts, blockId }));
|
|
93
|
+
memCmd.command('delete <blockId>').option('-a, --agent <name>', 'Agent', 'default').option('-f, --force').action(async (blockId, opts) => runMemory('delete', { ...opts, blockId }));
|
|
94
|
+
memCmd.command('export').option('-a, --agent <name>', 'Agent', 'default').option('-o, --out <file>').action(async (opts) => runMemory('export', opts));
|
|
95
|
+
memCmd.command('import <file>').option('-a, --agent <name>', 'Agent', 'default').option('--merge').action(async (file, opts) => runMemory('import', { ...opts, file }));
|
|
96
|
+
// ── Session ──────────────────────────────────────────────────
|
|
107
97
|
const sessCmd = program.command('session').alias('sess').description('Manage chat sessions');
|
|
108
|
-
sessCmd
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.action(async (opts) => runSession('list', opts));
|
|
115
|
-
sessCmd
|
|
116
|
-
.command('show <sessionId>')
|
|
117
|
-
.description('Show full conversation transcript for a session')
|
|
118
|
-
.option('--json', 'Output as JSON')
|
|
119
|
-
.action(async (sessionId, opts) => runSession('show', { ...opts, sessionId }));
|
|
120
|
-
sessCmd
|
|
121
|
-
.command('delete <sessionId>')
|
|
122
|
-
.description('Delete a session and its turns')
|
|
123
|
-
.option('-f, --force', 'Skip confirmation')
|
|
124
|
-
.action(async (sessionId, opts) => runSession('delete', { ...opts, sessionId }));
|
|
125
|
-
sessCmd
|
|
126
|
-
.command('export <sessionId>')
|
|
127
|
-
.description('Export a session to a .nxs JSON file')
|
|
128
|
-
.action(async (sessionId, opts) => runSession('export', { ...opts, sessionId }));
|
|
129
|
-
sessCmd
|
|
130
|
-
.command('import <file>')
|
|
131
|
-
.description('Import a session from a .nxs JSON file')
|
|
132
|
-
.action(async (file, opts) => runSession('import', { ...opts, file }));
|
|
133
|
-
// ── nexagent agent ────────────────────────────────────────────
|
|
98
|
+
sessCmd.command('list').option('-a, --agent <name>', 'Filter', 'default').option('-n, --limit <n>', 'Limit', '20').option('--json').action(async (opts) => runSession('list', opts));
|
|
99
|
+
sessCmd.command('show <sessionId>').option('--json').action(async (sessionId, opts) => runSession('show', { ...opts, sessionId }));
|
|
100
|
+
sessCmd.command('delete <sessionId>').option('-f, --force').action(async (sessionId, opts) => runSession('delete', { ...opts, sessionId }));
|
|
101
|
+
sessCmd.command('export <sessionId>').action(async (sessionId, opts) => runSession('export', { ...opts, sessionId }));
|
|
102
|
+
sessCmd.command('import <file>').action(async (file, opts) => runSession('import', { ...opts, file }));
|
|
103
|
+
// ── Agent ────────────────────────────────────────────────────
|
|
134
104
|
const agentCmd = program.command('agent').description('Manage agents');
|
|
135
|
-
agentCmd
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
program
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
//
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
.action(async (query, opts, cmd) => {
|
|
252
|
-
const globals = cmd.parent?.parent?.opts() ?? {};
|
|
253
|
-
await runMcp('search', { ...opts, ...globals, query });
|
|
254
|
-
});
|
|
255
|
-
mcpCmd
|
|
256
|
-
.command('install <id>')
|
|
257
|
-
.description('Install an MCP tool from the catalog')
|
|
258
|
-
.action(async (id, opts, cmd) => {
|
|
259
|
-
const globals = cmd.parent?.parent?.opts() ?? {};
|
|
260
|
-
await runMcp('install', { ...opts, ...globals, id });
|
|
261
|
-
});
|
|
262
|
-
mcpCmd
|
|
263
|
-
.command('uninstall <id>')
|
|
264
|
-
.description('Uninstall an MCP tool')
|
|
265
|
-
.action(async (id, opts, cmd) => {
|
|
266
|
-
const globals = cmd.parent?.parent?.opts() ?? {};
|
|
267
|
-
await runMcp('uninstall', { ...opts, ...globals, id });
|
|
268
|
-
});
|
|
269
|
-
mcpCmd
|
|
270
|
-
.command('installed')
|
|
271
|
-
.description('List installed MCP tools')
|
|
272
|
-
.option('--json', 'Output as JSON')
|
|
273
|
-
.action(async (opts, cmd) => {
|
|
274
|
-
const globals = cmd.parent?.parent?.opts() ?? {};
|
|
275
|
-
await runMcp('installed', { ...opts, ...globals });
|
|
276
|
-
});
|
|
277
|
-
mcpCmd
|
|
278
|
-
.command('run <id> [args...]')
|
|
279
|
-
.description('Run an installed MCP tool in sandbox mode')
|
|
280
|
-
.action(async (id, args, opts, cmd) => {
|
|
281
|
-
const globals = cmd.parent?.parent?.opts() ?? {};
|
|
282
|
-
await runMcp('run', { ...opts, ...globals, id, args: args.join(' ') });
|
|
283
|
-
});
|
|
284
|
-
// ── nexagent completion ─────────────────────────────────────
|
|
285
|
-
program
|
|
286
|
-
.command('completion <shell>')
|
|
287
|
-
.description('Generate shell completion script (bash, zsh, fish, powershell)')
|
|
288
|
-
.action(async (shell) => runCompletion(shell));
|
|
289
|
-
// ── Parse ─────────────────────────────────────────────────────
|
|
290
|
-
program.parseAsync(process.argv).catch((err) => {
|
|
291
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
292
|
-
console.error(`\n Fatal error: ${msg}\n`);
|
|
293
|
-
process.exit(1);
|
|
294
|
-
});
|
|
105
|
+
agentCmd.command('list').option('--json').action(async (opts) => runAgent('list', opts));
|
|
106
|
+
agentCmd.command('create <name>').option('-m, --model <model>').option('-p, --provider <provider>').action(async (name, opts) => runAgent('create', { ...opts, name }));
|
|
107
|
+
agentCmd.command('delete <name>').option('-f, --force').action(async (name, opts) => runAgent('delete', { ...opts, name }));
|
|
108
|
+
// ── Config ───────────────────────────────────────────────────
|
|
109
|
+
const cfgCmd = program.command('config').description('Manage configuration');
|
|
110
|
+
cfgCmd.command('show').option('--json').action(async (opts) => runConfig('show', opts));
|
|
111
|
+
cfgCmd.command('set <key> <value>').action(async (key, value) => runConfig('set', { key, value }));
|
|
112
|
+
cfgCmd.command('api-key <provider>').action(async (provider) => runConfig('api-key', { provider }));
|
|
113
|
+
// ── Other core commands ──────────────────────────────────────
|
|
114
|
+
program.command('models').option('-p, --provider <name>').option('--json').action(async (opts) => runModels(opts));
|
|
115
|
+
program.command('update').option('--check').option('--changelog').option('--version <v>').option('--preview').option('--yes').action(async (opts) => runUpdate(opts));
|
|
116
|
+
program.command('changelog [version]').option('--all').option('--json').action(async (version, opts) => runChangelog(version, opts));
|
|
117
|
+
program.command('doctor').option('--fix').option('--json').action(async (opts, cmd) => runDoctor({ ...opts, ...(cmd.parent?.opts() ?? {}) }));
|
|
118
|
+
// ── Server ───────────────────────────────────────────────────
|
|
119
|
+
const serverCmd = program.command('server').alias('srv').description('Manage proxy gateway');
|
|
120
|
+
serverCmd.command('start').option('-p, --port <n>', 'Port', '18080').option('--data-dir <path>').action(async (opts, cmd) => runServer({ subcommand: 'start', ...opts, ...(cmd.parent?.parent?.opts() ?? {}) }));
|
|
121
|
+
serverCmd.command('stop').action(async () => runServer({ subcommand: 'stop' }));
|
|
122
|
+
serverCmd.command('status').action(async () => runServer({ subcommand: 'status' }));
|
|
123
|
+
// ── Dashboard ────────────────────────────────────────────────
|
|
124
|
+
program.command('dashboard').alias('dash').description('Start web dashboard').option('-p, --port <n>', 'Port', '18081').option('--data-dir <path>').action(async (opts, cmd) => runDashboard({ ...opts, ...(cmd.parent?.opts() ?? {}) }));
|
|
125
|
+
// ── MCP ──────────────────────────────────────────────────────
|
|
126
|
+
const mcpCmd = program.command('mcp').description('Manage MCP tools');
|
|
127
|
+
mcpCmd.command('list').option('--json').action(async (opts, cmd) => runMcp('list', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}) }));
|
|
128
|
+
mcpCmd.command('search <query>').option('--json').action(async (query, opts, cmd) => runMcp('search', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}), query }));
|
|
129
|
+
mcpCmd.command('install <id>').action(async (id, opts, cmd) => runMcp('install', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}), id }));
|
|
130
|
+
mcpCmd.command('uninstall <id>').action(async (id, opts, cmd) => runMcp('uninstall', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}), id }));
|
|
131
|
+
mcpCmd.command('installed').option('--json').action(async (opts, cmd) => runMcp('installed', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}) }));
|
|
132
|
+
mcpCmd.command('run <id> [args...]').action(async (id, args, opts, cmd) => runMcp('run', { ...opts, ...(cmd.parent?.parent?.opts() ?? {}), id, args: args.join(' ') }));
|
|
133
|
+
// ── Completion ───────────────────────────────────────────────
|
|
134
|
+
program.command('completion <shell>').description('Generate shell completion').action(async (shell) => runCompletion(shell));
|
|
135
|
+
// ── Profile subcommands (when invoked as nexagent) ───────────
|
|
136
|
+
if (!isBranded) {
|
|
137
|
+
const sophieCmd = program
|
|
138
|
+
.command('sophie <subcommand> [args...]')
|
|
139
|
+
.description('Run Sophie intelligence shell commands')
|
|
140
|
+
.option('-m, --model <model>', 'Model override')
|
|
141
|
+
.option('-p, --provider <provider>', 'Provider override')
|
|
142
|
+
.option('--json', 'Output as JSON')
|
|
143
|
+
.allowUnknownOption();
|
|
144
|
+
sophieCmd.action(async (subcommand, args, opts, cmd) => {
|
|
145
|
+
const globals = cmd.parent?.opts() ?? {};
|
|
146
|
+
await runSophie(subcommand, args, { ...opts, ...globals });
|
|
147
|
+
});
|
|
148
|
+
const amaraxCmd = program
|
|
149
|
+
.command('amarax <subcommand> [args...]')
|
|
150
|
+
.description('Run Amarax product shell commands')
|
|
151
|
+
.option('-m, --model <model>', 'Model override')
|
|
152
|
+
.option('-p, --provider <provider>', 'Provider override')
|
|
153
|
+
.option('--json', 'Output as JSON')
|
|
154
|
+
.allowUnknownOption();
|
|
155
|
+
amaraxCmd.action(async (subcommand, args, opts, cmd) => {
|
|
156
|
+
const globals = cmd.parent?.opts() ?? {};
|
|
157
|
+
await runAmarax(subcommand, args, { ...opts, ...globals });
|
|
158
|
+
});
|
|
159
|
+
program
|
|
160
|
+
.command('profiles')
|
|
161
|
+
.description('List available branded profiles')
|
|
162
|
+
.action(() => {
|
|
163
|
+
console.log('Available profiles:\n');
|
|
164
|
+
for (const p of listProfiles()) {
|
|
165
|
+
const active = p.name === activeProfile.name ? ' ← active' : '';
|
|
166
|
+
console.log(` ${p.icon} ${p.displayName.padEnd(12)} ${p.description}${active}`);
|
|
167
|
+
}
|
|
168
|
+
console.log('\nInvoke with: sophie <command> | amarax <command>');
|
|
169
|
+
console.log('Or: nexagent --profile sophie <command>');
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
// ── Branded binary dispatch ──────────────────────────────────
|
|
173
|
+
if (isBranded) {
|
|
174
|
+
const subcommand = process.argv[2];
|
|
175
|
+
const args = process.argv.slice(3);
|
|
176
|
+
if (activeProfile.name === 'sophie') {
|
|
177
|
+
runSophie(subcommand, args, {})
|
|
178
|
+
.then(() => process.exit(0))
|
|
179
|
+
.catch((err) => { console.error(err.message); process.exit(1); });
|
|
180
|
+
}
|
|
181
|
+
else if (activeProfile.name === 'amarax') {
|
|
182
|
+
runAmarax(subcommand, args, {})
|
|
183
|
+
.then(() => process.exit(0))
|
|
184
|
+
.catch((err) => { console.error(err.message); process.exit(1); });
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
program.parseAsync(process.argv).catch((err) => {
|
|
188
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
189
|
+
console.error(`\n Fatal error: ${msg}\n`);
|
|
190
|
+
process.exit(1);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
program.parseAsync(process.argv).catch((err) => {
|
|
196
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
197
|
+
console.error(`\n Fatal error: ${msg}\n`);
|
|
198
|
+
process.exit(1);
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
// ── Exported for bin aliases ─────────────────────────────────
|
|
202
|
+
export async function runWithProfile(profileName) {
|
|
203
|
+
const profile = resolveProfile(profileName, undefined);
|
|
204
|
+
if (!profile) {
|
|
205
|
+
throw new Error(`Unknown profile: ${profileName}`);
|
|
206
|
+
}
|
|
207
|
+
// The bin alias files call this, but index.ts auto-detects via argv[1].
|
|
208
|
+
// This function is kept for explicit programmatic profile switching.
|
|
209
|
+
if (profileName === 'sophie') {
|
|
210
|
+
const subcommand = process.argv[2];
|
|
211
|
+
const args = process.argv.slice(3);
|
|
212
|
+
return runSophie(subcommand, args, {});
|
|
213
|
+
}
|
|
214
|
+
if (profileName === 'amarax') {
|
|
215
|
+
const subcommand = process.argv[2];
|
|
216
|
+
const args = process.argv.slice(3);
|
|
217
|
+
return runAmarax(subcommand, args, {});
|
|
218
|
+
}
|
|
219
|
+
throw new Error(`Profile ${profileName} not yet implemented`);
|
|
220
|
+
}
|
|
295
221
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[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AAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,WAAW,WAAW,sBAAsB,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiko.d.ts","sourceRoot":"","sources":["../../src/profiles/aiko.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,YAAY,EAAE,OAoB1B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ============================================================
|
|
2
|
+
// Profile: AIKO — Future Production-Agent Platform (Dormant)
|
|
3
|
+
// ============================================================
|
|
4
|
+
export const AIKO_PROFILE = {
|
|
5
|
+
name: 'aiko',
|
|
6
|
+
displayName: 'AIKO',
|
|
7
|
+
description: 'Future production-agent platform interface — dormant until v0.8.0+',
|
|
8
|
+
aliases: ['aiko'],
|
|
9
|
+
systemPrompt: `You are AIKO, a production-grade agent platform.
|
|
10
|
+
You orchestrate multi-agent workflows at scale, manage endpoints, and monitor deployed agents.
|
|
11
|
+
You are the bridge between development and production.`,
|
|
12
|
+
defaultModel: 'gpt-4o',
|
|
13
|
+
defaultProvider: 'proxy',
|
|
14
|
+
memoryNamespace: 'aiko',
|
|
15
|
+
brandColor: '#10b981',
|
|
16
|
+
icon: '◎',
|
|
17
|
+
enabled: false, // dormant until v0.8.0+
|
|
18
|
+
commands: [
|
|
19
|
+
{ name: 'endpoint', description: 'Manage agent endpoints' },
|
|
20
|
+
{ name: 'workflow', description: 'Inspect and manage workflows' },
|
|
21
|
+
{ name: 'monitor', description: 'Monitor deployed agents' },
|
|
22
|
+
{ name: 'run', description: 'Execute with AIKO production profile', args: '<prompt>', aliases: ['r'] },
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=aiko.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiko.js","sourceRoot":"","sources":["../../src/profiles/aiko.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,6DAA6D;AAC7D,+DAA+D;AAI/D,MAAM,CAAC,MAAM,YAAY,GAAY;IACnC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,oEAAoE;IACjF,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,YAAY,EAAE;;uDAEuC;IACrD,YAAY,EAAE,QAAQ;IACtB,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,MAAM;IACvB,UAAU,EAAE,SAAS;IACrB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,KAAK,EAAE,wBAAwB;IACxC,QAAQ,EAAE;QACR,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,wBAAwB,EAAE;QAC3D,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,8BAA8B,EAAE;QACjE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yBAAyB,EAAE;QAC3D,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,sCAAsC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE;KACvG;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amarax.d.ts","sourceRoot":"","sources":["../../src/profiles/amarax.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,EAAE,OA0B5B,CAAC"}
|