Provide a single entry point for coding agents. This file links to package-level guides and highlights repo-wide constraints and workflows.
packages/extension/— Figma plugin + MCP tools implementationpackages/mcp-server/— MCP server runtimepackages/shared/— shared types and contractspackages/plugins/— plugin-side code and transforms
packages/extension/AGENTS.mdpackages/mcp-server/AGENTS.mdpackages/shared/AGENTS.mdpackages/plugins/AGENTS.md
- Package manager:
pnpm - Prefer repo-level scripts unless a package explicitly documents otherwise.
- When creating commits, use Conventional Commits (for example:
feat: ...,fix: ...,docs: ...,chore: ...).
- Typecheck:
pnpm typecheck - Lint (and format):
pnpm lint:fix - Test (watch):
pnpm test - Test (run):
pnpm test:run - Test (coverage):
pnpm test:coverage - Extension node tests:
pnpm --filter @tempad-dev/extension test:node - Extension browser tests:
pnpm --filter @tempad-dev/extension test:browser - Extension browser setup:
pnpm --filter @tempad-dev/extension test:setup
TESTING.mddocs/testing/architecture.mddocs/extension/requirements.mddocs/extension/design.md
- Keep changes minimal and consistent with existing style.
- Avoid adding new global dependencies unless explicitly requested or approved.
- Package manager:
pnpm(workspace scripts are commonly run aspnpm -r ...). - Language: TypeScript.
- Extension: Vue 3 + WXT (Web Extension Toolkit).
- MCP server: Node.js 18+ +
@modelcontextprotocol/sdk+ WebSocket transport. - Shared contracts:
zodschemas. - Build tool (non-extension packages):
tsdown.
Run these at repo root unless noted.
- Dev extension:
pnpm dev - Dev site:
pnpm dev:site - Build everything:
pnpm build - Build site:
pnpm build:site - Build extension:
pnpm build:ext - Build plugins:
pnpm build:plugins - Build MCP:
pnpm build:mcp - Typecheck all packages:
pnpm typecheck - Lint all packages:
pnpm lint/ auto-fix:pnpm lint:fix - Test all packages:
pnpm test:run - Coverage report:
pnpm test:coverage - Format:
pnpm format - Zip extension artifact:
pnpm zip
Pick the checks that match your change.
- Always
pnpm typecheckpnpm lint(orpnpm lint:fix)pnpm test:run
- Extension UI / codegen
pnpm dev- In Figma, open TemPad Dev panel and validate the impacted section (e.g. “Inspect → Code”).
- Extension build / packaging
pnpm build:extpnpm zip
- Rewrite subsystem
pnpm --filter @tempad-dev/extension build:rewrite- Optional:
pnpm --filter @tempad-dev/extension tsx scripts/check-rewrite.ts- Requires
FIGMA_EMAIL,FIGMA_PASSWORD,FIGMA_FILE_KEY.
- Requires
- MCP schemas / tool behavior
- If you change tool schemas/contracts: update
packages/sharedfirst, thenpackages/mcp-server, thenpackages/extension. - Re-check payload limits and omission rules; see
docs/extension/requirements.mdanddocs/extension/design.md.
- Testing runbook and required checks:
TESTING.md. - Testing architecture and coverage model:
docs/testing/architecture.md. - Root coverage scope is configured in
vitest.config.tsas the single source of truth. - Root coverage excludes build artifacts (
**/dist/**,**/.output/**) to avoid polluted reports. - Root coverage provider is
istanbulto avoid V8 remap parse failures under Vite 8 dependency trees. - Extension browser tests run in Playwright via
packages/extension/vitest.browser.config.ts. - Do not introduce jsdom-based tests in this repository.