@kosuke-ai/cli 1.0.0 → 1.0.1-next.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 +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,36 @@ The token comes from `--api-key`, then `KOSUKE_API_KEY`, then the file
|
|
|
24
24
|
`KOSUKE_CONFIG_DIR`). `--api-url` / `KOSUKE_API_URL` point it at another
|
|
25
25
|
deployment.
|
|
26
26
|
|
|
27
|
+
## Nightly builds
|
|
28
|
+
|
|
29
|
+
The `next` dist-tag tracks the newest build of `main` that touched `apps/cli`
|
|
30
|
+
(a burst of merges publishes only the last one), so the CLI can be as new as
|
|
31
|
+
stage without waiting for a `cli-v*` release:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
npm install -g @kosuke-ai/cli@next
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`next` is a moving tag: the same command updates. Each build is a prerelease
|
|
38
|
+
(`1.0.1-next.12`), and npm never resolves a prerelease from a plain range, so
|
|
39
|
+
`npm install -g @kosuke-ai/cli` keeps giving the released line.
|
|
40
|
+
|
|
41
|
+
`kosuke auth login` writes the token, and the API URL when it is not the
|
|
42
|
+
default, into one `credentials.json` that replaces whatever was there, so a
|
|
43
|
+
config directory holds exactly one deployment and logging into stage would
|
|
44
|
+
overwrite a production login. Give stage its own directory, and keep
|
|
45
|
+
`KOSUKE_CONFIG_DIR` exported for every `kosuke` call meant for stage: a new
|
|
46
|
+
shell without it is silently back on production.
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
export KOSUKE_CONFIG_DIR=~/.config/kosuke-stage
|
|
50
|
+
kosuke auth login --api-url https://app.stage.kosuke.ai
|
|
51
|
+
kosuke projects list # same shell, so it reads the stage token and URL
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
A shell alias or direnv keeps the variable set; `kosuke auth status` prints
|
|
55
|
+
which URL, which token source and which credentials file won.
|
|
56
|
+
|
|
27
57
|
## Generated from the API
|
|
28
58
|
|
|
29
59
|
`openapi.json` is the platform's own `GET /api/openapi.json`, snapshotted by
|