traderclaw-cli 1.0.63 → 1.0.65
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.
|
@@ -1303,7 +1303,12 @@ function resolveLlmModelSelection(provider, requestedModel) {
|
|
|
1303
1303
|
return { model: chosen || availableModels[0], source: "provider_default", availableModels, warnings };
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
-
warnings.push(
|
|
1306
|
+
warnings.push(
|
|
1307
|
+
`[ALERT] No discoverable model list found for provider '${provider}'. ` +
|
|
1308
|
+
`Auto-selecting hardcoded default '${fallbackModelForProvider(provider)}' — ` +
|
|
1309
|
+
`this model will be billed to your API key. ` +
|
|
1310
|
+
`To use a different model, after finishing setup, use openclaw config and set the model manually.`,
|
|
1311
|
+
);
|
|
1307
1312
|
return { model: fallbackModelForProvider(provider), source: "fallback_guess", availableModels, warnings };
|
|
1308
1313
|
}
|
|
1309
1314
|
|
package/bin/openclaw-trader.mjs
CHANGED
|
@@ -14,18 +14,19 @@ import { resolvePluginPackageRoot } from "./resolve-plugin-root.mjs";
|
|
|
14
14
|
|
|
15
15
|
const execFileAsync = promisify(execFile);
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Fast wizard catalog lookup: prefer one full list, then only probe key providers.
|
|
19
|
+
* Timeouts are intentionally short — on a fresh install the CLI can't reach providers
|
|
20
|
+
* (no credentials yet) so we want to fail fast and show the curated fallback list
|
|
21
|
+
* rather than making the user wait 10+ seconds. Target total: ≤ 5 s.
|
|
22
|
+
*/
|
|
23
|
+
const OPENCLAW_MODELS_FLAT_TIMEOUT_MS = 3_000;
|
|
24
|
+
const OPENCLAW_MODELS_PER_PROVIDER_TIMEOUT_MS = 2_500;
|
|
20
25
|
const WIZARD_PRIORITY_PROVIDERS = [
|
|
21
26
|
"anthropic",
|
|
22
27
|
"openai",
|
|
23
|
-
"openrouter",
|
|
24
28
|
"google",
|
|
25
|
-
"
|
|
26
|
-
"deepseek",
|
|
27
|
-
"groq",
|
|
28
|
-
"mistral",
|
|
29
|
+
"openrouter",
|
|
29
30
|
];
|
|
30
31
|
const WIZARD_PROVIDER_PRIORITY = [
|
|
31
32
|
...WIZARD_PRIORITY_PROVIDERS,
|
|
@@ -2598,7 +2599,7 @@ function wizardHtml(defaults) {
|
|
|
2598
2599
|
|
|
2599
2600
|
const payload = {
|
|
2600
2601
|
llmProvider: llmProviderEl.value.trim(),
|
|
2601
|
-
llmModel:
|
|
2602
|
+
llmModel: llmModelEl.value.trim(),
|
|
2602
2603
|
llmCredential: llmCredentialEl.value.trim(),
|
|
2603
2604
|
apiKey: document.getElementById("apiKey").value.trim(),
|
|
2604
2605
|
telegramToken: document.getElementById("telegramToken").value.trim(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "traderclaw-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
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.65"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"traderclaw",
|