@hasna/hooks 0.9.1 → 0.9.3
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 +10 -0
- package/bin/hooks-mcp.js +295 -98
- package/bin/index.js +430 -168
- package/bin/serve.js +11 -0
- package/dist/index.js +302 -104
- package/dist/lib/codex-settings.d.ts +3 -0
- package/dist/lib/installer.d.ts +5 -2
- package/dist/lib/mementos-options.d.ts +16 -0
- package/dist/lib/registration.d.ts +1 -0
- package/hooks/hook-mementos-context/README.md +106 -0
- package/hooks/hook-mementos-context/src/hook.ts +116 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -48,6 +48,16 @@ tools return compact summaries by default, while explicit flags such as
|
|
|
48
48
|
`compact:false`, `verbose:true`, or a detail tool like `hooks_info` return full
|
|
49
49
|
records.
|
|
50
50
|
|
|
51
|
+
## Optional Mementos prompt context
|
|
52
|
+
|
|
53
|
+
`hooks install mementos-context --target codex` registers a native prompt hook.
|
|
54
|
+
Enable it in the calling shell with `HOOKS_MEMENTOS_ENABLED=1`; set
|
|
55
|
+
`HOOKS_MEMENTOS_PROJECT` to an existing Mementos project. Provider judgments are
|
|
56
|
+
separately opt-in. The hook returns bounded, quoted memory data and continues
|
|
57
|
+
on errors. See [setup, scope and provider options](hooks/hook-mementos-context/README.md).
|
|
58
|
+
Codex requires review and trust of the exact registration through `/hooks`.
|
|
59
|
+
Claude Code and Codewith also support this hook through their explicit targets.
|
|
60
|
+
|
|
51
61
|
## Codewith-native hooks
|
|
52
62
|
|
|
53
63
|
@hasna/hooks includes unprefixed Codewith-native hook names:
|