@alint-js/cli 0.0.38 → 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.
- package/README.md +22 -1
- package/dist/bin/index.mjs +2 -1
- package/dist/{cli-BQFW2w-L.mjs → cli-B_wKMxdx.mjs} +1432 -461
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -77,6 +77,19 @@ Use `alint setup` to write provider configuration. The `-N` flag is short for `-
|
|
|
77
77
|
|
|
78
78
|
Without `--local`, setup writes the global config at `~/.config/alint/config.toml`. With `--local`, it writes `.alint/config.toml` in the current project.
|
|
79
79
|
|
|
80
|
+
Provider management commands use the same scope policy: writes target the global config by default, and `--local` selects the current project's config. Update an existing provider or edit individual fields with:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
alint config providers update --provider openrouter
|
|
84
|
+
alint config providers set --provider openrouter endpoint https://openrouter.ai/api/v1
|
|
85
|
+
alint config providers set --provider openrouter headers.Authorization "Bearer $TOKEN"
|
|
86
|
+
alint config providers unset --provider openrouter headers.Authorization
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`providers update` probes the provider and adds newly reported models. It is additive by default and does not automatically remove a configured model merely because the remote provider no longer reports it. In the interactive TUI, deselecting a configured model removes it when you confirm the update. Use the destructive `models prune` command when you intend to remove configured models absent from provider responses.
|
|
90
|
+
|
|
91
|
+
Provider inspection, command output, and failure reports show header names only; they never print header values. Header values supplied as command arguments may remain in shell history. Use an environment variable such as `$TOKEN`, not a literal credential.
|
|
92
|
+
|
|
80
93
|
<details>
|
|
81
94
|
<summary>Ollama</summary>
|
|
82
95
|
|
|
@@ -169,10 +182,18 @@ Useful CLI commands:
|
|
|
169
182
|
```bash
|
|
170
183
|
alint config inspect src/index.ts
|
|
171
184
|
alint config providers list
|
|
185
|
+
alint config providers show openrouter
|
|
172
186
|
alint config models list
|
|
173
|
-
alint config models
|
|
187
|
+
alint config models show ollama/qwen
|
|
188
|
+
alint config models probe --endpoint http://localhost:11434/v1
|
|
189
|
+
alint config models rm qwen --provider ollama
|
|
190
|
+
alint config models prune --provider ollama -N --yes
|
|
174
191
|
```
|
|
175
192
|
|
|
193
|
+
When a model ID exists under multiple providers, qualify it as `<provider>/<model-id>` or pass `--provider <provider-id>`. Configuration mutations write globally unless `--local` selects the current project's setup config.
|
|
194
|
+
|
|
195
|
+
`models rm` removes one exact configured model. `models prune` probes provider model endpoints and destructively removes configured IDs that are no longer reported. Interactive prune asks for confirmation; scripts must pass `-N --yes`.
|
|
196
|
+
|
|
176
197
|
Save machine-readable output and inspect it later without rerunning model calls:
|
|
177
198
|
|
|
178
199
|
```bash
|
package/dist/bin/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as executeCli } from "../cli-
|
|
2
|
+
import { t as executeCli } from "../cli-B_wKMxdx.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
//#region src/bin/index.ts
|
|
5
5
|
executeCli(process.argv, {
|
|
6
6
|
cwd: process.cwd(),
|
|
7
7
|
stderr: process.stderr,
|
|
8
|
+
stdin: process.stdin,
|
|
8
9
|
stdout: process.stdout
|
|
9
10
|
}).then((exitCode) => {
|
|
10
11
|
process.exitCode = exitCode;
|