Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Traul

- The project is meant to be type-checked via Bun, not vanilla `tsc`.
- All changes must go through a PR — never push directly to `main`.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ bun install
bun link
```

**Requirements:** [Bun](https://bun.sh) v1.0+, [Homebrew SQLite](https://formulae.brew.sh/formula/sqlite) (macOS), optionally [Ollama](https://ollama.com) for vector search.
**Requirements:** [Bun](https://bun.sh) v1.0+, SQLite with development headers, optionally [Ollama](https://ollama.com) for vector search.

**SQLite setup by platform:**

- **macOS:** `brew install sqlite`
- **Ubuntu/Debian:** `sudo apt-get install libsqlite3-dev`
- **Fedora/RHEL:** `sudo dnf install sqlite-devel`

The `sqlite-vec` extension is bundled and works on macOS (x64/arm64) and Linux (x64/arm64). No extra steps needed.

Full walkthrough → **[Getting Started](docs/getting-started.md)**

Expand Down
5 changes: 3 additions & 2 deletions src/commands/daemon.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from "path";
import { homedir } from "os";
import type { TraulDB } from "../db/database";
import type { TraulConfig } from "../lib/config";
import { loadConfig, type TraulConfig } from "../lib/config";
import { Scheduler } from "../daemon/scheduler";
import { startHealthServer, stopHealthServer } from "../daemon/health";
import { writePid, readPid, removePid, isProcessAlive } from "../daemon/pid";
Expand Down Expand Up @@ -72,6 +72,7 @@ export async function runDaemonStart(
}

const scheduler = new Scheduler(config.daemon, async (source, onProgress) => {
const currentConfig = loadConfig();
if (source === "embed") {
await runEmbed(db, { limit: "10000", quiet: true, onProgress });
} else {
Expand All @@ -80,7 +81,7 @@ export async function runDaemonStart(
log.warn(`Unknown source: ${source}`);
return;
}
const result = await connector.sync(db, config);
const result = await connector.sync(db, currentConfig);
log.info(`${source}: ${result.messagesAdded} added, ${result.contactsAdded} contacts`);
}
}, enabled);
Expand Down
Loading