theclawbay 0.4.0 → 0.4.2

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.
@@ -367,6 +367,12 @@ async function writeOpenCodeFamilyConfig(params) {
367
367
  doc.plugin = pluginFilter.next;
368
368
  }
369
369
  const managedOpenAiProvider = (0, fsx_1.objectRecordOr)(providerRoot[providers_1.OPENAI_PROVIDER_ID], {});
370
+ // Pin the AI SDK package: without this, recent OpenCode resolves provider
371
+ // "openai" to @ai-sdk/openai, which defaults to the Responses API — the
372
+ // relay only serves GPT-family models there, so Gemini/community models
373
+ // fail with "not supported on v1/responses". openai-compatible always
374
+ // uses chat completions, which serves every relay model.
375
+ managedOpenAiProvider.npm = "@ai-sdk/openai-compatible";
370
376
  const optionsRoot = (0, fsx_1.objectRecordOr)(managedOpenAiProvider.options, {});
371
377
  optionsRoot.baseURL = (0, urls_1.openAiCompatibleProxyUrl)(params.backendUrl);
372
378
  optionsRoot.apiKey = params.apiKey;
@@ -33,7 +33,11 @@ function powerShellProfilePaths() {
33
33
  const addDocumentsProfiles = (documentsDir) => {
34
34
  if (!documentsDir)
35
35
  return;
36
+ // Must mirror the setup-side list in env-persist.ts: setup writes managed
37
+ // blocks into profile.ps1 as well, so logout has to clean all four paths.
38
+ candidates.add(node_path_1.default.join(documentsDir, "PowerShell", "profile.ps1"));
36
39
  candidates.add(node_path_1.default.join(documentsDir, "PowerShell", "Microsoft.PowerShell_profile.ps1"));
40
+ candidates.add(node_path_1.default.join(documentsDir, "WindowsPowerShell", "profile.ps1"));
37
41
  candidates.add(node_path_1.default.join(documentsDir, "WindowsPowerShell", "Microsoft.PowerShell_profile.ps1"));
38
42
  };
39
43
  if (node_os_1.default.platform() === "win32") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theclawbay",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "CLI for connecting Codex, Hermes Agent, Gemini-compatible apps, Continue, Cline, GSD, OpenClaw, OpenCode, Kilo, Roo Code, Aider, experimental Trae, and experimental Zo to The Claw Bay.",
5
5
  "license": "MIT",
6
6
  "repository": {