Commit graph

5 commits

Author SHA1 Message Date
LLLin000
32e69a6c7b Delete sql.js: remove db.ts, wasm, dependency, and all sql.js code paths
- Remove paperforge/plugin/src/services/db.ts (sql.js wrapper, initDatabase/searchMetadata/SearchResultItem)
- Remove paperforge/plugin/sql-wasm.wasm (644KB binary)
- Remove sql.js and @types/sql.js from package.json; npm install to update lockfile
- dashboard.ts: remove import of db.ts, remove _sqlJsInitialized/_sqlJsFailed state,
  remove the sql.js search path block entirely — all searches go straight to CLI spawn.
  Clean up stale comments.
- Bundle drops from 346KB to 167KB; 6 test files / 58 tests still pass
2026-07-10 23:07:26 +08:00
LLLin000
d6c1d1539b chore: rebuild plugin main.js with sql.js dependency
Bundles sql.js for direct FTS5 access to paperforge.db.
2026-07-10 02:49:06 +08:00
Research Assistant
54e6d16666 Add pre-commit hooks (husky + lint-staged + prettier) 2026-06-25 16:42:34 +08:00
Research Assistant
2fea7e36e1 chore(plugin): add esbuild, typescript, @types/node devDeps 2026-05-24 16:50:00 +08:00
Research Assistant
2cb223ddbb feat(53-001): extract src/ modules from main.js and add Vitest test infrastructure
- runtime.js: resolvePythonExecutable, getPluginVersion, checkRuntimeVersion
- errors.js: classifyError, buildRuntimeInstallCommand, parseRuntimeStatus
- commands.js: ACTIONS, buildCommandArgs, runSubprocess
- package.json with vitest + obsidian-test-mocks + jsdom
- vitest.config.ts with jsdom environment
- 42 Vitest tests across 3 test files
- Refactored main.js to import from src/ modules
2026-05-09 00:05:19 +08:00