@akanjs/cli 3.1.0-rc.2 → 3.1.0-rc.20

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 (100) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-q50k4s45.js → CodeAgent-n3tzjm91.js} +2 -2
  3. package/{CodeAgentRpcHost-p7h6n2hp.js → CodeAgentRpcHost-9g27hmer.js} +1 -1
  4. package/{CodeTui-62g35ztk.js → CodeTui-fnm9ft4d.js} +47 -4
  5. package/TunnelShare-661cxz5e.js +14 -0
  6. package/{agent.command-adfd5299.js → agent.command-3qxf4xcj.js} +5 -5
  7. package/akanCode.js +7 -5
  8. package/{application.command-hj3gv1rx.js → application.command-zfja7x4r.js} +12 -11
  9. package/{applicationBuildRunner-by10r9gf.js → applicationBuildRunner-vh4j6vdv.js} +16 -9
  10. package/buildBatch.proc.js +7 -7
  11. package/{cloud.command-k2fhaape.js → cloud.command-fcc8e8tp.js} +17 -16
  12. package/cloud.script-1xt3tnts.js +24 -0
  13. package/{code.command-kt5zgcc2.js → code.command-130bdmhe.js} +25 -12
  14. package/{context.command-8fgn42jw.js → context.command-0qx447mb.js} +17 -16
  15. package/context.runner-1vsjztjg.js +25 -0
  16. package/{dependencyScanner-06z2dmrr.js → dependencyScanner-3afj2vt1.js} +1 -1
  17. package/{guideline.command-3yxxr2mm.js → guideline.command-cv5bmrx2.js} +2 -2
  18. package/guidelines/agentRule/agentRule.instruction.md +25 -10
  19. package/guidelines/conventions/conventions.instruction.md +463 -1084
  20. package/guidelines/cssRule/cssRule.instruction.md +16 -1
  21. package/guidelines/fieldRule/fieldRule.instruction.md +74 -0
  22. package/guidelines/framework/framework.instruction.md +4 -7
  23. package/guidelines/mcpRule/mcpRule.instruction.md +16 -9
  24. package/guidelines/modelConstant/modelConstant.instruction.md +2 -1
  25. package/guidelines/modelStore/modelStore.instruction.md +16 -0
  26. package/guidelines/pageRule/pageRule.instruction.md +80 -0
  27. package/guidelines/queryRule/queryRule.instruction.md +47 -12
  28. package/guidelines/runtimeRule/runtimeRule.instruction.md +89 -2
  29. package/guidelines/ssrRule/ssrRule.instruction.md +13 -0
  30. package/guidelines/transportRule/transportRule.instruction.md +107 -8
  31. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +4 -4
  32. package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +70 -7
  33. package/incrementalBuilder.proc.js +4 -4
  34. package/{index-nq045px5.js → index-192ha4xh.js} +356 -307
  35. package/{index-t7nws9mx.js → index-1djcjcre.js} +661 -448
  36. package/{index-h85cxfkg.js → index-1p98exm2.js} +2 -2
  37. package/{index-hnby7p9n.js → index-1xj2t7cb.js} +7 -7
  38. package/{index-wa5jbxj1.js → index-2mrn1mrg.js} +1 -0
  39. package/{index-58vvz603.js → index-35hc95h5.js} +1 -1
  40. package/{index-tv8fjaba.js → index-4mhy6qme.js} +4 -4
  41. package/{index-rk9sdys3.js → index-5edzv8fn.js} +5 -5
  42. package/{index-k9rrten6.js → index-5nd1wtkv.js} +92 -94
  43. package/index-62md4dwy.js +260 -0
  44. package/{index-kc8z134d.js → index-665zp9rs.js} +38 -15
  45. package/{index-jwqtchha.js → index-86jt2a0e.js} +1 -1
  46. package/{index-d2242ksy.js → index-at7bz0xq.js} +3 -0
  47. package/{index-sqfdmb5b.js → index-awbdfcf2.js} +4 -4
  48. package/{index-azh29dc8.js → index-axs61rna.js} +19 -14
  49. package/{index-3hx1z96c.js → index-bqbf654f.js} +1 -1
  50. package/{index-6726qr1m.js → index-cpb3nvma.js} +57 -58
  51. package/{index-pyxn1b53.js → index-d72hfmdm.js} +13 -13
  52. package/{index-8zdwpxef.js → index-dye8pnxx.js} +119 -81
  53. package/{index-z507nzhg.js → index-fmzcs8v6.js} +4 -4
  54. package/{index-3reaaa1h.js → index-fyq1z6kt.js} +29 -27
  55. package/{index-0909wckt.js → index-g1mbppa9.js} +238 -236
  56. package/{index-fjsv10hd.js → index-hsadfb6c.js} +7 -7
  57. package/{index-tz5evhdr.js → index-j237xtew.js} +6 -6
  58. package/{index-nq2ja5e0.js → index-j4mkhz93.js} +3 -3
  59. package/{index-31ce9vhg.js → index-jw1zm273.js} +28 -30
  60. package/{index-q958tqqg.js → index-m9jj544v.js} +1 -1
  61. package/{index-8935h3n1.js → index-mdjc93e1.js} +1 -1
  62. package/{index-bea2gwc6.js → index-pydbnfez.js} +2 -2
  63. package/{index-20cebtth.js → index-qtfmtcrw.js} +17 -15
  64. package/{index-sby8fe1p.js → index-qwa5k1j8.js} +1 -1
  65. package/{index-e9prnmyt.js → index-tamvyvj3.js} +3 -3
  66. package/{index-rhbabmja.js → index-trpasv9q.js} +260 -259
  67. package/{index-2ahj896a.js → index-tvehn2sp.js} +1 -1
  68. package/{index-2etqq75t.js → index-va06nr10.js} +1090 -1078
  69. package/{index-g0vwzy9m.js → index-vk0pa0mn.js} +20 -21
  70. package/{index-xpdgxsj5.js → index-w44cy4vs.js} +2216 -2216
  71. package/index.js +22 -22
  72. package/{library.command-8tw59xzj.js → library.command-erp2f56n.js} +3 -3
  73. package/{localRegistry.command-tf3dmznd.js → localRegistry.command-hj3p16p5.js} +15 -14
  74. package/{module.command-9vm8hffy.js → module.command-gs2r615e.js} +5 -5
  75. package/{package.command-erbxe2tz.js → package.command-j10r76ax.js} +4 -4
  76. package/package.json +21 -21
  77. package/{page.command-jpavcj0p.js → page.command-4h4a8pnh.js} +3 -3
  78. package/{pipeline.command-b8rzvjvv.js → pipeline.command-a2nrk26m.js} +3 -3
  79. package/{primitive.command-sm32chzk.js → primitive.command-w6t0asqz.js} +6 -6
  80. package/{projectTypecheck-jamtx95x.js → projectTypecheck-f534enqj.js} +1 -1
  81. package/{quality.command-pkd17n6y.js → quality.command-77x7vbbx.js} +4 -4
  82. package/{repair.command-8y4mq6hs.js → repair.command-y6sstev7.js} +5 -5
  83. package/{scalar.command-q8khmyx5.js → scalar.command-20b8cy0k.js} +4 -4
  84. package/skills/akan-code/SKILL.md +4 -0
  85. package/skills/akan-store/SKILL.md +2 -1
  86. package/{subspace.command-51n0ykbx.js → subspace.command-baz73jpk.js} +11 -10
  87. package/templates/appSample/lib/task/Task.Util.tsx +7 -7
  88. package/templates/appSample/lib/task/Task.Zone.tsx +1 -1
  89. package/templates/appSample/ui/QuantityControl.tsx +2 -2
  90. package/templates/crudSinglePage/page.tsx +1 -1
  91. package/templates/lib/cnst.ts +0 -1
  92. package/templates/workspaceRoot/.gitignore.template +23 -52
  93. package/templates/workspaceRoot/biome.json.template +1 -1
  94. package/{tunnel.command-7820vtxq.js → tunnel.command-2kw8vt9g.js} +8 -7
  95. package/{workflow.command-n5sv4wqz.js → workflow.command-2djwmpqf.js} +10 -10
  96. package/{workspace.command-zdy60jh8.js → workspace.command-jqs7vjhe.js} +29 -28
  97. package/TunnelShare-f1egrktx.js +0 -13
  98. package/cloud.script-z8p5dz7e.js +0 -23
  99. package/context.runner-hnh0rg7m.js +0 -24
  100. package/index-n68jx79w.js +0 -120
package/index.js CHANGED
@@ -4,35 +4,35 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-31ce9vhg.js";
7
+ } from "./index-jw1zm273.js";
8
8
  import"./index-52w0fvh8.js";
9
- import"./index-2etqq75t.js";
9
+ import"./index-va06nr10.js";
10
10
 
11
11
  // pkgs/@akanjs/cli/commandManifest.ts
12
12
  import path from "path";
13
13
 
14
14
  // pkgs/@akanjs/cli/commandModules.ts
15
15
  var commandModules = {
16
- workspace: async () => (await import("./workspace.command-zdy60jh8.js")).WorkspaceCommand,
17
- agent: async () => (await import("./agent.command-adfd5299.js")).AgentCommand,
18
- code: async () => (await import("./code.command-kt5zgcc2.js")).CodeCommand,
19
- application: async () => (await import("./application.command-hj3gv1rx.js")).ApplicationCommand,
20
- library: async () => (await import("./library.command-8tw59xzj.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-tf3dmznd.js")).LocalRegistryCommand,
22
- package: async () => (await import("./package.command-erbxe2tz.js")).PackageCommand,
23
- module: async () => (await import("./module.command-9vm8hffy.js")).ModuleCommand,
24
- page: async () => (await import("./page.command-jpavcj0p.js")).PageCommand,
25
- context: async () => (await import("./context.command-8fgn42jw.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-k2fhaape.js")).CloudCommand,
27
- subspace: async () => (await import("./subspace.command-51n0ykbx.js")).SubspaceCommand,
28
- guideline: async () => (await import("./guideline.command-3yxxr2mm.js")).GuidelineCommand,
29
- scalar: async () => (await import("./scalar.command-q8khmyx5.js")).ScalarCommand,
30
- primitive: async () => (await import("./primitive.command-sm32chzk.js")).PrimitiveCommand,
31
- quality: async () => (await import("./quality.command-pkd17n6y.js")).QualityCommand,
32
- repair: async () => (await import("./repair.command-8y4mq6hs.js")).RepairCommand,
33
- workflow: async () => (await import("./workflow.command-n5sv4wqz.js")).WorkflowCommand,
34
- pipeline: async () => (await import("./pipeline.command-b8rzvjvv.js")).PipelineCommand,
35
- tunnel: async () => (await import("./tunnel.command-7820vtxq.js")).TunnelCommand
16
+ workspace: async () => (await import("./workspace.command-jqs7vjhe.js")).WorkspaceCommand,
17
+ agent: async () => (await import("./agent.command-3qxf4xcj.js")).AgentCommand,
18
+ code: async () => (await import("./code.command-130bdmhe.js")).CodeCommand,
19
+ application: async () => (await import("./application.command-zfja7x4r.js")).ApplicationCommand,
20
+ library: async () => (await import("./library.command-erp2f56n.js")).LibraryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-hj3p16p5.js")).LocalRegistryCommand,
22
+ package: async () => (await import("./package.command-j10r76ax.js")).PackageCommand,
23
+ module: async () => (await import("./module.command-gs2r615e.js")).ModuleCommand,
24
+ page: async () => (await import("./page.command-4h4a8pnh.js")).PageCommand,
25
+ context: async () => (await import("./context.command-0qx447mb.js")).ContextCommand,
26
+ cloud: async () => (await import("./cloud.command-fcc8e8tp.js")).CloudCommand,
27
+ subspace: async () => (await import("./subspace.command-baz73jpk.js")).SubspaceCommand,
28
+ guideline: async () => (await import("./guideline.command-cv5bmrx2.js")).GuidelineCommand,
29
+ scalar: async () => (await import("./scalar.command-20b8cy0k.js")).ScalarCommand,
30
+ primitive: async () => (await import("./primitive.command-w6t0asqz.js")).PrimitiveCommand,
31
+ quality: async () => (await import("./quality.command-77x7vbbx.js")).QualityCommand,
32
+ repair: async () => (await import("./repair.command-y6sstev7.js")).RepairCommand,
33
+ workflow: async () => (await import("./workflow.command-2djwmpqf.js")).WorkflowCommand,
34
+ pipeline: async () => (await import("./pipeline.command-a2nrk26m.js")).PipelineCommand,
35
+ tunnel: async () => (await import("./tunnel.command-2kw8vt9g.js")).TunnelCommand
36
36
  };
37
37
  var commandModuleIds = Object.keys(commandModules);
38
38
 
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-2etqq75t.js";
8
+ import"./index-va06nr10.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-bea2gwc6.js";
11
+ } from "./index-pydbnfez.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,31 +4,32 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-31ce9vhg.js";
7
+ } from "./index-jw1zm273.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-2etqq75t.js";
12
- import"./index-k9rrten6.js";
13
- import"./index-g0vwzy9m.js";
14
- import"./index-0909wckt.js";
15
- import"./index-nq045px5.js";
16
- import"./index-bea2gwc6.js";
11
+ } from "./index-va06nr10.js";
12
+ import"./index-5nd1wtkv.js";
13
+ import"./index-vk0pa0mn.js";
14
+ import"./index-m9jj544v.js";
15
+ import"./index-g1mbppa9.js";
16
+ import"./index-192ha4xh.js";
17
+ import"./index-pydbnfez.js";
17
18
  import {
18
19
  ApplicationScript
19
- } from "./index-20cebtth.js";
20
+ } from "./index-qtfmtcrw.js";
20
21
  import"./index-7md2g9vw.js";
21
- import"./index-6726qr1m.js";
22
+ import"./index-cpb3nvma.js";
22
23
  import {
23
24
  getNpmRegistryUrl,
24
25
  CloudRunner
25
- } from "./index-3reaaa1h.js";
26
- import"./index-2ahj896a.js";
26
+ } from "./index-fyq1z6kt.js";
27
+ import"./index-tvehn2sp.js";
27
28
  import {
28
29
  PackageScript
29
- } from "./index-tz5evhdr.js";
30
- import"./index-58vvz603.js";
31
- import"./index-kc8z134d.js";
30
+ } from "./index-j237xtew.js";
31
+ import"./index-35hc95h5.js";
32
+ import"./index-665zp9rs.js";
32
33
 
33
34
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
34
35
  import { mkdir, rm } from "fs/promises";
@@ -3,16 +3,16 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-2etqq75t.js";
8
+ import"./index-va06nr10.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-rhbabmja.js";
12
- import"./index-jwqtchha.js";
11
+ } from "./index-trpasv9q.js";
12
+ import"./index-86jt2a0e.js";
13
13
  import {
14
14
  ModuleScript
15
- } from "./index-z507nzhg.js";
15
+ } from "./index-fmzcs8v6.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/module/module.command.ts
18
18
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,13 +3,13 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-2etqq75t.js";
9
- import"./index-2ahj896a.js";
8
+ import"./index-va06nr10.js";
9
+ import"./index-tvehn2sp.js";
10
10
  import {
11
11
  PackageScript
12
- } from "./index-tz5evhdr.js";
12
+ } from "./index-j237xtew.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/package/package.command.ts
15
15
  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.1.0-rc.2",
3
+ "version": "3.1.0-rc.20",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -31,31 +31,31 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@earendil-works/chord": "0.86.1",
35
- "@earendil-works/pi-agent-core": "0.86.1",
36
- "@earendil-works/pi-ai": "0.86.1",
37
- "@earendil-works/pi-coding-agent": "0.86.1",
38
- "@earendil-works/pi-telemetry": "0.86.1",
39
- "@earendil-works/pi-tui": "0.86.1",
40
- "@inquirer/prompts": "^8.4.3",
41
- "@tailwindcss/node": "^4.3.0",
42
- "akanjs": "3.1.0-rc.2",
43
- "chalk": "^5.6.2",
44
- "commander": "^14.0.3",
45
- "dayjs": "^1.11.20",
46
- "fontaine": "^0.8.0",
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",
40
+ "@inquirer/prompts": "^8.7.3",
41
+ "@tailwindcss/node": "^4.3.3",
42
+ "akanjs": "3.1.0-rc.20",
43
+ "chalk": "^6.0.1",
44
+ "commander": "^15.0.0",
45
+ "dayjs": "^1.11.23",
46
+ "fontaine": "^1.0.1",
47
47
  "fonteditor-core": "^2.6.3",
48
- "ignore": "^7.0.5",
48
+ "ignore": "^7.0.12",
49
49
  "ink": "^6.8.0",
50
- "ora": "^9.4.0",
50
+ "ora": "^9.4.1",
51
51
  "qrcode": "^1.5.4",
52
- "react": "19.3.0",
52
+ "react": "19.3.1",
53
53
  "ssh2": "^1.17.0",
54
- "string-width": "^8.2.1",
55
- "subset-font": "^2.5.0",
54
+ "string-width": "^8.3.0",
55
+ "subset-font": "^2.9.0",
56
56
  "tailwind-scrollbar": "^4.0.2",
57
- "tailwindcss": "^4.3.0",
58
- "typebox": "1.1.38",
57
+ "tailwindcss": "^4.3.3",
58
+ "typebox": "1.3.37",
59
59
  "typescript": "^6.0.3"
60
60
  },
61
61
  "devDependencies": {},
@@ -3,12 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-2etqq75t.js";
8
+ import"./index-va06nr10.js";
9
9
  import {
10
10
  PageScript
11
- } from "./index-jwqtchha.js";
11
+ } from "./index-86jt2a0e.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/page/page.command.ts
14
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-31ce9vhg.js";
7
+ } from "./index-jw1zm273.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-52w0fvh8.js";
@@ -12,10 +12,10 @@ import {
12
12
  AkanAppConfig,
13
13
  AkanWorkspaceConfig,
14
14
  AppExecutor
15
- } from "./index-2etqq75t.js";
15
+ } from "./index-va06nr10.js";
16
16
  import {
17
17
  resolveMobileTargets
18
- } from "./index-q958tqqg.js";
18
+ } from "./index-m9jj544v.js";
19
19
 
20
20
  // pkgs/@akanjs/cli/pipeline/pipeline.command.ts
21
21
  import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-31ce9vhg.js";
5
+ } from "./index-jw1zm273.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-2etqq75t.js";
7
+ import"./index-va06nr10.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-rhbabmja.js";
11
- import"./index-jwqtchha.js";
12
- import"./index-z507nzhg.js";
10
+ } from "./index-trpasv9q.js";
11
+ import"./index-86jt2a0e.js";
12
+ import"./index-fmzcs8v6.js";
13
13
  import {
14
14
  PrimitiveScript
15
- } from "./index-sqfdmb5b.js";
15
+ } from "./index-awbdfcf2.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
18
18
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-2etqq75t.js";
4
+ } from "./index-va06nr10.js";
5
5
  export {
6
6
  ProjectTypecheck2 as ProjectTypecheck
7
7
  };
@@ -3,7 +3,7 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
8
  import {
9
9
  rootAllowedFiles,
@@ -12,7 +12,7 @@ import {
12
12
  libFacetRootHintOf,
13
13
  facetIndexShadowOf,
14
14
  rootEntryHintOf
15
- } from "./index-2etqq75t.js";
15
+ } from "./index-va06nr10.js";
16
16
 
17
17
  // pkgs/@akanjs/devkit/qualityScanner.ts
18
18
  import { createHash } from "crypto";
@@ -49,7 +49,7 @@ class AbstractDoc {
49
49
  return folder.startsWith("_") ? "service" : "domain";
50
50
  }
51
51
  static async findAll(sys, { module } = {}) {
52
- const filePaths = (await sys.getAllFiles(`${AbstractDoc.#facetRoots}/**/*${AbstractDoc.suffix}`)).map((filePath) => filePath.split(path.sep).join("/")).sort();
52
+ const filePaths = (await sys.getAllFiles(`${AbstractDoc.#facetRoots}/**/*${AbstractDoc.suffix}`)).map((filePath) => filePath.split(path.sep).join("/")).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
53
53
  const docs = await Promise.all(filePaths.map((filePath) => AbstractDoc.read(sys, filePath)));
54
54
  if (!module)
55
55
  return docs;
@@ -555,7 +555,7 @@ class AkanQualityScanner {
555
555
  continue;
556
556
  await this.#walkTargetFiles(workspaceRoot, absoluteTargetRoot, ignoreFilter, files);
557
557
  }
558
- return files.sort();
558
+ return files.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
559
559
  }
560
560
  async#readGitIgnore(workspaceRoot) {
561
561
  const gitIgnorePath = path2.join(workspaceRoot, ".gitignore");
@@ -3,15 +3,15 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-31ce9vhg.js";
6
+ } from "./index-jw1zm273.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-2etqq75t.js";
8
+ import"./index-va06nr10.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-rhbabmja.js";
11
- import"./index-rk9sdys3.js";
10
+ import"./index-trpasv9q.js";
11
+ import"./index-5edzv8fn.js";
12
12
  import {
13
13
  RepairRunner
14
- } from "./index-nq2ja5e0.js";
14
+ } from "./index-j4mkhz93.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.script.ts
17
17
  import { Logger } from "akanjs/common";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-31ce9vhg.js";
5
+ } from "./index-jw1zm273.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-2etqq75t.js";
7
+ import"./index-va06nr10.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-rhbabmja.js";
10
+ } from "./index-trpasv9q.js";
11
11
  import {
12
12
  ScalarScript
13
- } from "./index-h85cxfkg.js";
13
+ } from "./index-1p98exm2.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
16
16
  import { Logger, lowerlize } from "akanjs/common";
@@ -78,6 +78,9 @@ Stored under `.akan/code/sessions` — project history, so a second checkout of
78
78
  - `/peers` lists other `akan code` sessions running in this workspace; `/msg <peer> <text>` hands one a
79
79
  message.
80
80
  - `/clear` wipes the screen and keeps the conversation; `/compact [notes]` shortens what the model carries.
81
+ - `/autocompact <percent>` compacts on its own once the window is that full, in steps of 10 (`/autocompact 60`);
82
+ `100` is the default, which waits until 32k remain for the reply. `akan code --compact-at 60` (`-c`) starts
83
+ with it, and a share under the 20k every compaction keeps is refused.
81
84
 
82
85
  ## Model, effort, keys
83
86
 
@@ -119,6 +122,7 @@ akan code -i "<prompt>" open the session with the prompt already sent
119
122
  --app <name> narrow the agent to one app
120
123
  --profile local|pod|review|web what it may do (default local)
121
124
  --model <provider>/<id> --thinking, --json, --rpc, --resume <id>
125
+ --compact-at <percent> compact once the window is this full (10, 20, … 100)
122
126
  ```
123
127
 
124
128
  `review` reads and never writes, loads no project context files, and keeps no session on disk. `pod` has
@@ -26,7 +26,8 @@ For a model `comment` (`<Slice>` is a signal slice suffix, e.g. `InPublic`):
26
26
 
27
27
  ## Generated state — `st.use.*`
28
28
 
29
- `comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `commentSubmit`, `commentModal`,
29
+ `comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `commentFormUploading` (uploads in flight, per
30
+ `File` field — non-empty means do not submit), `commentSubmit`, `commentModal`,
30
31
  `commentViewAt`, `commentOperation`; per slice `commentList<Slice>`, `commentListLoading<Slice>`,
31
32
  `commentInitList<Slice>`, `commentSelection<Slice>`, `commentInsight<Slice>`, `pageOfComment<Slice>`,
32
33
  `lastPageOfComment<Slice>`, `hasMoreOfComment<Slice>`, `limitOfComment<Slice>`, `sortOfComment<Slice>`.
@@ -5,7 +5,7 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-31ce9vhg.js";
8
+ } from "./index-jw1zm273.js";
9
9
  import {
10
10
  FileSys2
11
11
  } from "./index-52w0fvh8.js";
@@ -14,19 +14,20 @@ import {
14
14
  Executor,
15
15
  WorkspaceExecutor,
16
16
  AppExecutor
17
- } from "./index-2etqq75t.js";
17
+ } from "./index-va06nr10.js";
18
18
  import {
19
19
  GlobalConfig
20
- } from "./index-6726qr1m.js";
21
- import"./index-0909wckt.js";
22
- import"./index-nq045px5.js";
20
+ } from "./index-cpb3nvma.js";
21
+ import"./index-m9jj544v.js";
22
+ import"./index-g1mbppa9.js";
23
+ import"./index-192ha4xh.js";
23
24
  import {
24
25
  SubspaceConfig
25
26
  } from "./index-4pf8g7ff.js";
26
27
  import {
27
28
  SlicePlanner
28
- } from "./index-58vvz603.js";
29
- import"./index-kc8z134d.js";
29
+ } from "./index-35hc95h5.js";
30
+ import"./index-665zp9rs.js";
30
31
 
31
32
  // pkgs/@akanjs/devkit/subspace.ts
32
33
  import { mkdir as mkdir2 } from "fs/promises";
@@ -219,11 +220,11 @@ class SubspaceClone {
219
220
  }
220
221
  }
221
222
  #localEnv() {
222
- const { serveDomain } = WorkspaceExecutor.getBaseDevEnv();
223
+ const { serveDomain, defaulted = [] } = WorkspaceExecutor.getBaseDevEnv();
223
224
  return {
224
225
  AKAN_WORKSPACE_ID: "local",
225
226
  AKAN_PUBLIC_REPO_NAME: this.#declaration.name,
226
- AKAN_PUBLIC_SERVE_DOMAIN: serveDomain,
227
+ ...defaulted.includes("AKAN_PUBLIC_SERVE_DOMAIN") ? {} : { AKAN_PUBLIC_SERVE_DOMAIN: serveDomain },
227
228
  AKAN_PUBLIC_ENV: "local",
228
229
  AKAN_PUBLIC_OPERATION_MODE: "local",
229
230
  AKAN_PUBLIC_LOG_LEVEL: "warn"
@@ -824,7 +825,7 @@ class SubspaceRunner extends runner("subspace") {
824
825
  if (!asked)
825
826
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
826
827
  const { libs } = await subspace.slice();
827
- const { CloudScript } = await import("./cloud.script-z8p5dz7e.js");
828
+ const { CloudScript } = await import("./cloud.script-1xt3tnts.js");
828
829
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
829
830
  host,
830
831
  workspaceId,
@@ -20,7 +20,7 @@ interface StartProps {
20
20
  }
21
21
 
22
22
  export const Start = ({ taskId }: StartProps) => (
23
- <button className={jellyButtonRecipe({ variant: "primary", size: "xs" })} onClick={() => st.do.startTask(taskId)}>
23
+ <button type="button" className={jellyButtonRecipe({ variant: "primary", size: "xs" })} onClick={() => st.do.startTask(taskId)}>
24
24
  {usePage().l("task.taskStart")}
25
25
  </button>
26
26
  );
@@ -30,7 +30,7 @@ interface CompleteProps {
30
30
  }
31
31
 
32
32
  export const Complete = ({ taskId }: CompleteProps) => (
33
- <button className={jellyButtonRecipe({ variant: "success", size: "xs" })} onClick={() => st.do.completeTask(taskId)}>
33
+ <button type="button" className={jellyButtonRecipe({ variant: "success", size: "xs" })} onClick={() => st.do.completeTask(taskId)}>
34
34
  {usePage().l("task.taskComplete")}
35
35
  </button>
36
36
  );
@@ -41,7 +41,7 @@ interface RemoveProps {
41
41
 
42
42
  export const Remove = ({ taskId }: RemoveProps) => (
43
43
  <Model.Remove modelId={taskId} slice={fetch.slice.task}>
44
- <button className={jellyButtonRecipe({ variant: "ghost", size: "xs" }, "text-destructive")}>
44
+ <button type="button" className={jellyButtonRecipe({ variant: "ghost", size: "xs" }, "text-destructive")}>
45
45
  {usePage().l("task.taskRemove")}
46
46
  </button>
47
47
  </Model.Remove>
@@ -63,16 +63,16 @@ export const Toolbox = ({ taskId, status }: ToolboxProps) => {
63
63
  <>
64
64
  {status === "todo" && (
65
65
  <li>
66
- <button onClick={() => st.do.startTask(taskId)}>{l("task.taskStart")}</button>
66
+ <button type="button" onClick={() => st.do.startTask(taskId)}>{l("task.taskStart")}</button>
67
67
  </li>
68
68
  )}
69
69
  {status === "inProgress" && (
70
70
  <li>
71
- <button onClick={() => st.do.completeTask(taskId)}>{l("task.taskComplete")}</button>
71
+ <button type="button" onClick={() => st.do.completeTask(taskId)}>{l("task.taskComplete")}</button>
72
72
  </li>
73
73
  )}
74
74
  <li>
75
- <button className="text-destructive" onClick={() => st.do.removeTask(taskId)}>
75
+ <button type="button" className="text-destructive" onClick={() => st.do.removeTask(taskId)}>
76
76
  {l("task.taskRemove")}
77
77
  </button>
78
78
  </li>
@@ -93,7 +93,7 @@ export const Toolbox = ({ taskId, status }: ToolboxProps) => {
93
93
  // New Task Button: Model.NewWrapper — triggers new Task creation form
94
94
  // export const NewTask = () => (
95
95
  // <Model.NewWrapper partial={{}}>
96
- // <button className={jellyButtonRecipe({ variant: "primary", size: "sm" })}>+ New Task</button>
96
+ // <button type="button" className={jellyButtonRecipe({ variant: "primary", size: "sm" })}>+ New Task</button>
97
97
  // </Model.NewWrapper>
98
98
  // );
99
99
  `,
@@ -31,7 +31,7 @@ export const Card = ({ className, init }: CardProps) => {
31
31
  <div className="flex flex-col items-center gap-4 py-16 text-center">
32
32
  <div className="text-foreground/40 text-lg">{l("task.taskNoTasks")}</div>
33
33
  <Link href="/task/new">
34
- <button className={jellyButtonRecipe({ variant: "primary", size: "sm" })}>
34
+ <button type="button" className={jellyButtonRecipe({ variant: "primary", size: "sm" })}>
35
35
  {l("task.taskCreateFirst")}
36
36
  </button>
37
37
  </Link>
@@ -30,7 +30,7 @@ export const QuantityControl = ({
30
30
  }: QuantityControlProps) => {
31
31
  return (
32
32
  <div className={cn("inline-flex items-center gap-1", className)}>
33
- <button
33
+ <button type="button"
34
34
  className={jellyButtonRecipe({ variant: "default", size: "icon" }, "size-7")}
35
35
  disabled={value <= min}
36
36
  onClick={() => onChange(Math.max(min, value - 1))}
@@ -38,7 +38,7 @@ export const QuantityControl = ({
38
38
  −
39
39
  </button>
40
40
  <span className="w-8 text-center font-medium tabular-nums">{value}</span>
41
- <button
41
+ <button type="button"
42
42
  className={jellyButtonRecipe({ variant: "default", size: "icon" }, "size-7")}
43
43
  disabled={value >= max}
44
44
  onClick={() => onChange(Math.min(max, value + 1))}
@@ -24,7 +24,7 @@ export default page()
24
24
  <div className="flex animate-fadeIn items-center gap-4 px-4 pt-4">
25
25
  <div className="font-bold text-lg md:text-4xl">{l("${dict.model}.modelName")}</div>
26
26
  <Model.New
27
- trigger={<button className={buttonRecipe({ size: "sm", variant: "ghost" })}>{l("base.new")}</button>}
27
+ trigger={<button type="button" className={buttonRecipe({ size: "sm", variant: "ghost" })}>{l("base.new")}</button>}
28
28
  slice={fetch.slice.${dict.model}InPublic}
29
29
  renderTitle="id"
30
30
  >
@@ -7,7 +7,6 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
7
7
  const databaseModules = scanInfo.getDatabaseModules();
8
8
  const scalarModules = scanInfo.getScalarModules();
9
9
  const libs = scanInfo.getLibs();
10
- const libInfos = scanInfo.getLibInfos();
11
10
  return `
12
11
  import { ConstantRegistry } from "akanjs/constant";
13
12
  ${scalarModules.map((module) => `import * as ${module}Cnst from "./__scalar/${module}/${module}.constant";`).join("\n")}