@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.31

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 (144) hide show
  1. package/.build-stamp +2 -1
  2. package/CodeAgent-c17abdbf.js +11 -0
  3. package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
  4. package/README.ko.md +26 -1
  5. package/README.md +26 -1
  6. package/TunnelShare-mbfcaqg0.js +18 -0
  7. package/agent.command-9whnc6vb.js +56 -0
  8. package/akanCode.js +12 -12
  9. package/appExecutor-020cyesq.js +11 -0
  10. package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
  11. package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
  12. package/buildBatch.proc.js +26 -11
  13. package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
  14. package/cloud.script-9kmbr3d6.js +35 -0
  15. package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
  16. package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
  17. package/context.runner-nngmn7c0.js +34 -0
  18. package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
  19. package/{devTui-cd03z4mx.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 +29 -12
  23. package/guidelines/akanApi/akanApi.instruction.md +6 -4
  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/conventions/rules/ts.md +3 -3
  28. package/guidelines/errorCodes/errorCodes.instruction.md +164 -0
  29. package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
  30. package/guidelines/mcpRule/mcpRule.instruction.md +171 -2
  31. package/guidelines/pageRule/pageRule.instruction.md +15 -1
  32. package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
  33. package/guidelines/transportRule/transportRule.instruction.md +8 -1
  34. package/incrementalBuilder.proc.js +574 -410
  35. package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
  36. package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
  37. package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
  38. package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
  39. package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
  40. package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
  41. package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
  42. package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
  43. package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
  44. package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
  45. package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
  46. package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
  47. package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
  48. package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
  49. package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
  50. package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
  51. package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
  52. package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
  53. package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
  54. package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
  55. package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
  56. package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
  57. package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
  58. package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
  59. package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
  60. package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
  61. package/index-dss3ds74.js +127 -0
  62. package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
  63. package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
  64. package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
  65. package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
  66. package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
  67. package/index-j4yvgfhr.js +70 -0
  68. package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
  69. package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
  70. package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
  71. package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
  72. package/index-na8r4a27.js +30 -0
  73. package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
  74. package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
  75. package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
  76. package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
  77. package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
  78. package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
  79. package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
  80. package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
  81. package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
  82. package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
  83. package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
  84. package/index-va90m8nd.js +25 -0
  85. package/index-vjbne22r.js +80 -0
  86. package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
  87. package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
  88. package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
  89. package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
  90. package/index-ze48c0vd.js +788 -0
  91. package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
  92. package/index.js +29 -24
  93. package/libExecutor-tq994592.js +10 -0
  94. package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
  95. package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
  96. package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
  97. package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
  98. package/package.json +2 -2
  99. package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
  100. package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
  101. package/pkgExecutor-stde3yc3.js +10 -0
  102. package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
  103. package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
  104. package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
  105. package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
  106. package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
  107. package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
  108. package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
  109. package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
  110. package/skills/akan-debug/SKILL.md +10 -3
  111. package/skills/akan-err/SKILL.md +7 -0
  112. package/skills/akan-mcp/SKILL.md +17 -2
  113. package/skills/akan-scaffold/SKILL.md +2 -2
  114. package/skills/akan-transport/SKILL.md +2 -0
  115. package/skills/akan-validate/SKILL.md +1 -0
  116. package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
  117. package/templates/app/page/_layout.tsx +13 -0
  118. package/templates/app/page/styles.css.template +40 -0
  119. package/templates/appSample/page/_index.tsx +9 -9
  120. package/templates/appSample/page/_layout.tsx +1 -0
  121. package/templates/appSample/page/styles.css.template +40 -5
  122. package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
  123. package/templates/biomeForm.ts +1 -1
  124. package/templates/env/_env.server.type.ts +1 -1
  125. package/templates/facetIndex/index.ts +2 -37
  126. package/templates/lib/sig.ts +0 -4
  127. package/templates/lib/useClient.ts +1 -1
  128. package/templates/workspaceRoot/AGENTS.md.template +2 -1
  129. package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
  130. package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
  131. package/typecheck.proc.js +6 -3
  132. package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
  133. package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
  134. package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
  135. package/CodeAgent-e9c712an.js +0 -11
  136. package/TunnelShare-zkfkrw8w.js +0 -14
  137. package/agent.command-9erafkcb.js +0 -51
  138. package/cloud.script-arsagnq6.js +0 -30
  139. package/context.runner-mqpp67br.js +0 -29
  140. package/index-x3x31df8.js +0 -14
  141. /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
  142. /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
  143. /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
  144. /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
@@ -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-ca9kfyt3.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-9erafkcb.js")).AgentCommand,
27
- code: async () => (await import("./code.command-xk7rwq2x.js")).CodeCommand,
28
- application: async () => (await import("./application.command-6515t682.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-qs8beggh.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-hz4ged9n.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-zqenq8c0.js")).PackageCommand,
32
- module: async () => (await import("./module.command-z9js77m2.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-t0nx1jat.js")).PageCommand,
34
- context: async () => (await import("./context.command-jwenkkf0.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-32esk0v1.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-7wxy6ptj.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-w6yqpdec.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-p5jb7z57.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-v5kypwy4.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-q55j2htd.js")).QualityCommand,
41
- verify: async () => (await import("./verify.command-m0wnndd7.js")).VerifyCommand,
42
- repair: async () => (await import("./repair.command-7ssbbdq2.js")).RepairCommand,
43
- workflow: async () => (await import("./workflow.command-jx8dqs9n.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-5hjtmcfs.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-9whnc6vb.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-0ayrenk4.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-4eqvyxkw.js")).ApplicationCommand,
34
+ library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-zvdcejhn.js")).LocalRegistryCommand,
36
+ package: async () => (await import("./package.command-vw7x09f8.js")).PackageCommand,
37
+ module: async () => (await import("./module.command-k6cwcm7g.js")).ModuleCommand,
38
+ page: async () => (await import("./page.command-gf06paq2.js")).PageCommand,
39
+ context: async () => (await import("./context.command-php852kf.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-hbvmeezn.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-mkkqync4.js")).SubspaceCommand,
42
+ guideline: async () => (await import("./guideline.command-w1grfwh7.js")).GuidelineCommand,
43
+ scalar: async () => (await import("./scalar.command-sjt9p5e1.js")).ScalarCommand,
44
+ primitive: async () => (await import("./primitive.command-edydvh07.js")).PrimitiveCommand,
45
+ quality: async () => (await import("./quality.command-mdb45vyr.js")).QualityCommand,
46
+ verify: async () => (await import("./verify.command-0p9h8tpp.js")).VerifyCommand,
47
+ repair: async () => (await import("./repair.command-kvtaeecy.js")).RepairCommand,
48
+ workflow: async () => (await import("./workflow.command-9mfcwqzj.js")).WorkflowCommand,
49
+ pipeline: async () => (await import("./pipeline.command-y07dgj9b.js")).PipelineCommand,
50
+ tunnel: async () => (await import("./tunnel.command-tr5b3030.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-54s6knqe.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-fp5xf6ef.js";
25
+ import"./index-9wab2ngg.js";
21
26
  import"./index-m9jj544v.js";
22
- import"./index-84c2pgak.js";
23
- import"./index-wr9magsr.js";
24
- import"./index-54s6knqe.js";
25
- import"./index-kcpk2d20.js";
26
- import"./index-sc0g6zbm.js";
27
+ import"./index-yvzm8mby.js";
28
+ import"./index-yxkjsyx8.js";
29
+ import"./index-6zb17wcm.js";
30
+ import"./index-at6haq2x.js";
31
+ import"./index-rwgqba9p.js";
27
32
  import {
28
33
  ApplicationScript
29
- } from "./index-ddk49ypz.js";
30
- import"./index-e22zedc2.js";
34
+ } from "./index-v929w7j7.js";
35
+ import"./index-f16kr6vj.js";
31
36
  import {
32
37
  CloudRunner
33
- } from "./index-6h775rv3.js";
34
- import"./index-qd7xn2bk.js";
35
- import"./index-9p260r4e.js";
36
- import"./index-cmg5ngqa.js";
37
- import"./index-ygrdw6jw.js";
38
+ } from "./index-ba2xd32s.js";
39
+ import"./index-trffs83s.js";
40
+ import"./index-p7beqww9.js";
41
+ import"./index-1pjwsh2g.js";
42
+ import"./index-2ny1e95c.js";
38
43
  import {
39
44
  PackageScript
40
- } from "./index-bak9f2br.js";
41
- import"./index-8jpc5fqv.js";
45
+ } from "./index-5d57kx0s.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-xrmrvafh.js";
12
- import"./index-9p260r4e.js";
13
- import"./index-7kmbqp0b.js";
16
+ } from "./index-0gaj78wn.js";
17
+ import"./index-trffs83s.js";
18
+ import"./index-6pxmcaq8.js";
14
19
  import {
15
20
  ModuleScript
16
- } from "./index-s34v3y28.js";
21
+ } from "./index-m3t28rt3.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-9p260r4e.js";
11
- import"./index-cmg5ngqa.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-trffs83s.js";
14
+ import"./index-p7beqww9.js";
15
+ import"./index-1pjwsh2g.js";
16
+ import"./index-2ny1e95c.js";
13
17
  import {
14
18
  PackageScript
15
- } from "./index-bak9f2br.js";
19
+ } from "./index-5d57kx0s.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.3",
3
+ "version": "3.2.0-rc.31",
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.3",
42
+ "akanjs": "3.2.0-rc.31",
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-xrmrvafh.js";
11
- import"./index-9p260r4e.js";
12
- import"./index-7kmbqp0b.js";
13
- import"./index-s34v3y28.js";
14
+ } from "./index-0gaj78wn.js";
15
+ import"./index-trffs83s.js";
16
+ import"./index-6pxmcaq8.js";
17
+ import"./index-m3t28rt3.js";
14
18
  import {
15
19
  PrimitiveScript
16
- } from "./index-0ba8nj4d.js";
20
+ } from "./index-7bs463x7.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-zhkcab5a.js";
22
- import"./index-9p260r4e.js";
27
+ } from "./index-prgvqqxe.js";
28
+ import"./index-trffs83s.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-ngpt3zz3.js";
10
- import"./index-hj6w4ka1.js";
11
- import"./index-xrmrvafh.js";
12
- import"./index-9p260r4e.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-0gaj78wn.js";
14
+ import"./index-trffs83s.js";
15
+ import"./index-bj8s07s7.js";
16
+ import"./index-1p81ecbz.js";
13
17
  import {
14
18
  RepairRunner
15
- } from "./index-8gm4yag8.js";
19
+ } from "./index-42jhx2ya.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
  }
@@ -2,16 +2,21 @@
2
2
  import {
3
3
  Sys,
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-xrmrvafh.js";
11
- import"./index-9p260r4e.js";
14
+ } from "./index-0gaj78wn.js";
15
+ import"./index-trffs83s.js";
12
16
  import {
13
17
  ScalarScript
14
- } from "./index-h0p6n4k1.js";
18
+ } from "./index-nm7nt9vm.js";
19
+ import"./index-vjbne22r.js";
15
20
 
16
21
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
17
22
  import { Logger, lowerlize } from "akanjs/common";
@@ -9,14 +9,21 @@ description: "Check and debug a running Akan app: akan preview for what a page s
9
9
 
10
10
  `akan preview <app> [paths]` opens pages of the app's dev server in a headless browser and prints, per page,
11
11
  the HTTP status, the title, a slice of the visible text, the uncaught errors and rejections the page reported,
12
- the server errors logged meanwhile, console errors and warnings, and layout smells. It exits 1 when a page failed.
12
+ the server errors logged meanwhile, console errors and warnings, and layout smells. It exits 3 when a page failed.
13
13
 
14
14
  - It uses the dev server that answers for this app and checkout. With none, it starts one for the run and
15
15
  stops it after; `--keep` leaves it up for the next preview. It never starts a second server beside a
16
16
  running one.
17
17
  - Paths are comma-separated (`akan preview <app> /board,/board/new`) and get the default locale when they lack
18
- one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off. A `/_akan` route such as Studio
19
- (`/_akan/studio?view=runtime`), a signal route or a file opens as written.
18
+ one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off. What the server answers outside a
19
+ locale opens as written, with no locale and no CSR boot query: a `/_akan` route such as Studio
20
+ (`/_akan/studio?view=runtime`), a route under the API prefix, `/__csr`, `/__rsc`, `/.well-known`,
21
+ `/openapi.json`, `/mcp`, `/favicon.ico`, `/robots.txt`, `/sitemap.xml`, `manifest.webmanifest` and a file in
22
+ the app's `public/`; `--csr` prints a note naming them. `/mcp` answers only `POST`, so preview cannot check it
23
+ (it fails with 405); the `akan-mcp` exposure test does. A full URL (`http://localhost:<port>/oauth/token`)
24
+ opens its path and query the same way, always on the app's dev server, with a note when it names another
25
+ server: use it for an endpoint mounted outside the API prefix. A page `--changed` finds opens as a page even at
26
+ a server route's path, under the same locale rule, and `/en` and `/en/` open once.
20
27
  `--changed` adds the pages your uncommitted page and layout edits reach. A dynamic route needs a concrete
21
28
  path (`/memo/1`); `akan context --app <app>` lists every route with its params and search names.
22
29
  - The viewport is a 390x844 phone; `--desktop` is 1280x800. `--csr` loads each page in the CSR boot the native
@@ -15,6 +15,8 @@ This is the common failure. Import `Err` from the source matching the **runtime
15
15
  - server code: `import { Err } from "../dict"`
16
16
  - UI: `from "@libs/<lib>/client"` or `from "@apps/<app>/client"`
17
17
 
18
+ Never `from "akanjs/common"` (`no-import-common-err.grit`): that `Err` takes any string, so a mistyped key compiles.
19
+
18
20
  ## Where the rule does not apply
19
21
 
20
22
  The lint rule exempts tests, `*.constant.ts`, `common/**`, and `env/**`. The last two have **no legal `Err`
@@ -38,3 +40,8 @@ discards what the endpoint chose to say, and a bare `Error` is generalized to "I
38
40
  way out.
39
41
 
40
42
  Korean `.error()` messages end in `다.`.
43
+
44
+ **The framework's own failures carry a code.** A `NoDocumentError`, an `Exception` status class or another
45
+ `AkanError` names its kind in `code`; branch on that with `AkanError.is(error, "<code>")`, never on its message.
46
+
47
+ Every code, its status and whether the caller's JSON carries it: `get_guideline` with `errorCodes`.