@akanjs/cli 3.3.0-rc.2 → 3.3.0-rc.3
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-0r05qa30.js} +2 -2
- package/{CodeTui-0gewm71c.js → CodeTui-brryts78.js} +1 -1
- package/TunnelShare-dcx5j51j.js +16 -0
- package/{agent.command-g1mj34wz.js → agent.command-xn4maemk.js} +17 -17
- package/akanCode.js +2 -2
- package/{appExecutor-rrx10jya.js → appExecutor-qt1nm242.js} +3 -3
- package/{application.command-3w4v7t40.js → application.command-rv2n5bw8.js} +13 -13
- package/{applicationBuildRunner-y5xbetyz.js → applicationBuildRunner-ggkd5qgy.js} +13 -10
- package/buildBatch.proc.js +10 -10
- package/{cloud.command-ph0rz6sw.js → cloud.command-hgnbps4n.js} +18 -18
- package/cloud.script-rzsnzjsg.js +30 -0
- package/{code.command-9b967qpg.js → code.command-9gfph3t3.js} +10 -10
- package/{context.command-ndzs5rbf.js → context.command-dwhz1fwq.js} +18 -18
- package/context.runner-gh9rr71p.js +32 -0
- package/{csrArtifactBuilder-gtvff6k7.js → csrArtifactBuilder-zawt8knq.js} +2 -3
- package/{guideline.command-y8qz9kxy.js → guideline.command-v2daz21k.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-6gepp8yn.js → index-0k64a38w.js} +60 -19
- package/{index-cm9rb480.js → index-0vtpxfx6.js} +5 -6
- package/{index-1p9bxjmt.js → index-0vv0a5h8.js} +2 -2
- package/{index-qh81drde.js → index-1v5eghaa.js} +8 -8
- package/{index-2vn0m9z5.js → index-2ktpwjgf.js} +3 -3
- package/{index-mnhrqjjq.js → index-2t7jnfg5.js} +1 -1
- package/{index-02v45hh9.js → index-58ck1gsm.js} +3 -3
- package/{index-twjgmryg.js → index-5cpjkfhk.js} +4 -4
- package/{index-pc42gxa5.js → index-609zbjve.js} +5 -5
- package/{index-0z8sbdme.js → index-66b1hrxh.js} +1 -1
- package/{index-dr1carpr.js → index-6yefp97x.js} +4 -4
- package/{index-2kh4xj3m.js → index-8fg1hvj5.js} +1 -1
- package/{index-b0t92k71.js → index-91bcfjej.js} +11 -11
- package/{index-ankyx6dj.js → index-999e5kp4.js} +3 -3
- package/{index-45aprybg.js → index-arcdcexp.js} +2 -2
- package/{index-scfsqen7.js → index-b3kjr19v.js} +3 -3
- package/{index-y2g0s9tn.js → index-bjg9thz8.js} +1 -1
- package/{index-ktxdfqg5.js → index-bsew0a12.js} +1 -1
- package/{index-f2arv0mv.js → index-c67vjafa.js} +1 -1
- package/{index-b372rck5.js → index-cfzqdsam.js} +14 -7
- package/{index-jg5rwrf7.js → index-dy5reyet.js} +226 -21
- package/{index-gtydr9qc.js → index-fqhr7j56.js} +8 -8
- package/{index-1c2807kg.js → index-g7hm77j6.js} +3 -3
- package/{index-jdw9m5c4.js → index-ghs8gtvp.js} +4 -4
- package/{index-4a1n0nym.js → index-h1k3zyyb.js} +1 -1
- package/{index-q8h4eg5y.js → index-jzwdwse0.js} +6 -6
- package/{index-0csk6jqm.js → index-m4s4tzjr.js} +3 -3
- package/{index-3569fr49.js → index-ndfxse05.js} +5 -5
- package/{index-d0n78fzc.js → index-rd669r6x.js} +11 -11
- package/{index-82cmbpxc.js → index-rnhbh45p.js} +7 -7
- package/{index-4zgm54wf.js → index-rwhdcnr8.js} +7 -7
- package/{index-38x8ynrx.js → index-sn5cka91.js} +2 -2
- package/{index-ymgsvhc5.js → index-v0gt5ryd.js} +18 -14
- package/{index-652f3bs8.js → index-vznyyaf8.js} +5 -5
- package/{index-6j351de4.js → index-w18qdjyf.js} +2 -2
- package/{index-0wa5z6rm.js → index-yejf6fth.js} +1 -1
- package/{index-whvhsb5f.js → index-zfmc4380.js} +1 -1
- package/{index-9rymt8d6.js → index-zx3bv21b.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-nstr00s7.js → libExecutor-p21kkayq.js} +2 -2
- package/{library.command-b02aw1hm.js → library.command-m4gw18qq.js} +7 -7
- package/{localRegistry.command-3hg1p4aj.js → localRegistry.command-3yq90wgp.js} +17 -17
- package/{module.command-bd9gz6cv.js → module.command-9vfdxapr.js} +9 -9
- package/{package.command-xmr0mxze.js → package.command-rt4y8xaf.js} +8 -8
- package/package.json +3 -2
- package/{page.command-x94qf58g.js → page.command-4zc20rnv.js} +7 -7
- package/{pipeline.command-n2843k6t.js → pipeline.command-4ekd9xgb.js} +6 -6
- package/{pkgExecutor-cka27e3c.js → pkgExecutor-mh903rz9.js} +2 -2
- package/{primitive.command-cs7v376h.js → primitive.command-5g3xe4mf.js} +10 -10
- package/{projectTypecheck-za2n3nbr.js → projectTypecheck-bz6smek9.js} +1 -1
- package/{quality.command-nqngh1jd.js → quality.command-zf8dyc9w.js} +8 -8
- package/{repair.command-v2medwsm.js → repair.command-sx0eyq4w.js} +9 -9
- package/{scalar.command-61cjmxn1.js → scalar.command-4bvzmbbh.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-cxyej1an.js} +10 -10
- package/{tunnel.command-fmwm5fgb.js → tunnel.command-gvnv36yf.js} +9 -9
- package/{verify.command-4f260t53.js → verify.command-yj2mngs0.js} +14 -14
- package/{workflow.command-tm5q9xsm.js → workflow.command-42p9g0w8.js} +14 -14
- package/{workspace.command-75gc280j.js → workspace.command-91wx03de.js} +31 -31
- package/TunnelShare-cccfdgbm.js +0 -16
- package/cloud.script-8bs9tp4j.js +0 -30
- package/context.runner-bmstpng2.js +0 -32
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
runner
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vznyyaf8.js";
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-cfzqdsam.js";
|
|
8
8
|
import {
|
|
9
9
|
jsonText,
|
|
10
10
|
workflowStatus,
|
|
11
11
|
createWorkflowBaselineSummary,
|
|
12
12
|
buildAkanModuleContextIndex,
|
|
13
13
|
toolingRolloutGate
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-g7hm77j6.js";
|
|
15
15
|
import {
|
|
16
16
|
buildResourceList,
|
|
17
17
|
codexMcpConfigPath,
|
|
@@ -21,16 +21,16 @@ import {
|
|
|
21
21
|
upsertCodexMcpServerBlock,
|
|
22
22
|
renderDoctorText,
|
|
23
23
|
AkanContextAnalyzer
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-ghs8gtvp.js";
|
|
25
25
|
import {
|
|
26
26
|
Prompter2
|
|
27
27
|
} from "./index-j3fqs8rc.js";
|
|
28
28
|
import {
|
|
29
29
|
NativeApp
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-v0gt5ryd.js";
|
|
31
31
|
import {
|
|
32
32
|
isPlaceholderAppId
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-8fg1hvj5.js";
|
|
34
34
|
import {
|
|
35
35
|
getMobileTargets,
|
|
36
36
|
appIdsOf
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
} from "./index-xs9a3ddt.js";
|
|
41
41
|
import {
|
|
42
42
|
RepairRunner
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-2ktpwjgf.js";
|
|
44
44
|
import {
|
|
45
45
|
WorkflowRunner
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-fqhr7j56.js";
|
|
47
47
|
|
|
48
48
|
// pkgs/@akanjs/devkit/context/akanMcpContract.ts
|
|
49
49
|
import { lstatSync, realpathSync } from "fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
runner
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vznyyaf8.js";
|
|
5
5
|
import {
|
|
6
6
|
writeWorkflowRunArtifact,
|
|
7
7
|
generatedFilePathsForTarget,
|
|
8
8
|
writeGeneratedSyncState,
|
|
9
9
|
createRepairReport,
|
|
10
10
|
renderRepairReport
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-g7hm77j6.js";
|
|
12
12
|
import {
|
|
13
13
|
AkanContextAnalyzer
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ghs8gtvp.js";
|
|
15
15
|
import {
|
|
16
16
|
isWorkflowSysName,
|
|
17
17
|
isWorkflowModuleName
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SubagentPool2,
|
|
20
20
|
McpSignIn,
|
|
21
21
|
AkanCodeCompaction2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-yejf6fth.js";
|
|
23
23
|
import {
|
|
24
24
|
codeAgentIsLoopback,
|
|
25
25
|
codeAgentHostListed,
|
|
@@ -676,7 +676,7 @@ class AkanToolPack2 {
|
|
|
676
676
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
677
677
|
}
|
|
678
678
|
async names() {
|
|
679
|
-
const { ContextRunner } = await import("./context.runner-
|
|
679
|
+
const { ContextRunner } = await import("./context.runner-gh9rr71p.js");
|
|
680
680
|
return [
|
|
681
681
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
682
682
|
AkanToolPack2.verifyToolName
|
|
@@ -684,7 +684,7 @@ class AkanToolPack2 {
|
|
|
684
684
|
}
|
|
685
685
|
static verifyToolName = "akan_verify";
|
|
686
686
|
async#register(pi) {
|
|
687
|
-
const { ContextRunner } = await import("./context.runner-
|
|
687
|
+
const { ContextRunner } = await import("./context.runner-gh9rr71p.js");
|
|
688
688
|
const runner = new ContextRunner;
|
|
689
689
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
690
690
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vznyyaf8.js";
|
|
5
5
|
import {
|
|
6
6
|
jsonText
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g7hm77j6.js";
|
|
8
8
|
import {
|
|
9
9
|
akanMcpInstallTargets
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ghs8gtvp.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-1v5eghaa.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|
|
@@ -216,7 +216,7 @@ var rootEntryHintOf = (type, name) => type === "app" && retiredAppRootEntries.ha
|
|
|
216
216
|
var isScannedRootEntry = (type, name) => !name.startsWith(".") || rootAllowedDirs[type].has(name);
|
|
217
217
|
|
|
218
218
|
// pkgs/@akanjs/devkit/workspace/scanInfo.ts
|
|
219
|
-
var loadLibExecutor = () => import("./libExecutor-
|
|
219
|
+
var loadLibExecutor = () => import("./libExecutor-p21kkayq.js");
|
|
220
220
|
var serviceFileTypes = [
|
|
221
221
|
"dictionary",
|
|
222
222
|
"service",
|
|
@@ -623,9 +623,9 @@ class WorkspaceInfo {
|
|
|
623
623
|
return existingWorkspaceInfo;
|
|
624
624
|
const [appNames, libNames, pkgNames] = await Promise.all([exec.getApps(), exec.getLibs(), exec.getPkgs()]);
|
|
625
625
|
const [appModule, libModule, pkgModule] = await Promise.all([
|
|
626
|
-
import("./appExecutor-
|
|
626
|
+
import("./appExecutor-qt1nm242.js"),
|
|
627
627
|
loadLibExecutor(),
|
|
628
|
-
import("./pkgExecutor-
|
|
628
|
+
import("./pkgExecutor-mh903rz9.js")
|
|
629
629
|
]);
|
|
630
630
|
const [appInfos, libInfos, pkgInfos] = await Promise.all([
|
|
631
631
|
Promise.all(appNames.map(async (appName) => await appModule.AppExecutor.from(exec, appName).scan())),
|
|
@@ -3191,7 +3191,7 @@ class AkanAppConfig {
|
|
|
3191
3191
|
"android",
|
|
3192
3192
|
"desktop"
|
|
3193
3193
|
],
|
|
3194
|
-
ios: ["indexPath", "teamId", "infoPlist", "entitlements", "privacy", "files"],
|
|
3194
|
+
ios: ["indexPath", "teamId", "infoPlist", "entitlements", "privacy", "files", "hideFormAccessoryBar"],
|
|
3195
3195
|
android: [
|
|
3196
3196
|
"indexPath",
|
|
3197
3197
|
"sha256CertFingerprints",
|
|
@@ -3388,7 +3388,7 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
|
3388
3388
|
return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
|
|
3389
3389
|
}
|
|
3390
3390
|
static async#collectLibContributions(app, libs, bustImportCache) {
|
|
3391
|
-
const { LibExecutor } = await import("./libExecutor-
|
|
3391
|
+
const { LibExecutor } = await import("./libExecutor-p21kkayq.js");
|
|
3392
3392
|
const libConfigs = await Promise.all(libs.map(async (libName) => AkanLibConfig.from(LibExecutor.from(app, libName), { bustImportCache }).catch((error) => {
|
|
3393
3393
|
if (error instanceof LibConfigRefusal)
|
|
3394
3394
|
throw error;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vznyyaf8.js";
|
|
6
6
|
import {
|
|
7
7
|
bilingualLabelForField,
|
|
8
8
|
bilingualDescriptionForField,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
sourceFile,
|
|
11
11
|
generatedFilesForSync,
|
|
12
12
|
createPassedPrimitiveReport
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-g7hm77j6.js";
|
|
14
14
|
import {
|
|
15
15
|
PageScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-bjg9thz8.js";
|
|
17
17
|
import {
|
|
18
18
|
pluralizeName
|
|
19
19
|
} from "./index-nz8prx9g.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./index-va90m8nd.js";
|
|
23
23
|
import {
|
|
24
24
|
ModuleExecutor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-zfmc4380.js";
|
|
26
26
|
|
|
27
27
|
// pkgs/@akanjs/cli/module/module.script.ts
|
|
28
28
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
SysExecutor
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-609zbjve.js";
|
|
5
5
|
import {
|
|
6
6
|
CliError
|
|
7
7
|
} from "./index-j4yvgfhr.js";
|
|
8
8
|
import {
|
|
9
9
|
ApplicationBuildReporter
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-w18qdjyf.js";
|
|
11
11
|
import {
|
|
12
12
|
script,
|
|
13
13
|
markCliErrorPrinted,
|
|
14
14
|
assertPromptable
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-vznyyaf8.js";
|
|
16
16
|
import {
|
|
17
17
|
AppExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-cfzqdsam.js";
|
|
19
19
|
import {
|
|
20
20
|
LibExecutor2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-c67vjafa.js";
|
|
22
22
|
import {
|
|
23
23
|
PkgExecutor2
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-2t7jnfg5.js";
|
|
25
25
|
import {
|
|
26
26
|
DesktopServerStage
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-8fg1hvj5.js";
|
|
28
28
|
import {
|
|
29
29
|
LibraryScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-m4s4tzjr.js";
|
|
31
31
|
import {
|
|
32
32
|
ApplicationRunner,
|
|
33
33
|
VerifyScope
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-rd669r6x.js";
|
|
35
35
|
import {
|
|
36
36
|
PreviewChrome2,
|
|
37
37
|
PreviewView2,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./index-rwgqba9p.js";
|
|
40
40
|
import {
|
|
41
41
|
formatSlicePlan
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-zx3bv21b.js";
|
|
43
43
|
import {
|
|
44
44
|
openBrowser
|
|
45
45
|
} from "./index-9dp031by.js";
|
|
@@ -1779,7 +1779,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1779
1779
|
await Promise.all(shares.map(async (share) => await share.close()));
|
|
1780
1780
|
}, "Abandoning the tunnel release; the shares expire on their own.");
|
|
1781
1781
|
await Promise.all(apps.map(async (app) => {
|
|
1782
|
-
const { TunnelShare } = await import("./TunnelShare-
|
|
1782
|
+
const { TunnelShare } = await import("./TunnelShare-dcx5j51j.js");
|
|
1783
1783
|
const share = await TunnelShare.open(app, { workspace: app.workspace });
|
|
1784
1784
|
shares.push(share);
|
|
1785
1785
|
urls.set(app.name, share.url);
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vznyyaf8.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-zyjztrvc.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-2t7jnfg5.js";
|
|
12
12
|
import {
|
|
13
13
|
MaintainabilityBaseline
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-bsew0a12.js";
|
|
15
15
|
import {
|
|
16
16
|
assertPackageName
|
|
17
17
|
} from "./index-va90m8nd.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
UpdatePackFolder,
|
|
10
10
|
NativePublicEnv,
|
|
11
11
|
NativeApp
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-v0gt5ryd.js";
|
|
13
13
|
import {
|
|
14
14
|
ExitCodeError
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-vznyyaf8.js";
|
|
16
16
|
import {
|
|
17
17
|
ConfigLock
|
|
18
18
|
} from "./index-bqbf654f.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SOURCE_EXTS,
|
|
4
4
|
WatchRootResolver
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-w18qdjyf.js";
|
|
6
6
|
import {
|
|
7
7
|
loaderFor,
|
|
8
8
|
BarrelAnalyzer,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
CsrDevPaths,
|
|
19
19
|
PagesEntrySourceGenerator,
|
|
20
20
|
PagesBundleBuilder
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-66b1hrxh.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSys2
|
|
24
24
|
} from "./index-zyjztrvc.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
AsyncDefaultExportDetector,
|
|
27
27
|
StoreBootstrap,
|
|
28
28
|
resolveSsrPageEntriesForApp
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-cfzqdsam.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/devkit/frontendBuild/clientEntryDiscovery.ts
|
|
32
32
|
import fs from "fs";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
AkanAppConfig,
|
|
8
8
|
increaseBuildNum,
|
|
9
9
|
decreaseBuildNum
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-609zbjve.js";
|
|
11
11
|
import {
|
|
12
12
|
FileSys2
|
|
13
13
|
} from "./index-zyjztrvc.js";
|
|
14
14
|
import {
|
|
15
15
|
LibExecutor2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-c67vjafa.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/devkit/executors/appExecutor.ts
|
|
19
19
|
import { cp as cpEntry, lstat, mkdir, readdir as readDirEntries, realpath, rm as rm2, stat, symlink } from "fs/promises";
|
|
@@ -409,6 +409,11 @@ class AppExecutor2 extends SysExecutor {
|
|
|
409
409
|
static from(executor, name) {
|
|
410
410
|
return new AppExecutor2({ workspace: executor instanceof WorkspaceExecutor ? executor : executor.workspace, name });
|
|
411
411
|
}
|
|
412
|
+
#verifyBuild = false;
|
|
413
|
+
useVerifyDist() {
|
|
414
|
+
this.dist = new Executor(`dist/verify/${this.name}`, `${this.workspace.workspaceRoot}/dist/verify/${this.name}`);
|
|
415
|
+
this.#verifyBuild = true;
|
|
416
|
+
}
|
|
412
417
|
static #keptOnStart = [path3.join(".akan", "cache")];
|
|
413
418
|
static #legacyNative = path3.join(".akan", "native");
|
|
414
419
|
async#removeDevOutput(dir = ".akan") {
|
|
@@ -486,11 +491,13 @@ class AppExecutor2 extends SysExecutor {
|
|
|
486
491
|
this.#excludeDevOnlyPages = true;
|
|
487
492
|
this.#pageKeys = null;
|
|
488
493
|
await this.dist.removeDir(this.dist.cwdPath);
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
+
if (!this.#verifyBuild) {
|
|
495
|
+
await Promise.all([this.dist.mkdir("private"), this.dist.mkdir("public")]);
|
|
496
|
+
await Promise.all([
|
|
497
|
+
this.cp("private", `${this.dist.cwdPath}/private`, { dereference: true }),
|
|
498
|
+
...akanConfig.web.ssr ? [this.cp("public", `${this.dist.cwdPath}/public`, { dereference: true })] : []
|
|
499
|
+
]);
|
|
500
|
+
}
|
|
494
501
|
} else {
|
|
495
502
|
await this.#removeDevOutput();
|
|
496
503
|
if (!akanConfig.web.ssr || !akanConfig.web.csr)
|