@ekairos/dataset 1.22.60-beta.development.0 → 1.22.62-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,4 @@
1
- import { readFileSync } from "node:fs";
1
+ import { existsSync, readFileSync } from "node:fs";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
@@ -18,14 +18,14 @@ const PYTHON_SCRIPT_FILES = [
18
18
  ];
19
19
  const require = createRequire(import.meta.url);
20
20
  function resolveScriptPath(scriptName) {
21
- try {
22
- return require.resolve(`@ekairos/dataset/file/scripts/${scriptName}`);
23
- }
24
- catch {
25
- // Prefer local scripts in src/ (tests/dev), and after build the scripts are copied to dist/
26
- // at the same relative path, so this works in both environments.
27
- return join(dirname(fileURLToPath(import.meta.url)), "scripts", scriptName);
28
- }
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);
29
29
  }
30
30
  const preparedSandboxIds = new Set();
31
31
  const sandboxSetupPromises = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekairos/dataset",
3
- "version": "1.22.60-beta.development.0",
3
+ "version": "1.22.62-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.60-beta.development.0",
69
- "@ekairos/events": "^1.22.60-beta.development.0",
70
- "@ekairos/sandbox": "^1.22.60-beta.development.0",
68
+ "@ekairos/domain": "^1.22.62-beta.development.0",
69
+ "@ekairos/events": "^1.22.62-beta.development.0",
70
+ "@ekairos/sandbox": "^1.22.62-beta.development.0",
71
71
  "@instantdb/admin": "0.22.158",
72
72
  "@instantdb/core": "0.22.142",
73
73
  "ai": "^5.0.44",