theclawbay 0.3.54 → 0.3.55
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/commands/setup.js +9 -8
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -2328,6 +2328,8 @@ class SetupCommand extends base_command_1.BaseCommand {
|
|
|
2328
2328
|
if (!resolved?.authRejected && claudeAccess.authRejected) {
|
|
2329
2329
|
throw new Error(describeCredentialRejection(authType, claudeAccess.failure));
|
|
2330
2330
|
}
|
|
2331
|
+
const claudeSelected = selectedSetupClients.has("claude");
|
|
2332
|
+
const claudeEnvEnabled = claudeSelected && claudeAccess.enabled;
|
|
2331
2333
|
progress.update("Saving shared machine config");
|
|
2332
2334
|
await (0, config_1.writeManagedConfig)({
|
|
2333
2335
|
backendUrl,
|
|
@@ -2339,17 +2341,17 @@ class SetupCommand extends base_command_1.BaseCommand {
|
|
|
2339
2341
|
updatedShellFiles = await persistApiKeyEnv({
|
|
2340
2342
|
apiKey: authCredential,
|
|
2341
2343
|
backendUrl,
|
|
2342
|
-
claudeEnabled:
|
|
2344
|
+
claudeEnabled: claudeEnvEnabled,
|
|
2343
2345
|
});
|
|
2344
2346
|
updatedFishFiles = await persistFishEnv({
|
|
2345
2347
|
apiKey: authCredential,
|
|
2346
2348
|
backendUrl,
|
|
2347
|
-
claudeEnabled:
|
|
2349
|
+
claudeEnabled: claudeEnvEnabled,
|
|
2348
2350
|
});
|
|
2349
2351
|
updatedPowerShellProfiles = await persistPowerShellEnv({
|
|
2350
2352
|
apiKey: authCredential,
|
|
2351
2353
|
backendUrl,
|
|
2352
|
-
claudeEnabled:
|
|
2354
|
+
claudeEnabled: claudeEnvEnabled,
|
|
2353
2355
|
});
|
|
2354
2356
|
if (selectedSetupClients.has("codex") || selectedSetupClients.has("claude")) {
|
|
2355
2357
|
updatedVsCodeEnvFiles = await persistVsCodeServerEnvSource();
|
|
@@ -2487,11 +2489,11 @@ class SetupCommand extends base_command_1.BaseCommand {
|
|
|
2487
2489
|
const summaryNotes = new Set();
|
|
2488
2490
|
if (resolved?.note)
|
|
2489
2491
|
summaryNotes.add(resolved.note);
|
|
2490
|
-
if (claudeAccess?.enabled) {
|
|
2492
|
+
if (selectedSetupClients.has("claude") && claudeAccess?.enabled) {
|
|
2491
2493
|
summaryNotes.add("Claude Code: exported ANTHROPIC_BASE_URL, ANTHROPIC_API_KEY, and CLAUDE_CODE_SIMPLE=1 for the official client.");
|
|
2492
2494
|
summaryNotes.add("If Claude Code is already open, restart it so the custom-key env takes effect cleanly. `claude auth status` should show `authMethod: api_key` once the new env is loaded.");
|
|
2493
2495
|
}
|
|
2494
|
-
else if (claudeAccess?.note) {
|
|
2496
|
+
else if (selectedSetupClients.has("claude") && claudeAccess?.note) {
|
|
2495
2497
|
summaryNotes.add(claudeAccess.note);
|
|
2496
2498
|
}
|
|
2497
2499
|
if (selectedSetupClients.has("trae")) {
|
|
@@ -2543,11 +2545,10 @@ class SetupCommand extends base_command_1.BaseCommand {
|
|
|
2543
2545
|
}
|
|
2544
2546
|
if (resolved?.note)
|
|
2545
2547
|
this.log(resolved.note);
|
|
2546
|
-
if (claudeAccess?.enabled) {
|
|
2548
|
+
if (selectedSetupClients.has("claude") && claudeAccess?.enabled) {
|
|
2547
2549
|
this.log(`- Claude Code base URL: ${anthropicCompatibleProxyUrl(backendUrl)}`);
|
|
2548
|
-
this.log(`- Claude Code selected: ${selectedSetupClients.has("claude") ? "yes" : "no"}`);
|
|
2549
2550
|
}
|
|
2550
|
-
else if (claudeAccess?.note) {
|
|
2551
|
+
else if (selectedSetupClients.has("claude") && claudeAccess?.note) {
|
|
2551
2552
|
this.log(`- Claude Code: ${claudeAccess.note}`);
|
|
2552
2553
|
}
|
|
2553
2554
|
this.log(`- Local credential env: ${ENV_FILE}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theclawbay",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
4
4
|
"description": "CLI for connecting Codex, Continue, Cline, GSD, OpenClaw, OpenCode, Kilo, Roo Code, Aider, experimental Trae, and experimental Zo to The Claw Bay.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|