Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
javascript-sandbox-tests:
name: JavaScript Sandbox Tests
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run tests
working-directory: sandboxes/js
run: pnpm vitest run

python-sandbox-tests:
name: Python Sandbox Tests
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install Python dependencies
working-directory: sandboxes/python
run: pip install -r requirements.txt -q

- name: Run tests
working-directory: sandboxes/python
run: pnpm vitest run
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,13 @@ dist
# Vite logs files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*


# DS Store
.DS_Store


# Capsule
.capsule/


7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
"description": "Sandboxed bash for agents",
"license": "Apache-2.0",
"packageManager": "pnpm@10.21.0",
"type": "commonjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@capsule-run/cli": "^0.8.5",
"@capsule-run/sdk": "^0.8.5"
},
"devDependencies": {
"esbuild": "^0.28.0",
"typescript": "^6.0.2",
"@types/node": "^25.5.2",
"@types/node": "^25.2.3",
"vitest": "^4.1.4"
}
}
20 changes: 20 additions & 0 deletions packages/bash-types/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@capsule-run/bash-types",
"version": "0.1.0",
"description": "",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.21.0",
"devDependencies": {
"tsup": "^8.0.0"
}
}
Loading
Loading