traderclaw-cli 1.0.99 → 1.0.100
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/bin/openclaw-trader.mjs +55 -6
- package/package.json +2 -2
package/bin/openclaw-trader.mjs
CHANGED
|
@@ -4175,12 +4175,12 @@ Commands:
|
|
|
4175
4175
|
status Check connection health and wallet status
|
|
4176
4176
|
config View and manage configuration
|
|
4177
4177
|
test-session Test session auth flow (refresh, rotation, challenge) without reinstalling
|
|
4178
|
-
update Update global traderclaw-cli, re-sync the OpenClaw plugin (openclaw.json), and restart the gateway
|
|
4178
|
+
update Update global traderclaw-cli, re-sync the OpenClaw plugin (openclaw.json), force-install solana-traderclaw, and restart the gateway
|
|
4179
4179
|
|
|
4180
4180
|
Update options (traderclaw update):
|
|
4181
|
-
--beta Use the npm dist-tag "beta" for traderclaw-cli (default: "latest")
|
|
4181
|
+
--beta Use the npm dist-tag "beta" for traderclaw-cli and solana-traderclaw (default: "latest")
|
|
4182
4182
|
--dry-run Show / simulate actions without fully applying (where supported)
|
|
4183
|
-
--skip-plugins Do not run
|
|
4183
|
+
--skip-plugins Do not run openclaw "plugins update" or "plugins install --force" (only npm + gateway restart)
|
|
4184
4184
|
|
|
4185
4185
|
Setup options:
|
|
4186
4186
|
--api-key, -k API key (skip interactive prompt)
|
|
@@ -4279,6 +4279,24 @@ async function cmdUpdate(args) {
|
|
|
4279
4279
|
} catch {}
|
|
4280
4280
|
printInfo(` npm ${tag} tag resolves to:${" ".repeat(Math.max(1, 11 - tag.length))}${latestVersion}`);
|
|
4281
4281
|
|
|
4282
|
+
/** Published solana-traderclaw version for openclaw plugins install …@version --force (matches CLI release in this monorepo). */
|
|
4283
|
+
let publishedPluginVersion = "unknown";
|
|
4284
|
+
try {
|
|
4285
|
+
publishedPluginVersion = execSync(`npm view ${NPM_PACKAGE_NAME}@${tag} version`, { encoding: "utf-8" }).trim();
|
|
4286
|
+
} catch {
|
|
4287
|
+
try {
|
|
4288
|
+
publishedPluginVersion = execSync(`npm view ${NPM_PACKAGE_NAME}@latest version`, { encoding: "utf-8" }).trim();
|
|
4289
|
+
} catch {
|
|
4290
|
+
/* leave unknown */
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
if (publishedPluginVersion === "unknown" && latestVersion !== "unknown") {
|
|
4294
|
+
publishedPluginVersion = latestVersion;
|
|
4295
|
+
}
|
|
4296
|
+
printInfo(
|
|
4297
|
+
` Target ${NPM_PACKAGE_NAME}@${tag}: ${publishedPluginVersion === "unknown" ? "unknown" : publishedPluginVersion}`,
|
|
4298
|
+
);
|
|
4299
|
+
|
|
4282
4300
|
const cliUpToDate =
|
|
4283
4301
|
currentVersion !== "unknown" && latestVersion !== "unknown" && currentVersion === latestVersion;
|
|
4284
4302
|
const needNpmInstall = !cliUpToDate;
|
|
@@ -4305,9 +4323,10 @@ async function cmdUpdate(args) {
|
|
|
4305
4323
|
// Always refresh that install so it matches the new CLI (spec / integrity / resolvedVersion).
|
|
4306
4324
|
if (!skipPlugins) {
|
|
4307
4325
|
if (!commandExists("openclaw")) {
|
|
4308
|
-
printWarn(`\n "openclaw" not found in PATH — cannot run "openclaw plugins update ${PLUGIN_ID}".`);
|
|
4309
|
-
print(" After installing the OpenClaw CLI, run:\n");
|
|
4326
|
+
printWarn(`\n "openclaw" not found in PATH — cannot run "openclaw plugins update ${PLUGIN_ID}" or "plugins install … --force".`);
|
|
4327
|
+
print(" After installing the OpenClaw CLI, run (use the version from npm or this log):\n");
|
|
4310
4328
|
print(` openclaw plugins update ${PLUGIN_ID}`);
|
|
4329
|
+
print(` openclaw plugins install ${NPM_PACKAGE_NAME}@${publishedPluginVersion !== "unknown" ? publishedPluginVersion : "<version>"} --force`);
|
|
4311
4330
|
print(" Then: openclaw gateway restart");
|
|
4312
4331
|
} else {
|
|
4313
4332
|
const pluginUpdateArgs = ["plugins", "update", PLUGIN_ID];
|
|
@@ -4323,6 +4342,34 @@ async function cmdUpdate(args) {
|
|
|
4323
4342
|
if (!dryRun) {
|
|
4324
4343
|
printSuccess(`\n OpenClaw plugin "${PLUGIN_ID}" update finished.`);
|
|
4325
4344
|
}
|
|
4345
|
+
|
|
4346
|
+
if (publishedPluginVersion === "unknown") {
|
|
4347
|
+
printWarn(
|
|
4348
|
+
` Skipped "openclaw plugins install ${NPM_PACKAGE_NAME}@<version> --force" (could not resolve version from npm).`,
|
|
4349
|
+
);
|
|
4350
|
+
} else {
|
|
4351
|
+
const installSpec = `${NPM_PACKAGE_NAME}@${publishedPluginVersion}`;
|
|
4352
|
+
const installArgs = ["plugins", "install", installSpec, "--force"];
|
|
4353
|
+
if (dryRun) {
|
|
4354
|
+
print(
|
|
4355
|
+
`\n [dry-run] Would run: openclaw plugins install ${installSpec} --force\n` +
|
|
4356
|
+
" (re-downloads the exact tarball, rewrites the extension, and re-syncs plugins.installs.)\n",
|
|
4357
|
+
);
|
|
4358
|
+
} else {
|
|
4359
|
+
try {
|
|
4360
|
+
print(
|
|
4361
|
+
`\n Forcing full integration: openclaw plugins install ${installSpec} --force\n` +
|
|
4362
|
+
" (extension on disk + plugins.installs / integrity.)\n",
|
|
4363
|
+
);
|
|
4364
|
+
execFileSync("openclaw", installArgs, { stdio: "inherit" });
|
|
4365
|
+
printSuccess(`\n Forced install complete: ${installSpec}.`);
|
|
4366
|
+
} catch {
|
|
4367
|
+
printError(`"openclaw plugins install ${installSpec} --force" failed. Try manually:`);
|
|
4368
|
+
print(` openclaw plugins install ${installSpec} --force`);
|
|
4369
|
+
process.exit(1);
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4326
4373
|
} catch {
|
|
4327
4374
|
if (dryRun) {
|
|
4328
4375
|
printError(`openclaw plugins update ${PLUGIN_ID} --dry-run failed.`);
|
|
@@ -4335,7 +4382,9 @@ async function cmdUpdate(args) {
|
|
|
4335
4382
|
}
|
|
4336
4383
|
}
|
|
4337
4384
|
} else {
|
|
4338
|
-
printWarn(
|
|
4385
|
+
printWarn(
|
|
4386
|
+
`\n --skip-plugins: skipped "openclaw plugins update ${PLUGIN_ID}" and "openclaw plugins install ${NPM_PACKAGE_NAME}@… --force"; openclaw.json / extension may stay on an old version.`,
|
|
4387
|
+
);
|
|
4339
4388
|
}
|
|
4340
4389
|
|
|
4341
4390
|
if (dryRun) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "traderclaw-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"description": "Global TraderClaw CLI (install --wizard, setup, precheck). Installs solana-traderclaw as a dependency for OpenClaw plugin files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"node": ">=22"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"solana-traderclaw": "^1.0.
|
|
20
|
+
"solana-traderclaw": "^1.0.100"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"traderclaw",
|