@akanjs/cli 3.2.0-rc.8 → 3.2.0
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 -2
- package/CodeAgent-fx6088tv.js +11 -0
- package/{CodeTui-qstk5vpj.js → CodeTui-zee8atsr.js} +822 -666
- package/README.ko.md +7 -0
- package/README.md +7 -0
- package/TunnelShare-9ry4vh0y.js +18 -0
- package/agent.command-x65f2ags.js +61 -0
- package/akanCode.js +12 -12
- package/appExecutor-79azsb2w.js +11 -0
- package/{application.command-m4rq4wc2.js → application.command-azbd1pb2.js} +83 -37
- package/{applicationBuildRunner-df7rx3ra.js → applicationBuildRunner-trfxv3pd.js} +49 -18
- package/buildBatch.proc.js +25 -11
- package/{cloud.command-a0gy0qq2.js → cloud.command-gapp4634.js} +33 -29
- package/cloud.script-3b401efv.js +35 -0
- package/{code.command-5rsdqw8s.js → code.command-5smx61yf.js} +13 -9
- package/context.command-ym5jbkny.js +64 -0
- package/context.runner-kctbfsde.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-h77zrjv5.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-mffxknbr.js → guideline.command-zwypaqsh.js} +9 -5
- package/guidelines/agentRule/agentRule.instruction.md +25 -9
- 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 -4
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +165 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +225 -5
- package/guidelines/pageRule/pageRule.instruction.md +10 -1
- package/guidelines/queryRule/queryRule.instruction.md +3 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +14 -8
- package/guidelines/transportRule/transportRule.instruction.md +31 -1
- package/incrementalBuilder.proc.js +577 -411
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-0gg15zwa.js → index-0s7w2085.js} +6 -6
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-swwjakt0.js → index-275a4r3n.js} +11 -11
- package/{index-j6gc8n14.js → index-2jmvfa62.js} +11 -9
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-exn38bzx.js → index-2yn3r67f.js} +116 -54
- package/{index-34792nh7.js → index-3txdtztz.js} +1 -1
- package/{index-28x1aszt.js → index-41a03gkj.js} +149 -53
- package/{index-2mf1aen9.js → index-4ss4gkv3.js} +2 -2
- package/{index-an76bdrv.js → index-612fdtbk.js} +1 -1
- package/{index-5radqwn2.js → index-67sd09ag.js} +12 -12
- package/{index-0hbtve0a.js → index-6dzjer7p.js} +32 -28
- package/{index-3ghdb7p5.js → index-71y6176j.js} +2777 -3676
- package/{index-xyn02k0w.js → index-78y75t0a.js} +662 -433
- package/index-7wf8snar.js +80 -0
- package/{index-skmtj8rm.js → index-8jtqfye2.js} +27 -10
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-nmvhjn8c.js → index-9wh04mqy.js} +93 -82
- package/{index-xvk2a75m.js → index-a860mx0m.js} +3 -3
- package/{index-5zwr4n6k.js → index-baccvws5.js} +65 -8
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-r0a604h4.js → index-c669pbyb.js} +5 -4
- package/{index-x40bdsca.js → index-dadwp2aw.js} +33 -98
- package/{index-vm0dn0mt.js → index-dmcpetwe.js} +200 -138
- package/{index-43f4h4cm.js → index-ebn9kgea.js} +6 -6
- package/{index-hqv34wzq.js → index-gt8phqpt.js} +10 -10
- package/{index-yckz5t8b.js → index-h901f24n.js} +516 -434
- package/{index-j3v29pq7.js → index-j0wr4e32.js} +219 -175
- package/{index-gcx48get.js → index-j592zfqc.js} +2 -2
- package/{index-grxs6fts.js → index-j6jjmn2r.js} +57 -31
- package/{index-w8yasvpc.js → index-jek2re5k.js} +2136 -2175
- package/{index-ny2k80mv.js → index-jf4vk1s0.js} +9 -2
- package/{index-gxav1bjz.js → index-k6vwww45.js} +9 -9
- package/{index-99qvtff2.js → index-kfvjzk8r.js} +5 -5
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-2r9ff9qm.js → index-nc3br31y.js} +2 -2
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-b4qq3rq0.js → index-rwgqba9p.js} +1 -1
- package/{index-rfzp4pqs.js → index-s885g0jj.js} +3 -3
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-k92x3vne.js → index-v7ajmsh3.js} +1 -1
- package/index-w1zexzpx.js +127 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-rp4yf32g.js → index-xwwex8rf.js} +36 -29
- package/{index-ra9fvn7s.js → index-ybcb9wc8.js} +74 -38
- package/index-z92zm3wd.js +788 -0
- package/{index-j9790rhk.js → index-z96ks033.js} +1509 -1121
- package/index-zfnz878d.js +30 -0
- package/{index-2vgv7fs7.js → index-zmd9xxgd.js} +727 -693
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +28 -24
- package/libExecutor-jc6f8hm6.js +10 -0
- package/{library.command-bmd7zc5m.js → library.command-nxvesvhb.js} +12 -5
- package/{localRegistry.command-y6en1599.js → localRegistry.command-xz62e4ng.js} +29 -24
- package/{module.command-7exfffqw.js → module.command-aaws9byg.js} +11 -7
- package/{package.command-adskw2rj.js → package.command-j7hv26p0.js} +14 -10
- package/package.json +8 -8
- package/{page.command-dw01272p.js → page.command-7yffs7n9.js} +8 -4
- package/{pipeline.command-0b1r3y5r.js → pipeline.command-7yk0zcng.js} +15 -9
- package/pkgExecutor-arxmvx4t.js +10 -0
- package/{primitive.command-byw6vc04.js → primitive.command-7a1pt715.js} +12 -8
- package/{projectTypecheck-kkrpq60a.js → projectTypecheck-f4qhbecd.js} +1 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-6rqnhzct.js → quality.command-c6mvrjh1.js} +25 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-rw5zymak.js → repair.command-093adzt9.js} +12 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-2dyp9nh9.js → scalar.command-2ex84spb.js} +10 -6
- package/skills/akan-debug/SKILL.md +8 -5
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +19 -1
- package/skills/akan-scaffold/SKILL.md +1 -1
- package/skills/akan-validate/SKILL.md +3 -3
- package/{subspace.command-111ynwv1.js → subspace.command-4n4n4jpv.js} +32 -24
- 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/.devcontainer/devcontainer.json.template +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/templates/workspaceRoot/README.ts +4 -2
- package/{tunnel.command-2gcpfbdj.js → tunnel.command-f7ep1qfa.js} +17 -13
- package/{typeChecker-s640r6c0.js → typeChecker-7jt6abrs.js} +1 -1
- package/typecheck.proc.js +3 -2
- package/{verify.command-djgs86ma.js → verify.command-zrkxnvct.js} +21 -17
- package/{workflow.command-n0k2mxr5.js → workflow.command-ks16jegk.js} +21 -14
- package/{workspace.command-fh1qwxfx.js → workspace.command-ahhfpaag.js} +60 -54
- package/CodeAgent-x2p3a3e0.js +0 -11
- package/TunnelShare-c4xsfzg5.js +0 -15
- package/agent.command-9et2e27p.js +0 -52
- package/cloud.script-xze4zh7n.js +0 -31
- package/context.command-rk1dwrg4.js +0 -57
- package/context.runner-83ky5m1b.js +0 -30
- /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,10 +4,14 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-71y6176j.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
11
|
+
import"./index-z92zm3wd.js";
|
|
12
|
+
import"./index-zfnz878d.js";
|
|
13
|
+
import"./index-w1zexzpx.js";
|
|
14
|
+
import"./index-7wf8snar.js";
|
|
11
15
|
|
|
12
16
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
13
17
|
class BunVersionGuard {
|
|
@@ -23,27 +27,27 @@ import path from "path";
|
|
|
23
27
|
|
|
24
28
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
25
29
|
var commandModules = {
|
|
26
|
-
workspace: async () => (await import("./workspace.command-
|
|
27
|
-
agent: async () => (await import("./agent.command-
|
|
28
|
-
code: async () => (await import("./code.command-
|
|
29
|
-
application: async () => (await import("./application.command-
|
|
30
|
-
library: async () => (await import("./library.command-
|
|
31
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
32
|
-
package: async () => (await import("./package.command-
|
|
33
|
-
module: async () => (await import("./module.command-
|
|
34
|
-
page: async () => (await import("./page.command-
|
|
35
|
-
context: async () => (await import("./context.command-
|
|
36
|
-
cloud: async () => (await import("./cloud.command-
|
|
37
|
-
subspace: async () => (await import("./subspace.command-
|
|
38
|
-
guideline: async () => (await import("./guideline.command-
|
|
39
|
-
scalar: async () => (await import("./scalar.command-
|
|
40
|
-
primitive: async () => (await import("./primitive.command-
|
|
41
|
-
quality: async () => (await import("./quality.command-
|
|
42
|
-
verify: async () => (await import("./verify.command-
|
|
43
|
-
repair: async () => (await import("./repair.command-
|
|
44
|
-
workflow: async () => (await import("./workflow.command-
|
|
45
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
46
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
30
|
+
workspace: async () => (await import("./workspace.command-ahhfpaag.js")).WorkspaceCommand,
|
|
31
|
+
agent: async () => (await import("./agent.command-x65f2ags.js")).AgentCommand,
|
|
32
|
+
code: async () => (await import("./code.command-5smx61yf.js")).CodeCommand,
|
|
33
|
+
application: async () => (await import("./application.command-azbd1pb2.js")).ApplicationCommand,
|
|
34
|
+
library: async () => (await import("./library.command-nxvesvhb.js")).LibraryCommand,
|
|
35
|
+
localRegistry: async () => (await import("./localRegistry.command-xz62e4ng.js")).LocalRegistryCommand,
|
|
36
|
+
package: async () => (await import("./package.command-j7hv26p0.js")).PackageCommand,
|
|
37
|
+
module: async () => (await import("./module.command-aaws9byg.js")).ModuleCommand,
|
|
38
|
+
page: async () => (await import("./page.command-7yffs7n9.js")).PageCommand,
|
|
39
|
+
context: async () => (await import("./context.command-ym5jbkny.js")).ContextCommand,
|
|
40
|
+
cloud: async () => (await import("./cloud.command-gapp4634.js")).CloudCommand,
|
|
41
|
+
subspace: async () => (await import("./subspace.command-4n4n4jpv.js")).SubspaceCommand,
|
|
42
|
+
guideline: async () => (await import("./guideline.command-zwypaqsh.js")).GuidelineCommand,
|
|
43
|
+
scalar: async () => (await import("./scalar.command-2ex84spb.js")).ScalarCommand,
|
|
44
|
+
primitive: async () => (await import("./primitive.command-7a1pt715.js")).PrimitiveCommand,
|
|
45
|
+
quality: async () => (await import("./quality.command-c6mvrjh1.js")).QualityCommand,
|
|
46
|
+
verify: async () => (await import("./verify.command-zrkxnvct.js")).VerifyCommand,
|
|
47
|
+
repair: async () => (await import("./repair.command-093adzt9.js")).RepairCommand,
|
|
48
|
+
workflow: async () => (await import("./workflow.command-ks16jegk.js")).WorkflowCommand,
|
|
49
|
+
pipeline: async () => (await import("./pipeline.command-7yk0zcng.js")).PipelineCommand,
|
|
50
|
+
tunnel: async () => (await import("./tunnel.command-f7ep1qfa.js")).TunnelCommand
|
|
47
51
|
};
|
|
48
52
|
var commandModuleIds = Object.keys(commandModules);
|
|
49
53
|
|
|
@@ -3,13 +3,17 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-z92zm3wd.js";
|
|
11
|
+
import"./index-zfnz878d.js";
|
|
12
|
+
import"./index-w1zexzpx.js";
|
|
10
13
|
import {
|
|
11
14
|
LibraryScript
|
|
12
|
-
} from "./index-
|
|
15
|
+
} from "./index-2jmvfa62.js";
|
|
16
|
+
import"./index-7wf8snar.js";
|
|
13
17
|
|
|
14
18
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
15
19
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -22,7 +26,10 @@ class LibraryCommand extends command("library", [LibraryScript], ({ public: targ
|
|
|
22
26
|
syncLibrary: target({ desc: "Sync dependencies and configuration for a library" }).with(Lib).exec(async function(lib) {
|
|
23
27
|
await this.libraryScript.syncLibrary(lib);
|
|
24
28
|
}),
|
|
25
|
-
libraryStatus: target({
|
|
29
|
+
libraryStatus: target({
|
|
30
|
+
desc: "Report whether each library still matches the source it was installed from",
|
|
31
|
+
readOnly: true
|
|
32
|
+
}).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
|
|
26
33
|
await this.libraryScript.libraryStatus(workspace, format);
|
|
27
34
|
}),
|
|
28
35
|
installLibrary: target({ desc: "Install pre-built library templates (shared, util, etc.)" }).arg("libName", String, { desc: "name of library" }).with(Workspace).exec(async function(libName, workspace) {
|
|
@@ -4,43 +4,48 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-bns3wcpc.js";
|
|
10
9
|
import {
|
|
11
|
-
parseEnvFile
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
parseEnvFile
|
|
11
|
+
} from "./index-71y6176j.js";
|
|
12
|
+
import"./index-by2tvsq6.js";
|
|
13
|
+
import"./index-z92zm3wd.js";
|
|
14
|
+
import"./index-zfnz878d.js";
|
|
15
|
+
import {
|
|
16
|
+
PkgExecutor2
|
|
17
|
+
} from "./index-w1zexzpx.js";
|
|
14
18
|
import {
|
|
15
19
|
npmRegistryFromEnv,
|
|
16
20
|
warnIgnoredNpmRegistry,
|
|
17
21
|
getNpmRegistryUrl
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
+
} from "./index-jf4vk1s0.js";
|
|
23
|
+
import"./index-dmcpetwe.js";
|
|
24
|
+
import"./index-ebn9kgea.js";
|
|
25
|
+
import"./index-612fdtbk.js";
|
|
22
26
|
import"./index-m9jj544v.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-9wh04mqy.js";
|
|
28
|
+
import"./index-a860mx0m.js";
|
|
29
|
+
import"./index-2jmvfa62.js";
|
|
30
|
+
import"./index-z96ks033.js";
|
|
31
|
+
import"./index-rwgqba9p.js";
|
|
28
32
|
import {
|
|
29
33
|
ApplicationScript
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
34
|
+
} from "./index-41a03gkj.js";
|
|
35
|
+
import"./index-s885g0jj.js";
|
|
32
36
|
import {
|
|
33
37
|
CloudRunner
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
38
|
+
} from "./index-xwwex8rf.js";
|
|
39
|
+
import"./index-trffs83s.js";
|
|
40
|
+
import"./index-p7beqww9.js";
|
|
41
|
+
import"./index-baccvws5.js";
|
|
42
|
+
import"./index-2ny1e95c.js";
|
|
39
43
|
import {
|
|
40
44
|
PackageScript
|
|
41
|
-
} from "./index-
|
|
42
|
-
import"./index-
|
|
45
|
+
} from "./index-275a4r3n.js";
|
|
46
|
+
import"./index-j592zfqc.js";
|
|
43
47
|
import"./index-9bv479q5.js";
|
|
48
|
+
import"./index-7wf8snar.js";
|
|
44
49
|
|
|
45
50
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
46
51
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -163,7 +168,7 @@ class LocalRegistryScript extends script("localRegistry", [
|
|
|
163
168
|
}
|
|
164
169
|
async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
|
|
165
170
|
await this.packageScript.updateWorskpaceRootPackageJson(workspace);
|
|
166
|
-
const pkgs = akanPkgs.map((pkgName) =>
|
|
171
|
+
const pkgs = akanPkgs.map((pkgName) => PkgExecutor2.from(workspace, pkgName));
|
|
167
172
|
if (test)
|
|
168
173
|
for (const pkg of pkgs)
|
|
169
174
|
await this.applicationScript.test(pkg);
|
|
@@ -4,18 +4,22 @@ import {
|
|
|
4
4
|
Module,
|
|
5
5
|
ModuleOrService,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-71y6176j.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
11
|
+
import"./index-z92zm3wd.js";
|
|
12
|
+
import"./index-zfnz878d.js";
|
|
13
|
+
import"./index-w1zexzpx.js";
|
|
11
14
|
import {
|
|
12
15
|
renderPrimitiveReport
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
+
} from "./index-zmd9xxgd.js";
|
|
17
|
+
import"./index-trffs83s.js";
|
|
18
|
+
import"./index-3txdtztz.js";
|
|
16
19
|
import {
|
|
17
20
|
ModuleScript
|
|
18
|
-
} from "./index-
|
|
21
|
+
} from "./index-gt8phqpt.js";
|
|
22
|
+
import"./index-7wf8snar.js";
|
|
19
23
|
|
|
20
24
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
21
25
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,21 +3,25 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-z92zm3wd.js";
|
|
11
|
+
import"./index-zfnz878d.js";
|
|
12
|
+
import"./index-w1zexzpx.js";
|
|
13
|
+
import"./index-trffs83s.js";
|
|
14
|
+
import"./index-p7beqww9.js";
|
|
15
|
+
import"./index-baccvws5.js";
|
|
16
|
+
import"./index-2ny1e95c.js";
|
|
14
17
|
import {
|
|
15
18
|
PackageScript
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-275a4r3n.js";
|
|
20
|
+
import"./index-7wf8snar.js";
|
|
17
21
|
|
|
18
22
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
19
23
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
|
20
|
-
version: target({ desc: "Show version information for all packages" }).with(Workspace).exec(async function(workspace) {
|
|
24
|
+
version: target({ desc: "Show version information for all packages", readOnly: true }).with(Workspace).exec(async function(workspace) {
|
|
21
25
|
await this.packageScript.version(workspace);
|
|
22
26
|
}),
|
|
23
27
|
createPackage: target({ desc: "Create a new package in pkgs/<name>/" }).option("name", String, { desc: "name of package" }).with(Workspace).exec(async function(name, workspace) {
|
|
@@ -32,7 +36,7 @@ class PackageCommand extends command("package", [PackageScript], ({ public: targ
|
|
|
32
36
|
buildPackage: target({ desc: "Build a package for distribution" }).with(Pkg).exec(async function(pkg) {
|
|
33
37
|
await this.packageScript.buildPackage(pkg);
|
|
34
38
|
}),
|
|
35
|
-
verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run" }).with(Pkg).exec(async function(pkg) {
|
|
39
|
+
verifyDistPackage: target({ desc: "Verify a built dist package with npm pack dry-run", readOnly: true }).with(Pkg).exec(async function(pkg) {
|
|
36
40
|
await this.packageScript.verifyDistPackage(pkg);
|
|
37
41
|
}),
|
|
38
42
|
verifyAkanPublishPackages: target({ devOnly: true, desc: "Verify all Akan publish dist packages" }).with(Workspace).exec(async function(workspace) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.2.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@earendil-works/pi-agent-core": "1.
|
|
35
|
-
"@earendil-works/pi-ai": "1.
|
|
36
|
-
"@earendil-works/pi-codemode": "1.
|
|
37
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
38
|
-
"@earendil-works/pi-mcp": "1.
|
|
39
|
-
"@earendil-works/pi-tui": "1.
|
|
34
|
+
"@earendil-works/pi-agent-core": "1.5.2",
|
|
35
|
+
"@earendil-works/pi-ai": "1.5.2",
|
|
36
|
+
"@earendil-works/pi-codemode": "1.5.2",
|
|
37
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
38
|
+
"@earendil-works/pi-mcp": "1.5.2",
|
|
39
|
+
"@earendil-works/pi-tui": "1.5.2",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.2.0
|
|
42
|
+
"akanjs": "3.2.0",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -3,13 +3,17 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-z92zm3wd.js";
|
|
11
|
+
import"./index-zfnz878d.js";
|
|
12
|
+
import"./index-w1zexzpx.js";
|
|
10
13
|
import {
|
|
11
14
|
PageScript
|
|
12
|
-
} from "./index-
|
|
15
|
+
} from "./index-3txdtztz.js";
|
|
16
|
+
import"./index-7wf8snar.js";
|
|
13
17
|
|
|
14
18
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
15
19
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,19 +4,24 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
+
import {
|
|
10
|
+
AkanAppConfig,
|
|
11
|
+
AkanWorkspaceConfig
|
|
12
|
+
} from "./index-71y6176j.js";
|
|
9
13
|
import {
|
|
10
14
|
FileSys2
|
|
11
|
-
} from "./index-
|
|
15
|
+
} from "./index-by2tvsq6.js";
|
|
12
16
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-z92zm3wd.js";
|
|
19
|
+
import"./index-zfnz878d.js";
|
|
20
|
+
import"./index-w1zexzpx.js";
|
|
17
21
|
import {
|
|
18
22
|
resolveMobileTargets
|
|
19
23
|
} from "./index-m9jj544v.js";
|
|
24
|
+
import"./index-7wf8snar.js";
|
|
20
25
|
|
|
21
26
|
// pkgs/@akanjs/cli/pipeline/pipeline.command.ts
|
|
22
27
|
import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
|
|
@@ -1099,7 +1104,7 @@ class PipelineDefinition {
|
|
|
1099
1104
|
}
|
|
1100
1105
|
async#loadNativeTargets(app) {
|
|
1101
1106
|
try {
|
|
1102
|
-
const targets = await resolveMobileTargets(
|
|
1107
|
+
const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
|
|
1103
1108
|
return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
|
|
1104
1109
|
} catch (error) {
|
|
1105
1110
|
return { error: toError2(error).message };
|
|
@@ -1119,7 +1124,7 @@ class PipelineDefinition {
|
|
|
1119
1124
|
}
|
|
1120
1125
|
}
|
|
1121
1126
|
async#loadApp(app) {
|
|
1122
|
-
const executor =
|
|
1127
|
+
const executor = AppExecutor2.from(this.#workspace, app);
|
|
1123
1128
|
const file = `apps/${app}/akan.config.ts`;
|
|
1124
1129
|
const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
|
|
1125
1130
|
try {
|
|
@@ -1314,7 +1319,8 @@ class PipelineScript extends script("pipeline", [PipelineRunner]) {
|
|
|
1314
1319
|
class PipelineCommand extends command("pipeline", [PipelineScript], ({ public: target }) => ({
|
|
1315
1320
|
pipeline: target({
|
|
1316
1321
|
desc: "Plan the build pipeline declared in akan.config.ts (the workspace root's and each app's) without running it",
|
|
1317
|
-
failureExitCode: 2
|
|
1322
|
+
failureExitCode: 2,
|
|
1323
|
+
readOnly: true
|
|
1318
1324
|
}).arg("action", String, {
|
|
1319
1325
|
desc: "plan: the JSON plan an executor runs \xB7 validate: check the definitions \xB7 dry-run: show the plan",
|
|
1320
1326
|
default: "dry-run",
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-2yn3r67f.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-71y6176j.js";
|
|
8
|
+
import"./index-by2tvsq6.js";
|
|
9
|
+
import"./index-z92zm3wd.js";
|
|
10
|
+
import"./index-zfnz878d.js";
|
|
11
|
+
import"./index-w1zexzpx.js";
|
|
9
12
|
import {
|
|
10
13
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
14
|
+
} from "./index-zmd9xxgd.js";
|
|
15
|
+
import"./index-trffs83s.js";
|
|
16
|
+
import"./index-3txdtztz.js";
|
|
17
|
+
import"./index-gt8phqpt.js";
|
|
15
18
|
import {
|
|
16
19
|
PrimitiveScript
|
|
17
|
-
} from "./index-
|
|
20
|
+
} from "./index-6dzjer7p.js";
|
|
21
|
+
import"./index-7wf8snar.js";
|
|
18
22
|
|
|
19
23
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
20
24
|
import { Logger } from "akanjs/common";
|
|
@@ -3,29 +3,35 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
AppExecutor2
|
|
12
|
+
} from "./index-z92zm3wd.js";
|
|
13
|
+
import {
|
|
14
|
+
LibExecutor2
|
|
15
|
+
} from "./index-zfnz878d.js";
|
|
16
|
+
import {
|
|
17
|
+
PkgExecutor2
|
|
18
|
+
} from "./index-w1zexzpx.js";
|
|
14
19
|
import {
|
|
15
20
|
MaintainabilityBaseline
|
|
16
|
-
} from "./index-
|
|
21
|
+
} from "./index-baccvws5.js";
|
|
17
22
|
import {
|
|
18
23
|
WorkspaceRunner,
|
|
19
24
|
AkanQualityScanner,
|
|
20
25
|
formatQualityScanResult,
|
|
21
26
|
formatSsrScanResult
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
27
|
+
} from "./index-78y75t0a.js";
|
|
28
|
+
import"./index-trffs83s.js";
|
|
29
|
+
import"./index-1p81ecbz.js";
|
|
24
30
|
import"./index-62md4dwy.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-ny2k80mv.js";
|
|
31
|
+
import"./index-zyb0ebm4.js";
|
|
32
|
+
import"./index-jf4vk1s0.js";
|
|
28
33
|
import"./index-t4d0ckde.js";
|
|
34
|
+
import"./index-7wf8snar.js";
|
|
29
35
|
|
|
30
36
|
// pkgs/@akanjs/cli/quality/quality.script.ts
|
|
31
37
|
import { Logger } from "akanjs/common";
|
|
@@ -46,9 +52,9 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
|
|
|
46
52
|
async baseline(workspace, { force = false } = {}) {
|
|
47
53
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
48
54
|
const execs = [
|
|
49
|
-
...appNames.map((appName) =>
|
|
50
|
-
...libNames.map((libName) =>
|
|
51
|
-
...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))
|
|
52
58
|
];
|
|
53
59
|
const { fileName } = MaintainabilityBaseline;
|
|
54
60
|
for (const exec of execs) {
|
|
@@ -67,7 +73,10 @@ class QualityScript extends script("quality", [WorkspaceRunner]) {
|
|
|
67
73
|
|
|
68
74
|
// pkgs/@akanjs/cli/quality/quality.command.ts
|
|
69
75
|
class QualityCommand extends command("quality", [QualityScript], ({ public: target }) => ({
|
|
70
|
-
quality: target({
|
|
76
|
+
quality: target({
|
|
77
|
+
desc: "Scan apps and libs for Akan code quality warnings",
|
|
78
|
+
readOnly: ({ action }) => action !== "baseline"
|
|
79
|
+
}).arg("action", String, { desc: "quality action", default: "scan", enum: ["scan", "ssr", "baseline"] }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).option("force", Boolean, { flag: "F", desc: "baseline: rewrite an existing akan.baseline.json", default: false }).with(Workspace).exec(async function(action, format, force, workspace) {
|
|
71
80
|
if (action === "scan")
|
|
72
81
|
await this.qualityScript.scan(workspace, format);
|
|
73
82
|
else if (action === "ssr")
|
|
@@ -3,17 +3,21 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-z92zm3wd.js";
|
|
11
|
+
import"./index-zfnz878d.js";
|
|
12
|
+
import"./index-w1zexzpx.js";
|
|
13
|
+
import"./index-zmd9xxgd.js";
|
|
14
|
+
import"./index-trffs83s.js";
|
|
15
|
+
import"./index-h901f24n.js";
|
|
16
|
+
import"./index-1p81ecbz.js";
|
|
14
17
|
import {
|
|
15
18
|
RepairRunner
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-kfvjzk8r.js";
|
|
20
|
+
import"./index-7wf8snar.js";
|
|
17
21
|
|
|
18
22
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
19
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,17 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-2yn3r67f.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-71y6176j.js";
|
|
8
|
+
import"./index-by2tvsq6.js";
|
|
9
|
+
import"./index-z92zm3wd.js";
|
|
10
|
+
import"./index-zfnz878d.js";
|
|
11
|
+
import"./index-w1zexzpx.js";
|
|
9
12
|
import {
|
|
10
13
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
14
|
+
} from "./index-zmd9xxgd.js";
|
|
15
|
+
import"./index-trffs83s.js";
|
|
13
16
|
import {
|
|
14
17
|
ScalarScript
|
|
15
|
-
} from "./index-
|
|
18
|
+
} from "./index-4ss4gkv3.js";
|
|
19
|
+
import"./index-7wf8snar.js";
|
|
16
20
|
|
|
17
21
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
18
22
|
import { Logger, lowerlize } from "akanjs/common";
|