@gheima/cli 0.9.0 → 0.9.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/CHANGELOG.md +6 -0
- package/dist/device-login.js +5 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @gheima/cli
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2c58022: `gheima login --resume` still pending (exit 7) now says to tell the person and run it again once they have approved, instead of "run it again to keep waiting", which led agents to poll until the code expired.
|
|
8
|
+
|
|
3
9
|
## 0.9.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/device-login.js
CHANGED
|
@@ -83,8 +83,11 @@ export async function startDeviceLogin(baseUrl, clientName) {
|
|
|
83
83
|
export class LoginStillPending extends Error {
|
|
84
84
|
name = 'LoginStillPending';
|
|
85
85
|
constructor() {
|
|
86
|
-
super(
|
|
87
|
-
|
|
86
|
+
super(
|
|
87
|
+
// An agent reads this at the exact moment it decides whether to poll again: it says to hand
|
|
88
|
+
// back to the person, as the agent recipe does, not to loop until the code expires.
|
|
89
|
+
'Still waiting for the person to approve the sign-in in the browser. Tell them, and run ' +
|
|
90
|
+
'`gheima login --resume` once they say they have approved.');
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
const defaultSleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GENERATED by scripts/write-version.mjs from package.json. Do not edit.
|
|
2
|
-
export const VERSION = '0.9.
|
|
2
|
+
export const VERSION = '0.9.1';
|