@ekairos/dataset 1.22.61-beta.development.0 → 1.22.63-beta.development.0

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,4 +1,5 @@
1
- import { readFileSync } from "node:fs";
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { createRequire } from "node:module";
2
3
  import { dirname, join } from "node:path";
3
4
  import { fileURLToPath } from "node:url";
4
5
  import { runDatasetSandboxCommandStep, writeDatasetSandboxFilesStep } from "../sandbox/steps.js";
@@ -15,10 +16,16 @@ const PYTHON_SCRIPT_FILES = [
15
16
  "preview_tail_csv.py",
16
17
  "preview_tail_excel.py",
17
18
  ];
19
+ const require = createRequire(import.meta.url);
18
20
  function resolveScriptPath(scriptName) {
19
- // In src and dist the scripts live beside this module. Avoid package-resolution here:
20
- // Turbopack treats package-resolved Python script paths as module edges.
21
- return join(dirname(fileURLToPath(import.meta.url)), "scripts", scriptName);
21
+ const moduleLocalScriptPath = join(dirname(fileURLToPath(import.meta.url)), "scripts", scriptName);
22
+ if (existsSync(moduleLocalScriptPath)) {
23
+ return moduleLocalScriptPath;
24
+ }
25
+ // Workflow bundlers can move this module away from the package dist directory. Resolve
26
+ // the package JS entrypoint, then address scripts as plain filesystem paths under dist.
27
+ const packageEntryPath = require.resolve("@ekairos/dataset");
28
+ return join(dirname(packageEntryPath), "file", "scripts", scriptName);
22
29
  }
23
30
  const preparedSandboxIds = new Set();
24
31
  const sandboxSetupPromises = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekairos/dataset",
3
- "version": "1.22.61-beta.development.0",
3
+ "version": "1.22.63-beta.development.0",
4
4
  "description": "Pulzar Dataset Tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -65,9 +65,9 @@
65
65
  "test:ai-sdk:instant": "vitest run -c vitest.codex.config.mts src/tests/materializeDataset.ai-sdk.instant.test.ts"
66
66
  },
67
67
  "dependencies": {
68
- "@ekairos/domain": "^1.22.61-beta.development.0",
69
- "@ekairos/events": "^1.22.61-beta.development.0",
70
- "@ekairos/sandbox": "^1.22.61-beta.development.0",
68
+ "@ekairos/domain": "^1.22.63-beta.development.0",
69
+ "@ekairos/events": "^1.22.63-beta.development.0",
70
+ "@ekairos/sandbox": "^1.22.63-beta.development.0",
71
71
  "@instantdb/admin": "0.22.158",
72
72
  "@instantdb/core": "0.22.142",
73
73
  "ai": "^5.0.44",