@praeviso/code-env-switch 0.1.0 → 0.1.1

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.
@@ -1,39 +1,41 @@
1
1
  {
2
- "unset": [
3
- "OPENAI_BASE_URL",
4
- "OPENAI_API_KEY",
5
- "CODEX_PROVIDER",
6
- "ANTHROPIC_API_KEY",
7
- "CLAUDE_CODE_BASE_URL"
8
- ],
2
+ "unset": [],
3
+ "defaultProfiles": {
4
+ "codex": "primary",
5
+ "claude": "default"
6
+ },
9
7
  "profiles": {
10
- "codex-88": {
11
- "note": "OpenAI official",
8
+ "p_a1b2c3": {
9
+ "name": "primary",
10
+ "type": "codex",
11
+ "note": "Primary endpoint",
12
12
  "env": {
13
- "OPENAI_BASE_URL": "https://api.openai.com/v1",
14
- "OPENAI_API_KEY": "sk-REPLACE_ME",
15
- "CODEX_PROVIDER": "OpenAI"
13
+ "OPENAI_BASE_URL": "https://api.example.com/v1",
14
+ "OPENAI_API_KEY": "YOUR_API_KEY"
16
15
  },
17
16
  "removeFiles": [
18
- "$HOME/.config/openai/auth.json"
17
+ "$HOME/.config/example/auth.json"
19
18
  ]
20
19
  },
21
- "codex-mirror": {
22
- "note": "AICodeMirror",
20
+ "p_d4e5f6": {
21
+ "name": "secondary",
22
+ "type": "codex",
23
+ "note": "Secondary endpoint",
23
24
  "env": {
24
- "OPENAI_BASE_URL": "https://api.aicodemirror.com/api/codex/backend-api/codex",
25
- "OPENAI_API_KEY": "sk-REPLACE_ME",
26
- "CODEX_PROVIDER": "AICodeMirror"
25
+ "OPENAI_BASE_URL": "https://api.secondary.example.com/v1",
26
+ "OPENAI_API_KEY": "YOUR_API_KEY"
27
27
  },
28
28
  "removeFiles": [
29
- "$HOME/.config/openai/auth.json"
29
+ "$HOME/.config/example/auth.json"
30
30
  ]
31
31
  },
32
- "claude": {
33
- "note": "Claude Code",
32
+ "p_g7h8i9": {
33
+ "name": "default",
34
+ "type": "claude",
35
+ "note": "Default endpoint",
34
36
  "env": {
35
- "ANTHROPIC_API_KEY": "sk-REPLACE_ME",
36
- "CLAUDE_CODE_BASE_URL": "https://api.anthropic.com"
37
+ "ANTHROPIC_API_KEY": "YOUR_API_KEY",
38
+ "ANTHROPIC_BASE_URL": "https://api.example.com"
37
39
  }
38
40
  }
39
41
  }
package/package.json CHANGED
@@ -1,13 +1,25 @@
1
1
  {
2
2
  "name": "@praeviso/code-env-switch",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Switch between Claude Code and Codex environment variables from a single CLI",
5
5
  "bin": {
6
6
  "codenv": "bin/codenv.js"
7
7
  },
8
+ "scripts": {
9
+ "build": "tsc -p tsconfig.json",
10
+ "lint": "eslint . --ext .ts",
11
+ "lint:fix": "eslint . --ext .ts --fix"
12
+ },
8
13
  "type": "commonjs",
9
14
  "license": "MIT",
10
15
  "engines": {
11
16
  "node": ">=16"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^20.11.0",
20
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
21
+ "@typescript-eslint/parser": "^6.21.0",
22
+ "eslint": "^8.57.0",
23
+ "typescript": "^5.9.3"
12
24
  }
13
25
  }