Skip to content

Commit c6a0e74

Browse files
committed
chore: rename libsandbox to secure-exec and fix playground browser bundle
1 parent 4511a7d commit c6a0e74

11 files changed

Lines changed: 13 additions & 12 deletions

File tree

examples/ai-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/example-ai-sdk",
2+
"name": "@secure-exec/example-ai-sdk",
33
"private": true,
44
"type": "module",
55
"scripts": {

examples/codemod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/example-codemod",
2+
"name": "@secure-exec/example-codemod",
33
"private": true,
44
"type": "module",
55
"scripts": {

examples/hono/loader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/example-hono-loader",
2+
"name": "@secure-exec/example-hono-loader",
33
"private": true,
44
"type": "module",
55
"scripts": {

examples/hono/runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/example-hono-runner",
2+
"name": "@secure-exec/example-hono-runner",
33
"private": true,
44
"type": "module",
55
"dependencies": {

examples/just-bash/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/example-just-bash",
2+
"name": "@secure-exec/example-just-bash",
33
"private": true,
44
"type": "module",
55
"scripts": {

examples/shared/src/sandbox-runner-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function prepareRunnerInTempDir(
6464
sourceDir: string,
6565
entryRelativePath: string = path.join("src", "index.ts"),
6666
): Promise<{ tempDir: string; entryPath: string }> {
67-
const tempDir = await mkdtemp(path.join(tmpdir(), "libsandbox-hono-runner-"));
67+
const tempDir = await mkdtemp(path.join(tmpdir(), "secure-exec-hono-runner-"));
6868

6969
await cp(sourceDir, tempDir, {
7070
recursive: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "libsandbox",
2+
"name": "secure-exec-monorepo",
33
"version": "0.1.0",
44
"private": true,
55
"license": "Apache-2.0",

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@libsandbox/playground",
2+
"name": "@secure-exec/playground",
33
"private": true,
44
"type": "module",
55
"scripts": {

packages/playground/scripts/build-worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async function buildWorkerBundle(): Promise<void> {
3434

3535
await build({
3636
bundle: true,
37+
external: ["path", "fs", "module", "util"],
3738
format: "esm",
3839
legalComments: "none",
3940
minify: true,

progress.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,12 +708,12 @@ PRD: ralph/kernel-hardening (46 stories)
708708
## 2026-03-17 - US-044
709709
- What was implemented: Codemod example project demonstrating safe code transformations in secure-exec sandbox
710710
- Files changed:
711-
- examples/codemod/package.json (new) — @libsandbox/example-codemod package with tsx dev script
711+
- examples/codemod/package.json (new) — @secure-exec/example-codemod package with tsx dev script
712712
- examples/codemod/src/index.ts (new) — reads source → writes to VFS → executes codemod in sandbox → reads transformed result → prints diff
713713
- **Learnings for future iterations:**
714714
- esbuild (used by tsx) cannot parse template literal backticks or `${` inside String.raw templates — use `String.fromCharCode(96)` and split `'$' + '{'` to work around
715715
- Examples don't need tsconfig.json — they inherit from the workspace and use tsx for runtime TS execution
716-
- Example naming convention: `@libsandbox/example-<name>` with `"private": true` and `"type": "module"`
716+
- Example naming convention: `@secure-exec/example-<name>` with `"private": true` and `"type": "module"`
717717
- InMemoryFileSystem methods (readTextFile, writeFile) are async (return Promises) — must await them on the host side
718718
---
719719

0 commit comments

Comments
 (0)