swiftroutercli 3.0.0 → 3.0.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.
- package/README.md +5 -5
- package/dist/index.js +2 -2
- package/package.json +3 -2
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Upon first launch, the CLI asks for configuration parameters. You can also confi
|
|
|
23
23
|
## Usage
|
|
24
24
|
Simply run the CLI anywhere on your system:
|
|
25
25
|
```bash
|
|
26
|
-
|
|
26
|
+
swiftroutercli chat
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
- Type `/models` to select models interactively.
|
|
@@ -31,10 +31,10 @@ swiftrouter chat
|
|
|
31
31
|
- Type `/exit` to quit.
|
|
32
32
|
|
|
33
33
|
### Additional Commands
|
|
34
|
-
- `
|
|
35
|
-
- `
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
34
|
+
- `swiftroutercli config --set-api-key <KEY> --set-base-url <URL>`: Manually configure CLI
|
|
35
|
+
- `swiftroutercli models`: List available models natively
|
|
36
|
+
- `swiftroutercli status`: Check authentication and connection status
|
|
37
|
+
- `swiftroutercli logout`: Clear local configuration securely
|
|
38
38
|
|
|
39
39
|
## Built With
|
|
40
40
|
- `ink`
|
package/dist/index.js
CHANGED
|
@@ -46,9 +46,9 @@ async function ensureConfig() {
|
|
|
46
46
|
return config;
|
|
47
47
|
}
|
|
48
48
|
program
|
|
49
|
-
.name("
|
|
49
|
+
.name("swiftroutercli")
|
|
50
50
|
.description("CLI for SwiftRouter AI Gateway")
|
|
51
|
-
.version("
|
|
51
|
+
.version("3.0.1");
|
|
52
52
|
program
|
|
53
53
|
.command("config")
|
|
54
54
|
.description("Manually configure the CLI with your SwiftRouter API Key and Base URL")
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swiftroutercli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "The official SwiftRouter Command Line Interface using React Ink Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"swiftrouter": "./dist/index.js"
|
|
8
|
+
"swiftrouter": "./dist/index.js",
|
|
9
|
+
"swiftroutercli": "./dist/index.js"
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc",
|
package/src/index.ts
CHANGED