✨ feat: process-rules becomes niyam (P-49)
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, binsniyamandprocess-rules(dist/old-cli.js). Typed by the owner (machine,doctor,onboard,upgrade,cloud-setup,help), the old bin also printsprocess-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. onboardwritesuses: veda-hq/niyam/.github/workflows/checks.yml@v…, counts anathya-hq/process-rules/…pin as a pin, and moves it. The PR title becomeschore(niyam): onboard at v…, and olderchore(process-rules)subjects still count.- Release workflow: attaches
veda-hq-niyam-<v>.tgz, plus a bridge, the same build withnameset to@athya-hq/process-rules, asathya-hq-process-rules-<v>.tgz. 0.6.x'supgradelooks for that name. pnpm 12.9.0 refuses a second global package with the binprocess-rules(Cannot install: binary "process-rules" would conflict), so the bridge replaces the old package in place. upgradeasksveda-hq/niyamfor the newest release andathya-hq/process-ruleson a 404, so it works before and after the transfer. Run from the bridge, it runspnpm remove -g @athya-hq/process-rulesand thenpnpm add -gof the niyam archive, at the same release when that is the newest, and puts the old package back if the add fails. PATH checks judgeniyam, plus anyprocess-rulesin a folder with noniyam.- Cloud setup script: also links
/usr/local/bin/niyam. Releases up toLAST_OLD_RELEASE(0.6.3) keep their old asset name. - Reviews' vetted mark is written as
niyam vetted, and theprocess-rules vettedmark 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
upgradedownloads from the repository that answered for the newest release, falling back toathya-hq/process-ruleson a 404. onboardpinsveda-hq/niyam, moves an oldathya-hq/process-rulespin, and titles its PRchore(niyam): onboard at v…(older subjects still count).- Releases attach the new tarball plus a bridge archive built as
@athya-hq/process-rules; the niyamupgrademoves 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 nowniyam vettedwhile 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.