@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.
- package/dist/file/filepreview.js +9 -9
- package/package.json +4 -4
package/dist/file/filepreview.js
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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.
|
|
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.
|
|
69
|
-
"@ekairos/events": "^1.22.
|
|
70
|
-
"@ekairos/sandbox": "^1.22.
|
|
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",
|