@xmemo/client 0.4.145 → 0.4.146
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/package.json +1 -1
- package/src/cli.js +6 -3
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ const PACKAGE_NAME = '@xmemo/client';
|
|
|
11
11
|
const FALLBACK_PACKAGE_NAME = '@yonro/xmemo-client';
|
|
12
12
|
const COMMAND_NAME = 'xmemo';
|
|
13
13
|
const LEGACY_COMMAND_NAME = 'memory-os';
|
|
14
|
-
const CLI_VERSION = '0.4.
|
|
14
|
+
const CLI_VERSION = '0.4.146';
|
|
15
15
|
const DEFAULT_SERVICE_URL = 'https://xmemo.dev';
|
|
16
16
|
const TOKEN_ENV_VAR = 'XMEMO_KEY';
|
|
17
17
|
const LEGACY_TOKEN_ENV_VAR = 'MEMORY_OS_MCP_TOKEN';
|
|
@@ -373,18 +373,21 @@ async function updateCommand(args, io) {
|
|
|
373
373
|
projectFilesModified: false
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
+
const commandToDisplay = report.command.map(c => c === 'npm.cmd' ? 'npm' : c).join(' ');
|
|
377
|
+
|
|
376
378
|
if (dryRun) {
|
|
377
379
|
if (outputJson) {
|
|
378
380
|
writeLine(io.stdout, JSON.stringify(report, null, 2));
|
|
379
381
|
} else {
|
|
380
|
-
writeLine(io.stdout, `Update command: ${
|
|
382
|
+
writeLine(io.stdout, `Update command: ${commandToDisplay}`);
|
|
381
383
|
writeLine(io.stdout, 'Dry run only; no changes made.');
|
|
382
384
|
}
|
|
383
385
|
return 0;
|
|
384
386
|
}
|
|
385
387
|
|
|
386
388
|
if (!outputJson) {
|
|
387
|
-
writeLine(io.stdout, `Updating ${PACKAGE_NAME}
|
|
389
|
+
writeLine(io.stdout, `Updating ${PACKAGE_NAME} to the latest version...`);
|
|
390
|
+
writeLine(io.stdout, `Running: ${commandToDisplay}`);
|
|
388
391
|
}
|
|
389
392
|
const result = await runProcess(npmCommand, npmArgs, io, { stream: !outputJson });
|
|
390
393
|
report.exitCode = result.code;
|