@vibecloudtr/cli 0.6.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 +7 -2
- package/dist/main.js +167 -167
- package/package.json +1 -1
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.
|