@akanjs/cli 3.2.0-rc.7 → 3.2.0-rc.8

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 (81) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-aq43sq64.js → CodeAgent-x2p3a3e0.js} +2 -2
  3. package/{CodeTui-pmychb3m.js → CodeTui-qstk5vpj.js} +1 -1
  4. package/README.ko.md +23 -0
  5. package/README.md +23 -0
  6. package/TunnelShare-c4xsfzg5.js +15 -0
  7. package/{agent.command-pdmb75bk.js → agent.command-9et2e27p.js} +19 -18
  8. package/akanCode.js +2 -2
  9. package/{application.command-xwch7rww.js → application.command-m4rq4wc2.js} +23 -16
  10. package/{applicationBuildRunner-6yjrxfqs.js → applicationBuildRunner-df7rx3ra.js} +7 -6
  11. package/buildBatch.proc.js +7 -6
  12. package/{cloud.command-6angaryd.js → cloud.command-a0gy0qq2.js} +21 -22
  13. package/cloud.script-xze4zh7n.js +31 -0
  14. package/{code.command-ceyhrgrc.js → code.command-5rsdqw8s.js} +7 -6
  15. package/{context.command-n7dbh0ca.js → context.command-rk1dwrg4.js} +18 -17
  16. package/context.runner-83ky5m1b.js +30 -0
  17. package/{guideline.command-h5dfzrng.js → guideline.command-mffxknbr.js} +3 -2
  18. package/guidelines/mcpRule/mcpRule.instruction.md +9 -0
  19. package/incrementalBuilder.proc.js +5 -4
  20. package/{index-bza4z89k.js → index-0gg15zwa.js} +4 -4
  21. package/{index-t0a5mng5.js → index-0hbtve0a.js} +10 -9
  22. package/{index-mtxbw4fy.js → index-28x1aszt.js} +13 -10
  23. package/{index-mcdezskv.js → index-2mf1aen9.js} +2 -2
  24. package/{index-g6ss1r1w.js → index-2r9ff9qm.js} +1 -1
  25. package/{index-z0r6bhqe.js → index-2vgv7fs7.js} +98 -18
  26. package/{index-dnqznx16.js → index-34792nh7.js} +1 -1
  27. package/{index-0fq1b5jp.js → index-3ghdb7p5.js} +9 -15
  28. package/{index-y9xbhs20.js → index-43f4h4cm.js} +3 -3
  29. package/{index-8bh9en9m.js → index-5radqwn2.js} +9 -9
  30. package/{index-dtxntsfx.js → index-5zwr4n6k.js} +1 -1
  31. package/{index-yp6mpazs.js → index-99qvtff2.js} +3 -3
  32. package/{index-df0r4008.js → index-an76bdrv.js} +1 -1
  33. package/{index-ggzb32a9.js → index-exn38bzx.js} +106 -69
  34. package/{index-y1a7dc7t.js → index-gcx48get.js} +1 -1
  35. package/{index-2b3n00gz.js → index-grxs6fts.js} +27 -17
  36. package/{index-qn5xmscz.js → index-gxav1bjz.js} +7 -7
  37. package/{index-ttrrm805.js → index-hqv34wzq.js} +4 -4
  38. package/{index-2m6gaatn.js → index-j3v29pq7.js} +78 -43
  39. package/index-j4yvgfhr.js +70 -0
  40. package/{index-n0vev0fv.js → index-j6gc8n14.js} +2 -2
  41. package/{index-kj7vyjng.js → index-j9790rhk.js} +67 -77
  42. package/{index-xzscbgx2.js → index-k92x3vne.js} +1 -1
  43. package/{index-qx12c8k5.js → index-nmvhjn8c.js} +1 -1
  44. package/{index-146p5x0r.js → index-ra9fvn7s.js} +6 -4
  45. package/{index-9km2h20g.js → index-rfzp4pqs.js} +2 -2
  46. package/{index-1kj847m5.js → index-rp4yf32g.js} +5 -4
  47. package/{index-80yc5q5y.js → index-skmtj8rm.js} +13 -6
  48. package/{index-w0nztbs0.js → index-swwjakt0.js} +3 -3
  49. package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
  50. package/{index-p9f6dsf2.js → index-vm0dn0mt.js} +3 -4
  51. package/{index-qtcm6s8p.js → index-w8yasvpc.js} +3 -3
  52. package/{index-wnxc9n5v.js → index-x40bdsca.js} +4 -4
  53. package/{index-36dywqhv.js → index-xvk2a75m.js} +2 -2
  54. package/{index-1xfdzwrt.js → index-xyn02k0w.js} +4 -4
  55. package/{index-fq72hk0a.js → index-yckz5t8b.js} +2 -2
  56. package/index.js +24 -23
  57. package/{library.command-4c2yjfqa.js → library.command-bmd7zc5m.js} +4 -3
  58. package/{localRegistry.command-mgb4fg60.js → localRegistry.command-y6en1599.js} +16 -15
  59. package/{module.command-c6284z1b.js → module.command-7exfffqw.js} +6 -5
  60. package/{package.command-3wh1hh2j.js → package.command-adskw2rj.js} +5 -4
  61. package/package.json +2 -2
  62. package/{page.command-sx22j4yv.js → page.command-dw01272p.js} +4 -3
  63. package/{pipeline.command-8kdcgy47.js → pipeline.command-0b1r3y5r.js} +3 -2
  64. package/{primitive.command-4jaegn0m.js → primitive.command-byw6vc04.js} +7 -6
  65. package/{projectTypecheck-t0r9argb.js → projectTypecheck-kkrpq60a.js} +2 -1
  66. package/{quality.command-46jhrbm2.js → quality.command-6rqnhzct.js} +6 -5
  67. package/{repair.command-dj4ke29k.js → repair.command-rw5zymak.js} +6 -5
  68. package/{scalar.command-qwvbhytf.js → scalar.command-2dyp9nh9.js} +5 -4
  69. package/skills/akan-debug/SKILL.md +1 -1
  70. package/skills/akan-mcp/SKILL.md +2 -1
  71. package/skills/akan-scaffold/SKILL.md +1 -1
  72. package/skills/akan-validate/SKILL.md +1 -0
  73. package/{subspace.command-48d86hvc.js → subspace.command-111ynwv1.js} +9 -8
  74. package/{tunnel.command-00v81x42.js → tunnel.command-2gcpfbdj.js} +8 -7
  75. package/typecheck.proc.js +5 -2
  76. package/{verify.command-sz542tvy.js → verify.command-djgs86ma.js} +17 -15
  77. package/{workflow.command-0ra9304f.js → workflow.command-n0k2mxr5.js} +30 -16
  78. package/{workspace.command-5mm9ahzc.js → workspace.command-fh1qwxfx.js} +31 -30
  79. package/TunnelShare-11a3fqxb.js +0 -14
  80. package/cloud.script-w5b0a1sm.js +0 -30
  81. package/context.runner-9d5rbt2p.js +0 -29
@@ -3,7 +3,7 @@ import {
3
3
  ROOT_LAYOUT_SYSTEM,
4
4
  isImplicitRootLayoutKey,
5
5
  resolveSsrPageEntriesForApp
6
- } from "./index-0fq1b5jp.js";
6
+ } from "./index-3ghdb7p5.js";
7
7
  import {
8
8
  computeRouteSeedIndex,
9
9
  saveRouteSeedIndex,
@@ -11,12 +11,12 @@ import {
11
11
  ClientEntriesBundler,
12
12
  VENDOR_SPECIFIERS,
13
13
  RouteClientBuilder
14
- } from "./index-qtcm6s8p.js";
14
+ } from "./index-w8yasvpc.js";
15
15
  import {
16
16
  SOURCE_EXTS,
17
17
  FontOptimizer,
18
18
  FontPruner
19
- } from "./index-p9f6dsf2.js";
19
+ } from "./index-vm0dn0mt.js";
20
20
  import {
21
21
  BarrelAnalyzer,
22
22
  createTsconfigPackageResolver,
@@ -24,7 +24,7 @@ import {
24
24
  CsrEntryFiles,
25
25
  toClientReferencePath,
26
26
  PagesBundleBuilder
27
- } from "./index-qx12c8k5.js";
27
+ } from "./index-nmvhjn8c.js";
28
28
  import {
29
29
  CssBlockParser
30
30
  } from "./index-62md4dwy.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-0fq1b5jp.js";
4
+ } from "./index-3ghdb7p5.js";
5
5
  import {
6
6
  createBarrelImportsPlugin,
7
7
  workspaceBarrels,
@@ -10,7 +10,7 @@ import {
10
10
  CsrEntryFiles,
11
11
  PagesEntrySourceGenerator,
12
12
  PagesBundleBuilder
13
- } from "./index-qx12c8k5.js";
13
+ } from "./index-nmvhjn8c.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
16
16
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  camelToKebabCase,
4
4
  runner
5
- } from "./index-ggzb32a9.js";
5
+ } from "./index-exn38bzx.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-bns3wcpc.js";
@@ -21,7 +21,7 @@ import {
21
21
  SysExecutor,
22
22
  LibExecutor,
23
23
  PkgExecutor
24
- } from "./index-0fq1b5jp.js";
24
+ } from "./index-3ghdb7p5.js";
25
25
  import {
26
26
  countBlocking,
27
27
  formatStyleContract,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./index-ygdbn9jn.js";
33
33
  import {
34
34
  MaintainabilityBaseline
35
- } from "./index-dtxntsfx.js";
35
+ } from "./index-5zwr4n6k.js";
36
36
  import {
37
37
  createFactReader,
38
38
  createAst
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  sysInputs,
50
50
  workflowSpecs
51
- } from "./index-v50xjbbe.js";
51
+ } from "./index-t4d0ckde.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/workspace/workspace.runner.ts
54
54
  import { mkdir, writeFile as writeFile2 } from "fs/promises";
@@ -10,7 +10,7 @@ import {
10
10
  isScannedRootEntry,
11
11
  AppExecutor,
12
12
  LibExecutor
13
- } from "./index-0fq1b5jp.js";
13
+ } from "./index-3ghdb7p5.js";
14
14
  import {
15
15
  FileSys2
16
16
  } from "./index-bns3wcpc.js";
@@ -23,7 +23,7 @@ import {
23
23
  workflowPathsForPlan,
24
24
  workflowRunArtifactPath,
25
25
  workflowSyncDir
26
- } from "./index-z0r6bhqe.js";
26
+ } from "./index-2vgv7fs7.js";
27
27
 
28
28
  // pkgs/@akanjs/devkit/akanContext.ts
29
29
  import { readdir } from "fs/promises";
package/index.js CHANGED
@@ -4,9 +4,10 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-ggzb32a9.js";
7
+ } from "./index-exn38bzx.js";
8
+ import"./index-j4yvgfhr.js";
8
9
  import"./index-bns3wcpc.js";
9
- import"./index-0fq1b5jp.js";
10
+ import"./index-3ghdb7p5.js";
10
11
 
11
12
  // pkgs/@akanjs/cli/bunVersionGuard.ts
12
13
  class BunVersionGuard {
@@ -22,27 +23,27 @@ import path from "path";
22
23
 
23
24
  // pkgs/@akanjs/cli/commandModules.ts
24
25
  var commandModules = {
25
- workspace: async () => (await import("./workspace.command-5mm9ahzc.js")).WorkspaceCommand,
26
- agent: async () => (await import("./agent.command-pdmb75bk.js")).AgentCommand,
27
- code: async () => (await import("./code.command-ceyhrgrc.js")).CodeCommand,
28
- application: async () => (await import("./application.command-xwch7rww.js")).ApplicationCommand,
29
- library: async () => (await import("./library.command-4c2yjfqa.js")).LibraryCommand,
30
- localRegistry: async () => (await import("./localRegistry.command-mgb4fg60.js")).LocalRegistryCommand,
31
- package: async () => (await import("./package.command-3wh1hh2j.js")).PackageCommand,
32
- module: async () => (await import("./module.command-c6284z1b.js")).ModuleCommand,
33
- page: async () => (await import("./page.command-sx22j4yv.js")).PageCommand,
34
- context: async () => (await import("./context.command-n7dbh0ca.js")).ContextCommand,
35
- cloud: async () => (await import("./cloud.command-6angaryd.js")).CloudCommand,
36
- subspace: async () => (await import("./subspace.command-48d86hvc.js")).SubspaceCommand,
37
- guideline: async () => (await import("./guideline.command-h5dfzrng.js")).GuidelineCommand,
38
- scalar: async () => (await import("./scalar.command-qwvbhytf.js")).ScalarCommand,
39
- primitive: async () => (await import("./primitive.command-4jaegn0m.js")).PrimitiveCommand,
40
- quality: async () => (await import("./quality.command-46jhrbm2.js")).QualityCommand,
41
- verify: async () => (await import("./verify.command-sz542tvy.js")).VerifyCommand,
42
- repair: async () => (await import("./repair.command-dj4ke29k.js")).RepairCommand,
43
- workflow: async () => (await import("./workflow.command-0ra9304f.js")).WorkflowCommand,
44
- pipeline: async () => (await import("./pipeline.command-8kdcgy47.js")).PipelineCommand,
45
- tunnel: async () => (await import("./tunnel.command-00v81x42.js")).TunnelCommand
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
46
47
  };
47
48
  var commandModuleIds = Object.keys(commandModules);
48
49
 
@@ -3,12 +3,13 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-ggzb32a9.js";
6
+ } from "./index-exn38bzx.js";
7
+ import"./index-j4yvgfhr.js";
7
8
  import"./index-bns3wcpc.js";
8
- import"./index-0fq1b5jp.js";
9
+ import"./index-3ghdb7p5.js";
9
10
  import {
10
11
  LibraryScript
11
- } from "./index-n0vev0fv.js";
12
+ } from "./index-j6gc8n14.js";
12
13
 
13
14
  // pkgs/@akanjs/cli/library/library.command.ts
14
15
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,41 +4,42 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-ggzb32a9.js";
7
+ } from "./index-exn38bzx.js";
8
+ import"./index-j4yvgfhr.js";
8
9
  import"./index-bns3wcpc.js";
9
10
  import {
10
11
  parseEnvFile,
11
12
  PkgExecutor
12
- } from "./index-0fq1b5jp.js";
13
+ } from "./index-3ghdb7p5.js";
13
14
  import {
14
15
  npmRegistryFromEnv,
15
16
  warnIgnoredNpmRegistry,
16
17
  getNpmRegistryUrl
17
18
  } from "./index-ny2k80mv.js";
18
- import"./index-p9f6dsf2.js";
19
- import"./index-y9xbhs20.js";
20
- import"./index-df0r4008.js";
19
+ import"./index-vm0dn0mt.js";
20
+ import"./index-43f4h4cm.js";
21
+ import"./index-an76bdrv.js";
21
22
  import"./index-m9jj544v.js";
22
- import"./index-qx12c8k5.js";
23
- import"./index-36dywqhv.js";
24
- import"./index-n0vev0fv.js";
25
- import"./index-kj7vyjng.js";
23
+ import"./index-nmvhjn8c.js";
24
+ import"./index-xvk2a75m.js";
25
+ import"./index-j6gc8n14.js";
26
+ import"./index-j9790rhk.js";
26
27
  import"./index-b4qq3rq0.js";
27
28
  import {
28
29
  ApplicationScript
29
- } from "./index-mtxbw4fy.js";
30
- import"./index-9km2h20g.js";
30
+ } from "./index-28x1aszt.js";
31
+ import"./index-rfzp4pqs.js";
31
32
  import {
32
33
  CloudRunner
33
- } from "./index-1kj847m5.js";
34
+ } from "./index-rp4yf32g.js";
34
35
  import"./index-qd7xn2bk.js";
35
36
  import"./index-9p260r4e.js";
36
37
  import"./index-cmg5ngqa.js";
37
- import"./index-dtxntsfx.js";
38
+ import"./index-5zwr4n6k.js";
38
39
  import {
39
40
  PackageScript
40
- } from "./index-w0nztbs0.js";
41
- import"./index-y1a7dc7t.js";
41
+ } from "./index-swwjakt0.js";
42
+ import"./index-gcx48get.js";
42
43
  import"./index-9bv479q5.js";
43
44
 
44
45
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
@@ -4,17 +4,18 @@ import {
4
4
  Module,
5
5
  ModuleOrService,
6
6
  command
7
- } from "./index-ggzb32a9.js";
7
+ } from "./index-exn38bzx.js";
8
+ import"./index-j4yvgfhr.js";
8
9
  import"./index-bns3wcpc.js";
9
- import"./index-0fq1b5jp.js";
10
+ import"./index-3ghdb7p5.js";
10
11
  import {
11
12
  renderPrimitiveReport
12
- } from "./index-z0r6bhqe.js";
13
+ } from "./index-2vgv7fs7.js";
13
14
  import"./index-9p260r4e.js";
14
- import"./index-dnqznx16.js";
15
+ import"./index-34792nh7.js";
15
16
  import {
16
17
  ModuleScript
17
- } from "./index-ttrrm805.js";
18
+ } from "./index-hqv34wzq.js";
18
19
 
19
20
  // pkgs/@akanjs/cli/module/module.command.ts
20
21
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,16 +3,17 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-ggzb32a9.js";
6
+ } from "./index-exn38bzx.js";
7
+ import"./index-j4yvgfhr.js";
7
8
  import"./index-bns3wcpc.js";
8
- import"./index-0fq1b5jp.js";
9
+ import"./index-3ghdb7p5.js";
9
10
  import"./index-qd7xn2bk.js";
10
11
  import"./index-9p260r4e.js";
11
12
  import"./index-cmg5ngqa.js";
12
- import"./index-dtxntsfx.js";
13
+ import"./index-5zwr4n6k.js";
13
14
  import {
14
15
  PackageScript
15
- } from "./index-w0nztbs0.js";
16
+ } from "./index-swwjakt0.js";
16
17
 
17
18
  // pkgs/@akanjs/cli/package/package.command.ts
18
19
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.7",
3
+ "version": "3.2.0-rc.8",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.7",
42
+ "akanjs": "3.2.0-rc.8",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,12 +3,13 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-ggzb32a9.js";
6
+ } from "./index-exn38bzx.js";
7
+ import"./index-j4yvgfhr.js";
7
8
  import"./index-bns3wcpc.js";
8
- import"./index-0fq1b5jp.js";
9
+ import"./index-3ghdb7p5.js";
9
10
  import {
10
11
  PageScript
11
- } from "./index-dnqznx16.js";
12
+ } from "./index-34792nh7.js";
12
13
 
13
14
  // pkgs/@akanjs/cli/page/page.command.ts
14
15
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,7 +4,8 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-ggzb32a9.js";
7
+ } from "./index-exn38bzx.js";
8
+ import"./index-j4yvgfhr.js";
8
9
  import {
9
10
  FileSys2
10
11
  } from "./index-bns3wcpc.js";
@@ -12,7 +13,7 @@ import {
12
13
  AkanAppConfig,
13
14
  AkanWorkspaceConfig,
14
15
  AppExecutor
15
- } from "./index-0fq1b5jp.js";
16
+ } from "./index-3ghdb7p5.js";
16
17
  import {
17
18
  resolveMobileTargets
18
19
  } from "./index-m9jj544v.js";
@@ -2,18 +2,19 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-ggzb32a9.js";
5
+ } from "./index-exn38bzx.js";
6
+ import"./index-j4yvgfhr.js";
6
7
  import"./index-bns3wcpc.js";
7
- import"./index-0fq1b5jp.js";
8
+ import"./index-3ghdb7p5.js";
8
9
  import {
9
10
  renderPrimitiveReport
10
- } from "./index-z0r6bhqe.js";
11
+ } from "./index-2vgv7fs7.js";
11
12
  import"./index-9p260r4e.js";
12
- import"./index-dnqznx16.js";
13
- import"./index-ttrrm805.js";
13
+ import"./index-34792nh7.js";
14
+ import"./index-hqv34wzq.js";
14
15
  import {
15
16
  PrimitiveScript
16
- } from "./index-t0a5mng5.js";
17
+ } from "./index-0hbtve0a.js";
17
18
 
18
19
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
19
20
  import { Logger } from "akanjs/common";
@@ -1,7 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-0fq1b5jp.js";
4
+ } from "./index-3ghdb7p5.js";
5
+ import"./index-j4yvgfhr.js";
5
6
  export {
6
7
  ProjectTypecheck2 as ProjectTypecheck
7
8
  };
@@ -3,28 +3,29 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-ggzb32a9.js";
6
+ } from "./index-exn38bzx.js";
7
+ import"./index-j4yvgfhr.js";
7
8
  import"./index-bns3wcpc.js";
8
9
  import {
9
10
  AppExecutor,
10
11
  LibExecutor,
11
12
  PkgExecutor
12
- } from "./index-0fq1b5jp.js";
13
+ } from "./index-3ghdb7p5.js";
13
14
  import {
14
15
  MaintainabilityBaseline
15
- } from "./index-dtxntsfx.js";
16
+ } from "./index-5zwr4n6k.js";
16
17
  import {
17
18
  WorkspaceRunner,
18
19
  AkanQualityScanner,
19
20
  formatQualityScanResult,
20
21
  formatSsrScanResult
21
- } from "./index-1xfdzwrt.js";
22
+ } from "./index-xyn02k0w.js";
22
23
  import"./index-9p260r4e.js";
23
24
  import"./index-62md4dwy.js";
24
25
  import"./index-ygdbn9jn.js";
25
26
  import"./index-hj6w4ka1.js";
26
27
  import"./index-ny2k80mv.js";
27
- import"./index-v50xjbbe.js";
28
+ import"./index-t4d0ckde.js";
28
29
 
29
30
  // pkgs/@akanjs/cli/quality/quality.script.ts
30
31
  import { Logger } from "akanjs/common";
@@ -3,16 +3,17 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-ggzb32a9.js";
6
+ } from "./index-exn38bzx.js";
7
+ import"./index-j4yvgfhr.js";
7
8
  import"./index-bns3wcpc.js";
8
- import"./index-0fq1b5jp.js";
9
- import"./index-fq72hk0a.js";
9
+ import"./index-3ghdb7p5.js";
10
+ import"./index-yckz5t8b.js";
10
11
  import"./index-hj6w4ka1.js";
11
- import"./index-z0r6bhqe.js";
12
+ import"./index-2vgv7fs7.js";
12
13
  import"./index-9p260r4e.js";
13
14
  import {
14
15
  RepairRunner
15
- } from "./index-yp6mpazs.js";
16
+ } from "./index-99qvtff2.js";
16
17
 
17
18
  // pkgs/@akanjs/cli/repair/repair.script.ts
18
19
  import { Logger } from "akanjs/common";
@@ -2,16 +2,17 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-ggzb32a9.js";
5
+ } from "./index-exn38bzx.js";
6
+ import"./index-j4yvgfhr.js";
6
7
  import"./index-bns3wcpc.js";
7
- import"./index-0fq1b5jp.js";
8
+ import"./index-3ghdb7p5.js";
8
9
  import {
9
10
  renderPrimitiveReport
10
- } from "./index-z0r6bhqe.js";
11
+ } from "./index-2vgv7fs7.js";
11
12
  import"./index-9p260r4e.js";
12
13
  import {
13
14
  ScalarScript
14
- } from "./index-mcdezskv.js";
15
+ } from "./index-2mf1aen9.js";
15
16
 
16
17
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
17
18
  import { Logger, lowerlize } from "akanjs/common";
@@ -9,7 +9,7 @@ description: "Check and debug a running Akan app: akan preview for what a page s
9
9
 
10
10
  `akan preview <app> [paths]` opens pages of the app's dev server in a headless browser and prints, per page,
11
11
  the HTTP status, the title, a slice of the visible text, the uncaught errors and rejections the page reported,
12
- the server errors logged meanwhile, console errors and warnings, and layout smells. It exits 1 when a page failed.
12
+ the server errors logged meanwhile, console errors and warnings, and layout smells. It exits 3 when a page failed.
13
13
 
14
14
  - It uses the dev server that answers for this app and checkout. With none, it starts one for the run and
15
15
  stops it after; `--keep` leaves it up for the next preview. It never starts a second server beside a
@@ -23,7 +23,8 @@ an endpoint with a real guard is published, one with none is refused, and so is
23
23
  - `option.setMcp({ … })` in the app's `lib/option.ts`, never `main.ts`; `AKAN_MCP=false` takes the surface off.
24
24
  - `JWT_SECRET` is required outside `local`.
25
25
  - Every published entry needs a `.desc()`; model-facing text is English.
26
- - Never make a refusal message more helpful.
26
+ - Never make a refusal message more helpful. A client branches on the code a failure carries
27
+ (`_meta["akanjs/failure"]`, or a JSON-RPC error's `data.code`), never on its text.
27
28
 
28
29
  ## Pages for the host
29
30
 
@@ -44,7 +44,7 @@ an apply that failed, names none: do what the diagnostic says, then plan again.
44
44
  Returns `planPath` and `next.tool=apply_workflow`. (`list_workflows` / `explain_workflow` give the names
45
45
  and each workflow's inputs.)
46
46
  2. `apply_workflow({ planPath })` — writes the scaffold and syncs the generated barrels. Returns
47
- `validationTarget`.
47
+ `validationTarget`. With `dryRun: true` it writes nothing and names this apply next.
48
48
  3. `run_validation({ runIdOrPlan: <validationTarget> })`, or run `akan verify` (`akan_verify` in akan code);
49
49
  both are the whole chain in one process.
50
50
  4. **Read each scaffolded file before editing it.** They are a few lines each and they extend base classes
@@ -20,6 +20,7 @@ three times the output. Narrow the one command instead:
20
20
  - `akan verify --no-build` — leave the app build out.
21
21
  - `akan verify --max 0` — every line, when the report ends in `+N more`.
22
22
  - `fixed N files` in the header means lint rewrote them on disk: re-read before editing them again.
23
+ - It exits 3 when it found problems, 2 for a target the workspace does not have, 1 when the run itself broke.
23
24
 
24
25
  Raw `tsc` misses the generated barrels and reports false errors. Do not reach for it.
25
26
 
@@ -5,7 +5,8 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-ggzb32a9.js";
8
+ } from "./index-exn38bzx.js";
9
+ import"./index-j4yvgfhr.js";
9
10
  import {
10
11
  FileSys2
11
12
  } from "./index-bns3wcpc.js";
@@ -14,20 +15,20 @@ import {
14
15
  Executor,
15
16
  WorkspaceExecutor,
16
17
  AppExecutor
17
- } from "./index-0fq1b5jp.js";
18
+ } from "./index-3ghdb7p5.js";
18
19
  import {
19
20
  GlobalConfig
20
- } from "./index-9km2h20g.js";
21
+ } from "./index-rfzp4pqs.js";
21
22
  import"./index-m9jj544v.js";
22
- import"./index-y9xbhs20.js";
23
- import"./index-qx12c8k5.js";
24
- import"./index-36dywqhv.js";
23
+ import"./index-43f4h4cm.js";
24
+ import"./index-nmvhjn8c.js";
25
+ import"./index-xvk2a75m.js";
25
26
  import {
26
27
  SubspaceConfig
27
28
  } from "./index-h7hehkw6.js";
28
29
  import {
29
30
  SlicePlanner
30
- } from "./index-y1a7dc7t.js";
31
+ } from "./index-gcx48get.js";
31
32
 
32
33
  // pkgs/@akanjs/devkit/subspace.ts
33
34
  import { mkdir as mkdir2 } from "fs/promises";
@@ -818,7 +819,7 @@ class SubspaceRunner extends runner("subspace") {
818
819
  if (!asked)
819
820
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
820
821
  const { libs } = await subspace.slice();
821
- const { CloudScript } = await import("./cloud.script-w5b0a1sm.js");
822
+ const { CloudScript } = await import("./cloud.script-xze4zh7n.js");
822
823
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
823
824
  host,
824
825
  workspaceId,
@@ -4,22 +4,23 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-ggzb32a9.js";
7
+ } from "./index-exn38bzx.js";
8
+ import"./index-j4yvgfhr.js";
8
9
  import"./index-bns3wcpc.js";
9
10
  import {
10
11
  AppExecutor
11
- } from "./index-0fq1b5jp.js";
12
+ } from "./index-3ghdb7p5.js";
12
13
  import {
13
14
  GlobalConfig,
14
15
  CloudApi
15
- } from "./index-9km2h20g.js";
16
+ } from "./index-rfzp4pqs.js";
16
17
  import"./index-m9jj544v.js";
17
- import"./index-y9xbhs20.js";
18
- import"./index-qx12c8k5.js";
19
- import"./index-36dywqhv.js";
18
+ import"./index-43f4h4cm.js";
19
+ import"./index-nmvhjn8c.js";
20
+ import"./index-xvk2a75m.js";
20
21
  import {
21
22
  TunnelShare2
22
- } from "./index-xzscbgx2.js";
23
+ } from "./index-k92x3vne.js";
23
24
  import {
24
25
  writeClipboard
25
26
  } from "./index-p6pbz9n5.js";
package/typecheck.proc.js CHANGED
@@ -2,6 +2,9 @@
2
2
  import {
3
3
  TypeChecker2
4
4
  } from "./index-r0a604h4.js";
5
+ import {
6
+ TypecheckFailure
7
+ } from "./index-j4yvgfhr.js";
5
8
 
6
9
  // pkgs/@akanjs/devkit/typecheck/typecheck.proc.ts
7
10
  import { Logger } from "akanjs/common";
@@ -29,11 +32,11 @@ try {
29
32
  if (process.env.AKAN_TYPECHECK_FORMAT === "json") {
30
33
  const root = process.env.AKAN_TYPECHECK_ROOT ?? process.cwd();
31
34
  process.stdout.write(JSON.stringify(TypeChecker2.toRecords(result.errors, root)));
32
- process.exit(result.errors.length > 0 ? 1 : 0);
35
+ process.exit(result.errors.length > 0 ? TypecheckFailure.workerExitCode : 0);
33
36
  }
34
37
  if (result.errors.length > 0) {
35
38
  console.error(result.message);
36
- process.exit(1);
39
+ process.exit(TypecheckFailure.workerExitCode);
37
40
  }
38
41
  } catch (error) {
39
42
  console.error(error instanceof Error ? error.message : String(error));