@claude-flow/cli 3.32.4 → 3.32.7
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/catalog-manifest.json
CHANGED
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* `proxyCommand` in proxy.ts.
|
|
7
7
|
*/
|
|
8
8
|
import type { Command } from '../types.js';
|
|
9
|
+
import { type ProxyStatus } from '../proxy/lifecycle.js';
|
|
9
10
|
/** Pinned and reviewed; later upgrades remain explicit commands. */
|
|
10
11
|
export declare const DEFAULT_PROXY_RELEASE = "0.4.0";
|
|
12
|
+
/**
|
|
13
|
+
* Human-oriented next steps for `ruflo proxy` and `ruflo proxy status`.
|
|
14
|
+
* Keep this independent of the command framework so the state-specific
|
|
15
|
+
* guidance has a small, direct regression-test surface.
|
|
16
|
+
*/
|
|
17
|
+
export declare function proxyConsoleGuidance(status: ProxyStatus): string[];
|
|
18
|
+
export declare function printProxyConsoleGuidance(status: ProxyStatus): void;
|
|
11
19
|
export declare const proxyLifecycleSubcommands: Command[];
|
|
12
20
|
//# sourceMappingURL=proxy-lifecycle.d.ts.map
|
|
@@ -13,6 +13,53 @@ import { proxyTokenPath } from '../proxy/paths.js';
|
|
|
13
13
|
import { removeInjectedToken, startTokenRefreshPump } from '../proxy/token-bridge.js';
|
|
14
14
|
/** Pinned and reviewed; later upgrades remain explicit commands. */
|
|
15
15
|
export const DEFAULT_PROXY_RELEASE = '0.4.0';
|
|
16
|
+
const PROXY_COMMAND = 'npx ruflo@latest proxy';
|
|
17
|
+
const AUTH_COMMAND = 'npx ruflo@latest auth';
|
|
18
|
+
/**
|
|
19
|
+
* Human-oriented next steps for `ruflo proxy` and `ruflo proxy status`.
|
|
20
|
+
* Keep this independent of the command framework so the state-specific
|
|
21
|
+
* guidance has a small, direct regression-test surface.
|
|
22
|
+
*/
|
|
23
|
+
export function proxyConsoleGuidance(status) {
|
|
24
|
+
if (!status.installed) {
|
|
25
|
+
return [
|
|
26
|
+
'',
|
|
27
|
+
'Next step',
|
|
28
|
+
` ${PROXY_COMMAND} install --yes Install signed Meta-Proxy v${DEFAULT_PROXY_RELEASE}`,
|
|
29
|
+
'',
|
|
30
|
+
'After installation, start it in the background:',
|
|
31
|
+
` ${PROXY_COMMAND} start --service`,
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
if (!status.running) {
|
|
35
|
+
return [
|
|
36
|
+
'',
|
|
37
|
+
'Next step',
|
|
38
|
+
` ${PROXY_COMMAND} start --service Start the proxy in the background`,
|
|
39
|
+
'',
|
|
40
|
+
'Foreground mode (shows live logs; Ctrl+C stops it):',
|
|
41
|
+
` ${PROXY_COMMAND} start`,
|
|
42
|
+
'',
|
|
43
|
+
'Optional: enable Cognitum cloud routing (local-only is the default):',
|
|
44
|
+
` ${AUTH_COMMAND} login`,
|
|
45
|
+
` ${PROXY_COMMAND} config --cloud --yes`,
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
return [
|
|
49
|
+
'',
|
|
50
|
+
'Meta Proxy is ready.',
|
|
51
|
+
` Logs: ${PROXY_COMMAND} logs`,
|
|
52
|
+
` Stop: ${PROXY_COMMAND} stop`,
|
|
53
|
+
'',
|
|
54
|
+
'Optional: enable Cognitum cloud routing (local-only is the default):',
|
|
55
|
+
` ${AUTH_COMMAND} login`,
|
|
56
|
+
` ${PROXY_COMMAND} config --cloud --yes`,
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
export function printProxyConsoleGuidance(status) {
|
|
60
|
+
for (const line of proxyConsoleGuidance(status))
|
|
61
|
+
output.writeln(line);
|
|
62
|
+
}
|
|
16
63
|
const INSTALL_DISCLOSURE = [
|
|
17
64
|
'Installing the Meta LLM Proxy (ADR-304/307).',
|
|
18
65
|
'',
|
|
@@ -163,14 +210,12 @@ const statusSub = {
|
|
|
163
210
|
output.printJson(status);
|
|
164
211
|
return { success: true, data: status };
|
|
165
212
|
}
|
|
166
|
-
output.writeln(
|
|
167
|
-
output.writeln(`
|
|
213
|
+
output.writeln('Meta Proxy');
|
|
214
|
+
output.writeln(` Installation: ${status.installed ? 'ready' : 'not installed'}`);
|
|
215
|
+
output.writeln(` Process: ${status.running ? `running (pid ${status.pid})` : 'not running'}`);
|
|
168
216
|
if (status.stalePidFile)
|
|
169
217
|
output.writeln(' (a stale PID file was found and will be cleared on next start)');
|
|
170
|
-
|
|
171
|
-
output.writeln(`Run: ruflo proxy install --yes (installs ${DEFAULT_PROXY_RELEASE})`);
|
|
172
|
-
else if (!status.running)
|
|
173
|
-
output.writeln('Run: ruflo proxy start');
|
|
218
|
+
printProxyConsoleGuidance(status);
|
|
174
219
|
return { success: true, data: status };
|
|
175
220
|
},
|
|
176
221
|
};
|
|
@@ -23,7 +23,8 @@ import { clearRateLimitStatus, readRateLimitStatus } from '../funnel/rate-limit-
|
|
|
23
23
|
import { clearQuotaLowStatus, readQuotaLowStatus } from '../funnel/power-saver-notifier.js';
|
|
24
24
|
import { getInstalledCliVersion } from '../init/helper-refresh.js';
|
|
25
25
|
import * as path from 'path';
|
|
26
|
-
import { proxyLifecycleSubcommands } from './proxy-lifecycle.js';
|
|
26
|
+
import { proxyLifecycleSubcommands, printProxyConsoleGuidance } from './proxy-lifecycle.js';
|
|
27
|
+
import { getProxyStatus } from '../proxy/lifecycle.js';
|
|
27
28
|
const PROXY_CONFIG_FILE = 'proxy-config.toml';
|
|
28
29
|
/**
|
|
29
30
|
* Minimal hand-rolled TOML writer — this config has exactly one boolean
|
|
@@ -387,11 +388,15 @@ export const proxyCommand = {
|
|
|
387
388
|
{ command: 'ruflo proxy power-saver-enable --yes', description: 'Opt into power saver mode' },
|
|
388
389
|
{ command: 'ruflo proxy training-share-enable --yes', description: 'Opt into training-data sharing (ADR-315)' },
|
|
389
390
|
],
|
|
390
|
-
action: async (
|
|
391
|
-
const { getProxyStatus } = await import('../proxy/lifecycle.js');
|
|
391
|
+
action: async () => {
|
|
392
392
|
const status = getProxyStatus();
|
|
393
|
-
output.writeln(
|
|
394
|
-
|
|
393
|
+
output.writeln('Meta Proxy');
|
|
394
|
+
output.writeln(` Installation: ${status.installed ? 'ready' : 'not installed'}`);
|
|
395
|
+
output.writeln(` Process: ${status.running ? `running (pid ${status.pid})` : 'not running'}`);
|
|
396
|
+
if (status.stalePidFile)
|
|
397
|
+
output.writeln(' (a stale PID file was found and will be cleared on next start)');
|
|
398
|
+
printProxyConsoleGuidance(status);
|
|
399
|
+
return { success: true, data: status };
|
|
395
400
|
},
|
|
396
401
|
};
|
|
397
402
|
export default proxyCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
},
|
|
113
113
|
"optionalDependencies": {
|
|
114
114
|
"@claude-flow/memory": "^3.0.0-alpha.21",
|
|
115
|
-
"@claude-flow/security": "^3.0.0-alpha.
|
|
115
|
+
"@claude-flow/security": "^3.0.0-alpha.12",
|
|
116
116
|
"agentdb": "^3.0.0-alpha.17",
|
|
117
117
|
"agentic-flow": "^3.0.0-alpha.1",
|
|
118
118
|
"ruvector": "^0.2.27"
|