@akanjs/cli 3.0.0-alpha.76 → 3.0.0-alpha.77
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-j4744bct.js → agent.command-q2rgd8jz.js} +5 -5
- package/{application.command-1sq0zwqx.js → application.command-tfrqva07.js} +7 -4
- package/buildBatch.proc.js +1 -1
- package/{capacitorApp-nqnvsbv2.js → capacitorApp-szqr3cxr.js} +2 -2
- package/{cloud.command-ajkhg234.js → cloud.command-pjtg4azj.js} +7 -7
- package/commandManifest.json +1 -1
- package/{context.command-jxga9cc9.js → context.command-zx88k7e0.js} +12 -12
- package/{guideline.command-2fts4m5x.js → guideline.command-85x1tvjb.js} +2 -2
- package/incrementalBuilder.proc.js +1 -1
- package/{index-2j5xrm1c.js → index-0cdwa7qj.js} +2 -2
- package/{index-6wsjpt7b.js → index-1szrbtj9.js} +1 -1
- package/{index-yzsp0jgb.js → index-4930mtpt.js} +117 -4
- package/{index-aevn8b0n.js → index-6w77v5df.js} +1 -1
- package/{index-peg7zphh.js → index-7x5ks4ph.js} +4 -4
- package/{index-5yxz0zzc.js → index-dfn0kqj7.js} +3 -3
- package/{index-qgzzz44h.js → index-e00k7eme.js} +5 -5
- package/{index-120pzxb2.js → index-egng0kc4.js} +3 -3
- package/{index-qhy7zdmz.js → index-ffrhjdwd.js} +2 -2
- package/{index-85rdqkfx.js → index-hffr3myr.js} +3 -3
- package/{index-0zabybjx.js → index-kpxg3p1v.js} +10 -10
- package/{index-j8rp2kdv.js → index-qwfwk8be.js} +3 -3
- package/{index-aczwndks.js → index-w0g7hcr7.js} +2 -2
- package/{index-v6p94mz1.js → index-ws5zt62x.js} +4 -4
- package/index-ym4xqjhy.js +217 -0
- package/{index-mk1x6sad.js → index-yz8988we.js} +1 -1
- package/{index-mpka7dq4.js → index-zec5gcx0.js} +1 -1
- package/{index-004ah39s.js → index-zkrzv21w.js} +11 -1
- package/index.js +18 -18
- package/{library.command-tfkfhbcb.js → library.command-sjnqhzn2.js} +6 -3
- package/{localRegistry.command-rhn2mh9j.js → localRegistry.command-02dy0h6v.js} +6 -6
- package/{module.command-29xg1kzr.js → module.command-8vfy9pgk.js} +5 -5
- package/{package.command-j6yn5c7h.js → package.command-af8sxhff.js} +3 -3
- package/package.json +2 -2
- package/{page.command-vgxetvga.js → page.command-gr6rbz17.js} +3 -3
- package/{primitive.command-k85cvm2z.js → primitive.command-63b8ytkf.js} +6 -6
- package/{quality.command-9dsv2jw7.js → quality.command-9xhaxzm1.js} +2 -2
- package/{repair.command-mzdh4yby.js → repair.command-a2z4d5a0.js} +5 -5
- package/{scalar.command-0cgq46dj.js → scalar.command-8ampjwsr.js} +4 -4
- package/templates/workspaceRoot/.gitignore.template +0 -1
- package/{workflow.command-2yxpvpg3.js → workflow.command-jkfmkbzh.js} +9 -9
- package/{workspace.command-42yrde58.js → workspace.command-pg2qfpn7.js} +18 -18
- package/index-3qa4f4j7.js +0 -122
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-ss469dec.js";
|
|
5
5
|
import {
|
|
6
6
|
PageScript
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-yz8988we.js";
|
|
8
8
|
import {
|
|
9
9
|
AiSession
|
|
10
10
|
} from "./index-safgeq9a.js";
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
generatedFilesForSync,
|
|
16
16
|
moduleSourcePaths,
|
|
17
17
|
sourceFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-6w77v5df.js";
|
|
19
19
|
import {
|
|
20
20
|
Prompter
|
|
21
21
|
} from "./index-k7731a4v.js";
|
|
22
22
|
import {
|
|
23
23
|
runner,
|
|
24
24
|
script
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-1szrbtj9.js";
|
|
26
26
|
import {
|
|
27
27
|
ModuleExecutor
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-zkrzv21w.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSys
|
|
31
31
|
} from "./index-67546d0j.js";
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
runner,
|
|
4
|
+
script
|
|
5
|
+
} from "./index-1szrbtj9.js";
|
|
6
|
+
import {
|
|
7
|
+
LibExecutor
|
|
8
|
+
} from "./index-zkrzv21w.js";
|
|
9
|
+
|
|
10
|
+
// pkgs/@akanjs/devkit/libSource.ts
|
|
11
|
+
class LibSource {
|
|
12
|
+
static manifestKey = "akan";
|
|
13
|
+
static unhashedDirs = ["env"];
|
|
14
|
+
#lib;
|
|
15
|
+
constructor(lib) {
|
|
16
|
+
this.#lib = lib;
|
|
17
|
+
}
|
|
18
|
+
get #prefix() {
|
|
19
|
+
return `libs/${this.#lib.name}/`;
|
|
20
|
+
}
|
|
21
|
+
#isHashed(file) {
|
|
22
|
+
const relative = file.slice(this.#prefix.length);
|
|
23
|
+
return !LibSource.unhashedDirs.includes(relative.split("/")[0] ?? "");
|
|
24
|
+
}
|
|
25
|
+
async#hashableContent(file) {
|
|
26
|
+
const content = await this.#lib.workspace.readFile(file);
|
|
27
|
+
if (file !== `${this.#prefix}package.json`)
|
|
28
|
+
return content;
|
|
29
|
+
const manifest = JSON.parse(content);
|
|
30
|
+
delete manifest[LibSource.manifestKey];
|
|
31
|
+
return JSON.stringify(manifest);
|
|
32
|
+
}
|
|
33
|
+
async computeHash() {
|
|
34
|
+
const files = (await this.#lib.workspace.listGitFiles([`libs/${this.#lib.name}`], { untracked: true })).filter((file) => this.#isHashed(file));
|
|
35
|
+
const hasher = new Bun.CryptoHasher("sha256");
|
|
36
|
+
for (const file of files) {
|
|
37
|
+
hasher.update(file);
|
|
38
|
+
hasher.update("\x00");
|
|
39
|
+
hasher.update(await this.#hashableContent(file));
|
|
40
|
+
hasher.update("\x00");
|
|
41
|
+
}
|
|
42
|
+
return hasher.digest("hex").slice(0, 32);
|
|
43
|
+
}
|
|
44
|
+
async read() {
|
|
45
|
+
const manifest = await this.#lib.getPackageJson();
|
|
46
|
+
const akan = manifest[LibSource.manifestKey];
|
|
47
|
+
return akan?.source ?? null;
|
|
48
|
+
}
|
|
49
|
+
async write({ origin, sha }) {
|
|
50
|
+
const [manifest, hash] = await Promise.all([this.#lib.getPackageJson(), this.computeHash()]);
|
|
51
|
+
const akan = manifest[LibSource.manifestKey] ?? {};
|
|
52
|
+
const stamp = { origin, sha, hash, syncedAt: new Date().toISOString() };
|
|
53
|
+
await this.#lib.setPackageJson({ ...manifest, [LibSource.manifestKey]: { ...akan, source: stamp } });
|
|
54
|
+
return stamp;
|
|
55
|
+
}
|
|
56
|
+
async status() {
|
|
57
|
+
const [stamp, hash] = await Promise.all([this.read(), this.computeHash()]);
|
|
58
|
+
const drift = !stamp ? "unstamped" : stamp.hash === hash ? "clean" : "drifted";
|
|
59
|
+
return { lib: this.#lib.name, drift, stamp, hash };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function formatLibStatuses(statuses) {
|
|
63
|
+
const marks = { clean: "clean ", drifted: "DRIFTED ", unstamped: "unstamped" };
|
|
64
|
+
const sections = [
|
|
65
|
+
"Akan Library Source Status",
|
|
66
|
+
"",
|
|
67
|
+
...statuses.map((status) => {
|
|
68
|
+
const origin = status.stamp ? `${status.stamp.origin}@${status.stamp.sha}` : "no akan.source in package.json";
|
|
69
|
+
return ` ${marks[status.drift]} libs/${status.lib} ${origin}`;
|
|
70
|
+
}),
|
|
71
|
+
"",
|
|
72
|
+
`drifted: ${statuses.filter((status) => status.drift === "drifted").length} / ${statuses.length}`
|
|
73
|
+
];
|
|
74
|
+
return sections.join(`
|
|
75
|
+
`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// pkgs/@akanjs/cli/library/library.script.ts
|
|
79
|
+
import { Logger } from "akanjs/common";
|
|
80
|
+
|
|
81
|
+
// pkgs/@akanjs/devkit/semver.ts
|
|
82
|
+
var stripRangeOperator = (version) => version.replace(/^[\s^~>=<v]+/, "").trim();
|
|
83
|
+
var parseVersion = (version) => {
|
|
84
|
+
return version.replace(/^[^\d]*/, "").split(/[.-]/).map((part) => Number.parseInt(part, 10)).map((part) => Number.isFinite(part) ? part : 0);
|
|
85
|
+
};
|
|
86
|
+
var compareNumeric = (a, b) => {
|
|
87
|
+
const left = parseVersion(a);
|
|
88
|
+
const right = parseVersion(b);
|
|
89
|
+
const length = Math.max(left.length, right.length);
|
|
90
|
+
for (let i = 0;i < length; i++) {
|
|
91
|
+
const diff = (left[i] ?? 0) - (right[i] ?? 0);
|
|
92
|
+
if (diff !== 0)
|
|
93
|
+
return diff > 0 ? 1 : -1;
|
|
94
|
+
}
|
|
95
|
+
return 0;
|
|
96
|
+
};
|
|
97
|
+
var compareSemver = (a, b) => {
|
|
98
|
+
try {
|
|
99
|
+
return Bun.semver.order(stripRangeOperator(a), stripRangeOperator(b));
|
|
100
|
+
} catch {
|
|
101
|
+
return compareNumeric(a, b);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// pkgs/@akanjs/cli/library/library.runner.ts
|
|
106
|
+
class LibraryRunner extends runner("library") {
|
|
107
|
+
static libraryRepository = "https://github.com/akan-team/akanjs.git";
|
|
108
|
+
async createLibrary(libName, workspace) {
|
|
109
|
+
await workspace.mkdir(`libs/${libName}`);
|
|
110
|
+
await workspace.applyTemplate({ basePath: `libs/${libName}`, template: "libRoot", dict: { libName } });
|
|
111
|
+
const lib = LibExecutor.from(workspace, libName);
|
|
112
|
+
return lib;
|
|
113
|
+
}
|
|
114
|
+
async removeLibrary(lib) {
|
|
115
|
+
await lib.workspace.removeDir(`libs/${lib.name}`);
|
|
116
|
+
}
|
|
117
|
+
async#copyInstalledLibrary(workspace, libName) {
|
|
118
|
+
const installedPackageJson = `node_modules/akanjs/libs/${libName}/package.json`;
|
|
119
|
+
if (!await workspace.exists(installedPackageJson))
|
|
120
|
+
return null;
|
|
121
|
+
await workspace.cp(`node_modules/akanjs/libs/${libName}`, `libs/${libName}`);
|
|
122
|
+
return { origin: "akanjs", sha: await this.#installedAkanVersion(workspace) };
|
|
123
|
+
}
|
|
124
|
+
async#installedAkanVersion(workspace) {
|
|
125
|
+
const manifestPath = "node_modules/akanjs/package.json";
|
|
126
|
+
if (!await workspace.exists(manifestPath))
|
|
127
|
+
return "unknown";
|
|
128
|
+
const { version } = await workspace.readJson(manifestPath);
|
|
129
|
+
return version ?? "unknown";
|
|
130
|
+
}
|
|
131
|
+
async#copyLibraryFromRepository(workspace, libName) {
|
|
132
|
+
await workspace.mkdir("node_modules/.akan");
|
|
133
|
+
if (await workspace.exists("node_modules/.akan/akanjs"))
|
|
134
|
+
await workspace.removeDir("node_modules/.akan/akanjs");
|
|
135
|
+
await workspace.exec(`cd node_modules/.akan && git clone ${LibraryRunner.libraryRepository}`);
|
|
136
|
+
await workspace.cp(`node_modules/.akan/akanjs/libs/${libName}`, `libs/${libName}`);
|
|
137
|
+
const sha = await workspace.spawn("git", ["-C", "node_modules/.akan/akanjs", "rev-parse", "HEAD"]);
|
|
138
|
+
return { origin: LibraryRunner.libraryRepository, sha: sha.trim().slice(0, 12) };
|
|
139
|
+
}
|
|
140
|
+
async installLibrary(workspace, libName) {
|
|
141
|
+
const source = await this.#copyInstalledLibrary(workspace, libName) ?? await this.#copyLibraryFromRepository(workspace, libName);
|
|
142
|
+
const testingEnv = `libs/${libName}/env/env.server.testing.ts`;
|
|
143
|
+
if (!await workspace.exists(testingEnv))
|
|
144
|
+
await workspace.cp(`libs/${libName}/env/env.server.example.ts`, testingEnv);
|
|
145
|
+
const lib = LibExecutor.from(workspace, libName);
|
|
146
|
+
const stamp = await new LibSource(lib).write(source);
|
|
147
|
+
if (await workspace.hasChanges())
|
|
148
|
+
await workspace.commit(`Install ${libName} library from ${stamp.origin}`);
|
|
149
|
+
return lib;
|
|
150
|
+
}
|
|
151
|
+
async libraryStatuses(workspace) {
|
|
152
|
+
const libNames = await workspace.getLibs();
|
|
153
|
+
return await Promise.all(libNames.map((libName) => new LibSource(LibExecutor.from(workspace, libName)).status()));
|
|
154
|
+
}
|
|
155
|
+
async mergeLibraryDependencies(lib) {
|
|
156
|
+
const libPackageJson = await lib.getPackageJson();
|
|
157
|
+
const rootPackageJson = await lib.workspace.getPackageJson();
|
|
158
|
+
const dependencies = {};
|
|
159
|
+
const devDependencies = {};
|
|
160
|
+
const libDependencies = { ...libPackageJson.dependencies, ...libPackageJson.devDependencies };
|
|
161
|
+
const rootDependencies = { ...rootPackageJson.dependencies, ...rootPackageJson.devDependencies };
|
|
162
|
+
const allDependencies = Object.fromEntries(Object.keys({ ...libDependencies, ...rootDependencies }).map((dep) => {
|
|
163
|
+
const libVersion = libDependencies[dep] ?? "0.0.0";
|
|
164
|
+
const rootVersion = rootDependencies[dep] ?? "0.0.0";
|
|
165
|
+
const newerVersion = compareSemver(rootVersion, libVersion) > 0 ? rootVersion : libVersion;
|
|
166
|
+
return [dep, newerVersion];
|
|
167
|
+
}));
|
|
168
|
+
Object.keys(allDependencies).sort().forEach((dep) => {
|
|
169
|
+
if (libPackageJson.dependencies?.[dep] || rootPackageJson.dependencies?.[dep])
|
|
170
|
+
dependencies[dep] = allDependencies[dep];
|
|
171
|
+
else
|
|
172
|
+
devDependencies[dep] = allDependencies[dep];
|
|
173
|
+
});
|
|
174
|
+
const newRootPackageJson = { ...rootPackageJson, dependencies, devDependencies };
|
|
175
|
+
await lib.workspace.setPackageJson(newRootPackageJson);
|
|
176
|
+
await lib.workspace.spawn("bun", ["install"]);
|
|
177
|
+
await lib.workspace.commit(`Merge ${lib.name} library dependencies`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// pkgs/@akanjs/cli/library/library.script.ts
|
|
182
|
+
class LibraryScript extends script("library", [LibraryRunner]) {
|
|
183
|
+
async syncLibrary(lib) {
|
|
184
|
+
const syncSpinner = lib.spinning("Syncing library...");
|
|
185
|
+
const scanInfo = await lib.scan();
|
|
186
|
+
syncSpinner.succeed(`Library ${lib.name} (libs/${lib.name}) is synced`);
|
|
187
|
+
return scanInfo;
|
|
188
|
+
}
|
|
189
|
+
async createLibrary(libName, workspace) {
|
|
190
|
+
const spinner = workspace.spinning(`Creating ${libName} library`);
|
|
191
|
+
const lib = await this.libraryRunner.createLibrary(libName, workspace);
|
|
192
|
+
spinner.succeed(`${libName} library (libs/${libName}) is created`);
|
|
193
|
+
await this.syncLibrary(lib);
|
|
194
|
+
}
|
|
195
|
+
async removeLibrary(lib) {
|
|
196
|
+
const spinner = lib.spinning("Removing library...");
|
|
197
|
+
await this.libraryRunner.removeLibrary(lib);
|
|
198
|
+
spinner.succeed(`Library ${lib.name} (libs/${lib.name}) is removed`);
|
|
199
|
+
}
|
|
200
|
+
async libraryStatus(workspace, format = "text") {
|
|
201
|
+
const spinner = workspace.spinning("Checking library sources...");
|
|
202
|
+
const statuses = await this.libraryRunner.libraryStatuses(workspace);
|
|
203
|
+
const drifted = statuses.filter((status) => status.drift === "drifted").length;
|
|
204
|
+
spinner.succeed(`Checked ${statuses.length} libraries (${drifted} drifted)`);
|
|
205
|
+
Logger.rawLog(format === "json" ? JSON.stringify(statuses, null, 2) : formatLibStatuses(statuses));
|
|
206
|
+
}
|
|
207
|
+
async installLibrary(workspace, libName) {
|
|
208
|
+
const installSpinner = workspace.spinning(`Installing ${libName} library`);
|
|
209
|
+
const lib = await this.libraryRunner.installLibrary(workspace, libName);
|
|
210
|
+
installSpinner.succeed(`${libName} library (libs/${libName}) is installed`);
|
|
211
|
+
const mergeSpinner = lib.spinning("Merging library dependencies...");
|
|
212
|
+
await this.libraryRunner.mergeLibraryDependencies(lib);
|
|
213
|
+
mergeSpinner.succeed(`${libName} library (libs/${libName}) dependencies merged to root package.json`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export { LibraryScript };
|
|
@@ -2435,6 +2435,16 @@ class WorkspaceExecutor extends Executor {
|
|
|
2435
2435
|
await this.spawn("git", ["add", "."]);
|
|
2436
2436
|
await this.spawn("git", ["commit", "--quiet", "-m", message]);
|
|
2437
2437
|
}
|
|
2438
|
+
async hasChanges() {
|
|
2439
|
+
return !!(await this.spawn("git", ["status", "--porcelain"])).trim();
|
|
2440
|
+
}
|
|
2441
|
+
async listGitFiles(paths, { untracked = false } = {}) {
|
|
2442
|
+
if (!paths.length)
|
|
2443
|
+
return [];
|
|
2444
|
+
const mode = untracked ? ["--cached", "--others", "--exclude-standard"] : ["--cached"];
|
|
2445
|
+
const stdout = await this.spawn("git", ["ls-files", "-z", ...mode, "--", ...paths]);
|
|
2446
|
+
return stdout.split("\x00").filter((file) => !!file).sort();
|
|
2447
|
+
}
|
|
2438
2448
|
async#getDirHasFile(basePath, targetFilename) {
|
|
2439
2449
|
const AVOID_DIRS = ["node_modules", "dist", "public", "webkit"];
|
|
2440
2450
|
const getDirs = async (dirname, maxDepth = 3, results = [], prefix = "") => {
|
|
@@ -3242,4 +3252,4 @@ class ModuleExecutor extends Executor {
|
|
|
3242
3252
|
}
|
|
3243
3253
|
}
|
|
3244
3254
|
|
|
3245
|
-
export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, isScannedRootEntry, CommandExecutionError, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
|
|
3255
|
+
export { AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, isScannedRootEntry, AppInfo, CommandExecutionError, Executor, WorkspaceExecutor, SysExecutor, AppExecutor, LibExecutor, PkgExecutor, ModuleExecutor };
|
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-1szrbtj9.js";
|
|
8
|
+
import"./index-zkrzv21w.js";
|
|
9
9
|
import"./index-dp66vwr6.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-pg2qfpn7.js")).WorkspaceCommand,
|
|
23
|
+
agent: async () => (await import("./agent.command-q2rgd8jz.js")).AgentCommand,
|
|
24
|
+
application: async () => (await import("./application.command-tfrqva07.js")).ApplicationCommand,
|
|
25
|
+
library: async () => (await import("./library.command-sjnqhzn2.js")).LibraryCommand,
|
|
26
|
+
localRegistry: async () => (await import("./localRegistry.command-02dy0h6v.js")).LocalRegistryCommand,
|
|
27
|
+
package: async () => (await import("./package.command-af8sxhff.js")).PackageCommand,
|
|
28
|
+
module: async () => (await import("./module.command-8vfy9pgk.js")).ModuleCommand,
|
|
29
|
+
page: async () => (await import("./page.command-gr6rbz17.js")).PageCommand,
|
|
30
|
+
context: async () => (await import("./context.command-zx88k7e0.js")).ContextCommand,
|
|
31
|
+
cloud: async () => (await import("./cloud.command-pjtg4azj.js")).CloudCommand,
|
|
32
|
+
guideline: async () => (await import("./guideline.command-85x1tvjb.js")).GuidelineCommand,
|
|
33
|
+
scalar: async () => (await import("./scalar.command-8ampjwsr.js")).ScalarCommand,
|
|
34
|
+
primitive: async () => (await import("./primitive.command-63b8ytkf.js")).PrimitiveCommand,
|
|
35
|
+
quality: async () => (await import("./quality.command-9xhaxzm1.js")).QualityCommand,
|
|
36
|
+
repair: async () => (await import("./repair.command-a2z4d5a0.js")).RepairCommand,
|
|
37
|
+
workflow: async () => (await import("./workflow.command-jkfmkbzh.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-ym4xqjhy.js";
|
|
5
5
|
import {
|
|
6
6
|
Lib,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1szrbtj9.js";
|
|
10
|
+
import"./index-zkrzv21w.js";
|
|
11
11
|
import"./index-dp66vwr6.js";
|
|
12
12
|
import"./index-mxvakhsm.js";
|
|
13
13
|
import"./index-1577bej2.js";
|
|
@@ -25,6 +25,9 @@ class LibraryCommand extends command("library", [LibraryScript], ({ public: targ
|
|
|
25
25
|
syncLibrary: target({ desc: "Sync dependencies and configuration for a library" }).with(Lib).exec(async function(lib) {
|
|
26
26
|
await this.libraryScript.syncLibrary(lib);
|
|
27
27
|
}),
|
|
28
|
+
libraryStatus: target({ desc: "Report whether each library still matches the source it was installed from" }).with(Workspace).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(workspace, format) {
|
|
29
|
+
await this.libraryScript.libraryStatus(workspace, format);
|
|
30
|
+
}),
|
|
28
31
|
installLibrary: target({ desc: "Install pre-built library templates (shared, util, etc.)" }).arg("libName", String, { desc: "name of library" }).with(Workspace).exec(async function(libName, workspace) {
|
|
29
32
|
await this.libraryScript.installLibrary(workspace, libName);
|
|
30
33
|
})
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CloudRunner,
|
|
4
4
|
getNpmRegistryUrl
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-hffr3myr.js";
|
|
6
6
|
import {
|
|
7
7
|
PackageScript
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ffrhjdwd.js";
|
|
9
9
|
import"./index-safgeq9a.js";
|
|
10
10
|
import {
|
|
11
11
|
ApplicationScript
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-4930mtpt.js";
|
|
13
|
+
import"./index-ym4xqjhy.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-1szrbtj9.js";
|
|
21
21
|
import"./index-ynf37b66.js";
|
|
22
22
|
import"./index-5vy2jzar.js";
|
|
23
23
|
import {
|
|
24
24
|
PkgExecutor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-zkrzv21w.js";
|
|
26
26
|
import"./index-dp66vwr6.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-ws5zt62x.js";
|
|
5
5
|
import"./index-ss469dec.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-yz8988we.js";
|
|
7
7
|
import"./index-safgeq9a.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-6w77v5df.js";
|
|
11
11
|
import"./index-k7731a4v.js";
|
|
12
12
|
import {
|
|
13
13
|
Module,
|
|
14
14
|
Sys,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-1szrbtj9.js";
|
|
17
|
+
import"./index-zkrzv21w.js";
|
|
18
18
|
import"./index-dp66vwr6.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-ffrhjdwd.js";
|
|
5
5
|
import {
|
|
6
6
|
Pkg,
|
|
7
7
|
Workspace,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1szrbtj9.js";
|
|
10
|
+
import"./index-zkrzv21w.js";
|
|
11
11
|
import"./index-dp66vwr6.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.77",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@langchain/openai": "^1.4.6",
|
|
34
34
|
"@tailwindcss/node": "^4.3.0",
|
|
35
35
|
"@trapezedev/project": "^7.1.4",
|
|
36
|
-
"akanjs": "3.0.0-alpha.
|
|
36
|
+
"akanjs": "3.0.0-alpha.77",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^14.0.3",
|
|
39
39
|
"dayjs": "^1.11.20",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PageScript
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-yz8988we.js";
|
|
5
5
|
import {
|
|
6
6
|
App,
|
|
7
7
|
Module,
|
|
8
8
|
command
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-1szrbtj9.js";
|
|
10
|
+
import"./index-zkrzv21w.js";
|
|
11
11
|
import"./index-dp66vwr6.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-7x5ks4ph.js";
|
|
5
|
+
import"./index-ws5zt62x.js";
|
|
6
6
|
import"./index-ss469dec.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-yz8988we.js";
|
|
8
8
|
import"./index-safgeq9a.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-6w77v5df.js";
|
|
12
12
|
import"./index-k7731a4v.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-1szrbtj9.js";
|
|
17
|
+
import"./index-zkrzv21w.js";
|
|
18
18
|
import"./index-dp66vwr6.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-1szrbtj9.js";
|
|
11
11
|
import {
|
|
12
12
|
isAllowedLibFacetRootFile,
|
|
13
13
|
rootAllowedDirs,
|
|
14
14
|
rootAllowedFiles
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-zkrzv21w.js";
|
|
16
16
|
import"./index-dp66vwr6.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-qwfwk8be.js";
|
|
5
|
+
import"./index-w0g7hcr7.js";
|
|
6
|
+
import"./index-6w77v5df.js";
|
|
7
7
|
import {
|
|
8
8
|
Workspace,
|
|
9
9
|
command,
|
|
10
10
|
script
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-1szrbtj9.js";
|
|
12
|
+
import"./index-zkrzv21w.js";
|
|
13
13
|
import"./index-dp66vwr6.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-0cdwa7qj.js";
|
|
5
5
|
import"./index-ss469dec.js";
|
|
6
6
|
import"./index-safgeq9a.js";
|
|
7
7
|
import {
|
|
8
8
|
renderPrimitiveReport
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-6w77v5df.js";
|
|
10
10
|
import"./index-k7731a4v.js";
|
|
11
11
|
import {
|
|
12
12
|
Sys,
|
|
13
13
|
command
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
} from "./index-1szrbtj9.js";
|
|
15
|
+
import"./index-zkrzv21w.js";
|
|
16
16
|
import"./index-dp66vwr6.js";
|
|
17
17
|
import"./index-mxvakhsm.js";
|
|
18
18
|
import"./index-1577bej2.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
WorkflowRunner
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-egng0kc4.js";
|
|
5
5
|
import {
|
|
6
6
|
ScalarScript
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-0cdwa7qj.js";
|
|
8
8
|
import {
|
|
9
9
|
PrimitiveScript
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-7x5ks4ph.js";
|
|
11
11
|
import {
|
|
12
12
|
ModuleScript
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ws5zt62x.js";
|
|
14
14
|
import"./index-ss469dec.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-yz8988we.js";
|
|
16
16
|
import"./index-safgeq9a.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-w0g7hcr7.js";
|
|
18
18
|
import {
|
|
19
19
|
createWorkflowStepRegistry
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-6w77v5df.js";
|
|
21
21
|
import"./index-k7731a4v.js";
|
|
22
22
|
import {
|
|
23
23
|
Workspace,
|
|
24
24
|
command,
|
|
25
25
|
script
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-1szrbtj9.js";
|
|
27
|
+
import"./index-zkrzv21w.js";
|
|
28
28
|
import"./index-dp66vwr6.js";
|
|
29
29
|
import"./index-mxvakhsm.js";
|
|
30
30
|
import"./index-xys926f2.js";
|