Skip to content

Promoter

Defined in: src/promote.ts:34

new Promoter(deps): Promoter

Defined in: src/promote.ts:42

PromoterDeps

Promoter

promote(id): Promise<PromoteResult>

Defined in: src/promote.ts:159

string

Promise<PromoteResult>


promoteGlobal(rule): Promise<PromoteResult>

Defined in: src/promote.ts:61

Write a single cross-repo rule into the user-global ~/.claude/CLAUDE.md (issue #872). No forge/branch/PR — a direct, operator-confirmed write to the home-dir file. Reads the existing Shepherd-owned block, unions the rule in (dedup, order-preserving) and rewrites. Idempotent: a no-op (no write) when the rule is already present. homedir() is the server process’s home — see the issue’s home-dir-trust caveat.

string

Promise<PromoteResult>


resyncPromoted(repoPath): Promise<PromoteResult>

Defined in: src/promote.ts:78

string

Promise<PromoteResult>