@akanjs/cli 3.2.0-rc.30 → 3.2.0-rc.32

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 (95) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-c17abdbf.js → CodeAgent-7m6cmdf8.js} +2 -2
  3. package/{CodeTui-jed1nj82.js → CodeTui-c6de37ea.js} +1 -1
  4. package/README.ko.md +7 -0
  5. package/README.md +7 -0
  6. package/TunnelShare-9ry4vh0y.js +18 -0
  7. package/{agent.command-9whnc6vb.js → agent.command-3qstwjef.js} +26 -21
  8. package/akanCode.js +2 -2
  9. package/{appExecutor-020cyesq.js → appExecutor-79azsb2w.js} +3 -3
  10. package/{application.command-4eqvyxkw.js → application.command-8y4kxzvc.js} +36 -24
  11. package/{applicationBuildRunner-frtcrqfd.js → applicationBuildRunner-trfxv3pd.js} +43 -15
  12. package/buildBatch.proc.js +10 -10
  13. package/{cloud.command-hbvmeezn.js → cloud.command-zczv575c.js} +28 -28
  14. package/cloud.script-t268m15f.js +35 -0
  15. package/{code.command-0ayrenk4.js → code.command-069wchwn.js} +10 -10
  16. package/context.command-v3e98f2h.js +64 -0
  17. package/context.runner-3jr6chgz.js +34 -0
  18. package/{guideline.command-w1grfwh7.js → guideline.command-zwypaqsh.js} +7 -7
  19. package/guidelines/akanApi/akanApi.instruction.md +1 -1
  20. package/guidelines/errorCodes/errorCodes.instruction.md +7 -0
  21. package/guidelines/mcpRule/mcpRule.instruction.md +155 -20
  22. package/guidelines/queryRule/queryRule.instruction.md +3 -1
  23. package/guidelines/runtimeRule/runtimeRule.instruction.md +7 -3
  24. package/guidelines/transportRule/transportRule.instruction.md +28 -0
  25. package/incrementalBuilder.proc.js +12 -9
  26. package/{index-5d57kx0s.js → index-275a4r3n.js} +3 -3
  27. package/{index-6zb17wcm.js → index-2jmvfa62.js} +3 -3
  28. package/{index-9rv2zt48.js → index-2yn3r67f.js} +78 -25
  29. package/{index-6pxmcaq8.js → index-3txdtztz.js} +1 -1
  30. package/{index-nm7nt9vm.js → index-4ss4gkv3.js} +2 -2
  31. package/{index-9wab2ngg.js → index-612fdtbk.js} +1 -1
  32. package/{index-7bs463x7.js → index-6dzjer7p.js} +6 -6
  33. package/{index-qssq2d41.js → index-71y6176j.js} +11 -6
  34. package/{index-4st0hq72.js → index-73x6z7ym.js} +24 -17
  35. package/{index-vjbne22r.js → index-7wf8snar.js} +1 -1
  36. package/{index-yvzm8mby.js → index-9wh04mqy.js} +1 -1
  37. package/{index-yxkjsyx8.js → index-a860mx0m.js} +2 -2
  38. package/{index-42jhx2ya.js → index-b2sdtgc7.js} +3 -3
  39. package/{index-1pjwsh2g.js → index-baccvws5.js} +1 -1
  40. package/{index-99kjwyma.js → index-c669pbyb.js} +4 -3
  41. package/{index-prgvqqxe.js → index-cd839jw2.js} +126 -113
  42. package/{index-6469101k.js → index-dadwp2aw.js} +33 -98
  43. package/{index-7v7tvgt7.js → index-dmcpetwe.js} +123 -43
  44. package/{index-ba2xd32s.js → index-e9w8wq0a.js} +27 -22
  45. package/{index-fp5xf6ef.js → index-ebn9kgea.js} +3 -3
  46. package/{index-s3m89wt2.js → index-exzkev4k.js} +7 -7
  47. package/{index-m5gg0wzv.js → index-gec8q5z9.js} +57 -30
  48. package/{index-m3t28rt3.js → index-gt8phqpt.js} +4 -4
  49. package/{index-g7jgd4xs.js → index-j592zfqc.js} +1 -1
  50. package/{index-cb91b6d8.js → index-jek2re5k.js} +3 -3
  51. package/{index-ffa52fwf.js → index-jf4vk1s0.js} +8 -1
  52. package/{index-v929w7j7.js → index-kykky4re.js} +59 -15
  53. package/{index-9wjrwjgz.js → index-nk374pqd.js} +8 -8
  54. package/{index-28nk8w3j.js → index-pk2ja04e.js} +8 -8
  55. package/{index-jgj31xvw.js → index-qcp6e2ht.js} +22 -5
  56. package/{index-at6haq2x.js → index-qyhr8wst.js} +61 -18
  57. package/{index-f16kr6vj.js → index-s885g0jj.js} +2 -2
  58. package/{index-bj8s07s7.js → index-t2zhw8c7.js} +4 -4
  59. package/{index-11d7nh8a.js → index-v7ajmsh3.js} +1 -1
  60. package/{index-dss3ds74.js → index-w1zexzpx.js} +1 -1
  61. package/{index-g45y5f3e.js → index-wzp3yg01.js} +1 -1
  62. package/{index-ze48c0vd.js → index-z92zm3wd.js} +2 -2
  63. package/{index-na8r4a27.js → index-zfnz878d.js} +1 -1
  64. package/{index-0gaj78wn.js → index-zmd9xxgd.js} +3 -3
  65. package/{index-p06kfhdf.js → index-zzebpyr0.js} +4 -4
  66. package/index.js +27 -27
  67. package/{libExecutor-tq994592.js → libExecutor-jc6f8hm6.js} +2 -2
  68. package/{library.command-x219mhcx.js → library.command-nxvesvhb.js} +11 -8
  69. package/{localRegistry.command-zvdcejhn.js → localRegistry.command-4a655xnq.js} +20 -20
  70. package/{module.command-k6cwcm7g.js → module.command-aaws9byg.js} +9 -9
  71. package/{package.command-vw7x09f8.js → package.command-j7hv26p0.js} +10 -10
  72. package/package.json +8 -8
  73. package/{page.command-gf06paq2.js → page.command-7yffs7n9.js} +7 -7
  74. package/{pipeline.command-y07dgj9b.js → pipeline.command-7yk0zcng.js} +8 -7
  75. package/{pkgExecutor-stde3yc3.js → pkgExecutor-arxmvx4t.js} +2 -2
  76. package/{primitive.command-edydvh07.js → primitive.command-7a1pt715.js} +10 -10
  77. package/{projectTypecheck-mk8wefvd.js → projectTypecheck-f4qhbecd.js} +1 -1
  78. package/{quality.command-mdb45vyr.js → quality.command-08bn42t4.js} +13 -10
  79. package/{repair.command-kvtaeecy.js → repair.command-r59jat74.js} +9 -9
  80. package/{scalar.command-sjt9p5e1.js → scalar.command-2ex84spb.js} +8 -8
  81. package/skills/akan-mcp/SKILL.md +9 -2
  82. package/skills/akan-validate/SKILL.md +3 -3
  83. package/{subspace.command-mkkqync4.js → subspace.command-2nxakmk3.js} +16 -13
  84. package/templates/workspaceRoot/.devcontainer/devcontainer.json.template +1 -1
  85. package/templates/workspaceRoot/README.ts +4 -2
  86. package/{tunnel.command-tr5b3030.js → tunnel.command-f7ep1qfa.js} +12 -12
  87. package/{typeChecker-bfrd1n9n.js → typeChecker-7jt6abrs.js} +1 -1
  88. package/typecheck.proc.js +3 -2
  89. package/{verify.command-0p9h8tpp.js → verify.command-xbztwp1r.js} +17 -17
  90. package/{workflow.command-9mfcwqzj.js → workflow.command-pmyx55y4.js} +18 -15
  91. package/{workspace.command-5hjtmcfs.js → workspace.command-89p90zvb.js} +36 -36
  92. package/TunnelShare-mbfcaqg0.js +0 -18
  93. package/cloud.script-9kmbr3d6.js +0 -35
  94. package/context.command-php852kf.js +0 -61
  95. package/context.runner-nngmn7c0.js +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.30",
3
+ "version": "3.2.0-rc.32",
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.30",
42
+ "akanjs": "3.2.0-rc.32",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,17 +3,17 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
9
  import"./index-by2tvsq6.js";
10
- import"./index-ze48c0vd.js";
11
- import"./index-na8r4a27.js";
12
- import"./index-dss3ds74.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
13
  import {
14
14
  PageScript
15
- } from "./index-6pxmcaq8.js";
16
- import"./index-vjbne22r.js";
15
+ } from "./index-3txdtztz.js";
16
+ import"./index-7wf8snar.js";
17
17
 
18
18
  // pkgs/@akanjs/cli/page/page.command.ts
19
19
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,24 +4,24 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
9
  import {
10
10
  AkanAppConfig,
11
11
  AkanWorkspaceConfig
12
- } from "./index-qssq2d41.js";
12
+ } from "./index-71y6176j.js";
13
13
  import {
14
14
  FileSys2
15
15
  } from "./index-by2tvsq6.js";
16
16
  import {
17
17
  AppExecutor2
18
- } from "./index-ze48c0vd.js";
19
- import"./index-na8r4a27.js";
20
- import"./index-dss3ds74.js";
18
+ } from "./index-z92zm3wd.js";
19
+ import"./index-zfnz878d.js";
20
+ import"./index-w1zexzpx.js";
21
21
  import {
22
22
  resolveMobileTargets
23
23
  } from "./index-m9jj544v.js";
24
- import"./index-vjbne22r.js";
24
+ import"./index-7wf8snar.js";
25
25
 
26
26
  // pkgs/@akanjs/cli/pipeline/pipeline.command.ts
27
27
  import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
@@ -1319,7 +1319,8 @@ class PipelineScript extends script("pipeline", [PipelineRunner]) {
1319
1319
  class PipelineCommand extends command("pipeline", [PipelineScript], ({ public: target }) => ({
1320
1320
  pipeline: target({
1321
1321
  desc: "Plan the build pipeline declared in akan.config.ts (the workspace root's and each app's) without running it",
1322
- failureExitCode: 2
1322
+ failureExitCode: 2,
1323
+ readOnly: true
1323
1324
  }).arg("action", String, {
1324
1325
  desc: "plan: the JSON plan an executor runs \xB7 validate: check the definitions \xB7 dry-run: show the plan",
1325
1326
  default: "dry-run",
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  PkgExecutor2
4
- } from "./index-dss3ds74.js";
5
- import"./index-qssq2d41.js";
4
+ } from "./index-w1zexzpx.js";
5
+ import"./index-71y6176j.js";
6
6
  import"./index-j4yvgfhr.js";
7
7
  import"./index-by2tvsq6.js";
8
8
  export {
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-9rv2zt48.js";
5
+ } from "./index-2yn3r67f.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-qssq2d41.js";
7
+ import"./index-71y6176j.js";
8
8
  import"./index-by2tvsq6.js";
9
- import"./index-ze48c0vd.js";
10
- import"./index-na8r4a27.js";
11
- import"./index-dss3ds74.js";
9
+ import"./index-z92zm3wd.js";
10
+ import"./index-zfnz878d.js";
11
+ import"./index-w1zexzpx.js";
12
12
  import {
13
13
  renderPrimitiveReport
14
- } from "./index-0gaj78wn.js";
14
+ } from "./index-zmd9xxgd.js";
15
15
  import"./index-trffs83s.js";
16
- import"./index-6pxmcaq8.js";
17
- import"./index-m3t28rt3.js";
16
+ import"./index-3txdtztz.js";
17
+ import"./index-gt8phqpt.js";
18
18
  import {
19
19
  PrimitiveScript
20
- } from "./index-7bs463x7.js";
21
- import"./index-vjbne22r.js";
20
+ } from "./index-6dzjer7p.js";
21
+ import"./index-7wf8snar.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
24
24
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-qssq2d41.js";
4
+ } from "./index-71y6176j.js";
5
5
  import"./index-j4yvgfhr.js";
6
6
  export {
7
7
  ProjectTypecheck2 as ProjectTypecheck
@@ -3,35 +3,35 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
9
  import"./index-by2tvsq6.js";
10
10
  import {
11
11
  AppExecutor2
12
- } from "./index-ze48c0vd.js";
12
+ } from "./index-z92zm3wd.js";
13
13
  import {
14
14
  LibExecutor2
15
- } from "./index-na8r4a27.js";
15
+ } from "./index-zfnz878d.js";
16
16
  import {
17
17
  PkgExecutor2
18
- } from "./index-dss3ds74.js";
18
+ } from "./index-w1zexzpx.js";
19
19
  import {
20
20
  MaintainabilityBaseline
21
- } from "./index-1pjwsh2g.js";
21
+ } from "./index-baccvws5.js";
22
22
  import {
23
23
  WorkspaceRunner,
24
24
  AkanQualityScanner,
25
25
  formatQualityScanResult,
26
26
  formatSsrScanResult
27
- } from "./index-prgvqqxe.js";
27
+ } from "./index-cd839jw2.js";
28
28
  import"./index-trffs83s.js";
29
29
  import"./index-1p81ecbz.js";
30
30
  import"./index-62md4dwy.js";
31
31
  import"./index-zyb0ebm4.js";
32
- import"./index-ffa52fwf.js";
32
+ import"./index-jf4vk1s0.js";
33
33
  import"./index-t4d0ckde.js";
34
- import"./index-vjbne22r.js";
34
+ import"./index-7wf8snar.js";
35
35
 
36
36
  // pkgs/@akanjs/cli/quality/quality.script.ts
37
37
  import { Logger } from "akanjs/common";
@@ -73,7 +73,10 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
73
73
 
74
74
  // pkgs/@akanjs/cli/quality/quality.command.ts
75
75
  class QualityCommand extends command("quality", [QualityScript], ({ public: target }) => ({
76
- 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) {
77
80
  if (action === "scan")
78
81
  await this.qualityScript.scan(workspace, format);
79
82
  else if (action === "ssr")
@@ -3,21 +3,21 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
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";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
+ import"./index-zmd9xxgd.js";
14
14
  import"./index-trffs83s.js";
15
- import"./index-bj8s07s7.js";
15
+ import"./index-t2zhw8c7.js";
16
16
  import"./index-1p81ecbz.js";
17
17
  import {
18
18
  RepairRunner
19
- } from "./index-42jhx2ya.js";
20
- import"./index-vjbne22r.js";
19
+ } from "./index-b2sdtgc7.js";
20
+ import"./index-7wf8snar.js";
21
21
 
22
22
  // pkgs/@akanjs/cli/repair/repair.script.ts
23
23
  import { Logger } from "akanjs/common";
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-9rv2zt48.js";
5
+ } from "./index-2yn3r67f.js";
6
6
  import"./index-j4yvgfhr.js";
7
- import"./index-qssq2d41.js";
7
+ import"./index-71y6176j.js";
8
8
  import"./index-by2tvsq6.js";
9
- import"./index-ze48c0vd.js";
10
- import"./index-na8r4a27.js";
11
- import"./index-dss3ds74.js";
9
+ import"./index-z92zm3wd.js";
10
+ import"./index-zfnz878d.js";
11
+ import"./index-w1zexzpx.js";
12
12
  import {
13
13
  renderPrimitiveReport
14
- } from "./index-0gaj78wn.js";
14
+ } from "./index-zmd9xxgd.js";
15
15
  import"./index-trffs83s.js";
16
16
  import {
17
17
  ScalarScript
18
- } from "./index-nm7nt9vm.js";
19
- import"./index-vjbne22r.js";
18
+ } from "./index-4ss4gkv3.js";
19
+ import"./index-7wf8snar.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
22
22
  import { Logger, lowerlize } from "akanjs/common";
@@ -38,10 +38,17 @@ an endpoint with a real guard is published, one with none is refused, and so is
38
38
  and refusals in-process plus the `mcp: "agent"` entries, batch servers included. Pass only an account the server resolved, never client input.
39
39
  - `this.agentService.loop({ account | principal, allow, messages, approve, untrusted, onMessage, meta, budget })`
40
40
  runs a model over those tools until it answers; `option.setAgentAccountResolver` resolves a stored `principal`
41
- before every round. Each round is metered as its own turn with `turn.loop` and `turn.meta`. `toolkits` holds named
41
+ before every round. Each round is metered as its own turn with `turn.loop` and `turn.meta`. With no `untrusted`,
42
+ everything a tool returns counts as untrusted: a run with no `approve` then writes only before its first result,
43
+ so pass `approve`, or `untrusted` to name the results that carry another party's text. `toolkits` holds named
42
44
  groups of `allow` back until the model calls `openToolkit`; `clientTools` (from `AgentClientTools` on an open page)
43
45
  parks a call as `awaiting { client: true }` for the page to run; `ask: true` lists `askUser`, which parks as
44
- `awaiting { question: true }` until you append the member's answer.
46
+ `awaiting { question: true }`. Resume either with `answer: { id, result | error }`, never by appending a
47
+ client's result to `messages`, and never take `messages` from a request: store what `onMessage` hands out.
48
+ - `remotes: this.remoteService.sources(account, [{ name, url, description }])` (`libs/shared`, `remote.enabled`) lets
49
+ the loop call another server's `/mcp` as the user: each is a toolkit, tools read `<name>.<tool>`, a missing
50
+ connection parks as `awaiting { connect: name }` for `<Remote.Util.Connect>`, and every remote result taints the run.
51
+ Once connected, resume with the stored messages; when the user declines, resume with `answer: { id, error }`.
45
52
 
46
53
  ## Verify
47
54
 
@@ -7,9 +7,9 @@ description: "Run the akan check loop after editing and fix each failure class t
7
7
 
8
8
  ## One call does the whole chain
9
9
 
10
- `akan verify` (the `akan_verify` tool in akan code) syncs, lints with fixes, typechecks, fast-builds each
11
- changed app, and runs the SSR check for a `.tsx` change — over everything the working tree has changed, in one
12
- process. It prints one line when it passes and one line per problem when it fails. **Run it after editing,
10
+ `akan verify` (the `akan_verify` tool in akan code) syncs, lints with fixes, typechecks, builds each
11
+ changed app's server and SSR routes, and runs the SSR check for a `.tsx` change — over everything the working tree has changed, in one
12
+ process. A changed lib also typechecks every app and lib that uses it, so an error can name a file you did not edit. It prints one line when it passes and one line per problem when it fails. **Run it after editing,
13
13
  before you say you are done.** In akan code it also runs itself at the end of a turn that changed source.
14
14
 
15
15
  Never run `akan lint`, `akan typecheck` and `akan build` in turn: that is the same work three times over, at
@@ -5,35 +5,35 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-9rv2zt48.js";
8
+ } from "./index-2yn3r67f.js";
9
9
  import"./index-j4yvgfhr.js";
10
10
  import {
11
11
  Executor,
12
12
  LibSource,
13
13
  WorkspaceExecutor
14
- } from "./index-qssq2d41.js";
14
+ } from "./index-71y6176j.js";
15
15
  import {
16
16
  FileSys2
17
17
  } from "./index-by2tvsq6.js";
18
18
  import {
19
19
  AppExecutor2
20
- } from "./index-ze48c0vd.js";
21
- import"./index-na8r4a27.js";
22
- import"./index-dss3ds74.js";
20
+ } from "./index-z92zm3wd.js";
21
+ import"./index-zfnz878d.js";
22
+ import"./index-w1zexzpx.js";
23
23
  import {
24
24
  GlobalConfig
25
- } from "./index-f16kr6vj.js";
25
+ } from "./index-s885g0jj.js";
26
26
  import"./index-m9jj544v.js";
27
- import"./index-fp5xf6ef.js";
28
- import"./index-yvzm8mby.js";
29
- import"./index-yxkjsyx8.js";
27
+ import"./index-ebn9kgea.js";
28
+ import"./index-9wh04mqy.js";
29
+ import"./index-a860mx0m.js";
30
30
  import {
31
31
  SubspaceConfig
32
32
  } from "./index-xczjdng6.js";
33
33
  import {
34
34
  SlicePlanner
35
- } from "./index-g7jgd4xs.js";
36
- import"./index-vjbne22r.js";
35
+ } from "./index-j592zfqc.js";
36
+ import"./index-7wf8snar.js";
37
37
 
38
38
  // pkgs/@akanjs/devkit/subspace/subspace.ts
39
39
  import { mkdir as mkdir2 } from "fs/promises";
@@ -824,7 +824,7 @@ class SubspaceRunner extends runner("subspace") {
824
824
  if (!asked)
825
825
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
826
826
  const { libs } = await subspace.slice();
827
- const { CloudScript } = await import("./cloud.script-9kmbr3d6.js");
827
+ const { CloudScript } = await import("./cloud.script-t268m15f.js");
828
828
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
829
829
  host,
830
830
  workspaceId,
@@ -900,7 +900,10 @@ class SubspaceScript extends script("subspace", [SubspaceRunner]) {
900
900
 
901
901
  // pkgs/@akanjs/cli/subspace/subspace.command.ts
902
902
  class SubspaceCommand extends command("subspace", [SubspaceScript], ({ public: target }) => ({
903
- subspace: target({ desc: "Mirror apps and libraries between this workspace and the customer repos it serves" }).arg("action", String, {
903
+ subspace: target({
904
+ desc: "Mirror apps and libraries between this workspace and the customer repos it serves",
905
+ readOnly: ({ action }) => ["status", "status-all", "plan", "diff"].includes(String(action))
906
+ }).arg("action", String, {
904
907
  desc: "subspace action; plan reads this checkout alone, status-all and push-all take every declared subspace",
905
908
  default: "status",
906
909
  enum: ["status", "status-all", "plan", "diff", "push", "push-all", "pull", "upload-env"]
@@ -10,7 +10,7 @@
10
10
  "remoteEnv": {
11
11
  "PATH": "/home/vscode/.bun/bin:${containerEnv:PATH}"
12
12
  },
13
- "onCreateCommand": "export PATH=\"/home/vscode/.bun/bin:$PATH\" && bun add -g @akanjs/cli@latest",
13
+ "onCreateCommand": "export PATH=\"/home/vscode/.bun/bin:$PATH\" && v=\"$(bun -e \"const p=require('./package.json'),v=p.dependencies?.akanjs??p.devDependencies?.akanjs;if(!v){console.error('package.json lists no akanjs in dependencies or devDependencies');process.exit(1)}console.log(v)\")\" && bun add -g \"@akanjs/cli@$v\"",
14
14
  "postCreateCommand": "bun install",
15
15
  "forwardPorts": [8282, 8283, 8284, 8285, 8286, 8287, 8288, 8289, 8290],
16
16
  "portsAttributes": {
@@ -21,13 +21,15 @@ and deployment artifacts with strict conventions.
21
21
 
22
22
  ## Quick Start
23
23
 
24
- Install dependencies:
24
+ Install dependencies, and the \`akan\` CLI at the version of \`akanjs\` this workspace depends on:
25
25
 
26
26
  \`\`\`bash
27
27
  bun install
28
- bun install -g @akanjs/cli
28
+ v="$(bun -e "const p=require('./package.json'),v=p.dependencies?.akanjs??p.devDependencies?.akanjs;if(!v){console.error('package.json lists no akanjs in dependencies or devDependencies');process.exit(1)}console.log(v)")" && bun install -g "@akanjs/cli@$v"
29
29
  \`\`\`
30
30
 
31
+ A CLI of another major or minor version refuses to write to the workspace; run \`akan update\` to move both.
32
+
31
33
  Start the app:
32
34
 
33
35
  \`\`\`bash
@@ -4,30 +4,30 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import"./index-j4yvgfhr.js";
9
- import"./index-qssq2d41.js";
9
+ import"./index-71y6176j.js";
10
10
  import"./index-by2tvsq6.js";
11
11
  import {
12
12
  AppExecutor2
13
- } from "./index-ze48c0vd.js";
14
- import"./index-na8r4a27.js";
15
- import"./index-dss3ds74.js";
13
+ } from "./index-z92zm3wd.js";
14
+ import"./index-zfnz878d.js";
15
+ import"./index-w1zexzpx.js";
16
16
  import {
17
17
  GlobalConfig,
18
18
  CloudApi
19
- } from "./index-f16kr6vj.js";
19
+ } from "./index-s885g0jj.js";
20
20
  import"./index-m9jj544v.js";
21
- import"./index-fp5xf6ef.js";
22
- import"./index-yvzm8mby.js";
23
- import"./index-yxkjsyx8.js";
21
+ import"./index-ebn9kgea.js";
22
+ import"./index-9wh04mqy.js";
23
+ import"./index-a860mx0m.js";
24
24
  import {
25
25
  TunnelShare2
26
- } from "./index-11d7nh8a.js";
26
+ } from "./index-v7ajmsh3.js";
27
27
  import {
28
28
  writeClipboard
29
29
  } from "./index-p6pbz9n5.js";
30
- import"./index-vjbne22r.js";
30
+ import"./index-7wf8snar.js";
31
31
 
32
32
  // pkgs/@akanjs/cli/tunnel/tunnel.script.ts
33
33
  import { select } from "@inquirer/prompts";
@@ -126,7 +126,7 @@ class TunnelScript extends script("tunnel", [TunnelRunner]) {
126
126
 
127
127
  // pkgs/@akanjs/cli/tunnel/tunnel.command.ts
128
128
  class TunnelCommand extends command("tunnel", [TunnelScript], ({ public: target }) => ({
129
- tunnel: target({ desc: "Share a locally running app on a public URL" }).arg("app", String, { desc: "app to share", nullable: true }).option("list", Boolean, { desc: "list the shares this account is holding", default: false }).option("stop", String, { desc: "stop the share with this code", default: "" }).option("host", String, {
129
+ tunnel: target({ desc: "Share a locally running app on a public URL", readOnly: true }).arg("app", String, { desc: "app to share", nullable: true }).option("list", Boolean, { desc: "list the shares this account is holding", default: false }).option("stop", String, { desc: "stop the share with this code", default: "" }).option("host", String, {
130
130
  desc: "host of the cloud (default: cloud.host of the root akan.config.ts, else Akan Cloud)",
131
131
  nullable: true
132
132
  }).option("port", Number, { desc: "local port to share (default: the app's dev port)", nullable: true }).option("ttl", Number, { desc: "minutes before the share expires", nullable: true }).option("devRoutes", Boolean, {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  TypeChecker2
4
- } from "./index-99kjwyma.js";
4
+ } from "./index-c669pbyb.js";
5
5
  export {
6
6
  TypeChecker2 as TypeChecker
7
7
  };
package/typecheck.proc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  TypeChecker2
4
- } from "./index-99kjwyma.js";
4
+ } from "./index-c669pbyb.js";
5
5
  import {
6
6
  TypecheckFailure
7
7
  } from "./index-j4yvgfhr.js";
@@ -28,7 +28,8 @@ try {
28
28
  const configPath = process.env.AKAN_TYPECHECK_TSCONFIG;
29
29
  if (!configPath)
30
30
  throw new Error("AKAN_TYPECHECK_TSCONFIG is required");
31
- const result = TypeChecker2.checkProject(configPath);
31
+ const tsBuildInfoFile = process.env.AKAN_TYPECHECK_BUILDINFO;
32
+ const result = TypeChecker2.checkProject(configPath, tsBuildInfoFile ? { noEmit: true, incremental: true, tsBuildInfoFile } : {});
32
33
  if (process.env.AKAN_TYPECHECK_FORMAT === "json") {
33
34
  const root = process.env.AKAN_TYPECHECK_ROOT ?? process.cwd();
34
35
  process.stdout.write(JSON.stringify(TypeChecker2.toRecords(result.errors, root)));
@@ -4,41 +4,41 @@ import {
4
4
  script,
5
5
  markCliErrorPrinted,
6
6
  command
7
- } from "./index-9rv2zt48.js";
7
+ } from "./index-2yn3r67f.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./index-j4yvgfhr.js";
11
- import"./index-qssq2d41.js";
11
+ import"./index-71y6176j.js";
12
12
  import"./index-by2tvsq6.js";
13
- import"./index-ze48c0vd.js";
14
- import"./index-na8r4a27.js";
15
- import"./index-dss3ds74.js";
13
+ import"./index-z92zm3wd.js";
14
+ import"./index-zfnz878d.js";
15
+ import"./index-w1zexzpx.js";
16
16
  import {
17
17
  ApplicationRunner,
18
18
  VerifyScope
19
- } from "./index-at6haq2x.js";
20
- import"./index-7v7tvgt7.js";
21
- import"./index-fp5xf6ef.js";
22
- import"./index-9wab2ngg.js";
19
+ } from "./index-qyhr8wst.js";
20
+ import"./index-dmcpetwe.js";
21
+ import"./index-ebn9kgea.js";
22
+ import"./index-612fdtbk.js";
23
23
  import"./index-m9jj544v.js";
24
- import"./index-yvzm8mby.js";
25
- import"./index-yxkjsyx8.js";
24
+ import"./index-9wh04mqy.js";
25
+ import"./index-a860mx0m.js";
26
26
  import"./index-1p81ecbz.js";
27
27
  import"./index-62md4dwy.js";
28
28
  import"./index-zyb0ebm4.js";
29
29
  import {
30
30
  WorkspaceRunner
31
- } from "./index-prgvqqxe.js";
32
- import"./index-1pjwsh2g.js";
31
+ } from "./index-cd839jw2.js";
32
+ import"./index-baccvws5.js";
33
33
  import"./index-trffs83s.js";
34
- import"./index-ffa52fwf.js";
34
+ import"./index-jf4vk1s0.js";
35
35
  import"./index-t4d0ckde.js";
36
36
  import {
37
37
  VerifyPipeline,
38
38
  VerifyReport
39
- } from "./index-m5gg0wzv.js";
40
- import"./index-g7jgd4xs.js";
41
- import"./index-vjbne22r.js";
39
+ } from "./index-gec8q5z9.js";
40
+ import"./index-j592zfqc.js";
41
+ import"./index-7wf8snar.js";
42
42
 
43
43
  // pkgs/@akanjs/cli/verify/verify.script.ts
44
44
  import path from "path";
@@ -3,33 +3,33 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-9rv2zt48.js";
6
+ } from "./index-2yn3r67f.js";
7
7
  import"./index-j4yvgfhr.js";
8
- import"./index-qssq2d41.js";
8
+ import"./index-71y6176j.js";
9
9
  import"./index-by2tvsq6.js";
10
- import"./index-ze48c0vd.js";
11
- import"./index-na8r4a27.js";
12
- import"./index-dss3ds74.js";
10
+ import"./index-z92zm3wd.js";
11
+ import"./index-zfnz878d.js";
12
+ import"./index-w1zexzpx.js";
13
13
  import {
14
14
  jsonText,
15
15
  workflowStatus,
16
16
  renderWorkflowPlan,
17
17
  renderWorkflowApply,
18
18
  renderWorkflowValidation
19
- } from "./index-0gaj78wn.js";
19
+ } from "./index-zmd9xxgd.js";
20
20
  import"./index-trffs83s.js";
21
- import"./index-bj8s07s7.js";
21
+ import"./index-t2zhw8c7.js";
22
22
  import"./index-1p81ecbz.js";
23
- import"./index-6pxmcaq8.js";
24
- import"./index-m3t28rt3.js";
25
- import"./index-7bs463x7.js";
26
- import"./index-42jhx2ya.js";
27
- import"./index-nm7nt9vm.js";
23
+ import"./index-3txdtztz.js";
24
+ import"./index-gt8phqpt.js";
25
+ import"./index-6dzjer7p.js";
26
+ import"./index-b2sdtgc7.js";
27
+ import"./index-4ss4gkv3.js";
28
28
  import"./index-t4d0ckde.js";
29
29
  import {
30
30
  WorkflowRunner
31
- } from "./index-28nk8w3j.js";
32
- import"./index-vjbne22r.js";
31
+ } from "./index-pk2ja04e.js";
32
+ import"./index-7wf8snar.js";
33
33
 
34
34
  // pkgs/@akanjs/cli/workflow/workflow.script.ts
35
35
  import { Logger } from "akanjs/common";
@@ -101,7 +101,10 @@ class WorkflowScript extends script("workflow", [WorkflowRunner]) {
101
101
 
102
102
  // pkgs/@akanjs/cli/workflow/workflow.command.ts
103
103
  class WorkflowCommand extends command("workflow", [WorkflowScript], ({ public: target }) => ({
104
- workflow: target({ desc: "List, explain, plan, apply, validate, or report Akan workflows" }).arg("action", String, {
104
+ workflow: target({
105
+ desc: "List, explain, plan, apply, validate, or report Akan workflows",
106
+ readOnly: ({ action, dryRun }) => action !== "apply" || dryRun === true
107
+ }).arg("action", String, {
105
108
  desc: "list, explain, plan, apply, validate, or report",
106
109
  enum: ["list", "explain", "plan", "apply", "validate", "report"]
107
110
  }).arg("workflow", String, { desc: "workflow name, plan path, or run id", nullable: true }).with(Workspace).option("format", String, { desc: "output format", flag: "o", default: "markdown", enum: ["markdown", "json"] }).option("out", String, { flag: "w", desc: "write workflow plan JSON to this path", nullable: true }).option("dryRun", Boolean, { flag: "r", desc: "show predicted apply report without writing files", default: false }).option("app", String, { desc: "target app or library name", nullable: true }).option("module", String, { desc: "target module name", nullable: true }).option("field", String, { desc: "field name", nullable: true }).option("type", String, { desc: "field type or scalar name", nullable: true }).option("values", String, { flag: "l", desc: "comma-separated values", nullable: true }).option("default", String, { desc: "default value", nullable: true }).option("scalar", String, { flag: "c", desc: "scalar name", nullable: true }).option("surface", String, { flag: "u", desc: "UI surface name", nullable: true }).option("surfaces", String, {