@nebutra/code-execution 0.1.0 → 0.1.2
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/.nebutra/debug/code-execution.jsonl +30 -3
- package/.turbo/turbo-build.log +19 -19
- package/.turbo/turbo-test.log +7 -7
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +41 -0
- package/LICENSE +21 -676
- package/README.md +74 -13
- package/dist/{chunk-26GNZJ27.js → chunk-LLPO5OG2.js} +30 -56
- package/dist/chunk-LLPO5OG2.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +4 -7
- package/dist/index.js +1 -1
- package/package.json +7 -5
- package/src/index.ts +35 -74
- package/tsup.config.ts +7 -1
- package/dist/chunk-26GNZJ27.js.map +0 -1
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
{"at":"2026-05-
|
|
2
|
-
{"at":"2026-05-
|
|
3
|
-
{"at":"2026-05-
|
|
1
|
+
{"at":"2026-05-17T18:26:14.046Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpa3w97h","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":0,"executedOn":"test_sandbox"}}
|
|
2
|
+
{"at":"2026-05-17T18:26:14.048Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpa3w97j","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
3
|
+
{"at":"2026-05-17T18:26:14.049Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpa3w97k","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
4
|
+
{"at":"2026-05-17T18:30:10.786Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpa41bvm","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":0,"executedOn":"test_sandbox"}}
|
|
5
|
+
{"at":"2026-05-17T18:30:10.788Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpa41bvo","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
6
|
+
{"at":"2026-05-17T18:30:10.789Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpa41bvp","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
7
|
+
{"at":"2026-05-17T18:36:14.801Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpa494r4","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
8
|
+
{"at":"2026-05-17T18:36:14.803Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpa494r7","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
9
|
+
{"at":"2026-05-17T18:36:14.805Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpa494r8","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
10
|
+
{"at":"2026-05-18T05:20:19.961Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpar9fjs","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
11
|
+
{"at":"2026-05-18T05:20:19.966Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpar9fjy","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
12
|
+
{"at":"2026-05-18T05:20:19.970Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpar9fk0","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
13
|
+
{"at":"2026-05-18T05:41:12.696Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpas0a5z","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
14
|
+
{"at":"2026-05-18T05:41:12.701Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpas0a64","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
15
|
+
{"at":"2026-05-18T05:41:12.704Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpas0a67","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
16
|
+
{"at":"2026-05-18T05:42:00.492Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpas1b1m","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
17
|
+
{"at":"2026-05-18T05:42:00.503Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpas1b1y","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
18
|
+
{"at":"2026-05-18T05:42:00.511Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpas1b26","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
19
|
+
{"at":"2026-05-19T05:21:57.551Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpc6rdim","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
20
|
+
{"at":"2026-05-19T05:21:57.554Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpc6rdiq","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
21
|
+
{"at":"2026-05-19T05:21:57.556Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpc6rdir","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
22
|
+
{"at":"2026-05-19T05:25:36.159Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpc6w271","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
23
|
+
{"at":"2026-05-19T05:25:36.163Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpc6w276","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
24
|
+
{"at":"2026-05-19T05:25:36.169Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpc6w27c","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
25
|
+
{"at":"2026-05-30T21:07:14.340Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mpsuddsz","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
26
|
+
{"at":"2026-05-30T21:07:14.344Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mpsuddt4","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
27
|
+
{"at":"2026-05-30T21:07:14.354Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mpsuddtc","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
|
28
|
+
{"at":"2026-07-01T01:40:40.888Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"pnpm test","cwd":"/workspace","timeoutS":60,"tenantId":"tenant_a"},"observation":{"type":"shell_output","actionId":"shell_mr1esfue","stdout":"ran pnpm test for tenant_a","stderr":"","exitCode":0,"durationMs":1,"executedOn":"test_sandbox"}}
|
|
29
|
+
{"at":"2026-07-01T01:40:40.939Z","type":"action","tenantId":"tenant_a","action":{"type":"shell","cmd":"rm -rf build","cwd":"/workspace","tenantId":"tenant_a"},"observation":{"type":"error","actionId":"shell_mr1esfum","kind":"ApprovalRequired","message":"Command requires approval: destructive recursive removal","suggestion":"Ask the user for explicit approval, then retry the action with approved: true."}}
|
|
30
|
+
{"at":"2026-07-01T01:40:40.955Z","type":"action","tenantId":"tenant_a","action":{"type":"edit","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","tenantId":"tenant_a"},"observation":{"type":"edit_applied","actionId":"edit_mr1esfw7","path":"main.ts","diff":"--- a/main.ts\n+++ b/main.ts\n@@ -1,2 +1,2 @@\n-const value = 1;\n+const value = 2;\n console.log(value);\n","conflicts":[]}}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
> @nebutra/code-execution@0.1.
|
|
2
|
+
> @nebutra/code-execution@0.1.2 build /Users/tseka_luk/Documents/Nebutra-SaaS-Lab/Nebutra-Sailor/packages/ai/code-execution
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
CLI Building entry: src/cli.ts, src/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v8.5.1
|
|
8
|
+
CLI Using tsup config: /Users/tseka_luk/Documents/Nebutra-SaaS-Lab/Nebutra-Sailor/packages/ai/code-execution/tsup.config.ts
|
|
9
|
+
CLI Target: es2022
|
|
10
|
+
CLI Cleaning output folder
|
|
11
|
+
ESM Build start
|
|
12
|
+
ESM dist/index.js 232.00 B
|
|
13
|
+
ESM dist/cli.js 1.59 KB
|
|
14
|
+
ESM dist/chunk-LLPO5OG2.js 9.10 KB
|
|
15
|
+
ESM dist/index.js.map 71.00 B
|
|
16
|
+
ESM dist/cli.js.map 2.87 KB
|
|
17
|
+
ESM dist/chunk-LLPO5OG2.js.map 19.58 KB
|
|
18
|
+
ESM ⚡️ Build success in 40ms
|
|
19
|
+
DTS Build start
|
|
20
|
+
DTS ⚡️ Build success in 2309ms
|
|
21
|
+
DTS dist/cli.d.ts 13.00 B
|
|
22
|
+
DTS dist/index.d.ts 3.79 KB
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @nebutra/code-execution@0.1.
|
|
2
|
+
> @nebutra/code-execution@0.1.1 test /Users/tseka_luk/Documents/Nebutra-SaaS-Lab/Nebutra-Sailor/packages/ai/code-execution
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
RUN v4.1.4 /Users/tseka_luk/Documents/Nebutra-SaaS-Lab/Nebutra-Sailor/packages/ai/code-execution
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
✓ src/index.test.ts (5 tests) 234ms
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
Test Files 1 passed (1)
|
|
11
|
+
Tests 5 passed (5)
|
|
12
|
+
Start at 09:40:38
|
|
13
|
+
Duration 2.24s (transform 590ms, setup 0ms, import 734ms, tests 234ms, environment 0ms)
|
|
14
14
|
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @nebutra/code-execution
|
|
2
|
+
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Ship the MIT LICENSE file these packages have always declared but never included.
|
|
8
|
+
|
|
9
|
+
Every one of these declares `"license": "MIT"` in its manifest, and npm shows
|
|
10
|
+
that on the registry page — but the tarball carried no licence text at all.
|
|
11
|
+
MIT's own terms require the notice to accompany "all copies or substantial
|
|
12
|
+
portions of the Software", so a consumer vendoring one of these packages had
|
|
13
|
+
nothing to comply with.
|
|
14
|
+
|
|
15
|
+
No code changes. This is the licence text only, published so the tarballs
|
|
16
|
+
match what the manifests have been claiming.
|
|
17
|
+
|
|
18
|
+
`tests/architecture/release-surface.test.ts` now asserts the LICENSE _file_
|
|
19
|
+
exists and is MIT, not just the manifest _field_ — the field-only check is how
|
|
20
|
+
this went unnoticed, and is also how `create-sailor` shipped the full AGPL-3.0
|
|
21
|
+
text under an MIT declaration for its entire published history.
|
|
22
|
+
|
|
23
|
+
- Updated dependencies []:
|
|
24
|
+
- @nebutra/event-log@0.1.2
|
|
25
|
+
- @nebutra/execution-policy@0.1.2
|
|
26
|
+
- @nebutra/sandbox-runtime@0.1.2
|
|
27
|
+
- @nebutra/capability-kit@0.2.2
|
|
28
|
+
- @nebutra/errors@0.1.2
|
|
29
|
+
|
|
30
|
+
## 0.1.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Publish registry package metadata under the MIT license.
|
|
35
|
+
|
|
36
|
+
- Updated dependencies []:
|
|
37
|
+
- @nebutra/capability-kit@0.2.1
|
|
38
|
+
- @nebutra/errors@0.1.1
|
|
39
|
+
- @nebutra/event-log@0.1.1
|
|
40
|
+
- @nebutra/execution-policy@0.1.1
|
|
41
|
+
- @nebutra/sandbox-runtime@0.1.1
|