@promptvet/hook 0.1.0 → 0.1.2
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 +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
A Claude Code hook (`PreToolUse` and `UserPromptSubmit`) that gives you a local, queryable prompt history and audit trail — observability for your AI agent, backed by SQLite, without touching enforcement.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@promptvet/hook)
|
|
10
|
-
[](
|
|
10
|
+
[](https://opensource.org/licenses/MIT)
|
|
11
11
|
[](https://nodejs.org)
|
|
12
12
|
[](#what-it-is)
|
|
13
|
-
|
|
13
|
+

|
|
14
14
|
|
|
15
|
-
*Wires [`promptvet-core`](
|
|
15
|
+
*Wires [`promptvet-core`](https://www.npmjs.com/package/promptvet-core)'s `scan` into Claude Code's hook system, so every prompt you (or Claude) submit gets scored automatically — and you can look back at the history any time.*
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ A Claude Code hook (`PreToolUse` and `UserPromptSubmit`) that gives you a local,
|
|
|
22
22
|
|
|
23
23
|
`@promptvet/hook` is a **diary, not a gate.** It listens on Claude Code's hook events, scans each prompt in the background with `promptvet-core`, and records the result to a local history database. It never blocks, never denies, never adds latency to what you were doing — `check` always exits `0`, no matter what it finds.
|
|
24
24
|
|
|
25
|
-
If you want prompt quality *enforcement* (deny on critical issues before a tool fires), that's a separate, not-yet-built mode — see [promptvet-core's
|
|
25
|
+
If you want prompt quality *enforcement* (deny on critical issues before a tool fires), that's a separate, not-yet-built mode — see the Roadmap section of [`promptvet-core`](https://www.npmjs.com/package/promptvet-core)'s README. This package is the observability half: **know what you've been sending, after the fact, without lifting a finger.**
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
@@ -203,12 +203,12 @@ A local SQLite database at `~/.promptvet/history.db`, created automatically on f
|
|
|
203
203
|
|
|
204
204
|
## Contributing
|
|
205
205
|
|
|
206
|
-
Read
|
|
206
|
+
Read `CLAUDE.md` in the repo root first — same TDD contract as `promptvet-core`, plus this package's own rules (the diary-safety guarantee, the `system`-role/role-capture rule doesn't apply here but the "verify real payloads, don't guess" discipline very much does).
|
|
207
207
|
|
|
208
208
|
---
|
|
209
209
|
|
|
210
210
|
<div align="center">
|
|
211
211
|
|
|
212
|
-
**MIT Licensed** · Part of the [PromptVet](
|
|
212
|
+
**MIT Licensed** · Part of the [PromptVet](https://www.npmjs.com/package/promptvet-core) family.
|
|
213
213
|
|
|
214
214
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptvet/hook",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Diary-mode hook: scans prompts with promptvet-core in the background and records results to local history. Not a gate.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/better-sqlite3": "^7.6.13",
|
|
38
38
|
"@types/node": "^25.9.3",
|
|
39
|
-
"@vitest/coverage-v8": "^
|
|
39
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
40
40
|
"typescript": "^5.5.0",
|
|
41
|
-
"vitest": "^
|
|
41
|
+
"vitest": "^4.1.9"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22"
|