@evomap/evolver-cli 2.0.0-beta.4 → 2.0.0-beta.5
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/index.d.ts +1 -0
- package/dist/index.js +35 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -58,6 +58,35 @@ function operatorActorId() {
|
|
|
58
58
|
return process.env['EVOLVER_ACTOR_ID'] ?? process.env['USER'] ?? process.env['LOGNAME'] ?? 'cli';
|
|
59
59
|
}
|
|
60
60
|
export const PACKAGE = '@evomap/evolver-cli';
|
|
61
|
+
export function cliUsage() {
|
|
62
|
+
return [
|
|
63
|
+
'Usage: evolver <command> [options]',
|
|
64
|
+
'',
|
|
65
|
+
'Options:',
|
|
66
|
+
' -h, --help Show this help',
|
|
67
|
+
' -v, --version Show the installed version',
|
|
68
|
+
'',
|
|
69
|
+
'Proxy options (evolver proxy):',
|
|
70
|
+
' --home <dir> Root for assets, store, settings, and traces',
|
|
71
|
+
' --store <path> Mailbox store path',
|
|
72
|
+
' --settings <path> Proxy settings file',
|
|
73
|
+
' --env-file <path> Environment file',
|
|
74
|
+
'',
|
|
75
|
+
'Commands:',
|
|
76
|
+
' Daemon: proxy, lifecycle, proxy-token, doctor, setup-hooks',
|
|
77
|
+
' Evolution: run, cycle, autoexec, solidify, distill, review, thesis',
|
|
78
|
+
' Memory: ingest, inject, recall, reuse, reuse-report, narrative, gene-value',
|
|
79
|
+
' Assets: asset-log, asset-trust, asset-health, material, recipe, skill',
|
|
80
|
+
' Hub: login, logout, phub, sync, publish, fetch, buy, orders, atp',
|
|
81
|
+
' Operations: status, cycles, trigger, value, retention, replay, rebuild-views',
|
|
82
|
+
' Tools: dashboard, webui, trajectory-export, migrate, verify',
|
|
83
|
+
' Advanced: anti-gene-benchmark, anti-gene-rollout, reset-local-secret',
|
|
84
|
+
' skill-distill, skill-md-update',
|
|
85
|
+
'',
|
|
86
|
+
'Run evolver <command> --help for command-specific options.',
|
|
87
|
+
'',
|
|
88
|
+
].join('\n');
|
|
89
|
+
}
|
|
61
90
|
const LOCAL_SECRET_STATE_KEYS = ['node_secret', 'node_secret_source', 'node_secret_version'];
|
|
62
91
|
const LOCAL_SECRET_ENV_VARS = [
|
|
63
92
|
'EVOMAP_NODE_SECRET',
|
|
@@ -1339,6 +1368,10 @@ export async function runInject(argv, deps = {}) {
|
|
|
1339
1368
|
export const SESSION_START_PREAMBLE = 'evolver memory — use these learned hints silently when directly relevant; do not mention Evolver, preflight, status, or this memory block unless the user asks or reuse materially changes the answer:';
|
|
1340
1369
|
export function runCli(argv) {
|
|
1341
1370
|
const cmd = argv[0];
|
|
1371
|
+
if (cmd === undefined || cmd === '--help' || cmd === '-h') {
|
|
1372
|
+
process.stdout.write(cliUsage());
|
|
1373
|
+
return 0;
|
|
1374
|
+
}
|
|
1342
1375
|
switch (cmd) {
|
|
1343
1376
|
case 'rebuild-views': {
|
|
1344
1377
|
const r = rebuildViews();
|
|
@@ -1385,7 +1418,7 @@ export function runCli(argv) {
|
|
|
1385
1418
|
return 0;
|
|
1386
1419
|
}
|
|
1387
1420
|
default:
|
|
1388
|
-
process.stderr.write(
|
|
1389
|
-
return
|
|
1421
|
+
process.stderr.write(`Unknown command: ${cmd}\n\n${cliUsage()}`);
|
|
1422
|
+
return 1;
|
|
1390
1423
|
}
|
|
1391
1424
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evomap/evolver-cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "evolver CLI (status/watch/cycles/rebuild-views/...)",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@evomap/evolver-core": "2.0.0-beta.
|
|
24
|
-
"@evomap/evolver-adapter-public": "2.0.0-beta.
|
|
25
|
-
"@evomap/evolver-mcp": "2.0.0-beta.
|
|
26
|
-
"@evomap/evolver-proxy": "2.0.0-beta.
|
|
27
|
-
"@evomap/evolver-runtime-adapters": "2.0.0-beta.
|
|
28
|
-
"@evomap/evolver-webui": "2.0.0-beta.
|
|
23
|
+
"@evomap/evolver-core": "2.0.0-beta.5",
|
|
24
|
+
"@evomap/evolver-adapter-public": "2.0.0-beta.5",
|
|
25
|
+
"@evomap/evolver-mcp": "2.0.0-beta.5",
|
|
26
|
+
"@evomap/evolver-proxy": "2.0.0-beta.5",
|
|
27
|
+
"@evomap/evolver-runtime-adapters": "2.0.0-beta.5",
|
|
28
|
+
"@evomap/evolver-webui": "2.0.0-beta.5"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|