✨ feat: process-rules becomes niyam (P-49)

Merged
AT
24d ago
+875-494

process-rules becomes niyam: P-49 of W-39 (athya-hq/athya_mono#3210), as the approved plan says (https://claude.ai/artifact/HEQyFtZsxHKDLrt6GqQtEq). The keychain service and the settings file are P-50 (#227), its own pull request after this one.

What changes

  • Package @veda-hq/niyam, bins niyam and process-rules (dist/old-cli.js). Typed by the owner (machine, doctor, onboard, upgrade, cloud-setup, help), the old bin also prints process-rules is now niyam: run niyam …. Hooks and workflows print nothing extra.
  • Messages, the README, CLAUDE.md, the review routine and the shared checks say niyam. The shared checks' default repository is veda-hq/niyam.
  • onboard writes uses: veda-hq/niyam/.github/workflows/checks.yml@v…, counts an athya-hq/process-rules/… pin as a pin, and moves it. The PR title becomes chore(niyam): onboard at v…, and older chore(process-rules) subjects still count.
  • Release workflow: attaches veda-hq-niyam-<v>.tgz, plus a bridge, the same build with name set to @athya-hq/process-rules, as athya-hq-process-rules-<v>.tgz. 0.6.x's upgrade looks for that name. pnpm 12.9.0 refuses a second global package with the bin process-rules (Cannot install: binary "process-rules" would conflict), so the bridge replaces the old package in place.
  • upgrade asks veda-hq/niyam for the newest release and athya-hq/process-rules on a 404, so it works before and after the transfer. Run from the bridge, it runs pnpm remove -g @athya-hq/process-rules and then pnpm add -g of the niyam archive, at the same release when that is the newest, and puts the old package back if the add fails. PATH checks judge niyam, plus any process-rules in a folder with no niyam.
  • Cloud setup script: also links /usr/local/bin/niyam. Releases up to LAST_OLD_RELEASE (0.6.3) keep their old asset name.
  • Reviews' vetted mark is written as niyam vetted, and the process-rules vetted mark is still read.

Kept, since adopters' committed files and hooks name them: the hook commands and launcher (~/.config/process-rules/bin/process-rules), the lock's text, ~/.config/process-rules, PROCESS_RULES_AGENT, .github/workflows/process-rules.yml and its job ids (so the required checks process-rules / Work rules and / PR identity keep their names), process-rules-ref, and .github/process-rules/cloud-setup.sh (no new Setup paste).

Proved: pnpm check (1152 tests, 99.5% lines). The secret scans are clean. In an isolated pnpm home, the real 0.6.1 release was installed, then this tree's bridge archive (in place, both bins), then pnpm remove and pnpm add of @veda-hq/niyam (both bins, one package).

For the coordinator: no version bump here. The release that ships this is the first niyam release. It should come after the repo transfer, since its links name veda-hq/niyam. Its README install line becomes https://github.com/veda-hq/niyam/releases/download/v<v>/veda-hq-niyam-<v>.tgz. If another release is cut before this merges, raise LAST_OLD_RELEASE in src/cloud.ts to it.

Slice: #226

🤖 Generated with Claude Code


Summary by cubic

Renames the product from process-rules to niyam (P-49, per the approved W-39 plan): the package becomes @veda-hq/niyam, with niyam as the main bin and process-rules kept as a second bin that tells owners to run niyam ….

Behavior

  • Messages, docs, the review routine, and the shared checks now say niyam, and upgrade downloads from the repository that answered for the newest release, falling back to athya-hq/process-rules on a 404.
  • onboard pins veda-hq/niyam, moves an old athya-hq/process-rules pin, and titles its PR chore(niyam): onboard at v… (older subjects still count).
  • Releases attach the new tarball plus a bridge archive built as @athya-hq/process-rules; the niyam upgrade moves an old install to the new package, restoring the old one if the add fails.
  • The cloud setup links /usr/local/bin/niyam, releases up to 0.6.3 keep their old asset name, and the reviews vetted mark is now niyam vetted while old marks still read.

Kept, since adopters' committed files and hooks name them: the process-rules hook commands and launcher, ~/.config/process-rules, PROCESS_RULES_AGENT, .github/workflows/process-rules.yml and its job ids, process-rules-ref, and the cloud-setup path.

No version bump here; the release that ships this is the first niyam release and should come after the repository transfer.