theclawbay 0.3.49 → 0.3.50

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.
@@ -1429,7 +1429,15 @@ async function persistApiKeyEnv(params) {
1429
1429
  await promises_1.default.writeFile(ENV_FILE, envContents, "utf8");
1430
1430
  await promises_1.default.chmod(ENV_FILE, 0o600);
1431
1431
  const sourceLine = `[ -f "$HOME/.config/theclawbay/env" ] && . "$HOME/.config/theclawbay/env"`;
1432
- const shellRcPaths = [".bashrc", ".zshrc", ".profile"].map((name) => node_path_1.default.join(node_os_1.default.homedir(), name));
1432
+ const shellRcPaths = [
1433
+ ".bashrc",
1434
+ ".bash_profile",
1435
+ ".bash_login",
1436
+ ".zshrc",
1437
+ ".zprofile",
1438
+ ".zlogin",
1439
+ ".profile",
1440
+ ].map((name) => node_path_1.default.join(node_os_1.default.homedir(), name));
1433
1441
  const updated = [];
1434
1442
  for (const rcPath of shellRcPaths) {
1435
1443
  let existing = "";
@@ -1457,6 +1465,19 @@ async function persistApiKeyEnv(params) {
1457
1465
  }
1458
1466
  return updated;
1459
1467
  }
1468
+ async function persistFishEnv(params) {
1469
+ const fishConfPath = node_path_1.default.join(node_os_1.default.homedir(), ".config", "fish", "conf.d", "theclawbay.fish");
1470
+ await promises_1.default.mkdir(node_path_1.default.dirname(fishConfPath), { recursive: true });
1471
+ const lines = [
1472
+ "# Generated by theclawbay setup",
1473
+ `set -gx ${ENV_KEY_NAME} ${shellQuote(params.apiKey)}`,
1474
+ ];
1475
+ if (params.claudeEnabled) {
1476
+ lines.push("", "# Official Claude Code CLI", `set -gx ${CLAUDE_ENV_API_KEY_NAME} ${shellQuote(params.apiKey)}`, `set -gx ${CLAUDE_ENV_BASE_URL_NAME} ${shellQuote(anthropicCompatibleProxyUrl(params.backendUrl))}`);
1477
+ }
1478
+ await promises_1.default.writeFile(fishConfPath, `${lines.join("\n")}\n`, "utf8");
1479
+ return [fishConfPath];
1480
+ }
1460
1481
  function powerShellProfilePaths() {
1461
1482
  if (node_os_1.default.platform() !== "win32")
1462
1483
  return [];
@@ -2112,6 +2133,7 @@ class SetupCommand extends base_command_1.BaseCommand {
2112
2133
  let resolved = null;
2113
2134
  let claudeAccess = null;
2114
2135
  let updatedShellFiles = [];
2136
+ let updatedFishFiles = [];
2115
2137
  let updatedPowerShellProfiles = [];
2116
2138
  let codexConfigPath = null;
2117
2139
  let updatedVsCodeEnvFiles = [];
@@ -2150,11 +2172,19 @@ class SetupCommand extends base_command_1.BaseCommand {
2150
2172
  backendUrl,
2151
2173
  claudeEnabled: claudeAccess.enabled,
2152
2174
  });
2175
+ updatedFishFiles = await persistFishEnv({
2176
+ apiKey: authCredential,
2177
+ backendUrl,
2178
+ claudeEnabled: claudeAccess.enabled,
2179
+ });
2153
2180
  updatedPowerShellProfiles = await persistPowerShellEnv({
2154
2181
  apiKey: authCredential,
2155
2182
  backendUrl,
2156
2183
  claudeEnabled: claudeAccess.enabled,
2157
2184
  });
2185
+ if (selectedSetupClients.has("codex") || selectedSetupClients.has("claude")) {
2186
+ updatedVsCodeEnvFiles = await persistVsCodeServerEnvSource();
2187
+ }
2158
2188
  if (selectedSetupClients.has("codex")) {
2159
2189
  progress.update("Configuring Codex");
2160
2190
  codexConfigPath = await writeCodexConfig({
@@ -2162,7 +2192,6 @@ class SetupCommand extends base_command_1.BaseCommand {
2162
2192
  model: resolved?.model ?? DEFAULT_CODEX_MODEL,
2163
2193
  apiKey: authCredential,
2164
2194
  });
2165
- updatedVsCodeEnvFiles = await persistVsCodeServerEnvSource();
2166
2195
  if (migrateCodexConversations) {
2167
2196
  sessionMigration = await (0, codex_history_migration_1.migrateSessionProviders)({
2168
2197
  codexHome: paths_1.codexDir,
@@ -2345,6 +2374,9 @@ class SetupCommand extends base_command_1.BaseCommand {
2345
2374
  }
2346
2375
  this.log(`- Local credential env: ${ENV_FILE}`);
2347
2376
  this.log(`- Shell profiles updated: ${updatedShellFiles.join(", ")}`);
2377
+ if (updatedFishFiles.length > 0) {
2378
+ this.log(`- Fish profiles updated: ${updatedFishFiles.join(", ")}`);
2379
+ }
2348
2380
  if (updatedPowerShellProfiles.length > 0) {
2349
2381
  this.log(`- PowerShell profiles updated: ${updatedPowerShellProfiles.join(", ")}`);
2350
2382
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theclawbay",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "description": "CLI for connecting Codex, Continue, Cline, OpenClaw, OpenCode, Kilo, Roo Code, Aider, experimental Trae, and experimental Zo to The Claw Bay.",
5
5
  "license": "MIT",
6
6
  "bin": {