Commit Graph

1634 Commits

Author SHA1 Message Date
pewdiepie-archdaemon ef7e5f90ec Add icons to cookbook engine filter 2026-06-27 22:01:23 +00:00
pewdiepie-archdaemon 36c8a0a3c3 Move vllm block size left again 2026-06-27 21:55:53 +00:00
pewdiepie-archdaemon 7246e416ac Move vllm block size left 2026-06-27 21:54:18 +00:00
pewdiepie-archdaemon d7193e7d0d Move vllm attention farther right 2026-06-27 21:49:35 +00:00
pewdiepie-archdaemon d614675da3 Lower CPU llama memory row 2026-06-27 21:48:19 +00:00
pewdiepie-archdaemon 4fa20023b4 Adjust CPU llama row and VRAM readout 2026-06-27 21:45:04 +00:00
pewdiepie-archdaemon 1a0f096b9b Match launch command hover surface 2026-06-27 21:42:06 +00:00
pewdiepie-archdaemon 9eaf5b61b2 Darken cookbook launch command 2026-06-27 21:39:26 +00:00
pewdiepie-archdaemon 3f296e63d2 Nudge vllm attention field right 2026-06-27 21:38:34 +00:00
pewdiepie-archdaemon 721261402d Increase llama mode toggle height 2026-06-27 21:37:11 +00:00
pewdiepie-archdaemon 0765c60790 Lower stabilized llama advanced block 2026-06-27 21:34:37 +00:00
pewdiepie-archdaemon fc566cf31a Stabilize llama advanced row spacing 2026-06-27 21:33:13 +00:00
pewdiepie-archdaemon 5d42e7616a Tighten llama memory row gap again 2026-06-27 21:31:00 +00:00
pewdiepie-archdaemon 3c80d6adb4 Tighten llama memory row gap 2026-06-27 21:29:19 +00:00
pewdiepie-archdaemon f860dffd5e Tighten first llama advanced row gap 2026-06-27 21:28:14 +00:00
pewdiepie-archdaemon 989e083300 Fine tune llama advanced spacing 2026-06-27 21:25:37 +00:00
pewdiepie-archdaemon ca7be0d441 Adjust llama advanced top spacing 2026-06-27 21:23:39 +00:00
pewdiepie-archdaemon fc6a6dc584 Lower cookbook serve top row 2026-06-27 21:20:27 +00:00
pewdiepie-archdaemon cc784db006 Tint Ollama engine icon 2026-06-27 21:18:15 +00:00
pewdiepie-archdaemon 002eba779e Refine llama advanced row spacing 2026-06-27 21:17:24 +00:00
pewdiepie-archdaemon bab45142a5 Simplify llama MTP token input 2026-06-27 21:14:21 +00:00
pewdiepie-archdaemon 26adeb4d38 Nudge llama advanced rows right 2026-06-27 21:13:20 +00:00
pewdiepie-archdaemon e0016ade5a Tighten llama advanced vertical spacing 2026-06-27 21:12:12 +00:00
pewdiepie-archdaemon 079bac1634 Nudge vllm attention field 2026-06-27 21:11:18 +00:00
pewdiepie-archdaemon a256747be9 Tighten llama advanced rows further 2026-06-27 21:10:38 +00:00
pewdiepie-archdaemon 70e106cdc2 Tighten llama advanced rows 2026-06-27 21:07:57 +00:00
pewdiepie-archdaemon 28974ae787 Limit cookbook spacing change to advanced tab 2026-06-27 21:05:07 +00:00
pewdiepie-archdaemon 7af3f15288 Color cookbook context fit notes 2026-06-27 21:02:10 +00:00
pewdiepie-archdaemon da7c6a667b Raise unified llama context estimate 2026-06-27 20:56:57 +00:00
pewdiepie-archdaemon a40371d532 Clamp unified llama context estimate 2026-06-27 20:52:31 +00:00
pewdiepie-archdaemon be4c4f2926 Add cookbook empty scan buttons 2026-06-27 20:48:24 +00:00
pewdiepie-archdaemon 8180e9cdb1 Rename email auto translate task 2026-06-27 20:46:45 +00:00
pewdiepie-archdaemon 23b844f113 Register email auto translate task 2026-06-27 20:43:56 +00:00
pewdiepie-archdaemon 4222039b67 Reduce cookbook startup polling 2026-06-27 13:50:21 +00:00
pewdiepie-archdaemon 45ee5a71f4 Polish mobile UI and editor workflows 2026-06-27 13:05:44 +00:00
pewdiepie-archdaemon 87e46e576a Fix calendar recurrence controls 2026-06-24 11:11:07 +00:00
pewdiepie-archdaemon dd055ee6e3 Refresh README screenshot 2026-06-22 04:49:52 +00:00
pewdiepie-archdaemon 993d504de3 Clear remaining CodeQL path and parser alerts 2026-06-22 02:45:05 +00:00
pewdiepie-archdaemon fbdec22dcb CodeQL hardening for cookbook sync 2026-06-22 02:39:18 +00:00
pewdiepie-archdaemon 19dd82b8f6 CI test fixes for dev sync 2026-06-22 02:20:15 +00:00
pewdiepie-archdaemon 57e7229219 CI fixes for cookbook workflow sync 2026-06-22 02:08:25 +00:00
pewdiepie-archdaemon 92daf4e560 Cookbook launch and gallery upload fixes 2026-06-22 01:49:15 +00:00
pewdiepie-archdaemon 75f04bc088 Merge origin/dev into main 2026-06-21 11:08:50 +00:00
pewdiepie-archdaemon c504214925 Cookbook model workflow fixes 2026-06-21 11:02:35 +00:00
nopoz 160267417e fix(personal): scope RAG file delete to the caller's own upload dir (#4602)
The DELETE /api/personal/file disk-delete containment check used the
shared PERSONAL_UPLOADS_DIR root, so one admin could delete another
user's personal upload by passing its path (uploads are partitioned per
owner under <root>/<owner>/). Confine the check to the caller's own
per-owner subdir via _personal_upload_dir_for_owner(owner). RAG removal
and listing exclusion are unchanged (they still serve non-upload indexed
sources). Adds a regression test for the cross-owner case.
2026-06-20 00:50:15 +02:00
Kenny Van de Maele ed18192a8e refactor(tools): move session tools to the agent_tools registry (#4454)
Moves create_session, list_sessions, send_to_session and manage_session out of
ai_interaction.py into src/agent_tools/session_tools.py (the do_ prefix
dropped) and registers them in TOOL_HANDLERS, so dispatch flows through the
registry instead of the dispatch_ai_tool elif in tool_execution.py. Same
pattern as the model-interaction move.

The bodies move verbatim; each fetches the runtime-set session manager via a
get_session_manager() shim, and reuses _resolve_model / AI_CHAT_TIMEOUT from
ai_interaction. manage_session's internal 'list' alias is repointed from the
old do_list_sessions to the moved list_sessions. stream_ai_tool (dead, no
callers) and do_pipeline stay put. dispatch_ai_tool loses its four now-unused
branches.

Tests: test_session_tools_registry covers registration, owner threading, the
manage_session->list_sessions delegation, graceful no-manager handling, and
registry dispatch. Verified end-to-end against a live SessionManager.
2026-06-19 11:55:22 +02:00
nopoz 076e8c93c9 fix(ui): escape model name in model-info popup (DOM-XSS) + two latent sinks (#4605)
chatRenderer.js built the model-info popup HTML by concatenating the
model name (from the LLM response's model/answered_by field) into
popup.innerHTML without escaping, so a model advertised as an HTML/script
payload executed when the user clicked the role label. Wrap both
insertions with the uiModule.esc() helper the same function already uses.

Also apply existing escape helpers at two latent sinks flagged by CodeQL,
fed only by self-authored/server values today: document-tab title via
_esc(), and the calendar event background URL (escape the double quote
that would otherwise break out of the style="..." attribute).
2026-06-19 11:03:44 +02:00
Kenny Van de Maele a226c94df7 chore(deps): remove unused @anthropic-ai/sdk dependency (#4566)
Never imported anywhere in the codebase (unused since v1.0); it is the only
root dependency and nothing depends on it. Removing it also drops 6 transitive
packages from the lockfile.

Fixes #4565
2026-06-19 09:40:35 +02:00
RaresKeY 057ec0552c fix(cookbook): stop Windows process trees (#4283) 2026-06-19 00:28:25 -07:00
Kenny Van de Maele cdae9879f2 feat(agent): add manage_bg_jobs tool to inspect and kill background bash jobs (#4577)
Detached bash jobs (#!bg) could be launched and auto-reported on completion,
but the agent had no way to act on a running one: no on-demand output read and
no kill (it blocked until the 1h max-runtime). bg_jobs had the pieces
(_read_output, list_for_session, internal _kill) but none was exposed.

Adds:
- bg_jobs.kill(job_id): tears down the process tree, marks the job killed, and
  sets followed_up so the monitor does not also auto-continue a deliberate kill.
- manage_bg_jobs registry tool with actions list / output / kill, scoped to the
  chat that launched the job (cross-session access reads as not found).
- Wiring: TOOL_HANDLERS/TAGS, function schema, RAG index + keyword hints, parser
  name map, dispatch (threads session_id via _direct_fallback). Gated like bash
  (NON_ADMIN_BLOCKED_TOOLS; plan-mode mutator).
- agent_loop: background-job intent regex maps to the files domain (and the tool
  joins _DOMAIN_TOOL_MAP[files]) so short commands like 'kill that job' are not
  dropped by the low-signal gate that skips tool retrieval.
- bg launch message tells the model to call manage_bg_jobs itself for check/stop
  rather than printing raw tool syntax to the user.

Tests: tests/test_bg_job_tools.py (kill semantics, per-chat scoping, actions,
and the intent classifier).
2026-06-19 00:28:22 -07:00