Guidelines for committing, changesets, and maintaining quality across the monorepo.
We use Conventional Commits with package scope for clarity across the monorepo.
<type>(<package>): <summary>
<body>
Where:
- type —
feat,fix,refactor,test,docs,chore,perf - package — one of:
nudeer,embedeer,seedeer,chattydeer, orroot(for workspace-wide changes) - summary — imperative, present tense, lowercase, no period. ~50 chars max.
- body — optional. Explain what changed and why, not how.
feat(embedeer): add GPU memory auto-offload after idle timeout
When a model goes unused for --idle-timeout ms, release GPU memory
and reload on next request. Useful for shared servers handling bursty load.
fix(seedeer): correct proto path for gRPC server
The server was loading nudeer's proto file instead of seedeer's,
causing service name mismatch. Now uses seedeer/src/shared/model.proto.
refactor(chattydeer): consolidate explainer template logic
Extract 13 domain template renderers into shared switch. No behavior change.
docs(root): update README to reflect monorepo structure
Clarify that nudeer is the shared infrastructure layer.
chore(root): update TypeScript to 6.0.2
If a change affects multiple packages, list them: feat(embedeer,seedeer): or create separate commits.
All tests must pass before merging.
pnpm install # ensure deps are current
pnpm test # runs all tests for all affected packages
pnpm run lint # eslint (if configured per package)pnpm testruns on every PR and before merge tomain- All packages must pass; a failure blocks merge
- Live tests (requiring GPU/model downloads) can be skipped in CI, but unit tests are required
- Flaky tests must be fixed or marked as
skip()with a comment linking the issue
- Place tests in
test/*.test.js(Node.js native test runner, no external frameworks) - Use
import { test } from 'node:test'andimport assert from 'node:assert' - Mock external dependencies (models, network calls) to keep tests fast
- One test file per module:
test/foo.test.jsforsrc/foo.js
We use Changesets to manage versioning and publishing. A changeset is a .md file in .changeset/ describing which packages change and by how much.
✅ CREATE a changeset for:
- User-facing features (
feat) - Bug fixes (
fix) - Refactors that change public API or behavior (
refactor) - New exports, commands, or options
❌ SKIP changesets for:
- Documentation-only changes (except
README.mdchanges) - Internal refactors that don't change public API
- Dependency updates (unless they're breaking)
- Chore commits (e.g., CI config, linting)
- If
README.mdchanges for a package, create a patch changeset (user-facing documentation)
pnpm changesetThis opens an interactive prompt:
- Select affected packages
- Choose bump type (patch/minor/major)
- Describe the change
A .changeset/<id>.md file is created. Commit it with your PR.
Is it a breaking change?
├─ YES → MAJOR (but discuss before committing — see Breaking Changes below)
└─ NO → Is it a new public API (export, option, method)?
├─ YES → MINOR
└─ NO → Is it a fix or internal behavior change?
├─ YES → PATCH
└─ NO → (no changeset needed)
MINOR changeset (new feature):
"@jsilvanus/embedeer": minor
"@jsilvanus/seedeer": minor
---
Add optional `idleTimeout` to socket/gRPC servers for automatic model unloading.PATCH changeset (bug fix):
"@jsilvanus/seedeer": patch
---
Fix gRPC server proto path resolution.README.md PATCH changeset:
"@jsilvanus/embedeer": patch
---
Document new GPU memory auto-offload feature in README.We avoid breaking changes. When necessary, they require special approval.
- Discuss in an issue or PR comment — explain why it's necessary, what it breaks, and migration path
- Add a deprecation period (if possible) — warn users in a minor release, break in the next major
- Document migration path — provide before/after examples and a migration guide in
CHANGELOG.md - Update all docs —
CLAUDE.md,README.md, type definitions, examples
- [ ] Deprecation period considered (and documented, or discussed why not needed)
- [ ] Migration guide added to docs or CHANGELOG
- [ ] All public exports updated / type definitions changed
- [ ] README examples updated
- [ ] CLAUDE.md updated with new behavior
- [ ] MAJOR bump selected in changeset- Removing or renaming a public export
- Changing a required parameter signature
- Removing a CLI flag or changing its behavior
- Changing the default value of an option in a way that alters behavior
- Default: no comments. Well-named functions and variables are self-documenting.
- Add a comment only if:
- The why is non-obvious (e.g., "gRPC proto must be seedeer's, not nudeer's")
- There's a subtle invariant or edge case
- You're working around a known bug or limitation
- Performance matters and the code is unintuitive
Update if you:
- Add a new command (
pnpm run X) - Add a new CLI flag
- Change execution modes or worker behavior
- Restructure the codebase
Update if you:
- Add a new public export or class
- Add a new feature (captioning, embeddings, etc.)
- Change the primary use case or architecture
- Add or remove installation requirements
Readme updates warrant a PATCH changeset (user-facing documentation).
All public exports must have TypeScript definitions:
- For ES module files, add
src/foo.d.tsor use JSDoc@typedef - Type
anyis acceptable for opaque LLM outputs (unavoidable in practice) - Document non-obvious parameter types with JSDoc
The CHANGELOG.md is auto-generated by Changesets on release. You don't edit it directly. Instead:
- Write clear, user-facing changeset descriptions (go in the PR)
- Breaking changes get a
BREAKING:prefix in the changeset - Migration guides go in separate docs, linked from the changeset
Before merging to main:
- All tests pass —
pnpm test(no skips except live tests) - Commit messages follow convention — Conventional Commits with package scope
- Changeset created — unless it's docs-only (excluding README.md) or chore
- README.md updated — if user-facing (features, CLI, exports)
- CLAUDE.md updated — if architecture or commands changed
- Type definitions present — all public exports typed
- No breaking changes — or special approval + migration guide
# Install workspace dependencies
pnpm install
# Test all packages
pnpm test
# Build all packages (no-op for most; TypeScript packages like chattydeer build)
pnpm run build
# Lint all packages (if configured)
pnpm run lint
# Create a changeset
pnpm changeset
# Test a single package
pnpm --filter @jsilvanus/embedeer test
# Run a script in a single package
pnpm --filter @jsilvanus/seedeer daemonHandled by .github/workflows/release.yml — no manual steps needed except pnpm changeset.
- You commit: changeset file included
- On merge to main: release workflow runs
pnpm test, then opens "Version Packages" PR - Merge "Version Packages" PR: bumps all affected packages, updates CHANGELOG, publishes to npm
Each package publishes independently (no linked versioning).
For the release workflow to create pull requests, GitHub Actions must have the proper permissions:
- Go to repository Settings → Actions → General
- Under "Workflow permissions", select "Read and write permissions"
- Check "Allow GitHub Actions to create and approve pull requests"
Without these settings, the release workflow will fail when trying to create the "Version Packages" PR.
- See root
CLAUDE.mdfor workspace structure - See package-specific
CLAUDE.mdfor internal architecture - See
.changeset/for changeset config (e.g., bump rules)