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
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 10
labels:
- dependencies
commit-message:
prefix: "chore(deps):"

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
labels:
- dependencies
- ci
commit-message:
prefix: "ci(deps):"
17 changes: 17 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Summary

Brief description of the changes.

## Changes

-

## Testing

- [ ] `bun run build` passes
- [ ] `bun test` passes
- [ ] Manual testing done (if applicable)

## Notes

Any additional context or trade-offs worth mentioning.
30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CodeQL

on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 6 * * 1'

jobs:
analyze:
name: Analyze TypeScript
runs-on: ubuntu-latest

permissions:
security-events: write
contents: read

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
15 changes: 15 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ If tests fail, identify whether failures are pre-existing vs introduced by your
- Use the **Nuclear Cleanup** sequence before and after manual testing to avoid leftover tmux sessions, worktrees, branches, and state files.
- Follow plan safety rules exactly: `tmc-` test naming, no remote push flows during testing (`mc_pr` is structural only), and explicit SHA-based resets.

## CI & GitHub Workflows

- **CI** (`.github/workflows/ci.yml`) — Runs `bun run build` and `bun test` on PRs and pushes to `main`.
- **Conventional Commits** (`.github/workflows/conventional-commits.yml`) — Validates PR titles follow the convention.
- **CodeQL** (`.github/workflows/codeql.yml`) — Static analysis for TypeScript; runs on PRs, pushes to `main`, and weekly.
- **Publish** (`.github/workflows/publish.yml`) — semantic-release to npm on `main`.
- **Dependabot** (`.github/dependabot.yml`) — Opens weekly PRs for npm and GitHub Actions dependency updates. These use `chore(deps):` and `ci(deps):` commit prefixes.

## Branch & Merge Rules

- Direct pushes to `main` are blocked; all changes go through PRs.
- Merge commits are disabled — only **squash** and **rebase** merges are allowed.
- PRs require 1 approving review, passing `build-and-test` and `conventional-commits` checks, and all conversations resolved.
- A PR template (`.github/pull_request_template.md`) is provided — fill it out when opening PRs.

## Release Notes for Agents

- npm package output is `dist/` only (`package.json -> files`).
Expand Down
Loading