@vibecloudtr/cli 0.5.0 → 0.6.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/ENVIRONMENT.md +9 -4
- package/README.md +189 -1383
- package/commands.json +153 -16
- package/dist/main.js +247 -209
- package/package.json +4 -3
package/ENVIRONMENT.md
CHANGED
|
@@ -153,9 +153,14 @@ and deletes the stored credential but leaves the variable's token valid (it says
|
|
|
153
153
|
`VIBECLOUD_OAUTH_SCOPES` → the `scopes_supported` list in the server's own
|
|
154
154
|
RFC 8414 discovery document, which is fetched rather than assumed.
|
|
155
155
|
- Consuming module: `src/cli/config.ts`, `src/cli/commands/session.ts`,
|
|
156
|
-
`src/cli/auth/`
|
|
156
|
+
`src/cli/commands/api.ts`, `src/cli/auth/`
|
|
157
157
|
- Flag equivalents: `--client-id`, `--resource`, `--scope`
|
|
158
|
-
-
|
|
158
|
+
- `VIBECLOUD_OAUTH_CLIENT_ID` and `VIBECLOUD_OAUTH_SCOPES` are read by `vibe login`
|
|
159
|
+
only. `VIBECLOUD_OAUTH_RESOURCE` is also read by every command that uses a
|
|
160
|
+
saved OAuth session: a session whose token `aud` is not the resolved resource is
|
|
161
|
+
refused before it is sent or renewed (it was issued by another deployment), and
|
|
162
|
+
with `VIBECLOUD_API` set and the resource unset it cannot be matched and is
|
|
163
|
+
refused too. A stored opaque access key has no readable `aud` and is not checked.
|
|
159
164
|
|
|
160
165
|
`vibe login` performs the OAuth 2.1 authorization-code flow with PKCE (S256) over
|
|
161
166
|
an RFC 8252 loopback redirect.
|
|
@@ -390,7 +395,7 @@ path; the default points at the platform's mirror.
|
|
|
390
395
|
refresh token, the expiry, and where to renew — because other tools read it
|
|
391
396
|
rather than obtaining their own credential. A bare token in that file is still
|
|
392
397
|
accepted (a `vibe_pat_` PAT from the console). The exact shape, and what a
|
|
393
|
-
reader that renews must write back, is in `
|
|
398
|
+
reader that renews must write back, is in `DEVELOPMENT.md` under "What is stored,
|
|
394
399
|
and where".
|
|
395
400
|
- 🔴 **A reader that renews must persist the rotated refresh token.** The refresh
|
|
396
401
|
grant consumes the one it is presented, so renewing without writing back leaves
|
|
@@ -401,7 +406,7 @@ path; the default points at the platform's mirror.
|
|
|
401
406
|
(`CREDENTIAL_KIND_FORBIDDEN`), and the `__Host-vc_session` cookie is never
|
|
402
407
|
accepted as a bearer token. A login that predates the scope is told to run
|
|
403
408
|
`vibe login` again. The code comes from a prompt or `--otp <code>`; no variable
|
|
404
|
-
supplies it. See `
|
|
409
|
+
supplies it. See `DEVELOPMENT.md` "Dangerous commands ask for a two-factor code".
|
|
405
410
|
|
|
406
411
|
## HEROKU_API_KEY
|
|
407
412
|
|