@akanjs/cli 3.0.0-alpha.10 → 3.0.0-alpha.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 +1 -1
- package/{agent.command-f0gqkfgz.js → agent.command-a3n15c6t.js} +5 -5
- package/{application.command-x903m2qq.js → application.command-rdm3et0g.js} +4 -4
- package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-6m8n71w4.js} +1 -1
- package/buildBatch.proc.js +2 -2
- package/{capacitorApp-9xswcgx7.js → capacitorApp-mr81qdxq.js} +2 -2
- package/{cloud.command-zs6kyf83.js → cloud.command-56aeekqn.js} +7 -7
- package/{context.command-fmepgjzg.js → context.command-ysxawe7h.js} +12 -12
- package/{guideline.command-n6sw0a0c.js → guideline.command-yqf9a372.js} +2 -2
- package/guidelines/conventions/conventions.instruction.md +157 -0
- package/guidelines/cssRule/cssRule.instruction.md +7 -0
- package/guidelines/framework/framework.instruction.md +1 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +3 -1
- package/incrementalBuilder.proc.js +1 -1
- package/{index-5sn5w2mt.js → index-3789fdpg.js} +10 -10
- package/{index-y4vkyhvv.js → index-4mgkgba3.js} +2 -2
- package/{index-xmmzf150.js → index-65aeh789.js} +1 -1
- package/{index-d43t8af2.js → index-8pd02prk.js} +2 -2
- package/{index-779ske1y.js → index-9va8zayb.js} +1 -1
- package/{index-82jrh4hj.js → index-a5cs7d8r.js} +5 -5
- package/{index-62955kn5.js → index-bzznxgcx.js} +5 -5
- package/{index-qb61h0k7.js → index-cav1azma.js} +51 -5
- package/{index-qzdjd4ct.js → index-cv9cxs5k.js} +3 -3
- package/{index-774gcx29.js → index-e4b2ae6b.js} +2 -2
- package/{index-kdh76j26.js → index-etwh7sd3.js} +1 -1
- package/{index-gcv8ncfh.js → index-h5whaj26.js} +2 -2
- package/{index-rxkpk7n4.js → index-kcsa1zff.js} +1 -1
- package/{index-3vta1tqa.js → index-m90fn8xe.js} +4 -4
- package/{index-jhpa13zj.js → index-mewacxye.js} +4 -4
- package/{index-4m0bphac.js → index-nwqqssnb.js} +8 -10
- package/{index-jf2ya7r2.js → index-yzmqvg23.js} +3 -3
- package/{index-z8ptfkzv.js → index-yzsxc30b.js} +15 -12
- package/{index-eyyf2149.js → index-z1s5f4e0.js} +3 -3
- package/index.js +18 -18
- package/{library.command-cv9gdbmg.js → library.command-x6t29a30.js} +3 -3
- package/{localRegistry.command-d8fg36zc.js → localRegistry.command-649g1n7b.js} +6 -6
- package/{module.command-qyr1s9cn.js → module.command-8w8ys5t3.js} +5 -5
- package/{package.command-wsjx0k47.js → package.command-zgy7f3fz.js} +3 -3
- package/package.json +2 -2
- package/{page.command-rdzg65rm.js → page.command-yjmnkyk2.js} +3 -3
- package/{primitive.command-89g38b53.js → primitive.command-gfqaagsg.js} +6 -6
- package/{quality.command-0cs2z92d.js → quality.command-ec8r1dn3.js} +361 -90
- package/{repair.command-6fphxfwj.js → repair.command-p9ey6mkm.js} +5 -5
- package/{scalar.command-xfer69s6.js → scalar.command-9dhmqhtm.js} +4 -4
- package/templates/appSample/srvkit/AuthGuard.ts +9 -5
- package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
- package/templates/workspaceRoot/biome.json.template +1 -0
- package/{workflow.command-2ygfqt4f.js → workflow.command-ycwc6zr6.js} +9 -9
- package/{workspace.command-vbgpjkf9.js → workspace.command-xhyhajxa.js} +50 -33
|
@@ -973,8 +973,12 @@ class CssImportResolver {
|
|
|
973
973
|
const pkg = await Bun.file(pkgPath).json();
|
|
974
974
|
const subpath = id === pkgName ? "." : `.${id.slice(pkgName.length)}`;
|
|
975
975
|
const exportValue = pkg.exports?.[subpath];
|
|
976
|
-
const
|
|
977
|
-
|
|
976
|
+
const exportedEntry = typeof exportValue === "string" ? exportValue : exportValue?.style || exportValue?.import || exportValue?.default;
|
|
977
|
+
if (exportedEntry)
|
|
978
|
+
return await this.#firstExisting(path7.resolve(pkgDir, exportedEntry));
|
|
979
|
+
if (subpath !== ".")
|
|
980
|
+
return await this.#firstExisting(path7.resolve(pkgDir, subpath));
|
|
981
|
+
return await this.#firstExisting(path7.resolve(pkgDir, pkg.exports?.["."]?.style || pkg.style || "index.css"));
|
|
978
982
|
} catch {
|
|
979
983
|
return null;
|
|
980
984
|
}
|
|
@@ -1031,6 +1035,7 @@ class CssCompiler {
|
|
|
1031
1035
|
#fileExistsCache = new Map;
|
|
1032
1036
|
#resolvedFileCache = new Map;
|
|
1033
1037
|
#resolvedSpecifierCache = new Map;
|
|
1038
|
+
#discoveredCssPaths = new Set;
|
|
1034
1039
|
#fileExists(absPath) {
|
|
1035
1040
|
let cached = this.#fileExistsCache.get(absPath);
|
|
1036
1041
|
if (!cached) {
|
|
@@ -1064,13 +1069,16 @@ class CssCompiler {
|
|
|
1064
1069
|
async getCss({ refresh } = {}) {
|
|
1065
1070
|
if (this.#cssText !== null && !refresh)
|
|
1066
1071
|
return this.#cssText;
|
|
1072
|
+
this.#discoveredCssPaths.clear();
|
|
1067
1073
|
const { cssPaths, sourcePaths } = await this.discoverCssAndSources({ refresh });
|
|
1068
1074
|
this.#cssText = await this.compileCss(cssPaths, sourcePaths);
|
|
1075
|
+
await this.#warnUnreachableStylesheets();
|
|
1069
1076
|
return this.#cssText;
|
|
1070
1077
|
}
|
|
1071
1078
|
async getCssByBasePath({ refresh } = {}) {
|
|
1072
1079
|
if (this.#cssTextByBasePath !== null && !refresh)
|
|
1073
1080
|
return this.#cssTextByBasePath;
|
|
1081
|
+
this.#discoveredCssPaths.clear();
|
|
1074
1082
|
const akanConfig = await this.#app.getConfig({ refresh });
|
|
1075
1083
|
const pageKeys = await this.#app.getPageKeys({ refresh });
|
|
1076
1084
|
const basePaths = [...akanConfig.basePaths];
|
|
@@ -1097,8 +1105,20 @@ class CssCompiler {
|
|
|
1097
1105
|
})
|
|
1098
1106
|
]);
|
|
1099
1107
|
this.#cssTextByBasePath = Object.fromEntries(cssEntries);
|
|
1108
|
+
await this.#warnUnreachableStylesheets();
|
|
1100
1109
|
return this.#cssTextByBasePath;
|
|
1101
1110
|
}
|
|
1111
|
+
async#warnUnreachableStylesheets() {
|
|
1112
|
+
const pageDir = path8.join(this.#app.cwdPath, "page");
|
|
1113
|
+
const glob = new Bun.Glob("**/*.css");
|
|
1114
|
+
for await (const cssPath of glob.scan({ cwd: pageDir, absolute: true })) {
|
|
1115
|
+
if (cssPath.includes(`${path8.sep}(libs)${path8.sep}`))
|
|
1116
|
+
continue;
|
|
1117
|
+
if (this.#discoveredCssPaths.has(cssPath))
|
|
1118
|
+
continue;
|
|
1119
|
+
this.#logger.warn(`css ${path8.relative(this.#app.cwdPath, cssPath)} is imported by no route and never compiled`);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1102
1122
|
async discoverCss({ refresh } = {}) {
|
|
1103
1123
|
const { cssPaths } = await this.discoverCssAndSources({ refresh });
|
|
1104
1124
|
return cssPaths;
|
|
@@ -1158,7 +1178,28 @@ class CssCompiler {
|
|
|
1158
1178
|
queue.push(resolved);
|
|
1159
1179
|
}
|
|
1160
1180
|
}
|
|
1161
|
-
|
|
1181
|
+
const tokenPaths = await this.#libTokenStylesheets(sourceFiles);
|
|
1182
|
+
const cssPaths = [...new Set([...tokenPaths, ...cssFiles])];
|
|
1183
|
+
for (const cssPath of cssPaths)
|
|
1184
|
+
this.#discoveredCssPaths.add(cssPath);
|
|
1185
|
+
return { cssPaths, sourcePaths: [...sourceFiles] };
|
|
1186
|
+
}
|
|
1187
|
+
async#libTokenStylesheets(sourceFiles) {
|
|
1188
|
+
const libsRoot = path8.join(this.#app.workspace.workspaceRoot, "libs");
|
|
1189
|
+
const libNames = new Set;
|
|
1190
|
+
for (const filePath of sourceFiles) {
|
|
1191
|
+
const relPath = path8.relative(libsRoot, filePath);
|
|
1192
|
+
if (relPath.startsWith("..") || path8.isAbsolute(relPath))
|
|
1193
|
+
continue;
|
|
1194
|
+
const [libName] = relPath.split(path8.sep);
|
|
1195
|
+
if (libName)
|
|
1196
|
+
libNames.add(libName);
|
|
1197
|
+
}
|
|
1198
|
+
const tokenPaths = await Promise.all([...libNames].sort().map(async (libName) => {
|
|
1199
|
+
const tokensPath = path8.join(libsRoot, libName, "ui/tokens.css");
|
|
1200
|
+
return await this.#fileExists(tokensPath) ? tokensPath : null;
|
|
1201
|
+
}));
|
|
1202
|
+
return tokenPaths.filter((tokensPath) => !!tokensPath);
|
|
1162
1203
|
}
|
|
1163
1204
|
async compileCss(cssPaths, sourcePaths) {
|
|
1164
1205
|
if (cssPaths.length === 0)
|
|
@@ -1196,12 +1237,17 @@ class CssCompiler {
|
|
|
1196
1237
|
}
|
|
1197
1238
|
async#loadStylesheet(id, fromBase) {
|
|
1198
1239
|
const p = await this.#resolveCssImport(id, fromBase);
|
|
1240
|
+
this.#discoveredCssPaths.add(p);
|
|
1199
1241
|
const content = await Bun.file(p).text();
|
|
1200
1242
|
return { path: p, base: path8.dirname(p), content };
|
|
1201
1243
|
}
|
|
1202
1244
|
async#resolveCssImport(id, fromBase) {
|
|
1203
|
-
if (id.startsWith(".") || id.startsWith("/"))
|
|
1204
|
-
|
|
1245
|
+
if (id.startsWith(".") || id.startsWith("/")) {
|
|
1246
|
+
const filePath = path8.resolve(fromBase, id);
|
|
1247
|
+
if (await this.#fileExists(filePath))
|
|
1248
|
+
return filePath;
|
|
1249
|
+
throw new Error(`[css] failed to resolve stylesheet import "${id}" from ${fromBase} (no file at ${filePath})`);
|
|
1250
|
+
}
|
|
1205
1251
|
const resolver = await this.#getCssImportResolver();
|
|
1206
1252
|
const resolved = await resolver.resolve(id, fromBase);
|
|
1207
1253
|
if (resolved)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AkanContextAnalyzer
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-e4b2ae6b.js";
|
|
5
5
|
import {
|
|
6
6
|
WorkflowExecutor,
|
|
7
7
|
compactWorkflowInputs,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
workflowCommandsForPlan,
|
|
24
24
|
workflowPlanApproval,
|
|
25
25
|
writeWorkflowRunArtifact
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-kcsa1zff.js";
|
|
27
27
|
import {
|
|
28
28
|
runner
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-etwh7sd3.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/cli/workflow/workflow.runner.ts
|
|
32
32
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
workflowRunArtifactPath,
|
|
4
4
|
workflowSyncDir
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-kcsa1zff.js";
|
|
6
6
|
import {
|
|
7
7
|
AppExecutor,
|
|
8
8
|
LibExecutor,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
extractBlockVersion,
|
|
12
12
|
isScannedAppRootEntry,
|
|
13
13
|
readDevkitVersion
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-yzsxc30b.js";
|
|
15
15
|
import {
|
|
16
16
|
collectRecipeSources,
|
|
17
17
|
findInlineRecipeDuplicates,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-etwh7sd3.js";
|
|
6
6
|
import {
|
|
7
7
|
PkgExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-yzsxc30b.js";
|
|
9
9
|
import {
|
|
10
10
|
TypeScriptDependencyScanner
|
|
11
11
|
} from "./index-46tjzh6s.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ModuleScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-mewacxye.js";
|
|
5
5
|
import {
|
|
6
6
|
addFieldUiPolicyForType,
|
|
7
7
|
coerceFieldDefault,
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
sourceFile,
|
|
35
35
|
validationCommandsForTarget,
|
|
36
36
|
viaBuilderParameterName
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-kcsa1zff.js";
|
|
38
38
|
import {
|
|
39
39
|
script
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-etwh7sd3.js";
|
|
41
41
|
import {
|
|
42
42
|
AppExecutor,
|
|
43
43
|
LibExecutor,
|
|
44
44
|
ModuleExecutor
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-yzsxc30b.js";
|
|
46
46
|
|
|
47
47
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
48
48
|
import { capitalize } from "akanjs/common";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-ss469dec.js";
|
|
5
5
|
import {
|
|
6
6
|
PageScript
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-65aeh789.js";
|
|
8
8
|
import {
|
|
9
9
|
AiSession
|
|
10
10
|
} from "./index-0cj2zxbm.js";
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
generatedFilesForSync,
|
|
16
16
|
moduleSourcePaths,
|
|
17
17
|
sourceFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-kcsa1zff.js";
|
|
19
19
|
import {
|
|
20
20
|
Prompter
|
|
21
21
|
} from "./index-j37qq1f2.js";
|
|
22
22
|
import {
|
|
23
23
|
runner,
|
|
24
24
|
script
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-etwh7sd3.js";
|
|
26
26
|
import {
|
|
27
27
|
ModuleExecutor
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-yzsxc30b.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSys
|
|
31
31
|
} from "./index-67546d0j.js";
|
|
@@ -7,21 +7,14 @@ import {
|
|
|
7
7
|
} from "./index-0cj2zxbm.js";
|
|
8
8
|
import {
|
|
9
9
|
openBrowser
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-bzznxgcx.js";
|
|
11
11
|
import {
|
|
12
12
|
runner
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-etwh7sd3.js";
|
|
14
14
|
import {
|
|
15
15
|
AppExecutor,
|
|
16
16
|
WorkspaceExecutor
|
|
17
|
-
} from "./index-
|
|
18
|
-
|
|
19
|
-
// pkgs/@akanjs/cli/cloud/cloud.runner.ts
|
|
20
|
-
import path from "path";
|
|
21
|
-
import { confirm, input, select } from "@inquirer/prompts";
|
|
22
|
-
import { Logger, sleep } from "akanjs/common";
|
|
23
|
-
import chalk from "chalk";
|
|
24
|
-
import * as QRcode from "qrcode";
|
|
17
|
+
} from "./index-yzsxc30b.js";
|
|
25
18
|
|
|
26
19
|
// pkgs/@akanjs/cli/npmRegistry.ts
|
|
27
20
|
var defaultNpmRegistry = "https://registry.npmjs.org";
|
|
@@ -40,6 +33,11 @@ async function getLatestPackageVersion(packageName, tag = "latest", registryUrl)
|
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
// pkgs/@akanjs/cli/cloud/cloud.runner.ts
|
|
36
|
+
import path from "path";
|
|
37
|
+
import { confirm, input, select } from "@inquirer/prompts";
|
|
38
|
+
import { Logger, sleep } from "akanjs/common";
|
|
39
|
+
import chalk from "chalk";
|
|
40
|
+
import * as QRcode from "qrcode";
|
|
43
41
|
var addRemoteEnvServerValue = "__addRemoteEnvServer";
|
|
44
42
|
var removeRemoteEnvServerValue = "__removeRemoteEnvServer";
|
|
45
43
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AkanContextAnalyzer
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-e4b2ae6b.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-kcsa1zff.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-etwh7sd3.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
17
17
|
var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
|
|
@@ -650,18 +650,28 @@ import { spawn } from "child_process";
|
|
|
650
650
|
import { existsSync, readFileSync } from "fs";
|
|
651
651
|
import path2 from "path";
|
|
652
652
|
import chalk from "chalk";
|
|
653
|
+
var BIOME_CONFIG_FILES = ["biome.json", "biome.jsonc"];
|
|
653
654
|
|
|
654
655
|
class Linter {
|
|
655
656
|
lintRoot;
|
|
657
|
+
configPath;
|
|
656
658
|
#biomeBin;
|
|
657
659
|
constructor(cwdPath) {
|
|
658
660
|
this.lintRoot = this.#findBiomeRootPath(cwdPath);
|
|
661
|
+
this.configPath = Linter.#configPathIn(this.lintRoot) ?? path2.join(this.lintRoot, "biome.json");
|
|
659
662
|
const localBiomeBin = path2.join(this.lintRoot, "node_modules/.bin/biome");
|
|
660
663
|
this.#biomeBin = existsSync(localBiomeBin) ? localBiomeBin : "biome";
|
|
661
664
|
}
|
|
665
|
+
static #configPathIn(dir) {
|
|
666
|
+
for (const fileName of BIOME_CONFIG_FILES) {
|
|
667
|
+
const configPath = path2.join(dir, fileName);
|
|
668
|
+
if (existsSync(configPath))
|
|
669
|
+
return configPath;
|
|
670
|
+
}
|
|
671
|
+
return null;
|
|
672
|
+
}
|
|
662
673
|
#findBiomeRootPath(dir) {
|
|
663
|
-
|
|
664
|
-
if (existsSync(configPath))
|
|
674
|
+
if (Linter.#configPathIn(dir))
|
|
665
675
|
return dir;
|
|
666
676
|
const parentDir = path2.dirname(dir);
|
|
667
677
|
if (parentDir === dir)
|
|
@@ -772,7 +782,7 @@ class Linter {
|
|
|
772
782
|
"--max-diagnostics=none",
|
|
773
783
|
"--no-errors-on-unmatched",
|
|
774
784
|
"--config-path",
|
|
775
|
-
|
|
785
|
+
this.configPath,
|
|
776
786
|
this.#toBiomePath(filePath)
|
|
777
787
|
]);
|
|
778
788
|
const report = this.#parseBiomeReport(stdout || stderr);
|
|
@@ -893,14 +903,7 @@ ${errorText}, ${warningText} found`];
|
|
|
893
903
|
if (!dryRun)
|
|
894
904
|
return await this.#checkFile(resolvedFilePath, { write: true });
|
|
895
905
|
const source = readFileSync(resolvedFilePath, "utf8");
|
|
896
|
-
const { stdout } = await this.#runBiome([
|
|
897
|
-
"check",
|
|
898
|
-
"--write",
|
|
899
|
-
"--config-path",
|
|
900
|
-
path2.join(this.lintRoot, "biome.json"),
|
|
901
|
-
"--stdin-file-path",
|
|
902
|
-
this.#toBiomePath(resolvedFilePath)
|
|
903
|
-
], source);
|
|
906
|
+
const { stdout } = await this.#runBiome(["check", "--write", "--config-path", this.configPath, "--stdin-file-path", this.#toBiomePath(resolvedFilePath)], source);
|
|
904
907
|
const lintResult = await this.lintFile(resolvedFilePath);
|
|
905
908
|
return { ...lintResult, fixed: stdout !== source, output: stdout };
|
|
906
909
|
}
|
|
@@ -908,7 +911,7 @@ ${errorText}, ${warningText} found`];
|
|
|
908
911
|
const resolvedFilePath = this.#resolveFilePath(filePath);
|
|
909
912
|
if (!existsSync(resolvedFilePath))
|
|
910
913
|
throw new Error(`File not found: ${filePath}`);
|
|
911
|
-
return JSON.parse(readFileSync(
|
|
914
|
+
return JSON.parse(readFileSync(this.configPath, "utf8"));
|
|
912
915
|
}
|
|
913
916
|
async getProblematicRules(filePath) {
|
|
914
917
|
const { results } = await this.lintFile(filePath);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AkanContextAnalyzer
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-e4b2ae6b.js";
|
|
5
5
|
import {
|
|
6
6
|
Prompter
|
|
7
7
|
} from "./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
runner,
|
|
10
10
|
script
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-etwh7sd3.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT_BLOCK_END,
|
|
14
14
|
AGENT_BLOCK_START,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
renderRecipeEntries,
|
|
19
19
|
stampBlockVersion,
|
|
20
20
|
upsertAgentBlock
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-yzsxc30b.js";
|
|
22
22
|
import {
|
|
23
23
|
collectRecipeSources,
|
|
24
24
|
scanRecipes
|
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-etwh7sd3.js";
|
|
8
|
+
import"./index-yzsxc30b.js";
|
|
9
9
|
import"./index-mxvakhsm.js";
|
|
10
10
|
import"./index-1577bej2.js";
|
|
11
11
|
import"./index-67546d0j.js";
|
|
@@ -18,22 +18,22 @@ import path from "path";
|
|
|
18
18
|
|
|
19
19
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
20
20
|
var commandModules = {
|
|
21
|
-
workspace: async () => (await import("./workspace.command-
|
|
22
|
-
agent: async () => (await import("./agent.command-
|
|
23
|
-
application: async () => (await import("./application.command-
|
|
24
|
-
library: async () => (await import("./library.command-
|
|
25
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
26
|
-
package: async () => (await import("./package.command-
|
|
27
|
-
module: async () => (await import("./module.command-
|
|
28
|
-
page: async () => (await import("./page.command-
|
|
29
|
-
context: async () => (await import("./context.command-
|
|
30
|
-
cloud: async () => (await import("./cloud.command-
|
|
31
|
-
guideline: async () => (await import("./guideline.command-
|
|
32
|
-
scalar: async () => (await import("./scalar.command-
|
|
33
|
-
primitive: async () => (await import("./primitive.command-
|
|
34
|
-
quality: async () => (await import("./quality.command-
|
|
35
|
-
repair: async () => (await import("./repair.command-
|
|
36
|
-
workflow: async () => (await import("./workflow.command-
|
|
21
|
+
workspace: async () => (await import("./workspace.command-xhyhajxa.js")).WorkspaceCommand,
|
|
22
|
+
agent: async () => (await import("./agent.command-a3n15c6t.js")).AgentCommand,
|
|
23
|
+
application: async () => (await import("./application.command-rdm3et0g.js")).ApplicationCommand,
|
|
24
|
+
library: async () => (await import("./library.command-x6t29a30.js")).LibraryCommand,
|
|
25
|
+
localRegistry: async () => (await import("./localRegistry.command-649g1n7b.js")).LocalRegistryCommand,
|
|
26
|
+
package: async () => (await import("./package.command-zgy7f3fz.js")).PackageCommand,
|
|
27
|
+
module: async () => (await import("./module.command-8w8ys5t3.js")).ModuleCommand,
|
|
28
|
+
page: async () => (await import("./page.command-yjmnkyk2.js")).PageCommand,
|
|
29
|
+
context: async () => (await import("./context.command-ysxawe7h.js")).ContextCommand,
|
|
30
|
+
cloud: async () => (await import("./cloud.command-56aeekqn.js")).CloudCommand,
|
|
31
|
+
guideline: async () => (await import("./guideline.command-yqf9a372.js")).GuidelineCommand,
|
|
32
|
+
scalar: async () => (await import("./scalar.command-9dhmqhtm.js")).ScalarCommand,
|
|
33
|
+
primitive: async () => (await import("./primitive.command-gfqaagsg.js")).PrimitiveCommand,
|
|
34
|
+
quality: async () => (await import("./quality.command-ec8r1dn3.js")).QualityCommand,
|
|
35
|
+
repair: async () => (await import("./repair.command-p9ey6mkm.js")).RepairCommand,
|
|
36
|
+
workflow: async () => (await import("./workflow.command-ycwc6zr6.js")).WorkflowCommand
|
|
37
37
|
};
|
|
38
38
|
var commandModuleIds = Object.keys(commandModules);
|
|
39
39
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
LibraryScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-8pd02prk.js";
|
|
5
5
|
import {
|
|
6
6
|
Lib,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-etwh7sd3.js";
|
|
10
|
+
import"./index-yzsxc30b.js";
|
|
11
11
|
import"./index-mxvakhsm.js";
|
|
12
12
|
import"./index-1577bej2.js";
|
|
13
13
|
import"./index-67546d0j.js";
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CloudRunner,
|
|
4
4
|
getNpmRegistryUrl
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-nwqqssnb.js";
|
|
6
6
|
import {
|
|
7
7
|
PackageScript
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-h5whaj26.js";
|
|
9
9
|
import"./index-0cj2zxbm.js";
|
|
10
10
|
import {
|
|
11
11
|
ApplicationScript
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-bzznxgcx.js";
|
|
13
|
+
import"./index-8pd02prk.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-etwh7sd3.js";
|
|
21
21
|
import"./index-fgc8r6dj.js";
|
|
22
22
|
import"./index-bjpxzr6s.js";
|
|
23
23
|
import {
|
|
24
24
|
PkgExecutor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-yzsxc30b.js";
|
|
26
26
|
import"./index-mxvakhsm.js";
|
|
27
27
|
import"./index-1577bej2.js";
|
|
28
28
|
import"./index-46tjzh6s.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ModuleScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-mewacxye.js";
|
|
5
5
|
import"./index-ss469dec.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-65aeh789.js";
|
|
7
7
|
import"./index-0cj2zxbm.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-kcsa1zff.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-etwh7sd3.js";
|
|
17
|
+
import"./index-yzsxc30b.js";
|
|
18
18
|
import"./index-mxvakhsm.js";
|
|
19
19
|
import"./index-1577bej2.js";
|
|
20
20
|
import"./index-67546d0j.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PackageScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-h5whaj26.js";
|
|
5
5
|
import {
|
|
6
6
|
Pkg,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-etwh7sd3.js";
|
|
10
|
+
import"./index-yzsxc30b.js";
|
|
11
11
|
import"./index-mxvakhsm.js";
|
|
12
12
|
import"./index-1577bej2.js";
|
|
13
13
|
import"./index-46tjzh6s.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.11",
|
|
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.11",
|
|
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-65aeh789.js";
|
|
5
5
|
import {
|
|
6
6
|
App,
|
|
7
7
|
Module,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-etwh7sd3.js";
|
|
10
|
+
import"./index-yzsxc30b.js";
|
|
11
11
|
import"./index-mxvakhsm.js";
|
|
12
12
|
import"./index-1577bej2.js";
|
|
13
13
|
import"./index-67546d0j.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PrimitiveScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-m90fn8xe.js";
|
|
5
|
+
import"./index-mewacxye.js";
|
|
6
6
|
import"./index-ss469dec.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-65aeh789.js";
|
|
8
8
|
import"./index-0cj2zxbm.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-kcsa1zff.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-etwh7sd3.js";
|
|
17
|
+
import"./index-yzsxc30b.js";
|
|
18
18
|
import"./index-mxvakhsm.js";
|
|
19
19
|
import"./index-1577bej2.js";
|
|
20
20
|
import"./index-67546d0j.js";
|