Guidance for AI agents (and humans) working in mochi-web.
mochi-web is a TypeScript/JS app in the Console Labs / Mochi product line. Package manager: pnpm.
- Install:
pnpm install --frozen-lockfile - build:
pnpm build - dev:
pnpm dev - start:
pnpm start
- Secrets come from env (
envmodule /process.env), NEVER hardcoded. Discord client/user/role IDs in source are public snowflakes, not secrets. - Follow the existing lint/format config; feature branches off the default branch.
- gitleaks: 1 raw hit(s). Reviewed: the
discord-client-idhits are public Discord snowflake IDs (user/role/guild IDs, not secrets), and the api-key hits are env-sourced keys / default IDs, not committed credentials. (1 private-key). Allowlisted (test paths + snowflake numerics) in .gitleaks.toml; verified no real credential is hardcoded (keys read fromenv). - CI (
.github/workflows/security.yml) runs gitleaks (with.gitleaks.tomlallowlist) +pnpm audit --audit-level=highon PRs. - Dependency audit:
pnpm audit --audit-level=high; Dependabot enabled. Bump deliberately.