@lakitu/sdk 0.1.12 → 0.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAiBhD"}
|
|
@@ -124,7 +124,8 @@ CONVEX_SELF_HOSTED_ADMIN_KEY=0135d8598650f8f5cb0f30c34ec2e2bb62793bc28717c8eb6fb
|
|
|
124
124
|
`);
|
|
125
125
|
try {
|
|
126
126
|
// Run from package root where convex.json is (specifies functions: "convex/sandbox")
|
|
127
|
-
|
|
127
|
+
// Use /bin/bash to ensure user's PATH is available (needed for Node.js when running via bunx --bun)
|
|
128
|
+
execSync(`/bin/bash -l -c 'npx convex dev --once --typecheck disable --env-file ${tempEnvFile}'`, {
|
|
128
129
|
cwd: PACKAGE_ROOT,
|
|
129
130
|
stdio: "inherit",
|
|
130
131
|
env: { ...process.env, CONVEX_DEPLOYMENT: undefined },
|
|
@@ -207,18 +208,9 @@ async function buildCustom(apiKey, baseId) {
|
|
|
207
208
|
console.log("📦 Preparing build context...");
|
|
208
209
|
rmSync(buildDir, { recursive: true, force: true });
|
|
209
210
|
mkdirSync(buildDir, { recursive: true });
|
|
210
|
-
// Copy lakitu source (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
recursive: true,
|
|
214
|
-
filter: (src) => {
|
|
215
|
-
// Get path relative to PACKAGE_ROOT to avoid matching parent directories
|
|
216
|
-
const rel = src.slice(PACKAGE_ROOT.length);
|
|
217
|
-
// Exclude .env files (convex creates .env.local during build)
|
|
218
|
-
if (rel.includes(".env"))
|
|
219
|
-
return false;
|
|
220
|
-
return !excludes.some(ex => rel.includes(`/${ex}`));
|
|
221
|
-
},
|
|
211
|
+
// Copy lakitu source using rsync (more reliable than cpSync for E2B)
|
|
212
|
+
execSync(`rsync -av --exclude='node_modules' --exclude='.git' --exclude='template' --exclude='cli' --exclude='dist' --exclude='.env*' ${PACKAGE_ROOT}/ ${join(buildDir, "lakitu")}/`, {
|
|
213
|
+
stdio: "pipe",
|
|
222
214
|
});
|
|
223
215
|
// Copy user's project KSAs from lakitu/ folder (if exists)
|
|
224
216
|
const userKsaDir = join(process.cwd(), "lakitu");
|