Files
claude-mem/plugin/ui/CLAUDE.md
T
Alex Newman 2659ec3231 fix: Claude Code 2.1.1 compatibility + log-level audit + path validation fixes (#614)
* Refactor CLAUDE.md and related files for December 2025 updates

- Updated CLAUDE.md in src/services/worker with new entries for December 2025, including changes to Search.ts, GeminiAgent.ts, SDKAgent.ts, and SessionManager.ts.
- Revised CLAUDE.md in src/shared to reflect updates and new entries for December 2025, including paths.ts and worker-utils.ts.
- Modified hook-constants.ts to clarify exit codes and their behaviors.
- Added comprehensive hooks reference documentation for Claude Code, detailing usage, events, and examples.
- Created initial CLAUDE.md files in various directories to track recent activity.

* fix: Merge user-message-hook output into context-hook hookSpecificOutput

- Add footer message to additionalContext in context-hook.ts
- Remove user-message-hook from SessionStart hooks array
- Fixes issue where stderr+exit(1) approach was silently discarded

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update logs and documentation for recent plugin and worker service changes

- Added detailed logs for worker service activities from Dec 10, 2025 to Jan 7, 2026, including initialization patterns, cleanup confirmations, and diagnostic logging.
- Updated plugin documentation with recent activities, including plugin synchronization and configuration changes from Dec 3, 2025 to Jan 7, 2026.
- Enhanced the context hook and worker service logs to reflect improvements and fixes in the plugin architecture.
- Documented the migration and verification processes for the Claude memory system and its integration with the marketplace.

* Refactor hooks architecture and remove deprecated user-message-hook

- Updated hook configurations in CLAUDE.md and hooks.json to reflect changes in session start behavior.
- Removed user-message-hook functionality as it is no longer utilized in Claude Code 2.1.0; context is now injected silently.
- Enhanced context-hook to handle session context injection without user-visible messages.
- Cleaned up documentation across multiple files to align with the new hook structure and removed references to obsolete hooks.
- Adjusted timing and command execution for hooks to improve performance and reliability.

* fix: Address PR #610 review issues

- Replace USER_MESSAGE_ONLY test with BLOCKING_ERROR test in hook-constants.test.ts
- Standardize Claude Code 2.1.0 note wording across all three documentation files
- Exclude deprecated user-message-hook.ts from logger-usage-standards test

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: Remove hardcoded fake token counts from context injection

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Address PR #610 review issues by fixing test files, standardizing documentation notes, and verifying code quality improvements.

* fix: Add path validation to CLAUDE.md distribution to prevent invalid directory creation

- Add isValidPathForClaudeMd() function to reject invalid paths:
  - Tilde paths (~) that Node.js doesn't expand
  - URLs (http://, https://)
  - Paths with spaces (likely command text or PR references)
  - Paths with # (GitHub issue/PR references)
  - Relative paths that escape project boundary

- Integrate validation in updateFolderClaudeMdFiles loop
- Add 6 unit tests for path validation
- Update .gitignore to prevent accidental commit of malformed directories
- Clean up existing invalid directories (~/, PR #610..., git diff..., https:)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: Implement path validation in CLAUDE.md generation to prevent invalid directory creation

- Added `isValidPathForClaudeMd()` function to validate file paths in `src/utils/claude-md-utils.ts`.
- Integrated path validation in `updateFolderClaudeMdFiles` to skip invalid paths.
- Added 6 new unit tests in `tests/utils/claude-md-utils.test.ts` to cover various rejection cases.
- Updated `.gitignore` to prevent tracking of invalid directories.
- Cleaned up existing invalid directories in the repository.

* feat: Promote critical WARN logs to ERROR level across codebase

Comprehensive log-level audit promoting 38+ WARN messages to ERROR for
improved debugging and incident response:

- Parser: observation type errors, data contamination
- SDK/Agents: empty init responses (Gemini, OpenRouter)
- Worker/Queue: session recovery, auto-recovery failures
- Chroma: sync failures, search failures (now treated as critical)
- SQLite: search failures (primary data store)
- Session/Generator: failures, missing context
- Infrastructure: shutdown, process management failures
- File Operations: CLAUDE.md updates, config reads
- Branch Management: recovery checkout failures

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: Address PR #614 review issues

- Remove incorrectly tracked tilde-prefixed files from git
- Fix absolute path validation to check projectRoot boundaries
- Add test coverage for absolute path validation edge cases

Closes review issues:
- Issue 1: ~/ prefixed files removed from tracking
- Issue 3: Absolute paths now validated against projectRoot
- Issue 4: Added 3 new test cases for absolute path scenarios

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* build assets and context

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 23:34:20 -05:00

137 lines
5.8 KiB
Markdown

<claude-mem-context>
# Recent Activity
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
### Dec 25, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #32794 | 9:51 PM | ✅ | Built claude-mem v8.2.0 production artifacts | ~376 |
| #32789 | 9:49 PM | 🟣 | Gemini AI Provider Integration Merged to Main | ~409 |
| #32654 | 8:51 PM | 🔵 | Identified multiple files related to queue recovery | ~375 |
| #32643 | 8:46 PM | ✅ | Plugin Build and Marketplace Synchronization | ~336 |
| #32600 | 8:42 PM | 🔵 | Identified potential UI element for billing toggle | ~146 |
| #32559 | 8:18 PM | 🔵 | Listed files changed in the current branch | ~169 |
| #32458 | 5:42 PM | ✅ | Rebuilt and synchronized plugin files after merge | ~286 |
### Dec 26, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #32985 | 11:24 PM | ✅ | Built claude-mem version 8.2.2 release artifacts | ~299 |
| #32975 | 11:04 PM | ✅ | Build and sync pipeline completed successfully | ~208 |
| #32864 | 7:30 PM | ✅ | Built and deployed claude-mem v8.2.0 to marketplace | ~375 |
| #32861 | 7:08 PM | ✅ | Built claude-mem v8.2.0 production artifacts | ~360 |
### Dec 27, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #33053 | 5:28 PM | ✅ | Built claude-mem 8.2.3 release artifacts | ~315 |
### Dec 28, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #33670 | 11:52 PM | ✅ | Built and deployed memory session ID fix to marketplace | ~288 |
| #33649 | 11:43 PM | ✅ | Build and Deployment System Synced to Marketplace | ~450 |
| #33612 | 11:22 PM | ✅ | Built and deployed claude-mem version 8.2.6 with mem-search skill | ~300 |
| #33603 | 11:20 PM | ✅ | Claude-mem plugin build and marketplace sync completed | ~425 |
| #33485 | 10:35 PM | ✅ | Built Project with Version 8.2.6 Across All Components | ~303 |
| #33279 | 3:07 PM | ✅ | Changed Default OpenRouter Model to Free Tier Option | ~285 |
### Dec 29, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #34350 | 11:12 PM | ✅ | Version 8.5.0 Build Completed Successfully | ~425 |
| #34208 | 10:00 PM | ✅ | claude-mem v8.2.10 built and synced to marketplace | ~416 |
| #34163 | 9:38 PM | ✅ | Project rebuilt with updated interactive setup wizard | ~326 |
| #34092 | 9:02 PM | ✅ | Built claude-mem project with updated interactive setup wizard | ~452 |
| #33996 | 7:10 PM | 🟣 | Built claude-mem v8.2.10 with all hooks and services | ~387 |
| #33951 | 6:42 PM | ✅ | Project Build Completed for Version 8.2.9 | ~326 |
| #33877 | 5:02 PM | 🟣 | Phase 1 build process successfully tested with worker source copying | ~372 |
| #33839 | 4:24 PM | ✅ | Build Executed Successfully for Version 8.2.8 | ~313 |
| #33833 | 4:17 PM | ✅ | Rebuilt Project With Early Signal Handler Registration | ~353 |
| #33818 | 4:10 PM | ✅ | Project Rebuilt Successfully After PR 489 Review Fixes | ~338 |
| #33802 | 3:55 PM | ✅ | Project Built Successfully for Version 8.2.7 | ~258 |
### Dec 30, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #34476 | 2:25 PM | ✅ | V2 Branch Builds Successfully Despite TypeScript Errors | ~316 |
| #34451 | 2:20 PM | ✅ | Successful Build of Claude-Mem v8.5.1 Components | ~346 |
### Dec 31, 2025
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #34724 | 4:51 PM | ✅ | Built claude-mem v8.5.2 with issue 499 fix | ~287 |
| #34710 | 4:48 PM | ✅ | Built and deployed claude-mem v8.5.1 to marketplace | ~371 |
### Jan 1, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #35613 | 10:57 PM | ✅ | Build System Compiled Updated Middleware | ~320 |
| #35427 | 6:32 PM | ✅ | Claude-Mem Project Built Successfully | ~319 |
| #35397 | 5:23 PM | ✅ | Build System Successfully Compiled All Components | ~282 |
| #35373 | 3:05 PM | ✅ | V2 Migration Build Successful | ~305 |
### Jan 2, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #35982 | 5:09 PM | ✅ | Built and deployed claude-mem version 8.5.4 with LogsModal UI component | ~295 |
| #35976 | 4:48 PM | ✅ | Claude-mem build and marketplace sync completed | ~335 |
| #35925 | 2:53 PM | ✅ | Built Project for Version 8.5.4 Release | ~294 |
| #35901 | 2:49 PM | 🔵 | PR #525 File Changes Summary | ~376 |
| #35815 | 2:26 PM | ✅ | Claude-mem plugin built and deployed to marketplace | ~381 |
| #35776 | 1:24 PM | ✅ | Successful Build of ChromaSync Bugfix | ~246 |
### Jan 3, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #36687 | 11:53 PM | ✅ | MCP SDK and esbuild Dependencies Updated | ~332 |
### Jan 4, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #36701 | 12:01 AM | ✅ | Built Version 8.5.7 Plugin Artifacts | ~406 |
### Jan 5, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #38092 | 10:44 PM | ✅ | Built version 9.0.0 with complete plugin bundle | ~329 |
| #37990 | 9:00 PM | 🔵 | CLAUDE_MEM_WORKER_HOST setting used across 19 files | ~289 |
**CLAUDE.md**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #38078 | 9:54 PM | ✅ | CLAUDE.md Documentation Cleanup - 1,233 Lines Removed Across 18 Files | ~590 |
### Jan 7, 2026
**viewer-bundle.js**
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #38186 | 7:33 PM | 🟣 | Claude-mem plugin v9.0.0 built and deployed to marketplace | ~327 |
| #38120 | 5:46 PM | 🔴 | Rebuilt all plugin hooks and worker service | ~278 |
</claude-mem-context>