@senomas/pi-git-hat 0.2.3 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/git-hat.ts +408 -910
- package/lib/branch-history.ts +143 -0
- package/lib/config.ts +103 -0
- package/lib/git-ui.ts +217 -0
- package/lib/paths.ts +79 -0
- package/lib/role-file.ts +194 -0
- package/lib/todo-utils.ts +244 -0
- package/lib/tool-enforcement.ts +91 -0
- package/lib/types.ts +87 -0
- package/package.json +1 -1
- package/roles/_default.md +26 -0
- package/roles/roles.json +97 -5
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ No other dependencies needed. On first startup, role prompts and a default `role
|
|
|
16
16
|
|
|
17
17
|
- **Role-based branch switching** — `/hat` TUI to pick branches grouped by role
|
|
18
18
|
- **Permission enforcement** — each role can only write to certain paths
|
|
19
|
+
- **Tool enforcement** — per-role allow/block rules for commands ([docs](docs/tool-enforcement.md))
|
|
19
20
|
- **System prompt injection** — role instructions injected automatically per session
|
|
20
21
|
- **Ancestry checking** — `/hatt` validates branch parent chain before work
|
|
21
22
|
- **Auto-seeding** — role prompts copied from bundled `roles/` to project `.pi/` on first use
|