@layr-labs/ecloud-cli 0.4.0-dev.1 → 0.4.0-dev.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/VERSION +2 -0
- package/bin/dev.js +0 -0
- package/dist/commands/auth/generate.js +0 -0
- package/dist/commands/auth/login.js +0 -0
- package/dist/commands/auth/logout.js +0 -0
- package/dist/commands/auth/migrate.js +0 -0
- package/dist/commands/auth/whoami.js +1 -0
- package/dist/commands/auth/whoami.js.map +1 -1
- package/dist/commands/billing/__tests__/status.test.js +89 -22
- package/dist/commands/billing/__tests__/status.test.js.map +1 -1
- package/dist/commands/billing/__tests__/subscribe.test.js +88 -20
- package/dist/commands/billing/__tests__/subscribe.test.js.map +1 -1
- package/dist/commands/billing/__tests__/top-up.test.js +139 -201
- package/dist/commands/billing/__tests__/top-up.test.js.map +1 -1
- package/dist/commands/billing/cancel.js +88 -19
- package/dist/commands/billing/cancel.js.map +1 -1
- package/dist/commands/billing/status.js +89 -21
- package/dist/commands/billing/status.js.map +1 -1
- package/dist/commands/billing/subscribe.js +88 -19
- package/dist/commands/billing/subscribe.js.map +1 -1
- package/dist/commands/billing/top-up.js +102 -91
- package/dist/commands/billing/top-up.js.map +1 -1
- package/dist/commands/compute/app/configure/tls.js +0 -0
- package/dist/commands/compute/app/create.js +1 -0
- package/dist/commands/compute/app/create.js.map +1 -1
- package/dist/commands/compute/app/deploy.js +38 -24
- package/dist/commands/compute/app/deploy.js.map +1 -1
- package/dist/commands/compute/app/info.js +2 -1
- package/dist/commands/compute/app/info.js.map +1 -1
- package/dist/commands/compute/app/list.js +2 -1
- package/dist/commands/compute/app/list.js.map +1 -1
- package/dist/commands/compute/app/logs.js +5 -8
- package/dist/commands/compute/app/logs.js.map +1 -1
- package/dist/commands/compute/app/profile/set.js +5 -8
- package/dist/commands/compute/app/profile/set.js.map +1 -1
- package/dist/commands/compute/app/releases.js +2 -1
- package/dist/commands/compute/app/releases.js.map +1 -1
- package/dist/commands/compute/app/start.js +5 -8
- package/dist/commands/compute/app/start.js.map +1 -1
- package/dist/commands/compute/app/stop.js +5 -8
- package/dist/commands/compute/app/stop.js.map +1 -1
- package/dist/commands/compute/app/terminate.js +5 -8
- package/dist/commands/compute/app/terminate.js.map +1 -1
- package/dist/commands/compute/app/upgrade.js +36 -14
- package/dist/commands/compute/app/upgrade.js.map +1 -1
- package/dist/commands/compute/build/info.js +9 -12
- package/dist/commands/compute/build/info.js.map +1 -1
- package/dist/commands/compute/build/list.js +9 -12
- package/dist/commands/compute/build/list.js.map +1 -1
- package/dist/commands/compute/build/logs.js +9 -12
- package/dist/commands/compute/build/logs.js.map +1 -1
- package/dist/commands/compute/build/status.js +9 -12
- package/dist/commands/compute/build/status.js.map +1 -1
- package/dist/commands/compute/build/submit.js +32 -10
- package/dist/commands/compute/build/submit.js.map +1 -1
- package/dist/commands/compute/build/verify.js +9 -12
- package/dist/commands/compute/build/verify.js.map +1 -1
- package/dist/commands/compute/environment/list.js +0 -0
- package/dist/commands/compute/environment/set.js +1 -0
- package/dist/commands/compute/environment/set.js.map +1 -1
- package/dist/commands/compute/environment/show.js +0 -0
- package/dist/commands/compute/undelegate.js +5 -8
- package/dist/commands/compute/undelegate.js.map +1 -1
- package/dist/commands/telemetry/disable.js +0 -0
- package/dist/commands/telemetry/enable.js +0 -0
- package/dist/commands/telemetry/status.js +0 -0
- package/dist/commands/upgrade.js +0 -0
- package/dist/commands/version.js +0 -0
- package/package.json +15 -14
- package/LICENSE +0 -7
|
@@ -286,7 +286,7 @@ function listApps(environment) {
|
|
|
286
286
|
|
|
287
287
|
// src/utils/version.ts
|
|
288
288
|
function getCliVersion() {
|
|
289
|
-
return true ? "0.4.0-dev.
|
|
289
|
+
return true ? "0.4.0-dev.3" : "0.0.0";
|
|
290
290
|
}
|
|
291
291
|
function getClientId() {
|
|
292
292
|
return `ecloud-cli/v${getCliVersion()}`;
|
|
@@ -476,6 +476,7 @@ function createAppResolver(environment, environmentConfig, privateKey, rpcUrl) {
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
// src/utils/prompts.ts
|
|
479
|
+
import { execSync } from "child_process";
|
|
479
480
|
function addHexPrefix2(value) {
|
|
480
481
|
if (value.startsWith("0x")) {
|
|
481
482
|
return value;
|
|
@@ -794,8 +795,8 @@ async function getPrivateKeyInteractive(privateKey) {
|
|
|
794
795
|
}
|
|
795
796
|
return privateKey;
|
|
796
797
|
}
|
|
797
|
-
const { getPrivateKeyWithSource
|
|
798
|
-
const result = await
|
|
798
|
+
const { getPrivateKeyWithSource } = await import("@layr-labs/ecloud-sdk");
|
|
799
|
+
const result = await getPrivateKeyWithSource({ privateKey: void 0 });
|
|
799
800
|
if (result) {
|
|
800
801
|
return result.key;
|
|
801
802
|
}
|
|
@@ -1168,12 +1169,8 @@ import {
|
|
|
1168
1169
|
createBillingModule,
|
|
1169
1170
|
createBuildModule,
|
|
1170
1171
|
getEnvironmentConfig as getEnvironmentConfig3,
|
|
1171
|
-
requirePrivateKey
|
|
1172
|
-
getPrivateKeyWithSource,
|
|
1173
|
-
addHexPrefix as addHexPrefix3
|
|
1172
|
+
requirePrivateKey
|
|
1174
1173
|
} from "@layr-labs/ecloud-sdk";
|
|
1175
|
-
import { createWalletClient, custom } from "viem";
|
|
1176
|
-
import { privateKeyToAccount as privateKeyToAccount4 } from "viem/accounts";
|
|
1177
1174
|
async function createComputeClient(flags) {
|
|
1178
1175
|
flags = await validateCommonFlags(flags);
|
|
1179
1176
|
const environment = flags.environment;
|