refactor: implement in-process worker architecture for hooks (#722)
* fix: stop generating empty CLAUDE.md files - Return empty string instead of "No recent activity" when no observations exist - Skip writing CLAUDE.md files when formatted content is empty - Remove redundant "auto-generated by claude-mem" HTML comment - Clean up 98 existing empty CLAUDE.md files across the codebase - Update tests to expect empty string for empty input Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * build assets * refactor: implement in-process worker architecture for hooks Replaces spawn-based worker startup with in-process architecture: - Hook processes now become the worker when port 37777 is free - Eliminates Windows spawn issues (NO SPAWN rule) - SessionStart chains: smart-install && stop && context Key changes: - worker-service.ts: hook case starts WorkerService in-process - hook-command.ts: skipExit option prevents process.exit() when hosting worker - hooks.json: single chained command replaces separate start/hook commands - worker-utils.ts: ensureWorkerRunning() returns boolean, doesn't block - handlers: graceful fallback when worker unavailable All 761 tests pass. Manual verification confirms hook stays alive as worker. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * context * a * MAESTRO: Mark PR #722 test verification task complete All 797 tests passed (3 skipped, 0 failed) after merge conflict resolution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * MAESTRO: Mark PR #722 build verification task complete * MAESTRO: Mark PR #722 code review task complete Code review verified: - worker-service.ts hook case starts WorkerService in-process - hook-command.ts has skipExit option - hooks.json uses single chained command - worker-utils.ts ensureWorkerRunning() returns boolean Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * MAESTRO: Mark PR #722 conflict resolution push task complete Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,145 +0,0 @@
|
||||
<claude-mem-context>
|
||||
# Recent Activity
|
||||
|
||||
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
||||
|
||||
### Dec 12, 2025
|
||||
|
||||
**cli.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #24246 | 2:43 AM | 🟣 | Comprehensive Translation System Added with 22 Language READMEs | ~386 |
|
||||
| #24235 | 2:32 AM | 🔵 | Translation CLI Script Structure | ~267 |
|
||||
| #24215 | 1:49 AM | 🟣 | Wired parallel argument to translateReadme function call | ~290 |
|
||||
| #24214 | " | 🟣 | Implemented --parallel argument parsing with validation | ~271 |
|
||||
| #24213 | " | 🟣 | Initialized parallel default value in parseArgs | ~212 |
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #24236 | 2:33 AM | 🔵 | Translation Core Logic and Output Directory Handling | ~288 |
|
||||
| #24219 | 1:50 AM | 🟣 | Implemented concurrent translation processing with parallelism control | ~461 |
|
||||
| #24218 | " | 🟣 | Extracted parallel parameter in translateReadme function | ~259 |
|
||||
| #24217 | " | 🔵 | Current translateReadme uses sequential for-loop processing | ~312 |
|
||||
| #24216 | " | 🟣 | Added parallel option to TranslationOptions interface | ~262 |
|
||||
|
||||
### Dec 13, 2025
|
||||
|
||||
**examples.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #25321 | 9:12 PM | 🔵 | Console.error Usage Found in 29 Files | ~366 |
|
||||
|
||||
### Dec 14, 2025
|
||||
|
||||
**cli.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #25670 | 3:42 PM | 🔵 | Translation System Supports 38 Languages | ~259 |
|
||||
| #25668 | 3:40 PM | 🟣 | Translation system enhancement with 226 net line addition | ~298 |
|
||||
| #25667 | " | 🔵 | Translation script CLI interface and authentication | ~330 |
|
||||
| #25664 | 3:39 PM | 🔵 | Modified files from PR-250 cherry-pick | ~238 |
|
||||
| #25663 | " | 🔵 | Translation script structure with CLI and examples | ~277 |
|
||||
|
||||
**translate-readme**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #25660 | 3:38 PM | ✅ | Cherry-picked translation script from PR-250 branch | ~192 |
|
||||
|
||||
### Dec 15, 2025
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #27161 | 8:08 PM | 🔵 | README Translation Script Architecture | ~420 |
|
||||
| #27158 | " | 🔵 | Complete API Key Authentication Flow Traced Through System | ~460 |
|
||||
|
||||
**examples.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #27149 | 8:07 PM | 🔵 | API Key Management Implementation Details | ~302 |
|
||||
| #27146 | " | 🔵 | ANTHROPIC_API_KEY Referenced Across Documentation and Scripts | ~254 |
|
||||
|
||||
### Dec 18, 2025
|
||||
|
||||
**README.md**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #29244 | 12:15 AM | 🔵 | Identified YAML configuration files in claude-mem project | ~164 |
|
||||
|
||||
### Dec 20, 2025
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #30253 | 3:17 PM | 🔵 | Agent SDK Integration Throughout Codebase | ~402 |
|
||||
|
||||
### Dec 21, 2025
|
||||
|
||||
**cli.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #31753 | 11:01 PM | 🔵 | README Translation CLI Tool Verified Operational | ~349 |
|
||||
| #31749 | 10:57 PM | 🔵 | CLI del traductor de README incluye opción de paralelización | ~317 |
|
||||
| #31713 | 9:41 PM | 🔵 | Complete Multilingual Infrastructure Documented | ~545 |
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #31752 | 10:59 PM | 🔴 | Fixed concurrency control bug in translation script | ~309 |
|
||||
| #31751 | 10:58 PM | 🔵 | Concurrencia implementada con función runWithConcurrency personalizada | ~483 |
|
||||
| #31748 | 10:57 PM | 🔵 | Ubicación del script traductor de README identificada | ~241 |
|
||||
| #31601 | 8:19 PM | 🔵 | 215 console logging statements in TypeScript utility scripts | ~501 |
|
||||
|
||||
**README.md**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #31750 | 10:58 PM | 🔵 | Documentación del traductor de README no menciona concurrencia | ~292 |
|
||||
|
||||
### Dec 22, 2025
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #31921 | 7:36 PM | ✅ | Updated Verbose Output to Always Show Parallel Count | ~233 |
|
||||
| #31920 | " | 🟣 | Implemented Always-On Concurrent Translation with 10-Worker Limit | ~280 |
|
||||
| #31919 | " | ✅ | Removed Parallel Parameter from TranslationOptions Interface | ~198 |
|
||||
| #31918 | " | 🔵 | Translation Engine Uses Configurable Concurrency Control | ~322 |
|
||||
|
||||
**cli.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #31917 | 7:35 PM | 🔵 | Current CLI Implementation Uses Optional Parallel Flag | ~237 |
|
||||
|
||||
### Dec 23, 2025
|
||||
|
||||
**cli.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #32292 | 7:19 PM | ✅ | Removed parallel parameter from CLI arguments interface | ~189 |
|
||||
| #32308 | " | ✅ | Removed parallel default value from argument parser initialization | ~181 |
|
||||
| #32321 | " | ✅ | Removed --parallel flag parsing from CLI argument parser | ~225 |
|
||||
| #32328 | " | ✅ | Removed parallel parameter from translateReadme function call | ~205 |
|
||||
| #32335 | " | ✅ | Updated CLI help documentation to reflect automatic parallel execution | ~261 |
|
||||
|
||||
### Dec 30, 2025
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #34507 | 2:32 PM | 🟣 | Completed V2 Migration of Translation Script | ~394 |
|
||||
| #34501 | 2:30 PM | ✅ | Started V2 Migration of Translation Script Import | ~270 |
|
||||
| #34498 | " | 🔵 | Translation Script Uses V1 SDK Query API | ~409 |
|
||||
| #34445 | 2:19 PM | 🔵 | Translation Script Already Using V2 API | ~264 |
|
||||
| #34405 | 1:54 PM | 🔵 | Translation Script Using V1 SDK API | ~367 |
|
||||
|
||||
### Dec 31, 2025
|
||||
|
||||
**index.ts**
|
||||
| ID | Time | T | Title | Read |
|
||||
|----|------|---|-------|------|
|
||||
| #34572 | 2:36 PM | ⚖️ | Comprehensive Post-Mortem Document Created | ~692 |
|
||||
| #34571 | 2:35 PM | ⚖️ | Post-Mortem Analysis Identifies Scope Confusion as Root Failure Cause | ~599 |
|
||||
| #34570 | " | 🔵 | Root Cause Identified: Utility Scripts Never Fixed Despite Phase 4 Review | ~513 |
|
||||
| #34568 | " | 🔵 | Utility Script V2 Migration Used Incorrect systemPrompt Option | ~425 |
|
||||
</claude-mem-context>
|
||||
Reference in New Issue
Block a user