@akanjs/cli 3.0.0-alpha.64 → 3.0.0-alpha.66

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 (44) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-tsx1nsdj.js → agent.command-7vr15vkn.js} +5 -5
  3. package/{application.command-n8ex8g9h.js → application.command-nrq6qvkh.js} +4 -4
  4. package/{applicationBuildRunner-x8h12rp0.js → applicationBuildRunner-jnjag4ay.js} +10 -8
  5. package/buildBatch.proc.js +2 -2
  6. package/{capacitorApp-8mv9e537.js → capacitorApp-w1ryppdw.js} +2 -2
  7. package/{cloud.command-f0rhw014.js → cloud.command-crwf7emx.js} +7 -7
  8. package/{context.command-s7a41qjs.js → context.command-xbsgta4f.js} +12 -12
  9. package/{guideline.command-qrw84ttb.js → guideline.command-mm19n009.js} +2 -2
  10. package/guidelines/conventions/conventions.instruction.md +107 -5
  11. package/incrementalBuilder.proc.js +1 -1
  12. package/{index-h0mnt0b0.js → index-0jn016vv.js} +3 -3
  13. package/{index-ckpwq052.js → index-1f34snpd.js} +1 -1
  14. package/{index-4mtyaqj2.js → index-639mgtfm.js} +2 -2
  15. package/{index-x1dbhd80.js → index-6s8snbb8.js} +2 -2
  16. package/{index-kkya2ped.js → index-7kxz2z5t.js} +1 -1
  17. package/{index-g44fykfw.js → index-8vv6xtm5.js} +1 -1
  18. package/{index-dvg362vq.js → index-8xeg8ehr.js} +3 -3
  19. package/{index-cc1mgv1f.js → index-9ppq2sx0.js} +4 -4
  20. package/{index-r8z20vnj.js → index-a6k0b1b5.js} +5 -5
  21. package/{index-0g9ajdz8.js → index-bzthvy50.js} +5 -5
  22. package/{index-8md8zszv.js → index-cnyeq88g.js} +3 -3
  23. package/{index-tn46rr6w.js → index-d5ef8n21.js} +4 -4
  24. package/{index-ek4mkwxp.js → index-gkg6e6cx.js} +10 -10
  25. package/{index-ryns915y.js → index-hpbf1b1e.js} +3 -3
  26. package/{index-ce9755av.js → index-jbhecvr9.js} +1 -1
  27. package/{index-f0t3wjyr.js → index-k8k45qfk.js} +2 -2
  28. package/{index-681sx6nt.js → index-w008bx1p.js} +69 -36
  29. package/{index-wc19q8mb.js → index-xda7qe2j.js} +2 -2
  30. package/{index-xj5b8c0w.js → index-xesyg6bc.js} +1 -0
  31. package/index.js +18 -18
  32. package/{library.command-p3jgf5h2.js → library.command-afjd6ex4.js} +3 -3
  33. package/{localRegistry.command-bms0qn6t.js → localRegistry.command-6zadvx6z.js} +6 -6
  34. package/{module.command-hb3xm07r.js → module.command-rh01pbz3.js} +5 -5
  35. package/{package.command-fbpa6r4w.js → package.command-g4s1y1wn.js} +3 -3
  36. package/package.json +2 -2
  37. package/{page.command-92vrmw96.js → page.command-9bw6sz1r.js} +3 -3
  38. package/{primitive.command-k6b9jfxr.js → primitive.command-pg1j3gm3.js} +6 -6
  39. package/{quality.command-89vwmjvf.js → quality.command-rt1z7je9.js} +2 -2
  40. package/{repair.command-nh9jn8rh.js → repair.command-pg54yhgc.js} +5 -5
  41. package/{scalar.command-zcsjgvax.js → scalar.command-t0akqh1r.js} +4 -4
  42. package/templates/app/main.ts +3 -1
  43. package/{workflow.command-jj0cphfm.js → workflow.command-se886yew.js} +9 -9
  44. package/{workspace.command-ma3g994j.js → workspace.command-q17atzha.js} +18 -18
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-ryns915y.js";
4
+ } from "./index-hpbf1b1e.js";
5
5
  import {
6
6
  WorkflowRunner
7
- } from "./index-dvg362vq.js";
7
+ } from "./index-8xeg8ehr.js";
8
8
  import {
9
9
  ScalarScript
10
- } from "./index-4mtyaqj2.js";
10
+ } from "./index-639mgtfm.js";
11
11
  import {
12
12
  PrimitiveScript
13
- } from "./index-cc1mgv1f.js";
13
+ } from "./index-9ppq2sx0.js";
14
14
  import {
15
15
  ModuleScript
16
- } from "./index-tn46rr6w.js";
16
+ } from "./index-d5ef8n21.js";
17
17
  import {
18
18
  isPlaceholderAppId
19
- } from "./index-ce9755av.js";
19
+ } from "./index-jbhecvr9.js";
20
20
  import {
21
21
  AkanContextAnalyzer,
22
22
  akanMcpInstallConfigPaths,
@@ -27,14 +27,14 @@ import {
27
27
  renderDoctorText,
28
28
  resourceList,
29
29
  upsertCodexMcpServerBlock
30
- } from "./index-wc19q8mb.js";
30
+ } from "./index-xda7qe2j.js";
31
31
  import {
32
32
  buildAkanModuleContextIndex,
33
33
  createWorkflowBaselineSummary,
34
34
  createWorkflowStepRegistry,
35
35
  jsonText,
36
36
  toolingRolloutGate
37
- } from "./index-g44fykfw.js";
37
+ } from "./index-8vv6xtm5.js";
38
38
  import {
39
39
  Prompter
40
40
  } from "./index-j37qq1f2.js";
@@ -45,10 +45,10 @@ import {
45
45
  CommandContainer,
46
46
  runner,
47
47
  script
48
- } from "./index-ckpwq052.js";
48
+ } from "./index-1f34snpd.js";
49
49
  import {
50
50
  AppExecutor
51
- } from "./index-681sx6nt.js";
51
+ } from "./index-w008bx1p.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/context/context.script.ts
54
54
  import { Logger } from "akanjs/common";
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-wc19q8mb.js";
4
+ } from "./index-xda7qe2j.js";
5
5
  import {
6
6
  createRepairReport,
7
7
  generatedFilePathsForTarget,
8
8
  renderRepairReport,
9
9
  writeGeneratedSyncState,
10
10
  writeWorkflowRunArtifact
11
- } from "./index-g44fykfw.js";
11
+ } from "./index-8vv6xtm5.js";
12
12
  import {
13
13
  runner
14
- } from "./index-ckpwq052.js";
14
+ } from "./index-1f34snpd.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-76rn3g2c.js";
6
6
  import {
7
7
  CommandExecutionError
8
- } from "./index-681sx6nt.js";
8
+ } from "./index-w008bx1p.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/capacitorApp.ts
11
11
  import { cp, mkdir, readFile, rm, writeFile } from "fs/promises";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-ckpwq052.js";
5
+ } from "./index-1f34snpd.js";
6
6
  import {
7
7
  LibExecutor
8
- } from "./index-681sx6nt.js";
8
+ } from "./index-w008bx1p.js";
9
9
 
10
10
  // pkgs/@akanjs/cli/semver.ts
11
11
  var stripRangeOperator = (version) => version.replace(/^[\s^~>=<v]+/, "").trim();
@@ -224,6 +224,7 @@ var DEFAULT_OPTIMIZE_IMPORTS = [
224
224
  "react-icons/*"
225
225
  ];
226
226
  var WORKSPACE_BARREL_FACETS = ["ui", "webkit", "common", "client", "server"];
227
+ var DEFAULT_DOCKER_IMAGE = "oven/bun:1-slim";
227
228
  var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
228
229
  var MOBILE_RUNTIME_PACKAGES = [
229
230
  "@capacitor/cli",
@@ -314,12 +315,24 @@ var normalizeDeepLinks = (deepLinks) => {
314
315
  ...sha256CertFingerprints ? { android: { sha256CertFingerprints } } : {}
315
316
  };
316
317
  };
318
+ var emptyLibContributions = () => ({
319
+ externalLibs: [],
320
+ docker: { preRuns: [], postRuns: [] }
321
+ });
322
+ var dedupeDockerRuns = (runs) => {
323
+ const byKey = new Map;
324
+ for (const run of runs)
325
+ byKey.set(typeof run === "string" ? run : JSON.stringify(run), run);
326
+ return [...byKey.values()];
327
+ };
317
328
 
318
329
  class AkanAppConfig {
319
330
  app;
320
331
  rootPackageJson;
321
332
  docker;
333
+ dockerfile;
322
334
  defaultDatabaseMode;
335
+ web;
323
336
  externalLibs;
324
337
  barrelImports;
325
338
  optimizeImports;
@@ -337,7 +350,7 @@ class AkanAppConfig {
337
350
  subRoutes = new Map;
338
351
  basePaths = new Set;
339
352
  branches = new Set(["debug", "develop", "main"]);
340
- constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = [], libExternalLibs = []) {
353
+ constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = [], libContributions = emptyLibContributions()) {
341
354
  this.app = app;
342
355
  this.rootPackageJson = rootPackageJson;
343
356
  this.libs = libs;
@@ -345,7 +358,7 @@ class AkanAppConfig {
345
358
  this.plugins = plugins;
346
359
  this.#applyRoutes(config?.routes);
347
360
  this.defaultDatabaseMode = config?.defaultDatabaseMode ?? "single";
348
- this.externalLibs = [...new Set([...config?.externalLibs ?? [], ...libExternalLibs])];
361
+ this.externalLibs = [...new Set([...config?.externalLibs ?? [], ...libContributions.externalLibs])];
349
362
  this.barrelImports = [
350
363
  ...DEFAULT_BARREL_IMPORTS,
351
364
  ...WORKSPACE_BARREL_FACETS.map((facet) => `@apps/${app.name}/${facet}`),
@@ -362,7 +375,15 @@ class AkanAppConfig {
362
375
  this.syncPageLibs = config?.syncPageLibs ?? false;
363
376
  this.hasMobileConfig = Boolean(config.mobile);
364
377
  this.mobile = this.#resolveMobileConfig(config.mobile);
365
- this.docker = this.#makeDockerContent(config?.docker ?? {});
378
+ this.web = this.#resolveWebConfig(config.web);
379
+ this.docker = AkanAppConfig.#resolveDocker(config.docker, libContributions.docker);
380
+ this.dockerfile = this.#makeDockerfile();
381
+ }
382
+ #resolveWebConfig(web) {
383
+ const resolved = typeof web === "object" ? { ssr: true, csr: web.csr } : { ssr: web ?? true, csr: web ?? true };
384
+ if (!resolved.csr && this.hasMobileConfig)
385
+ throw new Error(`apps/${this.app.name}/akan.config.ts turns the CSR bundle off but declares mobile targets; the Capacitor build ships that bundle. Drop the mobile section or leave CSR on.`);
386
+ return resolved;
366
387
  }
367
388
  #resolveMobileConfig(mobile) {
368
389
  const {
@@ -472,23 +493,31 @@ class AkanAppConfig {
472
493
  return archs.map((arch) => `FROM ${image[arch] ?? defaultImage} AS ${arch}`).join(`
473
494
  `);
474
495
  }
475
- #makeDockerContent(docker) {
476
- if (docker.content)
477
- return {
478
- content: docker.content,
479
- image: {},
480
- preRuns: [],
481
- postRuns: [],
482
- command: []
483
- };
484
- const preRunScripts = this.#getDockerRunScripts(docker.preRuns ?? []);
485
- const postRunScripts = this.#getDockerRunScripts(docker.postRuns ?? []);
486
- const imageScript = docker.image ? this.#getDockerImageScript(docker.image, "oven/bun:1-slim") : "FROM oven/bun:1-slim";
487
- const command = docker.command ?? ["bun", "main.js"];
488
- const content = `${imageScript}
496
+ static #resolveDocker(docker, libDocker) {
497
+ if (typeof docker === "string")
498
+ return docker;
499
+ return {
500
+ image: docker?.image ?? DEFAULT_DOCKER_IMAGE,
501
+ preRuns: dedupeDockerRuns([...libDocker.preRuns, ...docker?.preRuns ?? []]),
502
+ postRuns: dedupeDockerRuns([...libDocker.postRuns, ...docker?.postRuns ?? []]),
503
+ command: docker?.command ?? ["bun", "main.js"]
504
+ };
505
+ }
506
+ #makeDockerfile() {
507
+ if (typeof this.docker === "string")
508
+ return this.docker;
509
+ const { image, preRuns, postRuns, command } = this.docker;
510
+ const preRunScripts = this.#getDockerRunScripts(preRuns);
511
+ const postRunScripts = this.#getDockerRunScripts(postRuns);
512
+ const imageScript = this.#getDockerImageScript(image, DEFAULT_DOCKER_IMAGE);
513
+ const webEnvLines = [
514
+ ...this.web.ssr ? [] : ["ENV AKAN_SSR=false"],
515
+ ...this.web.csr ? [] : ["ENV AKAN_CSR=false"]
516
+ ].join(`
517
+ `);
518
+ return `${imageScript}
519
+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
489
520
  RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
490
- RUN apt-get update && apt-get upgrade -y
491
- RUN apt-get install -y --no-install-recommends git redis build-essential python3 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils udev ffmpeg
492
521
  ARG TARGETARCH
493
522
  ${preRunScripts.join(`
494
523
  `)}
@@ -509,15 +538,8 @@ ${this.basePaths.size ? `ENV AKAN_PUBLIC_BASE_PATHS=${[...this.basePaths].join("
509
538
  ENV AKAN_PUBLIC_DEFAULT_LOCALE=${this.i18n.defaultLocale}
510
539
  ENV AKAN_PUBLIC_LOCALES=${this.i18n.locales.join(",")}
511
540
  ENV AKAN_PUBLIC_OPERATION_MODE=cloud
512
-
541
+ ${webEnvLines}
513
542
  CMD [${command.map((c) => `"${c}"`).join(",")}]`;
514
- return {
515
- content,
516
- image: imageScript,
517
- preRuns: docker.preRuns ?? [],
518
- postRuns: docker.postRuns ?? [],
519
- command
520
- };
521
543
  }
522
544
  static #importGeneration = 0;
523
545
  static async importConfigModule(cwdPath, { bustImportCache = false } = {}) {
@@ -534,15 +556,21 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
534
556
  ]);
535
557
  const resolved = typeof configImp === "function" ? configImp(app) : configImp;
536
558
  const { plugins, ...config } = resolved ?? {};
537
- const libExternalLibs = await AkanAppConfig.#collectLibExternalLibs(app, libs, bustImportCache);
538
- return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libExternalLibs);
559
+ const libContributions = await AkanAppConfig.#collectLibContributions(app, libs, bustImportCache);
560
+ return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
539
561
  }
540
- static async#collectLibExternalLibs(app, libs, bustImportCache) {
562
+ static async#collectLibContributions(app, libs, bustImportCache) {
541
563
  const libConfigs = await Promise.all(libs.map(async (libName) => LibExecutor.from(app, libName).getConfig({ refresh: bustImportCache }).catch((error) => {
542
- app.logger.warn(`Skipped libs/${libName}/akan.config.ts externalLibs: ${String(error)}`);
564
+ app.logger.warn(`Skipped libs/${libName}/akan.config.ts contributions: ${String(error)}`);
543
565
  return null;
544
566
  })));
545
- return libConfigs.flatMap((libConfig) => libConfig?.externalLibs ?? []);
567
+ return {
568
+ externalLibs: libConfigs.flatMap((libConfig) => libConfig?.externalLibs ?? []),
569
+ docker: {
570
+ preRuns: libConfigs.flatMap((libConfig) => libConfig?.docker.preRuns ?? []),
571
+ postRuns: libConfigs.flatMap((libConfig) => libConfig?.docker.postRuns ?? [])
572
+ }
573
+ };
546
574
  }
547
575
  #resolveProductionDependencyVersion(lib) {
548
576
  const rootVersion = this.rootPackageJson.dependencies?.[lib] ?? this.rootPackageJson.devDependencies?.[lib];
@@ -640,10 +668,12 @@ function mergeImageConfig(config = {}) {
640
668
  class AkanLibConfig {
641
669
  lib;
642
670
  externalLibs;
671
+ docker;
643
672
  plugins;
644
673
  constructor(lib, config, plugins = []) {
645
674
  this.lib = lib;
646
675
  this.externalLibs = config?.externalLibs ?? [];
676
+ this.docker = { preRuns: config?.docker?.preRuns ?? [], postRuns: config?.docker?.postRuns ?? [] };
647
677
  this.plugins = plugins;
648
678
  }
649
679
  static async from(lib, { bustImportCache = false } = {}) {
@@ -1291,12 +1321,11 @@ class ScanInfo {
1291
1321
  })
1292
1322
  ]);
1293
1323
  const routes = exec.type === "lib" ? [] : await exec.getPageKeys();
1294
- const scanResult = {
1324
+ const common = {
1295
1325
  name: exec.name,
1296
1326
  type: exec.type,
1297
1327
  repoName: exec.workspace.repoName,
1298
1328
  serveDomain: WorkspaceExecutor.getBaseDevEnv(path4.join(exec.workspace.workspaceRoot, ".env")).serveDomain,
1299
- akanConfig: akanConfig2,
1300
1329
  files,
1301
1330
  libDeps,
1302
1331
  pkgDeps,
@@ -1304,6 +1333,7 @@ class ScanInfo {
1304
1333
  devDependencies: npmDevDeps.filter((dep) => !isAkanFrameworkDependency(dep)),
1305
1334
  routes
1306
1335
  };
1336
+ const scanResult = akanConfig2 instanceof AkanAppConfig ? { ...common, akanConfig: akanConfig2 } : { ...common, akanConfig: akanConfig2 };
1307
1337
  return scanResult;
1308
1338
  }
1309
1339
  constructor(scanResult) {
@@ -2656,10 +2686,13 @@ class AppExecutor extends SysExecutor {
2656
2686
  await Promise.all([this.dist.mkdir("private"), this.dist.mkdir("public")]);
2657
2687
  await Promise.all([
2658
2688
  this.cp("private", `${this.dist.cwdPath}/private`, { dereference: true }),
2659
- this.cp("public", `${this.dist.cwdPath}/public`, { dereference: true })
2689
+ ...akanConfig2.web.ssr ? [this.cp("public", `${this.dist.cwdPath}/public`, { dereference: true })] : []
2660
2690
  ]);
2661
- } else
2691
+ } else {
2662
2692
  await this.removeDir(".akan");
2693
+ if (!akanConfig2.web.ssr || !akanConfig2.web.csr)
2694
+ this.logger.warn(`akan.config.ts disables web.${!akanConfig2.web.ssr ? "ssr" : "csr"}; \`akan start\` still serves it, \`akan build\` will not`);
2695
+ }
2663
2696
  if (type === "start")
2664
2697
  process.env.NODE_ENV = "development";
2665
2698
  const devPort = type === "start" ? (await this.getDevPort()).toString() : undefined;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  workflowRunArtifactPath,
4
4
  workflowSyncDir
5
- } from "./index-g44fykfw.js";
5
+ } from "./index-8vv6xtm5.js";
6
6
  import {
7
7
  AppExecutor,
8
8
  LibExecutor,
@@ -11,7 +11,7 @@ import {
11
11
  readDevkitVersion,
12
12
  rootAllowedDirs,
13
13
  rootAllowedFiles
14
- } from "./index-681sx6nt.js";
14
+ } from "./index-w008bx1p.js";
15
15
  import {
16
16
  collectRecipeSources,
17
17
  findInlineRecipeDuplicates,
@@ -1976,6 +1976,7 @@ class SsrBaseArtifactBuilder {
1976
1976
  branches: [...akanConfig.branches],
1977
1977
  i18n: akanConfig.i18n,
1978
1978
  imageConfig: akanConfig.images,
1979
+ web: akanConfig.web,
1979
1980
  deepLinkAssociations: Object.values(akanConfig.mobile.targets).filter((target) => (target.deepLinks?.domains?.length ?? 0) > 0).map((target) => ({
1980
1981
  targetName: target.name,
1981
1982
  appId: target.appId,
package/index.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getTargetCommandNames,
5
5
  getTargetMetas,
6
6
  runCommands
7
- } from "./index-ckpwq052.js";
8
- import"./index-681sx6nt.js";
7
+ } from "./index-1f34snpd.js";
8
+ import"./index-w008bx1p.js";
9
9
  import"./index-f39512t6.js";
10
10
  import"./index-mxvakhsm.js";
11
11
  import"./index-1577bej2.js";
@@ -19,22 +19,22 @@ import path from "path";
19
19
 
20
20
  // pkgs/@akanjs/cli/commandModules.ts
21
21
  var commandModules = {
22
- workspace: async () => (await import("./workspace.command-ma3g994j.js")).WorkspaceCommand,
23
- agent: async () => (await import("./agent.command-tsx1nsdj.js")).AgentCommand,
24
- application: async () => (await import("./application.command-n8ex8g9h.js")).ApplicationCommand,
25
- library: async () => (await import("./library.command-p3jgf5h2.js")).LibraryCommand,
26
- localRegistry: async () => (await import("./localRegistry.command-bms0qn6t.js")).LocalRegistryCommand,
27
- package: async () => (await import("./package.command-fbpa6r4w.js")).PackageCommand,
28
- module: async () => (await import("./module.command-hb3xm07r.js")).ModuleCommand,
29
- page: async () => (await import("./page.command-92vrmw96.js")).PageCommand,
30
- context: async () => (await import("./context.command-s7a41qjs.js")).ContextCommand,
31
- cloud: async () => (await import("./cloud.command-f0rhw014.js")).CloudCommand,
32
- guideline: async () => (await import("./guideline.command-qrw84ttb.js")).GuidelineCommand,
33
- scalar: async () => (await import("./scalar.command-zcsjgvax.js")).ScalarCommand,
34
- primitive: async () => (await import("./primitive.command-k6b9jfxr.js")).PrimitiveCommand,
35
- quality: async () => (await import("./quality.command-89vwmjvf.js")).QualityCommand,
36
- repair: async () => (await import("./repair.command-nh9jn8rh.js")).RepairCommand,
37
- workflow: async () => (await import("./workflow.command-jj0cphfm.js")).WorkflowCommand
22
+ workspace: async () => (await import("./workspace.command-q17atzha.js")).WorkspaceCommand,
23
+ agent: async () => (await import("./agent.command-7vr15vkn.js")).AgentCommand,
24
+ application: async () => (await import("./application.command-nrq6qvkh.js")).ApplicationCommand,
25
+ library: async () => (await import("./library.command-afjd6ex4.js")).LibraryCommand,
26
+ localRegistry: async () => (await import("./localRegistry.command-6zadvx6z.js")).LocalRegistryCommand,
27
+ package: async () => (await import("./package.command-g4s1y1wn.js")).PackageCommand,
28
+ module: async () => (await import("./module.command-rh01pbz3.js")).ModuleCommand,
29
+ page: async () => (await import("./page.command-9bw6sz1r.js")).PageCommand,
30
+ context: async () => (await import("./context.command-xbsgta4f.js")).ContextCommand,
31
+ cloud: async () => (await import("./cloud.command-crwf7emx.js")).CloudCommand,
32
+ guideline: async () => (await import("./guideline.command-mm19n009.js")).GuidelineCommand,
33
+ scalar: async () => (await import("./scalar.command-t0akqh1r.js")).ScalarCommand,
34
+ primitive: async () => (await import("./primitive.command-pg1j3gm3.js")).PrimitiveCommand,
35
+ quality: async () => (await import("./quality.command-rt1z7je9.js")).QualityCommand,
36
+ repair: async () => (await import("./repair.command-pg54yhgc.js")).RepairCommand,
37
+ workflow: async () => (await import("./workflow.command-se886yew.js")).WorkflowCommand
38
38
  };
39
39
  var commandModuleIds = Object.keys(commandModules);
40
40
 
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-f0t3wjyr.js";
4
+ } from "./index-k8k45qfk.js";
5
5
  import {
6
6
  Lib,
7
7
  Workspace,
8
8
  command
9
- } from "./index-ckpwq052.js";
10
- import"./index-681sx6nt.js";
9
+ } from "./index-1f34snpd.js";
10
+ import"./index-w008bx1p.js";
11
11
  import"./index-f39512t6.js";
12
12
  import"./index-mxvakhsm.js";
13
13
  import"./index-1577bej2.js";
@@ -2,27 +2,27 @@
2
2
  import {
3
3
  CloudRunner,
4
4
  getNpmRegistryUrl
5
- } from "./index-8md8zszv.js";
5
+ } from "./index-cnyeq88g.js";
6
6
  import {
7
7
  PackageScript
8
- } from "./index-x1dbhd80.js";
8
+ } from "./index-6s8snbb8.js";
9
9
  import"./index-sh01r3pm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-r8z20vnj.js";
13
- import"./index-f0t3wjyr.js";
12
+ } from "./index-a6k0b1b5.js";
13
+ import"./index-k8k45qfk.js";
14
14
  import"./index-76rn3g2c.js";
15
15
  import {
16
16
  Workspace,
17
17
  command,
18
18
  runner,
19
19
  script
20
- } from "./index-ckpwq052.js";
20
+ } from "./index-1f34snpd.js";
21
21
  import"./index-fgc8r6dj.js";
22
22
  import"./index-5vy2jzar.js";
23
23
  import {
24
24
  PkgExecutor
25
- } from "./index-681sx6nt.js";
25
+ } from "./index-w008bx1p.js";
26
26
  import"./index-f39512t6.js";
27
27
  import"./index-mxvakhsm.js";
28
28
  import"./index-1577bej2.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-tn46rr6w.js";
4
+ } from "./index-d5ef8n21.js";
5
5
  import"./index-ss469dec.js";
6
- import"./index-kkya2ped.js";
6
+ import"./index-7kxz2z5t.js";
7
7
  import"./index-sh01r3pm.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-g44fykfw.js";
10
+ } from "./index-8vv6xtm5.js";
11
11
  import"./index-j37qq1f2.js";
12
12
  import {
13
13
  Module,
14
14
  Sys,
15
15
  command
16
- } from "./index-ckpwq052.js";
17
- import"./index-681sx6nt.js";
16
+ } from "./index-1f34snpd.js";
17
+ import"./index-w008bx1p.js";
18
18
  import"./index-f39512t6.js";
19
19
  import"./index-mxvakhsm.js";
20
20
  import"./index-1577bej2.js";
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  PackageScript
4
- } from "./index-x1dbhd80.js";
4
+ } from "./index-6s8snbb8.js";
5
5
  import {
6
6
  Pkg,
7
7
  Workspace,
8
8
  command
9
- } from "./index-ckpwq052.js";
10
- import"./index-681sx6nt.js";
9
+ } from "./index-1f34snpd.js";
10
+ import"./index-w008bx1p.js";
11
11
  import"./index-f39512t6.js";
12
12
  import"./index-mxvakhsm.js";
13
13
  import"./index-1577bej2.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.0.0-alpha.64",
3
+ "version": "3.0.0-alpha.66",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/openai": "^1.4.6",
35
35
  "@tailwindcss/node": "^4.3.0",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "3.0.0-alpha.64",
37
+ "akanjs": "3.0.0-alpha.66",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "dayjs": "^1.11.20",
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  PageScript
4
- } from "./index-kkya2ped.js";
4
+ } from "./index-7kxz2z5t.js";
5
5
  import {
6
6
  App,
7
7
  Module,
8
8
  command
9
- } from "./index-ckpwq052.js";
10
- import"./index-681sx6nt.js";
9
+ } from "./index-1f34snpd.js";
10
+ import"./index-w008bx1p.js";
11
11
  import"./index-f39512t6.js";
12
12
  import"./index-mxvakhsm.js";
13
13
  import"./index-1577bej2.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  PrimitiveScript
4
- } from "./index-cc1mgv1f.js";
5
- import"./index-tn46rr6w.js";
4
+ } from "./index-9ppq2sx0.js";
5
+ import"./index-d5ef8n21.js";
6
6
  import"./index-ss469dec.js";
7
- import"./index-kkya2ped.js";
7
+ import"./index-7kxz2z5t.js";
8
8
  import"./index-sh01r3pm.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-g44fykfw.js";
11
+ } from "./index-8vv6xtm5.js";
12
12
  import"./index-j37qq1f2.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-ckpwq052.js";
17
- import"./index-681sx6nt.js";
16
+ } from "./index-1f34snpd.js";
17
+ import"./index-w008bx1p.js";
18
18
  import"./index-f39512t6.js";
19
19
  import"./index-mxvakhsm.js";
20
20
  import"./index-1577bej2.js";
@@ -7,12 +7,12 @@ import {
7
7
  command,
8
8
  runner,
9
9
  script
10
- } from "./index-ckpwq052.js";
10
+ } from "./index-1f34snpd.js";
11
11
  import {
12
12
  isAllowedLibFacetRootFile,
13
13
  rootAllowedDirs,
14
14
  rootAllowedFiles
15
- } from "./index-681sx6nt.js";
15
+ } from "./index-w008bx1p.js";
16
16
  import"./index-f39512t6.js";
17
17
  import"./index-mxvakhsm.js";
18
18
  import"./index-1577bej2.js";
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-ryns915y.js";
5
- import"./index-wc19q8mb.js";
6
- import"./index-g44fykfw.js";
4
+ } from "./index-hpbf1b1e.js";
5
+ import"./index-xda7qe2j.js";
6
+ import"./index-8vv6xtm5.js";
7
7
  import {
8
8
  Workspace,
9
9
  command,
10
10
  script
11
- } from "./index-ckpwq052.js";
12
- import"./index-681sx6nt.js";
11
+ } from "./index-1f34snpd.js";
12
+ import"./index-w008bx1p.js";
13
13
  import"./index-f39512t6.js";
14
14
  import"./index-mxvakhsm.js";
15
15
  import"./index-xys926f2.js";
@@ -1,18 +1,18 @@
1
1
  // @bun
2
2
  import {
3
3
  ScalarScript
4
- } from "./index-4mtyaqj2.js";
4
+ } from "./index-639mgtfm.js";
5
5
  import"./index-ss469dec.js";
6
6
  import"./index-sh01r3pm.js";
7
7
  import {
8
8
  renderPrimitiveReport
9
- } from "./index-g44fykfw.js";
9
+ } from "./index-8vv6xtm5.js";
10
10
  import"./index-j37qq1f2.js";
11
11
  import {
12
12
  Sys,
13
13
  command
14
- } from "./index-ckpwq052.js";
15
- import"./index-681sx6nt.js";
14
+ } from "./index-1f34snpd.js";
15
+ import"./index-w008bx1p.js";
16
16
  import"./index-f39512t6.js";
17
17
  import"./index-mxvakhsm.js";
18
18
  import"./index-1577bej2.js";
@@ -5,7 +5,9 @@ interface Dict {
5
5
  }
6
6
  export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
7
7
  return `
8
- import { AkanApp } from "akanjs/server";
8
+ // Not the \`akanjs/server\` barrel: it re-exports AkanServer, whose graph the gateway never runs. Through the
9
+ // barrel this process evaluates 35MB of SSR renderer and DB driver to spawn children and relay bytes.
10
+ import { AkanApp } from "akanjs/server/akanApp";
9
11
 
10
12
  const run = async () => {
11
13
  await new AkanApp().start();