@kodycodes/cli 3.34.12 → 3.34.13

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 (2) hide show
  1. package/README.md +15 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -166,9 +166,11 @@ npx @kodycodes/cli api usageGet --params '{}'
166
166
  `kody login`; CI/headless uses `tokenCreate` + `KODY_API_TOKEN`.
167
167
  - For `execute --local` specifically: `--token` / `KODY_API_TOKEN` wins when
168
168
  set; else the one saved CLI credential from `kody login` or
169
- `kody auth bootstrap` (same slot, whichever ran last). A token an older CLI
170
- left in the old API-token slot is moved into that credential only when nothing
171
- else is saved; `kody login` deletes it. For a different API origin, use
169
+ `kody auth bootstrap` for the selected org (see
170
+ [Which credential a command uses](#which-credential-a-command-uses)). A token
171
+ an older CLI left in the old API-token slot is moved into that credential only
172
+ when nothing else is saved and no `--org` / `KODY_ORG` is given; `kody login`
173
+ tries to delete it. For a different API origin, use
172
174
  `auth bootstrap --api-url <origin>` or set `KODY_API_TOKEN`.
173
175
  - Wrong/expired token → 401 with the same agent-first not-authenticated guidance
174
176
  (or the OAuth platform-gap message when the bearer is login OAuth).
@@ -194,12 +196,18 @@ saved credential. Unset it for normal CLI precedence.
194
196
 
195
197
  - The saved credential comes from `kody login` or `kody auth bootstrap`. Both
196
198
  save the same kind of `kody_at_…` (every scope your org role grants, 14d idle
197
- / 3mo max) in the same slot, so whichever ran last is what every command,
198
- including git, uses. There is no second token and no fallback between them.
199
+ / 3mo max) in the same per-org slot, so for each org, whichever ran last for
200
+ that org is what every command, including git, uses. A command acts as
201
+ `--org`, then `KODY_ORG`, then the active org (the last `kody login` or
202
+ `kody auth bootstrap`): after logging in to `acme` and then `beta`,
203
+ `--org acme` still uses the `acme` credential. There is no second token and no
204
+ fallback between them.
199
205
  - A token saved by an older CLI in the old API-token slot is moved into the
200
206
  saved credential the first time nothing else is saved, and is ignored once a
201
- login exists. `kody login` deletes it. Old tokens keep working until they
202
- expire.
207
+ login exists. That old token has no org, so a command run with `--org` or
208
+ `KODY_ORG` never adopts it. `kody login` tries to delete it and prints a note
209
+ when it could not; the leftover is ignored either way. Old tokens keep working
210
+ until they expire.
203
211
  - `kody whoami` prints `credential:` (which one is in use, with its token id)
204
212
  and its `scopes:`. With `--json` the same data is under `credential`.
205
213
  - `insufficient_scope` errors end with `Credential used: …` and how to widen it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kodycodes/cli",
3
- "version": "3.34.12",
3
+ "version": "3.34.13",
4
4
  "description": "Official Kody CLI: login, secure token storage, search, and execute over the OpenAPI.",
5
5
  "type": "module",
6
6
  "bin": {