@execbox/quickjs 0.7.0 → 0.7.1
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/README.md +9 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @execbox/quickjs
|
|
2
2
|
|
|
3
|
-
Default execbox executor
|
|
3
|
+
Default execbox executor. It runs guest JavaScript in QuickJS and keeps the same
|
|
4
|
+
API as you move between inline and worker-hosted execution.
|
|
4
5
|
|
|
5
6
|
[](https://www.npmjs.com/package/@execbox/quickjs)
|
|
6
7
|
[](https://github.com/aallam/execbox/blob/main/LICENSE)
|
|
@@ -47,7 +48,7 @@ console.log(result);
|
|
|
47
48
|
|
|
48
49
|
| Mode | Use it when |
|
|
49
50
|
| ---------------- | --------------------------------------------------------------- |
|
|
50
|
-
| Inline (default) | You want the
|
|
51
|
+
| Inline (default) | You want the smallest trusted-code path. |
|
|
51
52
|
| `host: "worker"` | You want QuickJS off the main thread with pooled worker shells. |
|
|
52
53
|
|
|
53
54
|
```ts
|
|
@@ -65,13 +66,15 @@ await executor.prewarm();
|
|
|
65
66
|
## Operational Notes
|
|
66
67
|
|
|
67
68
|
- Each execution gets a fresh QuickJS runtime with JSON-only tool and result boundaries.
|
|
68
|
-
- Inline mode and worker mode are execution placement choices
|
|
69
|
-
- Worker mode moves QuickJS off the main thread
|
|
69
|
+
- Inline mode and worker mode are local execution placement choices.
|
|
70
|
+
- Worker mode moves QuickJS off the main thread and keeps the same provider API.
|
|
71
|
+
- For hostile-code or multi-tenant deployments, put the application-level execution service behind a process, container, VM, or equivalent operational boundary.
|
|
70
72
|
|
|
71
73
|
## Read Next
|
|
72
74
|
|
|
73
75
|
- [Getting Started](https://execbox.aallam.com/getting-started)
|
|
76
|
+
- [Providers & Tools](https://execbox.aallam.com/providers-and-tools)
|
|
77
|
+
- [Runtime Choices](https://execbox.aallam.com/runtime-choices)
|
|
74
78
|
- [Examples](https://execbox.aallam.com/examples)
|
|
75
79
|
- [Security & Boundaries](https://execbox.aallam.com/security)
|
|
76
|
-
- [
|
|
77
|
-
- [MCP And Protocol](https://execbox.aallam.com/architecture/execbox-mcp-and-protocol)
|
|
80
|
+
- [MCP Integration](https://execbox.aallam.com/mcp-integration)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@execbox/quickjs",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "QuickJS executor for the execbox core package across inline and worker hosts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"homepage": "https://github.com/aallam/execbox/tree/main/packages/quickjs#readme",
|
|
46
46
|
"bugs": "https://github.com/aallam/execbox/issues",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@execbox/core": "^0.
|
|
48
|
+
"@execbox/core": "^0.7.0",
|
|
49
49
|
"quickjs-emscripten": "^0.31.0"
|
|
50
50
|
}
|
|
51
51
|
}
|