@akanjs/cli 3.1.1-rc.10 → 3.1.1-rc.11

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 (66) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-8d5qs787.js → CodeAgent-5t8m16w8.js} +2 -2
  3. package/{CodeTui-z5vkm9ea.js → CodeTui-drgacyvs.js} +1 -1
  4. package/TunnelShare-26ty9skr.js +14 -0
  5. package/{agent.command-ydftceda.js → agent.command-h82gepwn.js} +5 -5
  6. package/akanCode.js +2 -2
  7. package/{application.command-wthg8nn9.js → application.command-j1reb9p1.js} +9 -9
  8. package/{applicationBuildRunner-t2r84sz6.js → applicationBuildRunner-w20x63mz.js} +8 -6
  9. package/buildBatch.proc.js +5 -5
  10. package/{cloud.command-sz11hpre.js → cloud.command-zd2mfkm0.js} +13 -13
  11. package/cloud.script-vdj8ymch.js +24 -0
  12. package/{code.command-9h3yrzhe.js → code.command-w1rt357h.js} +6 -6
  13. package/{context.command-15j9b7c0.js → context.command-d35ppstw.js} +16 -16
  14. package/context.runner-azvkkzdr.js +25 -0
  15. package/{guideline.command-snh85ctf.js → guideline.command-xwkskvky.js} +2 -2
  16. package/guidelines/pageRule/pageRule.instruction.md +4 -3
  17. package/incrementalBuilder.proc.js +3 -3
  18. package/{index-wcej7g4z.js → index-1e2955yd.js} +10 -0
  19. package/{index-bt438yxm.js → index-2qzzp0c9.js} +5 -4
  20. package/{index-40brg4px.js → index-4rwfh2de.js} +3 -3
  21. package/{index-pcwzkdqb.js → index-553xyb55.js} +1 -1
  22. package/{index-55j120r8.js → index-657908e5.js} +1 -1
  23. package/{index-4vgbysa0.js → index-6pzt55w3.js} +3 -3
  24. package/{index-a5dhqkdr.js → index-6y1991s6.js} +3 -3
  25. package/{index-74tjjsnc.js → index-7abjzny1.js} +4 -4
  26. package/{index-2azahjaw.js → index-7ktk2hnz.js} +2 -2
  27. package/{index-a58emady.js → index-7yzcaymm.js} +8 -8
  28. package/{index-espk51ah.js → index-8jb5ep2e.js} +2 -2
  29. package/{index-js6geqjn.js → index-8rvwgd1r.js} +1 -1
  30. package/{index-301pdbzz.js → index-brpk7gd8.js} +7 -7
  31. package/{index-6txx6a9p.js → index-ch1sv7ke.js} +16 -12
  32. package/{index-0fz95kxe.js → index-cz9g85xh.js} +1 -1
  33. package/{index-42j4a8zq.js → index-hdzjaq7s.js} +4 -3
  34. package/{index-skk9zc1x.js → index-kbbyzs6j.js} +2 -2
  35. package/{index-31es1yev.js → index-kr62ph5a.js} +2 -2
  36. package/{index-hmt54t45.js → index-nmy1rana.js} +4 -4
  37. package/{index-xjf5j657.js → index-pqdz7rat.js} +1 -1
  38. package/{index-3wypz6xj.js → index-qmeh0s05.js} +6 -2
  39. package/{index-2xcc2ax5.js → index-rshwdv9w.js} +2 -2
  40. package/{index-qfp55x1y.js → index-trvk51ht.js} +4 -4
  41. package/{index-9th4gszy.js → index-tzzs52h0.js} +18 -9
  42. package/{index-j9vyj3dj.js → index-wvvwdzfw.js} +3 -3
  43. package/{index-2mwc0g0d.js → index-xeh7m2j5.js} +1 -1
  44. package/{index-b70zct19.js → index-y5m4j2w6.js} +7 -7
  45. package/{index-905qdgqp.js → index-ygy8c12j.js} +1 -1
  46. package/{index-xb8809yb.js → index-yknrmkmt.js} +2 -2
  47. package/index.js +22 -22
  48. package/{library.command-gycrwhf1.js → library.command-td8t85kb.js} +3 -3
  49. package/{localRegistry.command-jtd8gaes.js → localRegistry.command-jx9zkmxf.js} +12 -12
  50. package/{module.command-v6hgs1bc.js → module.command-j70mqgpp.js} +5 -5
  51. package/{package.command-shzpcfph.js → package.command-1b1v6k5v.js} +3 -3
  52. package/package.json +2 -2
  53. package/{page.command-ptxn5kqk.js → page.command-m31w2tsz.js} +3 -3
  54. package/{pipeline.command-zz31pgax.js → pipeline.command-q7b8wy55.js} +2 -2
  55. package/{primitive.command-a1vse91z.js → primitive.command-4zrbhkb9.js} +6 -6
  56. package/{projectTypecheck-2ztky9cf.js → projectTypecheck-synx6qff.js} +1 -1
  57. package/{quality.command-ah8qcakd.js → quality.command-cy0pgqjz.js} +3 -3
  58. package/{repair.command-cvazbz99.js → repair.command-98n6zxg7.js} +5 -5
  59. package/{scalar.command-0acvyp26.js → scalar.command-rak5pjk3.js} +4 -4
  60. package/{subspace.command-822qx2bx.js → subspace.command-ej0rk116.js} +8 -8
  61. package/{tunnel.command-ycmja19q.js → tunnel.command-kdx3amrc.js} +7 -7
  62. package/{workflow.command-abb1d5xy.js → workflow.command-gffk9nj9.js} +10 -10
  63. package/{workspace.command-qm7cw29v.js → workspace.command-j1680trm.js} +24 -24
  64. package/TunnelShare-qkm8zp03.js +0 -14
  65. package/cloud.script-nqevg5qw.js +0 -24
  66. package/context.runner-8gg030b0.js +0 -25
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  AppExecutor
4
- } from "./index-wcej7g4z.js";
4
+ } from "./index-1e2955yd.js";
5
5
  import {
6
6
  jsonText,
7
7
  createWorkflowBaselineSummary,
8
8
  buildAkanModuleContextIndex,
9
9
  toolingRolloutGate
10
- } from "./index-xjf5j657.js";
10
+ } from "./index-pqdz7rat.js";
11
11
  import {
12
12
  buildResourceList,
13
13
  codexMcpConfigPath,
@@ -17,16 +17,16 @@ import {
17
17
  upsertCodexMcpServerBlock,
18
18
  renderDoctorText,
19
19
  AkanContextAnalyzer
20
- } from "./index-31es1yev.js";
20
+ } from "./index-kr62ph5a.js";
21
21
  import {
22
22
  runner
23
- } from "./index-3wypz6xj.js";
23
+ } from "./index-qmeh0s05.js";
24
24
  import {
25
25
  NativeApp
26
- } from "./index-bt438yxm.js";
26
+ } from "./index-2qzzp0c9.js";
27
27
  import {
28
28
  isPlaceholderAppId
29
- } from "./index-js6geqjn.js";
29
+ } from "./index-8rvwgd1r.js";
30
30
  import {
31
31
  getMobileTargets,
32
32
  appIdsOf
@@ -36,10 +36,10 @@ import {
36
36
  } from "./index-zzvvc845.js";
37
37
  import {
38
38
  RepairRunner
39
- } from "./index-j9vyj3dj.js";
39
+ } from "./index-wvvwdzfw.js";
40
40
  import {
41
41
  WorkflowRunner
42
- } from "./index-b70zct19.js";
42
+ } from "./index-y5m4j2w6.js";
43
43
 
44
44
  // pkgs/@akanjs/devkit/akanMcpContract.ts
45
45
  import path from "path";
@@ -19,11 +19,11 @@ import {
19
19
  CsrDevPaths,
20
20
  PagesEntrySourceGenerator,
21
21
  PagesBundleBuilder
22
- } from "./index-0fz95kxe.js";
22
+ } from "./index-cz9g85xh.js";
23
23
  import {
24
24
  AsyncDefaultExportDetector,
25
25
  resolveSsrPageEntriesForApp
26
- } from "./index-wcej7g4z.js";
26
+ } from "./index-1e2955yd.js";
27
27
 
28
28
  // pkgs/@akanjs/devkit/frontendBuild/autoImportSync.ts
29
29
  import { readdir, readFile, stat } from "fs/promises";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  DesktopBin
4
- } from "./index-bt438yxm.js";
4
+ } from "./index-2qzzp0c9.js";
5
5
  // pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
6
6
  import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
7
7
  import path from "path";
@@ -4,27 +4,27 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-2azahjaw.js";
7
+ } from "./index-7ktk2hnz.js";
8
8
  import {
9
9
  PkgExecutor
10
- } from "./index-wcej7g4z.js";
10
+ } from "./index-1e2955yd.js";
11
11
  import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-bt438yxm.js";
15
+ } from "./index-2qzzp0c9.js";
16
16
  import {
17
17
  script
18
- } from "./index-3wypz6xj.js";
18
+ } from "./index-qmeh0s05.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-9th4gszy.js";
21
+ } from "./index-tzzs52h0.js";
22
22
  import {
23
23
  PackageScript
24
- } from "./index-42j4a8zq.js";
24
+ } from "./index-hdzjaq7s.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-6txx6a9p.js";
27
+ } from "./index-ch1sv7ke.js";
28
28
 
29
29
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
30
30
  import { Logger } from "akanjs/common";
@@ -6,21 +6,21 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-2azahjaw.js";
9
+ } from "./index-7ktk2hnz.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  WorkspaceExecutor,
15
15
  AppExecutor
16
- } from "./index-wcej7g4z.js";
16
+ } from "./index-1e2955yd.js";
17
17
  import {
18
18
  NativeApp
19
- } from "./index-bt438yxm.js";
19
+ } from "./index-2qzzp0c9.js";
20
20
  import {
21
21
  runner,
22
22
  assertPromptable
23
- } from "./index-3wypz6xj.js";
23
+ } from "./index-qmeh0s05.js";
24
24
  import {
25
25
  SubspaceConfig
26
26
  } from "./index-4pf8g7ff.js";
@@ -294,6 +294,7 @@ class LinuxDockerTarget extends PlatformTestTarget {
294
294
  "run",
295
295
  "-d",
296
296
  "--rm",
297
+ "--init",
297
298
  "--name",
298
299
  container,
299
300
  "--cpus",
@@ -743,7 +744,7 @@ ${chalk2.green("\u27A4")} Authentication Required`));
743
744
  }
744
745
  Logger.rawLog(`
745
746
  ${chalk2.bold("Your code:")} ${chalk2.bold.inverse(` ${await RemoteAuthCode.of(remoteId)} `)}`);
746
- Logger.rawLog(chalk2.dim(`Enter this code on the sign-in page, and approve only if it matches what this terminal shows.
747
+ Logger.rawLog(chalk2.dim(`Enter this code on the sign-in page. Never enter a code that did not come from your own terminal.
747
748
  `));
748
749
  }
749
750
  async#awaitApproval(remoteId, loginId) {
@@ -778,17 +779,20 @@ ${chalk2.bold("Your code:")} ${chalk2.bold.inverse(` ${await RemoteAuthCode.of(r
778
779
  async#readSelf() {
779
780
  let reason = "";
780
781
  for (let attempt = 1;attempt <= this.#selfAttempts; attempt++) {
782
+ let self;
781
783
  try {
782
- const self = await this.#api.getRemoteSelf();
783
- if (self)
784
- return self;
785
- reason = "the server did not take the new session";
786
- break;
784
+ self = await this.#api.getRemoteSelf();
787
785
  } catch (error) {
788
786
  reason = RemoteLogin.#reasonOf(error);
787
+ if (attempt < this.#selfAttempts)
788
+ await this.#wait(Backoff.delay(attempt, { min: 1000, max: 8000 }));
789
+ continue;
789
790
  }
790
- if (attempt < this.#selfAttempts)
791
- await this.#wait(Backoff.delay(attempt, { min: 1000, max: 8000 }));
791
+ if (self)
792
+ return self;
793
+ const { host } = this.#api;
794
+ await GlobalConfig.setHostConfig(getDefaultHostConfig(host));
795
+ throw new Error(chalk2.red(`\u2716 ${host} did not take the session it handed out. Run akan login again.`));
792
796
  }
793
797
  Logger.rawLog(chalk2.yellow(`Could not read the signed-in account (${reason}).`));
794
798
  return null;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AsyncDefaultExportDetector,
4
4
  resolveSsrPageEntriesForApp
5
- } from "./index-wcej7g4z.js";
5
+ } from "./index-1e2955yd.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-52w0fvh8.js";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3wypz6xj.js";
5
+ } from "./index-qmeh0s05.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-wcej7g4z.js";
11
+ } from "./index-1e2955yd.js";
12
12
  import {
13
13
  TypeScriptDependencyScanner2
14
14
  } from "./index-tvehn2sp.js";
@@ -233,7 +233,8 @@ class PackageRunner extends runner("package") {
233
233
  const specifierPattern = new RegExp(`["'](${alternatives.join("|")})((?:/[^"'\\s]*)?)["']`, "g");
234
234
  const glob = new Bun.Glob(PackageRunner.#scannableDistFiles);
235
235
  const imports = new Map;
236
- for await (const relative of glob.scan({ cwd: distPath })) {
236
+ for await (const scanned of glob.scan({ cwd: distPath })) {
237
+ const relative = scanned.split(path2.sep).join("/");
237
238
  if (relative.includes("node_modules/") || relative.endsWith(".d.ts"))
238
239
  continue;
239
240
  if (/\.(test|spec)\.[a-z]+$/.test(relative))
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3wypz6xj.js";
5
+ } from "./index-qmeh0s05.js";
6
6
  import {
7
7
  generatedFilesForSync,
8
8
  createPassedPrimitiveReport,
9
9
  scalarChangedFiles
10
- } from "./index-xjf5j657.js";
10
+ } from "./index-pqdz7rat.js";
11
11
  import {
12
12
  pluralizeName
13
13
  } from "./index-nz8prx9g.js";
@@ -10,7 +10,7 @@ import {
10
10
  isScannedRootEntry,
11
11
  AppExecutor,
12
12
  LibExecutor
13
- } from "./index-wcej7g4z.js";
13
+ } from "./index-1e2955yd.js";
14
14
  import {
15
15
  FileSys2
16
16
  } from "./index-52w0fvh8.js";
@@ -23,7 +23,7 @@ import {
23
23
  workflowPathsForPlan,
24
24
  workflowRunArtifactPath,
25
25
  workflowSyncDir
26
- } from "./index-xjf5j657.js";
26
+ } from "./index-pqdz7rat.js";
27
27
 
28
28
  // pkgs/@akanjs/devkit/akanContext.ts
29
29
  import { readdir } from "fs/promises";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3wypz6xj.js";
5
+ } from "./index-qmeh0s05.js";
6
6
  import {
7
7
  ModuleExecutor
8
- } from "./index-wcej7g4z.js";
8
+ } from "./index-1e2955yd.js";
9
9
  import {
10
10
  sourceFile,
11
11
  moduleSourcePaths,
@@ -13,10 +13,10 @@ import {
13
13
  createPassedPrimitiveReport,
14
14
  bilingualLabelForField,
15
15
  bilingualDescriptionForField
16
- } from "./index-xjf5j657.js";
16
+ } from "./index-pqdz7rat.js";
17
17
  import {
18
18
  PageScript
19
- } from "./index-905qdgqp.js";
19
+ } from "./index-ygy8c12j.js";
20
20
  import {
21
21
  pluralizeName
22
22
  } from "./index-nz8prx9g.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-wcej7g4z.js";
5
+ } from "./index-1e2955yd.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
8
8
  import { capitalize } from "akanjs/common";
@@ -10,7 +10,7 @@ import {
10
10
  LibExecutor,
11
11
  PkgExecutor,
12
12
  ModuleExecutor
13
- } from "./index-wcej7g4z.js";
13
+ } from "./index-1e2955yd.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/commandDecorators/camelToKebabCase.ts
16
16
  var camelToKebabCase = (str) => str.replace(/([A-Z])/g, "-$1").toLowerCase();
@@ -348,7 +348,11 @@ class WorkspaceVersionCheck {
348
348
  return JSON.parse(readFileSync(packageJsonPath, "utf8")).version ?? null;
349
349
  }
350
350
  static #quote(arg) {
351
- return /^[\w@%+=:,./-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'\\''`)}'`;
351
+ if (/^[\w@%+=:,./-]+$/.test(arg))
352
+ return arg;
353
+ if (process.platform === "win32")
354
+ return `"${arg.replaceAll('"', "\\\"")}"`;
355
+ return `'${arg.replaceAll("'", `'\\''`)}'`;
352
356
  }
353
357
  }
354
358
 
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3wypz6xj.js";
5
+ } from "./index-qmeh0s05.js";
6
6
  import {
7
7
  LibSource,
8
8
  formatLibStatuses,
9
9
  CommandExecutionError,
10
10
  LibExecutor
11
- } from "./index-wcej7g4z.js";
11
+ } from "./index-1e2955yd.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.script.ts
14
14
  import { Logger } from "akanjs/common";
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  jsonText
4
- } from "./index-xjf5j657.js";
4
+ } from "./index-pqdz7rat.js";
5
5
  import {
6
6
  akanMcpInstallTargets
7
- } from "./index-31es1yev.js";
7
+ } from "./index-kr62ph5a.js";
8
8
  import {
9
9
  script
10
- } from "./index-3wypz6xj.js";
10
+ } from "./index-qmeh0s05.js";
11
11
  import {
12
12
  ContextRunner2
13
- } from "./index-a58emady.js";
13
+ } from "./index-7yzcaymm.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/context/context.script.ts
16
16
  import { Logger } from "akanjs/common";
@@ -41,7 +41,7 @@ import {
41
41
  script,
42
42
  markCliErrorPrinted,
43
43
  assertPromptable
44
- } from "./index-3wypz6xj.js";
44
+ } from "./index-qmeh0s05.js";
45
45
  import {
46
46
  AppInfo,
47
47
  CommandExecutionError,
@@ -50,30 +50,30 @@ import {
50
50
  AppExecutor,
51
51
  LibExecutor,
52
52
  PkgExecutor
53
- } from "./index-wcej7g4z.js";
53
+ } from "./index-1e2955yd.js";
54
54
  import {
55
55
  UpdatePackFolder,
56
56
  UpdateUploader,
57
57
  NativePublicEnv,
58
58
  NativeApp
59
- } from "./index-bt438yxm.js";
59
+ } from "./index-2qzzp0c9.js";
60
60
  import {
61
61
  DesktopServerStage
62
- } from "./index-js6geqjn.js";
62
+ } from "./index-8rvwgd1r.js";
63
63
  import {
64
64
  resolveMobileTargets,
65
65
  resolveAppId
66
66
  } from "./index-m9jj544v.js";
67
67
  import {
68
68
  LibraryScript
69
- } from "./index-2xcc2ax5.js";
69
+ } from "./index-rshwdv9w.js";
70
70
  import {
71
71
  stripAnsi
72
72
  } from "./index-7md2g9vw.js";
73
73
  import {
74
74
  SlicePlanner,
75
75
  formatSlicePlan
76
- } from "./index-pcwzkdqb.js";
76
+ } from "./index-553xyb55.js";
77
77
  import {
78
78
  openBrowser
79
79
  } from "./index-9dp031by.js";
@@ -1271,6 +1271,11 @@ ${this.#backendStderrTail.join(`
1271
1271
  static async readProcessRssBytes(pid) {
1272
1272
  if (process.platform === "win32")
1273
1273
  return await AkanAppHost.#readRssKbVia(["tasklist", "/FI", `PID eq ${pid}`, "/FO", "CSV", "/NH"], AkanAppHost.#tasklistRssKb);
1274
+ if (process.platform === "darwin") {
1275
+ const footprintBytes = await AkanAppHost.#readRssKbVia(["footprint", "-p", String(pid), "-f", "bytes"], AkanAppHost.#footprintKb);
1276
+ if (footprintBytes !== null)
1277
+ return footprintBytes;
1278
+ }
1274
1279
  const status = await Bun.file(`/proc/${pid}/status`).text().catch(() => null);
1275
1280
  const vmRssKb = status === null ? null : /VmRSS:\s+(\d+) kB/.exec(status)?.[1];
1276
1281
  if (vmRssKb)
@@ -1300,6 +1305,10 @@ ${this.#backendStderrTail.join(`
1300
1305
  const memUsage = /"([^"]*)"\s*$/m.exec(output)?.[1];
1301
1306
  return memUsage ? Number(memUsage.replace(/\D/g, "")) : Number.NaN;
1302
1307
  }
1308
+ static #footprintKb(output) {
1309
+ const bytes = /Footprint: (\d+) B\b/.exec(output)?.[1];
1310
+ return bytes ? Number(bytes) / 1024 : Number.NaN;
1311
+ }
1303
1312
  #cancelRssRecycle() {
1304
1313
  this.#rssRecycleReason = null;
1305
1314
  this.#rssRecycleOver = null;
@@ -1900,7 +1909,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
1900
1909
 
1901
1910
  // pkgs/@akanjs/cli/application/application.runner.ts
1902
1911
  import { Logger as Logger3, toError } from "akanjs/common";
1903
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-t2r84sz6.js")).ApplicationBuildRunner;
1912
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-w20x63mz.js")).ApplicationBuildRunner;
1904
1913
  var loadPrompts = async () => await import("@inquirer/prompts");
1905
1914
 
1906
1915
  class ApplicationRunner extends runner("application") {
@@ -2101,7 +2110,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2101
2110
  await new (await loadBuildRunner())(app).typecheck(options);
2102
2111
  }
2103
2112
  async typecheckLibrary(lib, options = {}) {
2104
- const { ProjectTypecheck } = await import("./projectTypecheck-2ztky9cf.js");
2113
+ const { ProjectTypecheck } = await import("./projectTypecheck-synx6qff.js");
2105
2114
  const root = lib.workspace.workspaceRoot;
2106
2115
  await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
2107
2116
  "../../server.ts",
@@ -3708,7 +3717,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3708
3717
  await Promise.all(shares.map(async (share) => await share.close()));
3709
3718
  }, "Abandoning the tunnel release; the shares expire on their own.");
3710
3719
  await Promise.all(apps.map(async (app) => {
3711
- const { TunnelShare } = await import("./TunnelShare-qkm8zp03.js");
3720
+ const { TunnelShare } = await import("./TunnelShare-26ty9skr.js");
3712
3721
  const share = await TunnelShare.open(app, { workspace: app.workspace });
3713
3722
  shares.push(share);
3714
3723
  urls.set(app.name, share.url);
@@ -5,13 +5,13 @@ import {
5
5
  writeGeneratedSyncState,
6
6
  createRepairReport,
7
7
  renderRepairReport
8
- } from "./index-xjf5j657.js";
8
+ } from "./index-pqdz7rat.js";
9
9
  import {
10
10
  AkanContextAnalyzer
11
- } from "./index-31es1yev.js";
11
+ } from "./index-kr62ph5a.js";
12
12
  import {
13
13
  runner
14
- } from "./index-3wypz6xj.js";
14
+ } from "./index-qmeh0s05.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var spawnShell = async (workspace, command) => await workspace.spawn("bash", ["-lc", command.startsWith("akan ") ? `bun run ${command}` : command], {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-2azahjaw.js";
5
+ } from "./index-7ktk2hnz.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -22,26 +22,26 @@ import {
22
22
  renderWorkflowApply,
23
23
  renderWorkflowValidation,
24
24
  renderWorkflowRunArtifact
25
- } from "./index-xjf5j657.js";
25
+ } from "./index-pqdz7rat.js";
26
26
  import {
27
27
  AkanContextAnalyzer
28
- } from "./index-31es1yev.js";
28
+ } from "./index-kr62ph5a.js";
29
29
  import {
30
30
  CommandContainer,
31
31
  runner
32
- } from "./index-3wypz6xj.js";
32
+ } from "./index-qmeh0s05.js";
33
33
  import {
34
34
  ModuleScript
35
- } from "./index-hmt54t45.js";
35
+ } from "./index-nmy1rana.js";
36
36
  import {
37
37
  PrimitiveScript
38
- } from "./index-74tjjsnc.js";
38
+ } from "./index-7abjzny1.js";
39
39
  import {
40
40
  spawnShell
41
- } from "./index-j9vyj3dj.js";
41
+ } from "./index-wvvwdzfw.js";
42
42
  import {
43
43
  ScalarScript
44
- } from "./index-skk9zc1x.js";
44
+ } from "./index-kbbyzs6j.js";
45
45
 
46
46
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
47
47
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-3wypz6xj.js";
5
+ } from "./index-qmeh0s05.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-wcej7g4z.js";
4
+ } from "./index-1e2955yd.js";
5
5
  import {
6
6
  bundleDefine,
7
7
  CsrEntryFiles,
8
8
  PagesEntrySourceGenerator,
9
9
  PagesBundleBuilder
10
- } from "./index-0fz95kxe.js";
10
+ } from "./index-cz9g85xh.js";
11
11
 
12
12
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
13
13
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
package/index.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-3wypz6xj.js";
7
+ } from "./index-qmeh0s05.js";
8
8
  import"./index-52w0fvh8.js";
9
- import"./index-wcej7g4z.js";
9
+ import"./index-1e2955yd.js";
10
10
 
11
11
  // pkgs/@akanjs/cli/bunVersionGuard.ts
12
12
  class BunVersionGuard {
@@ -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-qm7cw29v.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-ydftceda.js")).AgentCommand,
27
- code: async () => (await import("./code.command-9h3yrzhe.js")).CodeCommand,
28
- application: async () => (await import("./application.command-wthg8nn9.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-gycrwhf1.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-jtd8gaes.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-shzpcfph.js")).PackageCommand,
32
- module: async () => (await import("./module.command-v6hgs1bc.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-ptxn5kqk.js")).PageCommand,
34
- context: async () => (await import("./context.command-15j9b7c0.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-sz11hpre.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-822qx2bx.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-snh85ctf.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-0acvyp26.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-a1vse91z.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-ah8qcakd.js")).QualityCommand,
41
- repair: async () => (await import("./repair.command-cvazbz99.js")).RepairCommand,
42
- workflow: async () => (await import("./workflow.command-abb1d5xy.js")).WorkflowCommand,
43
- pipeline: async () => (await import("./pipeline.command-zz31pgax.js")).PipelineCommand,
44
- tunnel: async () => (await import("./tunnel.command-ycmja19q.js")).TunnelCommand
25
+ workspace: async () => (await import("./workspace.command-j1680trm.js")).WorkspaceCommand,
26
+ agent: async () => (await import("./agent.command-h82gepwn.js")).AgentCommand,
27
+ code: async () => (await import("./code.command-w1rt357h.js")).CodeCommand,
28
+ application: async () => (await import("./application.command-j1reb9p1.js")).ApplicationCommand,
29
+ library: async () => (await import("./library.command-td8t85kb.js")).LibraryCommand,
30
+ localRegistry: async () => (await import("./localRegistry.command-jx9zkmxf.js")).LocalRegistryCommand,
31
+ package: async () => (await import("./package.command-1b1v6k5v.js")).PackageCommand,
32
+ module: async () => (await import("./module.command-j70mqgpp.js")).ModuleCommand,
33
+ page: async () => (await import("./page.command-m31w2tsz.js")).PageCommand,
34
+ context: async () => (await import("./context.command-d35ppstw.js")).ContextCommand,
35
+ cloud: async () => (await import("./cloud.command-zd2mfkm0.js")).CloudCommand,
36
+ subspace: async () => (await import("./subspace.command-ej0rk116.js")).SubspaceCommand,
37
+ guideline: async () => (await import("./guideline.command-xwkskvky.js")).GuidelineCommand,
38
+ scalar: async () => (await import("./scalar.command-rak5pjk3.js")).ScalarCommand,
39
+ primitive: async () => (await import("./primitive.command-4zrbhkb9.js")).PrimitiveCommand,
40
+ quality: async () => (await import("./quality.command-cy0pgqjz.js")).QualityCommand,
41
+ repair: async () => (await import("./repair.command-98n6zxg7.js")).RepairCommand,
42
+ workflow: async () => (await import("./workflow.command-gffk9nj9.js")).WorkflowCommand,
43
+ pipeline: async () => (await import("./pipeline.command-q7b8wy55.js")).PipelineCommand,
44
+ tunnel: async () => (await import("./tunnel.command-kdx3amrc.js")).TunnelCommand
45
45
  };
46
46
  var commandModuleIds = Object.keys(commandModules);
47
47
 
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-3wypz6xj.js";
6
+ } from "./index-qmeh0s05.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-wcej7g4z.js";
8
+ import"./index-1e2955yd.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-2xcc2ax5.js";
11
+ } from "./index-rshwdv9w.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,32 +4,32 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-3wypz6xj.js";
7
+ } from "./index-qmeh0s05.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-wcej7g4z.js";
11
+ } from "./index-1e2955yd.js";
12
12
  import"./index-5nd1wtkv.js";
13
- import"./index-bt438yxm.js";
14
- import"./index-js6geqjn.js";
13
+ import"./index-2qzzp0c9.js";
14
+ import"./index-8rvwgd1r.js";
15
15
  import"./index-m9jj544v.js";
16
- import"./index-xb8809yb.js";
17
- import"./index-0fz95kxe.js";
18
- import"./index-2xcc2ax5.js";
16
+ import"./index-yknrmkmt.js";
17
+ import"./index-cz9g85xh.js";
18
+ import"./index-rshwdv9w.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-9th4gszy.js";
21
+ } from "./index-tzzs52h0.js";
22
22
  import"./index-7md2g9vw.js";
23
- import"./index-2azahjaw.js";
23
+ import"./index-7ktk2hnz.js";
24
24
  import {
25
25
  getNpmRegistryUrl,
26
26
  CloudRunner
27
- } from "./index-6txx6a9p.js";
27
+ } from "./index-ch1sv7ke.js";
28
28
  import"./index-tvehn2sp.js";
29
29
  import {
30
30
  PackageScript
31
- } from "./index-42j4a8zq.js";
32
- import"./index-pcwzkdqb.js";
31
+ } from "./index-hdzjaq7s.js";
32
+ import"./index-553xyb55.js";
33
33
 
34
34
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
35
35
  import { mkdir, rm } from "fs/promises";