cc-provider-switcher 0.2.0 → 0.2.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.
- package/README.md +9 -1
- package/dist/cli.js +4 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/cc-provider-switcher)
|
|
4
4
|
[](./LICENSE)
|
|
5
|
-
[](https://nodejs.org)
|
|
6
6
|
|
|
7
7
|
Switch Claude Code between AI providers with one command.
|
|
8
8
|
|
|
@@ -26,6 +26,14 @@ Or use without installing:
|
|
|
26
26
|
npx cc-provider-switcher deepseek
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
## Updating
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install -g cc-provider-switcher@latest
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> `npm update` won't cross major versions — always use `@latest` to get the newest release.
|
|
36
|
+
|
|
29
37
|
---
|
|
30
38
|
|
|
31
39
|
## Quick start
|
package/dist/cli.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/cli.ts
|
|
4
4
|
import { program } from "commander";
|
|
5
|
+
import { createRequire } from "module";
|
|
5
6
|
|
|
6
7
|
// src/types.ts
|
|
7
8
|
import { z } from "zod";
|
|
@@ -696,7 +697,9 @@ function confirm2(prompt) {
|
|
|
696
697
|
}
|
|
697
698
|
|
|
698
699
|
// src/cli.ts
|
|
699
|
-
|
|
700
|
+
var require2 = createRequire(import.meta.url);
|
|
701
|
+
var { version } = require2("../package.json");
|
|
702
|
+
program.name("ccs").description("Switch Claude Code between AI providers").version(version);
|
|
700
703
|
registerListCommand(program);
|
|
701
704
|
registerStatusCommand(program);
|
|
702
705
|
registerConfigCommand(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-provider-switcher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Switch Claude Code between AI providers with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=20"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsup",
|
|
24
24
|
"dev": "tsx src/cli.ts",
|
|
25
25
|
"test": "vitest run",
|
|
26
26
|
"test:watch": "vitest",
|
|
27
|
+
"prepare": "npm run build",
|
|
27
28
|
"prepublishOnly": "npm run build"
|
|
28
29
|
},
|
|
29
30
|
"keywords": [
|