@akanjs/cli 3.0.0-alpha.64 → 3.0.0-alpha.66
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 +1 -1
- package/{agent.command-tsx1nsdj.js → agent.command-7vr15vkn.js} +5 -5
- package/{application.command-n8ex8g9h.js → application.command-nrq6qvkh.js} +4 -4
- package/{applicationBuildRunner-x8h12rp0.js → applicationBuildRunner-jnjag4ay.js} +10 -8
- package/buildBatch.proc.js +2 -2
- package/{capacitorApp-8mv9e537.js → capacitorApp-w1ryppdw.js} +2 -2
- package/{cloud.command-f0rhw014.js → cloud.command-crwf7emx.js} +7 -7
- package/{context.command-s7a41qjs.js → context.command-xbsgta4f.js} +12 -12
- package/{guideline.command-qrw84ttb.js → guideline.command-mm19n009.js} +2 -2
- package/guidelines/conventions/conventions.instruction.md +107 -5
- package/incrementalBuilder.proc.js +1 -1
- package/{index-h0mnt0b0.js → index-0jn016vv.js} +3 -3
- package/{index-ckpwq052.js → index-1f34snpd.js} +1 -1
- package/{index-4mtyaqj2.js → index-639mgtfm.js} +2 -2
- package/{index-x1dbhd80.js → index-6s8snbb8.js} +2 -2
- package/{index-kkya2ped.js → index-7kxz2z5t.js} +1 -1
- package/{index-g44fykfw.js → index-8vv6xtm5.js} +1 -1
- package/{index-dvg362vq.js → index-8xeg8ehr.js} +3 -3
- package/{index-cc1mgv1f.js → index-9ppq2sx0.js} +4 -4
- package/{index-r8z20vnj.js → index-a6k0b1b5.js} +5 -5
- package/{index-0g9ajdz8.js → index-bzthvy50.js} +5 -5
- package/{index-8md8zszv.js → index-cnyeq88g.js} +3 -3
- package/{index-tn46rr6w.js → index-d5ef8n21.js} +4 -4
- package/{index-ek4mkwxp.js → index-gkg6e6cx.js} +10 -10
- package/{index-ryns915y.js → index-hpbf1b1e.js} +3 -3
- package/{index-ce9755av.js → index-jbhecvr9.js} +1 -1
- package/{index-f0t3wjyr.js → index-k8k45qfk.js} +2 -2
- package/{index-681sx6nt.js → index-w008bx1p.js} +69 -36
- package/{index-wc19q8mb.js → index-xda7qe2j.js} +2 -2
- package/{index-xj5b8c0w.js → index-xesyg6bc.js} +1 -0
- package/index.js +18 -18
- package/{library.command-p3jgf5h2.js → library.command-afjd6ex4.js} +3 -3
- package/{localRegistry.command-bms0qn6t.js → localRegistry.command-6zadvx6z.js} +6 -6
- package/{module.command-hb3xm07r.js → module.command-rh01pbz3.js} +5 -5
- package/{package.command-fbpa6r4w.js → package.command-g4s1y1wn.js} +3 -3
- package/package.json +2 -2
- package/{page.command-92vrmw96.js → page.command-9bw6sz1r.js} +3 -3
- package/{primitive.command-k6b9jfxr.js → primitive.command-pg1j3gm3.js} +6 -6
- package/{quality.command-89vwmjvf.js → quality.command-rt1z7je9.js} +2 -2
- package/{repair.command-nh9jn8rh.js → repair.command-pg54yhgc.js} +5 -5
- package/{scalar.command-zcsjgvax.js → scalar.command-t0akqh1r.js} +4 -4
- package/templates/app/main.ts +3 -1
- package/{workflow.command-jj0cphfm.js → workflow.command-se886yew.js} +9 -9
- package/{workspace.command-ma3g994j.js → workspace.command-q17atzha.js} +18 -18
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
RepairRunner
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-hpbf1b1e.js";
|
|
5
5
|
import {
|
|
6
6
|
WorkflowRunner
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-8xeg8ehr.js";
|
|
8
8
|
import {
|
|
9
9
|
ScalarScript
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-639mgtfm.js";
|
|
11
11
|
import {
|
|
12
12
|
PrimitiveScript
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-9ppq2sx0.js";
|
|
14
14
|
import {
|
|
15
15
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-d5ef8n21.js";
|
|
17
17
|
import {
|
|
18
18
|
isPlaceholderAppId
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-jbhecvr9.js";
|
|
20
20
|
import {
|
|
21
21
|
AkanContextAnalyzer,
|
|
22
22
|
akanMcpInstallConfigPaths,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
renderDoctorText,
|
|
28
28
|
resourceList,
|
|
29
29
|
upsertCodexMcpServerBlock
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-xda7qe2j.js";
|
|
31
31
|
import {
|
|
32
32
|
buildAkanModuleContextIndex,
|
|
33
33
|
createWorkflowBaselineSummary,
|
|
34
34
|
createWorkflowStepRegistry,
|
|
35
35
|
jsonText,
|
|
36
36
|
toolingRolloutGate
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-8vv6xtm5.js";
|
|
38
38
|
import {
|
|
39
39
|
Prompter
|
|
40
40
|
} from "./index-j37qq1f2.js";
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
CommandContainer,
|
|
46
46
|
runner,
|
|
47
47
|
script
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-1f34snpd.js";
|
|
49
49
|
import {
|
|
50
50
|
AppExecutor
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-w008bx1p.js";
|
|
52
52
|
|
|
53
53
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
54
54
|
import { Logger } from "akanjs/common";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AkanContextAnalyzer
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xda7qe2j.js";
|
|
5
5
|
import {
|
|
6
6
|
createRepairReport,
|
|
7
7
|
generatedFilePathsForTarget,
|
|
8
8
|
renderRepairReport,
|
|
9
9
|
writeGeneratedSyncState,
|
|
10
10
|
writeWorkflowRunArtifact
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-8vv6xtm5.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-1f34snpd.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
17
17
|
var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-1f34snpd.js";
|
|
6
6
|
import {
|
|
7
7
|
LibExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-w008bx1p.js";
|
|
9
9
|
|
|
10
10
|
// pkgs/@akanjs/cli/semver.ts
|
|
11
11
|
var stripRangeOperator = (version) => version.replace(/^[\s^~>=<v]+/, "").trim();
|
|
@@ -224,6 +224,7 @@ var DEFAULT_OPTIMIZE_IMPORTS = [
|
|
|
224
224
|
"react-icons/*"
|
|
225
225
|
];
|
|
226
226
|
var WORKSPACE_BARREL_FACETS = ["ui", "webkit", "common", "client", "server"];
|
|
227
|
+
var DEFAULT_DOCKER_IMAGE = "oven/bun:1-slim";
|
|
227
228
|
var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
|
|
228
229
|
var MOBILE_RUNTIME_PACKAGES = [
|
|
229
230
|
"@capacitor/cli",
|
|
@@ -314,12 +315,24 @@ var normalizeDeepLinks = (deepLinks) => {
|
|
|
314
315
|
...sha256CertFingerprints ? { android: { sha256CertFingerprints } } : {}
|
|
315
316
|
};
|
|
316
317
|
};
|
|
318
|
+
var emptyLibContributions = () => ({
|
|
319
|
+
externalLibs: [],
|
|
320
|
+
docker: { preRuns: [], postRuns: [] }
|
|
321
|
+
});
|
|
322
|
+
var dedupeDockerRuns = (runs) => {
|
|
323
|
+
const byKey = new Map;
|
|
324
|
+
for (const run of runs)
|
|
325
|
+
byKey.set(typeof run === "string" ? run : JSON.stringify(run), run);
|
|
326
|
+
return [...byKey.values()];
|
|
327
|
+
};
|
|
317
328
|
|
|
318
329
|
class AkanAppConfig {
|
|
319
330
|
app;
|
|
320
331
|
rootPackageJson;
|
|
321
332
|
docker;
|
|
333
|
+
dockerfile;
|
|
322
334
|
defaultDatabaseMode;
|
|
335
|
+
web;
|
|
323
336
|
externalLibs;
|
|
324
337
|
barrelImports;
|
|
325
338
|
optimizeImports;
|
|
@@ -337,7 +350,7 @@ class AkanAppConfig {
|
|
|
337
350
|
subRoutes = new Map;
|
|
338
351
|
basePaths = new Set;
|
|
339
352
|
branches = new Set(["debug", "develop", "main"]);
|
|
340
|
-
constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = [],
|
|
353
|
+
constructor(app, libs, rootPackageJson, config, baseDevEnv, plugins = [], libContributions = emptyLibContributions()) {
|
|
341
354
|
this.app = app;
|
|
342
355
|
this.rootPackageJson = rootPackageJson;
|
|
343
356
|
this.libs = libs;
|
|
@@ -345,7 +358,7 @@ class AkanAppConfig {
|
|
|
345
358
|
this.plugins = plugins;
|
|
346
359
|
this.#applyRoutes(config?.routes);
|
|
347
360
|
this.defaultDatabaseMode = config?.defaultDatabaseMode ?? "single";
|
|
348
|
-
this.externalLibs = [...new Set([...config?.externalLibs ?? [], ...
|
|
361
|
+
this.externalLibs = [...new Set([...config?.externalLibs ?? [], ...libContributions.externalLibs])];
|
|
349
362
|
this.barrelImports = [
|
|
350
363
|
...DEFAULT_BARREL_IMPORTS,
|
|
351
364
|
...WORKSPACE_BARREL_FACETS.map((facet) => `@apps/${app.name}/${facet}`),
|
|
@@ -362,7 +375,15 @@ class AkanAppConfig {
|
|
|
362
375
|
this.syncPageLibs = config?.syncPageLibs ?? false;
|
|
363
376
|
this.hasMobileConfig = Boolean(config.mobile);
|
|
364
377
|
this.mobile = this.#resolveMobileConfig(config.mobile);
|
|
365
|
-
this.
|
|
378
|
+
this.web = this.#resolveWebConfig(config.web);
|
|
379
|
+
this.docker = AkanAppConfig.#resolveDocker(config.docker, libContributions.docker);
|
|
380
|
+
this.dockerfile = this.#makeDockerfile();
|
|
381
|
+
}
|
|
382
|
+
#resolveWebConfig(web) {
|
|
383
|
+
const resolved = typeof web === "object" ? { ssr: true, csr: web.csr } : { ssr: web ?? true, csr: web ?? true };
|
|
384
|
+
if (!resolved.csr && this.hasMobileConfig)
|
|
385
|
+
throw new Error(`apps/${this.app.name}/akan.config.ts turns the CSR bundle off but declares mobile targets; the Capacitor build ships that bundle. Drop the mobile section or leave CSR on.`);
|
|
386
|
+
return resolved;
|
|
366
387
|
}
|
|
367
388
|
#resolveMobileConfig(mobile) {
|
|
368
389
|
const {
|
|
@@ -472,23 +493,31 @@ class AkanAppConfig {
|
|
|
472
493
|
return archs.map((arch) => `FROM ${image[arch] ?? defaultImage} AS ${arch}`).join(`
|
|
473
494
|
`);
|
|
474
495
|
}
|
|
475
|
-
#
|
|
476
|
-
if (docker
|
|
477
|
-
return
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
const
|
|
496
|
+
static #resolveDocker(docker, libDocker) {
|
|
497
|
+
if (typeof docker === "string")
|
|
498
|
+
return docker;
|
|
499
|
+
return {
|
|
500
|
+
image: docker?.image ?? DEFAULT_DOCKER_IMAGE,
|
|
501
|
+
preRuns: dedupeDockerRuns([...libDocker.preRuns, ...docker?.preRuns ?? []]),
|
|
502
|
+
postRuns: dedupeDockerRuns([...libDocker.postRuns, ...docker?.postRuns ?? []]),
|
|
503
|
+
command: docker?.command ?? ["bun", "main.js"]
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
#makeDockerfile() {
|
|
507
|
+
if (typeof this.docker === "string")
|
|
508
|
+
return this.docker;
|
|
509
|
+
const { image, preRuns, postRuns, command } = this.docker;
|
|
510
|
+
const preRunScripts = this.#getDockerRunScripts(preRuns);
|
|
511
|
+
const postRunScripts = this.#getDockerRunScripts(postRuns);
|
|
512
|
+
const imageScript = this.#getDockerImageScript(image, DEFAULT_DOCKER_IMAGE);
|
|
513
|
+
const webEnvLines = [
|
|
514
|
+
...this.web.ssr ? [] : ["ENV AKAN_SSR=false"],
|
|
515
|
+
...this.web.csr ? [] : ["ENV AKAN_CSR=false"]
|
|
516
|
+
].join(`
|
|
517
|
+
`);
|
|
518
|
+
return `${imageScript}
|
|
519
|
+
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
|
|
489
520
|
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
490
|
-
RUN apt-get update && apt-get upgrade -y
|
|
491
|
-
RUN apt-get install -y --no-install-recommends git redis build-essential python3 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils udev ffmpeg
|
|
492
521
|
ARG TARGETARCH
|
|
493
522
|
${preRunScripts.join(`
|
|
494
523
|
`)}
|
|
@@ -509,15 +538,8 @@ ${this.basePaths.size ? `ENV AKAN_PUBLIC_BASE_PATHS=${[...this.basePaths].join("
|
|
|
509
538
|
ENV AKAN_PUBLIC_DEFAULT_LOCALE=${this.i18n.defaultLocale}
|
|
510
539
|
ENV AKAN_PUBLIC_LOCALES=${this.i18n.locales.join(",")}
|
|
511
540
|
ENV AKAN_PUBLIC_OPERATION_MODE=cloud
|
|
512
|
-
|
|
541
|
+
${webEnvLines}
|
|
513
542
|
CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
514
|
-
return {
|
|
515
|
-
content,
|
|
516
|
-
image: imageScript,
|
|
517
|
-
preRuns: docker.preRuns ?? [],
|
|
518
|
-
postRuns: docker.postRuns ?? [],
|
|
519
|
-
command
|
|
520
|
-
};
|
|
521
543
|
}
|
|
522
544
|
static #importGeneration = 0;
|
|
523
545
|
static async importConfigModule(cwdPath, { bustImportCache = false } = {}) {
|
|
@@ -534,15 +556,21 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
|
534
556
|
]);
|
|
535
557
|
const resolved = typeof configImp === "function" ? configImp(app) : configImp;
|
|
536
558
|
const { plugins, ...config } = resolved ?? {};
|
|
537
|
-
const
|
|
538
|
-
return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [],
|
|
559
|
+
const libContributions = await AkanAppConfig.#collectLibContributions(app, libs, bustImportCache);
|
|
560
|
+
return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
|
|
539
561
|
}
|
|
540
|
-
static async#
|
|
562
|
+
static async#collectLibContributions(app, libs, bustImportCache) {
|
|
541
563
|
const libConfigs = await Promise.all(libs.map(async (libName) => LibExecutor.from(app, libName).getConfig({ refresh: bustImportCache }).catch((error) => {
|
|
542
|
-
app.logger.warn(`Skipped libs/${libName}/akan.config.ts
|
|
564
|
+
app.logger.warn(`Skipped libs/${libName}/akan.config.ts contributions: ${String(error)}`);
|
|
543
565
|
return null;
|
|
544
566
|
})));
|
|
545
|
-
return
|
|
567
|
+
return {
|
|
568
|
+
externalLibs: libConfigs.flatMap((libConfig) => libConfig?.externalLibs ?? []),
|
|
569
|
+
docker: {
|
|
570
|
+
preRuns: libConfigs.flatMap((libConfig) => libConfig?.docker.preRuns ?? []),
|
|
571
|
+
postRuns: libConfigs.flatMap((libConfig) => libConfig?.docker.postRuns ?? [])
|
|
572
|
+
}
|
|
573
|
+
};
|
|
546
574
|
}
|
|
547
575
|
#resolveProductionDependencyVersion(lib) {
|
|
548
576
|
const rootVersion = this.rootPackageJson.dependencies?.[lib] ?? this.rootPackageJson.devDependencies?.[lib];
|
|
@@ -640,10 +668,12 @@ function mergeImageConfig(config = {}) {
|
|
|
640
668
|
class AkanLibConfig {
|
|
641
669
|
lib;
|
|
642
670
|
externalLibs;
|
|
671
|
+
docker;
|
|
643
672
|
plugins;
|
|
644
673
|
constructor(lib, config, plugins = []) {
|
|
645
674
|
this.lib = lib;
|
|
646
675
|
this.externalLibs = config?.externalLibs ?? [];
|
|
676
|
+
this.docker = { preRuns: config?.docker?.preRuns ?? [], postRuns: config?.docker?.postRuns ?? [] };
|
|
647
677
|
this.plugins = plugins;
|
|
648
678
|
}
|
|
649
679
|
static async from(lib, { bustImportCache = false } = {}) {
|
|
@@ -1291,12 +1321,11 @@ class ScanInfo {
|
|
|
1291
1321
|
})
|
|
1292
1322
|
]);
|
|
1293
1323
|
const routes = exec.type === "lib" ? [] : await exec.getPageKeys();
|
|
1294
|
-
const
|
|
1324
|
+
const common = {
|
|
1295
1325
|
name: exec.name,
|
|
1296
1326
|
type: exec.type,
|
|
1297
1327
|
repoName: exec.workspace.repoName,
|
|
1298
1328
|
serveDomain: WorkspaceExecutor.getBaseDevEnv(path4.join(exec.workspace.workspaceRoot, ".env")).serveDomain,
|
|
1299
|
-
akanConfig: akanConfig2,
|
|
1300
1329
|
files,
|
|
1301
1330
|
libDeps,
|
|
1302
1331
|
pkgDeps,
|
|
@@ -1304,6 +1333,7 @@ class ScanInfo {
|
|
|
1304
1333
|
devDependencies: npmDevDeps.filter((dep) => !isAkanFrameworkDependency(dep)),
|
|
1305
1334
|
routes
|
|
1306
1335
|
};
|
|
1336
|
+
const scanResult = akanConfig2 instanceof AkanAppConfig ? { ...common, akanConfig: akanConfig2 } : { ...common, akanConfig: akanConfig2 };
|
|
1307
1337
|
return scanResult;
|
|
1308
1338
|
}
|
|
1309
1339
|
constructor(scanResult) {
|
|
@@ -2656,10 +2686,13 @@ class AppExecutor extends SysExecutor {
|
|
|
2656
2686
|
await Promise.all([this.dist.mkdir("private"), this.dist.mkdir("public")]);
|
|
2657
2687
|
await Promise.all([
|
|
2658
2688
|
this.cp("private", `${this.dist.cwdPath}/private`, { dereference: true }),
|
|
2659
|
-
this.cp("public", `${this.dist.cwdPath}/public`, { dereference: true })
|
|
2689
|
+
...akanConfig2.web.ssr ? [this.cp("public", `${this.dist.cwdPath}/public`, { dereference: true })] : []
|
|
2660
2690
|
]);
|
|
2661
|
-
} else
|
|
2691
|
+
} else {
|
|
2662
2692
|
await this.removeDir(".akan");
|
|
2693
|
+
if (!akanConfig2.web.ssr || !akanConfig2.web.csr)
|
|
2694
|
+
this.logger.warn(`akan.config.ts disables web.${!akanConfig2.web.ssr ? "ssr" : "csr"}; \`akan start\` still serves it, \`akan build\` will not`);
|
|
2695
|
+
}
|
|
2663
2696
|
if (type === "start")
|
|
2664
2697
|
process.env.NODE_ENV = "development";
|
|
2665
2698
|
const devPort = type === "start" ? (await this.getDevPort()).toString() : undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
workflowRunArtifactPath,
|
|
4
4
|
workflowSyncDir
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-8vv6xtm5.js";
|
|
6
6
|
import {
|
|
7
7
|
AppExecutor,
|
|
8
8
|
LibExecutor,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
readDevkitVersion,
|
|
12
12
|
rootAllowedDirs,
|
|
13
13
|
rootAllowedFiles
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-w008bx1p.js";
|
|
15
15
|
import {
|
|
16
16
|
collectRecipeSources,
|
|
17
17
|
findInlineRecipeDuplicates,
|
|
@@ -1976,6 +1976,7 @@ class SsrBaseArtifactBuilder {
|
|
|
1976
1976
|
branches: [...akanConfig.branches],
|
|
1977
1977
|
i18n: akanConfig.i18n,
|
|
1978
1978
|
imageConfig: akanConfig.images,
|
|
1979
|
+
web: akanConfig.web,
|
|
1979
1980
|
deepLinkAssociations: Object.values(akanConfig.mobile.targets).filter((target) => (target.deepLinks?.domains?.length ?? 0) > 0).map((target) => ({
|
|
1980
1981
|
targetName: target.name,
|
|
1981
1982
|
appId: target.appId,
|
package/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getTargetCommandNames,
|
|
5
5
|
getTargetMetas,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-1f34snpd.js";
|
|
8
|
+
import"./index-w008bx1p.js";
|
|
9
9
|
import"./index-f39512t6.js";
|
|
10
10
|
import"./index-mxvakhsm.js";
|
|
11
11
|
import"./index-1577bej2.js";
|
|
@@ -19,22 +19,22 @@ import path from "path";
|
|
|
19
19
|
|
|
20
20
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
21
21
|
var commandModules = {
|
|
22
|
-
workspace: async () => (await import("./workspace.command-
|
|
23
|
-
agent: async () => (await import("./agent.command-
|
|
24
|
-
application: async () => (await import("./application.command-
|
|
25
|
-
library: async () => (await import("./library.command-
|
|
26
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
27
|
-
package: async () => (await import("./package.command-
|
|
28
|
-
module: async () => (await import("./module.command-
|
|
29
|
-
page: async () => (await import("./page.command-
|
|
30
|
-
context: async () => (await import("./context.command-
|
|
31
|
-
cloud: async () => (await import("./cloud.command-
|
|
32
|
-
guideline: async () => (await import("./guideline.command-
|
|
33
|
-
scalar: async () => (await import("./scalar.command-
|
|
34
|
-
primitive: async () => (await import("./primitive.command-
|
|
35
|
-
quality: async () => (await import("./quality.command-
|
|
36
|
-
repair: async () => (await import("./repair.command-
|
|
37
|
-
workflow: async () => (await import("./workflow.command-
|
|
22
|
+
workspace: async () => (await import("./workspace.command-q17atzha.js")).WorkspaceCommand,
|
|
23
|
+
agent: async () => (await import("./agent.command-7vr15vkn.js")).AgentCommand,
|
|
24
|
+
application: async () => (await import("./application.command-nrq6qvkh.js")).ApplicationCommand,
|
|
25
|
+
library: async () => (await import("./library.command-afjd6ex4.js")).LibraryCommand,
|
|
26
|
+
localRegistry: async () => (await import("./localRegistry.command-6zadvx6z.js")).LocalRegistryCommand,
|
|
27
|
+
package: async () => (await import("./package.command-g4s1y1wn.js")).PackageCommand,
|
|
28
|
+
module: async () => (await import("./module.command-rh01pbz3.js")).ModuleCommand,
|
|
29
|
+
page: async () => (await import("./page.command-9bw6sz1r.js")).PageCommand,
|
|
30
|
+
context: async () => (await import("./context.command-xbsgta4f.js")).ContextCommand,
|
|
31
|
+
cloud: async () => (await import("./cloud.command-crwf7emx.js")).CloudCommand,
|
|
32
|
+
guideline: async () => (await import("./guideline.command-mm19n009.js")).GuidelineCommand,
|
|
33
|
+
scalar: async () => (await import("./scalar.command-t0akqh1r.js")).ScalarCommand,
|
|
34
|
+
primitive: async () => (await import("./primitive.command-pg1j3gm3.js")).PrimitiveCommand,
|
|
35
|
+
quality: async () => (await import("./quality.command-rt1z7je9.js")).QualityCommand,
|
|
36
|
+
repair: async () => (await import("./repair.command-pg54yhgc.js")).RepairCommand,
|
|
37
|
+
workflow: async () => (await import("./workflow.command-se886yew.js")).WorkflowCommand
|
|
38
38
|
};
|
|
39
39
|
var commandModuleIds = Object.keys(commandModules);
|
|
40
40
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
LibraryScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-k8k45qfk.js";
|
|
5
5
|
import {
|
|
6
6
|
Lib,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1f34snpd.js";
|
|
10
|
+
import"./index-w008bx1p.js";
|
|
11
11
|
import"./index-f39512t6.js";
|
|
12
12
|
import"./index-mxvakhsm.js";
|
|
13
13
|
import"./index-1577bej2.js";
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CloudRunner,
|
|
4
4
|
getNpmRegistryUrl
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-cnyeq88g.js";
|
|
6
6
|
import {
|
|
7
7
|
PackageScript
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-6s8snbb8.js";
|
|
9
9
|
import"./index-sh01r3pm.js";
|
|
10
10
|
import {
|
|
11
11
|
ApplicationScript
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-a6k0b1b5.js";
|
|
13
|
+
import"./index-k8k45qfk.js";
|
|
14
14
|
import"./index-76rn3g2c.js";
|
|
15
15
|
import {
|
|
16
16
|
Workspace,
|
|
17
17
|
command,
|
|
18
18
|
runner,
|
|
19
19
|
script
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-1f34snpd.js";
|
|
21
21
|
import"./index-fgc8r6dj.js";
|
|
22
22
|
import"./index-5vy2jzar.js";
|
|
23
23
|
import {
|
|
24
24
|
PkgExecutor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-w008bx1p.js";
|
|
26
26
|
import"./index-f39512t6.js";
|
|
27
27
|
import"./index-mxvakhsm.js";
|
|
28
28
|
import"./index-1577bej2.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ModuleScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-d5ef8n21.js";
|
|
5
5
|
import"./index-ss469dec.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-7kxz2z5t.js";
|
|
7
7
|
import"./index-sh01r3pm.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-8vv6xtm5.js";
|
|
11
11
|
import"./index-j37qq1f2.js";
|
|
12
12
|
import {
|
|
13
13
|
Module,
|
|
14
14
|
Sys,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-1f34snpd.js";
|
|
17
|
+
import"./index-w008bx1p.js";
|
|
18
18
|
import"./index-f39512t6.js";
|
|
19
19
|
import"./index-mxvakhsm.js";
|
|
20
20
|
import"./index-1577bej2.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PackageScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-6s8snbb8.js";
|
|
5
5
|
import {
|
|
6
6
|
Pkg,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1f34snpd.js";
|
|
10
|
+
import"./index-w008bx1p.js";
|
|
11
11
|
import"./index-f39512t6.js";
|
|
12
12
|
import"./index-mxvakhsm.js";
|
|
13
13
|
import"./index-1577bej2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.66",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@langchain/openai": "^1.4.6",
|
|
35
35
|
"@tailwindcss/node": "^4.3.0",
|
|
36
36
|
"@trapezedev/project": "^7.1.4",
|
|
37
|
-
"akanjs": "3.0.0-alpha.
|
|
37
|
+
"akanjs": "3.0.0-alpha.66",
|
|
38
38
|
"chalk": "^5.6.2",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"dayjs": "^1.11.20",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PageScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-7kxz2z5t.js";
|
|
5
5
|
import {
|
|
6
6
|
App,
|
|
7
7
|
Module,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1f34snpd.js";
|
|
10
|
+
import"./index-w008bx1p.js";
|
|
11
11
|
import"./index-f39512t6.js";
|
|
12
12
|
import"./index-mxvakhsm.js";
|
|
13
13
|
import"./index-1577bej2.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PrimitiveScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-9ppq2sx0.js";
|
|
5
|
+
import"./index-d5ef8n21.js";
|
|
6
6
|
import"./index-ss469dec.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-7kxz2z5t.js";
|
|
8
8
|
import"./index-sh01r3pm.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-8vv6xtm5.js";
|
|
12
12
|
import"./index-j37qq1f2.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-1f34snpd.js";
|
|
17
|
+
import"./index-w008bx1p.js";
|
|
18
18
|
import"./index-f39512t6.js";
|
|
19
19
|
import"./index-mxvakhsm.js";
|
|
20
20
|
import"./index-1577bej2.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
command,
|
|
8
8
|
runner,
|
|
9
9
|
script
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-1f34snpd.js";
|
|
11
11
|
import {
|
|
12
12
|
isAllowedLibFacetRootFile,
|
|
13
13
|
rootAllowedDirs,
|
|
14
14
|
rootAllowedFiles
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-w008bx1p.js";
|
|
16
16
|
import"./index-f39512t6.js";
|
|
17
17
|
import"./index-mxvakhsm.js";
|
|
18
18
|
import"./index-1577bej2.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
RepairRunner
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-hpbf1b1e.js";
|
|
5
|
+
import"./index-xda7qe2j.js";
|
|
6
|
+
import"./index-8vv6xtm5.js";
|
|
7
7
|
import {
|
|
8
8
|
Workspace,
|
|
9
9
|
command,
|
|
10
10
|
script
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-1f34snpd.js";
|
|
12
|
+
import"./index-w008bx1p.js";
|
|
13
13
|
import"./index-f39512t6.js";
|
|
14
14
|
import"./index-mxvakhsm.js";
|
|
15
15
|
import"./index-xys926f2.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ScalarScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-639mgtfm.js";
|
|
5
5
|
import"./index-ss469dec.js";
|
|
6
6
|
import"./index-sh01r3pm.js";
|
|
7
7
|
import {
|
|
8
8
|
renderPrimitiveReport
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-8vv6xtm5.js";
|
|
10
10
|
import"./index-j37qq1f2.js";
|
|
11
11
|
import {
|
|
12
12
|
Sys,
|
|
13
13
|
command
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
} from "./index-1f34snpd.js";
|
|
15
|
+
import"./index-w008bx1p.js";
|
|
16
16
|
import"./index-f39512t6.js";
|
|
17
17
|
import"./index-mxvakhsm.js";
|
|
18
18
|
import"./index-1577bej2.js";
|
package/templates/app/main.ts
CHANGED
|
@@ -5,7 +5,9 @@ interface Dict {
|
|
|
5
5
|
}
|
|
6
6
|
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
|
|
7
7
|
return `
|
|
8
|
-
|
|
8
|
+
// Not the \`akanjs/server\` barrel: it re-exports AkanServer, whose graph the gateway never runs. Through the
|
|
9
|
+
// barrel this process evaluates 35MB of SSR renderer and DB driver to spawn children and relay bytes.
|
|
10
|
+
import { AkanApp } from "akanjs/server/akanApp";
|
|
9
11
|
|
|
10
12
|
const run = async () => {
|
|
11
13
|
await new AkanApp().start();
|