secure-exec 0.1.0-rc.3 → 0.1.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/index.d.ts CHANGED
@@ -1,15 +1,10 @@
1
1
  export { NodeRuntime } from "./runtime.js";
2
2
  export type { NodeRuntimeOptions } from "./runtime.js";
3
3
  export type { ResourceBudgets } from "./runtime-driver.js";
4
- export { PythonRuntime } from "./python-runtime.js";
5
- export type { PythonRuntimeOptions } from "./python-runtime.js";
6
- export type { CommandExecutor, NodeRuntimeDriver, NodeRuntimeDriverFactory, NetworkAdapter, Permissions, PythonRuntimeDriver, PythonRuntimeDriverFactory, RuntimeDriver, RuntimeDriverFactory, SharedRuntimeDriver, SystemDriver, VirtualFileSystem, } from "./types.js";
4
+ export type { CommandExecutor, NodeRuntimeDriver, NodeRuntimeDriverFactory, NetworkAdapter, Permissions, RuntimeDriver, RuntimeDriverFactory, SharedRuntimeDriver, SystemDriver, VirtualFileSystem, } from "./types.js";
7
5
  export type { DirEntry, StatInfo } from "./fs-helpers.js";
8
- export type { StdioChannel, StdioEvent, StdioHook, ExecOptions, ExecResult, OSConfig, PythonRunOptions, PythonRunResult, ProcessConfig, RunResult, TimingMitigation, } from "./shared/api-types.js";
6
+ export type { StdioChannel, StdioEvent, StdioHook, ExecOptions, ExecResult, OSConfig, ProcessConfig, RunResult, TimingMitigation, } from "./shared/api-types.js";
9
7
  export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
10
8
  export type { ModuleAccessOptions, NodeRuntimeDriverFactoryOptions, } from "@secure-exec/node";
11
- export { createPyodideRuntimeDriverFactory, PyodideRuntimeDriver, } from "@secure-exec/python";
12
- export { createBrowserDriver, createBrowserNetworkAdapter, createBrowserRuntimeDriverFactory, createOpfsFileSystem, } from "@secure-exec/browser";
13
- export type { BrowserDriverOptions, BrowserRuntimeDriverFactoryOptions, BrowserRuntimeSystemOptions, } from "@secure-exec/browser";
14
9
  export { createInMemoryFileSystem } from "./shared/in-memory-fs.js";
15
10
  export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, } from "./shared/permissions.js";
package/dist/index.js CHANGED
@@ -1,11 +1,25 @@
1
1
  // Re-export core runtime surface.
2
2
  export { NodeRuntime } from "./runtime.js";
3
- export { PythonRuntime } from "./python-runtime.js";
4
3
  // Re-export Node driver factories.
5
4
  export { createDefaultNetworkAdapter, createNodeDriver, createNodeRuntimeDriverFactory, NodeExecutionDriver, NodeFileSystem, } from "@secure-exec/node";
6
- // Re-export Python runtime-driver factories.
7
- export { createPyodideRuntimeDriverFactory, PyodideRuntimeDriver, } from "@secure-exec/python";
8
- // Re-export browser driver factories.
9
- export { createBrowserDriver, createBrowserNetworkAdapter, createBrowserRuntimeDriverFactory, createOpfsFileSystem, } from "@secure-exec/browser";
5
+ // TODO: Re-enable once node-stdlib-browser ESM entry is fixed (mock/empty.js missing from published package).
6
+ // Eagerly importing @secure-exec/python and @secure-exec/browser pulls in node-stdlib-browser,
7
+ // which crashes on Node.js. Use "secure-exec/python" or "secure-exec/browser" subpath imports instead.
8
+ // export {
9
+ // createPyodideRuntimeDriverFactory,
10
+ // PyodideRuntimeDriver,
11
+ // } from "@secure-exec/python";
12
+ //
13
+ // export {
14
+ // createBrowserDriver,
15
+ // createBrowserNetworkAdapter,
16
+ // createBrowserRuntimeDriverFactory,
17
+ // createOpfsFileSystem,
18
+ // } from "@secure-exec/browser";
19
+ // export type {
20
+ // BrowserDriverOptions,
21
+ // BrowserRuntimeDriverFactoryOptions,
22
+ // BrowserRuntimeSystemOptions,
23
+ // } from "@secure-exec/browser";
10
24
  export { createInMemoryFileSystem } from "./shared/in-memory-fs.js";
11
25
  export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, } from "./shared/permissions.js";
@@ -1,2 +1,5 @@
1
1
  export { PythonRuntime } from "@secure-exec/core";
2
2
  export type { PythonRuntimeOptions } from "@secure-exec/core";
3
+ export { createPyodideRuntimeDriverFactory, PyodideRuntimeDriver, } from "@secure-exec/python";
4
+ export type { StdioChannel, StdioEvent, StdioHook, ExecOptions, ExecResult, OSConfig, PythonRunOptions, PythonRunResult, ProcessConfig, RunResult, TimingMitigation, } from "@secure-exec/core";
5
+ export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, } from "@secure-exec/core";
@@ -1,2 +1,4 @@
1
- // Re-exported from @secure-exec/core canonical source is packages/secure-exec-core/src/python-runtime.ts
1
+ // Python-only entrypoint: import from "secure-exec/python".
2
2
  export { PythonRuntime } from "@secure-exec/core";
3
+ export { createPyodideRuntimeDriverFactory, PyodideRuntimeDriver, } from "@secure-exec/python";
4
+ export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, } from "@secure-exec/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secure-exec",
3
- "version": "0.1.0-rc.3",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -22,13 +22,19 @@
22
22
  "./browser": {
23
23
  "import": "./dist/browser-runtime.js",
24
24
  "types": "./dist/browser-runtime.d.ts"
25
+ },
26
+ "./python": {
27
+ "import": "./dist/python-runtime.js",
28
+ "types": "./dist/python-runtime.d.ts"
25
29
  }
26
30
  },
27
31
  "dependencies": {
28
- "@secure-exec/node": "0.1.0-rc.3",
29
- "@secure-exec/browser": "0.1.0-rc.3",
30
- "@secure-exec/core": "0.1.0-rc.3",
31
- "@secure-exec/python": "0.1.0-rc.3"
32
+ "@secure-exec/node": "0.1.0",
33
+ "@secure-exec/core": "0.1.0"
34
+ },
35
+ "optionalDependencies": {
36
+ "@secure-exec/browser": "0.1.0",
37
+ "@secure-exec/python": "0.1.0"
32
38
  },
33
39
  "devDependencies": {
34
40
  "@types/node": "^22.10.2",