@akanjs/cli 3.0.0-alpha.10 → 3.0.0-alpha.12

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 (49) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-f0gqkfgz.js → agent.command-a3n15c6t.js} +5 -5
  3. package/{application.command-x903m2qq.js → application.command-rp3y4ejb.js} +4 -4
  4. package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-73kbbb7e.js} +1 -1
  5. package/buildBatch.proc.js +2 -2
  6. package/{capacitorApp-9xswcgx7.js → capacitorApp-mr81qdxq.js} +2 -2
  7. package/{cloud.command-zs6kyf83.js → cloud.command-7mcmm52j.js} +7 -7
  8. package/{context.command-fmepgjzg.js → context.command-ysxawe7h.js} +12 -12
  9. package/{guideline.command-n6sw0a0c.js → guideline.command-yqf9a372.js} +2 -2
  10. package/guidelines/conventions/conventions.instruction.md +158 -1
  11. package/guidelines/cssRule/cssRule.instruction.md +7 -0
  12. package/guidelines/framework/framework.instruction.md +1 -0
  13. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +3 -1
  14. package/incrementalBuilder.proc.js +1 -1
  15. package/{index-5sn5w2mt.js → index-3789fdpg.js} +10 -10
  16. package/{index-y4vkyhvv.js → index-4mgkgba3.js} +2 -2
  17. package/{index-62955kn5.js → index-5yjc80ha.js} +5 -5
  18. package/{index-xmmzf150.js → index-65aeh789.js} +1 -1
  19. package/{index-d43t8af2.js → index-8pd02prk.js} +2 -2
  20. package/{index-779ske1y.js → index-9va8zayb.js} +1 -1
  21. package/{index-qzdjd4ct.js → index-cv9cxs5k.js} +3 -3
  22. package/{index-774gcx29.js → index-e4b2ae6b.js} +2 -2
  23. package/{index-kdh76j26.js → index-etwh7sd3.js} +1 -1
  24. package/{index-gcv8ncfh.js → index-h5whaj26.js} +2 -2
  25. package/{index-82jrh4hj.js → index-k8gpsrm1.js} +5 -5
  26. package/{index-rxkpk7n4.js → index-kcsa1zff.js} +1 -1
  27. package/{index-3vta1tqa.js → index-m90fn8xe.js} +4 -4
  28. package/{index-jhpa13zj.js → index-mewacxye.js} +4 -4
  29. package/{index-4m0bphac.js → index-rdv33eye.js} +8 -10
  30. package/{index-qb61h0k7.js → index-wzdeact3.js} +72 -8
  31. package/{index-jf2ya7r2.js → index-yzmqvg23.js} +3 -3
  32. package/{index-z8ptfkzv.js → index-yzsxc30b.js} +15 -12
  33. package/{index-eyyf2149.js → index-z1s5f4e0.js} +3 -3
  34. package/index.js +18 -18
  35. package/{library.command-cv9gdbmg.js → library.command-x6t29a30.js} +3 -3
  36. package/{localRegistry.command-d8fg36zc.js → localRegistry.command-f75tqg9w.js} +6 -6
  37. package/{module.command-qyr1s9cn.js → module.command-8w8ys5t3.js} +5 -5
  38. package/{package.command-wsjx0k47.js → package.command-zgy7f3fz.js} +3 -3
  39. package/package.json +2 -2
  40. package/{page.command-rdzg65rm.js → page.command-yjmnkyk2.js} +3 -3
  41. package/{primitive.command-89g38b53.js → primitive.command-gfqaagsg.js} +6 -6
  42. package/{quality.command-0cs2z92d.js → quality.command-ec8r1dn3.js} +361 -90
  43. package/{repair.command-6fphxfwj.js → repair.command-p9ey6mkm.js} +5 -5
  44. package/{scalar.command-xfer69s6.js → scalar.command-9dhmqhtm.js} +4 -4
  45. package/templates/appSample/srvkit/AuthGuard.ts +9 -5
  46. package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
  47. package/templates/workspaceRoot/biome.json.template +1 -0
  48. package/{workflow.command-2ygfqt4f.js → workflow.command-ycwc6zr6.js} +9 -9
  49. package/{workspace.command-vbgpjkf9.js → workspace.command-x49ekpkt.js} +50 -33
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-4m0bphac.js";
4
+ } from "./index-rdv33eye.js";
5
5
  import {
6
6
  PackageScript
7
- } from "./index-gcv8ncfh.js";
7
+ } from "./index-h5whaj26.js";
8
8
  import {
9
9
  AiSession,
10
10
  CloudApi,
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-0cj2zxbm.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-62955kn5.js";
15
+ } from "./index-5yjc80ha.js";
16
16
  import {
17
17
  script
18
- } from "./index-kdh76j26.js";
18
+ } from "./index-etwh7sd3.js";
19
19
  import {
20
20
  PkgExecutor
21
- } from "./index-z8ptfkzv.js";
21
+ } from "./index-yzsxc30b.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-z8ptfkzv.js";
5
+ } from "./index-yzsxc30b.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-jhpa13zj.js";
4
+ } from "./index-mewacxye.js";
5
5
  import {
6
6
  addFieldUiPolicyForType,
7
7
  coerceFieldDefault,
@@ -34,15 +34,15 @@ import {
34
34
  sourceFile,
35
35
  validationCommandsForTarget,
36
36
  viaBuilderParameterName
37
- } from "./index-rxkpk7n4.js";
37
+ } from "./index-kcsa1zff.js";
38
38
  import {
39
39
  script
40
- } from "./index-kdh76j26.js";
40
+ } from "./index-etwh7sd3.js";
41
41
  import {
42
42
  AppExecutor,
43
43
  LibExecutor,
44
44
  ModuleExecutor
45
- } from "./index-z8ptfkzv.js";
45
+ } from "./index-yzsxc30b.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
48
48
  import { capitalize } from "akanjs/common";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ss469dec.js";
5
5
  import {
6
6
  PageScript
7
- } from "./index-xmmzf150.js";
7
+ } from "./index-65aeh789.js";
8
8
  import {
9
9
  AiSession
10
10
  } from "./index-0cj2zxbm.js";
@@ -15,17 +15,17 @@ import {
15
15
  generatedFilesForSync,
16
16
  moduleSourcePaths,
17
17
  sourceFile
18
- } from "./index-rxkpk7n4.js";
18
+ } from "./index-kcsa1zff.js";
19
19
  import {
20
20
  Prompter
21
21
  } from "./index-j37qq1f2.js";
22
22
  import {
23
23
  runner,
24
24
  script
25
- } from "./index-kdh76j26.js";
25
+ } from "./index-etwh7sd3.js";
26
26
  import {
27
27
  ModuleExecutor
28
- } from "./index-z8ptfkzv.js";
28
+ } from "./index-yzsxc30b.js";
29
29
  import {
30
30
  FileSys
31
31
  } from "./index-67546d0j.js";
@@ -7,21 +7,14 @@ import {
7
7
  } from "./index-0cj2zxbm.js";
8
8
  import {
9
9
  openBrowser
10
- } from "./index-62955kn5.js";
10
+ } from "./index-5yjc80ha.js";
11
11
  import {
12
12
  runner
13
- } from "./index-kdh76j26.js";
13
+ } from "./index-etwh7sd3.js";
14
14
  import {
15
15
  AppExecutor,
16
16
  WorkspaceExecutor
17
- } from "./index-z8ptfkzv.js";
18
-
19
- // pkgs/@akanjs/cli/cloud/cloud.runner.ts
20
- import path from "path";
21
- import { confirm, input, select } from "@inquirer/prompts";
22
- import { Logger, sleep } from "akanjs/common";
23
- import chalk from "chalk";
24
- import * as QRcode from "qrcode";
17
+ } from "./index-yzsxc30b.js";
25
18
 
26
19
  // pkgs/@akanjs/cli/npmRegistry.ts
27
20
  var defaultNpmRegistry = "https://registry.npmjs.org";
@@ -40,6 +33,11 @@ async function getLatestPackageVersion(packageName, tag = "latest", registryUrl)
40
33
  }
41
34
 
42
35
  // pkgs/@akanjs/cli/cloud/cloud.runner.ts
36
+ import path from "path";
37
+ import { confirm, input, select } from "@inquirer/prompts";
38
+ import { Logger, sleep } from "akanjs/common";
39
+ import chalk from "chalk";
40
+ import * as QRcode from "qrcode";
43
41
  var addRemoteEnvServerValue = "__addRemoteEnvServer";
44
42
  var removeRemoteEnvServerValue = "__removeRemoteEnvServer";
45
43
 
@@ -973,8 +973,12 @@ class CssImportResolver {
973
973
  const pkg = await Bun.file(pkgPath).json();
974
974
  const subpath = id === pkgName ? "." : `.${id.slice(pkgName.length)}`;
975
975
  const exportValue = pkg.exports?.[subpath];
976
- const styleEntry = (typeof exportValue === "string" ? exportValue : exportValue?.style || exportValue?.import || exportValue?.default) || pkg.exports?.["."]?.style || pkg.style || "index.css";
977
- return await this.#firstExisting(path7.resolve(pkgDir, styleEntry));
976
+ const exportedEntry = typeof exportValue === "string" ? exportValue : exportValue?.style || exportValue?.import || exportValue?.default;
977
+ if (exportedEntry)
978
+ return await this.#firstExisting(path7.resolve(pkgDir, exportedEntry));
979
+ if (subpath !== ".")
980
+ return await this.#firstExisting(path7.resolve(pkgDir, subpath));
981
+ return await this.#firstExisting(path7.resolve(pkgDir, pkg.exports?.["."]?.style || pkg.style || "index.css"));
978
982
  } catch {
979
983
  return null;
980
984
  }
@@ -1031,6 +1035,8 @@ class CssCompiler {
1031
1035
  #fileExistsCache = new Map;
1032
1036
  #resolvedFileCache = new Map;
1033
1037
  #resolvedSpecifierCache = new Map;
1038
+ #discoveredCssPaths = new Set;
1039
+ #importedStylesheets = new Map;
1034
1040
  #fileExists(absPath) {
1035
1041
  let cached = this.#fileExistsCache.get(absPath);
1036
1042
  if (!cached) {
@@ -1064,13 +1070,16 @@ class CssCompiler {
1064
1070
  async getCss({ refresh } = {}) {
1065
1071
  if (this.#cssText !== null && !refresh)
1066
1072
  return this.#cssText;
1073
+ this.#discoveredCssPaths.clear();
1067
1074
  const { cssPaths, sourcePaths } = await this.discoverCssAndSources({ refresh });
1068
1075
  this.#cssText = await this.compileCss(cssPaths, sourcePaths);
1076
+ await this.#warnUnreachableStylesheets();
1069
1077
  return this.#cssText;
1070
1078
  }
1071
1079
  async getCssByBasePath({ refresh } = {}) {
1072
1080
  if (this.#cssTextByBasePath !== null && !refresh)
1073
1081
  return this.#cssTextByBasePath;
1082
+ this.#discoveredCssPaths.clear();
1074
1083
  const akanConfig = await this.#app.getConfig({ refresh });
1075
1084
  const pageKeys = await this.#app.getPageKeys({ refresh });
1076
1085
  const basePaths = [...akanConfig.basePaths];
@@ -1097,8 +1106,20 @@ class CssCompiler {
1097
1106
  })
1098
1107
  ]);
1099
1108
  this.#cssTextByBasePath = Object.fromEntries(cssEntries);
1109
+ await this.#warnUnreachableStylesheets();
1100
1110
  return this.#cssTextByBasePath;
1101
1111
  }
1112
+ async#warnUnreachableStylesheets() {
1113
+ const pageDir = path8.join(this.#app.cwdPath, "page");
1114
+ const glob = new Bun.Glob("**/*.css");
1115
+ for await (const cssPath of glob.scan({ cwd: pageDir, absolute: true })) {
1116
+ if (cssPath.includes(`${path8.sep}(libs)${path8.sep}`))
1117
+ continue;
1118
+ if (this.#discoveredCssPaths.has(cssPath))
1119
+ continue;
1120
+ this.#logger.warn(`css ${path8.relative(this.#app.cwdPath, cssPath)} is imported by no route and never compiled`);
1121
+ }
1122
+ }
1102
1123
  async discoverCss({ refresh } = {}) {
1103
1124
  const { cssPaths } = await this.discoverCssAndSources({ refresh });
1104
1125
  return cssPaths;
@@ -1158,16 +1179,38 @@ class CssCompiler {
1158
1179
  queue.push(resolved);
1159
1180
  }
1160
1181
  }
1161
- return { cssPaths: [...cssFiles], sourcePaths: [...sourceFiles] };
1182
+ const tokenPaths = await this.#libTokenStylesheets(sourceFiles);
1183
+ const cssPaths = [...new Set([...tokenPaths, ...cssFiles])];
1184
+ for (const cssPath of cssPaths)
1185
+ this.#discoveredCssPaths.add(cssPath);
1186
+ return { cssPaths, sourcePaths: [...sourceFiles] };
1187
+ }
1188
+ async#libTokenStylesheets(sourceFiles) {
1189
+ const libsRoot = path8.join(this.#app.workspace.workspaceRoot, "libs");
1190
+ const libNames = new Set;
1191
+ for (const filePath of sourceFiles) {
1192
+ const relPath = path8.relative(libsRoot, filePath);
1193
+ if (relPath.startsWith("..") || path8.isAbsolute(relPath))
1194
+ continue;
1195
+ const [libName] = relPath.split(path8.sep);
1196
+ if (libName)
1197
+ libNames.add(libName);
1198
+ }
1199
+ const tokenPaths = await Promise.all([...libNames].sort().map(async (libName) => {
1200
+ const tokensPath = path8.join(libsRoot, libName, "ui/tokens.css");
1201
+ return await this.#fileExists(tokensPath) ? tokensPath : null;
1202
+ }));
1203
+ return tokenPaths.filter((tokensPath) => !!tokensPath);
1162
1204
  }
1163
1205
  async compileCss(cssPaths, sourcePaths) {
1164
1206
  if (cssPaths.length === 0)
1165
1207
  return "";
1208
+ this.#importedStylesheets.clear();
1166
1209
  const compileStarted = Date.now();
1167
1210
  const compilers = await Promise.all(cssPaths.map(async (cssPath) => {
1168
- const css = await Bun.file(cssPath).text();
1211
+ const css2 = await Bun.file(cssPath).text();
1169
1212
  const base = path8.dirname(cssPath);
1170
- const compiler = await compile(css, {
1213
+ const compiler = await compile(css2, {
1171
1214
  base,
1172
1215
  loadStylesheet: (id, fromBase) => this.#loadStylesheet(id, fromBase),
1173
1216
  loadModule: (id, fromBase) => this.#loadModule(id, fromBase)
@@ -1191,17 +1234,34 @@ class CssCompiler {
1191
1234
  parts.push(entry.compiler.build(candidates));
1192
1235
  }
1193
1236
  this.#logger.verbose(`css compiled paths=${cssPaths.length} candidates=${candidates.length} in ${Date.now() - compileStarted}ms`);
1194
- return parts.join(`
1237
+ const css = parts.join(`
1195
1238
  `);
1239
+ this.#warnDroppedImports(css);
1240
+ return css;
1241
+ }
1242
+ #warnDroppedImports(css) {
1243
+ for (const [cssPath, content] of this.#importedStylesheets) {
1244
+ const names = declaredCustomProperties(content);
1245
+ if (names.length === 0 || names.some((name) => css.includes(`${name}:`)))
1246
+ continue;
1247
+ this.#logger.warn(`css @import ${cssPath} was loaded but none of its ${names.length} declaration(s) reached the compiled CSS`);
1248
+ }
1196
1249
  }
1197
1250
  async#loadStylesheet(id, fromBase) {
1198
1251
  const p = await this.#resolveCssImport(id, fromBase);
1252
+ this.#discoveredCssPaths.add(p);
1199
1253
  const content = await Bun.file(p).text();
1254
+ this.#importedStylesheets.set(p, content);
1255
+ this.#logger.verbose(`css import "${id}" from ${fromBase} -> ${p} (${content.length} bytes)`);
1200
1256
  return { path: p, base: path8.dirname(p), content };
1201
1257
  }
1202
1258
  async#resolveCssImport(id, fromBase) {
1203
- if (id.startsWith(".") || id.startsWith("/"))
1204
- return path8.resolve(fromBase, id);
1259
+ if (id.startsWith(".") || id.startsWith("/")) {
1260
+ const filePath = path8.resolve(fromBase, id);
1261
+ if (await this.#fileExists(filePath))
1262
+ return filePath;
1263
+ throw new Error(`[css] failed to resolve stylesheet import "${id}" from ${fromBase} (no file at ${filePath})`);
1264
+ }
1205
1265
  const resolver = await this.#getCssImportResolver();
1206
1266
  const resolved = await resolver.resolve(id, fromBase);
1207
1267
  if (resolved)
@@ -1286,6 +1346,10 @@ function isSourceFile(filePath) {
1286
1346
  function isIgnoredNodeModuleSource(filePath) {
1287
1347
  return NODE_MODULES_RE.test(filePath) && !AKANJS_NODE_MODULE_RE.test(filePath);
1288
1348
  }
1349
+ function declaredCustomProperties(css) {
1350
+ const withoutThemeBlocks = css.replace(/@theme[^{]*\{[^}]*\}/g, "");
1351
+ return [...new Set([...withoutThemeBlocks.matchAll(/(?:^|[\s;{])(--[\w-]+)\s*:/g)].map(([, name]) => name))].filter((name) => !!name);
1352
+ }
1289
1353
  function getPageKeyBasePath(pageKey, basePaths) {
1290
1354
  const normalized = pageKey.split(path8.sep).join("/").replace(/^\.\//, "");
1291
1355
  const segments = normalized.split("/");
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-774gcx29.js";
4
+ } from "./index-e4b2ae6b.js";
5
5
  import {
6
6
  createRepairReport,
7
7
  generatedFilePathsForTarget,
8
8
  renderRepairReport,
9
9
  writeGeneratedSyncState,
10
10
  writeWorkflowRunArtifact
11
- } from "./index-rxkpk7n4.js";
11
+ } from "./index-kcsa1zff.js";
12
12
  import {
13
13
  runner
14
- } from "./index-kdh76j26.js";
14
+ } from "./index-etwh7sd3.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
@@ -650,18 +650,28 @@ import { spawn } from "child_process";
650
650
  import { existsSync, readFileSync } from "fs";
651
651
  import path2 from "path";
652
652
  import chalk from "chalk";
653
+ var BIOME_CONFIG_FILES = ["biome.json", "biome.jsonc"];
653
654
 
654
655
  class Linter {
655
656
  lintRoot;
657
+ configPath;
656
658
  #biomeBin;
657
659
  constructor(cwdPath) {
658
660
  this.lintRoot = this.#findBiomeRootPath(cwdPath);
661
+ this.configPath = Linter.#configPathIn(this.lintRoot) ?? path2.join(this.lintRoot, "biome.json");
659
662
  const localBiomeBin = path2.join(this.lintRoot, "node_modules/.bin/biome");
660
663
  this.#biomeBin = existsSync(localBiomeBin) ? localBiomeBin : "biome";
661
664
  }
665
+ static #configPathIn(dir) {
666
+ for (const fileName of BIOME_CONFIG_FILES) {
667
+ const configPath = path2.join(dir, fileName);
668
+ if (existsSync(configPath))
669
+ return configPath;
670
+ }
671
+ return null;
672
+ }
662
673
  #findBiomeRootPath(dir) {
663
- const configPath = path2.join(dir, "biome.json");
664
- if (existsSync(configPath))
674
+ if (Linter.#configPathIn(dir))
665
675
  return dir;
666
676
  const parentDir = path2.dirname(dir);
667
677
  if (parentDir === dir)
@@ -772,7 +782,7 @@ class Linter {
772
782
  "--max-diagnostics=none",
773
783
  "--no-errors-on-unmatched",
774
784
  "--config-path",
775
- path2.join(this.lintRoot, "biome.json"),
785
+ this.configPath,
776
786
  this.#toBiomePath(filePath)
777
787
  ]);
778
788
  const report = this.#parseBiomeReport(stdout || stderr);
@@ -893,14 +903,7 @@ ${errorText}, ${warningText} found`];
893
903
  if (!dryRun)
894
904
  return await this.#checkFile(resolvedFilePath, { write: true });
895
905
  const source = readFileSync(resolvedFilePath, "utf8");
896
- const { stdout } = await this.#runBiome([
897
- "check",
898
- "--write",
899
- "--config-path",
900
- path2.join(this.lintRoot, "biome.json"),
901
- "--stdin-file-path",
902
- this.#toBiomePath(resolvedFilePath)
903
- ], source);
906
+ const { stdout } = await this.#runBiome(["check", "--write", "--config-path", this.configPath, "--stdin-file-path", this.#toBiomePath(resolvedFilePath)], source);
904
907
  const lintResult = await this.lintFile(resolvedFilePath);
905
908
  return { ...lintResult, fixed: stdout !== source, output: stdout };
906
909
  }
@@ -908,7 +911,7 @@ ${errorText}, ${warningText} found`];
908
911
  const resolvedFilePath = this.#resolveFilePath(filePath);
909
912
  if (!existsSync(resolvedFilePath))
910
913
  throw new Error(`File not found: ${filePath}`);
911
- return JSON.parse(readFileSync(path2.join(this.lintRoot, "biome.json"), "utf8"));
914
+ return JSON.parse(readFileSync(this.configPath, "utf8"));
912
915
  }
913
916
  async getProblematicRules(filePath) {
914
917
  const { results } = await this.lintFile(filePath);
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-774gcx29.js";
4
+ } from "./index-e4b2ae6b.js";
5
5
  import {
6
6
  Prompter
7
7
  } from "./index-j37qq1f2.js";
8
8
  import {
9
9
  runner,
10
10
  script
11
- } from "./index-kdh76j26.js";
11
+ } from "./index-etwh7sd3.js";
12
12
  import {
13
13
  AGENT_BLOCK_END,
14
14
  AGENT_BLOCK_START,
@@ -18,7 +18,7 @@ import {
18
18
  renderRecipeEntries,
19
19
  stampBlockVersion,
20
20
  upsertAgentBlock
21
- } from "./index-z8ptfkzv.js";
21
+ } from "./index-yzsxc30b.js";
22
22
  import {
23
23
  collectRecipeSources,
24
24
  scanRecipes
package/index.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getTargetCommandNames,
5
5
  getTargetMetas,
6
6
  runCommands
7
- } from "./index-kdh76j26.js";
8
- import"./index-z8ptfkzv.js";
7
+ } from "./index-etwh7sd3.js";
8
+ import"./index-yzsxc30b.js";
9
9
  import"./index-mxvakhsm.js";
10
10
  import"./index-1577bej2.js";
11
11
  import"./index-67546d0j.js";
@@ -18,22 +18,22 @@ import path from "path";
18
18
 
19
19
  // pkgs/@akanjs/cli/commandModules.ts
20
20
  var commandModules = {
21
- workspace: async () => (await import("./workspace.command-vbgpjkf9.js")).WorkspaceCommand,
22
- agent: async () => (await import("./agent.command-f0gqkfgz.js")).AgentCommand,
23
- application: async () => (await import("./application.command-x903m2qq.js")).ApplicationCommand,
24
- library: async () => (await import("./library.command-cv9gdbmg.js")).LibraryCommand,
25
- localRegistry: async () => (await import("./localRegistry.command-d8fg36zc.js")).LocalRegistryCommand,
26
- package: async () => (await import("./package.command-wsjx0k47.js")).PackageCommand,
27
- module: async () => (await import("./module.command-qyr1s9cn.js")).ModuleCommand,
28
- page: async () => (await import("./page.command-rdzg65rm.js")).PageCommand,
29
- context: async () => (await import("./context.command-fmepgjzg.js")).ContextCommand,
30
- cloud: async () => (await import("./cloud.command-zs6kyf83.js")).CloudCommand,
31
- guideline: async () => (await import("./guideline.command-n6sw0a0c.js")).GuidelineCommand,
32
- scalar: async () => (await import("./scalar.command-xfer69s6.js")).ScalarCommand,
33
- primitive: async () => (await import("./primitive.command-89g38b53.js")).PrimitiveCommand,
34
- quality: async () => (await import("./quality.command-0cs2z92d.js")).QualityCommand,
35
- repair: async () => (await import("./repair.command-6fphxfwj.js")).RepairCommand,
36
- workflow: async () => (await import("./workflow.command-2ygfqt4f.js")).WorkflowCommand
21
+ workspace: async () => (await import("./workspace.command-x49ekpkt.js")).WorkspaceCommand,
22
+ agent: async () => (await import("./agent.command-a3n15c6t.js")).AgentCommand,
23
+ application: async () => (await import("./application.command-rp3y4ejb.js")).ApplicationCommand,
24
+ library: async () => (await import("./library.command-x6t29a30.js")).LibraryCommand,
25
+ localRegistry: async () => (await import("./localRegistry.command-f75tqg9w.js")).LocalRegistryCommand,
26
+ package: async () => (await import("./package.command-zgy7f3fz.js")).PackageCommand,
27
+ module: async () => (await import("./module.command-8w8ys5t3.js")).ModuleCommand,
28
+ page: async () => (await import("./page.command-yjmnkyk2.js")).PageCommand,
29
+ context: async () => (await import("./context.command-ysxawe7h.js")).ContextCommand,
30
+ cloud: async () => (await import("./cloud.command-7mcmm52j.js")).CloudCommand,
31
+ guideline: async () => (await import("./guideline.command-yqf9a372.js")).GuidelineCommand,
32
+ scalar: async () => (await import("./scalar.command-9dhmqhtm.js")).ScalarCommand,
33
+ primitive: async () => (await import("./primitive.command-gfqaagsg.js")).PrimitiveCommand,
34
+ quality: async () => (await import("./quality.command-ec8r1dn3.js")).QualityCommand,
35
+ repair: async () => (await import("./repair.command-p9ey6mkm.js")).RepairCommand,
36
+ workflow: async () => (await import("./workflow.command-ycwc6zr6.js")).WorkflowCommand
37
37
  };
38
38
  var commandModuleIds = Object.keys(commandModules);
39
39
 
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-d43t8af2.js";
4
+ } from "./index-8pd02prk.js";
5
5
  import {
6
6
  Lib,
7
7
  Workspace,
8
8
  command
9
- } from "./index-kdh76j26.js";
10
- import"./index-z8ptfkzv.js";
9
+ } from "./index-etwh7sd3.js";
10
+ import"./index-yzsxc30b.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-67546d0j.js";
@@ -2,27 +2,27 @@
2
2
  import {
3
3
  CloudRunner,
4
4
  getNpmRegistryUrl
5
- } from "./index-4m0bphac.js";
5
+ } from "./index-rdv33eye.js";
6
6
  import {
7
7
  PackageScript
8
- } from "./index-gcv8ncfh.js";
8
+ } from "./index-h5whaj26.js";
9
9
  import"./index-0cj2zxbm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-62955kn5.js";
13
- import"./index-d43t8af2.js";
12
+ } from "./index-5yjc80ha.js";
13
+ import"./index-8pd02prk.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-kdh76j26.js";
20
+ } from "./index-etwh7sd3.js";
21
21
  import"./index-fgc8r6dj.js";
22
22
  import"./index-bjpxzr6s.js";
23
23
  import {
24
24
  PkgExecutor
25
- } from "./index-z8ptfkzv.js";
25
+ } from "./index-yzsxc30b.js";
26
26
  import"./index-mxvakhsm.js";
27
27
  import"./index-1577bej2.js";
28
28
  import"./index-46tjzh6s.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-jhpa13zj.js";
4
+ } from "./index-mewacxye.js";
5
5
  import"./index-ss469dec.js";
6
- import"./index-xmmzf150.js";
6
+ import"./index-65aeh789.js";
7
7
  import"./index-0cj2zxbm.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-rxkpk7n4.js";
10
+ } from "./index-kcsa1zff.js";
11
11
  import"./index-j37qq1f2.js";
12
12
  import {
13
13
  Module,
14
14
  Sys,
15
15
  command
16
- } from "./index-kdh76j26.js";
17
- import"./index-z8ptfkzv.js";
16
+ } from "./index-etwh7sd3.js";
17
+ import"./index-yzsxc30b.js";
18
18
  import"./index-mxvakhsm.js";
19
19
  import"./index-1577bej2.js";
20
20
  import"./index-67546d0j.js";
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  PackageScript
4
- } from "./index-gcv8ncfh.js";
4
+ } from "./index-h5whaj26.js";
5
5
  import {
6
6
  Pkg,
7
7
  Workspace,
8
8
  command
9
- } from "./index-kdh76j26.js";
10
- import"./index-z8ptfkzv.js";
9
+ } from "./index-etwh7sd3.js";
10
+ import"./index-yzsxc30b.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-46tjzh6s.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.0.0-alpha.10",
3
+ "version": "3.0.0-alpha.12",
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.10",
37
+ "akanjs": "3.0.0-alpha.12",
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-xmmzf150.js";
4
+ } from "./index-65aeh789.js";
5
5
  import {
6
6
  App,
7
7
  Module,
8
8
  command
9
- } from "./index-kdh76j26.js";
10
- import"./index-z8ptfkzv.js";
9
+ } from "./index-etwh7sd3.js";
10
+ import"./index-yzsxc30b.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-67546d0j.js";
@@ -1,20 +1,20 @@
1
1
  // @bun
2
2
  import {
3
3
  PrimitiveScript
4
- } from "./index-3vta1tqa.js";
5
- import"./index-jhpa13zj.js";
4
+ } from "./index-m90fn8xe.js";
5
+ import"./index-mewacxye.js";
6
6
  import"./index-ss469dec.js";
7
- import"./index-xmmzf150.js";
7
+ import"./index-65aeh789.js";
8
8
  import"./index-0cj2zxbm.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-rxkpk7n4.js";
11
+ } from "./index-kcsa1zff.js";
12
12
  import"./index-j37qq1f2.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-kdh76j26.js";
17
- import"./index-z8ptfkzv.js";
16
+ } from "./index-etwh7sd3.js";
17
+ import"./index-yzsxc30b.js";
18
18
  import"./index-mxvakhsm.js";
19
19
  import"./index-1577bej2.js";
20
20
  import"./index-67546d0j.js";