@lakitu/sdk 0.1.7 → 0.1.8

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;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"}
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;AAkQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAiBhD"}
@@ -15,7 +15,10 @@ import { join, dirname } from "path";
15
15
  import { execSync, spawn } from "child_process";
16
16
  import { fileURLToPath } from "url";
17
17
  const __dirname = dirname(fileURLToPath(import.meta.url));
18
- const PACKAGE_ROOT = join(__dirname, "../..");
18
+ // Handle both TS source (cli/commands) and compiled JS (dist/cli/commands)
19
+ const PACKAGE_ROOT = __dirname.includes("/dist/")
20
+ ? join(__dirname, "../../..")
21
+ : join(__dirname, "../..");
19
22
  function findApiKey() {
20
23
  // 1. Environment variable
21
24
  if (process.env.E2B_API_KEY) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lakitu/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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",