@楽曲作りまくりおじさん 楽曲作りまくりおじさん authored 2 days ago
.github Add MCP server with llama.cpp integration and docs 12 days ago
.scripts chore: prepare for history rewrite 4 days ago
bin_temp feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
document build: improve Windows resource compile logging and error messages 4 days ago
journals docs: detail specific DLL conflict path in troubleshooting journal and clean up build.rs logic 2 days ago
resources/ icons chore: comprehensive project restructuring and cleanup 10 days ago
scripts feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
src feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
test build: improve Windows resource compile logging and error messages 4 days ago
.env.example style: tidy project root and simplify onboarding commands 10 days ago
.gitignore refactor(journals): mask absolute paths and update environment docs 3 days ago
README.md feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
jsconfig.json Add MCP server with llama.cpp integration and docs 12 days ago
launch.cmd chore: release v0.1.1 10 days ago
package-lock.json feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
package.json feat: implement hermetic build to fix 0xc0000139 by aggregating DLLs and using bundled sqlite 2 days ago
tmp_write_ansi.ps1 build: improve Windows resource compile logging and error messages 4 days ago
README.md

TelosDB

TelosDB は、ベクトル検索機能を備えたローカル・ナレッジベース・アプリケーションです。
SQLite と Llama.cpp を基盤とし、Tauri 2.0 (MSVC ツールチェーン) を用いて構築されています。

システムの用途

  • セマンティック検索: ドキュメントの文章をベクトル化し、意味に基づいた検索を可能にします。
  • MCP サーバー統合: Model Context Protocol (MCP) を介して、AI エージェントからデータベースへの安全なアクセスを提供します。
  • ローカル動作: LLM サーバー (Llama.cpp) をサイドカーとして内蔵し、プライバシーを保ちつつベクトル生成とテキスト生成を行います。

システム構造

graph TD
    subgraph "Frontend (Webview2)"
        UI[React/HTML/JS]
    end

    subgraph "Backend (Rust/Tauri)"
        Main[Tauri App]
        MCP[MCP Server - Axum]
        DB[(SQLite / Sea-ORM)]
    end

    subgraph "Sidecar"
        Llama[Llama.cpp Server]
    end

    UI <-->|Tauri Invoke| Main
    Main <--> DB
    Main <-->|HTTP| Llama
    MCP <--> Main
    IDE[AI Agent / IDE] <-->|SSE/HTTP| MCP

開発環境とビルド手順

必須要件

  • OS: Windows (11 / 10)
  • Toolchain: Microsoft Visual C++ (MSVC)
  • Dependencies:
    • Rust (Latest Stable)
    • Node.js & npm / bun

自己完結型ビルド (Hermetic Build)

本プロジェクトは、システム環境(PATH 等)に依存しない「自己完結型ビルド」を採用しています。
cargo build を実行すると、src/backend/build.rs が以下の処理を自動的に行います:

  • 実行に必要な WebView2Loader.dll をビルドツリーから自動検出し、.exe と同じディレクトリに集約します。
  • SQLite をスタティックリンク(bundled)し、外部の sqlite3.dll との ABI 衝突を防止します。

これにより、環境変数 PATH に MinGW や他バージョンの DLL が混在していても、常に正しい MSVC 版ライブラリが優先的にロードされます。

ビルド

cd src/backend
cargo build

テスト

cargo test

ライセンス

プロジェクト内部規程に準拠。