@mcploom/codexec-quickjs 0.1.0 → 0.1.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 +20 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# @mcploom/codexec-quickjs
|
|
2
2
|
|
|
3
|
-
QuickJS executor
|
|
3
|
+
QuickJS executor backend for `@mcploom/codexec`.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@mcploom/codexec-quickjs)
|
|
6
|
+
[](https://github.com/aallam/mcploom/blob/main/LICENSE)
|
|
7
|
+
[](https://github.com/aallam/mcploom/tree/main/examples)
|
|
8
|
+
[](https://github.com/aallam/mcploom/actions/workflows/ci.yml)
|
|
9
|
+
|
|
10
|
+
## Choose QuickJS When
|
|
11
|
+
|
|
12
|
+
- you want the easiest codexec backend to install
|
|
13
|
+
- you do not want a native addon in CI or local development
|
|
14
|
+
- you want fresh runtimes, captured `console.*` output, and JSON-only tool boundaries
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
- [Basic provider execution](https://github.com/aallam/mcploom/blob/main/examples/codexec-basic.ts)
|
|
19
|
+
- [MCP provider wrapping](https://github.com/aallam/mcploom/blob/main/examples/codexec-mcp-provider.ts)
|
|
20
|
+
- [MCP server wrapper](https://github.com/aallam/mcploom/blob/main/examples/codexec-mcp-server.ts)
|
|
21
|
+
- [Full examples index](https://github.com/aallam/mcploom/tree/main/examples)
|
|
4
22
|
|
|
5
23
|
## Install
|
|
6
24
|
|
|
@@ -8,8 +26,6 @@ QuickJS executor package for `@mcploom/codexec`.
|
|
|
8
26
|
npm install @mcploom/codexec @mcploom/codexec-quickjs
|
|
9
27
|
```
|
|
10
28
|
|
|
11
|
-
Use this package when you want the smallest, easiest-to-install executor backend for codexec.
|
|
12
|
-
|
|
13
29
|
## Usage
|
|
14
30
|
|
|
15
31
|
```ts
|
|
@@ -30,4 +46,4 @@ const result = await executor.execute("await codemode.echo({ ok: true })", [
|
|
|
30
46
|
]);
|
|
31
47
|
```
|
|
32
48
|
|
|
33
|
-
Each execution runs in a fresh QuickJS runtime with
|
|
49
|
+
Each execution runs in a fresh QuickJS runtime with timeout handling, captured logs, and JSON-only result and tool boundaries.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcploom/codexec-quickjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "QuickJS executor for the mcploom codexec core package.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"homepage": "https://github.com/aallam/mcploom/tree/main/packages/codexec-quickjs#readme",
|
|
42
42
|
"bugs": "https://github.com/aallam/mcploom/issues",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mcploom/codexec": "^0.
|
|
44
|
+
"@mcploom/codexec": "^0.2.0",
|
|
45
45
|
"quickjs-emscripten": "^0.31.0"
|
|
46
46
|
}
|
|
47
47
|
}
|