@uge/payo 2.1.3 → 2.2.1
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 +22 -0
- package/dist/index.js +246 -198
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -233,6 +233,28 @@ if you opt in, it asks when to run — before every commit or before pushing —
|
|
|
233
233
|
agent uses it at that point to check your pending change against the relevant project
|
|
234
234
|
skills and flag anything that conflicts.
|
|
235
235
|
|
|
236
|
+
### Guardrails enforced by hooks, not just prose
|
|
237
|
+
|
|
238
|
+
Skills are guidance the assistant _should_ follow — but an agent can skip prose. So
|
|
239
|
+
when you enable a guardrail, Payo also writes the hook that makes it fire regardless:
|
|
240
|
+
|
|
241
|
+
- **A git hook (mechanical, hard block).** When you turn on the gitleaks scan or the
|
|
242
|
+
verify-before-commit/push step, Payo writes a **`lefthook.yml`** (or, if your repo
|
|
243
|
+
already uses **husky**, **pre-commit**, or native `.git/hooks`, merges into _that_
|
|
244
|
+
runner instead — never clobbering your setup). It runs `gitleaks` and your test
|
|
245
|
+
command at the stage you chose and **blocks the commit/push on failure** — for every
|
|
246
|
+
tool, and for a human typing `git`. Payo writes the config; you wire it up once with
|
|
247
|
+
`lefthook install` (Payo tells you the command; it installs nothing itself).
|
|
248
|
+
- **A native tool hook (soft confirm).** For **Claude, Cursor, and Copilot**, Payo
|
|
249
|
+
writes a `PreToolUse` hook that pops a **confirm prompt** right when the agent runs
|
|
250
|
+
`git commit` / `git push` (to run change-audit or confirm the push) or a destructive
|
|
251
|
+
query (DB-safety). It stores no state and runs no model — it just makes the prompt
|
|
252
|
+
appear so the guardrail isn't silently skipped. Tools without a soft-confirm hook
|
|
253
|
+
(Codex, Antigravity, Windsurf) are covered by the git hook above.
|
|
254
|
+
|
|
255
|
+
Both are **idempotent** — re-running Payo never duplicates a hook — and are written
|
|
256
|
+
only for the guardrails you actually enabled.
|
|
257
|
+
|
|
236
258
|
The question Payo asks — _"Which agent CLI should Payo use to generate content?"_ —
|
|
237
259
|
picks only **which installed CLI authors the content**. The output above works with
|
|
238
260
|
every skills-compatible tool regardless of that choice.
|