@pidgeon-ai/cli 1.42.1 → 1.42.3
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.
|
@@ -1975,17 +1975,23 @@ async function* streamEvents(options) {
|
|
|
1975
1975
|
continue;
|
|
1976
1976
|
}
|
|
1977
1977
|
backoffMs = 1e3;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1978
|
+
try {
|
|
1979
|
+
for await (const frame of frames(response.body, options.signal)) {
|
|
1980
|
+
if (frame.id) lastEventId = frame.id;
|
|
1981
|
+
if (!frame.data) continue;
|
|
1982
|
+
if (frame.event === "error") continue;
|
|
1983
|
+
let parsed;
|
|
1984
|
+
try {
|
|
1985
|
+
parsed = JSON.parse(frame.data);
|
|
1986
|
+
} catch {
|
|
1987
|
+
continue;
|
|
1988
|
+
}
|
|
1989
|
+
yield parsed;
|
|
1987
1990
|
}
|
|
1988
|
-
|
|
1991
|
+
} catch {
|
|
1992
|
+
if (options.signal?.aborted) return;
|
|
1993
|
+
await sleep(backoffMs, options.signal);
|
|
1994
|
+
backoffMs = Math.min(backoffMs * 2, 3e4);
|
|
1989
1995
|
}
|
|
1990
1996
|
}
|
|
1991
1997
|
}
|
|
@@ -2037,7 +2043,7 @@ function sleep(ms, signal) {
|
|
|
2037
2043
|
});
|
|
2038
2044
|
}
|
|
2039
2045
|
|
|
2040
|
-
// ../id/dist/chunk-
|
|
2046
|
+
// ../id/dist/chunk-JHNL23AX.js
|
|
2041
2047
|
import { createHash } from "crypto";
|
|
2042
2048
|
import { chmod, mkdir, readFile, readdir, writeFile } from "fs/promises";
|
|
2043
2049
|
import { homedir } from "os";
|
|
@@ -2689,10 +2695,11 @@ function signInWithPidgeon(identity, input) {
|
|
|
2689
2695
|
})
|
|
2690
2696
|
);
|
|
2691
2697
|
}
|
|
2692
|
-
async function signIn(identity, input, authenticate) {
|
|
2698
|
+
async function signIn(identity, input, authenticate, admit) {
|
|
2693
2699
|
const fetcher = input.fetch ?? fetch;
|
|
2694
2700
|
const agent = input.agent.trim().toLowerCase();
|
|
2695
2701
|
const site = await siteMetadata(input.site, fetcher);
|
|
2702
|
+
admit?.(site);
|
|
2696
2703
|
const card = input.card ?? await fetchCard(agent, fetcher, input.postHost);
|
|
2697
2704
|
const discovery = await json(
|
|
2698
2705
|
await fetcher(`${site.issuer.replace(/\/$/, "")}/.well-known/openid-configuration`)
|
|
@@ -3314,4 +3321,4 @@ export {
|
|
|
3314
3321
|
find,
|
|
3315
3322
|
run
|
|
3316
3323
|
};
|
|
3317
|
-
//# sourceMappingURL=chunk-
|
|
3324
|
+
//# sourceMappingURL=chunk-IR4HMGBX.js.map
|