@layr-labs/ecloud-cli 0.3.4 → 0.4.0-dev

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.
Files changed (48) hide show
  1. package/VERSION +2 -2
  2. package/dist/commands/auth/whoami.js +1 -0
  3. package/dist/commands/auth/whoami.js.map +1 -1
  4. package/dist/commands/billing/cancel.js +8 -7
  5. package/dist/commands/billing/cancel.js.map +1 -1
  6. package/dist/commands/billing/status.js +20 -19
  7. package/dist/commands/billing/status.js.map +1 -1
  8. package/dist/commands/billing/subscribe.js +13 -12
  9. package/dist/commands/billing/subscribe.js.map +1 -1
  10. package/dist/commands/compute/app/create.js +1 -0
  11. package/dist/commands/compute/app/create.js.map +1 -1
  12. package/dist/commands/compute/app/deploy.js +50 -21
  13. package/dist/commands/compute/app/deploy.js.map +1 -1
  14. package/dist/commands/compute/app/info.js +32 -31
  15. package/dist/commands/compute/app/info.js.map +1 -1
  16. package/dist/commands/compute/app/list.js +31 -30
  17. package/dist/commands/compute/app/list.js.map +1 -1
  18. package/dist/commands/compute/app/logs.js +2 -1
  19. package/dist/commands/compute/app/logs.js.map +1 -1
  20. package/dist/commands/compute/app/profile/set.js +6 -5
  21. package/dist/commands/compute/app/profile/set.js.map +1 -1
  22. package/dist/commands/compute/app/releases.js +18 -17
  23. package/dist/commands/compute/app/releases.js.map +1 -1
  24. package/dist/commands/compute/app/start.js +6 -5
  25. package/dist/commands/compute/app/start.js.map +1 -1
  26. package/dist/commands/compute/app/stop.js +6 -5
  27. package/dist/commands/compute/app/stop.js.map +1 -1
  28. package/dist/commands/compute/app/terminate.js +6 -5
  29. package/dist/commands/compute/app/terminate.js.map +1 -1
  30. package/dist/commands/compute/app/upgrade.js +51 -22
  31. package/dist/commands/compute/app/upgrade.js.map +1 -1
  32. package/dist/commands/compute/build/info.js +16 -15
  33. package/dist/commands/compute/build/info.js.map +1 -1
  34. package/dist/commands/compute/build/list.js +13 -12
  35. package/dist/commands/compute/build/list.js.map +1 -1
  36. package/dist/commands/compute/build/logs.js +4 -3
  37. package/dist/commands/compute/build/logs.js.map +1 -1
  38. package/dist/commands/compute/build/status.js +9 -8
  39. package/dist/commands/compute/build/status.js.map +1 -1
  40. package/dist/commands/compute/build/submit.js +16 -15
  41. package/dist/commands/compute/build/submit.js.map +1 -1
  42. package/dist/commands/compute/build/verify.js +10 -9
  43. package/dist/commands/compute/build/verify.js.map +1 -1
  44. package/dist/commands/compute/environment/set.js +1 -0
  45. package/dist/commands/compute/environment/set.js.map +1 -1
  46. package/dist/commands/compute/undelegate.js +6 -5
  47. package/dist/commands/compute/undelegate.js.map +1 -1
  48. package/package.json +2 -2
@@ -10,6 +10,7 @@ import { getBuildType as getBuildType2 } from "@layr-labs/ecloud-sdk";
10
10
 
11
11
  // src/utils/prompts.ts
12
12
  import { input, select, password, confirm as inquirerConfirm } from "@inquirer/prompts";
13
+ import chalk from "chalk";
13
14
  import fs3 from "fs";
14
15
  import path3 from "path";
15
16
  import os3 from "os";
@@ -236,7 +237,7 @@ function listApps(environment) {
236
237
 
237
238
  // src/utils/version.ts
238
239
  function getCliVersion() {
239
- return true ? "0.3.4" : "0.0.0";
240
+ return true ? "0.4.0-dev" : "0.0.0";
240
241
  }
241
242
  function getClientId() {
242
243
  return `ecloud-cli/v${getCliVersion()}`;
@@ -734,10 +735,10 @@ async function withTelemetry(command, action) {
734
735
  }
735
736
 
736
737
  // src/commands/compute/app/releases.ts
737
- import chalk2 from "chalk";
738
+ import chalk3 from "chalk";
738
739
 
739
740
  // src/utils/releases.ts
740
- import chalk from "chalk";
741
+ import chalk2 from "chalk";
741
742
 
742
743
  // src/utils/build.ts
743
744
  function formatSourceLink(repoUrl, gitRef) {
@@ -787,7 +788,7 @@ function formatPublicEnv(publicEnv) {
787
788
  const parsed = JSON.parse(publicEnv);
788
789
  if (Object.keys(parsed).length === 0) return [];
789
790
  const lines = [];
790
- lines.push(chalk.gray("publicEnv:"));
791
+ lines.push(chalk2.gray("publicEnv:"));
791
792
  for (const k of sortedKeys(parsed)) {
792
793
  const v = parsed[k];
793
794
  lines.push(` ${k}=${typeof v === "string" ? v : JSON.stringify(v)}`);
@@ -800,14 +801,14 @@ function formatPublicEnv(publicEnv) {
800
801
  if (isJsonObject(publicEnv) && !("BYTES_PER_ELEMENT" in publicEnv)) {
801
802
  if (Object.keys(publicEnv).length === 0) return [];
802
803
  const lines = [];
803
- lines.push(chalk.gray("publicEnv:"));
804
+ lines.push(chalk2.gray("publicEnv:"));
804
805
  for (const k of sortedKeys(publicEnv)) {
805
806
  const v = publicEnv[k];
806
807
  lines.push(` ${k}=${typeof v === "string" ? v : JSON.stringify(v)}`);
807
808
  }
808
809
  return lines;
809
810
  }
810
- return [`publicEnv: ${chalk.gray("<unavailable>")}`];
811
+ return [`publicEnv: ${chalk2.gray("<unavailable>")}`];
811
812
  }
812
813
  function formatMaybe(label, value) {
813
814
  if (value === void 0 || value === null) return void 0;
@@ -816,9 +817,9 @@ function formatMaybe(label, value) {
816
817
  return `${label}: ${s}`;
817
818
  }
818
819
  function buildSummaryLines(build) {
819
- if (!build) return [chalk.gray("Build: -")];
820
+ if (!build) return [chalk2.gray("Build: -")];
820
821
  const lines = [];
821
- lines.push(chalk.green("Build:"));
822
+ lines.push(chalk2.green("Build:"));
822
823
  if (build.buildId) lines.push(` build_id: ${build.buildId}`);
823
824
  if (build.buildType) lines.push(` build_type: ${build.buildType}`);
824
825
  if (build.repoUrl && build.gitRef) {
@@ -852,7 +853,7 @@ function buildSummaryLines(build) {
852
853
  function formatAppRelease(release, index) {
853
854
  const lines = [];
854
855
  const id = release.rmsReleaseId ?? String(index);
855
- lines.push(chalk.cyan.bold(`Release ${id}`));
856
+ lines.push(chalk2.cyan.bold(`Release ${id}`));
856
857
  const headerFields = [
857
858
  formatMaybe("createdAt", release.createdAt),
858
859
  formatMaybe("createdAtBlock", release.createdAtBlock),
@@ -940,7 +941,7 @@ function sortReleasesOldestFirst(releases) {
940
941
  });
941
942
  }
942
943
  function separator() {
943
- return chalk2.gray("\u2014".repeat(40));
944
+ return chalk3.gray("\u2014".repeat(40));
944
945
  }
945
946
  function formatDepLines(deps) {
946
947
  if (!deps || Object.keys(deps).length === 0) return [];
@@ -1010,7 +1011,7 @@ var AppReleases = class _AppReleases extends Command {
1010
1011
  const releases = sortReleasesOldestFirst(data.releases);
1011
1012
  if (releases.length === 0) {
1012
1013
  this.log(`
1013
- No releases found for app ${chalk2.gray(appID)}`);
1014
+ No releases found for app ${chalk3.gray(appID)}`);
1014
1015
  return;
1015
1016
  }
1016
1017
  if (flags.json) {
@@ -1018,7 +1019,7 @@ No releases found for app ${chalk2.gray(appID)}`);
1018
1019
  return;
1019
1020
  }
1020
1021
  this.log(`
1021
- Releases for app ${chalk2.gray(appID)}:
1022
+ Releases for app ${chalk3.gray(appID)}:
1022
1023
  `);
1023
1024
  if (flags.full) {
1024
1025
  for (let i = 0; i < releases.length; i++) {
@@ -1041,7 +1042,7 @@ ${separator()}
1041
1042
  const image = formatImageDisplay(r.build?.imageUrl ?? r.registryUrl ?? "-");
1042
1043
  const build = r.build?.buildId ?? "-";
1043
1044
  const prov = provenanceSummaryFromBuild(r.build);
1044
- this.log(`${chalk2.cyan(rel)} ${created} (block ${block})`);
1045
+ this.log(`${chalk3.cyan(rel)} ${created} (block ${block})`);
1045
1046
  this.log(` Repo: ${repo}`);
1046
1047
  this.log(` Commit: ${commit}`);
1047
1048
  this.log(` Digest: ${digest}`);
@@ -1052,14 +1053,14 @@ ${separator()}
1052
1053
  if (depLines.length) {
1053
1054
  for (const l of depLines) this.log(l);
1054
1055
  }
1055
- this.log(chalk2.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
1056
+ this.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
1056
1057
  }
1057
1058
  this.log("");
1058
1059
  this.log(
1059
- chalk2.gray(
1060
- `Tip: use ${chalk2.yellow("--full")} for detailed release output, ${chalk2.yellow(
1060
+ chalk3.gray(
1061
+ `Tip: use ${chalk3.yellow("--full")} for detailed release output, ${chalk3.yellow(
1061
1062
  "--json"
1062
- )} to copy/paste, and ${chalk2.yellow(
1063
+ )} to copy/paste, and ${chalk3.yellow(
1063
1064
  "ecloud compute build info <buildId>"
1064
1065
  )} for full build/provenance details.`
1065
1066
  )