@akanjs/cli 3.1.1-rc.0 → 3.1.1-rc.1

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.
@@ -1,11 +1,12 @@
1
1
  // @bun
2
2
  import {
3
+ CloudHttpError,
3
4
  getDefaultHostConfig,
4
5
  GlobalConfig,
5
6
  CloudApi,
6
7
  CloudUpdates,
7
8
  PipelineSecrets
8
- } from "./index-1f33g2z5.js";
9
+ } from "./index-2ar6tffh.js";
9
10
  import {
10
11
  WorkspaceExecutor,
11
12
  AppExecutor
@@ -675,9 +676,136 @@ class PlatformTestRun {
675
676
 
676
677
  // pkgs/@akanjs/cli/cloud/cloud.runner.ts
677
678
  import { confirm, input, select } from "@inquirer/prompts";
678
- import { Logger, sleep } from "akanjs/common";
679
+ import { Logger as Logger2 } from "akanjs/common";
680
+ import chalk3 from "chalk";
681
+
682
+ // pkgs/@akanjs/cli/cloud/remoteLogin.ts
683
+ import { Backoff, Logger, RemoteAuthCode, sleep } from "akanjs/common";
679
684
  import chalk2 from "chalk";
680
685
  import * as QRcode from "qrcode";
686
+ class RemoteLogin {
687
+ #api;
688
+ #pollMs;
689
+ #limitMs;
690
+ #maxBackoffMs;
691
+ #selfAttempts;
692
+ #open;
693
+ #wait;
694
+ #now;
695
+ constructor(api, {
696
+ pollMs = 2000,
697
+ limitMs = 10 * 60000,
698
+ maxBackoffMs = 30000,
699
+ selfAttempts = 5,
700
+ open = openBrowser,
701
+ wait = sleep,
702
+ now = Date.now
703
+ } = {}) {
704
+ this.#api = api;
705
+ this.#pollMs = pollMs;
706
+ this.#limitMs = limitMs;
707
+ this.#maxBackoffMs = maxBackoffMs;
708
+ this.#selfAttempts = selfAttempts;
709
+ this.#open = open;
710
+ this.#wait = wait;
711
+ this.#now = now;
712
+ }
713
+ async signIn(remoteId = crypto.randomUUID()) {
714
+ const loginId = await RemoteAuthCode.loginIdOf(remoteId);
715
+ await this.#prompt(remoteId, loginId);
716
+ const accessToken = await this.#awaitApproval(remoteId, loginId);
717
+ const { host } = this.#api;
718
+ await GlobalConfig.setHostConfig({ host, auth: { accessToken } });
719
+ const self = await this.#readSelf();
720
+ if (self)
721
+ await GlobalConfig.setHostConfig({ host, auth: { accessToken, self } });
722
+ return self;
723
+ }
724
+ async#prompt(remoteId, loginId) {
725
+ const signinUrl = `${this.#api.host}/remoteAuth?remoteId=${encodeURIComponent(loginId)}`;
726
+ Logger.rawLog(chalk2.bold(`
727
+ ${chalk2.green("\u27A4")} Authentication Required`));
728
+ Logger.rawLog(chalk2.dim("Please visit or click the following URL:"));
729
+ Logger.rawLog(`${chalk2.cyan.underline(signinUrl)}
730
+ `);
731
+ try {
732
+ Logger.rawLog(await QRcode.toString(signinUrl, { type: "terminal", small: true }));
733
+ await this.#open(signinUrl);
734
+ Logger.rawLog(chalk2.dim("Opening browser..."));
735
+ } catch {
736
+ Logger.rawLog(chalk2.yellow("Could not open browser. Please visit the URL manually."));
737
+ }
738
+ Logger.rawLog(`
739
+ ${chalk2.bold("Your code:")} ${chalk2.bold.inverse(` ${await RemoteAuthCode.of(remoteId)} `)}`);
740
+ Logger.rawLog(chalk2.dim(`Enter this code on the sign-in page, and approve only if it matches what this terminal shows.
741
+ `));
742
+ }
743
+ async#awaitApproval(remoteId, loginId) {
744
+ Logger.rawLog(chalk2.dim("Waiting for authentication..."));
745
+ const deadline = this.#now() + this.#limitMs;
746
+ const ids = [remoteId, loginId];
747
+ let failures = 0;
748
+ while (this.#now() < deadline) {
749
+ const answers = await Promise.allSettled(ids.map((id) => this.#api.getRemoteAuthToken(id)));
750
+ for (const answer of answers)
751
+ if (answer.status === "fulfilled" && answer.value)
752
+ return answer.value;
753
+ const [device, legacy] = answers.map((answer) => answer.status === "rejected" ? answer.reason : null);
754
+ if (RemoteLogin.#isFinal(device))
755
+ throw this.#refusal(device);
756
+ if (RemoteLogin.#isFinal(legacy))
757
+ ids.pop();
758
+ const errors = [device, legacy].filter((error) => error && !RemoteLogin.#isFinal(error));
759
+ const retryAfterMs = Math.max(0, ...errors.map((error) => (error instanceof CloudHttpError ? error.retryAfterMs : null) ?? 0));
760
+ let waitMs = Math.max(this.#pollMs, retryAfterMs);
761
+ if (answers.some((answer) => answer.status === "fulfilled"))
762
+ failures = 0;
763
+ else {
764
+ if (failures++ === 0)
765
+ Logger.rawLog(chalk2.yellow(`Could not check the sign-in (${RemoteLogin.#reasonOf(errors[0])}); retrying...`));
766
+ waitMs = Math.max(retryAfterMs, Backoff.delay(failures + 1, { min: this.#pollMs, max: this.#maxBackoffMs }));
767
+ }
768
+ await this.#wait(Math.min(waitMs, Math.max(0, deadline - this.#now())));
769
+ }
770
+ throw new Error(chalk2.red(`\u2716 Authentication timed out after ${Math.round(this.#limitMs / 60000)} minutes. Please try again.`));
771
+ }
772
+ async#readSelf() {
773
+ let reason = "";
774
+ for (let attempt = 1;attempt <= this.#selfAttempts; attempt++) {
775
+ try {
776
+ const self = await this.#api.getRemoteSelf();
777
+ if (self)
778
+ return self;
779
+ reason = "the server did not take the new session";
780
+ break;
781
+ } catch (error) {
782
+ reason = RemoteLogin.#reasonOf(error);
783
+ }
784
+ if (attempt < this.#selfAttempts)
785
+ await this.#wait(Backoff.delay(attempt, { min: 1000, max: 8000 }));
786
+ }
787
+ Logger.rawLog(chalk2.yellow(`Could not read the signed-in account (${reason}).`));
788
+ return null;
789
+ }
790
+ static #isFinal(error) {
791
+ return error instanceof CloudHttpError && error.status < 500 && error.status !== 408 && error.status !== 429;
792
+ }
793
+ #refusal(error) {
794
+ const { host } = this.#api;
795
+ if (error.status === 404 && !error.errKey)
796
+ return new Error(chalk2.red(`\u2716 ${host} does not serve Akan CLI sign-ins (HTTP 404): check --host.`), {
797
+ cause: error
798
+ });
799
+ return new Error(chalk2.red(`\u2716 ${host} refused this sign-in (${error.errKey ?? `HTTP ${error.status}`}). Run akan login to start over.`), { cause: error });
800
+ }
801
+ static #reasonOf(error) {
802
+ if (error instanceof CloudHttpError)
803
+ return error.errKey ?? `HTTP ${error.status}`;
804
+ return error instanceof Error ? error.message : String(error);
805
+ }
806
+ }
807
+
808
+ // pkgs/@akanjs/cli/cloud/cloud.runner.ts
681
809
  var addRemoteEnvServerValue = "__addRemoteEnvServer";
682
810
  var removeRemoteEnvServerValue = "__removeRemoteEnvServer";
683
811
 
@@ -726,7 +854,7 @@ class CloudRunner extends runner("cloud") {
726
854
  const servers = await GlobalConfig.getRemoteEnvServers();
727
855
  const serverEntries = Object.entries(servers).sort(([nameA], [nameB]) => nameA.localeCompare(nameB));
728
856
  if (serverEntries.length === 0) {
729
- Logger.info("No remote env servers configured. Add the first remote server for SCP mode.");
857
+ Logger2.info("No remote env servers configured. Add the first remote server for SCP mode.");
730
858
  return await this.#addRemoteEnvServer();
731
859
  }
732
860
  const selectedName = await select({
@@ -756,7 +884,7 @@ class CloudRunner extends runner("cloud") {
756
884
  if (!await confirm({ message: `Remove remote env server "${selectedName}"?`, default: false }))
757
885
  return;
758
886
  await GlobalConfig.removeRemoteEnvServer(selectedName);
759
- Logger.info(`Removed remote env server "${selectedName}"`);
887
+ Logger2.info(`Removed remote env server "${selectedName}"`);
760
888
  }
761
889
  #serverChoice([name, config]) {
762
890
  return { name: `${name} (${this.#getSshTarget(config)}${config.port ? `:${config.port}` : ""})`, value: name };
@@ -792,67 +920,41 @@ class CloudRunner extends runner("cloud") {
792
920
  }
793
921
  async login(host, workspace) {
794
922
  const cloudApi = await CloudApi.fromHost(workspace, host);
795
- const self = await cloudApi.getRemoteSelf();
796
- if (self) {
797
- Logger.rawLog(chalk2.green(`
798
- \u2713 Already logged in akan cloud as ${self.nickname}
923
+ const signedIn = await cloudApi.getRemoteSelf().catch(() => null);
924
+ if (signedIn) {
925
+ Logger2.rawLog(chalk3.green(`
926
+ \u2713 Already logged in akan cloud as ${signedIn.nickname}
799
927
  `));
800
928
  return true;
801
929
  }
802
- const remoteId = crypto.randomUUID();
803
- const signinUrl = `${cloudApi.host}/remoteAuth?remoteId=${encodeURIComponent(remoteId)}`;
804
- Logger.rawLog(chalk2.bold(`
805
- ${chalk2.green("\u27A4")} Authentication Required`));
806
- Logger.rawLog(chalk2.dim("Please visit or click the following URL:"));
807
- Logger.rawLog(`${chalk2.cyan.underline(signinUrl)}
808
- `);
809
- try {
810
- const qrcode = await new Promise((resolve, reject) => {
811
- QRcode.toString(signinUrl, { type: "terminal", small: true }, (err, data) => {
812
- if (err)
813
- reject(err);
814
- resolve(data);
815
- });
816
- });
817
- Logger.rawLog(qrcode);
818
- await openBrowser(signinUrl);
819
- Logger.rawLog(chalk2.dim("Opening browser..."));
820
- } catch {
821
- Logger.rawLog(chalk2.yellow("Could not open browser. Please visit the URL manually."));
930
+ const self = await new RemoteLogin(cloudApi).signIn();
931
+ Logger2.rawLog(chalk3.green(`\r\u2713 Authentication successful!`));
932
+ if (!self) {
933
+ Logger2.rawLog(chalk3.yellow(`The session is saved; run akan login again to check which account it signed in.
934
+ `));
935
+ return true;
822
936
  }
823
- Logger.rawLog(chalk2.dim("Waiting for authentication..."));
824
- const MAX_RETRY = 300;
825
- for (let i = 0;i < MAX_RETRY; i++) {
826
- const accessToken = await cloudApi.getRemoteAuthToken(remoteId);
827
- const self = await cloudApi.getRemoteSelf();
828
- if (accessToken && self) {
829
- await GlobalConfig.setHostConfig({ host: cloudApi.host, auth: { accessToken, self } });
830
- Logger.rawLog(chalk2.green(`\r\u2713 Authentication successful!`));
831
- Logger.rawLog(chalk2.green.bold(`
937
+ Logger2.rawLog(chalk3.green.bold(`
832
938
  \u2728 Welcome aboard, ${self.nickname ?? "anonymous"}!`));
833
- Logger.rawLog(chalk2.dim(`You're now ready to use Akan CLI!
939
+ Logger2.rawLog(chalk3.dim(`You're now ready to use Akan CLI!
834
940
  `));
835
- return true;
836
- }
837
- await sleep(2000);
838
- }
839
- throw new Error(chalk2.red("\u2716 Authentication timed out after 10 minutes. Please try again."));
941
+ return true;
840
942
  }
841
943
  async logout(host) {
842
944
  const config = await GlobalConfig.getHostConfig(host);
843
- if (config.auth?.self) {
945
+ if (config.auth?.self || config.auth?.accessToken) {
844
946
  await GlobalConfig.setHostConfig(getDefaultHostConfig(config.host));
845
- Logger.rawLog(chalk2.magenta.bold(`
846
- \uD83D\uDC4B Goodbye, ${config.auth.self.nickname ?? "anonymous"}!`));
847
- Logger.rawLog(chalk2.dim(`\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
947
+ Logger2.rawLog(chalk3.magenta.bold(`
948
+ \uD83D\uDC4B Goodbye, ${config.auth.self?.nickname ?? "anonymous"}!`));
949
+ Logger2.rawLog(chalk3.dim(`\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
848
950
  `));
849
- Logger.rawLog(chalk2.cyan("You have been successfully logged out."));
850
- Logger.rawLog(chalk2.dim(`Thank you for using Akan CLI. Come back soon! \uD83C\uDF1F
951
+ Logger2.rawLog(chalk3.cyan("You have been successfully logged out."));
952
+ Logger2.rawLog(chalk3.dim(`Thank you for using Akan CLI. Come back soon! \uD83C\uDF1F
851
953
  `));
852
954
  } else {
853
- Logger.rawLog(chalk2.yellow.bold(`
955
+ Logger2.rawLog(chalk3.yellow.bold(`
854
956
  \u26A0\uFE0F No active session found`));
855
- Logger.rawLog(chalk2.dim(`You were not logged in to begin with
957
+ Logger2.rawLog(chalk3.dim(`You were not logged in to begin with
856
958
  `));
857
959
  }
858
960
  }
@@ -862,24 +964,24 @@ ${chalk2.green("\u27A4")} Authentication Required`));
862
964
  targets.windows = await this.#askWindowsTestTarget();
863
965
  await GlobalConfig.setTestTargets({ windows: targets.windows });
864
966
  }
865
- Logger.info(`Testing ${pkgs.join(", ")} on ${platforms.join(", ")} in the background...`);
967
+ Logger2.info(`Testing ${pkgs.join(", ")} on ${platforms.join(", ")} in the background...`);
866
968
  return await PlatformTestRun.start({
867
969
  workspaceRoot: workspace.workspaceRoot,
868
970
  platforms,
869
971
  pkgs,
870
972
  targets,
871
- onProgress: (message) => Logger.info(message)
973
+ onProgress: (message) => Logger2.info(message)
872
974
  });
873
975
  }
874
976
  async settlePlatformTests(run, { interactive, recordStreaks, checkDrift }) {
875
977
  const results = await run.results();
876
- Logger.rawLog(`
978
+ Logger2.rawLog(`
877
979
  ${run.format(results)}
878
980
  `);
879
981
  if (recordStreaks) {
880
982
  const streak = await PlatformTestRun.recordStreaks(results);
881
983
  if (streak?.promoted)
882
- Logger.info(`${streak.platform} passed ${streak.greenStreak} deploys in a row and now gates every deploy`);
984
+ Logger2.info(`${streak.platform} passed ${streak.greenStreak} deploys in a row and now gates every deploy`);
883
985
  }
884
986
  const { blocking, warning } = PlatformTestRun.verdict(results);
885
987
  const unreachable = blocking.filter((result) => result.infraError && !result.packages.length);
@@ -914,7 +1016,7 @@ ${run.format(results)}
914
1016
  assertPromptable("No Windows test target is configured", {
915
1017
  remedy: "run it once in a terminal, which saves the target to ~/.akan/config.json"
916
1018
  });
917
- Logger.info("No Windows test target is configured yet; it is saved to ~/.akan/config.json once entered.");
1019
+ Logger2.info("No Windows test target is configured yet; it is saved to ~/.akan/config.json once entered.");
918
1020
  const required = (value) => !!value.trim();
919
1021
  const host = await this.#ask("Windows host (ip or name): ", required);
920
1022
  const user = await this.#ask("SSH user: ", required);
@@ -944,8 +1046,8 @@ ${run.format(results)}
944
1046
  const latestPublishedVersion = await getLatestPackageVersion("akanjs", tag, registry).catch(() => null);
945
1047
  const latestPatch = latestPublishedVersion?.startsWith(targetVersionPrefix) ? parseInt(latestPublishedVersion.split(".").at(-1) ?? "-1") : -1;
946
1048
  const nextVersion = `${targetVersionPrefix}.${latestPatch + 1}`;
947
- Logger.info(`Latest published version of akanjs: ${latestPublishedVersion ?? "none"}`);
948
- Logger.info(`Next version of akanjs: ${nextVersion}`);
1049
+ Logger2.info(`Latest published version of akanjs: ${latestPublishedVersion ?? "none"}`);
1050
+ Logger2.info(`Next version of akanjs: ${nextVersion}`);
949
1051
  for (const library of akanPkgs) {
950
1052
  const packageJson = await workspace.readJson(`pkgs/${library}/package.json`);
951
1053
  const newPackageJson = this.#normalizeAkanPackageJson(packageJson, library, nextVersion);
@@ -959,24 +1061,24 @@ ${run.format(results)}
959
1061
  remedy: "run it in a terminal"
960
1062
  });
961
1063
  if (confirmPublish && !await confirm({ message: "Are you sure you want to deploy the libraries?" })) {
962
- Logger.error("Deployment cancelled");
1064
+ Logger2.error("Deployment cancelled");
963
1065
  return;
964
1066
  }
965
1067
  if (!registry) {
966
- Logger.info("Logging in to npm...");
1068
+ Logger2.info("Logging in to npm...");
967
1069
  await workspace.spawn("npm", ["login"], { stdio: "inherit" });
968
- Logger.info("Logged in to npm");
1070
+ Logger2.info("Logged in to npm");
969
1071
  }
970
1072
  for (const library of akanPkgs) {
971
- Logger.info(`Publishing ${library}@${nextVersion} to ${registry ?? "npm"}...`);
1073
+ Logger2.info(`Publishing ${library}@${nextVersion} to ${registry ?? "npm"}...`);
972
1074
  await workspace.spawn("npm", ["publish", "--tag", tag, ...this.#getRegistryArgs(registry), ...this.#getLocalRegistryAuthArgs(registry)], {
973
1075
  cwd: path7.join(workspace.workspaceRoot, "dist/pkgs", library),
974
1076
  env: this.#getRegistryEnv(registry),
975
1077
  stdio: "inherit"
976
1078
  });
977
- Logger.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
1079
+ Logger2.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
978
1080
  }
979
- Logger.info(`All libraries are published to ${registry ?? "npm"}`);
1081
+ Logger2.info(`All libraries are published to ${registry ?? "npm"}`);
980
1082
  }
981
1083
  async update(workspace, tag = "latest", { registryUrl } = {}) {
982
1084
  const registry = registryUrl ? getNpmRegistryUrl(registryUrl) : undefined;
@@ -1043,7 +1145,7 @@ ${run.format(results)}
1043
1145
  await workspace.mkdir("local");
1044
1146
  await workspace.remove(envArchivePath);
1045
1147
  try {
1046
- Logger.info(`Downloading env archive from remote server "${remoteServer.name}"...`);
1148
+ Logger2.info(`Downloading env archive from remote server "${remoteServer.name}"...`);
1047
1149
  await workspace.spawn("scp", this.#getScpArgs(remoteServer.config, remoteTarget, envArchivePath), {
1048
1150
  cwd: workspace.workspaceRoot,
1049
1151
  stdio: "inherit"
@@ -1064,7 +1166,7 @@ ${run.format(results)}
1064
1166
  cwd: workspace.workspaceRoot,
1065
1167
  stdio: "inherit"
1066
1168
  });
1067
- Logger.info(`Uploading env archive to remote server "${remoteServer.name}"...`);
1169
+ Logger2.info(`Uploading env archive to remote server "${remoteServer.name}"...`);
1068
1170
  await workspace.spawn("scp", this.#getScpArgs(remoteServer.config, filePath, remoteTarget), {
1069
1171
  cwd: workspace.workspaceRoot,
1070
1172
  stdio: "inherit"
@@ -1091,7 +1193,7 @@ ${run.format(results)}
1091
1193
  if (envFilePaths.length === 0)
1092
1194
  throw new Error(scope ? `No environment files found to archive for ${appNames.join(", ") || "(no apps)"}` : "No environment files found to archive");
1093
1195
  await workspace.spawn("tar", ["-cf", archivePath, ...envFilePaths], { cwd: workspace.workspaceRoot });
1094
- Logger.info(`Archived ${envFilePaths.length} environment files to ${archivePath}`);
1196
+ Logger2.info(`Archived ${envFilePaths.length} environment files to ${archivePath}`);
1095
1197
  return { files: envFilePaths, path: archivePath };
1096
1198
  }
1097
1199
  async#gatherCustomSecretFiles(workspace, appNames) {
@@ -1154,7 +1256,7 @@ ${run.format(results)}
1154
1256
  if (nextContent === existing)
1155
1257
  return;
1156
1258
  await workspace.writeFile(".gitignore", nextContent);
1157
- Logger.info(uniquePatterns.length ? `Synced ${uniquePatterns.length} secret pattern(s) from akan.config.ts to .gitignore` : "Removed managed secret patterns from .gitignore");
1259
+ Logger2.info(uniquePatterns.length ? `Synced ${uniquePatterns.length} secret pattern(s) from akan.config.ts to .gitignore` : "Removed managed secret patterns from .gitignore");
1158
1260
  }
1159
1261
  #applySecretGitignoreBlock(content, patterns) {
1160
1262
  const beginMarker = "# akan:secrets (managed by akan.config.ts \u2014 do not edit)";
@@ -4,7 +4,7 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-1f33g2z5.js";
7
+ } from "./index-2ar6tffh.js";
8
8
  import {
9
9
  PkgExecutor
10
10
  } from "./index-rr7jk14m.js";
@@ -17,13 +17,13 @@ import {
17
17
  } from "./index-p4dnj2wc.js";
18
18
  import {
19
19
  ApplicationScript
20
- } from "./index-qtkycaqn.js";
20
+ } from "./index-1cq1hq12.js";
21
21
  import {
22
22
  PackageScript
23
23
  } from "./index-tk3jg2bm.js";
24
24
  import {
25
25
  CloudRunner
26
- } from "./index-vg28jsf9.js";
26
+ } from "./index-7f0edwsj.js";
27
27
 
28
28
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
29
29
  import { Logger } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-1f33g2z5.js";
5
+ } from "./index-2ar6tffh.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
package/index.js CHANGED
@@ -22,26 +22,26 @@ import path from "path";
22
22
 
23
23
  // pkgs/@akanjs/cli/commandModules.ts
24
24
  var commandModules = {
25
- workspace: async () => (await import("./workspace.command-3dq7e9g2.js")).WorkspaceCommand,
25
+ workspace: async () => (await import("./workspace.command-qvwdqmnd.js")).WorkspaceCommand,
26
26
  agent: async () => (await import("./agent.command-p02330r6.js")).AgentCommand,
27
27
  code: async () => (await import("./code.command-16pm1p2v.js")).CodeCommand,
28
- application: async () => (await import("./application.command-ywks5ywm.js")).ApplicationCommand,
28
+ application: async () => (await import("./application.command-1117fgq9.js")).ApplicationCommand,
29
29
  library: async () => (await import("./library.command-a8n9h8j4.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-1e6m7w2f.js")).LocalRegistryCommand,
30
+ localRegistry: async () => (await import("./localRegistry.command-c2mxqf4h.js")).LocalRegistryCommand,
31
31
  package: async () => (await import("./package.command-tc27ftmy.js")).PackageCommand,
32
32
  module: async () => (await import("./module.command-b6f1p1xa.js")).ModuleCommand,
33
33
  page: async () => (await import("./page.command-m5wyqfkd.js")).PageCommand,
34
34
  context: async () => (await import("./context.command-6ys86sqf.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-1tzkvje1.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-ps12q5y7.js")).SubspaceCommand,
35
+ cloud: async () => (await import("./cloud.command-ttb2s2x6.js")).CloudCommand,
36
+ subspace: async () => (await import("./subspace.command-4mjjxgmf.js")).SubspaceCommand,
37
37
  guideline: async () => (await import("./guideline.command-3zay3d8g.js")).GuidelineCommand,
38
38
  scalar: async () => (await import("./scalar.command-xsejjeq1.js")).ScalarCommand,
39
39
  primitive: async () => (await import("./primitive.command-9yaatk0d.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-ht1wjhv8.js")).QualityCommand,
40
+ quality: async () => (await import("./quality.command-fxn07zwp.js")).QualityCommand,
41
41
  repair: async () => (await import("./repair.command-evg9g911.js")).RepairCommand,
42
42
  workflow: async () => (await import("./workflow.command-qpyq0ya5.js")).WorkflowCommand,
43
43
  pipeline: async () => (await import("./pipeline.command-4qxyafpz.js")).PipelineCommand,
44
- tunnel: async () => (await import("./tunnel.command-khzgvrj8.js")).TunnelCommand
44
+ tunnel: async () => (await import("./tunnel.command-7f41pm7y.js")).TunnelCommand
45
45
  };
46
46
  var commandModuleIds = Object.keys(commandModules);
47
47
 
@@ -18,13 +18,13 @@ import"./index-jgs8z8xb.js";
18
18
  import"./index-qkcwsg6r.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-qtkycaqn.js";
21
+ } from "./index-1cq1hq12.js";
22
22
  import"./index-7md2g9vw.js";
23
- import"./index-1f33g2z5.js";
23
+ import"./index-2ar6tffh.js";
24
24
  import {
25
25
  getNpmRegistryUrl,
26
26
  CloudRunner
27
- } from "./index-vg28jsf9.js";
27
+ } from "./index-7f0edwsj.js";
28
28
  import"./index-tvehn2sp.js";
29
29
  import {
30
30
  PackageScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.1.1-rc.0",
3
+ "version": "3.1.1-rc.1",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.1.1-rc.0",
42
+ "akanjs": "3.1.1-rc.1",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",