@minniexcode/codex-switch 0.0.12 → 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.
Files changed (36) hide show
  1. package/README.AI.md +37 -6
  2. package/README.CN.md +45 -11
  3. package/README.md +45 -13
  4. package/dist/app/add-provider.js +22 -24
  5. package/dist/app/edit-provider.js +34 -55
  6. package/dist/app/get-current-profile.js +15 -3
  7. package/dist/app/get-status.js +11 -8
  8. package/dist/app/list-config-profiles.js +3 -1
  9. package/dist/app/list-providers.js +10 -4
  10. package/dist/app/remove-provider.js +52 -19
  11. package/dist/app/run-doctor.js +29 -28
  12. package/dist/app/setup-codex.js +3 -3
  13. package/dist/app/show-config.js +3 -1
  14. package/dist/app/switch-provider.js +36 -5
  15. package/dist/cli/output.js +36 -18
  16. package/dist/commands/handlers.js +2 -2
  17. package/dist/commands/help.js +3 -3
  18. package/dist/commands/registry.js +35 -30
  19. package/dist/domain/config.js +250 -185
  20. package/dist/domain/providers.js +23 -0
  21. package/dist/domain/runtime-state.js +15 -15
  22. package/dist/domain/setup.js +3 -1
  23. package/dist/interaction/interactive.js +2 -2
  24. package/dist/runtime/codex-version.js +7 -0
  25. package/dist/storage/config-repo.js +6 -14
  26. package/docs/Design/codex-switch-v0.1.0-design.md +152 -0
  27. package/docs/Design/codex-switch-v0.1.1-design.md +33 -0
  28. package/docs/PRD/codex-switch-prd-v0.1.0.md +217 -205
  29. package/docs/Reference/codex-config-reference.md +41 -0
  30. package/docs/Reference/codex-config-reference.zh-CN.md +41 -0
  31. package/docs/Tests/testing.md +31 -78
  32. package/docs/cli-usage.md +86 -27
  33. package/docs/codex-switch-command-design.md +649 -649
  34. package/docs/codex-switch-product-overview.md +81 -80
  35. package/docs/codex-switch-technical-architecture.md +1115 -1115
  36. package/package.json +51 -51
package/package.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "name": "@minniexcode/codex-switch",
3
- "version": "0.0.12",
4
- "description": "Local-first CLI for managing and switching Codex provider/profile configuration.",
5
- "license": "MIT",
6
- "type": "commonjs",
7
- "bin": {
8
- "codexs": "dist/cli.js"
9
- },
10
- "files": [
11
- "dist",
12
- "docs",
13
- "README.md",
14
- "LICENSE"
15
- ],
16
- "keywords": [
17
- "codex",
18
- "cli",
19
- "switch",
20
- "provider",
21
- "profile",
22
- "automation"
23
- ],
24
- "engines": {
25
- "node": ">=18"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/minniexcode/codex-switch.git"
30
- },
31
- "bugs": {
32
- "url": "https://github.com/minniexcode/codex-switch/issues"
33
- },
34
- "homepage": "https://github.com/minniexcode/codex-switch#readme",
35
- "publishConfig": {
36
- "access": "public"
37
- },
38
- "scripts": {
39
- "build": "node scripts/build.cjs",
40
- "prepare": "npm run build",
41
- "start": "node ./dist/cli.js",
42
- "test": "npm run build && node tests/run-tests.js"
43
- },
44
- "devDependencies": {
45
- "@types/node": "^24.12.3",
46
- "typescript": "^5.9.3"
47
- },
48
- "dependencies": {
49
- "inquirer": "^13.4.3"
50
- }
51
- }
1
+ {
2
+ "name": "@minniexcode/codex-switch",
3
+ "version": "0.1.1",
4
+ "description": "Local-first CLI for managing and switching Codex provider/model-provider routing.",
5
+ "license": "MIT",
6
+ "type": "commonjs",
7
+ "bin": {
8
+ "codexs": "dist/cli.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "docs",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "keywords": [
17
+ "codex",
18
+ "cli",
19
+ "switch",
20
+ "provider",
21
+ "profile",
22
+ "automation"
23
+ ],
24
+ "engines": {
25
+ "node": ">=18"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/minniexcode/codex-switch.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/minniexcode/codex-switch/issues"
33
+ },
34
+ "homepage": "https://github.com/minniexcode/codex-switch#readme",
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "node scripts/build.cjs",
40
+ "prepare": "npm run build",
41
+ "start": "node ./dist/cli.js",
42
+ "test": "npm run build && node tests/run-tests.js"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^24.12.3",
46
+ "typescript": "^5.9.3"
47
+ },
48
+ "dependencies": {
49
+ "inquirer": "^13.4.3"
50
+ }
51
+ }