Skip to content

Commit 31c39c8

Browse files
authored
Merge pull request #70 from cahaseler/69-task_062-clean-up-sdk-type-usage-across-codebase
feat: complete TASK_062 - TASK_062: Clean up SDK type usage across codebase
2 parents 2dedc4e + db85d65 commit 31c39c8

File tree

10 files changed

+615
-58
lines changed

10 files changed

+615
-58
lines changed

.claude/backlog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
- Add automatic file header summaries for all TypeScript files. Each file should start with a block comment containing a one-sentence ai-written summary plus an auto-generated `@exports` list of functions/classes with line numbers. Use the TypeScript compiler API in a Node script to parse ASTs, extract exports, and update headers. Wire it into a pre-commit or post-edit hook so the `@exports` section stays current without manual edits. This makes files self-describing in the first 20 lines for AI tools and repo navigation.
1818
- extract prompts into dedicated config file sections (or their own files? to allow for users to more easily customize them) (may not be practical depending on how dynamically we're building them)
1919
- [2025-09-15] block attempts to add stupid comments with the preToolUse hook
20-
- [2025-09-15] Clean up SDK type usage across codebase: Import proper types from @anthropic-ai/claude-code for all SDK interactions. Fix internal prompt() function to use typed options and messages. Add canUseTool restrictions where appropriate (e.g., createValidationAgent should probably restrict Write). Replace type assertions with proper type guards or document why they're safe. See capture-plan.ts lines 224-248 for correct implementation pattern.
2120
- [2025-09-15] Enable interactive multi-turn code reviews with persistent sessions - allow Claude to reply to reviewer feedback, push back on criticisms, and have a dialogue about the changes
2221
- [2025-09-15] proper unit testing for commands

.claude/tasks/TASK_062.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Improve type safety throughout the codebase by replacing generic `unknown` types
4545
- Document any remaining necessary assertions
4646

4747
## Current Focus
48-
Starting with `src/lib/claude-sdk.ts` to establish proper SDK type imports and fix the core wrapper implementation.
48+
49+
Task completed on 2025-09-16
4950

5051
## Next Steps
5152
1. Examine current SDK type imports and available types
@@ -55,4 +56,8 @@ Starting with `src/lib/claude-sdk.ts` to establish proper SDK type imports and f
5556
5. Run TypeScript compiler to verify changes
5657
6. Move to capture-plan.ts and other identified files
5758

58-
**Started**: 2025-09-16 09:57
59+
**Started**: 2025-09-16 09:57
60+
61+
<!-- github_issue: 69 -->
62+
<!-- github_url: https://github.com/cahaseler/cc-track/issues/69 -->
63+
<!-- issue_branch: 69-task_062-clean-up-sdk-type-usage-across-codebase -->

0 commit comments

Comments
 (0)