From d6c6e827ea4e5a88b71ca9a85db47d0d0e3b0c13 Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Wed, 15 Apr 2026 04:49:09 -0700 Subject: [PATCH] fix: clean language names, remove diagnostic scripts --- check-timestamps.cjs | 21 --------------------- debug-query.cjs | 26 -------------------------- src/providers/cursor.ts | 3 +++ 3 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 check-timestamps.cjs delete mode 100644 debug-query.cjs diff --git a/check-timestamps.cjs b/check-timestamps.cjs deleted file mode 100644 index 68f9f1e..0000000 --- a/check-timestamps.cjs +++ /dev/null @@ -1,21 +0,0 @@ -const Database = require('better-sqlite3') -const path = require('path') -const os = require('os') - -const dbPath = path.join(os.homedir(), 'Library', 'Application Support', 'Cursor', 'User', 'globalStorage', 'state.vscdb') -const db = new Database(dbPath, { readonly: true }) - -const rows = db.prepare(` - SELECT json_extract(value, '$.createdAt') as ts - FROM cursorDiskKV - WHERE key LIKE 'bubbleId:%' - AND json_extract(value, '$.tokenCount.inputTokens') > 0 - ORDER BY json_extract(value, '$.createdAt') DESC - LIMIT 5 -`).all() - -console.log('Latest 5 timestamps:', rows) -console.log('As dates:', rows.map(r => ({ ts: r.ts, date: new Date(r.ts).toISOString() }))) -console.log('Now:', Date.now()) -console.log('120 days ago:', Date.now() - 120 * 24 * 60 * 60 * 1000) -db.close() diff --git a/debug-query.cjs b/debug-query.cjs deleted file mode 100644 index c702b43..0000000 --- a/debug-query.cjs +++ /dev/null @@ -1,26 +0,0 @@ -const Database = require('better-sqlite3') -const path = require('path') -const os = require('os') - -const dbPath = path.join(os.homedir(), 'Library', 'Application Support', 'Cursor', 'User', 'globalStorage', 'state.vscdb') -const db = new Database(dbPath, { readonly: true }) - -const floor = new Date(Date.now() - 120 * 24 * 60 * 60 * 1000).toISOString() -console.log('Time floor:', floor) - -const rows = db.prepare(` - SELECT - json_extract(value, '$.tokenCount.inputTokens') as it, - json_extract(value, '$.tokenCount.outputTokens') as ot, - json_extract(value, '$.createdAt') as ts - FROM cursorDiskKV - WHERE key LIKE 'bubbleId:%' - AND json_extract(value, '$.tokenCount.inputTokens') > 0 - AND json_extract(value, '$.createdAt') > ? - ORDER BY json_extract(value, '$.createdAt') DESC - LIMIT 5 -`).all(floor) - -console.log('Rows found:', rows.length) -console.log('Sample:', rows) -db.close() diff --git a/src/providers/cursor.ts b/src/providers/cursor.ts index 0bec236..09426af 100644 --- a/src/providers/cursor.ts +++ b/src/providers/cursor.ts @@ -237,7 +237,10 @@ export function createCursorProvider(dbPathOverride?: string): Provider { markdown: 'Markdown', sql: 'SQL', shell: 'Shell', + shellscript: 'Shell Script', bash: 'Bash', + typescriptreact: 'TSX', + javascriptreact: 'JSX', dockerfile: 'Dockerfile', toml: 'TOML', }