@akanjs/cli 3.2.0-rc.2 → 3.2.0-rc.21

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 (132) hide show
  1. package/.build-stamp +2 -1
  2. package/CodeAgent-faqv7t4g.js +11 -0
  3. package/{CodeTui-zyc7zaq6.js → CodeTui-vqck9tet.js} +822 -666
  4. package/README.ko.md +26 -1
  5. package/README.md +26 -1
  6. package/TunnelShare-bwe3ddv7.js +18 -0
  7. package/agent.command-p75jvgrd.js +56 -0
  8. package/akanCode.js +12 -12
  9. package/appExecutor-020cyesq.js +11 -0
  10. package/{application.command-vb278qnq.js → application.command-ta2knqxm.js} +72 -34
  11. package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-gkh82j2b.js} +18 -13
  12. package/buildBatch.proc.js +26 -11
  13. package/{cloud.command-ca777ee2.js → cloud.command-v3jhfvm5.js} +31 -28
  14. package/cloud.script-be9s1432.js +35 -0
  15. package/{code.command-j08txqcd.js → code.command-mh7dh1st.js} +14 -9
  16. package/{context.command-2fa6egp9.js → context.command-1ycfjkdd.js} +28 -23
  17. package/context.runner-333jkz86.js +34 -0
  18. package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
  19. package/{devTui-w38ch13a.js → devTui-rf374y2w.js} +1 -1
  20. package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
  21. package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
  22. package/guidelines/agentRule/agentRule.instruction.md +17 -5
  23. package/guidelines/akanApi/akanApi.instruction.md +5 -3
  24. package/guidelines/conventions/core.md +23 -5
  25. package/guidelines/conventions/rules/app.md +4 -1
  26. package/guidelines/conventions/rules/page.md +5 -0
  27. package/guidelines/errorCodes/errorCodes.instruction.md +158 -0
  28. package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
  29. package/guidelines/mcpRule/mcpRule.instruction.md +86 -2
  30. package/guidelines/pageRule/pageRule.instruction.md +11 -1
  31. package/guidelines/runtimeRule/runtimeRule.instruction.md +7 -2
  32. package/guidelines/transportRule/transportRule.instruction.md +8 -1
  33. package/incrementalBuilder.proc.js +574 -410
  34. package/{index-c5ymqb05.js → index-013n6z7m.js} +12 -12
  35. package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
  36. package/{index-8nbx607g.js → index-0hj82f9w.js} +136 -48
  37. package/{index-ebwkh7bt.js → index-1c0mjc2b.js} +25 -7
  38. package/{index-6h775rv3.js → index-1jk52ffq.js} +53 -12
  39. package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
  40. package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
  41. package/{index-cbcwxp5v.js → index-22g3jq43.js} +9 -7
  42. package/{index-466z5931.js → index-2d9nm03s.js} +580 -364
  43. package/{index-0fj9ra3q.js → index-2k6mve6a.js} +18 -11
  44. package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
  45. package/{index-j7p0jgaq.js → index-52w4jb87.js} +6 -6
  46. package/{index-e22zedc2.js → index-5h888r6j.js} +3 -3
  47. package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
  48. package/{index-xa0289eg.js → index-6zb17wcm.js} +16 -9
  49. package/{index-qgazn58x.js → index-7a07tdap.js} +50 -38
  50. package/{index-m5sg5spm.js → index-7ehdht84.js} +565 -187
  51. package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
  52. package/{index-pq5rjkch.js → index-88s746ns.js} +7 -2
  53. package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
  54. package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
  55. package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
  56. package/{index-wr9magsr.js → index-9zswcze5.js} +3 -3
  57. package/{index-xq97me1h.js → index-a41vv4cy.js} +811 -697
  58. package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
  59. package/{index-bdmgqzb5.js → index-bket1068.js} +58 -29
  60. package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
  61. package/{index-1cb9apzn.js → index-czf94w8c.js} +2 -2
  62. package/{index-65b6ms4c.js → index-d3178asw.js} +15 -11
  63. package/index-dss3ds74.js +127 -0
  64. package/{index-annxfpgz.js → index-eyfty8kk.js} +9 -9
  65. package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
  66. package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
  67. package/{index-abfbf01s.js → index-gwsesvqc.js} +2 -2
  68. package/{index-kcpk2d20.js → index-h1w4wqgd.js} +1474 -1139
  69. package/{index-j1hjb477.js → index-hp2c7xc2.js} +1 -1
  70. package/index-j4yvgfhr.js +70 -0
  71. package/{index-84c2pgak.js → index-jx2jcw1r.js} +89 -78
  72. package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
  73. package/{index-2gees180.js → index-mpp4aas6.js} +62 -33
  74. package/index-na8r4a27.js +30 -0
  75. package/{index-0mqga3h9.js → index-nmxszh6x.js} +525 -440
  76. package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
  77. package/{index-20wvskt8.js → index-pt0agdck.js} +1 -1
  78. package/{index-htxck0pn.js → index-q444k260.js} +15 -10
  79. package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
  80. package/{index-23860fej.js → index-rwgqba9p.js} +24 -9
  81. package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
  82. package/index-va90m8nd.js +25 -0
  83. package/index-vjbne22r.js +80 -0
  84. package/{index-djc5nxpy.js → index-w23tf30e.js} +6 -6
  85. package/{index-mvwvxgtd.js → index-wa01phm9.js} +289 -210
  86. package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
  87. package/{index-vbhx60x5.js → index-xwe7y0gf.js} +2140 -2165
  88. package/index-ze48c0vd.js +788 -0
  89. package/{index-dk4g0x0d.js → index-zttyg7tg.js} +27 -16
  90. package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
  91. package/index.js +29 -24
  92. package/libExecutor-tq994592.js +10 -0
  93. package/{library.command-8d03a0pq.js → library.command-x219mhcx.js} +9 -4
  94. package/{localRegistry.command-vyv5k6t0.js → localRegistry.command-4p17wa9t.js} +30 -24
  95. package/{module.command-vy3kg965.js → module.command-tjthnvvr.js} +17 -8
  96. package/{package.command-qjh13rs9.js → package.command-c6df2hxx.js} +13 -8
  97. package/package.json +2 -2
  98. package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
  99. package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
  100. package/pkgExecutor-stde3yc3.js +10 -0
  101. package/{primitive.command-8vm49279.js → primitive.command-0enfygxn.js} +13 -8
  102. package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
  103. package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
  104. package/{quality.command-v76fev72.js → quality.command-dkbdztad.js} +23 -16
  105. package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
  106. package/{repair.command-fp4m3w03.js → repair.command-g5vd95ax.js} +13 -8
  107. package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
  108. package/{scalar.command-hxe6try8.js → scalar.command-7909pg0d.js} +11 -6
  109. package/skills/akan-debug/SKILL.md +10 -3
  110. package/skills/akan-err/SKILL.md +7 -0
  111. package/skills/akan-mcp/SKILL.md +13 -2
  112. package/skills/akan-scaffold/SKILL.md +2 -2
  113. package/skills/akan-transport/SKILL.md +2 -0
  114. package/skills/akan-validate/SKILL.md +1 -0
  115. package/{subspace.command-q42n1844.js → subspace.command-at4jt1fb.js} +29 -23
  116. package/templates/biomeForm.ts +1 -1
  117. package/templates/env/_env.server.type.ts +1 -1
  118. package/templates/facetIndex/index.ts +2 -37
  119. package/templates/lib/sig.ts +0 -4
  120. package/templates/lib/useClient.ts +1 -1
  121. package/templates/workspaceRoot/AGENTS.md.template +2 -1
  122. package/{tunnel.command-22g11n0x.js → tunnel.command-91h92dwr.js} +17 -12
  123. package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
  124. package/typecheck.proc.js +6 -3
  125. package/{verify.command-rx43bha1.js → verify.command-pzky05ts.js} +26 -20
  126. package/{workflow.command-yg0d8mmq.js → workflow.command-mqqe4n12.js} +37 -19
  127. package/{workspace.command-fcfztvn5.js → workspace.command-y4rznvhx.js} +64 -53
  128. package/CodeAgent-6cpjtj25.js +0 -11
  129. package/TunnelShare-zkfkrw8w.js +0 -14
  130. package/agent.command-kf1g3nh4.js +0 -51
  131. package/cloud.script-agpxzq6j.js +0 -30
  132. package/context.runner-ftv8373t.js +0 -29
@@ -1,20 +1,28 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationBuildReporter
4
- } from "./index-y725zb1a.js";
4
+ } from "./index-7v7tvgt7.js";
5
5
  import {
6
6
  parseBiomeReport,
7
7
  Linter,
8
- TypecheckFailure,
9
- ProjectTypecheck2,
10
- AppExecutor,
11
- LibExecutor,
12
- PkgExecutor
13
- } from "./index-wfmpxke3.js";
8
+ ProjectTypecheck2
9
+ } from "./index-qssq2d41.js";
10
+ import {
11
+ TypecheckFailure
12
+ } from "./index-j4yvgfhr.js";
13
+ import {
14
+ AppExecutor2
15
+ } from "./index-ze48c0vd.js";
16
+ import {
17
+ LibExecutor2
18
+ } from "./index-na8r4a27.js";
19
+ import {
20
+ PkgExecutor2
21
+ } from "./index-dss3ds74.js";
14
22
  import {
15
23
  WorkspaceRunner,
16
24
  AkanQualityScanner
17
- } from "./index-466z5931.js";
25
+ } from "./index-2d9nm03s.js";
18
26
 
19
27
  // pkgs/@akanjs/cli/verify/verifyComments.ts
20
28
  import { existsSync } from "fs";
@@ -25,6 +33,7 @@ class VerifyComments {
25
33
  static fix = "keep only a fact the code cannot say (vendor quirk, constraint, security, domain meaning, rejected alternative); delete the rest";
26
34
  static #codeFile = /\.[cm]?[jt]sx?$/;
27
35
  static #directive = /^(\/\/\/?|\/\*+)\s*(biome-ignore|@ts-|eslint-|prettier-ignore|#region|#endregion|<reference|[#@]__PURE__|@__NO_SIDE_EFFECTS__)/;
36
+ static #trackedTodo = /^(\/\/|\/\*+)\s*TODO:?\s*https?:\/\/\S[^\n]*$/;
28
37
  static #typescriptLoad;
29
38
  static #templateCommentsLoad;
30
39
  static #loadTypescript() {
@@ -49,6 +58,8 @@ class VerifyComments {
49
58
  for (const comment of VerifyComments.commentsOf(typescript, file, text)) {
50
59
  if (VerifyComments.#directive.test(comment.text))
51
60
  continue;
61
+ if (VerifyComments.#trackedTodo.test(comment.text))
62
+ continue;
52
63
  if (VerifyComments.#scaffolded(comment, templateComments))
53
64
  continue;
54
65
  if (lines && !VerifyComments.#touches(comment, lines))
@@ -627,9 +638,9 @@ class VerifyPipeline {
627
638
  }
628
639
  async#sync(target) {
629
640
  if (target.type === "app")
630
- await AppExecutor.from(this.#workspace, target.name).scanSync();
641
+ await AppExecutor2.from(this.#workspace, target.name).scanSync();
631
642
  else
632
- await LibExecutor.from(this.#workspace, target.name).scan();
643
+ await LibExecutor2.from(this.#workspace, target.name).scan();
633
644
  return { diagnostics: [] };
634
645
  }
635
646
  async#lint(target, { comments, rewritten }) {
@@ -694,12 +705,12 @@ class VerifyPipeline {
694
705
  async#typecheck(target) {
695
706
  try {
696
707
  if (target.type === "app")
697
- await this.#applicationRunner.typecheck(AppExecutor.from(this.#workspace, target.name), {
708
+ await this.#applicationRunner.typecheck(AppExecutor2.from(this.#workspace, target.name), {
698
709
  tests: true,
699
710
  report: "records"
700
711
  });
701
712
  else if (target.type === "lib")
702
- await this.#applicationRunner.typecheckLibrary(LibExecutor.from(this.#workspace, target.name), {
713
+ await this.#applicationRunner.typecheckLibrary(LibExecutor2.from(this.#workspace, target.name), {
703
714
  tests: true,
704
715
  report: "records"
705
716
  });
@@ -717,7 +728,7 @@ class VerifyPipeline {
717
728
  }
718
729
  }
719
730
  async#build(target) {
720
- const { routeJsWarnings = [] } = await this.#applicationRunner.build(AppExecutor.from(this.#workspace, target.name), { fast: true });
731
+ const { routeJsWarnings = [] } = await this.#applicationRunner.build(AppExecutor2.from(this.#workspace, target.name), { fast: true });
721
732
  return { diagnostics: routeJsWarnings.map((warning) => VerifyDiagnostics.fromRouteJsBudget(warning)) };
722
733
  }
723
734
  async#ssr(scope) {
@@ -727,10 +738,10 @@ class VerifyPipeline {
727
738
  }
728
739
  #execOf(target) {
729
740
  if (target.type === "app")
730
- return AppExecutor.from(this.#workspace, target.name);
741
+ return AppExecutor2.from(this.#workspace, target.name);
731
742
  if (target.type === "lib")
732
- return LibExecutor.from(this.#workspace, target.name);
733
- return PkgExecutor.from(this.#workspace, target.name);
743
+ return LibExecutor2.from(this.#workspace, target.name);
744
+ return PkgExecutor2.from(this.#workspace, target.name);
734
745
  }
735
746
  }
736
747
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // pkgs/@akanjs/devkit/gitRevision.ts
2
+ // pkgs/@akanjs/devkit/workspace/gitRevision.ts
3
3
  var systemPaths = ["apps", "libs"];
4
4
  var changeOfStatus = { A: "added", D: "removed" };
5
5
 
package/index.js CHANGED
@@ -4,9 +4,14 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-386canwe.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-wfmpxke3.js";
7
+ } from "./index-9rv2zt48.js";
8
+ import"./index-j4yvgfhr.js";
9
+ import"./index-qssq2d41.js";
10
+ import"./index-by2tvsq6.js";
11
+ import"./index-ze48c0vd.js";
12
+ import"./index-na8r4a27.js";
13
+ import"./index-dss3ds74.js";
14
+ import"./index-vjbne22r.js";
10
15
 
11
16
  // pkgs/@akanjs/cli/bunVersionGuard.ts
12
17
  class BunVersionGuard {
@@ -22,27 +27,27 @@ import path from "path";
22
27
 
23
28
  // pkgs/@akanjs/cli/commandModules.ts
24
29
  var commandModules = {
25
- workspace: async () => (await import("./workspace.command-fcfztvn5.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-kf1g3nh4.js")).AgentCommand,
27
- code: async () => (await import("./code.command-j08txqcd.js")).CodeCommand,
28
- application: async () => (await import("./application.command-vb278qnq.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-8d03a0pq.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-vyv5k6t0.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-qjh13rs9.js")).PackageCommand,
32
- module: async () => (await import("./module.command-vy3kg965.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-t0nx1jat.js")).PageCommand,
34
- context: async () => (await import("./context.command-2fa6egp9.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-ca777ee2.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-q42n1844.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-w6yqpdec.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-hxe6try8.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-8vm49279.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-v76fev72.js")).QualityCommand,
41
- verify: async () => (await import("./verify.command-rx43bha1.js")).VerifyCommand,
42
- repair: async () => (await import("./repair.command-fp4m3w03.js")).RepairCommand,
43
- workflow: async () => (await import("./workflow.command-yg0d8mmq.js")).WorkflowCommand,
44
- pipeline: async () => (await import("./pipeline.command-2yjeas7m.js")).PipelineCommand,
45
- tunnel: async () => (await import("./tunnel.command-22g11n0x.js")).TunnelCommand
30
+ workspace: async () => (await import("./workspace.command-y4rznvhx.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-p75jvgrd.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-mh7dh1st.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-ta2knqxm.js")).ApplicationCommand,
34
+ library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-4p17wa9t.js")).LocalRegistryCommand,
36
+ package: async () => (await import("./package.command-c6df2hxx.js")).PackageCommand,
37
+ module: async () => (await import("./module.command-tjthnvvr.js")).ModuleCommand,
38
+ page: async () => (await import("./page.command-gf06paq2.js")).PageCommand,
39
+ context: async () => (await import("./context.command-1ycfjkdd.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-v3jhfvm5.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-at4jt1fb.js")).SubspaceCommand,
42
+ guideline: async () => (await import("./guideline.command-w1grfwh7.js")).GuidelineCommand,
43
+ scalar: async () => (await import("./scalar.command-7909pg0d.js")).ScalarCommand,
44
+ primitive: async () => (await import("./primitive.command-0enfygxn.js")).PrimitiveCommand,
45
+ quality: async () => (await import("./quality.command-dkbdztad.js")).QualityCommand,
46
+ verify: async () => (await import("./verify.command-pzky05ts.js")).VerifyCommand,
47
+ repair: async () => (await import("./repair.command-g5vd95ax.js")).RepairCommand,
48
+ workflow: async () => (await import("./workflow.command-mqqe4n12.js")).WorkflowCommand,
49
+ pipeline: async () => (await import("./pipeline.command-y07dgj9b.js")).PipelineCommand,
50
+ tunnel: async () => (await import("./tunnel.command-91h92dwr.js")).TunnelCommand
46
51
  };
47
52
  var commandModuleIds = Object.keys(commandModules);
48
53
 
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ LibExecutor2
4
+ } from "./index-na8r4a27.js";
5
+ import"./index-qssq2d41.js";
6
+ import"./index-j4yvgfhr.js";
7
+ import"./index-by2tvsq6.js";
8
+ export {
9
+ LibExecutor2 as LibExecutor
10
+ };
@@ -3,12 +3,17 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
6
+ } from "./index-9rv2zt48.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-qssq2d41.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-ze48c0vd.js";
11
+ import"./index-na8r4a27.js";
12
+ import"./index-dss3ds74.js";
9
13
  import {
10
14
  LibraryScript
11
- } from "./index-xa0289eg.js";
15
+ } from "./index-6zb17wcm.js";
16
+ import"./index-vjbne22r.js";
12
17
 
13
18
  // pkgs/@akanjs/cli/library/library.command.ts
14
19
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,42 +4,48 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-386canwe.js";
8
- import"./index-bns3wcpc.js";
7
+ } from "./index-9rv2zt48.js";
8
+ import"./index-j4yvgfhr.js";
9
9
  import {
10
- parseEnvFile,
11
- PkgExecutor
12
- } from "./index-wfmpxke3.js";
10
+ parseEnvFile
11
+ } from "./index-qssq2d41.js";
12
+ import"./index-by2tvsq6.js";
13
+ import"./index-ze48c0vd.js";
14
+ import"./index-na8r4a27.js";
15
+ import {
16
+ PkgExecutor2
17
+ } from "./index-dss3ds74.js";
13
18
  import {
14
19
  npmRegistryFromEnv,
15
20
  warnIgnoredNpmRegistry,
16
21
  getNpmRegistryUrl
17
- } from "./index-ny2k80mv.js";
18
- import"./index-y725zb1a.js";
19
- import"./index-djc5nxpy.js";
20
- import"./index-20wvskt8.js";
22
+ } from "./index-ffa52fwf.js";
23
+ import"./index-7v7tvgt7.js";
24
+ import"./index-w23tf30e.js";
25
+ import"./index-pt0agdck.js";
21
26
  import"./index-m9jj544v.js";
22
- import"./index-84c2pgak.js";
23
- import"./index-wr9magsr.js";
24
- import"./index-xa0289eg.js";
25
- import"./index-kcpk2d20.js";
26
- import"./index-23860fej.js";
27
+ import"./index-jx2jcw1r.js";
28
+ import"./index-9zswcze5.js";
29
+ import"./index-6zb17wcm.js";
30
+ import"./index-h1w4wqgd.js";
31
+ import"./index-rwgqba9p.js";
27
32
  import {
28
33
  ApplicationScript
29
- } from "./index-8nbx607g.js";
30
- import"./index-e22zedc2.js";
34
+ } from "./index-0hj82f9w.js";
35
+ import"./index-5h888r6j.js";
31
36
  import {
32
37
  CloudRunner
33
- } from "./index-6h775rv3.js";
34
- import"./index-qd7xn2bk.js";
35
- import"./index-m5sg5spm.js";
36
- import"./index-1cb9apzn.js";
37
- import"./index-ygrdw6jw.js";
38
+ } from "./index-1jk52ffq.js";
39
+ import"./index-7ehdht84.js";
40
+ import"./index-czf94w8c.js";
41
+ import"./index-1pjwsh2g.js";
42
+ import"./index-2ny1e95c.js";
38
43
  import {
39
44
  PackageScript
40
- } from "./index-65b6ms4c.js";
41
- import"./index-8jpc5fqv.js";
45
+ } from "./index-d3178asw.js";
46
+ import"./index-g7jgd4xs.js";
42
47
  import"./index-9bv479q5.js";
48
+ import"./index-vjbne22r.js";
43
49
 
44
50
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
45
51
  import { mkdir, rm } from "fs/promises";
@@ -162,7 +168,7 @@ class LocalRegistryScript extends script("localRegistry", [
162
168
  }
163
169
  async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
164
170
  await this.packageScript.updateWorskpaceRootPackageJson(workspace);
165
- const pkgs = akanPkgs.map((pkgName) => PkgExecutor.from(workspace, pkgName));
171
+ const pkgs = akanPkgs.map((pkgName) => PkgExecutor2.from(workspace, pkgName));
166
172
  if (test)
167
173
  for (const pkg of pkgs)
168
174
  await this.applicationScript.test(pkg);
@@ -2,18 +2,24 @@
2
2
  import {
3
3
  Sys,
4
4
  Module,
5
+ ModuleOrService,
5
6
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
7
+ } from "./index-9rv2zt48.js";
8
+ import"./index-j4yvgfhr.js";
9
+ import"./index-qssq2d41.js";
10
+ import"./index-by2tvsq6.js";
11
+ import"./index-ze48c0vd.js";
12
+ import"./index-na8r4a27.js";
13
+ import"./index-dss3ds74.js";
9
14
  import {
10
15
  renderPrimitiveReport
11
- } from "./index-xq97me1h.js";
12
- import"./index-m5sg5spm.js";
13
- import"./index-7kmbqp0b.js";
16
+ } from "./index-a41vv4cy.js";
17
+ import"./index-7ehdht84.js";
18
+ import"./index-6pxmcaq8.js";
14
19
  import {
15
20
  ModuleScript
16
- } from "./index-htxck0pn.js";
21
+ } from "./index-q444k260.js";
22
+ import"./index-vjbne22r.js";
17
23
 
18
24
  // pkgs/@akanjs/cli/module/module.command.ts
19
25
  import { Logger, lowerlize } from "akanjs/common";
@@ -23,7 +29,10 @@ class ModuleCommand extends command("module", [ModuleScript], ({ public: target
23
29
  const report = await this.moduleScript.createModuleTemplate(sys, name, { page });
24
30
  Logger.rawLog(renderPrimitiveReport(report, format));
25
31
  }),
26
- removeModule: target({ desc: "Remove a module from an app or library", destructive: true }).with(Module).exec(async function(module) {
32
+ removeModule: target({
33
+ desc: "Remove a module, or a service module as <sys>:_<name>, from an app or library",
34
+ destructive: true
35
+ }).with(ModuleOrService).exec(async function(module) {
27
36
  await this.moduleScript.removeModule(module);
28
37
  }),
29
38
  createService: target({ desc: "Create a service module without database files" }).arg("serviceName", String, { desc: "name of service module" }).with(Sys).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(serviceName, sys, format) {
@@ -3,16 +3,21 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
9
- import"./index-qd7xn2bk.js";
10
- import"./index-m5sg5spm.js";
11
- import"./index-1cb9apzn.js";
12
- import"./index-ygrdw6jw.js";
6
+ } from "./index-9rv2zt48.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-qssq2d41.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-ze48c0vd.js";
11
+ import"./index-na8r4a27.js";
12
+ import"./index-dss3ds74.js";
13
+ import"./index-7ehdht84.js";
14
+ import"./index-czf94w8c.js";
15
+ import"./index-1pjwsh2g.js";
16
+ import"./index-2ny1e95c.js";
13
17
  import {
14
18
  PackageScript
15
- } from "./index-65b6ms4c.js";
19
+ } from "./index-d3178asw.js";
20
+ import"./index-vjbne22r.js";
16
21
 
17
22
  // pkgs/@akanjs/cli/package/package.command.ts
18
23
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.2",
3
+ "version": "3.2.0-rc.21",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.2",
42
+ "akanjs": "3.2.0-rc.21",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,12 +3,17 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
6
+ } from "./index-9rv2zt48.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-qssq2d41.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-ze48c0vd.js";
11
+ import"./index-na8r4a27.js";
12
+ import"./index-dss3ds74.js";
9
13
  import {
10
14
  PageScript
11
- } from "./index-7kmbqp0b.js";
15
+ } from "./index-6pxmcaq8.js";
16
+ import"./index-vjbne22r.js";
12
17
 
13
18
  // pkgs/@akanjs/cli/page/page.command.ts
14
19
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,18 +4,24 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-386canwe.js";
7
+ } from "./index-9rv2zt48.js";
8
+ import"./index-j4yvgfhr.js";
9
+ import {
10
+ AkanAppConfig,
11
+ AkanWorkspaceConfig
12
+ } from "./index-qssq2d41.js";
8
13
  import {
9
14
  FileSys2
10
- } from "./index-bns3wcpc.js";
15
+ } from "./index-by2tvsq6.js";
11
16
  import {
12
- AkanAppConfig,
13
- AkanWorkspaceConfig,
14
- AppExecutor
15
- } from "./index-wfmpxke3.js";
17
+ AppExecutor2
18
+ } from "./index-ze48c0vd.js";
19
+ import"./index-na8r4a27.js";
20
+ import"./index-dss3ds74.js";
16
21
  import {
17
22
  resolveMobileTargets
18
23
  } from "./index-m9jj544v.js";
24
+ import"./index-vjbne22r.js";
19
25
 
20
26
  // pkgs/@akanjs/cli/pipeline/pipeline.command.ts
21
27
  import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
@@ -1098,7 +1104,7 @@ class PipelineDefinition {
1098
1104
  }
1099
1105
  async#loadNativeTargets(app) {
1100
1106
  try {
1101
- const targets = await resolveMobileTargets(AppExecutor.from(this.#workspace, app), "all");
1107
+ const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
1102
1108
  return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
1103
1109
  } catch (error) {
1104
1110
  return { error: toError2(error).message };
@@ -1118,7 +1124,7 @@ class PipelineDefinition {
1118
1124
  }
1119
1125
  }
1120
1126
  async#loadApp(app) {
1121
- const executor = AppExecutor.from(this.#workspace, app);
1127
+ const executor = AppExecutor2.from(this.#workspace, app);
1122
1128
  const file = `apps/${app}/akan.config.ts`;
1123
1129
  const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
1124
1130
  try {
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ PkgExecutor2
4
+ } from "./index-dss3ds74.js";
5
+ import"./index-qssq2d41.js";
6
+ import"./index-j4yvgfhr.js";
7
+ import"./index-by2tvsq6.js";
8
+ export {
9
+ PkgExecutor2 as PkgExecutor
10
+ };
@@ -2,18 +2,23 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-386canwe.js";
6
- import"./index-bns3wcpc.js";
7
- import"./index-wfmpxke3.js";
5
+ } from "./index-9rv2zt48.js";
6
+ import"./index-j4yvgfhr.js";
7
+ import"./index-qssq2d41.js";
8
+ import"./index-by2tvsq6.js";
9
+ import"./index-ze48c0vd.js";
10
+ import"./index-na8r4a27.js";
11
+ import"./index-dss3ds74.js";
8
12
  import {
9
13
  renderPrimitiveReport
10
- } from "./index-xq97me1h.js";
11
- import"./index-m5sg5spm.js";
12
- import"./index-7kmbqp0b.js";
13
- import"./index-htxck0pn.js";
14
+ } from "./index-a41vv4cy.js";
15
+ import"./index-7ehdht84.js";
16
+ import"./index-6pxmcaq8.js";
17
+ import"./index-q444k260.js";
14
18
  import {
15
19
  PrimitiveScript
16
- } from "./index-qgazn58x.js";
20
+ } from "./index-7a07tdap.js";
21
+ import"./index-vjbne22r.js";
17
22
 
18
23
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
19
24
  import { Logger } from "akanjs/common";
@@ -1,7 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-wfmpxke3.js";
4
+ } from "./index-qssq2d41.js";
5
+ import"./index-j4yvgfhr.js";
5
6
  export {
6
7
  ProjectTypecheck2 as ProjectTypecheck
7
8
  };
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  Prompter2
4
- } from "./index-j6eeh5d7.js";
5
- import"./index-bns3wcpc.js";
4
+ } from "./index-knpm8sdm.js";
5
+ import"./index-by2tvsq6.js";
6
6
  export {
7
7
  Prompter2 as Prompter
8
8
  };
@@ -3,28 +3,35 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
6
+ } from "./index-9rv2zt48.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-qssq2d41.js";
9
+ import"./index-by2tvsq6.js";
8
10
  import {
9
- AppExecutor,
10
- LibExecutor,
11
- PkgExecutor
12
- } from "./index-wfmpxke3.js";
11
+ AppExecutor2
12
+ } from "./index-ze48c0vd.js";
13
+ import {
14
+ LibExecutor2
15
+ } from "./index-na8r4a27.js";
16
+ import {
17
+ PkgExecutor2
18
+ } from "./index-dss3ds74.js";
13
19
  import {
14
20
  MaintainabilityBaseline
15
- } from "./index-ygrdw6jw.js";
21
+ } from "./index-1pjwsh2g.js";
16
22
  import {
17
23
  WorkspaceRunner,
18
24
  AkanQualityScanner,
19
25
  formatQualityScanResult,
20
26
  formatSsrScanResult
21
- } from "./index-466z5931.js";
22
- import"./index-m5sg5spm.js";
27
+ } from "./index-2d9nm03s.js";
28
+ import"./index-7ehdht84.js";
29
+ import"./index-1p81ecbz.js";
23
30
  import"./index-62md4dwy.js";
24
- import"./index-ygdbn9jn.js";
25
- import"./index-hj6w4ka1.js";
26
- import"./index-ny2k80mv.js";
27
- import"./index-v50xjbbe.js";
31
+ import"./index-zyb0ebm4.js";
32
+ import"./index-ffa52fwf.js";
33
+ import"./index-t4d0ckde.js";
34
+ import"./index-vjbne22r.js";
28
35
 
29
36
  // pkgs/@akanjs/cli/quality/quality.script.ts
30
37
  import { Logger } from "akanjs/common";
@@ -45,9 +52,9 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
45
52
  async baseline(workspace, { force = false } = {}) {
46
53
  const [appNames, libNames, pkgNames] = await workspace.getExecs();
47
54
  const execs = [
48
- ...appNames.map((appName) => AppExecutor.from(workspace, appName)),
49
- ...libNames.map((libName) => LibExecutor.from(workspace, libName)),
50
- ...pkgNames.map((pkgName) => PkgExecutor.from(workspace, pkgName))
55
+ ...appNames.map((appName) => AppExecutor2.from(workspace, appName)),
56
+ ...libNames.map((libName) => LibExecutor2.from(workspace, libName)),
57
+ ...pkgNames.map((pkgName) => PkgExecutor2.from(workspace, pkgName))
51
58
  ];
52
59
  const { fileName } = MaintainabilityBaseline;
53
60
  for (const exec of execs) {
@@ -3,7 +3,7 @@ import {
3
3
  collectRecipeSources2,
4
4
  scanRecipes2,
5
5
  findInlineRecipeDuplicates2
6
- } from "./index-hj6w4ka1.js";
6
+ } from "./index-1p81ecbz.js";
7
7
  export {
8
8
  collectRecipeSources2 as collectRecipeSources,
9
9
  findInlineRecipeDuplicates2 as findInlineRecipeDuplicates,
@@ -3,16 +3,21 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-386canwe.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-wfmpxke3.js";
9
- import"./index-0mqga3h9.js";
10
- import"./index-hj6w4ka1.js";
11
- import"./index-xq97me1h.js";
12
- import"./index-m5sg5spm.js";
6
+ } from "./index-9rv2zt48.js";
7
+ import"./index-j4yvgfhr.js";
8
+ import"./index-qssq2d41.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-ze48c0vd.js";
11
+ import"./index-na8r4a27.js";
12
+ import"./index-dss3ds74.js";
13
+ import"./index-a41vv4cy.js";
14
+ import"./index-7ehdht84.js";
15
+ import"./index-nmxszh6x.js";
16
+ import"./index-1p81ecbz.js";
13
17
  import {
14
18
  RepairRunner
15
- } from "./index-cbcwxp5v.js";
19
+ } from "./index-22g3jq43.js";
20
+ import"./index-vjbne22r.js";
16
21
 
17
22
  // pkgs/@akanjs/cli/repair/repair.script.ts
18
23
  import { Logger } from "akanjs/common";
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- // pkgs/@akanjs/devkit/routeSourceValidator.ts
3
- import { getRouteExports } from "akanjs/common";
2
+ // pkgs/@akanjs/devkit/app/routeSourceValidator.ts
3
+ import { GENERATED_ROOT_LAYOUT_EXPORTS, getRouteExports } from "akanjs/common";
4
4
  import ts from "typescript";
5
5
  var chainRoots = new Set(["page", "layout", "rootLayout"]);
6
6
 
@@ -10,6 +10,8 @@ class RouteSourceValidator {
10
10
  const allowed = getRouteExports(kind, { rootLayout: options.rootLayout });
11
11
  const exported = new Set;
12
12
  const assertExport = (name) => {
13
+ if (options.rootLayout && GENERATED_ROOT_LAYOUT_EXPORTS.has(name))
14
+ throw new Error(`[route-convention] unsupported export "${name}" in ${filePath}: ${name} belongs to the root layout Akan.js generates, which never reads one from an app's layout`);
13
15
  if (!allowed.has(name)) {
14
16
  throw new Error(`[route-convention] unsupported export "${name}" in ${filePath}`);
15
17
  }