@akanjs/cli 3.0.0-alpha.1 → 3.0.0-alpha.11

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 (88) hide show
  1. package/.build-stamp +1 -1
  2. package/{agent.command-yv00p0s0.js → agent.command-a3n15c6t.js} +7 -6
  3. package/{application.command-0qsczf4k.js → application.command-rdm3et0g.js} +5 -4
  4. package/{applicationBuildRunner-ct2pxyvw.js → applicationBuildRunner-6m8n71w4.js} +3 -3
  5. package/buildBatch.proc.js +4 -3
  6. package/{capacitorApp-4r9sm3qg.js → capacitorApp-mr81qdxq.js} +5 -2
  7. package/{cloud.command-dxfv18sa.js → cloud.command-56aeekqn.js} +8 -7
  8. package/{context.command-8d9e3k6b.js → context.command-ysxawe7h.js} +14 -13
  9. package/getDirname-m9s0cmhq.js +8 -0
  10. package/{guideline.command-3jbkxzh6.js → guideline.command-yqf9a372.js} +5 -4
  11. package/guidelines/conventions/conventions.generate.json +25 -0
  12. package/guidelines/conventions/conventions.instruction.md +825 -0
  13. package/guidelines/cssRule/cssRule.instruction.md +7 -0
  14. package/guidelines/framework/framework.instruction.md +1 -0
  15. package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +24 -0
  16. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +974 -0
  17. package/incrementalBuilder.proc.js +3 -2
  18. package/index-1577bej2.js +7 -0
  19. package/{index-1pvex4az.js → index-3789fdpg.js} +13 -13
  20. package/{index-ec09pws3.js → index-4mgkgba3.js} +3 -3
  21. package/{index-bbkek1bp.js → index-65aeh789.js} +1 -1
  22. package/{index-7c6k4yvg.js → index-8pd02prk.js} +2 -2
  23. package/{index-t3723f99.js → index-9va8zayb.js} +86 -17
  24. package/{index-nm6wghb6.js → index-a5cs7d8r.js} +5 -5
  25. package/{index-e16gnn26.js → index-bzznxgcx.js} +7 -7
  26. package/{index-pyt2b4nw.js → index-cav1azma.js} +103 -22
  27. package/{index-2q1f5j9k.js → index-cv9cxs5k.js} +3 -3
  28. package/{index-a00jg8x8.js → index-e4b2ae6b.js} +49 -32
  29. package/{index-8hsbnyes.js → index-etwh7sd3.js} +4 -2
  30. package/{index-k95xkh4p.js → index-h5whaj26.js} +2 -2
  31. package/{index-tdbas9r0.js → index-j37qq1f2.js} +1 -1
  32. package/{index-rh16j3c7.js → index-j9cxndc0.js} +3 -2
  33. package/{index-rzwcpcc3.js → index-kcsa1zff.js} +1 -1
  34. package/{index-bekddz9q.js → index-m90fn8xe.js} +4 -4
  35. package/{index-yzmhasdb.js → index-mewacxye.js} +7 -7
  36. package/{index-zasydjxd.js → index-nwqqssnb.js} +8 -10
  37. package/{index-mr5s7mqd.js → index-yzmqvg23.js} +3 -3
  38. package/{index-hgna5rjy.js → index-yzsxc30b.js} +94 -47
  39. package/{index-ej426mcr.js → index-z1s5f4e0.js} +34 -6
  40. package/index.js +19 -18
  41. package/{library.command-ebdj1vnm.js → library.command-x6t29a30.js} +4 -3
  42. package/{localRegistry.command-gb178ne8.js → localRegistry.command-649g1n7b.js} +7 -6
  43. package/{module.command-9c1bnsx4.js → module.command-8w8ys5t3.js} +7 -6
  44. package/{package.command-t93p4jkj.js → package.command-zgy7f3fz.js} +4 -3
  45. package/package.json +2 -2
  46. package/{page.command-k3k0meh2.js → page.command-yjmnkyk2.js} +4 -3
  47. package/{primitive.command-de6nktdt.js → primitive.command-gfqaagsg.js} +8 -7
  48. package/{quality.command-z5kth2wa.js → quality.command-ec8r1dn3.js} +369 -128
  49. package/{repair.command-ehf2g112.js → repair.command-p9ey6mkm.js} +6 -5
  50. package/{routeSourceValidator-cncd92fv.js → routeSourceValidator-e4jmbfcx.js} +2 -38
  51. package/{scalar.command-7a2jtv33.js → scalar.command-9dhmqhtm.js} +6 -5
  52. package/templates/app/page/styles.css.template +3 -3
  53. package/templates/appSample/srvkit/AuthGuard.ts +9 -5
  54. package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
  55. package/templates/crudPages/[__model__Id]/edit/page.tsx +1 -1
  56. package/templates/crudPages/new/page.tsx +1 -1
  57. package/templates/crudSinglePage/page.tsx +1 -1
  58. package/templates/lib/db.ts +3 -1
  59. package/templates/lib/useClient.ts +9 -3
  60. package/templates/module/__Model__.Util.tsx +1 -1
  61. package/templates/module/__Model__.Zone.tsx +3 -5
  62. package/templates/workspaceRoot/AGENTS.md.template +0 -948
  63. package/templates/workspaceRoot/biome.json.template +4 -198
  64. package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +4 -1
  65. package/{workflow.command-e0tt0vk2.js → workflow.command-ycwc6zr6.js} +13 -12
  66. package/{workspace.command-fpda0evj.js → workspace.command-xhyhajxa.js} +67 -48
  67. package/templates/libRoot/base/baseLogic.ts +0 -14
  68. package/templates/libRoot/base/index.ts +0 -8
  69. package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
  70. package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -33
  71. package/templates/workspaceRoot/.cursor/rules/application-test-commands.mdc.template +0 -16
  72. package/templates/workspaceRoot/.cursor/rules/change-scope.mdc.template +0 -12
  73. package/templates/workspaceRoot/.cursor/rules/client-server-boundaries.mdc.template +0 -18
  74. package/templates/workspaceRoot/.cursor/rules/coding-comments.mdc.template +0 -25
  75. package/templates/workspaceRoot/.cursor/rules/coding-style.mdc.template +0 -44
  76. package/templates/workspaceRoot/.cursor/rules/domain-module-conventions.mdc.template +0 -17
  77. package/templates/workspaceRoot/.cursor/rules/format-lint.mdc.template +0 -12
  78. package/templates/workspaceRoot/.cursor/rules/lint-enforced-rules.mdc.template +0 -18
  79. package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -61
  80. package/templates/workspaceRoot/.cursor/rules/naming-conventions.mdc.template +0 -15
  81. package/templates/workspaceRoot/.cursor/rules/react-component-style.mdc.template +0 -21
  82. package/templates/workspaceRoot/.cursor/rules/repo-overview.mdc.template +0 -17
  83. package/templates/workspaceRoot/.cursor/rules/scalar-modeling.mdc.template +0 -58
  84. package/templates/workspaceRoot/.cursor/rules/secrets-and-env.mdc.template +0 -13
  85. package/templates/workspaceRoot/.cursor/rules/service-signal-conventions.mdc.template +0 -83
  86. package/templates/workspaceRoot/.cursor/rules/srvkit-adapters-and-guards.mdc.template +0 -50
  87. package/templates/workspaceRoot/.cursor/rules/ssr-first.mdc.template +0 -59
  88. package/templates/workspaceRoot/.cursor/rules/typescript-imports.mdc.template +0 -16
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- 8978ecc29bed4933e395dd03d27e5e3f76ba864e8e303fd3500ea45c948ca8de
1
+ a34d45f587458f2d61958dd9ee987f37603163c544913a6db6391770a8849f01
@@ -1,17 +1,18 @@
1
1
  // @bun
2
2
  import {
3
3
  AgentScript
4
- } from "./index-ej426mcr.js";
5
- import"./index-a00jg8x8.js";
6
- import"./index-rzwcpcc3.js";
7
- import"./index-tdbas9r0.js";
4
+ } from "./index-z1s5f4e0.js";
5
+ import"./index-e4b2ae6b.js";
6
+ import"./index-kcsa1zff.js";
7
+ import"./index-j37qq1f2.js";
8
8
  import {
9
9
  Workspace,
10
10
  command
11
- } from "./index-8hsbnyes.js";
12
- import"./index-hgna5rjy.js";
11
+ } from "./index-etwh7sd3.js";
12
+ import"./index-yzsxc30b.js";
13
13
  import"./index-mxvakhsm.js";
14
14
  import"./index-xys926f2.js";
15
+ import"./index-1577bej2.js";
15
16
  import"./index-67546d0j.js";
16
17
  import"./index-r24hmh0q.js";
17
18
 
@@ -4,22 +4,23 @@ import {
4
4
  } from "./index-0wae5ebk.js";
5
5
  import {
6
6
  ApplicationScript
7
- } from "./index-e16gnn26.js";
7
+ } from "./index-bzznxgcx.js";
8
+ import"./index-8pd02prk.js";
8
9
  import {
9
10
  getMobileTargetChoices
10
11
  } from "./index-76rn3g2c.js";
11
- import"./index-7c6k4yvg.js";
12
12
  import {
13
13
  App,
14
14
  Exec,
15
15
  Sys,
16
16
  Workspace,
17
17
  command
18
- } from "./index-8hsbnyes.js";
18
+ } from "./index-etwh7sd3.js";
19
19
  import"./index-fgc8r6dj.js";
20
20
  import"./index-bjpxzr6s.js";
21
- import"./index-hgna5rjy.js";
21
+ import"./index-yzsxc30b.js";
22
22
  import"./index-mxvakhsm.js";
23
+ import"./index-1577bej2.js";
23
24
  import"./index-67546d0j.js";
24
25
  import"./index-r24hmh0q.js";
25
26
 
@@ -4,9 +4,9 @@ import {
4
4
  CsrArtifactBuilder,
5
5
  SsrBaseArtifactBuilder,
6
6
  precompressArtifacts
7
- } from "./index-pyt2b4nw.js";
7
+ } from "./index-cav1azma.js";
8
8
  import"./index-xjd3rqzj.js";
9
- import"./index-rh16j3c7.js";
9
+ import"./index-j9cxndc0.js";
10
10
  import"./index-bjpxzr6s.js";
11
11
  import {
12
12
  Spinner
@@ -66,7 +66,7 @@ class ApplicationBuildRunner {
66
66
  await this.#runPhase("backend", "Compiling backend", () => this.#buildBackend(), (result) => `${result.entrypoints} entrypoints, ${result.outputs} outputs`, phaseOptions);
67
67
  await this.#runPhase("ssr", "Building SSR route artifacts", () => this.#buildSsr(), (result) => result ? `${result.allRoutes.manifest.routeIds.length} routes, ${result.allRoutes.manifest.knownEntries.length} entries` : "skipped", phaseOptions);
68
68
  await this.#runPhase("csr", "Building CSR assets", () => this.#buildCsr(), (result) => result?.outputDir ?? "skipped", phaseOptions);
69
- await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> ${ApplicationBuildRunner.formatBytes(result.outputBytes)}` : "no files", phaseOptions);
69
+ await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> gzip ${ApplicationBuildRunner.formatBytes(result.outputBytes)} / br ${ApplicationBuildRunner.formatBytes(result.brotliBytes)}` : "no files", phaseOptions);
70
70
  await this.#runPhase("metadata", "Writing production metadata", () => this.#buildAppMeta(), undefined, {
71
71
  spinner
72
72
  });
@@ -5,15 +5,16 @@ import {
5
5
  FontOptimizer,
6
6
  PagesBundleBuilder,
7
7
  SsrBaseArtifactBuilder
8
- } from "./index-pyt2b4nw.js";
8
+ } from "./index-cav1azma.js";
9
9
  import"./index-xjd3rqzj.js";
10
- import"./index-rh16j3c7.js";
10
+ import"./index-j9cxndc0.js";
11
11
  import"./index-bjpxzr6s.js";
12
12
  import {
13
13
  AppExecutor,
14
14
  WorkspaceExecutor
15
- } from "./index-hgna5rjy.js";
15
+ } from "./index-yzsxc30b.js";
16
16
  import"./index-mxvakhsm.js";
17
+ import"./index-1577bej2.js";
17
18
  import"./index-67546d0j.js";
18
19
  import"./index-r24hmh0q.js";
19
20
 
@@ -11,6 +11,7 @@ import {
11
11
  formatAndroidReleaseSigningError,
12
12
  formatIosRunFailureMessage,
13
13
  getAdbDeviceStateIssues,
14
+ getAndroidLocalServerHost,
14
15
  getMissingAndroidReleaseSigningKeys,
15
16
  isPlaceholderAppId,
16
17
  materializeCapacitorConfig,
@@ -24,10 +25,11 @@ import {
24
25
  selectLocalDevHost,
25
26
  sortIosRunTargets,
26
27
  writeRootCapacitorConfig
27
- } from "./index-t3723f99.js";
28
+ } from "./index-9va8zayb.js";
28
29
  import"./index-76rn3g2c.js";
29
- import"./index-hgna5rjy.js";
30
+ import"./index-yzsxc30b.js";
30
31
  import"./index-mxvakhsm.js";
32
+ import"./index-1577bej2.js";
31
33
  import"./index-67546d0j.js";
32
34
  import"./index-r24hmh0q.js";
33
35
  export {
@@ -44,6 +46,7 @@ export {
44
46
  materializeCapacitorConfig,
45
47
  isPlaceholderAppId,
46
48
  getMissingAndroidReleaseSigningKeys,
49
+ getAndroidLocalServerHost,
47
50
  getAdbDeviceStateIssues,
48
51
  formatIosRunFailureMessage,
49
52
  formatAndroidReleaseSigningError,
@@ -1,23 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript
4
- } from "./index-nm6wghb6.js";
5
- import"./index-zasydjxd.js";
6
- import"./index-k95xkh4p.js";
4
+ } from "./index-a5cs7d8r.js";
5
+ import"./index-nwqqssnb.js";
6
+ import"./index-h5whaj26.js";
7
7
  import {
8
8
  GlobalConfig
9
9
  } from "./index-0cj2zxbm.js";
10
- import"./index-e16gnn26.js";
10
+ import"./index-bzznxgcx.js";
11
+ import"./index-8pd02prk.js";
11
12
  import"./index-76rn3g2c.js";
12
- import"./index-7c6k4yvg.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-8hsbnyes.js";
16
+ } from "./index-etwh7sd3.js";
17
17
  import"./index-fgc8r6dj.js";
18
18
  import"./index-bjpxzr6s.js";
19
- import"./index-hgna5rjy.js";
19
+ import"./index-yzsxc30b.js";
20
20
  import"./index-mxvakhsm.js";
21
+ import"./index-1577bej2.js";
21
22
  import"./index-46tjzh6s.js";
22
23
  import"./index-67546d0j.js";
23
24
  import"./index-r24hmh0q.js";
@@ -1,27 +1,28 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextScript
4
- } from "./index-1pvex4az.js";
5
- import"./index-mr5s7mqd.js";
6
- import"./index-2q1f5j9k.js";
7
- import"./index-bekddz9q.js";
8
- import"./index-yzmhasdb.js";
9
- import"./index-bbkek1bp.js";
10
- import"./index-ec09pws3.js";
4
+ } from "./index-3789fdpg.js";
5
+ import"./index-yzmqvg23.js";
6
+ import"./index-cv9cxs5k.js";
7
+ import"./index-4mgkgba3.js";
8
+ import"./index-m90fn8xe.js";
9
+ import"./index-mewacxye.js";
11
10
  import"./index-ss469dec.js";
12
- import"./index-t3723f99.js";
11
+ import"./index-65aeh789.js";
12
+ import"./index-9va8zayb.js";
13
13
  import"./index-0cj2zxbm.js";
14
- import"./index-a00jg8x8.js";
15
- import"./index-rzwcpcc3.js";
16
- import"./index-tdbas9r0.js";
14
+ import"./index-e4b2ae6b.js";
15
+ import"./index-kcsa1zff.js";
16
+ import"./index-j37qq1f2.js";
17
17
  import"./index-76rn3g2c.js";
18
18
  import {
19
19
  Workspace,
20
20
  command
21
- } from "./index-8hsbnyes.js";
22
- import"./index-hgna5rjy.js";
21
+ } from "./index-etwh7sd3.js";
22
+ import"./index-yzsxc30b.js";
23
23
  import"./index-mxvakhsm.js";
24
24
  import"./index-xys926f2.js";
25
+ import"./index-1577bej2.js";
25
26
  import"./index-67546d0j.js";
26
27
  import"./index-r24hmh0q.js";
27
28
 
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import {
3
+ getDirname
4
+ } from "./index-1577bej2.js";
5
+ import"./index-r24hmh0q.js";
6
+ export {
7
+ getDirname
8
+ };
@@ -4,17 +4,18 @@ import {
4
4
  } from "./index-0cj2zxbm.js";
5
5
  import {
6
6
  Prompter
7
- } from "./index-tdbas9r0.js";
7
+ } from "./index-j37qq1f2.js";
8
8
  import {
9
9
  Workspace,
10
10
  command,
11
11
  runner,
12
12
  script
13
- } from "./index-8hsbnyes.js";
13
+ } from "./index-etwh7sd3.js";
14
+ import"./index-yzsxc30b.js";
15
+ import"./index-mxvakhsm.js";
14
16
  import {
15
17
  getDirname
16
- } from "./index-hgna5rjy.js";
17
- import"./index-mxvakhsm.js";
18
+ } from "./index-1577bej2.js";
18
19
  import {
19
20
  FileSys
20
21
  } from "./index-67546d0j.js";
@@ -0,0 +1,25 @@
1
+ {
2
+ "title": "Workspace Conventions",
3
+ "description": "The tool-neutral Akan convention set rendered into every workspace AGENTS.md managed block",
4
+ "group": "core",
5
+ "codegenPriority": 1,
6
+ "deprecated": false,
7
+ "scans": [],
8
+ "update": {
9
+ "filePath": "./conventions.instruction.md",
10
+ "contents": [
11
+ "change scope",
12
+ "lint-enforced rules",
13
+ "coding style and comments",
14
+ "client/server boundaries and SSR",
15
+ "domain module, service, signal, and scalar conventions",
16
+ "page routing, sync layout, and layer placement"
17
+ ],
18
+ "rules": [
19
+ "Use current Akan APIs only",
20
+ "State the rule and the reason it exists, never restate a type signature",
21
+ "Name the .grit rule that enforces a rule wherever one does",
22
+ "Keep it workspace-neutral — no app or repo names, since every workspace renders this file"
23
+ ]
24
+ }
25
+ }