@alchemy/cli 0.9.1 → 0.9.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.
- package/dist/auth-23OYLRWN.js +16 -0
- package/dist/{auth-IAM4AMBK.js → auth-KS6VPHHU.js} +2 -2
- package/dist/{chunk-75ICFV5K.js → chunk-3GBDYROJ.js} +1 -1
- package/dist/{chunk-RGVM5SNE.js → chunk-AMGGO36F.js} +1 -1
- package/dist/{chunk-SIIZGMK5.js → chunk-ANONMDDZ.js} +327 -72
- package/dist/{chunk-OVLQH6KL.js → chunk-CTTW4PA4.js} +1 -0
- package/dist/{chunk-TTWOBNJP.js → chunk-D2RUM2DD.js} +4 -4
- package/dist/{chunk-GDLPBPG3.js → chunk-GLKB4JM7.js} +1 -1
- package/dist/{chunk-L2WODD2D.js → chunk-L5E7GEUU.js} +6 -6
- package/dist/{chunk-AJOLFTCZ.js → chunk-NUSUQI7X.js} +3 -3
- package/dist/{chunk-MV7O3XBG.js → chunk-PMNRIXJI.js} +1 -1
- package/dist/{chunk-P56HOTPV.js → chunk-VN5JUWHO.js} +2 -2
- package/dist/{errors-T6XE2I2L.js → errors-YPNK3AVF.js} +1 -1
- package/dist/index.js +854 -91
- package/dist/{interactive-IFPSMRMX.js → interactive-KLVEYTQM.js} +7 -7
- package/dist/{onboarding-ZLBWCNTB.js → onboarding-IJQ72DK7.js} +6 -6
- package/dist/{policy-prompt-4BV5AWVV.js → policy-prompt-V6W7CPAO.js} +5 -5
- package/dist/{resolve-FQ66OWT7.js → resolve-REZCFZZ7.js} +3 -3
- package/package.json +5 -8
- package/dist/auth-6BBITIOZ.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-VN5JUWHO.js";
|
|
6
|
+
import "./chunk-3GBDYROJ.js";
|
|
7
7
|
import {
|
|
8
8
|
getRPCNetworkIds
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ANONMDDZ.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateNoticeLines
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NUSUQI7X.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-PMNRIXJI.js";
|
|
21
21
|
import {
|
|
22
22
|
configDir,
|
|
23
23
|
load
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GLKB4JM7.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-CTTW4PA4.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-NUSUQI7X.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-PMNRIXJI.js";
|
|
14
14
|
import {
|
|
15
15
|
load,
|
|
16
16
|
save
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-GLKB4JM7.js";
|
|
18
|
+
import "./chunk-CTTW4PA4.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-KS6VPHHU.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-23OYLRWN.js");
|
|
55
55
|
await selectAppAfterAuth(result.token);
|
|
56
56
|
return true;
|
|
57
57
|
} catch (err) {
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
errNotLoggedInForPolicyLookup,
|
|
6
6
|
errSponsorshipNeedsPolicy,
|
|
7
7
|
selectOrCreatePolicy
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-D2RUM2DD.js";
|
|
9
|
+
import "./chunk-ANONMDDZ.js";
|
|
10
|
+
import "./chunk-PMNRIXJI.js";
|
|
11
|
+
import "./chunk-GLKB4JM7.js";
|
|
12
|
+
import "./chunk-CTTW4PA4.js";
|
|
13
13
|
export {
|
|
14
14
|
createPolicyInteractive,
|
|
15
15
|
errNotLoggedInForPolicyLookup,
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
resolveWalletSession,
|
|
25
25
|
resolveX402,
|
|
26
26
|
resolveX402Client
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-ANONMDDZ.js";
|
|
28
|
+
import "./chunk-GLKB4JM7.js";
|
|
29
|
+
import "./chunk-CTTW4PA4.js";
|
|
30
30
|
export {
|
|
31
31
|
adminClientFromFlags,
|
|
32
32
|
clientFromFlags,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alchemy/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Alchemy CLI — interact with blockchain data",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"zod": "^4.3.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@changesets/changelog-github": "^0.6.0",
|
|
41
|
-
"@changesets/cli": "^2.30.0",
|
|
42
40
|
"@types/node": "^25.3.0",
|
|
43
41
|
"@types/qrcode": "^1.5.6",
|
|
44
42
|
"@vitest/coverage-v8": "^4.0.18",
|
|
45
43
|
"tsup": "^8.5.1",
|
|
46
44
|
"tsx": "^4.21.0",
|
|
47
45
|
"typescript": "^5.9.3",
|
|
48
|
-
"vitest": "^4.0.18"
|
|
46
|
+
"vitest": "^4.0.18",
|
|
47
|
+
"@alchemy/sdk": "0.0.0"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
50
|
+
"prebuild": "pnpm --filter @alchemy/sdk build",
|
|
51
51
|
"build": "tsup",
|
|
52
52
|
"dev": "tsup --watch",
|
|
53
53
|
"live:check": "node --env-file-if-exists=.env.local --import=tsx scripts/live-check.ts",
|
|
@@ -59,9 +59,6 @@
|
|
|
59
59
|
"test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
|
|
60
60
|
"test:live": "pnpm build && node --env-file-if-exists=.env.local ./node_modules/vitest/vitest.mjs run --config vitest.live.config.ts",
|
|
61
61
|
"test:watch": "vitest",
|
|
62
|
-
"lint": "tsc --noEmit"
|
|
63
|
-
"changeset": "changeset",
|
|
64
|
-
"version-packages": "changeset version",
|
|
65
|
-
"release": "pnpm build && changeset publish"
|
|
62
|
+
"lint": "tsc --noEmit"
|
|
66
63
|
}
|
|
67
64
|
}
|
package/dist/auth-6BBITIOZ.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-L2WODD2D.js";
|
|
7
|
-
import "./chunk-RGVM5SNE.js";
|
|
8
|
-
import "./chunk-75ICFV5K.js";
|
|
9
|
-
import "./chunk-SIIZGMK5.js";
|
|
10
|
-
import "./chunk-MV7O3XBG.js";
|
|
11
|
-
import "./chunk-GDLPBPG3.js";
|
|
12
|
-
import "./chunk-OVLQH6KL.js";
|
|
13
|
-
export {
|
|
14
|
-
registerAuth,
|
|
15
|
-
selectAppAfterAuth
|
|
16
|
-
};
|