@akanjs/cli 3.0.0-alpha.45 → 3.0.0-alpha.47

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 (50) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-e835fjem.js → agent.command-nqs3bw0g.js} +5 -5
  3. package/{application.command-sjtbk6tr.js → application.command-5w691e89.js} +4 -4
  4. package/{applicationBuildRunner-7gnfz7ww.js → applicationBuildRunner-0xjav921.js} +1 -1
  5. package/buildBatch.proc.js +2 -2
  6. package/{capacitorApp-qv7g3dp2.js → capacitorApp-927ahhz2.js} +2 -2
  7. package/{cloud.command-y0e4eyqz.js → cloud.command-dq0mvj11.js} +7 -7
  8. package/{context.command-vn87jb08.js → context.command-6kn3tady.js} +12 -12
  9. package/{guideline.command-s4hn2bsy.js → guideline.command-pjdrndqk.js} +2 -2
  10. package/guidelines/agentRule/agentRule.generate.json +31 -0
  11. package/guidelines/agentRule/agentRule.instruction.md +400 -0
  12. package/guidelines/conventions/conventions.instruction.md +169 -669
  13. package/guidelines/mcpRule/mcpRule.generate.json +25 -0
  14. package/guidelines/mcpRule/mcpRule.instruction.md +164 -0
  15. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +41 -375
  16. package/incrementalBuilder.proc.js +1 -1
  17. package/{index-g9e2fhw2.js → index-24h5bqpj.js} +15 -15
  18. package/{index-t71zvmt9.js → index-2kjyh1jb.js} +3 -3
  19. package/{index-qc0tnhs2.js → index-4z05haak.js} +1 -1
  20. package/{index-tsmjxph2.js → index-5em412h5.js} +1 -1
  21. package/{index-xyrb7pk5.js → index-5fe016p2.js} +3 -3
  22. package/{index-73rnbwgg.js → index-6bs24rb4.js} +2 -2
  23. package/{index-x33gnap3.js → index-7w5vv8jk.js} +2 -2
  24. package/{index-33zce8gt.js → index-7zd96bng.js} +2 -2
  25. package/{index-0h212yqe.js → index-866yqz3y.js} +10 -10
  26. package/{index-n706txcv.js → index-8rr621r2.js} +1 -1
  27. package/{index-8vkkm7v0.js → index-90zyjrby.js} +73 -21
  28. package/{index-9jsnb4vw.js → index-97cw8sg1.js} +4 -4
  29. package/{index-becx1t0k.js → index-awt2gttt.js} +5 -5
  30. package/{index-8d2sv6pw.js → index-hnysajy8.js} +5 -5
  31. package/{index-3dp7x6rc.js → index-k7sm38v6.js} +3 -3
  32. package/{index-hg0qvhmx.js → index-wr999y03.js} +2 -0
  33. package/{index-k6fvbcj1.js → index-xe3ychw5.js} +3 -3
  34. package/{index-mykmf6wd.js → index-xrdrttjb.js} +4 -4
  35. package/{index-mz5jtaq7.js → index-zgkey4d0.js} +1 -1
  36. package/index.js +18 -18
  37. package/{library.command-v5cyaw9t.js → library.command-7h3yezwc.js} +3 -3
  38. package/{localRegistry.command-53t758pt.js → localRegistry.command-mp3yc9gg.js} +6 -6
  39. package/{module.command-pq6w84xg.js → module.command-4g11k3xd.js} +5 -5
  40. package/{package.command-qkcs60ts.js → package.command-z7dd6vy2.js} +3 -3
  41. package/package.json +2 -2
  42. package/{page.command-qj5bfnh9.js → page.command-y996708m.js} +3 -3
  43. package/{primitive.command-bw0nes6x.js → primitive.command-4fcn8k83.js} +6 -6
  44. package/{quality.command-g1s2wt8b.js → quality.command-hx5af2yn.js} +41 -20
  45. package/{repair.command-mzwtejpk.js → repair.command-ysxd8pef.js} +5 -5
  46. package/{scalar.command-rm6k3c65.js → scalar.command-3chgxybs.js} +4 -4
  47. package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +10 -14
  48. package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
  49. package/{workflow.command-g2cgcgxn.js → workflow.command-endxfzv5.js} +9 -9
  50. package/{workspace.command-f7jerqb2.js → workspace.command-zkhcjsj2.js} +18 -18
@@ -9,14 +9,14 @@ import {
9
9
  createPassedPrimitiveReport,
10
10
  generatedFilesForSync,
11
11
  scalarChangedFiles
12
- } from "./index-tsmjxph2.js";
12
+ } from "./index-5em412h5.js";
13
13
  import {
14
14
  Prompter
15
15
  } from "./index-j37qq1f2.js";
16
16
  import {
17
17
  runner,
18
18
  script
19
- } from "./index-n706txcv.js";
19
+ } from "./index-8rr621r2.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/scalar/scalar.prompt.ts
22
22
  import { input } from "@inquirer/prompts";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-n706txcv.js";
5
+ } from "./index-8rr621r2.js";
6
6
  import {
7
7
  PkgExecutor
8
- } from "./index-8vkkm7v0.js";
8
+ } from "./index-90zyjrby.js";
9
9
  import {
10
10
  TypeScriptDependencyScanner
11
11
  } from "./index-46tjzh6s.js";
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-xyrb7pk5.js";
4
+ } from "./index-5fe016p2.js";
5
5
  import {
6
6
  WorkflowRunner
7
- } from "./index-3dp7x6rc.js";
7
+ } from "./index-k7sm38v6.js";
8
8
  import {
9
9
  ScalarScript
10
- } from "./index-x33gnap3.js";
10
+ } from "./index-7w5vv8jk.js";
11
11
  import {
12
12
  PrimitiveScript
13
- } from "./index-9jsnb4vw.js";
13
+ } from "./index-97cw8sg1.js";
14
14
  import {
15
15
  ModuleScript
16
- } from "./index-mykmf6wd.js";
16
+ } from "./index-xrdrttjb.js";
17
17
  import {
18
18
  isPlaceholderAppId
19
- } from "./index-mz5jtaq7.js";
19
+ } from "./index-zgkey4d0.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-g9e2fhw2.js";
30
+ } from "./index-24h5bqpj.js";
31
31
  import {
32
32
  buildAkanModuleContextIndex,
33
33
  createWorkflowBaselineSummary,
34
34
  createWorkflowStepRegistry,
35
35
  jsonText,
36
36
  toolingRolloutGate
37
- } from "./index-tsmjxph2.js";
37
+ } from "./index-5em412h5.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-n706txcv.js";
48
+ } from "./index-8rr621r2.js";
49
49
  import {
50
50
  AppExecutor
51
- } from "./index-8vkkm7v0.js";
51
+ } from "./index-90zyjrby.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/context/context.script.ts
54
54
  import { Logger } from "akanjs/common";
@@ -6,7 +6,7 @@ import {
6
6
  ModuleExecutor,
7
7
  PkgExecutor,
8
8
  WorkspaceExecutor
9
- } from "./index-8vkkm7v0.js";
9
+ } from "./index-90zyjrby.js";
10
10
  import {
11
11
  getDirname
12
12
  } from "./index-1577bej2.js";
@@ -33,6 +33,7 @@ import path5 from "path";
33
33
  import { pathToFileURL } from "url";
34
34
  import {
35
35
  capitalize,
36
+ getPageSourceFileViolation,
36
37
  isRouteSourceFile,
37
38
  Logger,
38
39
  parseRouteModuleKey,
@@ -332,7 +333,7 @@ class AkanAppConfig {
332
333
  subRoutes = new Map;
333
334
  basePaths = new Set;
334
335
  branches = new Set(["debug", "develop", "main"]);
335
- constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = []) {
336
+ constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = [], libExternalLibs = []) {
336
337
  this.app = app;
337
338
  this.rootPackageJson = rootPackageJson;
338
339
  this.libs = libs;
@@ -340,7 +341,7 @@ class AkanAppConfig {
340
341
  this.plugins = plugins;
341
342
  this.#applyRoutes(config?.routes);
342
343
  this.defaultDatabaseMode = config?.defaultDatabaseMode ?? "single";
343
- this.externalLibs = config?.externalLibs ?? [];
344
+ this.externalLibs = [...new Set([...config?.externalLibs ?? [], ...libExternalLibs])];
344
345
  this.barrelImports = [
345
346
  ...DEFAULT_BARREL_IMPORTS,
346
347
  ...WORKSPACE_BARREL_FACETS.map((facet) => `@apps/${app.name}/${facet}`),
@@ -529,7 +530,15 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
529
530
  ]);
530
531
  const resolved = typeof configImp === "function" ? configImp(app) : configImp;
531
532
  const { plugins, ...config } = resolved ?? {};
532
- return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? []);
533
+ const libExternalLibs = await AkanAppConfig.#collectLibExternalLibs(app, libs, bustImportCache);
534
+ return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libExternalLibs);
535
+ }
536
+ static async#collectLibExternalLibs(app, libs, bustImportCache) {
537
+ const libConfigs = await Promise.all(libs.map(async (libName) => LibExecutor.from(app, libName).getConfig({ refresh: bustImportCache }).catch((error) => {
538
+ app.logger.warn(`Skipped libs/${libName}/akan.config.ts externalLibs: ${String(error)}`);
539
+ return null;
540
+ })));
541
+ return libConfigs.flatMap((libConfig) => libConfig?.externalLibs ?? []);
533
542
  }
534
543
  #resolveProductionDependencyVersion(lib) {
535
544
  const rootVersion = this.rootPackageJson.dependencies?.[lib] ?? this.rootPackageJson.devDependencies?.[lib];
@@ -633,8 +642,8 @@ class AkanLibConfig {
633
642
  this.externalLibs = config?.externalLibs ?? [];
634
643
  this.plugins = plugins;
635
644
  }
636
- static async from(lib) {
637
- const [configImp] = await Promise.all([import(`${lib.cwdPath}/akan.config.ts`).then((mod) => mod.default)]);
645
+ static async from(lib, { bustImportCache = false } = {}) {
646
+ const configImp = await AkanAppConfig.importConfigModule(lib.cwdPath, { bustImportCache });
638
647
  const resolved = typeof configImp === "function" ? configImp(lib) : configImp;
639
648
  const { plugins, ...config } = resolved ?? {};
640
649
  return new AkanLibConfig(lib, config, plugins ?? []);
@@ -997,6 +1006,34 @@ var appRootAllowedDirs = new Set([
997
1006
  "ui",
998
1007
  "webkit"
999
1008
  ]);
1009
+ var libRootAllowedFiles = new Set([
1010
+ "AGENTS.md",
1011
+ "CLAUDE.md",
1012
+ "README.md",
1013
+ "akan.config.ts",
1014
+ "akan.lib.json",
1015
+ "client.ts",
1016
+ "index.ts",
1017
+ "package.json",
1018
+ "server.ts",
1019
+ "tsconfig.json",
1020
+ "tsconfig.spec.json",
1021
+ "tsconfig.tsbuildinfo"
1022
+ ]);
1023
+ var libRootAllowedDirs = new Set([
1024
+ "common",
1025
+ "env",
1026
+ "lib",
1027
+ "page",
1028
+ "plugin",
1029
+ "private",
1030
+ "public",
1031
+ "srvkit",
1032
+ "ui",
1033
+ "webkit"
1034
+ ]);
1035
+ var rootAllowedFiles = { app: appRootAllowedFiles, lib: libRootAllowedFiles };
1036
+ var rootAllowedDirs = { app: appRootAllowedDirs, lib: libRootAllowedDirs };
1000
1037
  var libFacetRootAllowedFiles = new Set([
1001
1038
  "cnst.ts",
1002
1039
  "db.ts",
@@ -1008,7 +1045,9 @@ var libFacetRootAllowedFiles = new Set([
1008
1045
  "useClient.ts",
1009
1046
  "useServer.ts"
1010
1047
  ]);
1011
- var isScannedAppRootEntry = (name) => !name.startsWith(".") || appRootAllowedDirs.has(name);
1048
+ var libFacetRootTestPattern = /^[A-Za-z][A-Za-z0-9_-]*\.signal\.(test|spec)\.(ts|tsx)$/;
1049
+ var isAllowedLibFacetRootFile = (filename) => libFacetRootAllowedFiles.has(filename) || libFacetRootTestPattern.test(filename);
1050
+ var isScannedRootEntry = (type, name) => !name.startsWith(".") || rootAllowedDirs[type].has(name);
1012
1051
 
1013
1052
  // pkgs/@akanjs/devkit/scanInfo.ts
1014
1053
  var databaseFileTypes = [
@@ -1037,10 +1076,8 @@ var moduleUiFileTypes = {
1037
1076
  scalar: new Set(["Template", "Unit"])
1038
1077
  };
1039
1078
  var testFilePattern = /\.(test|spec)\.(ts|tsx)$/;
1040
- var rootSignalTestFilePattern = /^[A-Za-z][A-Za-z0-9_-]*\.signal\.(test|spec)\.(ts|tsx)$/;
1041
1079
  var createDependencyScanner = async (exec) => (await import("./dependencyScanner-rbs2407b.js")).TypeScriptDependencyScanner.from(exec);
1042
1080
  var isAllowedTestFile = (filename) => testFilePattern.test(filename);
1043
- var isAllowedLibRootFile = (filename) => libFacetRootAllowedFiles.has(filename) || rootSignalTestFilePattern.test(filename);
1044
1081
  var getScanPath = (exec, relativePath) => path4.posix.join(`${exec.type}s`, exec.name, relativePath.split(path4.sep).join("/"));
1045
1082
  async function clearGeneratedRootCapacitorConfigs(exec) {
1046
1083
  if (exec.type !== "app")
@@ -1057,17 +1094,20 @@ async function assertScanConvention(exec, libRoot) {
1057
1094
  const addViolation = (relativePath, reason) => {
1058
1095
  violations.push(`${getScanPath(exec, relativePath)}: ${reason}`);
1059
1096
  };
1060
- if (exec.type === "app") {
1061
- const { files, dirs } = await exec.getFilesAndDirs(".");
1062
- files.filter((filename) => !appRootAllowedFiles.has(filename)).forEach((filename) => {
1063
- addViolation(filename, "unsupported app root file");
1064
- });
1065
- dirs.filter((dirname) => !appRootAllowedDirs.has(dirname)).forEach((dirname) => {
1066
- addViolation(dirname, "unsupported app root folder");
1067
- });
1068
- }
1069
- libRoot.files.filter((filename) => !isAllowedLibRootFile(filename)).forEach((filename) => {
1070
- addViolation(path4.join("lib", filename), "unsupported lib root file");
1097
+ const allowedRootFiles = rootAllowedFiles[exec.type];
1098
+ const allowedRootDirs = rootAllowedDirs[exec.type];
1099
+ const { files, dirs } = await exec.getFilesAndDirs(".");
1100
+ files.filter((filename) => !allowedRootFiles.has(filename)).forEach((filename) => {
1101
+ addViolation(filename, `unsupported ${exec.type} root file`);
1102
+ });
1103
+ dirs.filter((dirname) => !allowedRootDirs.has(dirname)).forEach((dirname) => {
1104
+ addViolation(dirname, `unsupported ${exec.type} root folder`);
1105
+ });
1106
+ if (exec.type === "lib")
1107
+ for (const { relativePath, reason } of await exec.getPageConventionViolations())
1108
+ addViolation(relativePath, reason);
1109
+ libRoot.files.filter((filename) => !isAllowedLibFacetRootFile(filename)).forEach((filename) => {
1110
+ addViolation(path4.join("lib", filename), "unsupported lib facet root file");
1071
1111
  });
1072
1112
  libRoot.dirs.filter((dirname) => dirname.startsWith("__") && !internalLibDirs.has(dirname)).forEach((dirname) => {
1073
1113
  addViolation(path4.join("lib", dirname), "unsupported internal lib folder");
@@ -2348,6 +2388,18 @@ class SysExecutor extends Executor {
2348
2388
  const path6 = this.type === "app" ? `apps/${this.name}/lib` : `libs/${this.name}/lib`;
2349
2389
  return await this.workspace.getDirInModule(path6, this.name);
2350
2390
  }
2391
+ async getPageConventionViolations() {
2392
+ if (!await this.exists("page"))
2393
+ return [];
2394
+ const violations = [];
2395
+ for (const entry of await this.getAllFiles("**/*", { cwd: this.getPath("page") })) {
2396
+ const relativePath = entry.split(path5.sep).join("/");
2397
+ const reason = getPageSourceFileViolation(relativePath);
2398
+ if (reason)
2399
+ violations.push({ relativePath: `page/${relativePath}`, reason });
2400
+ }
2401
+ return violations;
2402
+ }
2351
2403
  #scanInfo = null;
2352
2404
  hasScanInfo() {
2353
2405
  return this.#scanInfo !== null;
@@ -2922,7 +2974,7 @@ class LibExecutor extends SysExecutor {
2922
2974
  async getConfig({ refresh } = {}) {
2923
2975
  if (this.#akanConfig && !refresh)
2924
2976
  return this.#akanConfig;
2925
- this.#akanConfig = await AkanLibConfig.from(this);
2977
+ this.#akanConfig = await AkanLibConfig.from(this, { bustImportCache: refresh });
2926
2978
  return this.#akanConfig;
2927
2979
  }
2928
2980
  }
@@ -3062,4 +3114,4 @@ class ModuleExecutor extends Executor {
3062
3114
  }
3063
3115
  }
3064
3116
 
3065
- export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, appRootAllowedFiles, appRootAllowedDirs, libFacetRootAllowedFiles, isScannedAppRootEntry, CommandExecutionError, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
3117
+ export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, isScannedRootEntry, CommandExecutionError, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-mykmf6wd.js";
4
+ } from "./index-xrdrttjb.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-tsmjxph2.js";
37
+ } from "./index-5em412h5.js";
38
38
  import {
39
39
  script
40
- } from "./index-n706txcv.js";
40
+ } from "./index-8rr621r2.js";
41
41
  import {
42
42
  AppExecutor,
43
43
  LibExecutor,
44
44
  ModuleExecutor
45
- } from "./index-8vkkm7v0.js";
45
+ } from "./index-90zyjrby.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
48
48
  import { capitalize } from "akanjs/common";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-t71zvmt9.js";
4
+ } from "./index-2kjyh1jb.js";
5
5
  import {
6
6
  PackageScript
7
- } from "./index-33zce8gt.js";
7
+ } from "./index-7zd96bng.js";
8
8
  import {
9
9
  AiSession,
10
10
  CloudApi,
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-sh01r3pm.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-8d2sv6pw.js";
15
+ } from "./index-hnysajy8.js";
16
16
  import {
17
17
  script
18
- } from "./index-n706txcv.js";
18
+ } from "./index-8rr621r2.js";
19
19
  import {
20
20
  PkgExecutor
21
- } from "./index-8vkkm7v0.js";
21
+ } from "./index-90zyjrby.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  LibraryScript
4
- } from "./index-73rnbwgg.js";
4
+ } from "./index-6bs24rb4.js";
5
5
  import {
6
6
  resolveMobileTargets
7
7
  } from "./index-76rn3g2c.js";
8
8
  import {
9
9
  runner,
10
10
  script
11
- } from "./index-n706txcv.js";
11
+ } from "./index-8rr621r2.js";
12
12
  import {
13
13
  HmrWatcher,
14
14
  WatchRootResolver
@@ -18,7 +18,7 @@ import {
18
18
  LibExecutor,
19
19
  PkgExecutor,
20
20
  WorkspaceExecutor
21
- } from "./index-8vkkm7v0.js";
21
+ } from "./index-90zyjrby.js";
22
22
  import {
23
23
  __require
24
24
  } from "./index-yb2wsc7f.js";
@@ -1898,9 +1898,9 @@ function openBrowser(url) {
1898
1898
  }
1899
1899
 
1900
1900
  // pkgs/@akanjs/cli/application/application.runner.ts
1901
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-7gnfz7ww.js")).ApplicationBuildRunner;
1901
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-0xjav921.js")).ApplicationBuildRunner;
1902
1902
  var loadReleasePackager = async () => (await import("./applicationReleasePackager-93nzdfsy.js")).ApplicationReleasePackager;
1903
- var loadCapacitorApp = async () => (await import("./capacitorApp-qv7g3dp2.js")).CapacitorApp;
1903
+ var loadCapacitorApp = async () => (await import("./capacitorApp-927ahhz2.js")).CapacitorApp;
1904
1904
  var loadAbstractCompactor = async () => (await import("./abstractCompactor-20e0cwbs.js")).AbstractCompactor;
1905
1905
  var loadPrompts = async () => await import("@inquirer/prompts");
1906
1906
 
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-g9e2fhw2.js";
4
+ } from "./index-24h5bqpj.js";
5
5
  import {
6
6
  WorkflowExecutor,
7
7
  compactWorkflowInputs,
@@ -23,10 +23,10 @@ import {
23
23
  workflowCommandsForPlan,
24
24
  workflowPlanApproval,
25
25
  writeWorkflowRunArtifact
26
- } from "./index-tsmjxph2.js";
26
+ } from "./index-5em412h5.js";
27
27
  import {
28
28
  runner
29
- } from "./index-n706txcv.js";
29
+ } from "./index-8rr621r2.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
32
32
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -2340,4 +2340,6 @@ var TAIL = "(?=[\\s\"'`})\\]:/!,]|$)";
2340
2340
  var RAW_PALETTE_RE = new RegExp(`${LEAD}((?:${PREFIX})-)${PALETTE}-\\d{2,3}${TAIL}`, "g");
2341
2341
  var INTERPOLATED_ARBITRARY_RE = new RegExp(`${LEAD}[a-z][a-z0-9-]*-\\[[^\\]\`]*\\$\\{`, "g");
2342
2342
  var DAISYUI_LEGACY_RE = new RegExp(`${LEAD}(?:` + "btn-(?:primary|secondary|accent|neutral|info|success|warning|error|ghost|link|outline|square|circle|wide|block|xs|sm|md|lg)|" + "badge-(?:primary|secondary|accent|neutral|info|success|warning|error|ghost|outline)|" + "alert-(?:info|success|warning|error)|" + "input-(?:bordered|primary|secondary|accent|ghost|error)|" + "select-(?:bordered|primary|ghost)|textarea-(?:bordered|primary|ghost)|" + "checkbox-(?:primary|secondary|accent)|toggle-(?:primary|secondary|accent)|" + "loading-(?:spinner|dots|ring|ball|bars|infinity)|" + "card-(?:body|title|actions)|modal-(?:box|action|backdrop)|" + "collapse-(?:title|content|arrow|plus)|dropdown-(?:content|end|start|hover)|" + "stat-(?:title|value|desc)|tabs-(?:boxed|lifted|bordered)|tab-active|" + "menu-(?:title|dropdown)|steps-(?:horizontal|vertical)|join-item|" + "mockup-(?:code|phone|browser|window)|drawer-(?:side|content|toggle)" + `)${TAIL}`, "g");
2343
+ var DAISYUI_TOKEN = "(?:base-(?:100|200|300|content)|(?:primary|secondary|accent|neutral|info|success|warning|error)-content|error)";
2344
+ var DAISYUI_TOKEN_RE = new RegExp(`${LEAD}(?:${PREFIX})-${DAISYUI_TOKEN}${TAIL}`, "g");
2343
2345
  export { AllRoutesBuilder, CsrArtifactBuilder, CssCompiler, FontOptimizer, PagesBundleBuilder, precompressArtifacts, SsrBaseArtifactBuilder };
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-g9e2fhw2.js";
4
+ } from "./index-24h5bqpj.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-n706txcv.js";
11
+ } from "./index-8rr621r2.js";
12
12
  import {
13
13
  AGENT_BLOCK_END,
14
14
  AGENT_BLOCK_START,
@@ -19,7 +19,7 @@ import {
19
19
  renderRecipeEntries,
20
20
  stampBlockVersion,
21
21
  upsertAgentBlock
22
- } from "./index-8vkkm7v0.js";
22
+ } from "./index-90zyjrby.js";
23
23
  import {
24
24
  collectRecipeSources,
25
25
  scanRecipes
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ss469dec.js";
5
5
  import {
6
6
  PageScript
7
- } from "./index-qc0tnhs2.js";
7
+ } from "./index-4z05haak.js";
8
8
  import {
9
9
  AiSession
10
10
  } from "./index-sh01r3pm.js";
@@ -15,17 +15,17 @@ import {
15
15
  generatedFilesForSync,
16
16
  moduleSourcePaths,
17
17
  sourceFile
18
- } from "./index-tsmjxph2.js";
18
+ } from "./index-5em412h5.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-n706txcv.js";
25
+ } from "./index-8rr621r2.js";
26
26
  import {
27
27
  ModuleExecutor
28
- } from "./index-8vkkm7v0.js";
28
+ } from "./index-90zyjrby.js";
29
29
  import {
30
30
  FileSys
31
31
  } from "./index-67546d0j.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-76rn3g2c.js";
6
6
  import {
7
7
  CommandExecutionError
8
- } from "./index-8vkkm7v0.js";
8
+ } from "./index-90zyjrby.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/capacitorApp.ts
11
11
  import { cp, mkdir, readFile, rm, writeFile } from "fs/promises";
package/index.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  getTargetCommandNames,
5
5
  getTargetMetas,
6
6
  runCommands
7
- } from "./index-n706txcv.js";
8
- import"./index-8vkkm7v0.js";
7
+ } from "./index-8rr621r2.js";
8
+ import"./index-90zyjrby.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-f7jerqb2.js")).WorkspaceCommand,
22
- agent: async () => (await import("./agent.command-e835fjem.js")).AgentCommand,
23
- application: async () => (await import("./application.command-sjtbk6tr.js")).ApplicationCommand,
24
- library: async () => (await import("./library.command-v5cyaw9t.js")).LibraryCommand,
25
- localRegistry: async () => (await import("./localRegistry.command-53t758pt.js")).LocalRegistryCommand,
26
- package: async () => (await import("./package.command-qkcs60ts.js")).PackageCommand,
27
- module: async () => (await import("./module.command-pq6w84xg.js")).ModuleCommand,
28
- page: async () => (await import("./page.command-qj5bfnh9.js")).PageCommand,
29
- context: async () => (await import("./context.command-vn87jb08.js")).ContextCommand,
30
- cloud: async () => (await import("./cloud.command-y0e4eyqz.js")).CloudCommand,
31
- guideline: async () => (await import("./guideline.command-s4hn2bsy.js")).GuidelineCommand,
32
- scalar: async () => (await import("./scalar.command-rm6k3c65.js")).ScalarCommand,
33
- primitive: async () => (await import("./primitive.command-bw0nes6x.js")).PrimitiveCommand,
34
- quality: async () => (await import("./quality.command-g1s2wt8b.js")).QualityCommand,
35
- repair: async () => (await import("./repair.command-mzwtejpk.js")).RepairCommand,
36
- workflow: async () => (await import("./workflow.command-g2cgcgxn.js")).WorkflowCommand
21
+ workspace: async () => (await import("./workspace.command-zkhcjsj2.js")).WorkspaceCommand,
22
+ agent: async () => (await import("./agent.command-nqs3bw0g.js")).AgentCommand,
23
+ application: async () => (await import("./application.command-5w691e89.js")).ApplicationCommand,
24
+ library: async () => (await import("./library.command-7h3yezwc.js")).LibraryCommand,
25
+ localRegistry: async () => (await import("./localRegistry.command-mp3yc9gg.js")).LocalRegistryCommand,
26
+ package: async () => (await import("./package.command-z7dd6vy2.js")).PackageCommand,
27
+ module: async () => (await import("./module.command-4g11k3xd.js")).ModuleCommand,
28
+ page: async () => (await import("./page.command-y996708m.js")).PageCommand,
29
+ context: async () => (await import("./context.command-6kn3tady.js")).ContextCommand,
30
+ cloud: async () => (await import("./cloud.command-dq0mvj11.js")).CloudCommand,
31
+ guideline: async () => (await import("./guideline.command-pjdrndqk.js")).GuidelineCommand,
32
+ scalar: async () => (await import("./scalar.command-3chgxybs.js")).ScalarCommand,
33
+ primitive: async () => (await import("./primitive.command-4fcn8k83.js")).PrimitiveCommand,
34
+ quality: async () => (await import("./quality.command-hx5af2yn.js")).QualityCommand,
35
+ repair: async () => (await import("./repair.command-ysxd8pef.js")).RepairCommand,
36
+ workflow: async () => (await import("./workflow.command-endxfzv5.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-73rnbwgg.js";
4
+ } from "./index-6bs24rb4.js";
5
5
  import {
6
6
  Lib,
7
7
  Workspace,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.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-t71zvmt9.js";
5
+ } from "./index-2kjyh1jb.js";
6
6
  import {
7
7
  PackageScript
8
- } from "./index-33zce8gt.js";
8
+ } from "./index-7zd96bng.js";
9
9
  import"./index-sh01r3pm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-8d2sv6pw.js";
13
- import"./index-73rnbwgg.js";
12
+ } from "./index-hnysajy8.js";
13
+ import"./index-6bs24rb4.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-n706txcv.js";
20
+ } from "./index-8rr621r2.js";
21
21
  import"./index-fgc8r6dj.js";
22
22
  import"./index-bjpxzr6s.js";
23
23
  import {
24
24
  PkgExecutor
25
- } from "./index-8vkkm7v0.js";
25
+ } from "./index-90zyjrby.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-mykmf6wd.js";
4
+ } from "./index-xrdrttjb.js";
5
5
  import"./index-ss469dec.js";
6
- import"./index-qc0tnhs2.js";
6
+ import"./index-4z05haak.js";
7
7
  import"./index-sh01r3pm.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-tsmjxph2.js";
10
+ } from "./index-5em412h5.js";
11
11
  import"./index-j37qq1f2.js";
12
12
  import {
13
13
  Module,
14
14
  Sys,
15
15
  command
16
- } from "./index-n706txcv.js";
17
- import"./index-8vkkm7v0.js";
16
+ } from "./index-8rr621r2.js";
17
+ import"./index-90zyjrby.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-33zce8gt.js";
4
+ } from "./index-7zd96bng.js";
5
5
  import {
6
6
  Pkg,
7
7
  Workspace,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.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.45",
3
+ "version": "3.0.0-alpha.47",
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.45",
37
+ "akanjs": "3.0.0-alpha.47",
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-qc0tnhs2.js";
4
+ } from "./index-4z05haak.js";
5
5
  import {
6
6
  App,
7
7
  Module,
8
8
  command
9
- } from "./index-n706txcv.js";
10
- import"./index-8vkkm7v0.js";
9
+ } from "./index-8rr621r2.js";
10
+ import"./index-90zyjrby.js";
11
11
  import"./index-mxvakhsm.js";
12
12
  import"./index-1577bej2.js";
13
13
  import"./index-67546d0j.js";