@akanjs/cli 3.2.0-rc.12 → 3.2.0-rc.14
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-cr8pvdmv.js → CodeAgent-yd1f54yf.js} +2 -2
- package/{CodeTui-89ssa9rr.js → CodeTui-h7mksphk.js} +1 -1
- package/TunnelShare-hrjed2jf.js +19 -0
- package/{agent.command-rp9hpf0v.js → agent.command-hrc2dfas.js} +19 -15
- package/akanCode.js +2 -2
- package/appExecutor-0ssszyhf.js +11 -0
- package/{application.command-fydjdvce.js → application.command-b2194cpv.js} +15 -11
- package/{applicationBuildRunner-68sph7t4.js → applicationBuildRunner-gg03kydg.js} +12 -8
- package/buildBatch.proc.js +14 -9
- package/{cloud.command-0y1gg3sb.js → cloud.command-d8ps1564.js} +20 -16
- package/cloud.script-7j7w4m0w.js +35 -0
- package/{code.command-63fcz7a3.js → code.command-6h6jr0s7.js} +10 -6
- package/{context.command-pgwcx0na.js → context.command-t8akxhny.js} +20 -16
- package/context.runner-eawk1n8e.js +34 -0
- package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
- package/guidelines/agentRule/agentRule.instruction.md +12 -2
- package/guidelines/akanApi/akanApi.instruction.md +1 -1
- package/guidelines/pageRule/pageRule.instruction.md +6 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
- package/incrementalBuilder.proc.js +12 -7
- package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
- package/index-1jzdengt.js +30 -0
- package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
- package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
- package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
- package/{index-h0s3cjm0.js → index-3fn13v8p.js} +4 -4
- package/{index-axe04yqm.js → index-3fpv5v0t.js} +15 -11
- package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
- package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
- package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
- package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
- package/{index-qwzwzmvf.js → index-71z3pdsn.js} +4 -4
- package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
- package/{index-cqrndcq0.js → index-8rmg8c0y.js} +3 -3
- package/{index-s0w78805.js → index-9w51aevd.js} +1 -1
- package/{index-bmscnt1t.js → index-9yfssbgg.js} +25 -19
- package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
- package/index-b3h37zk3.js +787 -0
- package/{index-wm4385pm.js → index-bb7cm060.js} +10 -10
- package/{index-6r5f768n.js → index-c0rnjeqn.js} +11 -9
- package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
- package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
- package/{index-ahk6rvth.js → index-e599a0e4.js} +1 -1
- package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
- package/{index-3m2cd8mm.js → index-g2ebpf0y.js} +6 -6
- package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
- package/{index-cswgczrv.js → index-hg8s6nae.js} +9 -9
- package/{index-pcprf7ft.js → index-hpe12v1h.js} +1 -1
- package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
- package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
- package/{index-mmgtnh44.js → index-k081wv4r.js} +1428 -1106
- package/{index-bgp0h8rx.js → index-nx4q5rey.js} +3 -3
- package/index-rx8r0cbe.js +18 -0
- package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
- package/{index-6js9ek5c.js → index-vy50ec2q.js} +2 -2
- package/index-x2bj2vyz.js +127 -0
- package/{index-wpgtyek3.js → index-xb1yh9km.js} +1 -1
- package/{index-70jkxbf6.js → index-xjj0h74q.js} +2 -2
- package/index.js +27 -23
- package/libExecutor-ex8jqksz.js +10 -0
- package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
- package/{localRegistry.command-yz150pcw.js → localRegistry.command-zz64k5vy.js} +23 -18
- package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
- package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
- package/package.json +2 -2
- package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
- package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
- package/pkgExecutor-d16x1xcb.js +10 -0
- package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
- package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
- package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
- package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
- package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
- package/{subspace.command-ykxertx8.js → subspace.command-d8t8geyv.js} +17 -12
- package/{tunnel.command-qbcbj0vq.js → tunnel.command-mhm64m9n.js} +15 -11
- package/{verify.command-gvveq05z.js → verify.command-j4he0fbx.js} +16 -12
- package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
- package/{workspace.command-jm7emxjh.js → workspace.command-pkpawft5.js} +47 -41
- package/TunnelShare-ndb5cts1.js +0 -15
- package/cloud.script-ewk72b3g.js +0 -31
- package/context.runner-5s2ytkjj.js +0 -30
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
SOURCE_EXTS,
|
|
7
7
|
WatchRootResolver
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-66jt3m30.js";
|
|
9
9
|
import {
|
|
10
10
|
loaderFor,
|
|
11
11
|
BarrelAnalyzer,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
CsrDevPaths,
|
|
22
22
|
PagesEntrySourceGenerator,
|
|
23
23
|
PagesBundleBuilder
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-xb1yh9km.js";
|
|
25
25
|
import {
|
|
26
26
|
AsyncDefaultExportDetector,
|
|
27
27
|
StoreBootstrap,
|
|
28
28
|
resolveSsrPageEntriesForApp
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-b3h37zk3.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/devkit/frontendBuild/autoImportSync.ts
|
|
32
32
|
import { readdir, readFile, stat } from "fs/promises";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
execEmoji,
|
|
4
|
+
Executor
|
|
5
|
+
} from "./index-crtscw7c.js";
|
|
6
|
+
// pkgs/@akanjs/devkit/executors/moduleExecutor.ts
|
|
7
|
+
class ModuleExecutor extends Executor {
|
|
8
|
+
sys;
|
|
9
|
+
emoji = execEmoji.module;
|
|
10
|
+
constructor({ sys, name }) {
|
|
11
|
+
super(name, `${sys.workspace.workspaceRoot}/${sys.type}s/${sys.name}/lib/${name}`);
|
|
12
|
+
this.sys = sys;
|
|
13
|
+
}
|
|
14
|
+
static from(sysExecutor, name) {
|
|
15
|
+
return new ModuleExecutor({ sys: sysExecutor, name });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export { ModuleExecutor };
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-66jt3m30.js";
|
|
5
5
|
import {
|
|
6
6
|
parseBiomeReport,
|
|
7
7
|
Linter,
|
|
8
|
-
ProjectTypecheck2
|
|
9
|
-
|
|
10
|
-
LibExecutor,
|
|
11
|
-
PkgExecutor
|
|
12
|
-
} from "./index-sq9d0jhj.js";
|
|
8
|
+
ProjectTypecheck2
|
|
9
|
+
} from "./index-crtscw7c.js";
|
|
13
10
|
import {
|
|
14
11
|
TypecheckFailure
|
|
15
12
|
} from "./index-j4yvgfhr.js";
|
|
13
|
+
import {
|
|
14
|
+
AppExecutor2
|
|
15
|
+
} from "./index-b3h37zk3.js";
|
|
16
|
+
import {
|
|
17
|
+
LibExecutor2
|
|
18
|
+
} from "./index-1jzdengt.js";
|
|
19
|
+
import {
|
|
20
|
+
PkgExecutor2
|
|
21
|
+
} from "./index-x2bj2vyz.js";
|
|
16
22
|
import {
|
|
17
23
|
WorkspaceRunner,
|
|
18
24
|
AkanQualityScanner
|
|
19
|
-
} from "./index-
|
|
25
|
+
} from "./index-c4k6e098.js";
|
|
20
26
|
|
|
21
27
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
22
28
|
import { existsSync } from "fs";
|
|
@@ -629,9 +635,9 @@ class VerifyPipeline {
|
|
|
629
635
|
}
|
|
630
636
|
async#sync(target) {
|
|
631
637
|
if (target.type === "app")
|
|
632
|
-
await
|
|
638
|
+
await AppExecutor2.from(this.#workspace, target.name).scanSync();
|
|
633
639
|
else
|
|
634
|
-
await
|
|
640
|
+
await LibExecutor2.from(this.#workspace, target.name).scan();
|
|
635
641
|
return { diagnostics: [] };
|
|
636
642
|
}
|
|
637
643
|
async#lint(target, { comments, rewritten }) {
|
|
@@ -696,12 +702,12 @@ class VerifyPipeline {
|
|
|
696
702
|
async#typecheck(target) {
|
|
697
703
|
try {
|
|
698
704
|
if (target.type === "app")
|
|
699
|
-
await this.#applicationRunner.typecheck(
|
|
705
|
+
await this.#applicationRunner.typecheck(AppExecutor2.from(this.#workspace, target.name), {
|
|
700
706
|
tests: true,
|
|
701
707
|
report: "records"
|
|
702
708
|
});
|
|
703
709
|
else if (target.type === "lib")
|
|
704
|
-
await this.#applicationRunner.typecheckLibrary(
|
|
710
|
+
await this.#applicationRunner.typecheckLibrary(LibExecutor2.from(this.#workspace, target.name), {
|
|
705
711
|
tests: true,
|
|
706
712
|
report: "records"
|
|
707
713
|
});
|
|
@@ -719,7 +725,7 @@ class VerifyPipeline {
|
|
|
719
725
|
}
|
|
720
726
|
}
|
|
721
727
|
async#build(target) {
|
|
722
|
-
const { routeJsWarnings = [] } = await this.#applicationRunner.build(
|
|
728
|
+
const { routeJsWarnings = [] } = await this.#applicationRunner.build(AppExecutor2.from(this.#workspace, target.name), { fast: true });
|
|
723
729
|
return { diagnostics: routeJsWarnings.map((warning) => VerifyDiagnostics.fromRouteJsBudget(warning)) };
|
|
724
730
|
}
|
|
725
731
|
async#ssr(scope) {
|
|
@@ -729,10 +735,10 @@ class VerifyPipeline {
|
|
|
729
735
|
}
|
|
730
736
|
#execOf(target) {
|
|
731
737
|
if (target.type === "app")
|
|
732
|
-
return
|
|
738
|
+
return AppExecutor2.from(this.#workspace, target.name);
|
|
733
739
|
if (target.type === "lib")
|
|
734
|
-
return
|
|
735
|
-
return
|
|
740
|
+
return LibExecutor2.from(this.#workspace, target.name);
|
|
741
|
+
return PkgExecutor2.from(this.#workspace, target.name);
|
|
736
742
|
}
|
|
737
743
|
}
|
|
738
744
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-b3h37zk3.js";
|
|
5
5
|
import {
|
|
6
6
|
createBarrelImportsPlugin,
|
|
7
7
|
workspaceBarrels,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CsrEntryFiles,
|
|
11
11
|
PagesEntrySourceGenerator,
|
|
12
12
|
PagesBundleBuilder
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-xb1yh9km.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
16
16
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
execEmoji,
|
|
4
|
+
Executor,
|
|
5
|
+
PkgInfo,
|
|
6
|
+
WorkspaceExecutor
|
|
7
|
+
} from "./index-crtscw7c.js";
|
|
8
|
+
|
|
9
|
+
// pkgs/@akanjs/devkit/executors/pkgExecutor.ts
|
|
10
|
+
import path from "path";
|
|
11
|
+
class PkgExecutor2 extends Executor {
|
|
12
|
+
workspace;
|
|
13
|
+
name;
|
|
14
|
+
dist;
|
|
15
|
+
emoji = execEmoji.pkg;
|
|
16
|
+
constructor({ workspace = WorkspaceExecutor.fromRoot(), name }) {
|
|
17
|
+
super(name, `${workspace.workspaceRoot}/pkgs/${name}`);
|
|
18
|
+
this.workspace = workspace;
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.dist = new Executor(`dist/${name}`, `${this.workspace.workspaceRoot}/dist/pkgs/${name}`);
|
|
21
|
+
}
|
|
22
|
+
static from(executor, name) {
|
|
23
|
+
return new PkgExecutor2({ workspace: executor instanceof WorkspaceExecutor ? executor : executor.workspace, name });
|
|
24
|
+
}
|
|
25
|
+
#scanInfo = null;
|
|
26
|
+
async scan({ refresh } = {}) {
|
|
27
|
+
if (this.#scanInfo && !refresh)
|
|
28
|
+
return this.#scanInfo;
|
|
29
|
+
const scanInfo = await PkgInfo.fromExecutor(this, { refresh });
|
|
30
|
+
this.#scanInfo = scanInfo;
|
|
31
|
+
return scanInfo;
|
|
32
|
+
}
|
|
33
|
+
async#getDependencyVersion(rootPackageJson, dep) {
|
|
34
|
+
const rootDeps = {
|
|
35
|
+
...rootPackageJson.dependencies,
|
|
36
|
+
...rootPackageJson.devDependencies
|
|
37
|
+
};
|
|
38
|
+
const rootVersion = rootDeps[dep];
|
|
39
|
+
if (rootVersion)
|
|
40
|
+
return rootVersion;
|
|
41
|
+
const overrideVersion = rootPackageJson.overrides?.[dep];
|
|
42
|
+
if (typeof overrideVersion === "string")
|
|
43
|
+
return overrideVersion;
|
|
44
|
+
try {
|
|
45
|
+
const packageJsonPath = `pkgs/${dep}/package.json`;
|
|
46
|
+
if (!await Bun.file(path.join(this.workspace.workspaceRoot, packageJsonPath)).exists())
|
|
47
|
+
return;
|
|
48
|
+
const packageJson = await this.workspace.readJson(packageJsonPath);
|
|
49
|
+
if (packageJson.name === dep)
|
|
50
|
+
return packageJson.version;
|
|
51
|
+
} catch {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async#toDependencyMap(rootPackageJson, dependencies = [], devDependencies = []) {
|
|
56
|
+
const dependencyNames = [...new Set(dependencies)].sort();
|
|
57
|
+
const devDependencyNames = [...new Set(devDependencies)].filter((dep) => !dependencyNames.includes(dep)).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
58
|
+
const dependencyVersions = new Map;
|
|
59
|
+
const missingDeps = [];
|
|
60
|
+
for (const dep of [...dependencyNames, ...devDependencyNames]) {
|
|
61
|
+
const version = await this.#getDependencyVersion(rootPackageJson, dep);
|
|
62
|
+
if (version)
|
|
63
|
+
dependencyVersions.set(dep, version);
|
|
64
|
+
else
|
|
65
|
+
missingDeps.push(dep);
|
|
66
|
+
}
|
|
67
|
+
if (missingDeps.length > 0)
|
|
68
|
+
throw new Error(`Missing dependency versions in root package.json: ${missingDeps.join(", ")}`);
|
|
69
|
+
const toDependencyMap = (names) => Object.fromEntries(names.map((dep) => [dep, dependencyVersions.get(dep)]));
|
|
70
|
+
return { dependencies: toDependencyMap(dependencyNames), devDependencies: toDependencyMap(devDependencyNames) };
|
|
71
|
+
}
|
|
72
|
+
async updatePackageJsonDependencies(dependencies = [], devDependencies = []) {
|
|
73
|
+
const [rootPackageJson, pkgJson] = await Promise.all([this.workspace.getPackageJson(), this.getPackageJson()]);
|
|
74
|
+
const dependencyMaps = await this.#toDependencyMap(rootPackageJson, dependencies, devDependencies);
|
|
75
|
+
const newPkgJson = {
|
|
76
|
+
...pkgJson,
|
|
77
|
+
...dependencyMaps
|
|
78
|
+
};
|
|
79
|
+
await this.writeJson("package.json", newPkgJson);
|
|
80
|
+
return newPkgJson;
|
|
81
|
+
}
|
|
82
|
+
async generateDistPackageJson(dependencies = [], devDependencies = []) {
|
|
83
|
+
const [rootPackageJson, pkgJson] = await Promise.all([this.workspace.getPackageJson(), this.getPackageJson()]);
|
|
84
|
+
const dependencyMaps = await this.#toDependencyMap(rootPackageJson, dependencies, devDependencies);
|
|
85
|
+
const distPkgJson = {
|
|
86
|
+
...pkgJson,
|
|
87
|
+
type: "module",
|
|
88
|
+
exports: {
|
|
89
|
+
...pkgJson.exports,
|
|
90
|
+
".": {
|
|
91
|
+
import: "./index.ts",
|
|
92
|
+
types: "./index.ts",
|
|
93
|
+
default: "./index.ts"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
engines: { bun: ">=1.4.4" },
|
|
97
|
+
...dependencyMaps
|
|
98
|
+
};
|
|
99
|
+
await Promise.all([this.dist.writeJson("package.json", distPkgJson), this.writeJson("package.json", distPkgJson)]);
|
|
100
|
+
return distPkgJson;
|
|
101
|
+
}
|
|
102
|
+
async build() {
|
|
103
|
+
await Bun.build({
|
|
104
|
+
root: this.cwdPath,
|
|
105
|
+
entrypoints: [`${this.cwdPath}/index.ts`],
|
|
106
|
+
splitting: false,
|
|
107
|
+
target: "bun"
|
|
108
|
+
});
|
|
109
|
+
await this.cp(`${this.cwdPath}/dist`, this.dist.cwdPath);
|
|
110
|
+
}
|
|
111
|
+
async generateTsconfigJson() {
|
|
112
|
+
const [rootTsconfig, pkgTsconfig] = await Promise.all([this.workspace.getTsConfig(), this.getTsConfig()]);
|
|
113
|
+
const tsconfig = {
|
|
114
|
+
...rootTsconfig,
|
|
115
|
+
...pkgTsconfig,
|
|
116
|
+
compilerOptions: {
|
|
117
|
+
...rootTsconfig.compilerOptions,
|
|
118
|
+
...pkgTsconfig.compilerOptions,
|
|
119
|
+
paths: {}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
await this.dist.writeJson("tsconfig.json", tsconfig);
|
|
123
|
+
return tsconfig;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { PkgExecutor2 };
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
UpdatePackFolder,
|
|
10
10
|
NativePublicEnv,
|
|
11
11
|
NativeApp
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-g2ebpf0y.js";
|
|
13
13
|
import {
|
|
14
14
|
ExitCodeError
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-3gmskeq2.js";
|
|
16
16
|
import {
|
|
17
17
|
ConfigLock
|
|
18
18
|
} from "./index-bqbf654f.js";
|
package/index.js
CHANGED
|
@@ -4,10 +4,14 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-crtscw7c.js";
|
|
11
|
+
import"./index-b3h37zk3.js";
|
|
12
|
+
import"./index-1jzdengt.js";
|
|
13
|
+
import"./index-x2bj2vyz.js";
|
|
14
|
+
import"./index-rx8r0cbe.js";
|
|
11
15
|
|
|
12
16
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
13
17
|
class BunVersionGuard {
|
|
@@ -23,27 +27,27 @@ import path from "path";
|
|
|
23
27
|
|
|
24
28
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
25
29
|
var commandModules = {
|
|
26
|
-
workspace: async () => (await import("./workspace.command-
|
|
27
|
-
agent: async () => (await import("./agent.command-
|
|
28
|
-
code: async () => (await import("./code.command-
|
|
29
|
-
application: async () => (await import("./application.command-
|
|
30
|
-
library: async () => (await import("./library.command-
|
|
31
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
32
|
-
package: async () => (await import("./package.command-
|
|
33
|
-
module: async () => (await import("./module.command-
|
|
34
|
-
page: async () => (await import("./page.command-
|
|
35
|
-
context: async () => (await import("./context.command-
|
|
36
|
-
cloud: async () => (await import("./cloud.command-
|
|
37
|
-
subspace: async () => (await import("./subspace.command-
|
|
38
|
-
guideline: async () => (await import("./guideline.command-
|
|
39
|
-
scalar: async () => (await import("./scalar.command-
|
|
40
|
-
primitive: async () => (await import("./primitive.command-
|
|
41
|
-
quality: async () => (await import("./quality.command-
|
|
42
|
-
verify: async () => (await import("./verify.command-
|
|
43
|
-
repair: async () => (await import("./repair.command-
|
|
44
|
-
workflow: async () => (await import("./workflow.command-
|
|
45
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
46
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
30
|
+
workspace: async () => (await import("./workspace.command-pkpawft5.js")).WorkspaceCommand,
|
|
31
|
+
agent: async () => (await import("./agent.command-hrc2dfas.js")).AgentCommand,
|
|
32
|
+
code: async () => (await import("./code.command-6h6jr0s7.js")).CodeCommand,
|
|
33
|
+
application: async () => (await import("./application.command-b2194cpv.js")).ApplicationCommand,
|
|
34
|
+
library: async () => (await import("./library.command-a9p5yg4k.js")).LibraryCommand,
|
|
35
|
+
localRegistry: async () => (await import("./localRegistry.command-zz64k5vy.js")).LocalRegistryCommand,
|
|
36
|
+
package: async () => (await import("./package.command-eabq20aq.js")).PackageCommand,
|
|
37
|
+
module: async () => (await import("./module.command-1ht6dmxg.js")).ModuleCommand,
|
|
38
|
+
page: async () => (await import("./page.command-xhmzmvjn.js")).PageCommand,
|
|
39
|
+
context: async () => (await import("./context.command-t8akxhny.js")).ContextCommand,
|
|
40
|
+
cloud: async () => (await import("./cloud.command-d8ps1564.js")).CloudCommand,
|
|
41
|
+
subspace: async () => (await import("./subspace.command-d8t8geyv.js")).SubspaceCommand,
|
|
42
|
+
guideline: async () => (await import("./guideline.command-f41b5nv5.js")).GuidelineCommand,
|
|
43
|
+
scalar: async () => (await import("./scalar.command-cw3d32sv.js")).ScalarCommand,
|
|
44
|
+
primitive: async () => (await import("./primitive.command-yyxtfhvq.js")).PrimitiveCommand,
|
|
45
|
+
quality: async () => (await import("./quality.command-n7hmt628.js")).QualityCommand,
|
|
46
|
+
verify: async () => (await import("./verify.command-j4he0fbx.js")).VerifyCommand,
|
|
47
|
+
repair: async () => (await import("./repair.command-pczdq4mv.js")).RepairCommand,
|
|
48
|
+
workflow: async () => (await import("./workflow.command-k064waza.js")).WorkflowCommand,
|
|
49
|
+
pipeline: async () => (await import("./pipeline.command-wsbg3fpr.js")).PipelineCommand,
|
|
50
|
+
tunnel: async () => (await import("./tunnel.command-mhm64m9n.js")).TunnelCommand
|
|
47
51
|
};
|
|
48
52
|
var commandModuleIds = Object.keys(commandModules);
|
|
49
53
|
|
|
@@ -3,13 +3,17 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-3gmskeq2.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-crtscw7c.js";
|
|
10
|
+
import"./index-b3h37zk3.js";
|
|
11
|
+
import"./index-1jzdengt.js";
|
|
12
|
+
import"./index-x2bj2vyz.js";
|
|
10
13
|
import {
|
|
11
14
|
LibraryScript
|
|
12
|
-
} from "./index-
|
|
15
|
+
} from "./index-37k5vshx.js";
|
|
16
|
+
import"./index-rx8r0cbe.js";
|
|
13
17
|
|
|
14
18
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
15
19
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,43 +4,48 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
10
|
import {
|
|
11
|
-
parseEnvFile
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
parseEnvFile
|
|
12
|
+
} from "./index-crtscw7c.js";
|
|
13
|
+
import"./index-b3h37zk3.js";
|
|
14
|
+
import"./index-1jzdengt.js";
|
|
15
|
+
import {
|
|
16
|
+
PkgExecutor2
|
|
17
|
+
} from "./index-x2bj2vyz.js";
|
|
14
18
|
import {
|
|
15
19
|
npmRegistryFromEnv,
|
|
16
20
|
warnIgnoredNpmRegistry,
|
|
17
21
|
getNpmRegistryUrl
|
|
18
22
|
} from "./index-ny2k80mv.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
23
|
+
import"./index-66jt3m30.js";
|
|
24
|
+
import"./index-g2ebpf0y.js";
|
|
25
|
+
import"./index-9w51aevd.js";
|
|
22
26
|
import"./index-m9jj544v.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
+
import"./index-xb1yh9km.js";
|
|
28
|
+
import"./index-vy50ec2q.js";
|
|
29
|
+
import"./index-37k5vshx.js";
|
|
30
|
+
import"./index-k081wv4r.js";
|
|
27
31
|
import"./index-b4qq3rq0.js";
|
|
28
32
|
import {
|
|
29
33
|
ApplicationScript
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
34
|
+
} from "./index-9yfssbgg.js";
|
|
35
|
+
import"./index-xjj0h74q.js";
|
|
32
36
|
import {
|
|
33
37
|
CloudRunner
|
|
34
|
-
} from "./index-
|
|
38
|
+
} from "./index-c0rnjeqn.js";
|
|
35
39
|
import"./index-qd7xn2bk.js";
|
|
36
40
|
import"./index-nd39rssn.js";
|
|
37
41
|
import"./index-grt0e6kk.js";
|
|
38
|
-
import"./index-
|
|
42
|
+
import"./index-j33b0n38.js";
|
|
39
43
|
import {
|
|
40
44
|
PackageScript
|
|
41
|
-
} from "./index-
|
|
42
|
-
import"./index-
|
|
45
|
+
} from "./index-f5j09jnj.js";
|
|
46
|
+
import"./index-3fbmyb2r.js";
|
|
43
47
|
import"./index-9bv479q5.js";
|
|
48
|
+
import"./index-rx8r0cbe.js";
|
|
44
49
|
|
|
45
50
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
46
51
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -163,7 +168,7 @@ class LocalRegistryScript extends script("localRegistry", [
|
|
|
163
168
|
}
|
|
164
169
|
async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
|
|
165
170
|
await this.packageScript.updateWorskpaceRootPackageJson(workspace);
|
|
166
|
-
const pkgs = akanPkgs.map((pkgName) =>
|
|
171
|
+
const pkgs = akanPkgs.map((pkgName) => PkgExecutor2.from(workspace, pkgName));
|
|
167
172
|
if (test)
|
|
168
173
|
for (const pkg of pkgs)
|
|
169
174
|
await this.applicationScript.test(pkg);
|
|
@@ -4,18 +4,22 @@ import {
|
|
|
4
4
|
Module,
|
|
5
5
|
ModuleOrService,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import"./index-bns3wcpc.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-crtscw7c.js";
|
|
11
|
+
import"./index-b3h37zk3.js";
|
|
12
|
+
import"./index-1jzdengt.js";
|
|
13
|
+
import"./index-x2bj2vyz.js";
|
|
11
14
|
import {
|
|
12
15
|
renderPrimitiveReport
|
|
13
|
-
} from "./index-
|
|
16
|
+
} from "./index-j2me5hm4.js";
|
|
14
17
|
import"./index-nd39rssn.js";
|
|
15
|
-
import"./index-
|
|
18
|
+
import"./index-8bkbexcy.js";
|
|
16
19
|
import {
|
|
17
20
|
ModuleScript
|
|
18
|
-
} from "./index-
|
|
21
|
+
} from "./index-2z8mxgs7.js";
|
|
22
|
+
import"./index-rx8r0cbe.js";
|
|
19
23
|
|
|
20
24
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
21
25
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,17 +3,21 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-3gmskeq2.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-crtscw7c.js";
|
|
10
|
+
import"./index-b3h37zk3.js";
|
|
11
|
+
import"./index-1jzdengt.js";
|
|
12
|
+
import"./index-x2bj2vyz.js";
|
|
10
13
|
import"./index-qd7xn2bk.js";
|
|
11
14
|
import"./index-nd39rssn.js";
|
|
12
15
|
import"./index-grt0e6kk.js";
|
|
13
|
-
import"./index-
|
|
16
|
+
import"./index-j33b0n38.js";
|
|
14
17
|
import {
|
|
15
18
|
PackageScript
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-f5j09jnj.js";
|
|
20
|
+
import"./index-rx8r0cbe.js";
|
|
17
21
|
|
|
18
22
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
19
23
|
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.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.14",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.2.0-rc.
|
|
42
|
+
"akanjs": "3.2.0-rc.14",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -3,13 +3,17 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-3gmskeq2.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-crtscw7c.js";
|
|
10
|
+
import"./index-b3h37zk3.js";
|
|
11
|
+
import"./index-1jzdengt.js";
|
|
12
|
+
import"./index-x2bj2vyz.js";
|
|
10
13
|
import {
|
|
11
14
|
PageScript
|
|
12
|
-
} from "./index-
|
|
15
|
+
} from "./index-8bkbexcy.js";
|
|
16
|
+
import"./index-rx8r0cbe.js";
|
|
13
17
|
|
|
14
18
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
15
19
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,19 +4,24 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3gmskeq2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
9
|
import {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-bns3wcpc.js";
|
|
12
12
|
import {
|
|
13
13
|
AkanAppConfig,
|
|
14
|
-
AkanWorkspaceConfig
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
AkanWorkspaceConfig
|
|
15
|
+
} from "./index-crtscw7c.js";
|
|
16
|
+
import {
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-b3h37zk3.js";
|
|
19
|
+
import"./index-1jzdengt.js";
|
|
20
|
+
import"./index-x2bj2vyz.js";
|
|
17
21
|
import {
|
|
18
22
|
resolveMobileTargets
|
|
19
23
|
} from "./index-m9jj544v.js";
|
|
24
|
+
import"./index-rx8r0cbe.js";
|
|
20
25
|
|
|
21
26
|
// pkgs/@akanjs/cli/pipeline/pipeline.command.ts
|
|
22
27
|
import { pipelineTriggers as pipelineTriggers2 } from "akanjs/common";
|
|
@@ -1099,7 +1104,7 @@ class PipelineDefinition {
|
|
|
1099
1104
|
}
|
|
1100
1105
|
async#loadNativeTargets(app) {
|
|
1101
1106
|
try {
|
|
1102
|
-
const targets = await resolveMobileTargets(
|
|
1107
|
+
const targets = await resolveMobileTargets(AppExecutor2.from(this.#workspace, app), "all");
|
|
1103
1108
|
return { targets: targets.map(({ name, config }) => ({ name, updates: !!config.updates })) };
|
|
1104
1109
|
} catch (error) {
|
|
1105
1110
|
return { error: toError2(error).message };
|
|
@@ -1119,7 +1124,7 @@ class PipelineDefinition {
|
|
|
1119
1124
|
}
|
|
1120
1125
|
}
|
|
1121
1126
|
async#loadApp(app) {
|
|
1122
|
-
const executor =
|
|
1127
|
+
const executor = AppExecutor2.from(this.#workspace, app);
|
|
1123
1128
|
const file = `apps/${app}/akan.config.ts`;
|
|
1124
1129
|
const sha256 = await PipelineDefinition.#sha256(path.join(executor.cwdPath, "akan.config.ts"));
|
|
1125
1130
|
try {
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3gmskeq2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-crtscw7c.js";
|
|
9
|
+
import"./index-b3h37zk3.js";
|
|
10
|
+
import"./index-1jzdengt.js";
|
|
11
|
+
import"./index-x2bj2vyz.js";
|
|
9
12
|
import {
|
|
10
13
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
14
|
+
} from "./index-j2me5hm4.js";
|
|
12
15
|
import"./index-nd39rssn.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
16
|
+
import"./index-8bkbexcy.js";
|
|
17
|
+
import"./index-2z8mxgs7.js";
|
|
15
18
|
import {
|
|
16
19
|
PrimitiveScript
|
|
17
|
-
} from "./index-
|
|
20
|
+
} from "./index-asfx2dhe.js";
|
|
21
|
+
import"./index-rx8r0cbe.js";
|
|
18
22
|
|
|
19
23
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
20
24
|
import { Logger } from "akanjs/common";
|