@lakitu/sdk 0.1.5 → 0.1.7
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/convex.json
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAWH,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;AAWH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAiBhD"}
|
|
@@ -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 { mkdirSync, rmSync, cpSync, writeFileSync, readFileSync } from "fs";
|
|
13
|
+
import { existsSync, mkdirSync, rmSync, cpSync, writeFileSync, readFileSync } from "fs";
|
|
14
14
|
import { join, dirname } from "path";
|
|
15
15
|
import { execSync, spawn } from "child_process";
|
|
16
16
|
import { fileURLToPath } from "url";
|
|
@@ -120,8 +120,9 @@ async function prebuildConvex() {
|
|
|
120
120
|
CONVEX_SELF_HOSTED_ADMIN_KEY=0135d8598650f8f5cb0f30c34ec2e2bb62793bc28717c8eb6fb577996d50be5f4281b59181095065c5d0f86a2c31ddbe9b597ec62b47ded69782cd
|
|
121
121
|
`);
|
|
122
122
|
try {
|
|
123
|
+
// Run from package root where convex.json is (specifies functions: "convex/sandbox")
|
|
123
124
|
execSync(`npx convex dev --once --typecheck disable --env-file ${tempEnvFile}`, {
|
|
124
|
-
cwd:
|
|
125
|
+
cwd: PACKAGE_ROOT,
|
|
125
126
|
stdio: "inherit",
|
|
126
127
|
env: { ...process.env, CONVEX_DEPLOYMENT: undefined },
|
|
127
128
|
});
|
|
@@ -209,6 +210,16 @@ async function buildCustom(apiKey, baseId) {
|
|
|
209
210
|
recursive: true,
|
|
210
211
|
filter: (src) => !excludes.some(ex => src.includes(`/${ex}`)),
|
|
211
212
|
});
|
|
213
|
+
// Copy user's project KSAs from lakitu/ folder (if exists)
|
|
214
|
+
const userKsaDir = join(process.cwd(), "lakitu");
|
|
215
|
+
if (existsSync(userKsaDir)) {
|
|
216
|
+
console.log(" Copying project KSAs from lakitu/...");
|
|
217
|
+
const ksaFiles = require("fs").readdirSync(userKsaDir).filter((f) => f.endsWith(".ts"));
|
|
218
|
+
for (const file of ksaFiles) {
|
|
219
|
+
cpSync(join(userKsaDir, file), join(buildDir, "lakitu/ksa", file));
|
|
220
|
+
}
|
|
221
|
+
console.log(` ✓ Copied ${ksaFiles.length} project KSAs`);
|
|
222
|
+
}
|
|
212
223
|
// Copy start script
|
|
213
224
|
cpSync(join(PACKAGE_ROOT, "template/e2b/start.sh"), join(buildDir, "start.sh"));
|
|
214
225
|
// Copy pre-built Convex state
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakitu/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Self-hosted AI agent framework for Convex + E2B with code execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/sdk/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
43
|
"convex",
|
|
44
|
+
"convex.json",
|
|
44
45
|
"ksa",
|
|
45
46
|
"runtime",
|
|
46
47
|
"template",
|
|
@@ -79,7 +80,9 @@
|
|
|
79
80
|
},
|
|
80
81
|
"license": "MIT",
|
|
81
82
|
"dependencies": {
|
|
83
|
+
"@convex-dev/agent": "^0.2.0",
|
|
82
84
|
"commander": "^12.1.0",
|
|
85
|
+
"convex": "^1.17.0",
|
|
83
86
|
"e2b": "^2.10.1",
|
|
84
87
|
"zod": "^3.23.0"
|
|
85
88
|
},
|
|
@@ -87,11 +90,9 @@
|
|
|
87
90
|
"@anthropic-ai/sdk": "^0.27.0",
|
|
88
91
|
"@ai-sdk/openai": "^3.0.10",
|
|
89
92
|
"@openrouter/ai-sdk-provider": "^1.5.4",
|
|
90
|
-
"@convex-dev/agent": "^0.2.0",
|
|
91
93
|
"@types/node": "^20.0.0",
|
|
92
94
|
"@types/pdfkit": "^0.13.0",
|
|
93
95
|
"ai": "^6.0.34",
|
|
94
|
-
"convex": "^1.17.0",
|
|
95
96
|
"convex-test": "^0.0.34",
|
|
96
97
|
"loro-crdt": "^1.0.0",
|
|
97
98
|
"openapi-fetch": "^0.10.0",
|
|
@@ -101,9 +102,5 @@
|
|
|
101
102
|
"vitest": "^2.0.0",
|
|
102
103
|
"yaml": "^2.4.5",
|
|
103
104
|
"zod-to-json-schema": "^3.23.0"
|
|
104
|
-
},
|
|
105
|
-
"peerDependencies": {
|
|
106
|
-
"convex": "^1.0.0",
|
|
107
|
-
"zod": "^3.0.0"
|
|
108
105
|
}
|
|
109
106
|
}
|