openclaw-aicodewith-auth 0.3.2 → 0.3.3

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.
@@ -15,8 +15,6 @@ import {
15
15
  AICODEWITH_GPT_BASE_URL,
16
16
  AICODEWITH_CLAUDE_BASE_URL,
17
17
  AICODEWITH_GEMINI_BASE_URL,
18
- CODEX_USER_AGENT,
19
- CODEX_ORIGINATOR,
20
18
  } from "../../src/constants.js";
21
19
 
22
20
  export type ModelFamily = "gpt" | "claude" | "gemini";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-aicodewith-auth",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "AICodewith provider plugin for OpenClaw - Access GPT, Claude, and Gemini models via AICodewith API",
6
6
  "author": "daneel",
package/src/auth.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  import {
2
- AICODEWITH_GPT_BASE_URL,
3
- AICODEWITH_CLAUDE_BASE_URL,
4
- AICODEWITH_GEMINI_BASE_URL,
5
2
  PROVIDER_ID_GPT,
6
3
  PROVIDER_ID_CLAUDE,
7
4
  PROVIDER_ID_GEMINI,
@@ -54,35 +51,17 @@ export function createAicodewithAuthMethod() {
54
51
  },
55
52
  ],
56
53
  configPatch: {
57
- models: {
58
- providers: {
59
- [PROVIDER_ID_GPT]: {
60
- ...providerConfigs[PROVIDER_ID_GPT],
61
- apiKey: trimmedKey,
62
- },
63
- [PROVIDER_ID_CLAUDE]: {
64
- ...providerConfigs[PROVIDER_ID_CLAUDE],
65
- apiKey: trimmedKey,
66
- },
67
- [PROVIDER_ID_GEMINI]: {
68
- ...providerConfigs[PROVIDER_ID_GEMINI],
69
- apiKey: trimmedKey,
70
- },
54
+ auth: {
55
+ order: {
56
+ [PROVIDER_ID_GPT]: [AUTH_PROFILE_ID],
57
+ [PROVIDER_ID_CLAUDE]: [AUTH_PROFILE_ID],
58
+ [PROVIDER_ID_GEMINI]: [AUTH_PROFILE_ID],
71
59
  },
72
60
  },
73
61
  agents: {
74
62
  defaults: {
75
- model: defaultModelRef,
76
- models: {
77
- ...Object.fromEntries(
78
- providerConfigs[PROVIDER_ID_GPT].models.map((m) => [`${PROVIDER_ID_GPT}/${m.id}`, {}])
79
- ),
80
- ...Object.fromEntries(
81
- providerConfigs[PROVIDER_ID_CLAUDE].models.map((m) => [`${PROVIDER_ID_CLAUDE}/${m.id}`, {}])
82
- ),
83
- ...Object.fromEntries(
84
- providerConfigs[PROVIDER_ID_GEMINI].models.map((m) => [`${PROVIDER_ID_GEMINI}/${m.id}`, {}])
85
- ),
63
+ model: {
64
+ primary: defaultModelRef,
86
65
  },
87
66
  },
88
67
  },
package/src/constants.ts CHANGED
@@ -14,7 +14,3 @@ export const PLUGIN_ID = "openclaw-aicodewith-auth";
14
14
  export const PLUGIN_NAME = "AICodewith";
15
15
  export const PLUGIN_DESCRIPTION =
16
16
  "Access GPT, Claude, and Gemini models via AICodewith API";
17
-
18
- // Codex-specific headers (required for GPT models)
19
- export const CODEX_USER_AGENT = "codex_cli_rs/0.77.0 (Mac OS 26.2.0; arm64) iTerm.app/3.6.6";
20
- export const CODEX_ORIGINATOR = "codex_cli_rs";