@akanjs/cli 3.2.1-rc.1 → 3.2.1-rc.2
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-xdw73nbz.js → CodeAgent-9t00vd1t.js} +2 -2
- package/{CodeTui-0gewm71c.js → CodeTui-6pzd57d9.js} +1 -1
- package/TunnelShare-ystnpd6r.js +16 -0
- package/{agent.command-g1mj34wz.js → agent.command-mx412p4j.js} +17 -17
- package/akanCode.js +2 -2
- package/{appExecutor-rrx10jya.js → appExecutor-5rqem8rw.js} +3 -3
- package/{application.command-3w4v7t40.js → application.command-6qec3fkg.js} +13 -13
- package/{applicationBuildRunner-y5xbetyz.js → applicationBuildRunner-3sgyp4kc.js} +13 -10
- package/buildBatch.proc.js +10 -10
- package/{cloud.command-ph0rz6sw.js → cloud.command-zcm1vwep.js} +18 -18
- package/cloud.script-zv6bxdvg.js +30 -0
- package/{code.command-9b967qpg.js → code.command-9ve10cys.js} +10 -10
- package/{context.command-ndzs5rbf.js → context.command-f1sqfvws.js} +18 -18
- package/context.runner-7d1zp6sp.js +32 -0
- package/{csrArtifactBuilder-gtvff6k7.js → csrArtifactBuilder-9zvt4tqd.js} +2 -3
- package/{guideline.command-y8qz9kxy.js → guideline.command-6rezhb4j.js} +6 -6
- package/guidelines/akanApi/akanApi.instruction.md +7 -2
- package/guidelines/conventions/core.md +6 -11
- package/guidelines/conventions/rules/app.md +1 -2
- package/guidelines/conventions/rules/auth.md +18 -27
- package/guidelines/conventions/rules/config.md +14 -46
- package/guidelines/conventions/rules/page.md +19 -34
- package/guidelines/conventions/rules/server.md +1 -4
- package/guidelines/conventions/rules/ssr.md +3 -4
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +1 -0
- package/guidelines/pageRule/pageRule.instruction.md +6 -53
- package/incrementalBuilder.proc.js +8 -8
- package/{index-4a1n0nym.js → index-2fw81aak.js} +1 -1
- package/{index-whvhsb5f.js → index-2qhrmtb0.js} +1 -1
- package/{index-dr1carpr.js → index-3jzx6k0e.js} +4 -4
- package/{index-2kh4xj3m.js → index-5fwhv8kp.js} +1 -1
- package/{index-scfsqen7.js → index-6z5cwvq1.js} +3 -3
- package/{index-y2g0s9tn.js → index-7jknrhws.js} +1 -1
- package/{index-6j351de4.js → index-8vger8r0.js} +2 -2
- package/{index-1c2807kg.js → index-94a2xrv1.js} +3 -3
- package/{index-ymgsvhc5.js → index-adbcqv0k.js} +4 -4
- package/{index-45aprybg.js → index-akep88g2.js} +2 -2
- package/{index-652f3bs8.js → index-c1sfw20m.js} +5 -5
- package/{index-cm9rb480.js → index-c7zk1gtv.js} +5 -6
- package/{index-b0t92k71.js → index-cryyzd80.js} +11 -11
- package/{index-82cmbpxc.js → index-d9qkd87g.js} +7 -7
- package/{index-6gepp8yn.js → index-ep31fxe8.js} +60 -19
- package/{index-ankyx6dj.js → index-f0qe3x4t.js} +3 -3
- package/{index-38x8ynrx.js → index-f52d0acp.js} +2 -2
- package/{index-twjgmryg.js → index-f5s9w5bq.js} +4 -4
- package/{index-pc42gxa5.js → index-g4hta169.js} +4 -4
- package/{index-ktxdfqg5.js → index-gxe8nyxd.js} +1 -1
- package/{index-2vn0m9z5.js → index-h2g1qt9p.js} +3 -3
- package/{index-4zgm54wf.js → index-havp958b.js} +7 -7
- package/{index-qh81drde.js → index-mj9mzss7.js} +8 -8
- package/{index-3569fr49.js → index-nawk3ttc.js} +5 -5
- package/{index-0wa5z6rm.js → index-pad3djxk.js} +1 -1
- package/{index-gtydr9qc.js → index-q7ct22a1.js} +8 -8
- package/{index-0csk6jqm.js → index-qc4xk6ng.js} +3 -3
- package/{index-jdw9m5c4.js → index-qk2evkwr.js} +4 -4
- package/{index-b372rck5.js → index-smjm20t4.js} +14 -7
- package/{index-d0n78fzc.js → index-tc9k9sgg.js} +11 -11
- package/{index-jg5rwrf7.js → index-wjecpeyq.js} +226 -21
- package/{index-f2arv0mv.js → index-xftdwcdj.js} +1 -1
- package/{index-1p9bxjmt.js → index-xrmcq5hx.js} +2 -2
- package/{index-q8h4eg5y.js → index-y9tadrbb.js} +6 -6
- package/{index-02v45hh9.js → index-yjq1e8ge.js} +3 -3
- package/{index-9rymt8d6.js → index-yq1rfscr.js} +1 -1
- package/{index-0z8sbdme.js → index-zswfx1y8.js} +1 -1
- package/{index-mnhrqjjq.js → index-zxvw9wme.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-nstr00s7.js → libExecutor-6we2k5s7.js} +2 -2
- package/{library.command-b02aw1hm.js → library.command-3d276hfe.js} +7 -7
- package/{localRegistry.command-3hg1p4aj.js → localRegistry.command-0k4wbbw3.js} +17 -17
- package/{module.command-bd9gz6cv.js → module.command-2efp8hnc.js} +9 -9
- package/{package.command-xmr0mxze.js → package.command-jbmhv4ka.js} +8 -8
- package/package.json +3 -2
- package/{page.command-x94qf58g.js → page.command-bmn5mqg4.js} +7 -7
- package/{pipeline.command-n2843k6t.js → pipeline.command-wy27rp6n.js} +6 -6
- package/{pkgExecutor-cka27e3c.js → pkgExecutor-zg3p4wzh.js} +2 -2
- package/{primitive.command-cs7v376h.js → primitive.command-c1zhx2k0.js} +10 -10
- package/{projectTypecheck-za2n3nbr.js → projectTypecheck-2nrmqybz.js} +1 -1
- package/{quality.command-nqngh1jd.js → quality.command-s7k6hd9v.js} +8 -8
- package/{repair.command-v2medwsm.js → repair.command-whzxzzwt.js} +9 -9
- package/{scalar.command-61cjmxn1.js → scalar.command-9h6jj42g.js} +8 -8
- package/skills/akan-page/SKILL.md +18 -13
- package/skills/akan-runtime/SKILL.md +21 -16
- package/skills/akan-service/SKILL.md +2 -2
- package/{subspace.command-dtv8nfh7.js → subspace.command-n39bhv0c.js} +10 -10
- package/{tunnel.command-fmwm5fgb.js → tunnel.command-n5ezcmfs.js} +9 -9
- package/{verify.command-4f260t53.js → verify.command-c7xn9jkn.js} +14 -14
- package/{workflow.command-tm5q9xsm.js → workflow.command-7jf64z5f.js} +14 -14
- package/{workspace.command-75gc280j.js → workspace.command-h55z8b42.js} +31 -31
- package/TunnelShare-cccfdgbm.js +0 -16
- package/cloud.script-8bs9tp4j.js +0 -30
- package/context.runner-bmstpng2.js +0 -32
|
@@ -4,43 +4,43 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c1sfw20m.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import {
|
|
10
10
|
parseEnvFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-g4hta169.js";
|
|
12
12
|
import"./index-zyjztrvc.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-smjm20t4.js";
|
|
14
|
+
import"./index-xftdwcdj.js";
|
|
15
15
|
import {
|
|
16
16
|
PkgExecutor2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-zxvw9wme.js";
|
|
18
18
|
import {
|
|
19
19
|
npmRegistryFromEnv,
|
|
20
20
|
warnIgnoredNpmRegistry,
|
|
21
21
|
getNpmRegistryUrl
|
|
22
22
|
} from "./index-jf4vk1s0.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
23
|
+
import"./index-8vger8r0.js";
|
|
24
|
+
import"./index-adbcqv0k.js";
|
|
25
|
+
import"./index-5fwhv8kp.js";
|
|
26
26
|
import"./index-m9jj544v.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-qc4xk6ng.js";
|
|
28
|
+
import"./index-tc9k9sgg.js";
|
|
29
29
|
import"./index-rwgqba9p.js";
|
|
30
30
|
import {
|
|
31
31
|
ApplicationScript
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-cryyzd80.js";
|
|
33
|
+
import"./index-akep88g2.js";
|
|
34
34
|
import {
|
|
35
35
|
CloudRunner
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
} from "./index-nawk3ttc.js";
|
|
37
|
+
import"./index-gxe8nyxd.js";
|
|
38
38
|
import {
|
|
39
39
|
PackageScript
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
} from "./index-f0qe3x4t.js";
|
|
41
|
+
import"./index-yq1rfscr.js";
|
|
42
42
|
import"./index-9bv479q5.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-2qhrmtb0.js";
|
|
44
44
|
|
|
45
45
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
46
46
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
Module,
|
|
5
5
|
ModuleOrService,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c1sfw20m.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-g4hta169.js";
|
|
10
10
|
import"./index-zyjztrvc.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-smjm20t4.js";
|
|
12
|
+
import"./index-xftdwcdj.js";
|
|
13
|
+
import"./index-zxvw9wme.js";
|
|
14
14
|
import {
|
|
15
15
|
renderPrimitiveReport
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-94a2xrv1.js";
|
|
17
17
|
import"./index-trffs83s.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-7jknrhws.js";
|
|
19
19
|
import {
|
|
20
20
|
ModuleScript
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-3jzx6k0e.js";
|
|
22
|
+
import"./index-2qhrmtb0.js";
|
|
23
23
|
|
|
24
24
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
25
25
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-c1sfw20m.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-g4hta169.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-smjm20t4.js";
|
|
11
|
+
import"./index-xftdwcdj.js";
|
|
12
|
+
import"./index-zxvw9wme.js";
|
|
13
|
+
import"./index-gxe8nyxd.js";
|
|
14
14
|
import {
|
|
15
15
|
PackageScript
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-f0qe3x4t.js";
|
|
17
|
+
import"./index-2qhrmtb0.js";
|
|
18
18
|
|
|
19
19
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
20
20
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.2.1-rc.
|
|
3
|
+
"version": "3.2.1-rc.2",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
|
+
"description": "The akan command of Akan.js: create, sync, verify, build, start and deploy an Akan.js workspace. Create one with: bunx create-akan-workspace@latest",
|
|
9
10
|
"homepage": "https://akanjs.com",
|
|
10
11
|
"license": "MIT",
|
|
11
12
|
"repository": {
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@earendil-works/pi-tui": "1.5.2",
|
|
40
41
|
"@inquirer/prompts": "^8.7.3",
|
|
41
42
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.2.1-rc.
|
|
43
|
+
"akanjs": "3.2.1-rc.2",
|
|
43
44
|
"chalk": "^6.0.1",
|
|
44
45
|
"commander": "^15.0.0",
|
|
45
46
|
"dayjs": "^1.11.23",
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-c1sfw20m.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-g4hta169.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-smjm20t4.js";
|
|
11
|
+
import"./index-xftdwcdj.js";
|
|
12
|
+
import"./index-zxvw9wme.js";
|
|
13
13
|
import {
|
|
14
14
|
PageScript
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-7jknrhws.js";
|
|
16
|
+
import"./index-2qhrmtb0.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
19
19
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c1sfw20m.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import {
|
|
10
10
|
AkanAppConfig,
|
|
11
11
|
AkanWorkspaceConfig
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-g4hta169.js";
|
|
13
13
|
import {
|
|
14
14
|
FileSys2
|
|
15
15
|
} from "./index-zyjztrvc.js";
|
|
16
16
|
import {
|
|
17
17
|
AppExecutor2
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
18
|
+
} from "./index-smjm20t4.js";
|
|
19
|
+
import"./index-xftdwcdj.js";
|
|
20
|
+
import"./index-zxvw9wme.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveMobileTargets
|
|
23
23
|
} from "./index-m9jj544v.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-2qhrmtb0.js";
|
|
25
25
|
|
|
26
26
|
// pkgs/@akanjs/cli/pipeline/pipeline.command.ts
|
|
27
27
|
import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-c1sfw20m.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-g4hta169.js";
|
|
8
8
|
import"./index-zyjztrvc.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
import"./index-smjm20t4.js";
|
|
10
|
+
import"./index-xftdwcdj.js";
|
|
11
|
+
import"./index-zxvw9wme.js";
|
|
12
12
|
import {
|
|
13
13
|
renderPrimitiveReport
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-94a2xrv1.js";
|
|
15
15
|
import"./index-trffs83s.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-7jknrhws.js";
|
|
17
|
+
import"./index-3jzx6k0e.js";
|
|
18
18
|
import {
|
|
19
19
|
PrimitiveScript
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
} from "./index-y9tadrbb.js";
|
|
21
|
+
import"./index-2qhrmtb0.js";
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
24
24
|
import { Logger } from "akanjs/common";
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-c1sfw20m.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-g4hta169.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
10
|
import {
|
|
11
11
|
AppExecutor2
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-smjm20t4.js";
|
|
13
13
|
import {
|
|
14
14
|
LibExecutor2
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-xftdwcdj.js";
|
|
16
16
|
import {
|
|
17
17
|
PkgExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-zxvw9wme.js";
|
|
19
19
|
import {
|
|
20
20
|
MaintainabilityBaseline
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-gxe8nyxd.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkspaceRunner,
|
|
24
24
|
AkanQualityScanner,
|
|
25
25
|
formatQualityScanResult,
|
|
26
26
|
formatSsrScanResult
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-c7zk1gtv.js";
|
|
28
28
|
import"./index-trffs83s.js";
|
|
29
29
|
import"./index-1p81ecbz.js";
|
|
30
30
|
import"./index-62md4dwy.js";
|
|
31
31
|
import"./index-zyb0ebm4.js";
|
|
32
32
|
import"./index-jf4vk1s0.js";
|
|
33
33
|
import"./index-t4d0ckde.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-2qhrmtb0.js";
|
|
35
35
|
|
|
36
36
|
// pkgs/@akanjs/cli/quality/quality.script.ts
|
|
37
37
|
import { Logger } from "akanjs/common";
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-c1sfw20m.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-g4hta169.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-smjm20t4.js";
|
|
11
|
+
import"./index-xftdwcdj.js";
|
|
12
|
+
import"./index-zxvw9wme.js";
|
|
13
|
+
import"./index-94a2xrv1.js";
|
|
14
14
|
import"./index-trffs83s.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-qk2evkwr.js";
|
|
16
16
|
import"./index-1p81ecbz.js";
|
|
17
17
|
import {
|
|
18
18
|
RepairRunner
|
|
19
|
-
} from "./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
} from "./index-h2g1qt9p.js";
|
|
20
|
+
import"./index-2qhrmtb0.js";
|
|
21
21
|
|
|
22
22
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
23
23
|
import { Logger } from "akanjs/common";
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-c1sfw20m.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-g4hta169.js";
|
|
8
8
|
import"./index-zyjztrvc.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
import"./index-smjm20t4.js";
|
|
10
|
+
import"./index-xftdwcdj.js";
|
|
11
|
+
import"./index-zxvw9wme.js";
|
|
12
12
|
import {
|
|
13
13
|
renderPrimitiveReport
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-94a2xrv1.js";
|
|
15
15
|
import"./index-trffs83s.js";
|
|
16
16
|
import {
|
|
17
17
|
ScalarScript
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
} from "./index-xrmcq5hx.js";
|
|
19
|
+
import"./index-2qhrmtb0.js";
|
|
20
20
|
|
|
21
21
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
22
22
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -26,19 +26,19 @@ export default page()
|
|
|
26
26
|
## Steps
|
|
27
27
|
|
|
28
28
|
1. Place the file: `<route>.tsx` or `<dir>/_index.tsx` serves the path, `_layout.tsx` nests a layout (`layout()`;
|
|
29
|
-
the root one is `rootLayout()`), `[id]` is a dynamic segment, `(group)` groups without a segment.
|
|
30
|
-
route modules only — no helpers, no `.ts` files.
|
|
29
|
+
the root one is `rootLayout()`), `[id]` is a dynamic segment, `(group)` groups without a segment.
|
|
31
30
|
2. Name every `[x]` segment with `.param("x", Type)` and read a query key only with `.search("k", Type)`. Values
|
|
32
|
-
arrive typed
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
arrive typed: `ID` / `String` → string, `Int` / `Float` → number, `Boolean`, `Date` → Dayjs, an `enumOf` class →
|
|
32
|
+
its union, `[T]` → array. A path value the type refuses answers not-found, and a search value that fails is
|
|
33
|
+
dropped. `lang` reaches every stage and is never declared.
|
|
34
|
+
3. Gate with `.guard(() => signedIn())` on the `_layout.tsx`, and repeat a stricter guard on a page that needs more.
|
|
35
|
+
`.guard((_, { path }) => signedIn({ path }))` sends a refused visitor to `/signin?redirect=<path>`.
|
|
36
36
|
4. In `.render()`: `usePage()`, then fetch, then return. Hand `fetch.init*` / `view*` / `edit*` fields to sections
|
|
37
37
|
unawaited; await only what the shell reads, in one `Promise.all`.
|
|
38
|
-
5. `.head()` takes JSX (or a function returning it), never a metadata object.
|
|
39
|
-
page's own head.
|
|
38
|
+
5. `.head()` takes JSX (or a function returning it), never a metadata object.
|
|
40
39
|
6. Re-skin an `akanjs/ui` component for a subtree with `_overrides.tsx`:
|
|
41
|
-
`export default override({ Slot: AppComponent })`, no logic.
|
|
40
|
+
`export default override({ Slot: AppComponent })`, no logic. Nested ones merge slot by slot, the closest winning;
|
|
41
|
+
`componentRule` lists the slots.
|
|
42
42
|
|
|
43
43
|
## API at a glance
|
|
44
44
|
|
|
@@ -50,12 +50,16 @@ declared params and search keys plus `lang`.
|
|
|
50
50
|
where `Book` is the `common/` interface for the query's `Any` return (`akan-service`).
|
|
51
51
|
- Async page: `.render(async ({ id }) => { const book = (await fetch.book(id)) as Book | null; if (!book) return router.notFound(); … })`;
|
|
52
52
|
the same query in `.head()` and `.render()` is one request.
|
|
53
|
+
- Loading: `.loading(() => <Skeleton />)` on a page or layout is what that level shows until its `.render()` and the
|
|
54
|
+
levels below it resolve; the levels above it stream first.
|
|
53
55
|
- `router.notFound()` from `.guard()`, `.head()` or `.render()` answers 404 with the nearest layout's `.notFound()`
|
|
54
56
|
above it (an unmatched URL: the deepest layout covering it), else the built-in 404.
|
|
55
57
|
- A layout's own 404 and error views: `.notFound(({ pathname }) => …)` and `.error(({ error }) => …)` on `layout()`
|
|
56
|
-
or `rootLayout()`.
|
|
58
|
+
or `rootLayout()`. A `<title>` and `<meta>` at the top of what they return replace the page's head:
|
|
59
|
+
`.notFound(() => <><title>Not found</title>…</>)`, except below a `.loading()`, where the head is already out.
|
|
57
60
|
- `<Link href="/books/OL45804W">`: write the path without the locale; Link adds it, or leaves it off for the default
|
|
58
|
-
locale under `i18n.localePrefix: "as-needed"`.
|
|
61
|
+
locale under `i18n.localePrefix: "as-needed"`. It renders an `<a>` and takes its attributes; `activeClassName`
|
|
62
|
+
marks the current one.
|
|
59
63
|
- From a handler: `router.push(href)` / `router.replace(href)`; in a server stage, `router.redirect(href)`.
|
|
60
64
|
- A client filter kept in the URL without reloading the page: ``router.replace(`/books?q=${q}`, { shallow: true,
|
|
61
65
|
scrollToTop: false })`` in a `"use client"` component, read back with `usePageLocation().searchParams`. Shallow
|
|
@@ -68,5 +72,6 @@ declared params and search keys plus `lang`.
|
|
|
68
72
|
- `useState`, `useEffect`, comments, a named export beside the chain, or the legacy `export default async function`.
|
|
69
73
|
- Editing a lib page through its link in `page/(libs)/` — edit the lib's own `page/` source.
|
|
70
74
|
|
|
71
|
-
Full detail: `get_guideline` with `pageRule
|
|
72
|
-
signature, the router's methods, Link's props and every
|
|
75
|
+
Full detail: `get_guideline` with `pageRule` (guards in depth, heads, MCP apps, CSR root layouts, lib pages), or
|
|
76
|
+
`ssrRule` for what may render on the server. Every stage's signature, the router's methods, Link's props and every
|
|
77
|
+
import path are in the `akanApi-*` references below.
|
|
@@ -5,8 +5,9 @@ description: "Configure how an app runs: web surfaces, route prefixes, gateway v
|
|
|
5
5
|
|
|
6
6
|
# Akan runtime
|
|
7
7
|
|
|
8
|
-
Runtime and build settings are declared in `akan.config.ts
|
|
9
|
-
|
|
8
|
+
Runtime and build settings are declared in `akan.config.ts`. What must hold when you edit it, `main.ts` or an env
|
|
9
|
+
file — the prefixes, the `main.ts` import, the image, log sinks, the desktop server's guard — is the `config` rule in
|
|
10
|
+
the agent guide's Path Rules table.
|
|
10
11
|
|
|
11
12
|
## Where each setting lives
|
|
12
13
|
|
|
@@ -16,28 +17,32 @@ Domain code reaches none of them.
|
|
|
16
17
|
| Move the API or websocket mount | `new AkanApp({ prefix, websocketPrefix })` in `main.ts`, mirrored in `api: { … }`; read with `getApiPrefix()` / `getWsPrefix()` |
|
|
17
18
|
| The production image | `docker: string \| { image, preRuns, postRuns, command }` |
|
|
18
19
|
| iOS, Android, desktop | the `native` section; `desktop: { server: true }` carries the server |
|
|
19
|
-
| SQLite, several databases, a cluster | `database: { modes: [...] }`, picked by `AKAN_DATABASE_MODE` |
|
|
20
|
+
| SQLite, several databases, a cluster | `database: { modes: [...] }` (`single`, `multiple`, `cluster`), picked by `AKAN_DATABASE_MODE` |
|
|
20
21
|
| URLs without `/<locale>/`: one language, or paths fixed from outside (OAuth callback, QR code, mail link) | `i18n: { localePrefix: "as-needed" }` — the default locale's pages and `<Link>` hrefs drop the prefix, other locales keep it |
|
|
21
22
|
|
|
22
|
-
- `main.ts` imports `AkanApp` from `akanjs/server/akanApp`, never the barrel.
|
|
23
|
-
- Never write `/api` or `/ws` literally, and never pass a prefix as a prop.
|
|
24
|
-
- The generated image installs only `ca-certificates` and `tzdata`; add the rest in `preRuns`.
|
|
25
|
-
- An app running in two database modes avoids `q.raw`.
|
|
26
|
-
|
|
27
23
|
## Running and logs
|
|
28
24
|
|
|
29
25
|
- `akan start <app>` (`a,b` or `all` for several) runs the dev server; `akan build <app>` checks the production
|
|
30
|
-
build. A supervised session writes `local/apps/<app>/runtime/dev.log` — hand over that
|
|
31
|
-
live view. Tail with `akan logs <app>`.
|
|
26
|
+
build. A supervised session writes `local/apps/<app>/runtime/dev.log` (previous: `dev.prev.log`) — hand over that
|
|
27
|
+
path, not a paste of the live view. Tail with `akan logs <app>`.
|
|
32
28
|
- Run a build without Docker with `cd dist/apps/<app> && bun main.js`: it boots with the env the Dockerfile sets,
|
|
33
29
|
read from `akan.env.json` beside it, and a variable you set yourself (`PORT=3000`) wins.
|
|
34
|
-
- Give every log sink a floor (`Logger.addSink(sink, { minLevel })`) and never log once per delivered record.
|
|
35
30
|
|
|
36
31
|
## Native and desktop
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
A `start-*` command loads its pages from a running `akan start`; a desktop app carrying its server starts it itself.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
akan start-desktop <app> # Run the desktop app on this computer
|
|
37
|
+
akan start-ios <app> # Run it in a simulator or on an iPhone (start-android alike)
|
|
38
|
+
akan build-desktop <app> # Build it for this computer into dist/native/<app>/<target>/build
|
|
39
|
+
akan build-desktop <app> --installer true # Windows: add a per-user setup program
|
|
40
|
+
akan update-keygen <app> # Make the update signing key once; print its public key
|
|
41
|
+
akan publish-update <app> # Build a key-signed release for updates.url; --sign true also code-signs it
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A device capability the framework lacks is a plugin the app owns in `native/<id>/`: `native-plugin.json`,
|
|
45
|
+
`src/index.ts` (the page API, used from a `webkit/` hook), `src/desktop.ts`, Kotlin and Swift.
|
|
42
46
|
|
|
43
|
-
Full detail: `get_guideline` with `runtimeRule
|
|
47
|
+
Full detail: `get_guideline` with `runtimeRule` (keys, `--plain`, boot waves, `--kill`, watch scope, booting a
|
|
48
|
+
server in a test, native targets and updates).
|
|
@@ -106,5 +106,5 @@ The page calls it as `await fetch.book(id)` (`fetch` from `@apps/<app>/client`)
|
|
|
106
106
|
`common/`, or return a scalar (`akan create-scalar`) for a typed wire shape. A query that answers `null` without
|
|
107
107
|
`nullable: true` fails the render, naming the endpoint.
|
|
108
108
|
|
|
109
|
-
Full detail: `get_guideline` with `modelService
|
|
110
|
-
|
|
109
|
+
Full detail: `get_guideline` with `modelService`. The exact signatures of serve, adapt, endpoint and
|
|
110
|
+
serviceDictionary, and every import path, are in the `akanApi-*` references below.
|
|
@@ -5,33 +5,33 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-c1sfw20m.js";
|
|
9
9
|
import"./index-j4yvgfhr.js";
|
|
10
10
|
import {
|
|
11
11
|
Executor,
|
|
12
12
|
LibSource,
|
|
13
13
|
WorkspaceExecutor
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-g4hta169.js";
|
|
15
15
|
import {
|
|
16
16
|
FileSys2
|
|
17
17
|
} from "./index-zyjztrvc.js";
|
|
18
18
|
import {
|
|
19
19
|
AppExecutor2
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
} from "./index-smjm20t4.js";
|
|
21
|
+
import"./index-xftdwcdj.js";
|
|
22
|
+
import"./index-zxvw9wme.js";
|
|
23
23
|
import {
|
|
24
24
|
GlobalConfig
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-akep88g2.js";
|
|
26
26
|
import"./index-m9jj544v.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-adbcqv0k.js";
|
|
28
28
|
import {
|
|
29
29
|
SubspaceConfig
|
|
30
30
|
} from "./index-xczjdng6.js";
|
|
31
31
|
import {
|
|
32
32
|
SlicePlanner
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
} from "./index-yq1rfscr.js";
|
|
34
|
+
import"./index-2qhrmtb0.js";
|
|
35
35
|
|
|
36
36
|
// pkgs/@akanjs/devkit/subspace/subspace.ts
|
|
37
37
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
@@ -822,7 +822,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
822
822
|
if (!asked)
|
|
823
823
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
824
824
|
const { libs } = await subspace.slice();
|
|
825
|
-
const { CloudScript } = await import("./cloud.script-
|
|
825
|
+
const { CloudScript } = await import("./cloud.script-zv6bxdvg.js");
|
|
826
826
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
827
827
|
host,
|
|
828
828
|
workspaceId,
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c1sfw20m.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-g4hta169.js";
|
|
10
10
|
import"./index-zyjztrvc.js";
|
|
11
11
|
import {
|
|
12
12
|
AppExecutor2
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
13
|
+
} from "./index-smjm20t4.js";
|
|
14
|
+
import"./index-xftdwcdj.js";
|
|
15
|
+
import"./index-zxvw9wme.js";
|
|
16
16
|
import {
|
|
17
17
|
GlobalConfig,
|
|
18
18
|
CloudApi
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-akep88g2.js";
|
|
20
20
|
import"./index-m9jj544v.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-adbcqv0k.js";
|
|
22
22
|
import {
|
|
23
23
|
TunnelShare2
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-2fw81aak.js";
|
|
25
25
|
import {
|
|
26
26
|
writeClipboard
|
|
27
27
|
} from "./index-p6pbz9n5.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-2qhrmtb0.js";
|
|
29
29
|
|
|
30
30
|
// pkgs/@akanjs/cli/tunnel/tunnel.script.ts
|
|
31
31
|
import { select } from "@inquirer/prompts";
|
|
@@ -4,39 +4,39 @@ import {
|
|
|
4
4
|
script,
|
|
5
5
|
markCliErrorPrinted,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-c1sfw20m.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./index-j4yvgfhr.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-g4hta169.js";
|
|
12
12
|
import"./index-zyjztrvc.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
13
|
+
import"./index-smjm20t4.js";
|
|
14
|
+
import"./index-xftdwcdj.js";
|
|
15
|
+
import"./index-zxvw9wme.js";
|
|
16
16
|
import {
|
|
17
17
|
ApplicationRunner,
|
|
18
18
|
VerifyScope
|
|
19
|
-
} from "./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
19
|
+
} from "./index-tc9k9sgg.js";
|
|
20
|
+
import"./index-8vger8r0.js";
|
|
21
|
+
import"./index-adbcqv0k.js";
|
|
22
|
+
import"./index-5fwhv8kp.js";
|
|
23
23
|
import"./index-m9jj544v.js";
|
|
24
24
|
import"./index-1p81ecbz.js";
|
|
25
25
|
import"./index-62md4dwy.js";
|
|
26
26
|
import"./index-zyb0ebm4.js";
|
|
27
27
|
import {
|
|
28
28
|
WorkspaceRunner
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-c7zk1gtv.js";
|
|
30
|
+
import"./index-gxe8nyxd.js";
|
|
31
31
|
import"./index-trffs83s.js";
|
|
32
32
|
import"./index-jf4vk1s0.js";
|
|
33
33
|
import"./index-t4d0ckde.js";
|
|
34
34
|
import {
|
|
35
35
|
VerifyPipeline,
|
|
36
36
|
VerifyReport
|
|
37
|
-
} from "./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
37
|
+
} from "./index-havp958b.js";
|
|
38
|
+
import"./index-yq1rfscr.js";
|
|
39
|
+
import"./index-2qhrmtb0.js";
|
|
40
40
|
|
|
41
41
|
// pkgs/@akanjs/cli/verify/verify.script.ts
|
|
42
42
|
import path from "path";
|