@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.31
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 +2 -1
- package/CodeAgent-c17abdbf.js +11 -0
- package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-mbfcaqg0.js +18 -0
- package/agent.command-9whnc6vb.js +56 -0
- package/akanCode.js +12 -12
- package/appExecutor-020cyesq.js +11 -0
- package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
- package/buildBatch.proc.js +26 -11
- package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
- package/cloud.script-9kmbr3d6.js +35 -0
- package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
- package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
- package/context.runner-nngmn7c0.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-cd03z4mx.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
- package/guidelines/agentRule/agentRule.instruction.md +29 -12
- package/guidelines/akanApi/akanApi.instruction.md +6 -4
- package/guidelines/conventions/core.md +23 -5
- package/guidelines/conventions/rules/app.md +4 -1
- package/guidelines/conventions/rules/page.md +5 -0
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +164 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +171 -2
- package/guidelines/pageRule/pageRule.instruction.md +15 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
- package/guidelines/transportRule/transportRule.instruction.md +8 -1
- package/incrementalBuilder.proc.js +574 -410
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
- package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
- package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
- package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
- package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
- package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
- package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
- package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
- package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
- package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
- package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
- package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
- package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
- package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
- package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
- package/index-dss3ds74.js +127 -0
- package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
- package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
- package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
- package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
- package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
- package/index-j4yvgfhr.js +70 -0
- package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
- package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
- package/index-na8r4a27.js +30 -0
- package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
- package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
- package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
- package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
- package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
- package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
- package/index-va90m8nd.js +25 -0
- package/index-vjbne22r.js +80 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
- package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
- package/index-ze48c0vd.js +788 -0
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +29 -24
- package/libExecutor-tq994592.js +10 -0
- package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
- package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
- package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
- package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
- package/package.json +2 -2
- package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
- package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
- package/pkgExecutor-stde3yc3.js +10 -0
- package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
- package/skills/akan-debug/SKILL.md +10 -3
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +17 -2
- package/skills/akan-scaffold/SKILL.md +2 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/skills/akan-validate/SKILL.md +1 -0
- package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
- package/templates/app/page/_layout.tsx +13 -0
- package/templates/app/page/styles.css.template +40 -0
- package/templates/appSample/page/_index.tsx +9 -9
- package/templates/appSample/page/_layout.tsx +1 -0
- package/templates/appSample/page/styles.css.template +40 -5
- package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
- package/templates/biomeForm.ts +1 -1
- package/templates/env/_env.server.type.ts +1 -1
- package/templates/facetIndex/index.ts +2 -37
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
- package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
- package/typecheck.proc.js +6 -3
- package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
- package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
- package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
- package/CodeAgent-e9c712an.js +0 -11
- package/TunnelShare-zkfkrw8w.js +0 -14
- package/agent.command-9erafkcb.js +0 -51
- package/cloud.script-arsagnq6.js +0 -30
- package/context.runner-mqpp67br.js +0 -29
- package/index-x3x31df8.js +0 -14
- /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
package/index.js
CHANGED
|
@@ -4,9 +4,14 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
|
+
import"./index-qssq2d41.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
11
|
+
import"./index-ze48c0vd.js";
|
|
12
|
+
import"./index-na8r4a27.js";
|
|
13
|
+
import"./index-dss3ds74.js";
|
|
14
|
+
import"./index-vjbne22r.js";
|
|
10
15
|
|
|
11
16
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
12
17
|
class BunVersionGuard {
|
|
@@ -22,27 +27,27 @@ import path from "path";
|
|
|
22
27
|
|
|
23
28
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
24
29
|
var commandModules = {
|
|
25
|
-
workspace: async () => (await import("./workspace.command-
|
|
26
|
-
agent: async () => (await import("./agent.command-
|
|
27
|
-
code: async () => (await import("./code.command-
|
|
28
|
-
application: async () => (await import("./application.command-
|
|
29
|
-
library: async () => (await import("./library.command-
|
|
30
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
31
|
-
package: async () => (await import("./package.command-
|
|
32
|
-
module: async () => (await import("./module.command-
|
|
33
|
-
page: async () => (await import("./page.command-
|
|
34
|
-
context: async () => (await import("./context.command-
|
|
35
|
-
cloud: async () => (await import("./cloud.command-
|
|
36
|
-
subspace: async () => (await import("./subspace.command-
|
|
37
|
-
guideline: async () => (await import("./guideline.command-
|
|
38
|
-
scalar: async () => (await import("./scalar.command-
|
|
39
|
-
primitive: async () => (await import("./primitive.command-
|
|
40
|
-
quality: async () => (await import("./quality.command-
|
|
41
|
-
verify: async () => (await import("./verify.command-
|
|
42
|
-
repair: async () => (await import("./repair.command-
|
|
43
|
-
workflow: async () => (await import("./workflow.command-
|
|
44
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
45
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
30
|
+
workspace: async () => (await import("./workspace.command-5hjtmcfs.js")).WorkspaceCommand,
|
|
31
|
+
agent: async () => (await import("./agent.command-9whnc6vb.js")).AgentCommand,
|
|
32
|
+
code: async () => (await import("./code.command-0ayrenk4.js")).CodeCommand,
|
|
33
|
+
application: async () => (await import("./application.command-4eqvyxkw.js")).ApplicationCommand,
|
|
34
|
+
library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
|
|
35
|
+
localRegistry: async () => (await import("./localRegistry.command-zvdcejhn.js")).LocalRegistryCommand,
|
|
36
|
+
package: async () => (await import("./package.command-vw7x09f8.js")).PackageCommand,
|
|
37
|
+
module: async () => (await import("./module.command-k6cwcm7g.js")).ModuleCommand,
|
|
38
|
+
page: async () => (await import("./page.command-gf06paq2.js")).PageCommand,
|
|
39
|
+
context: async () => (await import("./context.command-php852kf.js")).ContextCommand,
|
|
40
|
+
cloud: async () => (await import("./cloud.command-hbvmeezn.js")).CloudCommand,
|
|
41
|
+
subspace: async () => (await import("./subspace.command-mkkqync4.js")).SubspaceCommand,
|
|
42
|
+
guideline: async () => (await import("./guideline.command-w1grfwh7.js")).GuidelineCommand,
|
|
43
|
+
scalar: async () => (await import("./scalar.command-sjt9p5e1.js")).ScalarCommand,
|
|
44
|
+
primitive: async () => (await import("./primitive.command-edydvh07.js")).PrimitiveCommand,
|
|
45
|
+
quality: async () => (await import("./quality.command-mdb45vyr.js")).QualityCommand,
|
|
46
|
+
verify: async () => (await import("./verify.command-0p9h8tpp.js")).VerifyCommand,
|
|
47
|
+
repair: async () => (await import("./repair.command-kvtaeecy.js")).RepairCommand,
|
|
48
|
+
workflow: async () => (await import("./workflow.command-9mfcwqzj.js")).WorkflowCommand,
|
|
49
|
+
pipeline: async () => (await import("./pipeline.command-y07dgj9b.js")).PipelineCommand,
|
|
50
|
+
tunnel: async () => (await import("./tunnel.command-tr5b3030.js")).TunnelCommand
|
|
46
51
|
};
|
|
47
52
|
var commandModuleIds = Object.keys(commandModules);
|
|
48
53
|
|
|
@@ -3,12 +3,17 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-ze48c0vd.js";
|
|
11
|
+
import"./index-na8r4a27.js";
|
|
12
|
+
import"./index-dss3ds74.js";
|
|
9
13
|
import {
|
|
10
14
|
LibraryScript
|
|
11
|
-
} from "./index-
|
|
15
|
+
} from "./index-6zb17wcm.js";
|
|
16
|
+
import"./index-vjbne22r.js";
|
|
12
17
|
|
|
13
18
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
14
19
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,42 +4,48 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
9
|
import {
|
|
10
|
-
parseEnvFile
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
parseEnvFile
|
|
11
|
+
} from "./index-qssq2d41.js";
|
|
12
|
+
import"./index-by2tvsq6.js";
|
|
13
|
+
import"./index-ze48c0vd.js";
|
|
14
|
+
import"./index-na8r4a27.js";
|
|
15
|
+
import {
|
|
16
|
+
PkgExecutor2
|
|
17
|
+
} from "./index-dss3ds74.js";
|
|
13
18
|
import {
|
|
14
19
|
npmRegistryFromEnv,
|
|
15
20
|
warnIgnoredNpmRegistry,
|
|
16
21
|
getNpmRegistryUrl
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
22
|
+
} from "./index-ffa52fwf.js";
|
|
23
|
+
import"./index-7v7tvgt7.js";
|
|
24
|
+
import"./index-fp5xf6ef.js";
|
|
25
|
+
import"./index-9wab2ngg.js";
|
|
21
26
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
+
import"./index-yvzm8mby.js";
|
|
28
|
+
import"./index-yxkjsyx8.js";
|
|
29
|
+
import"./index-6zb17wcm.js";
|
|
30
|
+
import"./index-at6haq2x.js";
|
|
31
|
+
import"./index-rwgqba9p.js";
|
|
27
32
|
import {
|
|
28
33
|
ApplicationScript
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
34
|
+
} from "./index-v929w7j7.js";
|
|
35
|
+
import"./index-f16kr6vj.js";
|
|
31
36
|
import {
|
|
32
37
|
CloudRunner
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
+
} from "./index-ba2xd32s.js";
|
|
39
|
+
import"./index-trffs83s.js";
|
|
40
|
+
import"./index-p7beqww9.js";
|
|
41
|
+
import"./index-1pjwsh2g.js";
|
|
42
|
+
import"./index-2ny1e95c.js";
|
|
38
43
|
import {
|
|
39
44
|
PackageScript
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
45
|
+
} from "./index-5d57kx0s.js";
|
|
46
|
+
import"./index-g7jgd4xs.js";
|
|
42
47
|
import"./index-9bv479q5.js";
|
|
48
|
+
import"./index-vjbne22r.js";
|
|
43
49
|
|
|
44
50
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
45
51
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -162,7 +168,7 @@ class LocalRegistryScript extends script("localRegistry", [
|
|
|
162
168
|
}
|
|
163
169
|
async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
|
|
164
170
|
await this.packageScript.updateWorskpaceRootPackageJson(workspace);
|
|
165
|
-
const pkgs = akanPkgs.map((pkgName) =>
|
|
171
|
+
const pkgs = akanPkgs.map((pkgName) => PkgExecutor2.from(workspace, pkgName));
|
|
166
172
|
if (test)
|
|
167
173
|
for (const pkg of pkgs)
|
|
168
174
|
await this.applicationScript.test(pkg);
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
Module,
|
|
5
|
+
ModuleOrService,
|
|
5
6
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
|
+
import"./index-qssq2d41.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
11
|
+
import"./index-ze48c0vd.js";
|
|
12
|
+
import"./index-na8r4a27.js";
|
|
13
|
+
import"./index-dss3ds74.js";
|
|
9
14
|
import {
|
|
10
15
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
16
|
+
} from "./index-0gaj78wn.js";
|
|
17
|
+
import"./index-trffs83s.js";
|
|
18
|
+
import"./index-6pxmcaq8.js";
|
|
14
19
|
import {
|
|
15
20
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
21
|
+
} from "./index-m3t28rt3.js";
|
|
22
|
+
import"./index-vjbne22r.js";
|
|
17
23
|
|
|
18
24
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
19
25
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -23,7 +29,10 @@ class ModuleCommand extends command("module", [ModuleScript], ({ public: target
|
|
|
23
29
|
const report = await this.moduleScript.createModuleTemplate(sys, name, { page });
|
|
24
30
|
Logger.rawLog(renderPrimitiveReport(report, format));
|
|
25
31
|
}),
|
|
26
|
-
removeModule: target({
|
|
32
|
+
removeModule: target({
|
|
33
|
+
desc: "Remove a module, or a service module as <sys>:_<name>, from an app or library",
|
|
34
|
+
destructive: true
|
|
35
|
+
}).with(ModuleOrService).exec(async function(module) {
|
|
27
36
|
await this.moduleScript.removeModule(module);
|
|
28
37
|
}),
|
|
29
38
|
createService: target({ desc: "Create a service module without database files" }).arg("serviceName", String, { desc: "name of service module" }).with(Sys).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(serviceName, sys, format) {
|
|
@@ -3,16 +3,21 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-ze48c0vd.js";
|
|
11
|
+
import"./index-na8r4a27.js";
|
|
12
|
+
import"./index-dss3ds74.js";
|
|
13
|
+
import"./index-trffs83s.js";
|
|
14
|
+
import"./index-p7beqww9.js";
|
|
15
|
+
import"./index-1pjwsh2g.js";
|
|
16
|
+
import"./index-2ny1e95c.js";
|
|
13
17
|
import {
|
|
14
18
|
PackageScript
|
|
15
|
-
} from "./index-
|
|
19
|
+
} from "./index-5d57kx0s.js";
|
|
20
|
+
import"./index-vjbne22r.js";
|
|
16
21
|
|
|
17
22
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
18
23
|
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.
|
|
3
|
+
"version": "3.2.0-rc.31",
|
|
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.
|
|
42
|
+
"akanjs": "3.2.0-rc.31",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -3,12 +3,17 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-ze48c0vd.js";
|
|
11
|
+
import"./index-na8r4a27.js";
|
|
12
|
+
import"./index-dss3ds74.js";
|
|
9
13
|
import {
|
|
10
14
|
PageScript
|
|
11
|
-
} from "./index-
|
|
15
|
+
} from "./index-6pxmcaq8.js";
|
|
16
|
+
import"./index-vjbne22r.js";
|
|
12
17
|
|
|
13
18
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
14
19
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,18 +4,24 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
|
+
import {
|
|
10
|
+
AkanAppConfig,
|
|
11
|
+
AkanWorkspaceConfig
|
|
12
|
+
} from "./index-qssq2d41.js";
|
|
8
13
|
import {
|
|
9
14
|
FileSys2
|
|
10
|
-
} from "./index-
|
|
15
|
+
} from "./index-by2tvsq6.js";
|
|
11
16
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-ze48c0vd.js";
|
|
19
|
+
import"./index-na8r4a27.js";
|
|
20
|
+
import"./index-dss3ds74.js";
|
|
16
21
|
import {
|
|
17
22
|
resolveMobileTargets
|
|
18
23
|
} from "./index-m9jj544v.js";
|
|
24
|
+
import"./index-vjbne22r.js";
|
|
19
25
|
|
|
20
26
|
// pkgs/@akanjs/cli/pipeline/pipeline.command.ts
|
|
21
27
|
import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
|
|
@@ -1098,7 +1104,7 @@ class PipelineDefinition {
|
|
|
1098
1104
|
}
|
|
1099
1105
|
async#loadNativeTargets(app) {
|
|
1100
1106
|
try {
|
|
1101
|
-
const targets = await resolveMobileTargets(
|
|
1107
|
+
const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
|
|
1102
1108
|
return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
|
|
1103
1109
|
} catch (error) {
|
|
1104
1110
|
return { error: toError2(error).message };
|
|
@@ -1118,7 +1124,7 @@ class PipelineDefinition {
|
|
|
1118
1124
|
}
|
|
1119
1125
|
}
|
|
1120
1126
|
async#loadApp(app) {
|
|
1121
|
-
const executor =
|
|
1127
|
+
const executor = AppExecutor2.from(this.#workspace, app);
|
|
1122
1128
|
const file = `apps/${app}/akan.config.ts`;
|
|
1123
1129
|
const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
|
|
1124
1130
|
try {
|
|
@@ -2,18 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
5
|
+
} from "./index-9rv2zt48.js";
|
|
6
|
+
import"./index-j4yvgfhr.js";
|
|
7
|
+
import"./index-qssq2d41.js";
|
|
8
|
+
import"./index-by2tvsq6.js";
|
|
9
|
+
import"./index-ze48c0vd.js";
|
|
10
|
+
import"./index-na8r4a27.js";
|
|
11
|
+
import"./index-dss3ds74.js";
|
|
8
12
|
import {
|
|
9
13
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
+
} from "./index-0gaj78wn.js";
|
|
15
|
+
import"./index-trffs83s.js";
|
|
16
|
+
import"./index-6pxmcaq8.js";
|
|
17
|
+
import"./index-m3t28rt3.js";
|
|
14
18
|
import {
|
|
15
19
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
20
|
+
} from "./index-7bs463x7.js";
|
|
21
|
+
import"./index-vjbne22r.js";
|
|
17
22
|
|
|
18
23
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
19
24
|
import { Logger } from "akanjs/common";
|
|
@@ -3,28 +3,35 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
8
10
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
AppExecutor2
|
|
12
|
+
} from "./index-ze48c0vd.js";
|
|
13
|
+
import {
|
|
14
|
+
LibExecutor2
|
|
15
|
+
} from "./index-na8r4a27.js";
|
|
16
|
+
import {
|
|
17
|
+
PkgExecutor2
|
|
18
|
+
} from "./index-dss3ds74.js";
|
|
13
19
|
import {
|
|
14
20
|
MaintainabilityBaseline
|
|
15
|
-
} from "./index-
|
|
21
|
+
} from "./index-1pjwsh2g.js";
|
|
16
22
|
import {
|
|
17
23
|
WorkspaceRunner,
|
|
18
24
|
AkanQualityScanner,
|
|
19
25
|
formatQualityScanResult,
|
|
20
26
|
formatSsrScanResult
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
27
|
+
} from "./index-prgvqqxe.js";
|
|
28
|
+
import"./index-trffs83s.js";
|
|
29
|
+
import"./index-1p81ecbz.js";
|
|
23
30
|
import"./index-62md4dwy.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
31
|
+
import"./index-zyb0ebm4.js";
|
|
32
|
+
import"./index-ffa52fwf.js";
|
|
33
|
+
import"./index-t4d0ckde.js";
|
|
34
|
+
import"./index-vjbne22r.js";
|
|
28
35
|
|
|
29
36
|
// pkgs/@akanjs/cli/quality/quality.script.ts
|
|
30
37
|
import { Logger } from "akanjs/common";
|
|
@@ -45,9 +52,9 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
|
|
|
45
52
|
async baseline(workspace, { force = false } = {}) {
|
|
46
53
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
47
54
|
const execs = [
|
|
48
|
-
...appNames.map((appName) =>
|
|
49
|
-
...libNames.map((libName) =>
|
|
50
|
-
...pkgNames.map((pkgName) =>
|
|
55
|
+
...appNames.map((appName) => AppExecutor2.from(workspace, appName)),
|
|
56
|
+
...libNames.map((libName) => LibExecutor2.from(workspace, libName)),
|
|
57
|
+
...pkgNames.map((pkgName) => PkgExecutor2.from(workspace, pkgName))
|
|
51
58
|
];
|
|
52
59
|
const { fileName } = MaintainabilityBaseline;
|
|
53
60
|
for (const exec of execs) {
|
|
@@ -3,16 +3,21 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
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";
|
|
14
|
+
import"./index-trffs83s.js";
|
|
15
|
+
import"./index-bj8s07s7.js";
|
|
16
|
+
import"./index-1p81ecbz.js";
|
|
13
17
|
import {
|
|
14
18
|
RepairRunner
|
|
15
|
-
} from "./index-
|
|
19
|
+
} from "./index-42jhx2ya.js";
|
|
20
|
+
import"./index-vjbne22r.js";
|
|
16
21
|
|
|
17
22
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
18
23
|
import { Logger } from "akanjs/common";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// pkgs/@akanjs/devkit/routeSourceValidator.ts
|
|
3
|
-
import { getRouteExports } from "akanjs/common";
|
|
2
|
+
// pkgs/@akanjs/devkit/app/routeSourceValidator.ts
|
|
3
|
+
import { GENERATED_ROOT_LAYOUT_EXPORTS, getRouteExports } from "akanjs/common";
|
|
4
4
|
import ts from "typescript";
|
|
5
5
|
var chainRoots = new Set(["page", "layout", "rootLayout"]);
|
|
6
6
|
|
|
@@ -10,6 +10,8 @@ class RouteSourceValidator {
|
|
|
10
10
|
const allowed = getRouteExports(kind, { rootLayout: options.rootLayout });
|
|
11
11
|
const exported = new Set;
|
|
12
12
|
const assertExport = (name) => {
|
|
13
|
+
if (options.rootLayout && GENERATED_ROOT_LAYOUT_EXPORTS.has(name))
|
|
14
|
+
throw new Error(`[route-convention] unsupported export "${name}" in ${filePath}: ${name} belongs to the root layout Akan.js generates, which never reads one from an app's layout`);
|
|
13
15
|
if (!allowed.has(name)) {
|
|
14
16
|
throw new Error(`[route-convention] unsupported export "${name}" in ${filePath}`);
|
|
15
17
|
}
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
5
|
+
} from "./index-9rv2zt48.js";
|
|
6
|
+
import"./index-j4yvgfhr.js";
|
|
7
|
+
import"./index-qssq2d41.js";
|
|
8
|
+
import"./index-by2tvsq6.js";
|
|
9
|
+
import"./index-ze48c0vd.js";
|
|
10
|
+
import"./index-na8r4a27.js";
|
|
11
|
+
import"./index-dss3ds74.js";
|
|
8
12
|
import {
|
|
9
13
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
14
|
+
} from "./index-0gaj78wn.js";
|
|
15
|
+
import"./index-trffs83s.js";
|
|
12
16
|
import {
|
|
13
17
|
ScalarScript
|
|
14
|
-
} from "./index-
|
|
18
|
+
} from "./index-nm7nt9vm.js";
|
|
19
|
+
import"./index-vjbne22r.js";
|
|
15
20
|
|
|
16
21
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
17
22
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -9,14 +9,21 @@ 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
|
|
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
|
|
16
16
|
running one.
|
|
17
17
|
- Paths are comma-separated (`akan preview <app> /board,/board/new`) and get the default locale when they lack
|
|
18
|
-
one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off.
|
|
19
|
-
|
|
18
|
+
one, unless the app sets `localePrefix: "as-needed"` and `--csr` is off. What the server answers outside a
|
|
19
|
+
locale opens as written, with no locale and no CSR boot query: a `/_akan` route such as Studio
|
|
20
|
+
(`/_akan/studio?view=runtime`), a route under the API prefix, `/__csr`, `/__rsc`, `/.well-known`,
|
|
21
|
+
`/openapi.json`, `/mcp`, `/favicon.ico`, `/robots.txt`, `/sitemap.xml`, `manifest.webmanifest` and a file in
|
|
22
|
+
the app's `public/`; `--csr` prints a note naming them. `/mcp` answers only `POST`, so preview cannot check it
|
|
23
|
+
(it fails with 405); the `akan-mcp` exposure test does. A full URL (`http://localhost:<port>/oauth/token`)
|
|
24
|
+
opens its path and query the same way, always on the app's dev server, with a note when it names another
|
|
25
|
+
server: use it for an endpoint mounted outside the API prefix. A page `--changed` finds opens as a page even at
|
|
26
|
+
a server route's path, under the same locale rule, and `/en` and `/en/` open once.
|
|
20
27
|
`--changed` adds the pages your uncommitted page and layout edits reach. A dynamic route needs a concrete
|
|
21
28
|
path (`/memo/1`); `akan context --app <app>` lists every route with its params and search names.
|
|
22
29
|
- The viewport is a 390x844 phone; `--desktop` is 1280x800. `--csr` loads each page in the CSR boot the native
|
package/skills/akan-err/SKILL.md
CHANGED
|
@@ -15,6 +15,8 @@ This is the common failure. Import `Err` from the source matching the **runtime
|
|
|
15
15
|
- server code: `import { Err } from "../dict"`
|
|
16
16
|
- UI: `from "@libs/<lib>/client"` or `from "@apps/<app>/client"`
|
|
17
17
|
|
|
18
|
+
Never `from "akanjs/common"` (`no-import-common-err.grit`): that `Err` takes any string, so a mistyped key compiles.
|
|
19
|
+
|
|
18
20
|
## Where the rule does not apply
|
|
19
21
|
|
|
20
22
|
The lint rule exempts tests, `*.constant.ts`, `common/**`, and `env/**`. The last two have **no legal `Err`
|
|
@@ -38,3 +40,8 @@ discards what the endpoint chose to say, and a bare `Error` is generalized to "I
|
|
|
38
40
|
way out.
|
|
39
41
|
|
|
40
42
|
Korean `.error()` messages end in `다.`.
|
|
43
|
+
|
|
44
|
+
**The framework's own failures carry a code.** A `NoDocumentError`, an `Exception` status class or another
|
|
45
|
+
`AkanError` names its kind in `code`; branch on that with `AkanError.is(error, "<code>")`, never on its message.
|
|
46
|
+
|
|
47
|
+
Every code, its status and whether the caller's JSON carries it: `get_guideline` with `errorCodes`.
|