@rayul/kordis 0.12.0 → 0.12.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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2208,7 +2208,7 @@ function assertSafeVerificationUrl(raw) {
|
|
|
2208
2208
|
function loginCommand() {
|
|
2209
2209
|
return new Command("login").description("authenticate with the Kordis registry").option("--provider <name>", "OAuth provider", "google").option("--no-browser", "don't auto-open the browser; print the URL instead").option(
|
|
2210
2210
|
"--emit-only",
|
|
2211
|
-
"start device flow, open browser, save pending state, exit immediately \u2014
|
|
2211
|
+
"start device flow, open the user's browser, save pending state, and exit immediately (no blocking poll) \u2014 THE login path an agent should drive on a user's behalf; the next CLI call auto-claims the token. Prefer this over plain `login`, whose 10-min poll exceeds an agent's bash timeout"
|
|
2212
2212
|
).action(async (opts) => {
|
|
2213
2213
|
const bundle = await useClient();
|
|
2214
2214
|
const started = spinner("Requesting device code");
|
|
@@ -2318,7 +2318,7 @@ function requireAuth(bundle) {
|
|
|
2318
2318
|
error: {
|
|
2319
2319
|
code: "not_authenticated",
|
|
2320
2320
|
message: "authentication required",
|
|
2321
|
-
hint: "
|
|
2321
|
+
hint: "Authenticate first \u2014 and if you are an AGENT acting for a user, lead the login yourself: YOU run `kordis login --emit-only`. It opens the user's browser (they just click Authorize) and returns immediately with no blocking poll; then re-run this command and the token is auto-claimed. Do NOT tell the user to run a login command themselves, and do NOT run plain `kordis login` \u2014 its ~10-min poll will exceed your bash timeout. Plain `kordis login` is ONLY for a human typing at their own terminal. If the user already clicked Authorize but auth still fails, re-run with `KORDIS_DEBUG=1` to surface auto-finalize stages."
|
|
2322
2322
|
}
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|