@akanjs/cli 3.2.0-rc.8 → 3.2.0

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 (143) hide show
  1. package/.build-stamp +2 -2
  2. package/CodeAgent-fx6088tv.js +11 -0
  3. package/{CodeTui-qstk5vpj.js → CodeTui-zee8atsr.js} +822 -666
  4. package/README.ko.md +7 -0
  5. package/README.md +7 -0
  6. package/TunnelShare-9ry4vh0y.js +18 -0
  7. package/agent.command-x65f2ags.js +61 -0
  8. package/akanCode.js +12 -12
  9. package/appExecutor-79azsb2w.js +11 -0
  10. package/{application.command-m4rq4wc2.js → application.command-azbd1pb2.js} +83 -37
  11. package/{applicationBuildRunner-df7rx3ra.js → applicationBuildRunner-trfxv3pd.js} +49 -18
  12. package/buildBatch.proc.js +25 -11
  13. package/{cloud.command-a0gy0qq2.js → cloud.command-gapp4634.js} +33 -29
  14. package/cloud.script-3b401efv.js +35 -0
  15. package/{code.command-5rsdqw8s.js → code.command-5smx61yf.js} +13 -9
  16. package/context.command-ym5jbkny.js +64 -0
  17. package/context.runner-kctbfsde.js +34 -0
  18. package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
  19. package/{devTui-h77zrjv5.js → devTui-rf374y2w.js} +1 -1
  20. package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
  21. package/{guideline.command-mffxknbr.js → guideline.command-zwypaqsh.js} +9 -5
  22. package/guidelines/agentRule/agentRule.instruction.md +25 -9
  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 -4
  27. package/guidelines/conventions/rules/ts.md +3 -3
  28. package/guidelines/errorCodes/errorCodes.instruction.md +165 -0
  29. package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
  30. package/guidelines/mcpRule/mcpRule.instruction.md +225 -5
  31. package/guidelines/pageRule/pageRule.instruction.md +10 -1
  32. package/guidelines/queryRule/queryRule.instruction.md +3 -1
  33. package/guidelines/runtimeRule/runtimeRule.instruction.md +14 -8
  34. package/guidelines/transportRule/transportRule.instruction.md +31 -1
  35. package/incrementalBuilder.proc.js +577 -411
  36. package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
  37. package/{index-0gg15zwa.js → index-0s7w2085.js} +6 -6
  38. package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
  39. package/{index-swwjakt0.js → index-275a4r3n.js} +11 -11
  40. package/{index-j6gc8n14.js → index-2jmvfa62.js} +11 -9
  41. package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
  42. package/{index-exn38bzx.js → index-2yn3r67f.js} +116 -54
  43. package/{index-34792nh7.js → index-3txdtztz.js} +1 -1
  44. package/{index-28x1aszt.js → index-41a03gkj.js} +149 -53
  45. package/{index-2mf1aen9.js → index-4ss4gkv3.js} +2 -2
  46. package/{index-an76bdrv.js → index-612fdtbk.js} +1 -1
  47. package/{index-5radqwn2.js → index-67sd09ag.js} +12 -12
  48. package/{index-0hbtve0a.js → index-6dzjer7p.js} +32 -28
  49. package/{index-3ghdb7p5.js → index-71y6176j.js} +2777 -3676
  50. package/{index-xyn02k0w.js → index-78y75t0a.js} +662 -433
  51. package/index-7wf8snar.js +80 -0
  52. package/{index-skmtj8rm.js → index-8jtqfye2.js} +27 -10
  53. package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
  54. package/{index-nmvhjn8c.js → index-9wh04mqy.js} +93 -82
  55. package/{index-xvk2a75m.js → index-a860mx0m.js} +3 -3
  56. package/{index-5zwr4n6k.js → index-baccvws5.js} +65 -8
  57. package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
  58. package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
  59. package/{index-r0a604h4.js → index-c669pbyb.js} +5 -4
  60. package/{index-x40bdsca.js → index-dadwp2aw.js} +33 -98
  61. package/{index-vm0dn0mt.js → index-dmcpetwe.js} +200 -138
  62. package/{index-43f4h4cm.js → index-ebn9kgea.js} +6 -6
  63. package/{index-hqv34wzq.js → index-gt8phqpt.js} +10 -10
  64. package/{index-yckz5t8b.js → index-h901f24n.js} +516 -434
  65. package/{index-j3v29pq7.js → index-j0wr4e32.js} +219 -175
  66. package/{index-gcx48get.js → index-j592zfqc.js} +2 -2
  67. package/{index-grxs6fts.js → index-j6jjmn2r.js} +57 -31
  68. package/{index-w8yasvpc.js → index-jek2re5k.js} +2136 -2175
  69. package/{index-ny2k80mv.js → index-jf4vk1s0.js} +9 -2
  70. package/{index-gxav1bjz.js → index-k6vwww45.js} +9 -9
  71. package/{index-99qvtff2.js → index-kfvjzk8r.js} +5 -5
  72. package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
  73. package/{index-2r9ff9qm.js → index-nc3br31y.js} +2 -2
  74. package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
  75. package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
  76. package/{index-b4qq3rq0.js → index-rwgqba9p.js} +1 -1
  77. package/{index-rfzp4pqs.js → index-s885g0jj.js} +3 -3
  78. package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
  79. package/{index-k92x3vne.js → index-v7ajmsh3.js} +1 -1
  80. package/index-w1zexzpx.js +127 -0
  81. package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
  82. package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
  83. package/{index-rp4yf32g.js → index-xwwex8rf.js} +36 -29
  84. package/{index-ra9fvn7s.js → index-ybcb9wc8.js} +74 -38
  85. package/index-z92zm3wd.js +788 -0
  86. package/{index-j9790rhk.js → index-z96ks033.js} +1509 -1121
  87. package/index-zfnz878d.js +30 -0
  88. package/{index-2vgv7fs7.js → index-zmd9xxgd.js} +727 -693
  89. package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
  90. package/index.js +28 -24
  91. package/libExecutor-jc6f8hm6.js +10 -0
  92. package/{library.command-bmd7zc5m.js → library.command-nxvesvhb.js} +12 -5
  93. package/{localRegistry.command-y6en1599.js → localRegistry.command-xz62e4ng.js} +29 -24
  94. package/{module.command-7exfffqw.js → module.command-aaws9byg.js} +11 -7
  95. package/{package.command-adskw2rj.js → package.command-j7hv26p0.js} +14 -10
  96. package/package.json +8 -8
  97. package/{page.command-dw01272p.js → page.command-7yffs7n9.js} +8 -4
  98. package/{pipeline.command-0b1r3y5r.js → pipeline.command-7yk0zcng.js} +15 -9
  99. package/pkgExecutor-arxmvx4t.js +10 -0
  100. package/{primitive.command-byw6vc04.js → primitive.command-7a1pt715.js} +12 -8
  101. package/{projectTypecheck-kkrpq60a.js → projectTypecheck-f4qhbecd.js} +1 -1
  102. package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
  103. package/{quality.command-6rqnhzct.js → quality.command-c6mvrjh1.js} +25 -16
  104. package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
  105. package/{repair.command-rw5zymak.js → repair.command-093adzt9.js} +12 -8
  106. package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
  107. package/{scalar.command-2dyp9nh9.js → scalar.command-2ex84spb.js} +10 -6
  108. package/skills/akan-debug/SKILL.md +8 -5
  109. package/skills/akan-err/SKILL.md +7 -0
  110. package/skills/akan-mcp/SKILL.md +19 -1
  111. package/skills/akan-scaffold/SKILL.md +1 -1
  112. package/skills/akan-validate/SKILL.md +3 -3
  113. package/{subspace.command-111ynwv1.js → subspace.command-4n4n4jpv.js} +32 -24
  114. package/templates/app/page/_layout.tsx +13 -0
  115. package/templates/app/page/styles.css.template +40 -0
  116. package/templates/appSample/page/_index.tsx +9 -9
  117. package/templates/appSample/page/_layout.tsx +1 -0
  118. package/templates/appSample/page/styles.css.template +40 -5
  119. package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
  120. package/templates/biomeForm.ts +1 -1
  121. package/templates/env/_env.server.type.ts +1 -1
  122. package/templates/facetIndex/index.ts +2 -37
  123. package/templates/lib/sig.ts +0 -4
  124. package/templates/lib/useClient.ts +1 -1
  125. package/templates/workspaceRoot/.devcontainer/devcontainer.json.template +1 -1
  126. package/templates/workspaceRoot/AGENTS.md.template +2 -1
  127. package/templates/workspaceRoot/README.ts +4 -2
  128. package/{tunnel.command-2gcpfbdj.js → tunnel.command-f7ep1qfa.js} +17 -13
  129. package/{typeChecker-s640r6c0.js → typeChecker-7jt6abrs.js} +1 -1
  130. package/typecheck.proc.js +3 -2
  131. package/{verify.command-djgs86ma.js → verify.command-zrkxnvct.js} +21 -17
  132. package/{workflow.command-n0k2mxr5.js → workflow.command-ks16jegk.js} +21 -14
  133. package/{workspace.command-fh1qwxfx.js → workspace.command-ahhfpaag.js} +60 -54
  134. package/CodeAgent-x2p3a3e0.js +0 -11
  135. package/TunnelShare-c4xsfzg5.js +0 -15
  136. package/agent.command-9et2e27p.js +0 -52
  137. package/cloud.script-xze4zh7n.js +0 -31
  138. package/context.command-rk1dwrg4.js +0 -57
  139. package/context.runner-83ky5m1b.js +0 -30
  140. /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
  141. /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
  142. /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
  143. /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,10 +4,14 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-exn38bzx.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-bns3wcpc.js";
10
- import"./index-3ghdb7p5.js";
9
+ import"./index-71y6176j.js";
10
+ import"./index-by2tvsq6.js";
11
+ import"./index-z92zm3wd.js";
12
+ import"./index-zfnz878d.js";
13
+ import"./index-w1zexzpx.js";
14
+ import"./index-7wf8snar.js";
11
15
 
12
16
  // pkgs/@akanjs/cli/bunVersionGuard.ts
13
17
  class BunVersionGuard {
@@ -23,27 +27,27 @@ import path from "path";
23
27
 
24
28
  // pkgs/@akanjs/cli/commandModules.ts
25
29
  var commandModules = {
26
- workspace: async () => (await import("./workspace.command-fh1qwxfx.js")).WorkspaceCommand,
27
- agent: async () => (await import("./agent.command-9et2e27p.js")).AgentCommand,
28
- code: async () => (await import("./code.command-5rsdqw8s.js")).CodeCommand,
29
- application: async () => (await import("./application.command-m4rq4wc2.js")).ApplicationCommand,
30
- library: async () => (await import("./library.command-bmd7zc5m.js")).LibraryCommand,
31
- localRegistry: async () => (await import("./localRegistry.command-y6en1599.js")).LocalRegistryCommand,
32
- package: async () => (await import("./package.command-adskw2rj.js")).PackageCommand,
33
- module: async () => (await import("./module.command-7exfffqw.js")).ModuleCommand,
34
- page: async () => (await import("./page.command-dw01272p.js")).PageCommand,
35
- context: async () => (await import("./context.command-rk1dwrg4.js")).ContextCommand,
36
- cloud: async () => (await import("./cloud.command-a0gy0qq2.js")).CloudCommand,
37
- subspace: async () => (await import("./subspace.command-111ynwv1.js")).SubspaceCommand,
38
- guideline: async () => (await import("./guideline.command-mffxknbr.js")).GuidelineCommand,
39
- scalar: async () => (await import("./scalar.command-2dyp9nh9.js")).ScalarCommand,
40
- primitive: async () => (await import("./primitive.command-byw6vc04.js")).PrimitiveCommand,
41
- quality: async () => (await import("./quality.command-6rqnhzct.js")).QualityCommand,
42
- verify: async () => (await import("./verify.command-djgs86ma.js")).VerifyCommand,
43
- repair: async () => (await import("./repair.command-rw5zymak.js")).RepairCommand,
44
- workflow: async () => (await import("./workflow.command-n0k2mxr5.js")).WorkflowCommand,
45
- pipeline: async () => (await import("./pipeline.command-0b1r3y5r.js")).PipelineCommand,
46
- tunnel: async () => (await import("./tunnel.command-2gcpfbdj.js")).TunnelCommand
30
+ workspace: async () => (await import("./workspace.command-ahhfpaag.js")).WorkspaceCommand,
31
+ agent: async () => (await import("./agent.command-x65f2ags.js")).AgentCommand,
32
+ code: async () => (await import("./code.command-5smx61yf.js")).CodeCommand,
33
+ application: async () => (await import("./application.command-azbd1pb2.js")).ApplicationCommand,
34
+ library: async () => (await import("./library.command-nxvesvhb.js")).LibraryCommand,
35
+ localRegistry: async () => (await import("./localRegistry.command-xz62e4ng.js")).LocalRegistryCommand,
36
+ package: async () => (await import("./package.command-j7hv26p0.js")).PackageCommand,
37
+ module: async () => (await import("./module.command-aaws9byg.js")).ModuleCommand,
38
+ page: async () => (await import("./page.command-7yffs7n9.js")).PageCommand,
39
+ context: async () => (await import("./context.command-ym5jbkny.js")).ContextCommand,
40
+ cloud: async () => (await import("./cloud.command-gapp4634.js")).CloudCommand,
41
+ subspace: async () => (await import("./subspace.command-4n4n4jpv.js")).SubspaceCommand,
42
+ guideline: async () => (await import("./guideline.command-zwypaqsh.js")).GuidelineCommand,
43
+ scalar: async () => (await import("./scalar.command-2ex84spb.js")).ScalarCommand,
44
+ primitive: async () => (await import("./primitive.command-7a1pt715.js")).PrimitiveCommand,
45
+ quality: async () => (await import("./quality.command-c6mvrjh1.js")).QualityCommand,
46
+ verify: async () => (await import("./verify.command-zrkxnvct.js")).VerifyCommand,
47
+ repair: async () => (await import("./repair.command-093adzt9.js")).RepairCommand,
48
+ workflow: async () => (await import("./workflow.command-ks16jegk.js")).WorkflowCommand,
49
+ pipeline: async () => (await import("./pipeline.command-7yk0zcng.js")).PipelineCommand,
50
+ tunnel: async () => (await import("./tunnel.command-f7ep1qfa.js")).TunnelCommand
47
51
  };
48
52
  var commandModuleIds = Object.keys(commandModules);
49
53
 
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ LibExecutor2
4
+ } from "./index-zfnz878d.js";
5
+ import"./index-71y6176j.js";
6
+ import"./index-j4yvgfhr.js";
7
+ import"./index-by2tvsq6.js";
8
+ export {
9
+ LibExecutor2 as LibExecutor
10
+ };
@@ -3,13 +3,17 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-exn38bzx.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-3ghdb7p5.js";
8
+ import"./index-71y6176j.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
10
13
  import {
11
14
  LibraryScript
12
- } from "./index-j6gc8n14.js";
15
+ } from "./index-2jmvfa62.js";
16
+ import"./index-7wf8snar.js";
13
17
 
14
18
  // pkgs/@akanjs/cli/library/library.command.ts
15
19
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -22,7 +26,10 @@ class LibraryCommand extends command("library", [LibraryScript], ({ public: targ
22
26
  syncLibrary: target({ desc: "Sync dependencies and configuration for a library" }).with(Lib).exec(async function(lib) {
23
27
  await this.libraryScript.syncLibrary(lib);
24
28
  }),
25
- libraryStatus: target({ desc: "Report whether each library still matches the source it was installed from" }).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
29
+ libraryStatus: target({
30
+ desc: "Report whether each library still matches the source it was installed from",
31
+ readOnly: true
32
+ }).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
26
33
  await this.libraryScript.libraryStatus(workspace, format);
27
34
  }),
28
35
  installLibrary: target({ desc: "Install pre-built library templates (shared, util, etc.)" }).arg("libName", String, { desc: "name of library" }).with(Workspace).exec(async function(libName, workspace) {
@@ -4,43 +4,48 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-exn38bzx.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-bns3wcpc.js";
10
9
  import {
11
- parseEnvFile,
12
- PkgExecutor
13
- } from "./index-3ghdb7p5.js";
10
+ parseEnvFile
11
+ } from "./index-71y6176j.js";
12
+ import"./index-by2tvsq6.js";
13
+ import"./index-z92zm3wd.js";
14
+ import"./index-zfnz878d.js";
15
+ import {
16
+ PkgExecutor2
17
+ } from "./index-w1zexzpx.js";
14
18
  import {
15
19
  npmRegistryFromEnv,
16
20
  warnIgnoredNpmRegistry,
17
21
  getNpmRegistryUrl
18
- } from "./index-ny2k80mv.js";
19
- import"./index-vm0dn0mt.js";
20
- import"./index-43f4h4cm.js";
21
- import"./index-an76bdrv.js";
22
+ } from "./index-jf4vk1s0.js";
23
+ import"./index-dmcpetwe.js";
24
+ import"./index-ebn9kgea.js";
25
+ import"./index-612fdtbk.js";
22
26
  import"./index-m9jj544v.js";
23
- import"./index-nmvhjn8c.js";
24
- import"./index-xvk2a75m.js";
25
- import"./index-j6gc8n14.js";
26
- import"./index-j9790rhk.js";
27
- import"./index-b4qq3rq0.js";
27
+ import"./index-9wh04mqy.js";
28
+ import"./index-a860mx0m.js";
29
+ import"./index-2jmvfa62.js";
30
+ import"./index-z96ks033.js";
31
+ import"./index-rwgqba9p.js";
28
32
  import {
29
33
  ApplicationScript
30
- } from "./index-28x1aszt.js";
31
- import"./index-rfzp4pqs.js";
34
+ } from "./index-41a03gkj.js";
35
+ import"./index-s885g0jj.js";
32
36
  import {
33
37
  CloudRunner
34
- } from "./index-rp4yf32g.js";
35
- import"./index-qd7xn2bk.js";
36
- import"./index-9p260r4e.js";
37
- import"./index-cmg5ngqa.js";
38
- import"./index-5zwr4n6k.js";
38
+ } from "./index-xwwex8rf.js";
39
+ import"./index-trffs83s.js";
40
+ import"./index-p7beqww9.js";
41
+ import"./index-baccvws5.js";
42
+ import"./index-2ny1e95c.js";
39
43
  import {
40
44
  PackageScript
41
- } from "./index-swwjakt0.js";
42
- import"./index-gcx48get.js";
45
+ } from "./index-275a4r3n.js";
46
+ import"./index-j592zfqc.js";
43
47
  import"./index-9bv479q5.js";
48
+ import"./index-7wf8snar.js";
44
49
 
45
50
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
46
51
  import { mkdir, rm } from "fs/promises";
@@ -163,7 +168,7 @@ class LocalRegistryScript extends script("localRegistry", [
163
168
  }
164
169
  async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
165
170
  await this.packageScript.updateWorskpaceRootPackageJson(workspace);
166
- const pkgs = akanPkgs.map((pkgName) => PkgExecutor.from(workspace, pkgName));
171
+ const pkgs = akanPkgs.map((pkgName) => PkgExecutor2.from(workspace, pkgName));
167
172
  if (test)
168
173
  for (const pkg of pkgs)
169
174
  await this.applicationScript.test(pkg);
@@ -4,18 +4,22 @@ import {
4
4
  Module,
5
5
  ModuleOrService,
6
6
  command
7
- } from "./index-exn38bzx.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-bns3wcpc.js";
10
- import"./index-3ghdb7p5.js";
9
+ import"./index-71y6176j.js";
10
+ import"./index-by2tvsq6.js";
11
+ import"./index-z92zm3wd.js";
12
+ import"./index-zfnz878d.js";
13
+ import"./index-w1zexzpx.js";
11
14
  import {
12
15
  renderPrimitiveReport
13
- } from "./index-2vgv7fs7.js";
14
- import"./index-9p260r4e.js";
15
- import"./index-34792nh7.js";
16
+ } from "./index-zmd9xxgd.js";
17
+ import"./index-trffs83s.js";
18
+ import"./index-3txdtztz.js";
16
19
  import {
17
20
  ModuleScript
18
- } from "./index-hqv34wzq.js";
21
+ } from "./index-gt8phqpt.js";
22
+ import"./index-7wf8snar.js";
19
23
 
20
24
  // pkgs/@akanjs/cli/module/module.command.ts
21
25
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,21 +3,25 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-exn38bzx.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-3ghdb7p5.js";
10
- import"./index-qd7xn2bk.js";
11
- import"./index-9p260r4e.js";
12
- import"./index-cmg5ngqa.js";
13
- import"./index-5zwr4n6k.js";
8
+ import"./index-71y6176j.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
+ import"./index-trffs83s.js";
14
+ import"./index-p7beqww9.js";
15
+ import"./index-baccvws5.js";
16
+ import"./index-2ny1e95c.js";
14
17
  import {
15
18
  PackageScript
16
- } from "./index-swwjakt0.js";
19
+ } from "./index-275a4r3n.js";
20
+ import"./index-7wf8snar.js";
17
21
 
18
22
  // pkgs/@akanjs/cli/package/package.command.ts
19
23
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
20
- version: target({ desc: "Show version information for all packages" }).with(Workspace).exec(async function(workspace) {
24
+ version: target({ desc: "Show version information for all packages", readOnly: true }).with(Workspace).exec(async function(workspace) {
21
25
  await this.packageScript.version(workspace);
22
26
  }),
23
27
  createPackage: target({ desc: "Create a new package in pkgs/<name>/" }).option("name", String, { desc: "name of package" }).with(Workspace).exec(async function(name, workspace) {
@@ -32,7 +36,7 @@ class PackageCommand extends command("package", [PackageScript], ({ public: targ
32
36
  buildPackage: target({ desc: "Build a package for distribution" }).with(Pkg).exec(async function(pkg) {
33
37
  await this.packageScript.buildPackage(pkg);
34
38
  }),
35
- verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run" }).with(Pkg).exec(async function(pkg) {
39
+ verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run", readOnly: true }).with(Pkg).exec(async function(pkg) {
36
40
  await this.packageScript.verifyDistPackage(pkg);
37
41
  }),
38
42
  verifyAkanPublishPackages: target({ devOnly: true, desc: "Verify all Akan publish dist packages" }).with(Workspace).exec(async function(workspace) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.8",
3
+ "version": "3.2.0",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -31,15 +31,15 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@earendil-works/pi-agent-core": "1.3.0",
35
- "@earendil-works/pi-ai": "1.3.0",
36
- "@earendil-works/pi-codemode": "1.3.0",
37
- "@earendil-works/pi-coding-agent": "1.3.0",
38
- "@earendil-works/pi-mcp": "1.3.0",
39
- "@earendil-works/pi-tui": "1.3.0",
34
+ "@earendil-works/pi-agent-core": "1.5.2",
35
+ "@earendil-works/pi-ai": "1.5.2",
36
+ "@earendil-works/pi-codemode": "1.5.2",
37
+ "@earendil-works/pi-coding-agent": "1.5.2",
38
+ "@earendil-works/pi-mcp": "1.5.2",
39
+ "@earendil-works/pi-tui": "1.5.2",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.8",
42
+ "akanjs": "3.2.0",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,13 +3,17 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-exn38bzx.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-3ghdb7p5.js";
8
+ import"./index-71y6176j.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
10
13
  import {
11
14
  PageScript
12
- } from "./index-34792nh7.js";
15
+ } from "./index-3txdtztz.js";
16
+ import"./index-7wf8snar.js";
13
17
 
14
18
  // pkgs/@akanjs/cli/page/page.command.ts
15
19
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,19 +4,24 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-exn38bzx.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
+ import {
10
+ AkanAppConfig,
11
+ AkanWorkspaceConfig
12
+ } from "./index-71y6176j.js";
9
13
  import {
10
14
  FileSys2
11
- } from "./index-bns3wcpc.js";
15
+ } from "./index-by2tvsq6.js";
12
16
  import {
13
- AkanAppConfig,
14
- AkanWorkspaceConfig,
15
- AppExecutor
16
- } from "./index-3ghdb7p5.js";
17
+ AppExecutor2
18
+ } from "./index-z92zm3wd.js";
19
+ import"./index-zfnz878d.js";
20
+ import"./index-w1zexzpx.js";
17
21
  import {
18
22
  resolveMobileTargets
19
23
  } from "./index-m9jj544v.js";
24
+ import"./index-7wf8snar.js";
20
25
 
21
26
  // pkgs/@akanjs/cli/pipeline/pipeline.command.ts
22
27
  import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
@@ -1099,7 +1104,7 @@ class PipelineDefinition {
1099
1104
  }
1100
1105
  async#loadNativeTargets(app) {
1101
1106
  try {
1102
- const targets = await resolveMobileTargets(AppExecutor.from(this.#workspace, app), "all");
1107
+ const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
1103
1108
  return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
1104
1109
  } catch (error) {
1105
1110
  return { error: toError2(error).message };
@@ -1119,7 +1124,7 @@ class PipelineDefinition {
1119
1124
  }
1120
1125
  }
1121
1126
  async#loadApp(app) {
1122
- const executor = AppExecutor.from(this.#workspace, app);
1127
+ const executor = AppExecutor2.from(this.#workspace, app);
1123
1128
  const file = `apps/${app}/akan.config.ts`;
1124
1129
  const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
1125
1130
  try {
@@ -1314,7 +1319,8 @@ class PipelineScript extends script("pipeline", [PipelineRunner]) {
1314
1319
  class PipelineCommand extends command("pipeline", [PipelineScript], ({ public: target }) => ({
1315
1320
  pipeline: target({
1316
1321
  desc: "Plan the build pipeline declared in akan.config.ts (the workspace root's and each app's) without running it",
1317
- failureExitCode: 2
1322
+ failureExitCode: 2,
1323
+ readOnly: true
1318
1324
  }).arg("action", String, {
1319
1325
  desc: "plan: the JSON plan an executor runs \xB7 validate: check the definitions \xB7 dry-run: show the plan",
1320
1326
  default: "dry-run",
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ PkgExecutor2
4
+ } from "./index-w1zexzpx.js";
5
+ import"./index-71y6176j.js";
6
+ import"./index-j4yvgfhr.js";
7
+ import"./index-by2tvsq6.js";
8
+ export {
9
+ PkgExecutor2 as PkgExecutor
10
+ };
@@ -2,19 +2,23 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-exn38bzx.js";
5
+ } from "./index-2yn3r67f.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-3ghdb7p5.js";
7
+ import"./index-71y6176j.js";
8
+ import"./index-by2tvsq6.js";
9
+ import"./index-z92zm3wd.js";
10
+ import"./index-zfnz878d.js";
11
+ import"./index-w1zexzpx.js";
9
12
  import {
10
13
  renderPrimitiveReport
11
- } from "./index-2vgv7fs7.js";
12
- import"./index-9p260r4e.js";
13
- import"./index-34792nh7.js";
14
- import"./index-hqv34wzq.js";
14
+ } from "./index-zmd9xxgd.js";
15
+ import"./index-trffs83s.js";
16
+ import"./index-3txdtztz.js";
17
+ import"./index-gt8phqpt.js";
15
18
  import {
16
19
  PrimitiveScript
17
- } from "./index-0hbtve0a.js";
20
+ } from "./index-6dzjer7p.js";
21
+ import"./index-7wf8snar.js";
18
22
 
19
23
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
20
24
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-3ghdb7p5.js";
4
+ } from "./index-71y6176j.js";
5
5
  import"./index-j4yvgfhr.js";
6
6
  export {
7
7
  ProjectTypecheck2 as ProjectTypecheck
@@ -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,29 +3,35 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-exn38bzx.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
8
+ import"./index-71y6176j.js";
9
+ import"./index-by2tvsq6.js";
9
10
  import {
10
- AppExecutor,
11
- LibExecutor,
12
- PkgExecutor
13
- } from "./index-3ghdb7p5.js";
11
+ AppExecutor2
12
+ } from "./index-z92zm3wd.js";
13
+ import {
14
+ LibExecutor2
15
+ } from "./index-zfnz878d.js";
16
+ import {
17
+ PkgExecutor2
18
+ } from "./index-w1zexzpx.js";
14
19
  import {
15
20
  MaintainabilityBaseline
16
- } from "./index-5zwr4n6k.js";
21
+ } from "./index-baccvws5.js";
17
22
  import {
18
23
  WorkspaceRunner,
19
24
  AkanQualityScanner,
20
25
  formatQualityScanResult,
21
26
  formatSsrScanResult
22
- } from "./index-xyn02k0w.js";
23
- import"./index-9p260r4e.js";
27
+ } from "./index-78y75t0a.js";
28
+ import"./index-trffs83s.js";
29
+ import"./index-1p81ecbz.js";
24
30
  import"./index-62md4dwy.js";
25
- import"./index-ygdbn9jn.js";
26
- import"./index-hj6w4ka1.js";
27
- import"./index-ny2k80mv.js";
31
+ import"./index-zyb0ebm4.js";
32
+ import"./index-jf4vk1s0.js";
28
33
  import"./index-t4d0ckde.js";
34
+ import"./index-7wf8snar.js";
29
35
 
30
36
  // pkgs/@akanjs/cli/quality/quality.script.ts
31
37
  import { Logger } from "akanjs/common";
@@ -46,9 +52,9 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
46
52
  async baseline(workspace, { force = false } = {}) {
47
53
  const [appNames, libNames, pkgNames] = await workspace.getExecs();
48
54
  const execs = [
49
- ...appNames.map((appName) => AppExecutor.from(workspace, appName)),
50
- ...libNames.map((libName) => LibExecutor.from(workspace, libName)),
51
- ...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))
52
58
  ];
53
59
  const { fileName } = MaintainabilityBaseline;
54
60
  for (const exec of execs) {
@@ -67,7 +73,10 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
67
73
 
68
74
  // pkgs/@akanjs/cli/quality/quality.command.ts
69
75
  class QualityCommand extends command("quality", [QualityScript], ({ public: target }) => ({
70
- quality: target({ desc: "Scan apps and libs for Akan code quality warnings" }).arg("action", String, { desc: "quality action", default: "scan", enum: ["scan", "ssr", "baseline"] }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).option("force", Boolean, { flag: "F", desc: "baseline: rewrite an existing akan.baseline.json", default: false }).with(Workspace).exec(async function(action, format, force, workspace) {
76
+ quality: target({
77
+ desc: "Scan apps and libs for Akan code quality warnings",
78
+ readOnly: ({ action }) => action !== "baseline"
79
+ }).arg("action", String, { desc: "quality action", default: "scan", enum: ["scan", "ssr", "baseline"] }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).option("force", Boolean, { flag: "F", desc: "baseline: rewrite an existing akan.baseline.json", default: false }).with(Workspace).exec(async function(action, format, force, workspace) {
71
80
  if (action === "scan")
72
81
  await this.qualityScript.scan(workspace, format);
73
82
  else if (action === "ssr")
@@ -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,17 +3,21 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-exn38bzx.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-bns3wcpc.js";
9
- import"./index-3ghdb7p5.js";
10
- import"./index-yckz5t8b.js";
11
- import"./index-hj6w4ka1.js";
12
- import"./index-2vgv7fs7.js";
13
- import"./index-9p260r4e.js";
8
+ import"./index-71y6176j.js";
9
+ import"./index-by2tvsq6.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
+ import"./index-zmd9xxgd.js";
14
+ import"./index-trffs83s.js";
15
+ import"./index-h901f24n.js";
16
+ import"./index-1p81ecbz.js";
14
17
  import {
15
18
  RepairRunner
16
- } from "./index-99qvtff2.js";
19
+ } from "./index-kfvjzk8r.js";
20
+ import"./index-7wf8snar.js";
17
21
 
18
22
  // pkgs/@akanjs/cli/repair/repair.script.ts
19
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,17 +2,21 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-exn38bzx.js";
5
+ } from "./index-2yn3r67f.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-bns3wcpc.js";
8
- import"./index-3ghdb7p5.js";
7
+ import"./index-71y6176j.js";
8
+ import"./index-by2tvsq6.js";
9
+ import"./index-z92zm3wd.js";
10
+ import"./index-zfnz878d.js";
11
+ import"./index-w1zexzpx.js";
9
12
  import {
10
13
  renderPrimitiveReport
11
- } from "./index-2vgv7fs7.js";
12
- import"./index-9p260r4e.js";
14
+ } from "./index-zmd9xxgd.js";
15
+ import"./index-trffs83s.js";
13
16
  import {
14
17
  ScalarScript
15
- } from "./index-2mf1aen9.js";
18
+ } from "./index-4ss4gkv3.js";
19
+ import"./index-7wf8snar.js";
16
20
 
17
21
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
18
22
  import { Logger, lowerlize } from "akanjs/common";