fix(prompts): restore all 6 observation types for better search granularity

Restored full type system: bugfix, feature, refactor, change, discovery, decision.
This enables more precise search queries like "show all bugfixes in auth" vs generic "show all changes".

Also updated README to reflect current behavior (10 summaries with three-tier verbosity).

Changes:
- prompts.ts: Expanded type field from 3 to 6 types with clear definitions
- CLAUDE.md: Fixed context hook description (3 → 10 summaries)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2025-10-21 23:47:01 -04:00
parent 8b5e5efeb5
commit 3cb003f4e4
3 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ Claude-mem integrates with Claude Code through 5 lifecycle hooks:
1. **SessionStart Hook** (`context-hook`)
- Injects context from previous sessions
- Auto-starts PM2 worker service
- Retrieves last 3 session summaries
- Retrieves last 10 session summaries with three-tier verbosity (v4.2.0)
- Fixed in v4.1.0 to use proper JSON hookSpecificOutput format
2. **UserPromptSubmit Hook** (`new-hook`)
+7 -4
View File
@@ -406,12 +406,15 @@ Output observations using this XML structure:
\`\`\`xml
<observation>
<type>[ change | discovery | decision ]</type>
<type>[ bugfix | feature | refactor | change | discovery | decision ]</type>
<!--
**type**: MUST be EXACTLY one of these 3 options (no other values allowed):
- change: modifications to code, config, or documentation
**type**: MUST be EXACTLY one of these 6 options (no other values allowed):
- bugfix: something was broken, now fixed
- feature: new capability or functionality added
- refactor: code restructured, behavior unchanged
- change: generic modification (docs, config, misc)
- discovery: learning about existing system
- decision: choosing an approach and why it was chosen
- decision: architectural/design choice with rationale
-->
<title>[**title**: Short title capturing the core action or topic]</title>
<subtitle>[**subtitle**: One sentence explanation (max 24 words)]</subtitle>
+7 -4
View File
@@ -63,12 +63,15 @@ Output observations using this XML structure:
\`\`\`xml
<observation>
<type>[ change | discovery | decision ]</type>
<type>[ bugfix | feature | refactor | change | discovery | decision ]</type>
<!--
**type**: MUST be EXACTLY one of these 3 options (no other values allowed):
- change: modifications to code, config, or documentation
**type**: MUST be EXACTLY one of these 6 options (no other values allowed):
- bugfix: something was broken, now fixed
- feature: new capability or functionality added
- refactor: code restructured, behavior unchanged
- change: generic modification (docs, config, misc)
- discovery: learning about existing system
- decision: choosing an approach and why it was chosen
- decision: architectural/design choice with rationale
-->
<title>[**title**: Short title capturing the core action or topic]</title>
<subtitle>[**subtitle**: One sentence explanation (max 24 words)]</subtitle>