Skip to content

Commit 4d50b51

Browse files
committed
Wire IPC/settings/UI for RAG, runtime, download, and usage features; CI + deps
main.ts/preload.ts/electron.d.ts/settings-store.ts: IPC handlers and settings fields for everything above. Settings.tsx/Chat.tsx: RAG collections + citations UI, model runtime picker, embedding model picker. package.json: better-sqlite3 + other new deps. CI/release workflows and .gitignore updated for the new native builds (Rust lib, Python ml/) and build artifacts.
1 parent 8eec2b6 commit 4d50b51

13 files changed

Lines changed: 1364 additions & 55 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,32 @@ jobs:
1616
with:
1717
node-version: 22
1818

19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: rustfmt, clippy
22+
23+
- uses: Swatinem/rust-cache@v2
24+
with:
25+
workspaces: "lib -> target"
26+
27+
- name: Test native addon (Rust)
28+
working-directory: lib
29+
run: cargo test
30+
31+
- name: Check Rust formatting
32+
working-directory: lib
33+
run: cargo fmt --all -- --check
34+
35+
- name: Lint native addon (Rust)
36+
working-directory: lib
37+
run: cargo clippy --all-targets -- -D warnings
38+
39+
- name: Build native addon
40+
working-directory: lib
41+
run: |
42+
npm ci
43+
npm run build
44+
1945
- name: Install frontend dependencies
2046
working-directory: frontend
2147
run: npm ci

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
with:
2525
node-version: 22
2626

27+
- uses: dtolnay/rust-toolchain@stable
28+
29+
- uses: Swatinem/rust-cache@v2
30+
with:
31+
workspaces: "lib -> target"
32+
2733
- name: Install frontend dependencies
2834
working-directory: frontend
2935
run: npm ci

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*node_modules/
22
app/dist/
33
app/release/
4+
app/native/
45
frontend/dist/
6+
lib/target/

0 commit comments

Comments
 (0)