Linux port: first run, packaging, single instance, privacy and wiring
CI / test (push) Has been cancelled
CI / test (push) Has been cancelled
First run and backend - The companion opens without Ollama or a model (OFFLINE / SETUP REQUIRED), opens Settings > Language model and picks the model up once downloaded. - Model, provider and GPU changes apply without restarting (Ollama is restarted when launch settings change); no silent fallback from API mode. - Fatal startup errors are shown in a window; the fallback avatar loads again; the shipped Capri artwork is used when nothing was imported. Packaging and tooling - packaging/arch/PKGBUILD, capri.desktop (KWin ScreenShot2 key), icons, artwork under /usr/share/capri/assets, Gitea Actions CI. - xtask: `icons` and `release-check` (no private data or credentials). Runtime - One instance per data folder (flock + control socket): second launch shows the window; capri stop / restart / toggle / status (JSON, starts nothing) / doctor / setup / diagnostics export / purge. - A foreign program on the Ollama port is refused; an Ollama left behind by Capri is replaced. Privacy and security - No raw Ollama log on disk; API keys are never saved in plaintext (old ones move to the keyring); refused credential notes are stored as [Credentials omitted]; launched apps get an allow-listed environment. Fixes - Stop/Escape silence the voice; saved voice effects apply to replies; settings_control glitch settings apply; distinct KWin cursor scripts; KDE window capture authorized for source builds; Linux wording. - Voice pack references zipped with Windows separators are found. Wired features - Initiatives, request router, resource monitor, "clip that", questions about a snapshot, sleep mode, tap reactions, stopwatch, attachments, Internet mode button, voice-synced subtitles, wake visuals, dictation draft, tray switches, Spotify seek/shuffle/repeat; computer-control planner and classifier follow model switches and API mode. - Approval cards: one shown, 8 queued, deduplicated, cancelled on stop, failure, lock or pause; one Application access switch. Desktop - Compositor detection (no black overlay on i3 without picom), i3lock detection, unsupported desktops reported at startup, screenshot-only control without AT-SPI, fontconfig fallbacks, translatable feature pages with French translations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
73 files changed
+4834
-517
No files matched your search
@@ -464,3 +464,33 @@ Source: config `context.mjs:123-132`; `<cfg>/Embedding.Modelfile`; `providers/em
|
||||
- `memory_search` schema `{query: string (required), maxResults?: int ≥1, minScore?: number, corpus?: "memory"|"wiki"|"all"|"sessions"}`, aliases `max_results`/`min_score` accepted. Result JSON `{results:[{path, startLine, endLine, score, snippet (≤700 chars), corpus, citation?}], mode:"hybrid"|"keyword-only", warning?, disabled?, stale?}`; `corpus:"memory"`/`"sessions"` filters; `wiki` → `not-registered` outcome. Citation `path#Lx[-Ly]` appended to snippet as `\n\nSource: …`.
|
||||
- `memory_get` schema `{path: string (required), from?: int ≥1, lines?: int ≥1, corpus?: "memory"|"wiki"|"all"}`: path relative to `<ws>`, must be `MEMORY.md`, `USER.md` or `memory/**.md` (else `MEMORY_PATH_NOT_ALLOWED`); default 120 lines, ≤12000 chars on line boundaries; truncated output ends with `\n\n[More content available. Use from=N to continue.]`; result `{status:"ok"|"not_found"|"error", text, path, from, lines, truncated?, nextFrom?}`. Rust rejects symlinks anywhere in the path (stricter than upstream).
|
||||
- Tool descriptions: §6. Clearing long-term memory resets this index (AG-27).
|
||||
|
||||
---
|
||||
|
||||
## Note added during the Linux port: AG-24..AG-47 are not written
|
||||
|
||||
This file stops after AG-23. The features AG-24 to AG-47 are referenced above (file map, §AG-13, §AG-14) but their
|
||||
catalog entries were never written, and the CapriCore 1.0.4 source tree they would be checked against is not part of
|
||||
this repository. They are **not** reconstructed here: write them from `~/Capri` before relying on them. Until then,
|
||||
the table below only says where the Rust code covers each referenced area (behaviour of the code, not of the spec).
|
||||
|
||||
| Feature (from the references above) | Capri source | Rust implementation |
|
||||
|---|---|---|
|
||||
| AG-25 OpenClaw memory-core / compaction internals | `node_modules/openclaw` | `capri-memory` (`compaction.rs`, `index.rs`) |
|
||||
| AG-26, AG-27 Saved memory, memory controls, `memory reset` | `saved-memory.mjs`, `memory-controls.mjs` | `capri-memory` (`saved.rs`, `ui.rs`), `capri reset` |
|
||||
| AG-28 Owner memory files (USER.md, MEMORY.md) | `owner-memory.mjs` | `capri-core::persona`, `capri-memory::notes` |
|
||||
| AG-29, AG-30 Private dialogue and private memory | `private-dialogue.mjs`, `private-memory.mjs` | `capri-memory::private` |
|
||||
| AG-31 Brain knowledge | `brain-knowledge.mjs`, `brain-worker.mjs` | `capri-memory::brain` |
|
||||
| AG-32..AG-34 Attachments and visual turns | `attachments.mjs`, `attachment-history.mjs` | `capri/src/attachments.rs`, `Engine::attach_images`, `capri-perception::visual` |
|
||||
| AG-35 Journal (`transcript.json`) | `storage.mjs` | `capri-agent::journal` |
|
||||
| AG-36 Legacy private storage | `legacy-private-storage.mjs` | `capri import` (partial) |
|
||||
| AG-37 Thinking briefing / thinking mode | `thinking-briefing.mjs`, `thinking-mode.mjs` | not ported (ordinary turns send `think: false`) |
|
||||
| AG-38 Web context | `chat-service.mjs` | `capri-tools::web` (`web_context`) |
|
||||
| AG-39 Time conversation | `time-conversation.mjs` | `capri-tools::time` |
|
||||
| AG-40 Voice follow-up | `voice-follow-up.mjs` | `capri-voice` (`finish_turn`, follow-up window) |
|
||||
| AG-41 Visual response | `visual-response.mjs` | `capri-perception::visual` |
|
||||
| AG-42 Context usage | `context-usage.mjs` | `Engine::prepared_history` (character budget) |
|
||||
| AG-44 Preferences, companion settings | `preferences.mjs`, `companion-settings.mjs` | `capri-core::settings`, `capri-ui::settings` |
|
||||
| AG-45 Injected messages (initiative and others) | `chat-service.mjs` | `Engine::record_line` / `Engine::announce` |
|
||||
| AG-46 Lemonade / NPU backend | `providers/*` | not ported (no NPU models on Linux) |
|
||||
| AG-47 CLI client | `client.mjs`, `index.mjs` | `capri chat`, `capri status` |
|
||||
Reference in new issue
Block a user