@drakonkat/ai-helper 1.2.4 → 1.2.6
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +11 -2
package/README.md
CHANGED
|
@@ -243,6 +243,13 @@ then the built-in proxy with these options:
|
|
|
243
243
|
aih start proxy http://127.0.0.1:10100/ --listen http://127.0.0.1:10102 --preset pxpipe --models "gpt-6-astra,google-antigravity/gemini-3.8*,anthropic/claude-fable*"
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
+
Pass `--models` to `aih start` (or `aih up`) to override the proxy's model list:
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
aih start --models "gpt-6-astra,anthropic/claude-fable*"
|
|
250
|
+
aih start --models= # Use pxpipe's default model selection
|
|
251
|
+
```
|
|
252
|
+
|
|
246
253
|
If the proxy is already running with different options, use `aih restart proxy`
|
|
247
254
|
with the options above to apply them.
|
|
248
255
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakonkat/ai-helper",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Zero-config background service manager, auto-discovery daemon & dashboard launcher for AI agent ecosystems (pxpipe, ocx, agentmemory, headroom)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
package/src/index.js
CHANGED
|
@@ -75,6 +75,7 @@ ${bold("EXAMPLES:")}
|
|
|
75
75
|
${dim("$")} ${cyan(CLI_NAME)} open ${dim("# Opens all running dashboards in browser")}
|
|
76
76
|
${dim("$")} ${cyan(CLI_NAME)} open agentmemory ${dim("# Opens agentmemory dashboard")}
|
|
77
77
|
${dim("$")} ${cyan(CLI_NAME)} start
|
|
78
|
+
${dim("$")} ${cyan(CLI_NAME)} start --models "gpt-6-astra,anthropic/claude-fable*"
|
|
78
79
|
${dim("$")} ${cyan(CLI_NAME)} stop pxpipe
|
|
79
80
|
${dim("$")} ${cyan(CLI_NAME)} restart ocx
|
|
80
81
|
${dim("$")} ${cyan(CLI_NAME)} ocx update
|
|
@@ -191,6 +192,7 @@ export async function main() {
|
|
|
191
192
|
let uiMode = false;
|
|
192
193
|
let repoMode = false;
|
|
193
194
|
let lines = 50;
|
|
195
|
+
let models;
|
|
194
196
|
const positionalArgs = [];
|
|
195
197
|
|
|
196
198
|
for (let i = 0; i < rawArgs.length; i++) {
|
|
@@ -213,6 +215,13 @@ export async function main() {
|
|
|
213
215
|
lines = parseInt(arg.slice(3), 10) || 50;
|
|
214
216
|
} else if (arg.startsWith("--lines=")) {
|
|
215
217
|
lines = parseInt(arg.slice(8), 10) || 50;
|
|
218
|
+
} else if (arg === "--models") {
|
|
219
|
+
const next = rawArgs[i + 1];
|
|
220
|
+
if (next === undefined || next.startsWith("-")) throw new Error("--models requires a value (use --models= for an empty list)");
|
|
221
|
+
models = next;
|
|
222
|
+
i++;
|
|
223
|
+
} else if (arg.startsWith("--models=")) {
|
|
224
|
+
models = arg.slice(9);
|
|
216
225
|
} else if (arg === "-h" || arg === "--help" || arg === "help") {
|
|
217
226
|
printHelp();
|
|
218
227
|
return;
|
|
@@ -373,8 +382,8 @@ export async function main() {
|
|
|
373
382
|
upstream: "http://127.0.0.1:10100/",
|
|
374
383
|
listen: "http://127.0.0.1:10102",
|
|
375
384
|
preset: "pxpipe",
|
|
376
|
-
models: "gpt-6-astra,google-antigravity/gemini-3.8*,anthropic/claude-fable*",
|
|
377
|
-
} : undefined);
|
|
385
|
+
models: models ?? "gpt-6-astra,google-antigravity/gemini-3.8*,anthropic/claude-fable*",
|
|
386
|
+
} : id === "proxy" && models !== undefined ? { models } : undefined);
|
|
378
387
|
results.push({ id, ...res });
|
|
379
388
|
if (jsonOutput) continue;
|
|
380
389
|
if (res.success) {
|