mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-04 06:29:42 +02:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user