@lakitu/sdk 0.1.9 → 0.1.10
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.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* 4. Build E2B template with pre-built state baked in
|
|
11
11
|
*/
|
|
12
12
|
import { Template, defaultBuildLogger, waitForPort } from "e2b";
|
|
13
|
-
import { existsSync, mkdirSync, rmSync, cpSync, writeFileSync, readFileSync } from "fs";
|
|
13
|
+
import { existsSync, mkdirSync, rmSync, cpSync, writeFileSync, readFileSync, readdirSync } from "fs";
|
|
14
14
|
import { join, dirname } from "path";
|
|
15
15
|
import { execSync, spawn } from "child_process";
|
|
16
16
|
import { fileURLToPath } from "url";
|
|
@@ -217,7 +217,7 @@ async function buildCustom(apiKey, baseId) {
|
|
|
217
217
|
const userKsaDir = join(process.cwd(), "lakitu");
|
|
218
218
|
if (existsSync(userKsaDir)) {
|
|
219
219
|
console.log(" Copying project KSAs from lakitu/...");
|
|
220
|
-
const ksaFiles =
|
|
220
|
+
const ksaFiles = readdirSync(userKsaDir).filter((f) => f.endsWith(".ts"));
|
|
221
221
|
for (const file of ksaFiles) {
|
|
222
222
|
cpSync(join(userKsaDir, file), join(buildDir, "lakitu/ksa", file));
|
|
223
223
|
}
|