refactor: remove unused imports, variables, and constants

- inner-loop-tracker.ts: Comment out unused COMPLETION_SIGNAL_PATTERN, use _id
- session.ts: Remove unused execSync import and timeout constants
- task-tracker.ts: Use _context for unused parameter
- server.ts: Remove unused FastifyRequest import

All files now pass --noUnusedLocals --noUnusedParameters check.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-21 06:51:41 +01:00
co-authored by Claude Opus 4.5
parent 881ecc0878
commit d8803e3318
4 changed files with 5 additions and 16 deletions
+3 -8
View File
@@ -180,13 +180,8 @@ const ALL_COUNT_PATTERN = /all\s+(\d+)\s+(?:tasks?|files?|items?)/i;
*/
const TASK_DONE_PATTERN = /(?:task|item|todo)\s*(?:#?\d+|"\s*[^"]+\s*")?\s*(?:is\s+)?(?:done|completed?|finished)|(?:completed?|done|finished)\s+(?:task|item)\s*(?:#?\d+)?|marking\s+(?:.*?\s+)?(?:as\s+)?completed?|marked\s+(?:.*?\s+)?(?:as\s+)?completed?/i;
/**
* Matches generic standalone completion signals
* Examples: "Done!", "Completed", "Finished", "All set"
* Note: Use with caution - high false positive potential
* @deprecated Currently unused due to false positive risk
*/
const COMPLETION_SIGNAL_PATTERN = /^(?:done|completed?|finished|all\s+set)!?\s*$/i;
// Generic completion signal pattern - commented out due to false positive risk
// const COMPLETION_SIGNAL_PATTERN = /^(?:done|completed?|finished|all\s+set)!?\s*$/i;
// ---------- Utility Patterns ----------
@@ -712,7 +707,7 @@ export class InnerLoopTracker extends EventEmitter {
const taskNum = parseInt(taskNumMatch[1]);
// Find the nth todo (by order) and mark it complete
let count = 0;
for (const [id, todo] of this._todos) {
for (const [_id, todo] of this._todos) {
count++;
if (count === taskNum && todo.status !== 'completed') {
todo.status = 'completed';