@alchemy/cli 0.7.4 → 0.9.0
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/auth-65X7EMCF.js +16 -0
- package/dist/{auth-GD7BJOMK.js → auth-IAM4AMBK.js} +2 -2
- package/dist/{chunk-64A5W4M2.js → chunk-75ICFV5K.js} +1 -1
- package/dist/{chunk-K6V3R7SH.js → chunk-7ZSEELHZ.js} +312 -8
- package/dist/chunk-AJPOUEO6.js +186 -0
- package/dist/{chunk-JUCUKTP3.js → chunk-GDLPBPG3.js} +1 -1
- package/dist/{chunk-5IL2PMZ6.js → chunk-MV7O3XBG.js} +1 -1
- package/dist/{chunk-R4W44A6E.js → chunk-NMT7XH3C.js} +5 -5
- package/dist/{chunk-2BALTY22.js → chunk-OVLQH6KL.js} +12 -4
- package/dist/{chunk-C5HNQOLB.js → chunk-RGVM5SNE.js} +1 -1
- package/dist/{chunk-N36ZNOVV.js → chunk-WT4RGQLC.js} +3 -3
- package/dist/{chunk-XSN4XA5Z.js → chunk-XCKUCXC6.js} +6 -6
- package/dist/{errors-E2P6WHTX.js → errors-T6XE2I2L.js} +3 -1
- package/dist/index.js +1062 -234
- package/dist/{interactive-MHAC5WQI.js → interactive-GVMPYXNJ.js} +7 -7
- package/dist/{onboarding-CT4RRH6O.js → onboarding-MDHVOUY3.js} +6 -6
- package/dist/policy-prompt-PHVO6VRZ.js +18 -0
- package/dist/{resolve-WXT5ZCUK.js → resolve-GBS26K44.js} +7 -3
- package/package.json +1 -1
- package/dist/auth-F2IXC6CM.js +0 -16
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
3
|
import {
|
|
4
4
|
getSetupMethod
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-NMT7XH3C.js";
|
|
6
|
+
import "./chunk-75ICFV5K.js";
|
|
7
7
|
import {
|
|
8
8
|
getRPCNetworkIds
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7ZSEELHZ.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateNoticeLines
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WT4RGQLC.js";
|
|
13
13
|
import {
|
|
14
14
|
bold,
|
|
15
15
|
brand,
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
dim,
|
|
18
18
|
green,
|
|
19
19
|
setBrandedHelpSuppressed
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MV7O3XBG.js";
|
|
21
21
|
import {
|
|
22
22
|
configDir,
|
|
23
23
|
load
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GDLPBPG3.js";
|
|
25
25
|
import {
|
|
26
26
|
bgRgb,
|
|
27
27
|
isJSONMode,
|
|
28
28
|
noColor,
|
|
29
29
|
rgb,
|
|
30
30
|
setReplMode
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OVLQH6KL.js";
|
|
32
32
|
|
|
33
33
|
// src/commands/interactive.ts
|
|
34
34
|
import * as readline from "readline";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
3
|
import {
|
|
4
4
|
getUpdateNoticeLines
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WT4RGQLC.js";
|
|
6
6
|
import {
|
|
7
7
|
bold,
|
|
8
8
|
brand,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
dim,
|
|
11
11
|
green,
|
|
12
12
|
promptText
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MV7O3XBG.js";
|
|
14
14
|
import {
|
|
15
15
|
load,
|
|
16
16
|
save
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-GDLPBPG3.js";
|
|
18
|
+
import "./chunk-OVLQH6KL.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/onboarding.ts
|
|
21
21
|
async function runOnboarding(_program, latestUpdate = null) {
|
|
@@ -38,7 +38,7 @@ async function runOnboarding(_program, latestUpdate = null) {
|
|
|
38
38
|
if (answer === null) {
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
|
-
const { performBrowserLogin, AUTH_PORT, getLoginUrl } = await import("./auth-
|
|
41
|
+
const { performBrowserLogin, AUTH_PORT, getLoginUrl } = await import("./auth-IAM4AMBK.js");
|
|
42
42
|
console.log(` Opening browser to log in...`);
|
|
43
43
|
console.log(` ${dim(getLoginUrl(AUTH_PORT))}`);
|
|
44
44
|
console.log(` ${dim("Waiting for authentication...")}`);
|
|
@@ -51,7 +51,7 @@ async function runOnboarding(_program, latestUpdate = null) {
|
|
|
51
51
|
auth_token_expires_at: result.expiresAt
|
|
52
52
|
});
|
|
53
53
|
console.log(` ${green("\u2713")} Logged in successfully`);
|
|
54
|
-
const { selectAppAfterAuth } = await import("./auth-
|
|
54
|
+
const { selectAppAfterAuth } = await import("./auth-65X7EMCF.js");
|
|
55
55
|
await selectAppAfterAuth(result.token);
|
|
56
56
|
return true;
|
|
57
57
|
} catch (err) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
|
+
import {
|
|
4
|
+
createPolicyInteractive,
|
|
5
|
+
errNotLoggedInForPolicyLookup,
|
|
6
|
+
errSponsorshipNeedsPolicy,
|
|
7
|
+
selectOrCreatePolicy
|
|
8
|
+
} from "./chunk-AJPOUEO6.js";
|
|
9
|
+
import "./chunk-7ZSEELHZ.js";
|
|
10
|
+
import "./chunk-MV7O3XBG.js";
|
|
11
|
+
import "./chunk-GDLPBPG3.js";
|
|
12
|
+
import "./chunk-OVLQH6KL.js";
|
|
13
|
+
export {
|
|
14
|
+
createPolicyInteractive,
|
|
15
|
+
errNotLoggedInForPolicyLookup,
|
|
16
|
+
errSponsorshipNeedsPolicy,
|
|
17
|
+
selectOrCreatePolicy
|
|
18
|
+
};
|
|
@@ -3,6 +3,8 @@ if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
|
3
3
|
import {
|
|
4
4
|
adminClientFromFlags,
|
|
5
5
|
clientFromFlags,
|
|
6
|
+
gasManagerClientFromFlags,
|
|
7
|
+
hasAuthLoginToken,
|
|
6
8
|
resolveAPIKey,
|
|
7
9
|
resolveAccessKey,
|
|
8
10
|
resolveActiveSigner,
|
|
@@ -22,12 +24,14 @@ import {
|
|
|
22
24
|
resolveWalletSession,
|
|
23
25
|
resolveX402,
|
|
24
26
|
resolveX402Client
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-7ZSEELHZ.js";
|
|
28
|
+
import "./chunk-GDLPBPG3.js";
|
|
29
|
+
import "./chunk-OVLQH6KL.js";
|
|
28
30
|
export {
|
|
29
31
|
adminClientFromFlags,
|
|
30
32
|
clientFromFlags,
|
|
33
|
+
gasManagerClientFromFlags,
|
|
34
|
+
hasAuthLoginToken,
|
|
31
35
|
resolveAPIKey,
|
|
32
36
|
resolveAccessKey,
|
|
33
37
|
resolveActiveSigner,
|
package/package.json
CHANGED
package/dist/auth-F2IXC6CM.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
|
-
import {
|
|
4
|
-
registerAuth,
|
|
5
|
-
selectAppAfterAuth
|
|
6
|
-
} from "./chunk-XSN4XA5Z.js";
|
|
7
|
-
import "./chunk-C5HNQOLB.js";
|
|
8
|
-
import "./chunk-64A5W4M2.js";
|
|
9
|
-
import "./chunk-K6V3R7SH.js";
|
|
10
|
-
import "./chunk-5IL2PMZ6.js";
|
|
11
|
-
import "./chunk-JUCUKTP3.js";
|
|
12
|
-
import "./chunk-2BALTY22.js";
|
|
13
|
-
export {
|
|
14
|
-
registerAuth,
|
|
15
|
-
selectAppAfterAuth
|
|
16
|
-
};
|