@alchemy/cli 0.7.0-alpha.13 → 0.7.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-4HAUNG54.js +16 -0
- package/dist/{auth-FQFFNNZZ.js → auth-JGON2JU6.js} +2 -2
- package/dist/{chunk-HGZTGSXO.js → chunk-7WD3YLRK.js} +1 -1
- package/dist/{chunk-AFD4Y42F.js → chunk-A6L3WCJN.js} +1 -1
- package/dist/{chunk-EKBSQAEG.js → chunk-HSKKIATB.js} +1 -1
- package/dist/{chunk-JMDBEC5L.js → chunk-HYCRHNPX.js} +1 -1
- package/dist/{chunk-KJ5VM7FE.js → chunk-I3X4G2UY.js} +6 -6
- package/dist/{chunk-OLVYWGY6.js → chunk-QEDAULQ2.js} +1 -1
- package/dist/{chunk-A6BWLRFV.js → chunk-TOEVZMIP.js} +2 -2
- package/dist/{chunk-PXPURTNF.js → chunk-V4IK4CJN.js} +3 -3
- package/dist/{chunk-LTR4NPUM.js → chunk-WWWVMK3J.js} +3 -3
- package/dist/{errors-VUVL3B2E.js → errors-3CNFGAXT.js} +1 -1
- package/dist/index.js +24 -21
- package/dist/{interactive-HKPHBHCR.js → interactive-F2AFLW7U.js} +7 -7
- package/dist/{onboarding-LLISVTDS.js → onboarding-RBJF5E7U.js} +6 -6
- package/dist/{resolve-O64VTY3W.js → resolve-R4JZZCCF.js} +3 -3
- package/package.json +24 -18
- package/dist/auth-ZME2NTXG.js +0 -16
|
@@ -0,0 +1,16 @@
|
|
|
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-I3X4G2UY.js";
|
|
7
|
+
import "./chunk-HSKKIATB.js";
|
|
8
|
+
import "./chunk-HYCRHNPX.js";
|
|
9
|
+
import "./chunk-TOEVZMIP.js";
|
|
10
|
+
import "./chunk-A6L3WCJN.js";
|
|
11
|
+
import "./chunk-7WD3YLRK.js";
|
|
12
|
+
import "./chunk-QEDAULQ2.js";
|
|
13
|
+
export {
|
|
14
|
+
registerAuth,
|
|
15
|
+
selectAppAfterAuth
|
|
16
|
+
};
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
completeLogin,
|
|
5
5
|
prepareLogin,
|
|
6
6
|
revokeToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HSKKIATB.js";
|
|
8
8
|
import {
|
|
9
9
|
isInteractiveAllowed
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HYCRHNPX.js";
|
|
11
11
|
import {
|
|
12
12
|
AdminClient,
|
|
13
13
|
resolveAuthToken
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TOEVZMIP.js";
|
|
15
15
|
import {
|
|
16
16
|
bold,
|
|
17
17
|
brand,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
promptAutocomplete,
|
|
21
21
|
promptText,
|
|
22
22
|
withSpinner
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-A6L3WCJN.js";
|
|
24
24
|
import {
|
|
25
25
|
configPath,
|
|
26
26
|
load,
|
|
27
27
|
maskIf,
|
|
28
28
|
save
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7WD3YLRK.js";
|
|
30
30
|
import {
|
|
31
31
|
CLIError,
|
|
32
32
|
ErrorCode,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
exitWithError,
|
|
35
35
|
isJSONMode,
|
|
36
36
|
printHuman
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QEDAULQ2.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/auth.ts
|
|
40
40
|
function registerAuth(program) {
|
|
@@ -388,7 +388,7 @@ function errAuthRequired() {
|
|
|
388
388
|
function errAccessKeyRequired() {
|
|
389
389
|
return new CLIError(
|
|
390
390
|
ErrorCode.ACCESS_KEY_REQUIRED,
|
|
391
|
-
"Access key required. Set ALCHEMY_ACCESS_KEY.",
|
|
391
|
+
"Access key required. Set ALCHEMY_ACCESS_KEY or run 'alchemy config set access-key <key>'.",
|
|
392
392
|
"Get an access key: https://www.alchemy.com/docs/reference/admin-api/overview"
|
|
393
393
|
);
|
|
394
394
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
configDir,
|
|
5
5
|
load,
|
|
6
6
|
save
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7WD3YLRK.js";
|
|
8
8
|
import {
|
|
9
9
|
CLIError,
|
|
10
10
|
ErrorCode,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
parseBaseURLOverride,
|
|
30
30
|
redactSensitiveText,
|
|
31
31
|
verbose
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QEDAULQ2.js";
|
|
33
33
|
|
|
34
34
|
// src/lib/resolve.ts
|
|
35
35
|
import { readFileSync as readFileSync2 } from "fs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
3
|
import {
|
|
4
4
|
isInteractiveAllowed
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HYCRHNPX.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveAuthToken
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TOEVZMIP.js";
|
|
9
9
|
|
|
10
10
|
// src/lib/onboarding.ts
|
|
11
11
|
function hasAPIKey(cfg) {
|
|
@@ -47,7 +47,7 @@ function getSetupStatus(cfg) {
|
|
|
47
47
|
nextCommands: [
|
|
48
48
|
"alchemy auth",
|
|
49
49
|
"alchemy config set app",
|
|
50
|
-
"
|
|
50
|
+
"alchemy config set access-key <key> && alchemy config set app <app-id>",
|
|
51
51
|
"alchemy wallet connect --mode local --chain evm && alchemy config set x402 true"
|
|
52
52
|
]
|
|
53
53
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
3
|
import {
|
|
4
4
|
configPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7WD3YLRK.js";
|
|
6
6
|
import {
|
|
7
7
|
esc
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QEDAULQ2.js";
|
|
9
9
|
|
|
10
10
|
// src/lib/update-check.ts
|
|
11
11
|
import { execFileSync } from "child_process";
|
|
@@ -53,7 +53,7 @@ function semverLT(a, b) {
|
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
function currentVersion() {
|
|
56
|
-
return true ? "0.7.0
|
|
56
|
+
return true ? "0.7.0" : "0.0.0";
|
|
57
57
|
}
|
|
58
58
|
function toUpdateStatus(latestVersion, checkedAt) {
|
|
59
59
|
const current = currentVersion();
|
package/dist/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
if(process.argv.includes("--no-color"))process.env.NO_COLOR="1";
|
|
3
3
|
import {
|
|
4
4
|
registerAuth
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I3X4G2UY.js";
|
|
6
6
|
import {
|
|
7
7
|
openBrowser
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HSKKIATB.js";
|
|
9
9
|
import {
|
|
10
10
|
getSetupStatus,
|
|
11
11
|
isSetupComplete,
|
|
12
12
|
shouldRunOnboarding
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V4IK4CJN.js";
|
|
14
14
|
import {
|
|
15
15
|
isInteractiveAllowed
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HYCRHNPX.js";
|
|
17
17
|
import {
|
|
18
18
|
adminClientFromFlags,
|
|
19
19
|
clearSession,
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
resolveX402Client,
|
|
42
42
|
saveSession,
|
|
43
43
|
updateSession
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TOEVZMIP.js";
|
|
45
45
|
import {
|
|
46
46
|
getAvailableUpdate,
|
|
47
47
|
getUpdateStatus,
|
|
48
48
|
printUpdateNotice
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WWWVMK3J.js";
|
|
50
50
|
import {
|
|
51
51
|
bold,
|
|
52
52
|
brand,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
weiToEth,
|
|
71
71
|
withSpinner,
|
|
72
72
|
yellow
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-A6L3WCJN.js";
|
|
74
74
|
import {
|
|
75
75
|
KEY_MAP,
|
|
76
76
|
configDir,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
save,
|
|
82
82
|
toMap,
|
|
83
83
|
validKeys
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-7WD3YLRK.js";
|
|
85
85
|
import {
|
|
86
86
|
CLIError,
|
|
87
87
|
EXIT_CODES,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
setFlags,
|
|
117
117
|
setNoColor,
|
|
118
118
|
verbose
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-QEDAULQ2.js";
|
|
120
120
|
|
|
121
121
|
// src/index.ts
|
|
122
122
|
import { Command, Help } from "commander";
|
|
@@ -629,7 +629,7 @@ function registerConfig(program2) {
|
|
|
629
629
|
printJSON(toMap(cfg));
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
|
-
const { resolveAuthToken: resolveAuthToken2 } = await import("./resolve-
|
|
632
|
+
const { resolveAuthToken: resolveAuthToken2 } = await import("./resolve-R4JZZCCF.js");
|
|
633
633
|
const validToken = resolveAuthToken2(cfg);
|
|
634
634
|
const authStatus = cfg.auth_token ? validToken ? `${green("\u2713")} authenticated${cfg.auth_token_expires_at ? ` ${dim(`(expires ${cfg.auth_token_expires_at})`)}` : ""}` : `${yellow("\u25C6")} expired${cfg.auth_token_expires_at ? ` ${dim(`(${cfg.auth_token_expires_at})`)}` : ""}` : dim("(not set) \u2014 run 'alchemy auth' to log in");
|
|
635
635
|
const pairs = [
|
|
@@ -4634,7 +4634,7 @@ var ERROR_RECOVERY = {
|
|
|
4634
4634
|
INVALID_API_KEY: "Check your API key and select a valid app: alchemy config set app",
|
|
4635
4635
|
NETWORK_NOT_ENABLED: "Enable the target network for your app at dashboard.alchemy.com",
|
|
4636
4636
|
INVALID_ACCESS_KEY: "Check your access key: https://dashboard.alchemy.com/",
|
|
4637
|
-
ACCESS_KEY_REQUIRED: "Set ALCHEMY_ACCESS_KEY env var",
|
|
4637
|
+
ACCESS_KEY_REQUIRED: "Set ALCHEMY_ACCESS_KEY env var or run: alchemy config set access-key <key>",
|
|
4638
4638
|
APP_REQUIRED: "Select an app: alchemy config set app <app-id>",
|
|
4639
4639
|
ADMIN_API_ERROR: "Check the error message for details; verify access key permissions",
|
|
4640
4640
|
NETWORK_ERROR: "Check internet connection and retry",
|
|
@@ -4724,8 +4724,9 @@ function buildAgentPrompt(program2) {
|
|
|
4724
4724
|
{
|
|
4725
4725
|
method: "Access key",
|
|
4726
4726
|
envVar: "ALCHEMY_ACCESS_KEY",
|
|
4727
|
-
|
|
4728
|
-
commandFamilies: ["app", "evm network"]
|
|
4727
|
+
configKey: "access-key",
|
|
4728
|
+
commandFamilies: ["app", "evm network"],
|
|
4729
|
+
notes: "No command-line flag exists for access-key auth; use the env var or saved config."
|
|
4729
4730
|
},
|
|
4730
4731
|
{
|
|
4731
4732
|
method: "Webhook API key",
|
|
@@ -4783,7 +4784,7 @@ function buildAgentPrompt(program2) {
|
|
|
4783
4784
|
"alchemy --json --no-interactive config status",
|
|
4784
4785
|
"alchemy --json --no-interactive update-check",
|
|
4785
4786
|
"alchemy --json --no-interactive evm data balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --api-key $ALCHEMY_API_KEY",
|
|
4786
|
-
"ALCHEMY_ACCESS_KEY
|
|
4787
|
+
"ALCHEMY_ACCESS_KEY=ak_xxx alchemy --json --no-interactive app list",
|
|
4787
4788
|
"alchemy --json --no-interactive evm rpc eth_blockNumber --api-key $ALCHEMY_API_KEY",
|
|
4788
4789
|
"alchemy --json --no-interactive evm network list",
|
|
4789
4790
|
"alchemy --json --no-interactive evm send 0xRecipient 0.001 -n eth-sepolia",
|
|
@@ -4812,7 +4813,9 @@ function formatAsSystemPrompt(payload) {
|
|
|
4812
4813
|
for (const auth of payload.auth) {
|
|
4813
4814
|
lines.push(` ${auth.method}:`);
|
|
4814
4815
|
lines.push(` env: ${auth.envVar}`);
|
|
4815
|
-
|
|
4816
|
+
if (auth.flag) {
|
|
4817
|
+
lines.push(` flag: ${auth.flag}`);
|
|
4818
|
+
}
|
|
4816
4819
|
if (auth.configKey) {
|
|
4817
4820
|
lines.push(` config: alchemy config set ${auth.configKey} <value>`);
|
|
4818
4821
|
}
|
|
@@ -6596,7 +6599,7 @@ Examples:
|
|
|
6596
6599
|
signer: parseSignerOpt(opts.signer)
|
|
6597
6600
|
});
|
|
6598
6601
|
} catch (err) {
|
|
6599
|
-
const { exitWithError: exitWithError2 } = await import("./errors-
|
|
6602
|
+
const { exitWithError: exitWithError2 } = await import("./errors-3CNFGAXT.js");
|
|
6600
6603
|
exitWithError2(err);
|
|
6601
6604
|
}
|
|
6602
6605
|
});
|
|
@@ -7950,7 +7953,7 @@ function resetUpdateNoticeState() {
|
|
|
7950
7953
|
}
|
|
7951
7954
|
program.name("alchemy").description(
|
|
7952
7955
|
"The Alchemy CLI lets you query blockchain data, call JSON-RPC methods, and manage your Alchemy configuration."
|
|
7953
|
-
).version("0.7.0
|
|
7956
|
+
).version("0.7.0", "-v, --version", "display CLI version").option("--api-key <key>", "Alchemy API key (env: ALCHEMY_API_KEY)").option(
|
|
7954
7957
|
"-n, --network <network>",
|
|
7955
7958
|
"Target network (default: eth-mainnet) (env: ALCHEMY_NETWORK)"
|
|
7956
7959
|
).option("--x402", "Use x402 wallet-based gateway auth").option(
|
|
@@ -8137,11 +8140,11 @@ ${styledLine}`;
|
|
|
8137
8140
|
"wallet"
|
|
8138
8141
|
];
|
|
8139
8142
|
if (!skipAppPrompt.includes(cmdName) && isInteractiveAllowed(program) && !opts.apiKey && !process.env.ALCHEMY_API_KEY) {
|
|
8140
|
-
const { resolveAuthToken: resolveAuthToken2 } = await import("./resolve-
|
|
8143
|
+
const { resolveAuthToken: resolveAuthToken2 } = await import("./resolve-R4JZZCCF.js");
|
|
8141
8144
|
const authToken = resolveAuthToken2(cfg);
|
|
8142
8145
|
const hasApiKey = Boolean(cfg.api_key?.trim() || cfg.app?.apiKey);
|
|
8143
8146
|
if (authToken && !hasApiKey) {
|
|
8144
|
-
const { selectAppAfterAuth } = await import("./auth-
|
|
8147
|
+
const { selectAppAfterAuth } = await import("./auth-4HAUNG54.js");
|
|
8145
8148
|
console.log("");
|
|
8146
8149
|
console.log(` No app selected. Please select an app to continue.`);
|
|
8147
8150
|
await selectAppAfterAuth(authToken);
|
|
@@ -8172,7 +8175,7 @@ ${styledLine}`;
|
|
|
8172
8175
|
if (isInteractiveAllowed(program)) {
|
|
8173
8176
|
let latestForInteractiveStartup = null;
|
|
8174
8177
|
if (shouldRunOnboarding(program, cfg)) {
|
|
8175
|
-
const { runOnboarding } = await import("./onboarding-
|
|
8178
|
+
const { runOnboarding } = await import("./onboarding-RBJF5E7U.js");
|
|
8176
8179
|
const latest = getAvailableUpdateOnce();
|
|
8177
8180
|
const completed = await runOnboarding(program, latest);
|
|
8178
8181
|
updateShownDuringInteractiveStartup = Boolean(latest);
|
|
@@ -8186,7 +8189,7 @@ ${styledLine}`;
|
|
|
8186
8189
|
latestForInteractiveStartup
|
|
8187
8190
|
);
|
|
8188
8191
|
}
|
|
8189
|
-
const { startREPL } = await import("./interactive-
|
|
8192
|
+
const { startREPL } = await import("./interactive-F2AFLW7U.js");
|
|
8190
8193
|
program.exitOverride();
|
|
8191
8194
|
program.configureOutput({
|
|
8192
8195
|
writeErr: () => {
|
|
@@ -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-V4IK4CJN.js";
|
|
6
|
+
import "./chunk-HYCRHNPX.js";
|
|
7
7
|
import {
|
|
8
8
|
getRPCNetworkIds
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TOEVZMIP.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateNoticeLines
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WWWVMK3J.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-A6L3WCJN.js";
|
|
21
21
|
import {
|
|
22
22
|
configDir,
|
|
23
23
|
load
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7WD3YLRK.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-QEDAULQ2.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-WWWVMK3J.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-A6L3WCJN.js";
|
|
14
14
|
import {
|
|
15
15
|
load,
|
|
16
16
|
save
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-7WD3YLRK.js";
|
|
18
|
+
import "./chunk-QEDAULQ2.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-JGON2JU6.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-4HAUNG54.js");
|
|
55
55
|
await selectAppAfterAuth(result.token);
|
|
56
56
|
return true;
|
|
57
57
|
} catch (err) {
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
resolveWalletSession,
|
|
23
23
|
resolveX402,
|
|
24
24
|
resolveX402Client
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-TOEVZMIP.js";
|
|
26
|
+
import "./chunk-7WD3YLRK.js";
|
|
27
|
+
import "./chunk-QEDAULQ2.js";
|
|
28
28
|
export {
|
|
29
29
|
adminClientFromFlags,
|
|
30
30
|
clientFromFlags,
|
package/package.json
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alchemy/cli",
|
|
3
|
-
"version": "0.7.0
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Alchemy CLI — interact with blockchain data",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"alchemy": "./dist/index.js"
|
|
8
8
|
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsup",
|
|
11
|
+
"dev": "tsup --watch",
|
|
12
|
+
"live:check": "node --env-file-if-exists=.env.local --import=tsx scripts/live-check.ts",
|
|
13
|
+
"postinstall": "node ./scripts/postinstall.cjs",
|
|
14
|
+
"sync:skills": "node scripts/sync-skills.mjs",
|
|
15
|
+
"update:skills": "npx skills update && pnpm sync:skills",
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"test:coverage": "vitest run --coverage",
|
|
18
|
+
"test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
|
|
19
|
+
"test:live": "pnpm build && node --env-file-if-exists=.env.local ./node_modules/vitest/vitest.mjs run --config vitest.live.config.ts",
|
|
20
|
+
"test:watch": "vitest",
|
|
21
|
+
"lint": "tsc --noEmit",
|
|
22
|
+
"changeset": "changeset",
|
|
23
|
+
"version-packages": "changeset version",
|
|
24
|
+
"release": "pnpm build && changeset publish"
|
|
25
|
+
},
|
|
9
26
|
"keywords": [
|
|
10
27
|
"alchemy",
|
|
11
28
|
"blockchain",
|
|
@@ -47,21 +64,10 @@
|
|
|
47
64
|
"typescript": "^5.9.3",
|
|
48
65
|
"vitest": "^4.0.18"
|
|
49
66
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"sync:skills": "node scripts/sync-skills.mjs",
|
|
56
|
-
"update:skills": "npx skills update && pnpm sync:skills",
|
|
57
|
-
"test": "vitest run",
|
|
58
|
-
"test:coverage": "vitest run --coverage",
|
|
59
|
-
"test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts",
|
|
60
|
-
"test:live": "pnpm build && node --env-file-if-exists=.env.local ./node_modules/vitest/vitest.mjs run --config vitest.live.config.ts",
|
|
61
|
-
"test:watch": "vitest",
|
|
62
|
-
"lint": "tsc --noEmit",
|
|
63
|
-
"changeset": "changeset",
|
|
64
|
-
"version-packages": "changeset version",
|
|
65
|
-
"release": "pnpm build && changeset publish"
|
|
67
|
+
"packageManager": "pnpm@10.18.2+sha512.9fb969fa749b3ade6035e0f109f0b8a60b5d08a1a87fdf72e337da90dcc93336e2280ca4e44f2358a649b83c17959e9993e777c2080879f3801e6f0d999ad3dd",
|
|
68
|
+
"pnpm": {
|
|
69
|
+
"overrides": {
|
|
70
|
+
"typebox": "1.0.81"
|
|
71
|
+
}
|
|
66
72
|
}
|
|
67
|
-
}
|
|
73
|
+
}
|
package/dist/auth-ZME2NTXG.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-KJ5VM7FE.js";
|
|
7
|
-
import "./chunk-EKBSQAEG.js";
|
|
8
|
-
import "./chunk-JMDBEC5L.js";
|
|
9
|
-
import "./chunk-A6BWLRFV.js";
|
|
10
|
-
import "./chunk-AFD4Y42F.js";
|
|
11
|
-
import "./chunk-HGZTGSXO.js";
|
|
12
|
-
import "./chunk-OLVYWGY6.js";
|
|
13
|
-
export {
|
|
14
|
-
registerAuth,
|
|
15
|
-
selectAppAfterAuth
|
|
16
|
-
};
|