Commit 0db3980
committed
fix: Add WASM embedding, shared database location, and CLI/desktop parity
## WASM Embedding (v0.4.1)
- Embed sql-wasm.wasm as base64 for standalone distribution
- Extract to temp file at runtime (/tmp/forest-sql-wasm-<pid>.wasm)
- Fixes ENOENT errors in distributed binaries
- Fallback to development path when running from source
## Shared Database Location (v0.4.2)
- CLI and desktop now use same database: ~/Library/Application Support/com.ettio.forest.desktop/
- Platform-specific paths (macOS/Linux/Windows)
- Override with FOREST_DB_PATH environment variable
- Ensures seamless integration between CLI and GUI
## Embedding Parity (v0.4.3)
- CLI now uses same fastembed engine as desktop app
- forest-embed Rust helper bundled alongside CLI
- Both produce identical 384-dim embeddings (all-MiniLM-L6-v2)
- True feature parity between CLI and desktop
## Other Changes
- Updated .gitignore to exclude large binaries and build artifacts
- Updated documentation with all fixes
- Version bump to 0.4.31 parent 714dc99 commit 0db3980
18 files changed
Lines changed: 679 additions & 59 deletions
File tree
- .claude
- forest-desktop
- scripts
- src-tauri
- binaries
- src
- bin
- db
- scripts
- src
- cli
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
385 | | - | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
| |||
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
512 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
513 | 521 | | |
514 | | - | |
515 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
516 | 527 | | |
517 | 528 | | |
518 | 529 | | |
519 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
520 | 536 | | |
521 | 537 | | |
522 | 538 | | |
| |||
568 | 584 | | |
569 | 585 | | |
570 | 586 | | |
571 | | - | |
| 587 | + | |
572 | 588 | | |
573 | 589 | | |
574 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
37 | 58 | | |
38 | 59 | | |
39 | 60 | | |
| |||
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
59 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
60 | 99 | | |
61 | 100 | | |
62 | 101 | | |
| |||
0 commit comments