Skip to content

Commit 4bdcdb9

Browse files
Initial import of mayflower-sandboxjs
0 parents  commit 4bdcdb9

57 files changed

Lines changed: 8408 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*.{ts,js,mjs,json,md,yml,yaml}]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Bug report
2+
description: Report a defect in the sandbox, workers, build, or demo.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: textarea
7+
id: summary
8+
attributes:
9+
label: Summary
10+
description: What is broken?
11+
validations:
12+
required: true
13+
- type: textarea
14+
id: reproduction
15+
attributes:
16+
label: Reproduction
17+
description: Exact steps, commands, or code needed to reproduce the problem.
18+
placeholder: |
19+
1. pnpm install
20+
2. pnpm run ...
21+
3. Observe ...
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: expected
26+
attributes:
27+
label: Expected behavior
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: environment
32+
attributes:
33+
label: Environment
34+
description: Browser, OS, Node, pnpm, and any relevant package versions.
35+
- type: textarea
36+
id: logs
37+
attributes:
38+
label: Logs or screenshots
39+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security issue
4+
url: https://github.com/mayflower/mayflower-sandboxjs/security/advisories/new
5+
about: Report vulnerabilities privately through GitHub Security Advisories.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Feature request
2+
description: Propose a change to the sandbox API, runtime, or examples.
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: textarea
7+
id: problem
8+
attributes:
9+
label: Problem
10+
description: What limitation are you hitting?
11+
validations:
12+
required: true
13+
- type: textarea
14+
id: proposal
15+
attributes:
16+
label: Proposal
17+
description: What should change?
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: alternatives
22+
attributes:
23+
label: Alternatives considered
24+
- type: textarea
25+
id: context
26+
attributes:
27+
label: Additional context

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
open-pull-requests-limit: 10

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Summary
2+
3+
-
4+
5+
## Verification
6+
7+
- [ ] `pnpm run typecheck`
8+
- [ ] `pnpm run test`
9+
- [ ] `pnpm run build`
10+
- [ ] `pnpm run test:browser`
11+
- [ ] `pnpm run example:deepagent:build`
12+
13+
## Notes
14+
15+
-

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 30
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: pnpm
30+
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Install Playwright browsers
35+
run: pnpm exec playwright install --with-deps chromium firefox webkit
36+
37+
- name: Typecheck
38+
run: pnpm run typecheck
39+
40+
- name: Unit tests
41+
run: pnpm run test
42+
43+
- name: Build package
44+
run: pnpm run build
45+
46+
- name: Browser tests
47+
run: pnpm run test:browser
48+
49+
- name: Build DeepAgents example
50+
run: pnpm run example:deepagent:build

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
dist
3+
coverage
4+
playwright-report
5+
test-results
6+
examples/vite-demo/dist
7+
examples/deepagents-browser-demo/dist
8+
.playwright-cli
9+
output
10+
.DS_Store
11+
deepagents-*.tgz

CODE_OF_CONDUCT.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Code of Conduct
2+
3+
This repository expects straightforward, respectful collaboration.
4+
5+
## Expected behavior
6+
7+
- Assume good faith.
8+
- Be clear and specific in technical discussion.
9+
- Critique code and decisions, not people.
10+
- Keep feedback professional, even during disagreement.
11+
12+
## Unacceptable behavior
13+
14+
- Harassment, discrimination, or personal attacks.
15+
- Repeated bad-faith arguing or deliberate disruption.
16+
- Publishing private information without permission.
17+
18+
## Maintainer enforcement
19+
20+
Maintainers may edit, hide, lock, or remove content that violates this policy and may restrict participation when needed to keep the project workable.
21+
22+
For private concerns, use the contact path in [SECURITY.md](/Users/johann/src/ml/mayflower-sandboxjs/SECURITY.md).

0 commit comments

Comments
 (0)