@akanjs/cli 3.0.0-alpha.1 → 3.0.0-alpha.10
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.
- package/.build-stamp +1 -1
- package/{agent.command-yv00p0s0.js → agent.command-f0gqkfgz.js} +7 -6
- package/{application.command-0qsczf4k.js → application.command-x903m2qq.js} +5 -4
- package/{applicationBuildRunner-ct2pxyvw.js → applicationBuildRunner-ha3y8ew8.js} +3 -3
- package/buildBatch.proc.js +4 -3
- package/{capacitorApp-4r9sm3qg.js → capacitorApp-9xswcgx7.js} +5 -2
- package/{cloud.command-dxfv18sa.js → cloud.command-zs6kyf83.js} +8 -7
- package/{context.command-8d9e3k6b.js → context.command-fmepgjzg.js} +14 -13
- package/getDirname-m9s0cmhq.js +8 -0
- package/{guideline.command-3jbkxzh6.js → guideline.command-n6sw0a0c.js} +5 -4
- package/guidelines/conventions/conventions.generate.json +25 -0
- package/guidelines/conventions/conventions.instruction.md +668 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +24 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +972 -0
- package/incrementalBuilder.proc.js +3 -2
- package/index-1577bej2.js +7 -0
- package/{index-bekddz9q.js → index-3vta1tqa.js} +4 -4
- package/{index-zasydjxd.js → index-4m0bphac.js} +3 -3
- package/{index-1pvex4az.js → index-5sn5w2mt.js} +13 -13
- package/{index-e16gnn26.js → index-62955kn5.js} +7 -7
- package/{index-a00jg8x8.js → index-774gcx29.js} +49 -32
- package/{index-t3723f99.js → index-779ske1y.js} +86 -17
- package/{index-nm6wghb6.js → index-82jrh4hj.js} +5 -5
- package/{index-7c6k4yvg.js → index-d43t8af2.js} +2 -2
- package/{index-ej426mcr.js → index-eyyf2149.js} +34 -6
- package/{index-k95xkh4p.js → index-gcv8ncfh.js} +2 -2
- package/{index-tdbas9r0.js → index-j37qq1f2.js} +1 -1
- package/{index-rh16j3c7.js → index-j9cxndc0.js} +3 -2
- package/{index-mr5s7mqd.js → index-jf2ya7r2.js} +3 -3
- package/{index-yzmhasdb.js → index-jhpa13zj.js} +7 -7
- package/{index-8hsbnyes.js → index-kdh76j26.js} +4 -2
- package/{index-pyt2b4nw.js → index-qb61h0k7.js} +52 -17
- package/{index-2q1f5j9k.js → index-qzdjd4ct.js} +3 -3
- package/{index-rzwcpcc3.js → index-rxkpk7n4.js} +1 -1
- package/{index-bbkek1bp.js → index-xmmzf150.js} +1 -1
- package/{index-ec09pws3.js → index-y4vkyhvv.js} +3 -3
- package/{index-hgna5rjy.js → index-z8ptfkzv.js} +83 -39
- package/index.js +19 -18
- package/{library.command-ebdj1vnm.js → library.command-cv9gdbmg.js} +4 -3
- package/{localRegistry.command-gb178ne8.js → localRegistry.command-d8fg36zc.js} +7 -6
- package/{module.command-9c1bnsx4.js → module.command-qyr1s9cn.js} +7 -6
- package/{package.command-t93p4jkj.js → package.command-wsjx0k47.js} +4 -3
- package/package.json +2 -2
- package/{page.command-k3k0meh2.js → page.command-rdzg65rm.js} +4 -3
- package/{primitive.command-de6nktdt.js → primitive.command-89g38b53.js} +8 -7
- package/{quality.command-z5kth2wa.js → quality.command-0cs2z92d.js} +10 -40
- package/{repair.command-ehf2g112.js → repair.command-6fphxfwj.js} +6 -5
- package/{routeSourceValidator-cncd92fv.js → routeSourceValidator-e4jmbfcx.js} +2 -38
- package/{scalar.command-7a2jtv33.js → scalar.command-xfer69s6.js} +6 -5
- package/templates/app/page/styles.css.template +3 -3
- package/templates/crudPages/[__model__Id]/edit/page.tsx +1 -1
- package/templates/crudPages/new/page.tsx +1 -1
- package/templates/crudSinglePage/page.tsx +1 -1
- package/templates/lib/db.ts +3 -1
- package/templates/lib/useClient.ts +9 -3
- package/templates/module/__Model__.Util.tsx +1 -1
- package/templates/module/__Model__.Zone.tsx +3 -5
- package/templates/workspaceRoot/AGENTS.md.template +0 -948
- package/templates/workspaceRoot/biome.json.template +3 -198
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +4 -1
- package/{workflow.command-e0tt0vk2.js → workflow.command-2ygfqt4f.js} +13 -12
- package/{workspace.command-fpda0evj.js → workspace.command-vbgpjkf9.js} +35 -33
- package/templates/libRoot/base/baseLogic.ts +0 -14
- package/templates/libRoot/base/index.ts +0 -8
- package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
- package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -33
- package/templates/workspaceRoot/.cursor/rules/application-test-commands.mdc.template +0 -16
- package/templates/workspaceRoot/.cursor/rules/change-scope.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/client-server-boundaries.mdc.template +0 -18
- package/templates/workspaceRoot/.cursor/rules/coding-comments.mdc.template +0 -25
- package/templates/workspaceRoot/.cursor/rules/coding-style.mdc.template +0 -44
- package/templates/workspaceRoot/.cursor/rules/domain-module-conventions.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/format-lint.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/lint-enforced-rules.mdc.template +0 -18
- package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -61
- package/templates/workspaceRoot/.cursor/rules/naming-conventions.mdc.template +0 -15
- package/templates/workspaceRoot/.cursor/rules/react-component-style.mdc.template +0 -21
- package/templates/workspaceRoot/.cursor/rules/repo-overview.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/scalar-modeling.mdc.template +0 -58
- package/templates/workspaceRoot/.cursor/rules/secrets-and-env.mdc.template +0 -13
- package/templates/workspaceRoot/.cursor/rules/service-signal-conventions.mdc.template +0 -83
- package/templates/workspaceRoot/.cursor/rules/srvkit-adapters-and-guards.mdc.template +0 -50
- package/templates/workspaceRoot/.cursor/rules/ssr-first.mdc.template +0 -59
- package/templates/workspaceRoot/.cursor/rules/typescript-imports.mdc.template +0 -16
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
544f143bd80d934e3bfc7a589535a00d139a33c5b27cfc22c4b02fd681602c1c
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AgentScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-eyyf2149.js";
|
|
5
|
+
import"./index-774gcx29.js";
|
|
6
|
+
import"./index-rxkpk7n4.js";
|
|
7
|
+
import"./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-kdh76j26.js";
|
|
12
|
+
import"./index-z8ptfkzv.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-
|
|
7
|
+
} from "./index-62955kn5.js";
|
|
8
|
+
import"./index-d43t8af2.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-
|
|
18
|
+
} from "./index-kdh76j26.js";
|
|
19
19
|
import"./index-fgc8r6dj.js";
|
|
20
20
|
import"./index-bjpxzr6s.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-z8ptfkzv.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-
|
|
7
|
+
} from "./index-qb61h0k7.js";
|
|
8
8
|
import"./index-xjd3rqzj.js";
|
|
9
|
-
import"./index-
|
|
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
|
});
|
package/buildBatch.proc.js
CHANGED
|
@@ -5,15 +5,16 @@ import {
|
|
|
5
5
|
FontOptimizer,
|
|
6
6
|
PagesBundleBuilder,
|
|
7
7
|
SsrBaseArtifactBuilder
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qb61h0k7.js";
|
|
9
9
|
import"./index-xjd3rqzj.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-j9cxndc0.js";
|
|
11
11
|
import"./index-bjpxzr6s.js";
|
|
12
12
|
import {
|
|
13
13
|
AppExecutor,
|
|
14
14
|
WorkspaceExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-z8ptfkzv.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-
|
|
28
|
+
} from "./index-779ske1y.js";
|
|
28
29
|
import"./index-76rn3g2c.js";
|
|
29
|
-
import"./index-
|
|
30
|
+
import"./index-z8ptfkzv.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-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-82jrh4hj.js";
|
|
5
|
+
import"./index-4m0bphac.js";
|
|
6
|
+
import"./index-gcv8ncfh.js";
|
|
7
7
|
import {
|
|
8
8
|
GlobalConfig
|
|
9
9
|
} from "./index-0cj2zxbm.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-62955kn5.js";
|
|
11
|
+
import"./index-d43t8af2.js";
|
|
11
12
|
import"./index-76rn3g2c.js";
|
|
12
|
-
import"./index-7c6k4yvg.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-kdh76j26.js";
|
|
17
17
|
import"./index-fgc8r6dj.js";
|
|
18
18
|
import"./index-bjpxzr6s.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-z8ptfkzv.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-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-ec09pws3.js";
|
|
4
|
+
} from "./index-5sn5w2mt.js";
|
|
5
|
+
import"./index-jf2ya7r2.js";
|
|
6
|
+
import"./index-qzdjd4ct.js";
|
|
7
|
+
import"./index-y4vkyhvv.js";
|
|
8
|
+
import"./index-3vta1tqa.js";
|
|
9
|
+
import"./index-jhpa13zj.js";
|
|
11
10
|
import"./index-ss469dec.js";
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-xmmzf150.js";
|
|
12
|
+
import"./index-779ske1y.js";
|
|
13
13
|
import"./index-0cj2zxbm.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
14
|
+
import"./index-774gcx29.js";
|
|
15
|
+
import"./index-rxkpk7n4.js";
|
|
16
|
+
import"./index-j37qq1f2.js";
|
|
17
17
|
import"./index-76rn3g2c.js";
|
|
18
18
|
import {
|
|
19
19
|
Workspace,
|
|
20
20
|
command
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-kdh76j26.js";
|
|
22
|
+
import"./index-z8ptfkzv.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
|
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
} from "./index-0cj2zxbm.js";
|
|
5
5
|
import {
|
|
6
6
|
Prompter
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command,
|
|
11
11
|
runner,
|
|
12
12
|
script
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-kdh76j26.js";
|
|
14
|
+
import"./index-z8ptfkzv.js";
|
|
15
|
+
import"./index-mxvakhsm.js";
|
|
14
16
|
import {
|
|
15
17
|
getDirname
|
|
16
|
-
} from "./index-
|
|
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
|
+
}
|