@layr-labs/ecloud-cli 0.2.1-dev → 0.2.2-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 (42) hide show
  1. package/VERSION +2 -2
  2. package/dist/commands/auth/whoami.js.map +1 -1
  3. package/dist/commands/billing/cancel.js.map +1 -1
  4. package/dist/commands/billing/status.js.map +1 -1
  5. package/dist/commands/billing/subscribe.js.map +1 -1
  6. package/dist/commands/compute/app/create.js.map +1 -1
  7. package/dist/commands/compute/app/deploy.js +17 -9
  8. package/dist/commands/compute/app/deploy.js.map +1 -1
  9. package/dist/commands/compute/app/info.js +27 -12
  10. package/dist/commands/compute/app/info.js.map +1 -1
  11. package/dist/commands/compute/app/list.js +11 -7
  12. package/dist/commands/compute/app/list.js.map +1 -1
  13. package/dist/commands/compute/app/logs.js +2 -2
  14. package/dist/commands/compute/app/logs.js.map +1 -1
  15. package/dist/commands/compute/app/profile/set.js +3 -3
  16. package/dist/commands/compute/app/profile/set.js.map +1 -1
  17. package/dist/commands/compute/app/releases.js +19 -101
  18. package/dist/commands/compute/app/releases.js.map +1 -1
  19. package/dist/commands/compute/app/start.js +2 -2
  20. package/dist/commands/compute/app/start.js.map +1 -1
  21. package/dist/commands/compute/app/stop.js +2 -2
  22. package/dist/commands/compute/app/stop.js.map +1 -1
  23. package/dist/commands/compute/app/terminate.js +2 -2
  24. package/dist/commands/compute/app/terminate.js.map +1 -1
  25. package/dist/commands/compute/app/upgrade.js +19 -11
  26. package/dist/commands/compute/app/upgrade.js.map +1 -1
  27. package/dist/commands/compute/build/info.js +11 -10
  28. package/dist/commands/compute/build/info.js.map +1 -1
  29. package/dist/commands/compute/build/list.js +27 -61
  30. package/dist/commands/compute/build/list.js.map +1 -1
  31. package/dist/commands/compute/build/logs.js +10 -7
  32. package/dist/commands/compute/build/logs.js.map +1 -1
  33. package/dist/commands/compute/build/status.js +10 -7
  34. package/dist/commands/compute/build/status.js.map +1 -1
  35. package/dist/commands/compute/build/submit.js +10 -7
  36. package/dist/commands/compute/build/submit.js.map +1 -1
  37. package/dist/commands/compute/build/verify.js +10 -7
  38. package/dist/commands/compute/build/verify.js.map +1 -1
  39. package/dist/commands/compute/environment/set.js.map +1 -1
  40. package/dist/commands/compute/undelegate.js +1 -1
  41. package/dist/commands/compute/undelegate.js.map +1 -1
  42. package/package.json +2 -2
@@ -158,7 +158,7 @@ var APPS_DIR = path2.join(CONFIG_DIR, "apps");
158
158
 
159
159
  // src/utils/version.ts
160
160
  function getCliVersion() {
161
- return true ? "0.2.1-dev" : "0.0.0";
161
+ return true ? "0.2.2-dev" : "0.0.0";
162
162
  }
163
163
  function getClientId() {
164
164
  return `ecloud-cli/v${getCliVersion()}`;
@@ -284,14 +284,17 @@ async function createBuildClient(flags) {
284
284
  const environment = flags.environment || "mainnet";
285
285
  const environmentConfig = getEnvironmentConfig3(environment);
286
286
  const rpcUrl = flags["rpc-url"] || environmentConfig.defaultRPCURL;
287
- const { walletClient } = createViemClients({
288
- privateKey: flags["private-key"],
289
- rpcUrl,
290
- environment
291
- });
287
+ let walletClient;
288
+ if (flags["private-key"]) {
289
+ walletClient = createViemClients({
290
+ privateKey: flags["private-key"],
291
+ rpcUrl,
292
+ environment
293
+ }).walletClient;
294
+ }
292
295
  return createBuildModule({
293
296
  verbose: flags.verbose,
294
- walletClient: flags["private-key"] ? walletClient : void 0,
297
+ walletClient,
295
298
  environment,
296
299
  clientId: getClientId(),
297
300
  skipTelemetry: true
@@ -370,14 +373,7 @@ function formatBuildStatus(status) {
370
373
  return color ? color(status) : status;
371
374
  }
372
375
 
373
- // src/commands/compute/build/list.ts
374
- import Table from "cli-table3";
375
-
376
376
  // src/utils/cliFormat.ts
377
- function terminalWidth(fallback = 120) {
378
- const cols = typeof process.stdout.columns === "number" ? process.stdout.columns : void 0;
379
- return cols && cols > 0 ? cols : fallback;
380
- }
381
377
  function formatHumanTime(value) {
382
378
  const raw = String(value ?? "").trim();
383
379
  if (!raw) return "-";
@@ -463,57 +459,27 @@ var BuildList = class _BuildList extends Command {
463
459
  this.log(`No builds found for ${billingAddress}`);
464
460
  return;
465
461
  }
466
- const rows = builds.map((b) => ({
467
- buildId: b.buildId || "-",
468
- status: formatBuildStatus(b.status),
469
- repo: formatRepoDisplay(b.repoUrl || "-"),
470
- commit: b.gitRef || "-",
471
- image: formatImageDisplay(b.imageUrl || "-"),
472
- created: formatHumanTime(b.createdAt),
473
- prov: provenanceSummary({
474
- provenanceJson: b.provenanceJson,
475
- provenanceSignature: b.provenanceSignature,
476
- dependencies: b.dependencies
477
- })
478
- }));
479
- const tw = terminalWidth();
480
- const shouldStack = tw < 110;
481
462
  this.log("");
482
463
  this.log(chalk2.bold(`Builds for ${billingAddress} (${validatedFlags.environment}):`));
483
464
  this.log("");
484
- if (shouldStack) {
485
- for (const r of rows) {
486
- this.log(`${r.status} ${chalk2.cyan(r.buildId)} ${r.created}`);
487
- this.log(` Repo: ${r.repo}`);
488
- this.log(` Commit: ${r.commit}`);
489
- this.log(` Image: ${r.image}`);
490
- this.log(` Prov: ${r.prov}`);
491
- 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"));
492
- }
493
- } else {
494
- const fixed = 37 + 10 + 20 + 14 + 8;
495
- const remaining = Math.max(30, tw - fixed);
496
- const repoW = Math.max(18, Math.floor(remaining * 0.28));
497
- const commitW = Math.max(18, Math.floor(remaining * 0.36));
498
- const imageW = Math.max(18, remaining - repoW - commitW);
499
- const table = new Table({
500
- head: [
501
- chalk2.bold("ID"),
502
- chalk2.bold("Status"),
503
- chalk2.bold("Repo"),
504
- chalk2.bold("Commit"),
505
- chalk2.bold("Image"),
506
- chalk2.bold("Created"),
507
- chalk2.bold("Prov")
508
- ],
509
- colWidths: [37, 10, repoW, commitW, imageW, 20, 14],
510
- wordWrap: true,
511
- style: { "padding-left": 0, "padding-right": 1, head: [], border: [] }
465
+ for (const b of builds) {
466
+ const buildId = b.buildId || "-";
467
+ const status = formatBuildStatus(b.status);
468
+ const repo = formatRepoDisplay(b.repoUrl || "-");
469
+ const commit = b.gitRef || "-";
470
+ const image = formatImageDisplay(b.imageUrl || "-");
471
+ const created = formatHumanTime(b.createdAt);
472
+ const prov = provenanceSummary({
473
+ provenanceJson: b.provenanceJson,
474
+ provenanceSignature: b.provenanceSignature,
475
+ dependencies: b.dependencies
512
476
  });
513
- for (const r of rows) {
514
- table.push([r.buildId, r.status, r.repo, r.commit, r.image, r.created, r.prov]);
515
- }
516
- this.log(table.toString());
477
+ this.log(`${status} ${chalk2.cyan(buildId)} ${created}`);
478
+ this.log(` Repo: ${repo}`);
479
+ this.log(` Commit: ${commit}`);
480
+ this.log(` Image: ${image}`);
481
+ this.log(` Prov: ${prov}`);
482
+ 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"));
517
483
  }
518
484
  this.log("");
519
485
  this.log(chalk2.gray(`Showing ${builds.length} build(s) (limit=${limit}, offset=${offset})`));