theclawbay 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -17,6 +17,12 @@ This package no longer runs local account login automation or local account swit
17
17
  npm i -g theclawbay
18
18
  ```
19
19
 
20
+ If you use `nvm`, keep a single global prefix to avoid duplicate binaries:
21
+
22
+ ```sh
23
+ npm config delete prefix
24
+ ```
25
+
20
26
  ## One-Time Setup (Recommended)
21
27
 
22
28
  Use your purchased API key from your dashboard:
@@ -26,6 +32,7 @@ theclawbay setup --api-key <apiKey>
26
32
  ```
27
33
 
28
34
  This auto-detects installed clients and writes direct WAN API-key config so users can run directly.
35
+ By default, Codex setup preserves local conversation history (no ChatGPT history sync mode).
29
36
 
30
37
  Explicit client targeting:
31
38
 
@@ -41,6 +48,12 @@ If needed, skip the automatic Codex login step:
41
48
  theclawbay setup --api-key <apiKey> --skip-login
42
49
  ```
43
50
 
51
+ If you explicitly want the prior ChatGPT-linked history mode:
52
+
53
+ ```sh
54
+ theclawbay setup --api-key <apiKey> --openai-sync
55
+ ```
56
+
44
57
  If you operate a custom backend, pass it explicitly:
45
58
 
46
59
  ```sh
@@ -8,6 +8,7 @@ export default class SetupCommand extends BaseCommand {
8
8
  client: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  "openclaw-model": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
10
  "skip-login": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
+ "openai-sync": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
12
  };
12
13
  run(): Promise<void>;
13
14
  }
@@ -135,8 +135,9 @@ async function writeCodexConfig(params) {
135
135
  'name = "OpenAI"',
136
136
  `base_url = "${proxyRoot}/backend-api/codex"`,
137
137
  'wire_api = "responses"',
138
- `chatgpt_base_url = "${proxyRoot}"`,
139
- "requires_openai_auth = true",
138
+ ...(params.openaiSync
139
+ ? [`chatgpt_base_url = "${proxyRoot}"`, "requires_openai_auth = true"]
140
+ : []),
140
141
  MANAGED_END,
141
142
  "",
142
143
  ].join("\n");
@@ -223,6 +224,7 @@ class SetupCommand extends base_command_1.BaseCommand {
223
224
  codexConfigPath = await writeCodexConfig({
224
225
  backendUrl,
225
226
  providerId: flags.provider.trim() || DEFAULT_PROVIDER_ID,
227
+ openaiSync: flags["openai-sync"],
226
228
  });
227
229
  }
228
230
  if (codexWanted && !flags["skip-login"]) {
@@ -245,6 +247,12 @@ class SetupCommand extends base_command_1.BaseCommand {
245
247
  this.log(`Backend: ${backendUrl}`);
246
248
  if (codexConfigPath) {
247
249
  this.log(`Codex config updated at ${codexConfigPath}`);
250
+ if (flags["openai-sync"]) {
251
+ this.log("Codex configured in OpenAI-sync mode (ChatGPT-linked history view).");
252
+ }
253
+ else {
254
+ this.log("Codex configured in local-history mode (default).");
255
+ }
248
256
  }
249
257
  if (openClawWanted) {
250
258
  this.log("OpenClaw model provider updated for direct WAN API-key routing.");
@@ -291,5 +299,10 @@ SetupCommand.flags = {
291
299
  default: false,
292
300
  description: "Skip `codex login --with-api-key`",
293
301
  }),
302
+ "openai-sync": core_1.Flags.boolean({
303
+ required: false,
304
+ default: false,
305
+ description: "Enable OpenAI-synced conversation mode (writes chatgpt_base_url/requires_openai_auth); may prefer remote ChatGPT history over local-only history",
306
+ }),
294
307
  };
295
308
  exports.default = SetupCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theclawbay",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "The Claw Bay CLI: one-time API-key setup for direct Codex access, with optional relay fallback.",
5
5
  "license": "MIT",
6
6
  "bin": {