@akanjs/cli 3.3.0-rc.6 → 3.3.0-rc.8
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-277k8f4q.js → CodeAgent-cqbf9gsv.js} +2 -2
- package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
- package/{CodeTui-rk7zw5mx.js → CodeTui-ehdr4hgw.js} +43 -3
- package/TunnelShare-0p4dy89e.js +16 -0
- package/{agent.command-m6scv9dh.js → agent.command-x55ncdjm.js} +17 -17
- package/akanCode.js +4 -4
- package/{appExecutor-qt1nm242.js → appExecutor-1ctzymwa.js} +3 -3
- package/{application.command-rdjx4678.js → application.command-xpntxnh8.js} +14 -14
- package/{applicationBuildRunner-6jkbfzmm.js → applicationBuildRunner-19c76791.js} +9 -9
- package/buildBatch.proc.js +10 -11
- package/{cloud.command-4kw1vbs0.js → cloud.command-p3ybjes7.js} +18 -18
- package/cloud.script-0dsyd10v.js +30 -0
- package/{code.command-87btt2a0.js → code.command-m6skj1kj.js} +31 -16
- package/{context.command-bbq2tdj4.js → context.command-3c3nv0d6.js} +18 -18
- package/context.runner-yyp7a112.js +32 -0
- package/{csrArtifactBuilder-wrqsfn1s.js → csrArtifactBuilder-mdh9ykn2.js} +2 -2
- package/{guideline.command-v2daz21k.js → guideline.command-725fq5p0.js} +6 -6
- package/guidelines/agentRule/agentRule.instruction.md +46 -7
- package/guidelines/conventions/rules/config.md +2 -1
- package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
- package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
- package/incrementalBuilder.proc.js +8 -8
- package/{index-5ptvewmq.js → index-22bwg8hy.js} +1 -1
- package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
- package/{index-fqhr7j56.js → index-3a3vy2xy.js} +8 -8
- package/{index-eap5y4w5.js → index-3mj5trqc.js} +2 -2
- package/{index-zfmc4380.js → index-3r1crbct.js} +1 -1
- package/{index-sxnszzh7.js → index-3zkhg65e.js} +11 -11
- package/{index-m4s4tzjr.js → index-4r8dgm4x.js} +3 -3
- package/{index-94h6dxc3.js → index-4yvtqcme.js} +7 -7
- package/{index-vq0y1vr4.js → index-5ahe641t.js} +8 -8
- package/{index-w18qdjyf.js → index-8bta5pnr.js} +2 -2
- package/{index-cfzqdsam.js → index-9a9t77hz.js} +2 -2
- package/{index-bjg9thz8.js → index-9gjcbp2g.js} +1 -1
- package/{index-k29kg5c1.js → index-a4gcdffy.js} +485 -50
- package/{index-zas8gm0a.js → index-cbm9gzgx.js} +5 -5
- package/{index-bwhja4dj.js → index-ckcc9ab3.js} +8 -8
- package/{index-2t7jnfg5.js → index-crd99zqs.js} +1 -1
- package/{index-ewp82tjf.js → index-f4jydw2x.js} +1 -1
- package/{index-0vv0a5h8.js → index-fagjtk6m.js} +2 -2
- package/{index-8a4mnn65.js → index-fjqapyex.js} +31 -5
- package/{index-ghs8gtvp.js → index-h8w1n11r.js} +4 -4
- package/{index-999e5kp4.js → index-hxg6ctk2.js} +5 -5
- package/{index-0vtpxfx6.js → index-j2wq064m.js} +5 -5
- package/{index-2ktpwjgf.js → index-kbnvyhy4.js} +3 -3
- package/{index-jzwdwse0.js → index-m303nhv6.js} +6 -6
- package/{index-hfqc5n8e.js → index-nmdmkjt2.js} +4 -4
- package/{index-vznyyaf8.js → index-nnmw56fz.js} +5 -5
- package/{index-nd7tzzd9.js → index-pr9nypg7.js} +2 -2
- package/{index-4gxaerb7.js → index-pyjkbg8e.js} +2 -2
- package/{index-g7hm77j6.js → index-q63nbpv7.js} +3 -3
- package/{index-9jm7t0h5.js → index-qecrqpt6.js} +4 -21
- package/{index-6yefp97x.js → index-rdcgz02t.js} +4 -4
- package/{index-zx3bv21b.js → index-rt7q20sj.js} +1 -1
- package/{index-bsew0a12.js → index-se7n78fh.js} +1 -1
- package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
- package/{index-nd69pk6t.js → index-t23dgyaf.js} +7 -7
- package/{index-609zbjve.js → index-v16gj2as.js} +83 -63
- package/{index-c1t41tk8.js → index-vnk1qwgr.js} +4 -4
- package/{index-8zxkjybr.js → index-wkwe91sn.js} +27 -17
- package/{index-3h0zqg41.js → index-wxqp1amd.js} +7 -7
- package/{index-c67vjafa.js → index-yey1envc.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-p21kkayq.js → libExecutor-n8hpm8s7.js} +2 -2
- package/{library.command-m4gw18qq.js → library.command-8abb26pg.js} +7 -7
- package/{localRegistry.command-edtbn4cy.js → localRegistry.command-sa211m1z.js} +17 -17
- package/{module.command-9vfdxapr.js → module.command-z3cwjf0p.js} +9 -9
- package/{package.command-rt4y8xaf.js → package.command-akynhtee.js} +8 -8
- package/package.json +2 -2
- package/{page.command-4zc20rnv.js → page.command-3fpdavk9.js} +7 -7
- package/{pipeline.command-4ekd9xgb.js → pipeline.command-ca95n8rd.js} +6 -6
- package/{pkgExecutor-mh903rz9.js → pkgExecutor-a73q41vx.js} +2 -2
- package/{primitive.command-5g3xe4mf.js → primitive.command-xwe9ggnf.js} +10 -10
- package/{projectTypecheck-bz6smek9.js → projectTypecheck-7g542ymk.js} +1 -1
- package/{quality.command-zf8dyc9w.js → quality.command-7wz7y8z1.js} +8 -8
- package/{repair.command-sx0eyq4w.js → repair.command-dej1qtfq.js} +9 -9
- package/{scalar.command-4bvzmbbh.js → scalar.command-z9qfxnvm.js} +8 -8
- package/skills/akan-agent/SKILL.md +8 -1
- package/skills/akan-code/SKILL.md +38 -3
- package/{subspace.command-tg85k9ry.js → subspace.command-9wekm4gn.js} +10 -10
- package/templates/localDev/docker-compose.yaml.template +2 -2
- package/{tunnel.command-t629kcm0.js → tunnel.command-cxc4h3j8.js} +9 -9
- package/{verify.command-837mthft.js → verify.command-j0w9dr5c.js} +14 -14
- package/{workflow.command-42p9g0w8.js → workflow.command-yt4sz04b.js} +14 -14
- package/{workspace.command-12egv8xq.js → workspace.command-8mp4mcp2.js} +31 -31
- package/TunnelShare-8pejh5jk.js +0 -16
- package/cloud.script-af2js02g.js +0 -30
- package/context.runner-ma47t32x.js +0 -32
|
@@ -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",
|
|
@@ -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())),
|
|
@@ -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", "hideFormAccessoryBar"],
|
|
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";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SysExecutor,
|
|
5
5
|
AppInfo,
|
|
6
6
|
WorkspaceExecutor
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-v16gj2as.js";
|
|
8
8
|
import {
|
|
9
9
|
FileSys2
|
|
10
10
|
} from "./index-zyjztrvc.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./index-j4yvgfhr.js";
|
|
14
14
|
import {
|
|
15
15
|
AppExecutor2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-9a9t77hz.js";
|
|
17
17
|
import {
|
|
18
18
|
LibExecutor2
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-yey1envc.js";
|
|
20
20
|
import {
|
|
21
21
|
PkgExecutor2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-crd99zqs.js";
|
|
23
23
|
import {
|
|
24
24
|
UNAVAILABLE_REDIS_HOST,
|
|
25
25
|
redisTunnelPolicy,
|
|
@@ -55,27 +55,27 @@ import {
|
|
|
55
55
|
filesChangedSince,
|
|
56
56
|
HmrWatcher,
|
|
57
57
|
WatchRootResolver
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-8bta5pnr.js";
|
|
59
59
|
import {
|
|
60
60
|
runner,
|
|
61
61
|
assertPromptable
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-nnmw56fz.js";
|
|
63
63
|
import {
|
|
64
64
|
UpdatePackFolder,
|
|
65
65
|
UpdateUploader,
|
|
66
66
|
NativePublicEnv,
|
|
67
67
|
NativeApp
|
|
68
|
-
} from "./index-
|
|
68
|
+
} from "./index-fjqapyex.js";
|
|
69
69
|
import {
|
|
70
70
|
DesktopServerStage
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-f4jydw2x.js";
|
|
72
72
|
import {
|
|
73
73
|
resolveMobileTargets,
|
|
74
74
|
resolveAppId
|
|
75
75
|
} from "./index-m9jj544v.js";
|
|
76
76
|
import {
|
|
77
77
|
SlicePlanner
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-rt7q20sj.js";
|
|
79
79
|
import {
|
|
80
80
|
openBrowser
|
|
81
81
|
} from "./index-9dp031by.js";
|
|
@@ -261,15 +261,24 @@ var tunnelEnv = new ShellOnlyEnv([
|
|
|
261
261
|
"SSH_TUNNEL_KNOWN_HOSTS",
|
|
262
262
|
"SSH_TUNNEL_BIND_HOST"
|
|
263
263
|
]);
|
|
264
|
-
var
|
|
264
|
+
var readTunnelKey = (purpose, keyPath) => {
|
|
265
|
+
try {
|
|
266
|
+
return readFileSync(keyPath);
|
|
267
|
+
} catch (error) {
|
|
268
|
+
const reason = error.code ?? (error instanceof Error ? error.message : String(error));
|
|
269
|
+
throw new Error(`${purpose} could not read the key SSH_TUNNEL_PRIVATE_KEY_PATH names, ${keyPath} (${reason}).`, {
|
|
270
|
+
cause: error
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
var tunnelAuth = (purpose) => {
|
|
265
275
|
const keyPath = tunnelEnv.get("SSH_TUNNEL_PRIVATE_KEY_PATH");
|
|
266
276
|
const passphrase = tunnelEnv.get("SSH_TUNNEL_PASSPHRASE");
|
|
267
277
|
if (keyPath)
|
|
268
|
-
return { privateKey:
|
|
278
|
+
return { privateKey: readTunnelKey(purpose, keyPath), ...passphrase ? { passphrase } : {} };
|
|
269
279
|
if (process.env.SSH_TUNNEL_PASSWORD)
|
|
270
280
|
return { password: process.env.SSH_TUNNEL_PASSWORD };
|
|
271
|
-
|
|
272
|
-
return { password: repoName };
|
|
281
|
+
throw new Error(`${purpose} needs an SSH credential: export SSH_TUNNEL_PRIVATE_KEY_PATH (with SSH_TUNNEL_PASSPHRASE if the key has one) in the shell, or set SSH_TUNNEL_PASSWORD.`);
|
|
273
282
|
};
|
|
274
283
|
var tunnelHostVerifier = (app, hostId, onRefusal) => {
|
|
275
284
|
const pinned = SshHostKeys.parsePinned(tunnelEnv.get("SSH_TUNNEL_HOST_FINGERPRINT"));
|
|
@@ -297,7 +306,8 @@ var createTunnel = async (service, { app, environment, port = service === "postg
|
|
|
297
306
|
WorkspaceExecutor.assertDeployableEnv(baseDevEnv, environment, `The ${service} tunnel`);
|
|
298
307
|
for (const line of tunnelEnv.ignored())
|
|
299
308
|
app.logger.warn(line);
|
|
300
|
-
const
|
|
309
|
+
const auth = tunnelAuth(`The ${service} tunnel for ${app.name}-${environment}`);
|
|
310
|
+
const { serveDomain } = baseDevEnv;
|
|
301
311
|
const host = `${app.name}-${environment}.${serveDomain}`;
|
|
302
312
|
const sshHost = host.endsWith(".localhost") ? "localhost" : host;
|
|
303
313
|
const sshPort = process.env.SSH_TUNNEL_PORT ? parseInt(process.env.SSH_TUNNEL_PORT) : 32767;
|
|
@@ -319,7 +329,7 @@ var createTunnel = async (service, { app, environment, port = service === "postg
|
|
|
319
329
|
host: sshHost,
|
|
320
330
|
port: sshPort,
|
|
321
331
|
username: process.env.SSH_TUNNEL_USERNAME ?? "root",
|
|
322
|
-
...
|
|
332
|
+
...auth,
|
|
323
333
|
hostVerifier: tunnelHostVerifier(app, `${sshHost}:${sshPort}`, (reason) => {
|
|
324
334
|
refusal = reason;
|
|
325
335
|
})
|
|
@@ -2481,7 +2491,7 @@ var reportsNoTestFile = (exec) => {
|
|
|
2481
2491
|
};
|
|
2482
2492
|
|
|
2483
2493
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
2484
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
2494
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-19c76791.js")).ApplicationBuildRunner;
|
|
2485
2495
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
2486
2496
|
|
|
2487
2497
|
class ApplicationRunner extends runner("application") {
|
|
@@ -2682,7 +2692,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
|
|
|
2682
2692
|
await new (await loadBuildRunner())(app).typecheck(options);
|
|
2683
2693
|
}
|
|
2684
2694
|
async typecheckLibrary(lib, options = {}) {
|
|
2685
|
-
const { ProjectTypecheck } = await import("./projectTypecheck-
|
|
2695
|
+
const { ProjectTypecheck } = await import("./projectTypecheck-7g542ymk.js");
|
|
2686
2696
|
const root = lib.workspace.workspaceRoot;
|
|
2687
2697
|
await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
|
|
2688
2698
|
"../../server.ts",
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
parseBiomeReport,
|
|
4
4
|
Linter,
|
|
5
5
|
ProjectTypecheck2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-v16gj2as.js";
|
|
7
7
|
import {
|
|
8
8
|
TypecheckFailure
|
|
9
9
|
} from "./index-j4yvgfhr.js";
|
|
10
10
|
import {
|
|
11
11
|
ApplicationBuildReporter
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-8bta5pnr.js";
|
|
13
13
|
import {
|
|
14
14
|
AppExecutor2
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-9a9t77hz.js";
|
|
16
16
|
import {
|
|
17
17
|
LibExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-yey1envc.js";
|
|
19
19
|
import {
|
|
20
20
|
PkgExecutor2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-crd99zqs.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkspaceRunner,
|
|
24
24
|
AkanQualityScanner
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-j2wq064m.js";
|
|
26
26
|
import {
|
|
27
27
|
VerifyScope
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-wkwe91sn.js";
|
|
29
29
|
|
|
30
30
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
31
31
|
import { existsSync } from "fs";
|
package/index.js
CHANGED
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-nnmw56fz.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-v16gj2as.js";
|
|
10
10
|
import"./index-zyjztrvc.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
11
|
+
import"./index-9a9t77hz.js";
|
|
12
|
+
import"./index-yey1envc.js";
|
|
13
|
+
import"./index-crd99zqs.js";
|
|
14
|
+
import"./index-3r1crbct.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
17
17
|
class BunVersionGuard {
|
|
@@ -27,27 +27,27 @@ import path from "path";
|
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
29
29
|
var commandModules = {
|
|
30
|
-
workspace: async () => (await import("./workspace.command-
|
|
31
|
-
agent: async () => (await import("./agent.command-
|
|
32
|
-
code: async () => (await import("./code.command-
|
|
33
|
-
application: async () => (await import("./application.command-
|
|
34
|
-
library: async () => (await import("./library.command-
|
|
35
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
36
|
-
package: async () => (await import("./package.command-
|
|
37
|
-
module: async () => (await import("./module.command-
|
|
38
|
-
page: async () => (await import("./page.command-
|
|
39
|
-
context: async () => (await import("./context.command-
|
|
40
|
-
cloud: async () => (await import("./cloud.command-
|
|
41
|
-
subspace: async () => (await import("./subspace.command-
|
|
42
|
-
guideline: async () => (await import("./guideline.command-
|
|
43
|
-
scalar: async () => (await import("./scalar.command-
|
|
44
|
-
primitive: async () => (await import("./primitive.command-
|
|
45
|
-
quality: async () => (await import("./quality.command-
|
|
46
|
-
verify: async () => (await import("./verify.command-
|
|
47
|
-
repair: async () => (await import("./repair.command-
|
|
48
|
-
workflow: async () => (await import("./workflow.command-
|
|
49
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
50
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
30
|
+
workspace: async () => (await import("./workspace.command-8mp4mcp2.js")).WorkspaceCommand,
|
|
31
|
+
agent: async () => (await import("./agent.command-x55ncdjm.js")).AgentCommand,
|
|
32
|
+
code: async () => (await import("./code.command-m6skj1kj.js")).CodeCommand,
|
|
33
|
+
application: async () => (await import("./application.command-xpntxnh8.js")).ApplicationCommand,
|
|
34
|
+
library: async () => (await import("./library.command-8abb26pg.js")).LibraryCommand,
|
|
35
|
+
localRegistry: async () => (await import("./localRegistry.command-sa211m1z.js")).LocalRegistryCommand,
|
|
36
|
+
package: async () => (await import("./package.command-akynhtee.js")).PackageCommand,
|
|
37
|
+
module: async () => (await import("./module.command-z3cwjf0p.js")).ModuleCommand,
|
|
38
|
+
page: async () => (await import("./page.command-3fpdavk9.js")).PageCommand,
|
|
39
|
+
context: async () => (await import("./context.command-3c3nv0d6.js")).ContextCommand,
|
|
40
|
+
cloud: async () => (await import("./cloud.command-p3ybjes7.js")).CloudCommand,
|
|
41
|
+
subspace: async () => (await import("./subspace.command-9wekm4gn.js")).SubspaceCommand,
|
|
42
|
+
guideline: async () => (await import("./guideline.command-725fq5p0.js")).GuidelineCommand,
|
|
43
|
+
scalar: async () => (await import("./scalar.command-z9qfxnvm.js")).ScalarCommand,
|
|
44
|
+
primitive: async () => (await import("./primitive.command-xwe9ggnf.js")).PrimitiveCommand,
|
|
45
|
+
quality: async () => (await import("./quality.command-7wz7y8z1.js")).QualityCommand,
|
|
46
|
+
verify: async () => (await import("./verify.command-j0w9dr5c.js")).VerifyCommand,
|
|
47
|
+
repair: async () => (await import("./repair.command-dej1qtfq.js")).RepairCommand,
|
|
48
|
+
workflow: async () => (await import("./workflow.command-yt4sz04b.js")).WorkflowCommand,
|
|
49
|
+
pipeline: async () => (await import("./pipeline.command-ca95n8rd.js")).PipelineCommand,
|
|
50
|
+
tunnel: async () => (await import("./tunnel.command-cxc4h3j8.js")).TunnelCommand
|
|
51
51
|
};
|
|
52
52
|
var commandModuleIds = Object.keys(commandModules);
|
|
53
53
|
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-nnmw56fz.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-v16gj2as.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-9a9t77hz.js";
|
|
11
|
+
import"./index-yey1envc.js";
|
|
12
|
+
import"./index-crd99zqs.js";
|
|
13
13
|
import {
|
|
14
14
|
LibraryScript
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-4r8dgm4x.js";
|
|
16
|
+
import"./index-3r1crbct.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
19
19
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,43 +4,43 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-nnmw56fz.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import {
|
|
10
10
|
parseEnvFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-v16gj2as.js";
|
|
12
12
|
import"./index-zyjztrvc.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-9a9t77hz.js";
|
|
14
|
+
import"./index-yey1envc.js";
|
|
15
15
|
import {
|
|
16
16
|
PkgExecutor2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-crd99zqs.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-8bta5pnr.js";
|
|
24
|
+
import"./index-fjqapyex.js";
|
|
25
|
+
import"./index-f4jydw2x.js";
|
|
26
26
|
import"./index-m9jj544v.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-4r8dgm4x.js";
|
|
28
|
+
import"./index-wkwe91sn.js";
|
|
29
29
|
import"./index-rwgqba9p.js";
|
|
30
30
|
import {
|
|
31
31
|
ApplicationScript
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-3zkhg65e.js";
|
|
33
|
+
import"./index-pyjkbg8e.js";
|
|
34
34
|
import {
|
|
35
35
|
CloudRunner
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
} from "./index-cbm9gzgx.js";
|
|
37
|
+
import"./index-se7n78fh.js";
|
|
38
38
|
import {
|
|
39
39
|
PackageScript
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
} from "./index-hxg6ctk2.js";
|
|
41
|
+
import"./index-rt7q20sj.js";
|
|
42
42
|
import"./index-9bv479q5.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-3r1crbct.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-nnmw56fz.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-v16gj2as.js";
|
|
10
10
|
import"./index-zyjztrvc.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-9a9t77hz.js";
|
|
12
|
+
import"./index-yey1envc.js";
|
|
13
|
+
import"./index-crd99zqs.js";
|
|
14
14
|
import {
|
|
15
15
|
renderPrimitiveReport
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-q63nbpv7.js";
|
|
17
17
|
import"./index-trffs83s.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-9gjcbp2g.js";
|
|
19
19
|
import {
|
|
20
20
|
ModuleScript
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-rdcgz02t.js";
|
|
22
|
+
import"./index-3r1crbct.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-nnmw56fz.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-v16gj2as.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-9a9t77hz.js";
|
|
11
|
+
import"./index-yey1envc.js";
|
|
12
|
+
import"./index-crd99zqs.js";
|
|
13
|
+
import"./index-se7n78fh.js";
|
|
14
14
|
import {
|
|
15
15
|
PackageScript
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-hxg6ctk2.js";
|
|
17
|
+
import"./index-3r1crbct.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.3.0-rc.
|
|
3
|
+
"version": "3.3.0-rc.8",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@earendil-works/pi-tui": "1.5.2",
|
|
41
41
|
"@inquirer/prompts": "^8.7.3",
|
|
42
42
|
"@tailwindcss/node": "^4.3.3",
|
|
43
|
-
"akanjs": "3.3.0-rc.
|
|
43
|
+
"akanjs": "3.3.0-rc.8",
|
|
44
44
|
"chalk": "^6.0.1",
|
|
45
45
|
"commander": "^15.0.0",
|
|
46
46
|
"dayjs": "^1.11.23",
|