@akanjs/cli 3.3.0-rc.1 → 3.3.0-rc.11
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-cqbf9gsv.js +11 -0
- package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
- package/{CodeTui-zee8atsr.js → CodeTui-ehdr4hgw.js} +46 -6
- package/TunnelShare-0p4dy89e.js +16 -0
- package/{agent.command-x65f2ags.js → agent.command-x55ncdjm.js} +20 -22
- package/akanCode.js +7 -7
- package/appExecutor-1ctzymwa.js +11 -0
- package/{application.command-azbd1pb2.js → application.command-xpntxnh8.js} +18 -20
- package/{applicationBuildRunner-trfxv3pd.js → applicationBuildRunner-19c76791.js} +16 -13
- package/buildBatch.proc.js +19 -19
- package/{cloud.command-gapp4634.js → cloud.command-p3ybjes7.js} +19 -24
- package/cloud.script-0dsyd10v.js +30 -0
- package/{code.command-5smx61yf.js → code.command-m6skj1kj.js} +34 -19
- package/{context.command-ym5jbkny.js → context.command-3c3nv0d6.js} +20 -22
- package/context.runner-yyp7a112.js +32 -0
- package/csrArtifactBuilder-mdh9ykn2.js +9 -0
- package/{index-2ny1e95c.js → dependencyScanner-93g8tk0r.js} +6 -5
- package/{fileSys-q22646yc.js → fileSys-e5mwt73x.js} +1 -1
- package/frameworkGraph-aneq2nwy.js +8 -0
- package/{guideline.command-zwypaqsh.js → guideline.command-725fq5p0.js} +8 -8
- package/guidelines/agentRule/agentRule.instruction.md +46 -7
- 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 +15 -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 +3 -0
- package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
- package/guidelines/pageRule/pageRule.instruction.md +6 -53
- package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
- package/incrementalBuilder.proc.js +24 -18
- package/{index-nc3br31y.js → index-22bwg8hy.js} +2 -2
- package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
- package/{index-67sd09ag.js → index-3a3vy2xy.js} +8 -8
- package/{index-p7beqww9.js → index-3fmzz9sf.js} +18 -18
- package/{index-9wh04mqy.js → index-3mj5trqc.js} +65 -11
- package/{index-7wf8snar.js → index-3r1crbct.js} +1 -1
- package/{index-41a03gkj.js → index-3zkhg65e.js} +19 -19
- package/{index-2jmvfa62.js → index-4r8dgm4x.js} +3 -3
- package/{index-jek2re5k.js → index-4yvtqcme.js} +8 -8
- package/{index-j0wr4e32.js → index-5ahe641t.js} +9 -9
- package/{index-0dm25wvf.js → index-7ssr7wq4.js} +1 -1
- package/{index-dmcpetwe.js → index-8bta5pnr.js} +98 -23
- package/{index-z92zm3wd.js → index-9a9t77hz.js} +29 -11
- package/{index-3txdtztz.js → index-9gjcbp2g.js} +1 -1
- package/{index-8jtqfye2.js → index-a4gcdffy.js} +488 -53
- package/{index-xwwex8rf.js → index-cbm9gzgx.js} +5 -5
- package/{index-j6jjmn2r.js → index-ckcc9ab3.js} +62 -21
- package/{index-w1zexzpx.js → index-crd99zqs.js} +1 -1
- package/{index-612fdtbk.js → index-f4jydw2x.js} +1 -1
- package/{index-4ss4gkv3.js → index-fagjtk6m.js} +2 -2
- package/{index-ebn9kgea.js → index-fjqapyex.js} +45 -16
- package/{index-h901f24n.js → index-h8w1n11r.js} +5 -5
- package/{index-275a4r3n.js → index-hxg6ctk2.js} +12 -16
- package/{index-78y75t0a.js → index-j2wq064m.js} +6 -7
- package/{index-knpm8sdm.js → index-j3fqs8rc.js} +1 -1
- package/{index-kfvjzk8r.js → index-kbnvyhy4.js} +3 -3
- package/{index-6dzjer7p.js → index-m303nhv6.js} +6 -6
- package/{index-dadwp2aw.js → index-nmdmkjt2.js} +271 -39
- package/{index-2yn3r67f.js → index-nnmw56fz.js} +6 -6
- package/{index-a860mx0m.js → index-pr9nypg7.js} +24 -24
- package/{index-s885g0jj.js → index-pyjkbg8e.js} +3 -3
- package/{index-zmd9xxgd.js → index-q63nbpv7.js} +3 -3
- package/{index-v7ajmsh3.js → index-qecrqpt6.js} +4 -21
- package/{index-gt8phqpt.js → index-rdcgz02t.js} +4 -4
- package/{index-j592zfqc.js → index-rt7q20sj.js} +1 -1
- package/{index-baccvws5.js → index-se7n78fh.js} +1 -1
- package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
- package/{index-k6vwww45.js → index-t23dgyaf.js} +7 -7
- package/{index-71y6176j.js → index-v16gj2as.js} +86 -66
- package/{index-0s7w2085.js → index-vnk1qwgr.js} +4 -4
- package/{index-z96ks033.js → index-wkwe91sn.js} +169 -51
- package/{index-ybcb9wc8.js → index-wxqp1amd.js} +9 -9
- package/{index-p5zh7pmc.js → index-xv3pvdw4.js} +1 -1
- package/{index-zfnz878d.js → index-yey1envc.js} +1 -1
- package/{index-by2tvsq6.js → index-zyjztrvc.js} +1 -1
- package/index.js +30 -28
- package/{libExecutor-jc6f8hm6.js → libExecutor-n8hpm8s7.js} +3 -3
- package/{library.command-nxvesvhb.js → library.command-8abb26pg.js} +8 -8
- package/{localRegistry.command-xz62e4ng.js → localRegistry.command-sa211m1z.js} +18 -23
- package/{module.command-aaws9byg.js → module.command-z3cwjf0p.js} +10 -10
- package/{package.command-j7hv26p0.js → package.command-akynhtee.js} +9 -12
- package/package.json +3 -2
- package/{page.command-7yffs7n9.js → page.command-3fpdavk9.js} +8 -8
- package/{pipeline.command-7yk0zcng.js → pipeline.command-ca95n8rd.js} +7 -7
- package/{pkgExecutor-arxmvx4t.js → pkgExecutor-a73q41vx.js} +3 -3
- package/{primitive.command-7a1pt715.js → primitive.command-xwe9ggnf.js} +11 -11
- package/{projectTypecheck-f4qhbecd.js → projectTypecheck-7g542ymk.js} +1 -1
- package/{prompter-qyggfhqd.js → prompter-d33wmdpa.js} +2 -2
- package/{quality.command-c6mvrjh1.js → quality.command-7wz7y8z1.js} +9 -9
- package/{repair.command-093adzt9.js → repair.command-dej1qtfq.js} +10 -10
- package/{scalar.command-2ex84spb.js → scalar.command-z9qfxnvm.js} +9 -9
- package/skills/akan-agent/SKILL.md +8 -1
- package/skills/akan-code/SKILL.md +38 -3
- 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-4n4n4jpv.js → subspace.command-9wekm4gn.js} +11 -13
- package/templates/localDev/docker-compose.yaml.template +2 -2
- package/{tunnel.command-f7ep1qfa.js → tunnel.command-cxc4h3j8.js} +10 -12
- package/{verify.command-zrkxnvct.js → verify.command-j0w9dr5c.js} +15 -17
- package/{workflow.command-ks16jegk.js → workflow.command-yt4sz04b.js} +15 -15
- package/{workspace.command-ahhfpaag.js → workspace.command-8mp4mcp2.js} +34 -38
- package/CodeAgent-fx6088tv.js +0 -11
- package/TunnelShare-9ry4vh0y.js +0 -18
- package/appExecutor-79azsb2w.js +0 -11
- package/cloud.script-3b401efv.js +0 -35
- package/context.runner-kctbfsde.js +0 -34
- package/dependencyScanner-ge10gb52.js +0 -8
|
@@ -2,23 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
GlobalConfig,
|
|
4
4
|
CloudApi
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pyjkbg8e.js";
|
|
6
6
|
|
|
7
7
|
// pkgs/@akanjs/cli/tunnel/TunnelShare.ts
|
|
8
8
|
import { TunnelAgent } from "akanjs/server/tunnel";
|
|
9
9
|
|
|
10
10
|
// pkgs/@akanjs/cli/tunnel/TunnelGate.ts
|
|
11
|
-
|
|
12
|
-
"/_akan/devtools",
|
|
13
|
-
"/_akan/signal",
|
|
14
|
-
"/_akan/constant",
|
|
15
|
-
"/_akan/deps",
|
|
16
|
-
"/_akan/dictionary",
|
|
17
|
-
"/_akan/hmr",
|
|
18
|
-
"/_akan/app",
|
|
19
|
-
"/_akan/ops",
|
|
20
|
-
"/_akan/studio"
|
|
21
|
-
];
|
|
11
|
+
import { DevSurfaces } from "akanjs/server/routing/devSurfaces";
|
|
22
12
|
var handshakeHeaders = new Set([
|
|
23
13
|
"upgrade",
|
|
24
14
|
"connection",
|
|
@@ -32,14 +22,7 @@ var relayableCloseCode = (code) => code >= 3000 && code <= 4999 || code >= 1000
|
|
|
32
22
|
|
|
33
23
|
class TunnelGate {
|
|
34
24
|
static isDevRoute(pathname) {
|
|
35
|
-
|
|
36
|
-
try {
|
|
37
|
-
decoded = decodeURIComponent(pathname);
|
|
38
|
-
} catch {
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
const route = decoded.replace(/\/{2,}/g, "/").toLowerCase();
|
|
42
|
-
return route.endsWith(".map") || devRoutePrefixes.some((prefix) => route === prefix || route.startsWith(`${prefix}/`));
|
|
25
|
+
return DevSurfaces.refusedThroughTunnel(pathname);
|
|
43
26
|
}
|
|
44
27
|
#target;
|
|
45
28
|
#server;
|
|
@@ -78,7 +61,7 @@ class TunnelGate {
|
|
|
78
61
|
const url = new URL(req.url);
|
|
79
62
|
if (TunnelGate.isDevRoute(url.pathname))
|
|
80
63
|
return new Response("Not Found", { status: 404 });
|
|
81
|
-
const target = `${this.#target}${url.pathname}${url.search}`;
|
|
64
|
+
const target = `${this.#target}${url.pathname}${DevSurfaces.searchThroughTunnel(url.search)}`;
|
|
82
65
|
if (req.headers.get("upgrade")?.toLowerCase() === "websocket")
|
|
83
66
|
return await this.#upgrade(req, server, target);
|
|
84
67
|
const headers = new Headers(req.headers);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-nnmw56fz.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-q63nbpv7.js";
|
|
14
14
|
import {
|
|
15
15
|
PageScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-9gjcbp2g.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-3r1crbct.js";
|
|
26
26
|
|
|
27
27
|
// pkgs/@akanjs/cli/module/module.script.ts
|
|
28
28
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -69,7 +69,7 @@ class CodeAgentRpcHost2 {
|
|
|
69
69
|
case "answer":
|
|
70
70
|
return { handled: await this.#agent.answer(command.questionId, command.answer) };
|
|
71
71
|
case "approve":
|
|
72
|
-
return { handled: await this.#agent.approve(command.approvalId, command.approved) };
|
|
72
|
+
return { handled: await this.#agent.approve(command.approvalId, command.approved, command.remember) };
|
|
73
73
|
case "abort":
|
|
74
74
|
await this.#agent.abort();
|
|
75
75
|
return { aborted: true };
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-pyjkbg8e.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-crd99zqs.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-fjqapyex.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-nnmw56fz.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-3zkhg65e.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-hxg6ctk2.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-cbm9gzgx.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDirname2,
|
|
4
4
|
FileSys2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-zyjztrvc.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
TypecheckFailure
|
|
@@ -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-n8hpm8s7.js");
|
|
220
220
|
var serviceFileTypes = [
|
|
221
221
|
"dictionary",
|
|
222
222
|
"service",
|
|
@@ -242,7 +242,7 @@ var moduleUiFileTypes = {
|
|
|
242
242
|
service: new Set(["Util", "Zone"]),
|
|
243
243
|
scalar: new Set(["Template", "Unit"])
|
|
244
244
|
};
|
|
245
|
-
var createDependencyScanner = async (exec) => (await import("./dependencyScanner-
|
|
245
|
+
var createDependencyScanner = async (exec) => (await import("./dependencyScanner-93g8tk0r.js")).TypeScriptDependencyScanner.from(exec);
|
|
246
246
|
var getScanPath = (exec, relativePath) => path3.posix.join(`${exec.type}s`, exec.name, relativePath.split(path3.sep).join("/"));
|
|
247
247
|
var getModuleNameFromPath = (kind, modulePath) => {
|
|
248
248
|
const dirname = path3.basename(modulePath);
|
|
@@ -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-1ctzymwa.js"),
|
|
627
627
|
loadLibExecutor(),
|
|
628
|
-
import("./pkgExecutor-
|
|
628
|
+
import("./pkgExecutor-a73q41vx.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())),
|
|
@@ -1720,7 +1720,7 @@ ${block}`;
|
|
|
1720
1720
|
var extractBlockVersion = (content) => content.match(/<!-- akan:agent:version ([^\s]+) -->/)?.[1] ?? null;
|
|
1721
1721
|
var readDevkitVersion = async () => {
|
|
1722
1722
|
const { readFile } = await import("fs/promises");
|
|
1723
|
-
const { getDirname } = await import("./fileSys-
|
|
1723
|
+
const { getDirname } = await import("./fileSys-e5mwt73x.js");
|
|
1724
1724
|
const dirname = getDirname(import.meta.url);
|
|
1725
1725
|
for (const candidate of [`${dirname}/package.json`, `${dirname}/../package.json`]) {
|
|
1726
1726
|
try {
|
|
@@ -2837,6 +2837,75 @@ class ServerEnvProfile {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
|
|
2840
|
+
// pkgs/@akanjs/devkit/akanConfig/dockerImage.ts
|
|
2841
|
+
var BUN_IMAGE_PIN = {
|
|
2842
|
+
version: "1.4.4",
|
|
2843
|
+
digest: "sha256:1846adf22496bd711036aae8be147e57bdebbaea2e5264e3e0b5af1db187d9a4"
|
|
2844
|
+
};
|
|
2845
|
+
var DEFAULT_DOCKER_IMAGE = `oven/bun:${BUN_IMAGE_PIN.version}-slim@${BUN_IMAGE_PIN.digest}`;
|
|
2846
|
+
var DOCKER_RUN_USER = "1000:1000";
|
|
2847
|
+
var DOCKER_WRITE_DIRS = [
|
|
2848
|
+
"/workspace/sqlite",
|
|
2849
|
+
"/workspace/local",
|
|
2850
|
+
"/workspace/runtime",
|
|
2851
|
+
"/workspace/data",
|
|
2852
|
+
"/workspace/.akan/artifact/image-cache"
|
|
2853
|
+
];
|
|
2854
|
+
|
|
2855
|
+
// pkgs/@akanjs/devkit/akanConfig/nativeKeys.ts
|
|
2856
|
+
var nativeKeys = {
|
|
2857
|
+
native: [
|
|
2858
|
+
"basePath",
|
|
2859
|
+
"indexPath",
|
|
2860
|
+
"appName",
|
|
2861
|
+
"appId",
|
|
2862
|
+
"fileName",
|
|
2863
|
+
"version",
|
|
2864
|
+
"buildNum",
|
|
2865
|
+
"icon",
|
|
2866
|
+
"splash",
|
|
2867
|
+
"backgroundColor",
|
|
2868
|
+
"permissions",
|
|
2869
|
+
"plugins",
|
|
2870
|
+
"deepLinks",
|
|
2871
|
+
"updates",
|
|
2872
|
+
"devtools",
|
|
2873
|
+
"csp",
|
|
2874
|
+
"openUrls",
|
|
2875
|
+
"ios",
|
|
2876
|
+
"android",
|
|
2877
|
+
"desktop"
|
|
2878
|
+
],
|
|
2879
|
+
ios: ["indexPath", "teamId", "infoPlist", "entitlements", "privacy", "files", "hideFormAccessoryBar"],
|
|
2880
|
+
android: [
|
|
2881
|
+
"indexPath",
|
|
2882
|
+
"sha256CertFingerprints",
|
|
2883
|
+
"googleServices",
|
|
2884
|
+
"push",
|
|
2885
|
+
"autoplay",
|
|
2886
|
+
"manifest",
|
|
2887
|
+
"application",
|
|
2888
|
+
"activity",
|
|
2889
|
+
"files"
|
|
2890
|
+
],
|
|
2891
|
+
desktop: [
|
|
2892
|
+
"indexPath",
|
|
2893
|
+
"server",
|
|
2894
|
+
"recovery",
|
|
2895
|
+
"window",
|
|
2896
|
+
"screenCapture",
|
|
2897
|
+
"webview2",
|
|
2898
|
+
"publisher",
|
|
2899
|
+
"entitlements",
|
|
2900
|
+
"dmg",
|
|
2901
|
+
"externalView"
|
|
2902
|
+
],
|
|
2903
|
+
externalView: ["allowOrigins", "evaluate", "sendKey"],
|
|
2904
|
+
desktopServer: ["omit", "profile", "modules", "env", "restart", "watchdog"],
|
|
2905
|
+
dmg: ["background", "background2x", "window", "iconSize", "textSize", "app", "applications"],
|
|
2906
|
+
deepLinks: ["schemes", "domains"]
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2840
2909
|
// pkgs/@akanjs/devkit/akanConfig/akanConfig.ts
|
|
2841
2910
|
var DEFAULT_BARREL_IMPORTS = ["akanjs/webkit", "akanjs/common", "akanjs/ui", "akanjs/server"];
|
|
2842
2911
|
var DEFAULT_OPTIMIZE_IMPORTS = [
|
|
@@ -2846,7 +2915,6 @@ var DEFAULT_OPTIMIZE_IMPORTS = [
|
|
|
2846
2915
|
"@material-ui/icons @tabler/icons-react mui-core react-icons/*"
|
|
2847
2916
|
].flatMap((line) => line.split(" "));
|
|
2848
2917
|
var WORKSPACE_BARREL_FACETS = ["ui", "webkit", "common", "client", "server"];
|
|
2849
|
-
var DEFAULT_DOCKER_IMAGE = "oven/bun:1.4.4-slim";
|
|
2850
2918
|
var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
|
|
2851
2919
|
var DEFAULT_AKAN_IMAGE_CONFIG = {
|
|
2852
2920
|
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
|
|
@@ -3168,56 +3236,6 @@ class AkanAppConfig {
|
|
|
3168
3236
|
static #isPlainObject(value) {
|
|
3169
3237
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3170
3238
|
}
|
|
3171
|
-
static #nativeKeys = {
|
|
3172
|
-
native: [
|
|
3173
|
-
"basePath",
|
|
3174
|
-
"indexPath",
|
|
3175
|
-
"appName",
|
|
3176
|
-
"appId",
|
|
3177
|
-
"fileName",
|
|
3178
|
-
"version",
|
|
3179
|
-
"buildNum",
|
|
3180
|
-
"icon",
|
|
3181
|
-
"splash",
|
|
3182
|
-
"backgroundColor",
|
|
3183
|
-
"permissions",
|
|
3184
|
-
"plugins",
|
|
3185
|
-
"deepLinks",
|
|
3186
|
-
"updates",
|
|
3187
|
-
"devtools",
|
|
3188
|
-
"csp",
|
|
3189
|
-
"openUrls",
|
|
3190
|
-
"ios",
|
|
3191
|
-
"android",
|
|
3192
|
-
"desktop"
|
|
3193
|
-
],
|
|
3194
|
-
ios: ["indexPath", "teamId", "infoPlist", "entitlements", "privacy", "files"],
|
|
3195
|
-
android: [
|
|
3196
|
-
"indexPath",
|
|
3197
|
-
"sha256CertFingerprints",
|
|
3198
|
-
"googleServices",
|
|
3199
|
-
"push",
|
|
3200
|
-
"autoplay",
|
|
3201
|
-
"manifest",
|
|
3202
|
-
"application",
|
|
3203
|
-
"activity",
|
|
3204
|
-
"files"
|
|
3205
|
-
],
|
|
3206
|
-
desktop: [
|
|
3207
|
-
"indexPath",
|
|
3208
|
-
"server",
|
|
3209
|
-
"recovery",
|
|
3210
|
-
"window",
|
|
3211
|
-
"screenCapture",
|
|
3212
|
-
"webview2",
|
|
3213
|
-
"publisher",
|
|
3214
|
-
"entitlements",
|
|
3215
|
-
"dmg"
|
|
3216
|
-
],
|
|
3217
|
-
desktopServer: ["omit", "profile", "modules", "env", "restart", "watchdog"],
|
|
3218
|
-
dmg: ["background", "background2x", "window", "iconSize", "textSize", "app", "applications"],
|
|
3219
|
-
deepLinks: ["schemes", "domains"]
|
|
3220
|
-
};
|
|
3221
3239
|
static #movedKeys = {
|
|
3222
3240
|
native: "the platform sections and plugins sit directly in the native section: ios, android, desktop, plugins",
|
|
3223
3241
|
assets: "icon and splash sit directly in the native section",
|
|
@@ -3238,14 +3256,15 @@ class AkanAppConfig {
|
|
|
3238
3256
|
throw new Error(moved ? `${at}.${key} in ${configPath} has moved: ${moved}.` : `${at}.${key} in ${configPath} is not a native setting. Known: ${known.join(", ")}.`);
|
|
3239
3257
|
}
|
|
3240
3258
|
};
|
|
3241
|
-
check(section,
|
|
3259
|
+
check(section, nativeKeys.native, where, "native");
|
|
3242
3260
|
const settings = section;
|
|
3243
|
-
check(settings.ios,
|
|
3244
|
-
check(settings.android,
|
|
3245
|
-
check(settings.desktop,
|
|
3246
|
-
check(settings.desktop?.server,
|
|
3247
|
-
check(settings.desktop?.dmg,
|
|
3248
|
-
check(settings.
|
|
3261
|
+
check(settings.ios, nativeKeys.ios, `${where}.ios`, "ios");
|
|
3262
|
+
check(settings.android, nativeKeys.android, `${where}.android`, "android");
|
|
3263
|
+
check(settings.desktop, nativeKeys.desktop, `${where}.desktop`, "desktop");
|
|
3264
|
+
check(settings.desktop?.server, nativeKeys.desktopServer, `${where}.desktop.server`, "desktopServer");
|
|
3265
|
+
check(settings.desktop?.dmg, nativeKeys.dmg, `${where}.desktop.dmg`, "dmg");
|
|
3266
|
+
check(settings.desktop?.externalView, nativeKeys.externalView, `${where}.desktop.externalView`, "externalView");
|
|
3267
|
+
check(settings.deepLinks, nativeKeys.deepLinks, `${where}.deepLinks`, "deepLinks");
|
|
3249
3268
|
}
|
|
3250
3269
|
static #androidFilePattern = /^(?:res\/[^/]+\/[^/]+|assets\/.+)$/;
|
|
3251
3270
|
static #assertFiles(settings, where, configPath) {
|
|
@@ -3352,15 +3371,16 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
|
3352
3371
|
ARG TARGETARCH
|
|
3353
3372
|
${preRunScripts.join(`
|
|
3354
3373
|
`)}
|
|
3355
|
-
RUN mkdir -p /workspace
|
|
3356
3374
|
WORKDIR /workspace
|
|
3357
3375
|
${lockfile ? "COPY ./package.json ./bun.lock ./" : "COPY ./package.json ./package.json"}
|
|
3358
3376
|
RUN bun install --production${lockfile ? " --frozen-lockfile" : ""}
|
|
3359
3377
|
${postRunScripts.join(`
|
|
3360
3378
|
`)}
|
|
3361
3379
|
COPY . .
|
|
3380
|
+
RUN mkdir -p ${DOCKER_WRITE_DIRS.join(" ")} && chown ${DOCKER_RUN_USER} ${DOCKER_WRITE_DIRS.join(" ")}
|
|
3362
3381
|
${envLines.join(`
|
|
3363
3382
|
`)}
|
|
3383
|
+
USER ${DOCKER_RUN_USER}
|
|
3364
3384
|
CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
3365
3385
|
}
|
|
3366
3386
|
static #importGeneration = 0;
|
|
@@ -3388,7 +3408,7 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
|
3388
3408
|
return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
|
|
3389
3409
|
}
|
|
3390
3410
|
static async#collectLibContributions(app, libs, bustImportCache) {
|
|
3391
|
-
const { LibExecutor } = await import("./libExecutor-
|
|
3411
|
+
const { LibExecutor } = await import("./libExecutor-n8hpm8s7.js");
|
|
3392
3412
|
const libConfigs = await Promise.all(libs.map(async (libName) => AkanLibConfig.from(LibExecutor.from(app, libName), { bustImportCache }).catch((error) => {
|
|
3393
3413
|
if (error instanceof LibConfigRefusal)
|
|
3394
3414
|
throw error;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nnmw56fz.js";
|
|
5
5
|
import {
|
|
6
6
|
jsonText
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-q63nbpv7.js";
|
|
8
8
|
import {
|
|
9
9
|
akanMcpInstallTargets
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-h8w1n11r.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-5ahe641t.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|