@akanjs/cli 3.0.0-alpha.112 → 3.0.0-alpha.113
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b043c91f5476cad8f328dc840b74670a9e53078810ca74b011b5b38b05f79242
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var commandModules = {
|
|
|
24
24
|
page: async () => (await import("./page.command-vs9s3zrh.js")).PageCommand,
|
|
25
25
|
context: async () => (await import("./context.command-ez8a0zyz.js")).ContextCommand,
|
|
26
26
|
cloud: async () => (await import("./cloud.command-gxqp8xdv.js")).CloudCommand,
|
|
27
|
-
subspace: async () => (await import("./subspace.command-
|
|
27
|
+
subspace: async () => (await import("./subspace.command-fwjfcts7.js")).SubspaceCommand,
|
|
28
28
|
guideline: async () => (await import("./guideline.command-xmqwx8zm.js")).GuidelineCommand,
|
|
29
29
|
scalar: async () => (await import("./scalar.command-6k1vhe9s.js")).ScalarCommand,
|
|
30
30
|
primitive: async () => (await import("./primitive.command-cbxmqbtc.js")).PrimitiveCommand,
|
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.113",
|
|
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.113",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^14.0.3",
|
|
39
39
|
"dayjs": "^1.11.20",
|
|
@@ -147,7 +147,7 @@ class Subspace {
|
|
|
147
147
|
}
|
|
148
148
|
const clone = new Executor(`subspace-${this.name}`, this.#clonePath);
|
|
149
149
|
await clone.spawn("git", ["fetch", "--quiet", "origin", branch]);
|
|
150
|
-
await clone.spawn("git", ["checkout", "--quiet", "-B", branch, `origin/${branch}`]);
|
|
150
|
+
await clone.spawn("git", ["checkout", "--quiet", "-f", "-B", branch, `origin/${branch}`]);
|
|
151
151
|
await clone.spawn("git", ["clean", "-qfd"]);
|
|
152
152
|
return clone;
|
|
153
153
|
}
|
|
@@ -324,7 +324,9 @@ class Subspace {
|
|
|
324
324
|
"--",
|
|
325
325
|
`libs/${lib}`
|
|
326
326
|
]);
|
|
327
|
-
const
|
|
327
|
+
const candidates = listed.split("\x00").filter((file) => !!file && !this.#isSubspaceOwned(file)).sort();
|
|
328
|
+
const present = await Promise.all(candidates.map(async (file) => await FileSys.entryExists(path.join(this.#clonePath, file))));
|
|
329
|
+
const files = candidates.filter((_, index) => present[index]);
|
|
328
330
|
const hasher = new Bun.CryptoHasher("sha256");
|
|
329
331
|
for (const file of files) {
|
|
330
332
|
const content = await FileSys.readText(path.join(this.#clonePath, file));
|