docs: update prd.json and progress.txt for story 12

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
“BeeRad”
2026-01-29 15:40:52 +11:00
co-authored by Claude Opus 4.5
parent 3181041090
commit a088b19556
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -161,8 +161,8 @@
"All remaining types are used", "All remaining types are used",
"npm run type-check passes" "npm run type-check passes"
], ],
"passes": false, "passes": true,
"notes": "" "notes": "Deleted prompts.ts (was used by deleted contextBuilder.ts for Anthropic prompt caching). All remaining type files verified in use: analytics.ts (3 files), database.ts (25 files), logs.ts (3 files), views.ts (2 files), pdf-parse.d.ts (paper extractor)."
}, },
{ {
"id": "13", "id": "13",
+15
View File
@@ -185,3 +185,18 @@ Goal: Strip ra-h_os to lightweight 2-panel UI + MCP server
- The package.json was relatively clean to begin with - The package.json was relatively clean to begin with
- npm install and type-check both pass after removal - npm install and type-check both pass after removal
## Story 12: Remove dead types
- Completed: Thu 29 Jan 2026
- Files deleted:
- src/types/prompts.ts (was used by deleted contextBuilder.ts for Anthropic prompt caching)
- Files kept (all verified in use):
- analytics.ts (used by 3 files: workflowExecutor, middleware, pricing)
- database.ts (used by 25 files - core type definitions)
- logs.ts (used by 3 files: logs API, LogsViewer, LogsRow)
- views.ts (used by 2 files: ViewFilters, KanbanView)
- pdf-parse.d.ts (used by paper extractor)
- Learnings:
- prompts.ts contained CacheableBlock, SystemPromptResult, CacheStats for Anthropic prompt caching
- These were only used by contextBuilder.ts which was deleted in Story 8
- Type files are well-organized - each file has a clear purpose