@akanjs/cli 3.0.0-beta.19 → 3.0.0-beta.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 (95) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-6cm97kay.js → CodeAgent-awv258wb.js} +2 -2
  3. package/{CodeTui-za4jsm41.js → CodeTui-1nqh35ez.js} +20 -22
  4. package/TunnelShare-scf4e4pd.js +9 -0
  5. package/{agent.command-e0wpbbyg.js → agent.command-1s9ag7sb.js} +8 -9
  6. package/akanCode.js +4 -4
  7. package/{application.command-8wyxqc8q.js → application.command-49hwy6va.js} +25 -56
  8. package/{applicationBuildRunner-n9gzaxd0.js → applicationBuildRunner-ybyp97pv.js} +33 -59
  9. package/{applicationReleasePackager-vpggfqgq.js → applicationReleasePackager-esnrphw8.js} +40 -60
  10. package/buildBatch.proc.js +19 -24
  11. package/{capacitorApp-q3z0qht0.js → capacitorApp-1synz4en.js} +3 -4
  12. package/{cloud.command-4zwa5dsx.js → cloud.command-d7rqtzt9.js} +16 -26
  13. package/cloud.script-bkbpcr96.js +19 -0
  14. package/{code.command-468c9d7s.js → code.command-nn48xzej.js} +22 -37
  15. package/context.command-s3mcmvpa.js +48 -0
  16. package/context.runner-k99nb5pk.js +21 -0
  17. package/{dependencyScanner-0z2h2tks.js → dependencyScanner-ye2e6pdz.js} +2 -2
  18. package/{devTui-ffjsarqa.js → devTui-q7k7bakd.js} +5 -9
  19. package/fileSys-5ngz93ga.js +9 -0
  20. package/{guideline.command-vhw13pqr.js → guideline.command-sct4qnt5.js} +4 -5
  21. package/guidelines/conventions/conventions.instruction.md +5 -1
  22. package/guidelines/mcpRule/mcpRule.instruction.md +7 -5
  23. package/incrementalBuilder.proc.js +30 -48
  24. package/{index-s5rhm04y.js → index-0bq14vr1.js} +1 -1
  25. package/{index-10dkrrww.js → index-13ffe9wp.js} +4 -4
  26. package/{index-srmay5jw.js → index-22d57v4c.js} +84 -67
  27. package/{index-53176s7j.js → index-31yr441d.js} +10 -17
  28. package/index-3hx1z96c.js +87 -0
  29. package/{index-4m929vvn.js → index-3sq321ak.js} +10 -18
  30. package/{index-bhtmj233.js → index-3t7g9e4r.js} +41 -78
  31. package/{index-q0y2jq9j.js → index-5b6tavv3.js} +6 -3
  32. package/{index-47pj3aee.js → index-5e0n4hqx.js} +11 -12
  33. package/{index-7ep8qtvp.js → index-5pc1qrbv.js} +5 -8
  34. package/{index-esk82rvk.js → index-8mna0947.js} +34 -71
  35. package/{index-sq2dzkzm.js → index-8sf7wmdr.js} +6 -6
  36. package/{index-crmeqnmf.js → index-9d9bgcx4.js} +283 -722
  37. package/{index-bwf965h6.js → index-ahemdr5n.js} +6 -6
  38. package/{index-ab0c38ea.js → index-as7xmyz8.js} +20 -20
  39. package/{index-bc88j1ry.js → index-axzjaqve.js} +94 -142
  40. package/{index-3d9y066c.js → index-bjwxs904.js} +9 -8
  41. package/{index-667w0yah.js → index-c6eggbee.js} +2 -5
  42. package/{index-a1w6934z.js → index-ddxvdd1p.js} +169 -305
  43. package/{index-92zztqy1.js → index-dy0jx9ay.js} +2 -17
  44. package/{index-22xtgmhn.js → index-dzf3r49a.js} +1 -1
  45. package/{index-89hy31kf.js → index-fgq75haa.js} +172 -287
  46. package/{index-by5gpp8x.js → index-hj6w4ka1.js} +2 -1
  47. package/{index-hwkygn9s.js → index-khpfpcsd.js} +302 -33
  48. package/{index-vqx8bdxz.js → index-mxav6j3c.js} +78 -231
  49. package/{index-2446k7b4.js → index-myhc3c1j.js} +512 -588
  50. package/{index-3jrp517k.js → index-nv5976x3.js} +45 -128
  51. package/{index-zqgj2rt2.js → index-przybvy5.js} +69 -147
  52. package/{index-n3cv0tm4.js → index-smme4r47.js} +1 -1
  53. package/{index-qdgzsnhg.js → index-w2zdcw3k.js} +110 -231
  54. package/{index-14zrtgfa.js → index-wa5jbxj1.js} +6 -39
  55. package/{index-bftkz6cp.js → index-ww4z397j.js} +198 -555
  56. package/{index-kwaq3n9n.js → index-xqjwd384.js} +4 -7
  57. package/{index-txr7dj2g.js → index-xqpzbab5.js} +106 -240
  58. package/{index-e4v6vhxq.js → index-xsjh6nzh.js} +178 -165
  59. package/{index-18zybgkc.js → index-ygn77a5w.js} +47 -99
  60. package/{index-9d6nvkz2.js → index-ztp3e73t.js} +79 -35
  61. package/index.js +23 -24
  62. package/{library.command-cqr175dy.js → library.command-1gx04jgn.js} +4 -5
  63. package/{localRegistry.command-49z55qqz.js → localRegistry.command-zndxj1q6.js} +21 -42
  64. package/{module.command-9p8mm3b0.js → module.command-3waddk95.js} +6 -7
  65. package/{package.command-wxyz909t.js → package.command-zrc7br1y.js} +5 -6
  66. package/package.json +2 -2
  67. package/{page.command-gsrsfqqs.js → page.command-vpjgardh.js} +4 -5
  68. package/{primitive.command-ns1mptje.js → primitive.command-sz84tk4t.js} +9 -20
  69. package/{prompter-1f8d9pcc.js → prompter-ptaa3nk0.js} +2 -2
  70. package/{quality.command-e76k2q9k.js → quality.command-g869hafs.js} +129 -363
  71. package/{recipeScanner-fpagtgc1.js → recipeScanner-4b69ybe0.js} +1 -1
  72. package/{repair.command-pkrsm3cw.js → repair.command-chsnjvvv.js} +11 -35
  73. package/{scalar.command-0cpt3fc8.js → scalar.command-2v21newx.js} +5 -6
  74. package/skills/akan-code/SKILL.md +12 -4
  75. package/{subspace.command-fktpwp0g.js → subspace.command-ckcbwfp1.js} +39 -58
  76. package/templates/appSample/srvkit/{AuthGuard.ts → guards.ts} +3 -3
  77. package/templates/appSample/srvkit/{SessionInternalArg.ts → internalArgs.ts} +3 -3
  78. package/templates/client.ts +7 -30
  79. package/templates/lib/__lib/lib.dictionary.ts +0 -2
  80. package/templates/lib/__lib/lib.document.ts +0 -2
  81. package/templates/lib/sig.ts +8 -30
  82. package/templates/server.ts +0 -2
  83. package/{tunnel.command-d5jy9gk8.js → tunnel.command-kd2yr4fx.js} +5 -6
  84. package/{typeChecker-3xgrzc2v.js → typeChecker-px49mezc.js} +1 -1
  85. package/typecheck.proc.js +1 -1
  86. package/workflow.command-44252cqv.js +79 -0
  87. package/{workspace.command-gv84eh1p.js → workspace.command-fqcztt5p.js} +72 -107
  88. package/TunnelShare-2j6s511d.js +0 -9
  89. package/cloud.script-fwx3vb34.js +0 -20
  90. package/context.command-dsnw0jby.js +0 -80
  91. package/context.runner-rs4rj15d.js +0 -22
  92. package/devTuiView-1q1mdgrv.js +0 -9
  93. package/getDirname-dr3jz1xg.js +0 -7
  94. package/index-6wwzs1bc.js +0 -7
  95. package/workflow.command-6tkcysmx.js +0 -105
@@ -4,28 +4,27 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-qdgzsnhg.js";
8
- import"./index-q0y2jq9j.js";
7
+ } from "./index-w2zdcw3k.js";
8
+ import"./index-5b6tavv3.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-crmeqnmf.js";
12
- import"./index-6wwzs1bc.js";
11
+ } from "./index-9d9bgcx4.js";
12
+ import"./index-khpfpcsd.js";
13
+ import"./index-5pc1qrbv.js";
13
14
  import {
14
15
  ApplicationScript
15
- } from "./index-bftkz6cp.js";
16
- import"./index-7ep8qtvp.js";
17
- import"./index-hwkygn9s.js";
16
+ } from "./index-ww4z397j.js";
18
17
  import"./index-7md2g9vw.js";
19
- import"./index-srmay5jw.js";
18
+ import"./index-22d57v4c.js";
20
19
  import {
21
20
  getNpmRegistryUrl,
22
21
  CloudRunner
23
- } from "./index-bc88j1ry.js";
24
- import"./index-bhtmj233.js";
22
+ } from "./index-axzjaqve.js";
23
+ import"./index-3t7g9e4r.js";
25
24
  import {
26
25
  PackageScript
27
- } from "./index-ab0c38ea.js";
28
- import"./index-kwaq3n9n.js";
26
+ } from "./index-as7xmyz8.js";
27
+ import"./index-xqjwd384.js";
29
28
 
30
29
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
31
30
  import { mkdir, rm } from "fs/promises";
@@ -78,6 +77,7 @@ class LocalRegistryRunner extends runner("localRegistry") {
78
77
  const registry = this.getRegistryUrl(registryUrl);
79
78
  const smokeRoot = path.join(workspace.workspaceRoot, ".akan/e2e");
80
79
  await rm(path.join(smokeRoot, smokeRepoName), { recursive: true, force: true });
80
+ const env = { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry };
81
81
  await workspace.spawn(process.execPath, [
82
82
  "dist/pkgs/create-akan-workspace/index.js",
83
83
  smokeRepoName,
@@ -89,20 +89,13 @@ class LocalRegistryRunner extends runner("localRegistry") {
89
89
  "true",
90
90
  "--registry",
91
91
  registry
92
- ], {
93
- env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
94
- stdio: "inherit"
95
- });
96
- await workspace.spawn("akan", ["typecheck", smokeAppName], {
97
- cwd: path.join(smokeRoot, smokeRepoName),
98
- env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
99
- stdio: "inherit"
100
- });
101
- await workspace.spawn("akan", ["build", smokeAppName], {
102
- cwd: path.join(smokeRoot, smokeRepoName),
103
- env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
104
- stdio: "inherit"
105
- });
92
+ ], { env, stdio: "inherit" });
93
+ for (const command of ["typecheck", "build"])
94
+ await workspace.spawn("akan", [command, smokeAppName], {
95
+ cwd: path.join(smokeRoot, smokeRepoName),
96
+ env,
97
+ stdio: "inherit"
98
+ });
106
99
  Logger.info(`Local registry smoke test completed for ${smokeRepoName}/${smokeAppName}`);
107
100
  }
108
101
  }
@@ -128,11 +121,7 @@ class LocalRegistryScript extends script("localRegistry", [
128
121
  const registry = await this.localRegistryRunner.start(workspace, { registryUrl });
129
122
  const akanPkgs = await this.cloudRunner.getAkanPkgs(workspace);
130
123
  await this.#preparePackages(workspace, akanPkgs, { test });
131
- await this.cloudRunner.deployAkan(workspace, akanPkgs, {
132
- registryUrl: registry,
133
- confirmPublish: false,
134
- tag
135
- });
124
+ await this.cloudRunner.deployAkan(workspace, akanPkgs, { registryUrl: registry, confirmPublish: false, tag });
136
125
  await this.localRegistryRunner.smoke(workspace, { registryUrl: registry });
137
126
  }
138
127
  async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
@@ -158,17 +147,7 @@ class LocalRegistryCommand extends command("local-registry", [LocalRegistryScrip
158
147
  resetRegistry: target({ devOnly: true, desc: "Stop and clear the local Verdaccio npm registry" }).with(Workspace).exec(async function(workspace) {
159
148
  await this.localRegistryScript.reset(workspace);
160
149
  }),
161
- smokeRegistry: target({ devOnly: true, desc: "Publish to local registry and build a generated workspace" }).with(Workspace).option("tag", String, {
162
- flag: "g",
163
- desc: "dist-tag for local registry publish",
164
- default: "rc"
165
- }).option("test", Boolean, {
166
- desc: "run package tests before publishing",
167
- default: true
168
- }).option("registry", String, {
169
- desc: "local npm registry URL",
170
- default: process.env.AKAN_NPM_REGISTRY
171
- }).exec(async function(workspace, tag, test, registry) {
150
+ smokeRegistry: target({ devOnly: true, desc: "Publish to local registry and build a generated workspace" }).with(Workspace).option("tag", String, { flag: "g", desc: "dist-tag for local registry publish", default: "rc" }).option("test", Boolean, { desc: "run package tests before publishing", default: true }).option("registry", String, { desc: "local npm registry URL", default: process.env.AKAN_NPM_REGISTRY }).exec(async function(workspace, tag, test, registry) {
172
151
  await this.localRegistryScript.smoke(workspace, { tag, test, registryUrl: registry });
173
152
  })
174
153
  })) {
@@ -3,17 +3,16 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-qdgzsnhg.js";
7
- import"./index-q0y2jq9j.js";
8
- import"./index-crmeqnmf.js";
9
- import"./index-6wwzs1bc.js";
6
+ } from "./index-w2zdcw3k.js";
7
+ import"./index-5b6tavv3.js";
8
+ import"./index-9d9bgcx4.js";
10
9
  import {
11
10
  renderPrimitiveReport
12
- } from "./index-2446k7b4.js";
13
- import"./index-22xtgmhn.js";
11
+ } from "./index-myhc3c1j.js";
12
+ import"./index-dzf3r49a.js";
14
13
  import {
15
14
  ModuleScript
16
- } from "./index-esk82rvk.js";
15
+ } from "./index-8mna0947.js";
17
16
 
18
17
  // pkgs/@akanjs/cli/module/module.command.ts
19
18
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,14 +3,13 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-qdgzsnhg.js";
7
- import"./index-q0y2jq9j.js";
8
- import"./index-crmeqnmf.js";
9
- import"./index-6wwzs1bc.js";
10
- import"./index-bhtmj233.js";
6
+ } from "./index-w2zdcw3k.js";
7
+ import"./index-5b6tavv3.js";
8
+ import"./index-9d9bgcx4.js";
9
+ import"./index-3t7g9e4r.js";
11
10
  import {
12
11
  PackageScript
13
- } from "./index-ab0c38ea.js";
12
+ } from "./index-as7xmyz8.js";
14
13
 
15
14
  // pkgs/@akanjs/cli/package/package.command.ts
16
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.0.0-beta.19",
3
+ "version": "3.0.0-beta.20",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -40,7 +40,7 @@
40
40
  "@inquirer/prompts": "^8.4.3",
41
41
  "@tailwindcss/node": "^4.3.0",
42
42
  "@trapezedev/project": "^7.1.4",
43
- "akanjs": "3.0.0-beta.19",
43
+ "akanjs": "3.0.0-beta.20",
44
44
  "chalk": "^5.6.2",
45
45
  "commander": "^14.0.3",
46
46
  "dayjs": "^1.11.20",
@@ -3,13 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-qdgzsnhg.js";
7
- import"./index-q0y2jq9j.js";
8
- import"./index-crmeqnmf.js";
9
- import"./index-6wwzs1bc.js";
6
+ } from "./index-w2zdcw3k.js";
7
+ import"./index-5b6tavv3.js";
8
+ import"./index-9d9bgcx4.js";
10
9
  import {
11
10
  PageScript
12
- } from "./index-22xtgmhn.js";
11
+ } from "./index-dzf3r49a.js";
13
12
 
14
13
  // pkgs/@akanjs/cli/page/page.command.ts
15
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -2,18 +2,17 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-qdgzsnhg.js";
6
- import"./index-q0y2jq9j.js";
7
- import"./index-crmeqnmf.js";
8
- import"./index-6wwzs1bc.js";
5
+ } from "./index-w2zdcw3k.js";
6
+ import"./index-5b6tavv3.js";
7
+ import"./index-9d9bgcx4.js";
9
8
  import {
10
9
  renderPrimitiveReport
11
- } from "./index-2446k7b4.js";
12
- import"./index-22xtgmhn.js";
13
- import"./index-esk82rvk.js";
10
+ } from "./index-myhc3c1j.js";
11
+ import"./index-dzf3r49a.js";
12
+ import"./index-8mna0947.js";
14
13
  import {
15
14
  PrimitiveScript
16
- } from "./index-zqgj2rt2.js";
15
+ } from "./index-przybvy5.js";
17
16
 
18
17
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
19
18
  import { Logger } from "akanjs/common";
@@ -24,11 +23,7 @@ class PrimitiveCommand extends command("primitive", [PrimitiveScript], ({ public
24
23
  default: "template",
25
24
  enum: ["view", "unit", "template"]
26
25
  }).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, surface, format) {
27
- const report = await this.primitiveScript.createUi(workspace, {
28
- app,
29
- module,
30
- surface
31
- });
26
+ const report = await this.primitiveScript.createUi(workspace, { app, module, surface });
32
27
  Logger.rawLog(renderPrimitiveReport(report, format));
33
28
  }),
34
29
  addField: target({ desc: "Add a source-limited field to a module constant and dictionary" }).with(Workspace).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("default", String, { desc: "default value", nullable: true }).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, field, typeName, defaultValue, format) {
@@ -42,13 +37,7 @@ class PrimitiveCommand extends command("primitive", [PrimitiveScript], ({ public
42
37
  Logger.rawLog(renderPrimitiveReport(report, format));
43
38
  }),
44
39
  addEnumField: target({ desc: "Add a source-limited enum field to a module constant and dictionary" }).with(Workspace).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("values", String, { flag: "l", desc: "comma-separated enum values", nullable: true }).option("default", String, { desc: "default value", nullable: true }).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, field, values, defaultValue, format) {
45
- const report = await this.primitiveScript.addEnumField(workspace, {
46
- app,
47
- module,
48
- field,
49
- values,
50
- defaultValue
51
- });
40
+ const report = await this.primitiveScript.addEnumField(workspace, { app, module, field, values, defaultValue });
52
41
  Logger.rawLog(renderPrimitiveReport(report, format));
53
42
  })
54
43
  })) {
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  Prompter2
4
- } from "./index-s5rhm04y.js";
5
- import"./index-6wwzs1bc.js";
4
+ } from "./index-0bq14vr1.js";
5
+ import"./index-5b6tavv3.js";
6
6
  export {
7
7
  Prompter2 as Prompter
8
8
  };