@akanjs/cli 3.2.0-rc.2 → 3.2.0-rc.21
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-faqv7t4g.js +11 -0
- package/{CodeTui-zyc7zaq6.js → CodeTui-vqck9tet.js} +822 -666
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-bwe3ddv7.js +18 -0
- package/agent.command-p75jvgrd.js +56 -0
- package/akanCode.js +12 -12
- package/appExecutor-020cyesq.js +11 -0
- package/{application.command-vb278qnq.js → application.command-ta2knqxm.js} +72 -34
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-gkh82j2b.js} +18 -13
- package/buildBatch.proc.js +26 -11
- package/{cloud.command-ca777ee2.js → cloud.command-v3jhfvm5.js} +31 -28
- package/cloud.script-be9s1432.js +35 -0
- package/{code.command-j08txqcd.js → code.command-mh7dh1st.js} +14 -9
- package/{context.command-2fa6egp9.js → context.command-1ycfjkdd.js} +28 -23
- package/context.runner-333jkz86.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-w38ch13a.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 +17 -5
- package/guidelines/akanApi/akanApi.instruction.md +5 -3
- 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/errorCodes/errorCodes.instruction.md +158 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +86 -2
- package/guidelines/pageRule/pageRule.instruction.md +11 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +7 -2
- package/guidelines/transportRule/transportRule.instruction.md +8 -1
- package/incrementalBuilder.proc.js +574 -410
- package/{index-c5ymqb05.js → index-013n6z7m.js} +12 -12
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-8nbx607g.js → index-0hj82f9w.js} +136 -48
- package/{index-ebwkh7bt.js → index-1c0mjc2b.js} +25 -7
- package/{index-6h775rv3.js → index-1jk52ffq.js} +53 -12
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
- package/{index-cbcwxp5v.js → index-22g3jq43.js} +9 -7
- package/{index-466z5931.js → index-2d9nm03s.js} +580 -364
- package/{index-0fj9ra3q.js → index-2k6mve6a.js} +18 -11
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-j7p0jgaq.js → index-52w4jb87.js} +6 -6
- package/{index-e22zedc2.js → index-5h888r6j.js} +3 -3
- package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
- package/{index-xa0289eg.js → index-6zb17wcm.js} +16 -9
- package/{index-qgazn58x.js → index-7a07tdap.js} +50 -38
- package/{index-m5sg5spm.js → index-7ehdht84.js} +565 -187
- package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
- package/{index-pq5rjkch.js → index-88s746ns.js} +7 -2
- 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-wr9magsr.js → index-9zswcze5.js} +3 -3
- package/{index-xq97me1h.js → index-a41vv4cy.js} +811 -697
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-bdmgqzb5.js → index-bket1068.js} +58 -29
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-1cb9apzn.js → index-czf94w8c.js} +2 -2
- package/{index-65b6ms4c.js → index-d3178asw.js} +15 -11
- package/index-dss3ds74.js +127 -0
- package/{index-annxfpgz.js → index-eyfty8kk.js} +9 -9
- package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
- package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
- package/{index-abfbf01s.js → index-gwsesvqc.js} +2 -2
- package/{index-kcpk2d20.js → index-h1w4wqgd.js} +1474 -1139
- package/{index-j1hjb477.js → index-hp2c7xc2.js} +1 -1
- package/index-j4yvgfhr.js +70 -0
- package/{index-84c2pgak.js → index-jx2jcw1r.js} +89 -78
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-2gees180.js → index-mpp4aas6.js} +62 -33
- package/index-na8r4a27.js +30 -0
- package/{index-0mqga3h9.js → index-nmxszh6x.js} +525 -440
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-20wvskt8.js → index-pt0agdck.js} +1 -1
- package/{index-htxck0pn.js → index-q444k260.js} +15 -10
- package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
- package/{index-23860fej.js → index-rwgqba9p.js} +24 -9
- package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
- package/index-va90m8nd.js +25 -0
- package/index-vjbne22r.js +80 -0
- package/{index-djc5nxpy.js → index-w23tf30e.js} +6 -6
- package/{index-mvwvxgtd.js → index-wa01phm9.js} +289 -210
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-vbhx60x5.js → index-xwe7y0gf.js} +2140 -2165
- package/index-ze48c0vd.js +788 -0
- package/{index-dk4g0x0d.js → index-zttyg7tg.js} +27 -16
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +29 -24
- package/libExecutor-tq994592.js +10 -0
- package/{library.command-8d03a0pq.js → library.command-x219mhcx.js} +9 -4
- package/{localRegistry.command-vyv5k6t0.js → localRegistry.command-4p17wa9t.js} +30 -24
- package/{module.command-vy3kg965.js → module.command-tjthnvvr.js} +17 -8
- package/{package.command-qjh13rs9.js → package.command-c6df2hxx.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-8vm49279.js → primitive.command-0enfygxn.js} +13 -8
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-v76fev72.js → quality.command-dkbdztad.js} +23 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-fp4m3w03.js → repair.command-g5vd95ax.js} +13 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-hxe6try8.js → scalar.command-7909pg0d.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 +13 -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-q42n1844.js → subspace.command-at4jt1fb.js} +29 -23
- 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-91h92dwr.js} +17 -12
- package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
- package/typecheck.proc.js +6 -3
- package/{verify.command-rx43bha1.js → verify.command-pzky05ts.js} +26 -20
- package/{workflow.command-yg0d8mmq.js → workflow.command-mqqe4n12.js} +37 -19
- package/{workspace.command-fcfztvn5.js → workspace.command-y4rznvhx.js} +64 -53
- package/CodeAgent-6cpjtj25.js +0 -11
- package/TunnelShare-zkfkrw8w.js +0 -14
- package/agent.command-kf1g3nh4.js +0 -51
- package/cloud.script-agpxzq6j.js +0 -30
- package/context.runner-ftv8373t.js +0 -29
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-7v7tvgt7.js";
|
|
5
5
|
import {
|
|
6
6
|
parseBiomeReport,
|
|
7
7
|
Linter,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
ProjectTypecheck2
|
|
9
|
+
} from "./index-qssq2d41.js";
|
|
10
|
+
import {
|
|
11
|
+
TypecheckFailure
|
|
12
|
+
} from "./index-j4yvgfhr.js";
|
|
13
|
+
import {
|
|
14
|
+
AppExecutor2
|
|
15
|
+
} from "./index-ze48c0vd.js";
|
|
16
|
+
import {
|
|
17
|
+
LibExecutor2
|
|
18
|
+
} from "./index-na8r4a27.js";
|
|
19
|
+
import {
|
|
20
|
+
PkgExecutor2
|
|
21
|
+
} from "./index-dss3ds74.js";
|
|
14
22
|
import {
|
|
15
23
|
WorkspaceRunner,
|
|
16
24
|
AkanQualityScanner
|
|
17
|
-
} from "./index-
|
|
25
|
+
} from "./index-2d9nm03s.js";
|
|
18
26
|
|
|
19
27
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
20
28
|
import { existsSync } from "fs";
|
|
@@ -25,6 +33,7 @@ class VerifyComments {
|
|
|
25
33
|
static fix = "keep only a fact the code cannot say (vendor quirk, constraint, security, domain meaning, rejected alternative); delete the rest";
|
|
26
34
|
static #codeFile = /\.[cm]?[jt]sx?$/;
|
|
27
35
|
static #directive = /^(\/\/\/?|\/\*+)\s*(biome-ignore|@ts-|eslint-|prettier-ignore|#region|#endregion|<reference|[#@]__PURE__|@__NO_SIDE_EFFECTS__)/;
|
|
36
|
+
static #trackedTodo = /^(\/\/|\/\*+)\s*TODO:?\s*https?:\/\/\S[^\n]*$/;
|
|
28
37
|
static #typescriptLoad;
|
|
29
38
|
static #templateCommentsLoad;
|
|
30
39
|
static #loadTypescript() {
|
|
@@ -49,6 +58,8 @@ class VerifyComments {
|
|
|
49
58
|
for (const comment of VerifyComments.commentsOf(typescript, file, text)) {
|
|
50
59
|
if (VerifyComments.#directive.test(comment.text))
|
|
51
60
|
continue;
|
|
61
|
+
if (VerifyComments.#trackedTodo.test(comment.text))
|
|
62
|
+
continue;
|
|
52
63
|
if (VerifyComments.#scaffolded(comment, templateComments))
|
|
53
64
|
continue;
|
|
54
65
|
if (lines && !VerifyComments.#touches(comment, lines))
|
|
@@ -627,9 +638,9 @@ class VerifyPipeline {
|
|
|
627
638
|
}
|
|
628
639
|
async#sync(target) {
|
|
629
640
|
if (target.type === "app")
|
|
630
|
-
await
|
|
641
|
+
await AppExecutor2.from(this.#workspace, target.name).scanSync();
|
|
631
642
|
else
|
|
632
|
-
await
|
|
643
|
+
await LibExecutor2.from(this.#workspace, target.name).scan();
|
|
633
644
|
return { diagnostics: [] };
|
|
634
645
|
}
|
|
635
646
|
async#lint(target, { comments, rewritten }) {
|
|
@@ -694,12 +705,12 @@ class VerifyPipeline {
|
|
|
694
705
|
async#typecheck(target) {
|
|
695
706
|
try {
|
|
696
707
|
if (target.type === "app")
|
|
697
|
-
await this.#applicationRunner.typecheck(
|
|
708
|
+
await this.#applicationRunner.typecheck(AppExecutor2.from(this.#workspace, target.name), {
|
|
698
709
|
tests: true,
|
|
699
710
|
report: "records"
|
|
700
711
|
});
|
|
701
712
|
else if (target.type === "lib")
|
|
702
|
-
await this.#applicationRunner.typecheckLibrary(
|
|
713
|
+
await this.#applicationRunner.typecheckLibrary(LibExecutor2.from(this.#workspace, target.name), {
|
|
703
714
|
tests: true,
|
|
704
715
|
report: "records"
|
|
705
716
|
});
|
|
@@ -717,7 +728,7 @@ class VerifyPipeline {
|
|
|
717
728
|
}
|
|
718
729
|
}
|
|
719
730
|
async#build(target) {
|
|
720
|
-
const { routeJsWarnings = [] } = await this.#applicationRunner.build(
|
|
731
|
+
const { routeJsWarnings = [] } = await this.#applicationRunner.build(AppExecutor2.from(this.#workspace, target.name), { fast: true });
|
|
721
732
|
return { diagnostics: routeJsWarnings.map((warning) => VerifyDiagnostics.fromRouteJsBudget(warning)) };
|
|
722
733
|
}
|
|
723
734
|
async#ssr(scope) {
|
|
@@ -727,10 +738,10 @@ class VerifyPipeline {
|
|
|
727
738
|
}
|
|
728
739
|
#execOf(target) {
|
|
729
740
|
if (target.type === "app")
|
|
730
|
-
return
|
|
741
|
+
return AppExecutor2.from(this.#workspace, target.name);
|
|
731
742
|
if (target.type === "lib")
|
|
732
|
-
return
|
|
733
|
-
return
|
|
743
|
+
return LibExecutor2.from(this.#workspace, target.name);
|
|
744
|
+
return PkgExecutor2.from(this.#workspace, target.name);
|
|
734
745
|
}
|
|
735
746
|
}
|
|
736
747
|
|
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-y4rznvhx.js")).WorkspaceCommand,
|
|
31
|
+
agent: async () => (await import("./agent.command-p75jvgrd.js")).AgentCommand,
|
|
32
|
+
code: async () => (await import("./code.command-mh7dh1st.js")).CodeCommand,
|
|
33
|
+
application: async () => (await import("./application.command-ta2knqxm.js")).ApplicationCommand,
|
|
34
|
+
library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
|
|
35
|
+
localRegistry: async () => (await import("./localRegistry.command-4p17wa9t.js")).LocalRegistryCommand,
|
|
36
|
+
package: async () => (await import("./package.command-c6df2hxx.js")).PackageCommand,
|
|
37
|
+
module: async () => (await import("./module.command-tjthnvvr.js")).ModuleCommand,
|
|
38
|
+
page: async () => (await import("./page.command-gf06paq2.js")).PageCommand,
|
|
39
|
+
context: async () => (await import("./context.command-1ycfjkdd.js")).ContextCommand,
|
|
40
|
+
cloud: async () => (await import("./cloud.command-v3jhfvm5.js")).CloudCommand,
|
|
41
|
+
subspace: async () => (await import("./subspace.command-at4jt1fb.js")).SubspaceCommand,
|
|
42
|
+
guideline: async () => (await import("./guideline.command-w1grfwh7.js")).GuidelineCommand,
|
|
43
|
+
scalar: async () => (await import("./scalar.command-7909pg0d.js")).ScalarCommand,
|
|
44
|
+
primitive: async () => (await import("./primitive.command-0enfygxn.js")).PrimitiveCommand,
|
|
45
|
+
quality: async () => (await import("./quality.command-dkbdztad.js")).QualityCommand,
|
|
46
|
+
verify: async () => (await import("./verify.command-pzky05ts.js")).VerifyCommand,
|
|
47
|
+
repair: async () => (await import("./repair.command-g5vd95ax.js")).RepairCommand,
|
|
48
|
+
workflow: async () => (await import("./workflow.command-mqqe4n12.js")).WorkflowCommand,
|
|
49
|
+
pipeline: async () => (await import("./pipeline.command-y07dgj9b.js")).PipelineCommand,
|
|
50
|
+
tunnel: async () => (await import("./tunnel.command-91h92dwr.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-w23tf30e.js";
|
|
25
|
+
import"./index-pt0agdck.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-jx2jcw1r.js";
|
|
28
|
+
import"./index-9zswcze5.js";
|
|
29
|
+
import"./index-6zb17wcm.js";
|
|
30
|
+
import"./index-h1w4wqgd.js";
|
|
31
|
+
import"./index-rwgqba9p.js";
|
|
27
32
|
import {
|
|
28
33
|
ApplicationScript
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
34
|
+
} from "./index-0hj82f9w.js";
|
|
35
|
+
import"./index-5h888r6j.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-1jk52ffq.js";
|
|
39
|
+
import"./index-7ehdht84.js";
|
|
40
|
+
import"./index-czf94w8c.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-d3178asw.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-a41vv4cy.js";
|
|
17
|
+
import"./index-7ehdht84.js";
|
|
18
|
+
import"./index-6pxmcaq8.js";
|
|
14
19
|
import {
|
|
15
20
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
21
|
+
} from "./index-q444k260.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-7ehdht84.js";
|
|
14
|
+
import"./index-czf94w8c.js";
|
|
15
|
+
import"./index-1pjwsh2g.js";
|
|
16
|
+
import"./index-2ny1e95c.js";
|
|
13
17
|
import {
|
|
14
18
|
PackageScript
|
|
15
|
-
} from "./index-
|
|
19
|
+
} from "./index-d3178asw.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.21",
|
|
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.21",
|
|
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-a41vv4cy.js";
|
|
15
|
+
import"./index-7ehdht84.js";
|
|
16
|
+
import"./index-6pxmcaq8.js";
|
|
17
|
+
import"./index-q444k260.js";
|
|
14
18
|
import {
|
|
15
19
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
20
|
+
} from "./index-7a07tdap.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-2d9nm03s.js";
|
|
28
|
+
import"./index-7ehdht84.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-a41vv4cy.js";
|
|
14
|
+
import"./index-7ehdht84.js";
|
|
15
|
+
import"./index-nmxszh6x.js";
|
|
16
|
+
import"./index-1p81ecbz.js";
|
|
13
17
|
import {
|
|
14
18
|
RepairRunner
|
|
15
|
-
} from "./index-
|
|
19
|
+
} from "./index-22g3jq43.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
|
}
|