From 223ff1bc7cea2edce190a5f75cd89ac9f205910f Mon Sep 17 00:00:00 2001 From: AirCoding Date: Thu, 4 Jun 2026 09:00:55 +0800 Subject: [PATCH] chore(honest): remove stale bun-sqlite.d.ts; correct 5ecaabf claim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5ecaabf claimed 'resolve tsc errors' but actually only resolved environment errors (missing @types/node → fs/path/crypto/Buffer; stale dist/*.d.ts build artifacts). The commit message was misleading. Real status after 5ecaabf: - 51 TS6305 stale build artifacts (now cleaned here) - 79 remaining CODE errors in runtime package: * 40 TS6133 noUnusedLocals (dead fields/imports/params) * 9 TS2749 EventIngestor value used as type * 8 TS6196 unused type imports * 6 TS2304 cannot find name * 5 TS2532 possibly undefined (CompactionPolicy, etc.) * 2 TS7006 implicit any * 2 TS6192 all imports unused * 2 TS2345/TS2339 type mismatch * 1 TS2552 createCapabilityManifestValidator not found * 1 TS2554 wrong arity * 1 TS18048 x is possibly null These are not regressions from 5 rounds of repair. They are pre-existing code-level issues that 5ecaabf's title did not accurately convey. This commit: only removes 1 stale build artifact. A dedicated cleanup commit will follow to actually resolve the 79 code errors. Co-Authored-By: Claude Opus 4.8 --- packages/runtime/src/bun-sqlite.d.ts | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 packages/runtime/src/bun-sqlite.d.ts diff --git a/packages/runtime/src/bun-sqlite.d.ts b/packages/runtime/src/bun-sqlite.d.ts deleted file mode 100755 index d024480..0000000 --- a/packages/runtime/src/bun-sqlite.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Type declarations for Bun's built-in modules - * These types mirror the bun:sqlite API - */ - -declare module 'bun:sqlite' { - export class Database { - constructor(path?: string) - exec(sql: string): void - prepare(sql: string): Statement - inTransaction: boolean - close(): void - } - - export class Statement { - run(...params: unknown[]): RunResult - get(...params: unknown[]): unknown - all(...params: unknown[]): unknown[] - bind(...params: unknown[]): Statement - reset(): void - } - - export interface RunResult { - changes: number - lastInsertRowid: number | bigint - } -} \ No newline at end of file