78 Commits
Author SHA1 Message Date
Alessandro Frau 563f54ad5a Switch branches and browse commits from Edit project
The Branch row becomes a picker for local and remote branches, keeping
branches held by another worktree visible but disabled. A Worktrees row
appears only when the repository has more than one, and the last commit
links to the forge alongside the repository link.
2026-12-06 02:55:07 +01:00
Alessandro Frau 7b4eb0179c Simplify and polish project Git setup
Follow up on 2f15087.

- Serialize origin updates per repository so competing requests cannot
  replace an origin and same-URL retries succeed.
- Restore project prompts to read git_url from the saved project header.
- Use one native Git status query and keep the origin and last commit
  visible when the query fails.
2026-12-02 20:15:55 +01:00
Alessandro Frau 2f150870e2 Connect existing projects to Git from settings
Set the Git origin in place so the project keeps its files, settings, and chat
scope. Exclude project metadata locally when initializing a repository and show
Git status before the first commit.

Move Model preset into Basic info, restore the saved selection when reopening
the editor, and use consistent spacing for the project switches.
2026-12-02 15:13:20 +01:00
Alessandro Frau f5571f4888 Merge v3 into mcp-server-instructions
Keep the v3 test instructions and add the MCP scanner regression command.
2026-11-27 10:06:53 +01:00
linuztx 5918463f0e Add MCP server instructions to the agent system prompt
MCP servers can return usage instructions in their initialize result,
such as which tool to call first or what an argument means. Agent Zero
discarded them. Capture them when a server connects and add them to the
MCP part of the system prompt, the way reference clients do.

- Capture InitializeResult.instructions on the update_tools (re)connect
  path and cache them with the tools. A failed reconnect clears them, and
  tool calls never change them.
- Render one "MCP Server Instructions" section after the MCP tools, with
  a part for each server that offers at least one allowed tool. The
  framing tells the model that the instructions are context, not
  capabilities, and that tool names in them are the server's own.
- Contain each server's text. Cap it at 4096 characters, demote its
  headings (including --- and === underlined ones) below its part, close
  open code fences, drop control characters and neutralize template
  syntax.
- Build the section inside get_tools_prompt. The Responses transport
  rebuilds the MCP section from that method, so it keeps the section.
- Report has_instructions in the server status API, mark such servers in
  the server list, and show the text in the server detail modal. Pass
  the instructions to the MCP scanner's AI review.
- Document the behavior, note it in the agent's self-knowledge, and add
  tests.
2026-11-26 04:33:05 +00:00
Alessandro Frau 10224ff8a8 Remove Copy from routine notification toasts
Suppress Copy on Disconnected, other status notices, and validation prompts while preserving full-text copying for diagnostic warnings and errors.

Carry the Copy preference through local toasts and backend notification sync. Cover disconnect and validation behavior at desktop and mobile widths.
2026-11-25 18:49:46 +01:00
Jan Tomášek 6ff97639d1 Summarize file properties, enable permission edits and simplify sandbox steps 2026-11-22 15:23:26 +01:00
Jan Tomášek dc24800e5d Bring Tuxee-style selection, transfers, and recovery to Files 2026-11-20 14:26:38 +00:00
Jan Tomášek c32314770c Build the slim v3 image and publish tagged multi-architecture previews 2026-11-19 17:49:23 +00:00
Jan Tomášek 0d2824da4c Add local socket API and migrate administration skills
Start a permission-restricted Unix JSON socket alongside the WebUI, with
file-discovered core/plugin handlers and a standard-library CLI. Reuse
explicit JSON API operations for local administration and plugin workflows.

Allow long operations without a default execution deadline, configure JSON
and transfer limits, and keep blocking operations off the transport loop.
Preserve HTTP authentication, multipart behavior, RFC, and startup/update
health probes.

Validation: 44 socket/adapter tests and 8 plugin compatibility tests pass;
syntax, handler mapping, skill examples and DOX checks pass. Full WebUI
integration was unavailable without installed framework dependencies.
2026-11-18 15:31:36 +01:00
Jan Tomášek 29cd56531b Fix upload filenames, browser audio and canvas resizing
Use the shared filename cleaner at Telegram, WhatsApp, email and archive upload boundaries. Bundle minimal Tuxee audio for browser playback through the authenticated viewer. Preview canvas width while dragging and commit once on release, shielding embedded frames from drag input.

Validation: focused filename, audio, gateway and canvas tests; native amd64 audio build with real Chromium stereo capture; Chromium iframe drag checks with and without pointer capture. Full deployed A0 UI and full image build were not tested.
2026-11-16 14:13:23 +01:00
Jan Tomášek c95e68d643 fix: reset chat history and rendering state on clear 2026-11-16 10:58:09 +01:00
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00
Alessandro 5f45daa61a Reject unsupported Telegram configuration scopes
Telegram advertised project/profile settings while its lifecycle and sender
authorization read only global configuration. A saved scoped allowlist or
disable could therefore leave a permissive global bot accepting messages.

Make Telegram configuration and activation explicitly global, preserving
per-user project routing. Enforce manifest scope support before plugin
configuration or activation writes and return HTTP 400 for invalid saves.

Pause Telegram bots and block incoming events whenever legacy scoped
configurations or activation overrides exist. Preserve those files, skip
attachment cleanup, notify the operator, and retain settings UI access for
manual review and removal. Each event must resolve a currently enabled
global bot; removed, renamed, disabled, or globally deactivated bots cannot
fall back to captured settings.

Add regressions for scope rejection without side effects, supported-plugin
scopes, legacy settings shutdown and migration, current allowlists, and
immediate revocation. Update existing administrator tests and owning docs.

Validation: 339 tests and 73 subtests passed in both Conda a0 and Docker's
framework runtime. A before/after reproduction showed an excluded sender
reaching context creation before the fix and being blocked afterward.
Restarted the live runtime and checked HTTP health and Telegram settings UI.
No live Telegram message test was performed.
2026-11-01 08:05:25 +01:00
linkliti 6f079d8817 feat(plugins): move the tasks interface and scheduler task endpoints into the scheduler plugin
Move the scheduler CRUD endpoints, modals, styles, sidebar tasks list, and task row into the _scheduler plugin and drop the core tasks components. The sidebar hosts plugin sections through a neutral sidebar-extensions point inside the extensions-section container instead of a tasks-specific one, so other plugins can contribute sections there too. The scheduler and datepicker styles load through the plugin page-head extension instead of core index.html preloads, and the shared flatpickr preload stays in core. Repoint the header scheduler entry at the plugin modal path and update the api and plugins DOX indexes. Pin indicators follow the relocated task row and the pin test reads it from the plugin. The chats store and core chat behavior adopt the plugin task store idiom, and the ws client surface test expects the plugin store accessor. The modals and css DOX drop their core scheduler ownership and the scheduler plugin DOX indexes its sidebar and page-head extensions. The plugin manifest becomes always enabled with a broader description so the Tasks UI stays core behavior, and the scheduler editor test follows the moved endpoint and store paths.

Validation: pytest plugins/_pin_to_top/tests/test_pins.py tests/test_sidebar_row_actions.py tests/test_webui_extension_surfaces.py tests/test_ws_client_api_surface.py tests/test_webui_startup_assets.py::test_only_the_icon_guard_stylesheet_blocks_application_paint tests/test_chat_working_animation.py tests/test_scheduler_editor.py
2026-10-21 23:37:31 +03:00
linkliti 94dd95ca36 refactor(model-config): gate model setup on backend rejection
Every send paid a blocking model_config_get round-trip before dispatching, because the frontend had to know whether a chat model is configured to decide between sending and rendering the setup card. Move the check behind the dispatch: a user_message_ui extension in _model_config flags unconfigured chats, the message handlers reject before logging or dispatching and return a model_not_configured payload, and the client opens the setup gate from that response. Isolated sends no longer make any configuration round-trip, the optimistic user row and draft handling stay intact through the gate flow, and the post-setup retry drops its bypass flag since the backend re-checks on dispatch.

Validation: pytest tests/test_model_gate_backend_reject.py tests/test_welcome_composer_static.py tests/test_webui_chat_deletion.py tests/test_webui_send_pause_responsiveness_static.py tests/test_message_action_buttons_static.py tests/test_markdown_tilde_rendering.py tests/test_webui_message_queue_static.py (23 passed); node --check webui/index.js webui/components/chat/model-gate-store.js
2026-10-13 18:06:47 +03:00
linkliti 7216b8641b fix(model-config): allow agent profile switch while chat runs
Remove the running-context guard from the agent profile endpoint and the switcher so a profile can be changed during an active monologue, matching chat model-preset overrides. Enable the switcher dropdown items while running by dropping the running gate from their disabled state; only the saving gate remains. The new profile applies to subsequent model turns and intentionally forfeits the prompt cache. Subordinate agents keep their own profile configs.

Validation: 73 subagent profile tests passed including a new endpoint test that switches the profile while a real task is running; static regression tests guard against reintroducing the running guard in the endpoint, switcher mixin, and dropdown markup; node --check passed on the switcher mixin.
2026-10-13 18:06:47 +03:00
Alessandro 0efb0d4f8f Improve scheduler prompt editing and support optional YAML
Give task prompts full-width, resizable fields and an expanded view in
the shared modal stack. Preserve drafts on failed saves and keep actions
in the pinned footer.

Honor the selected initial task state and inherit only the active chat's
project. Support existing tasks.yaml files through the existing helpers,
with JSON remaining the default and taking precedence. Do not migrate
existing task files or change scheduler execution logic.

Validation:
- 28 focused scheduler, timezone, and tool-contract checks passed.
- 8 checks passed in the Docker framework runtime.
- Live desktop/mobile creation, editing, deletion, and storage checks.
2026-09-24 00:59:39 +02:00
Alessandro 3a18d678ad feat(chats): allow explicit project selection on creation 2026-09-22 08:55:56 +02:00
Alessandro cb7e9b48d5 Centralize streamed file transfers and harden archive operations
Route Files uploads, downloads and Editor writes through shared bounded I/O,
atomic publication and owned temporary-file cleanup. Use native download
responses with single-use tickets and recheck remote connection permissions.
Keep general API exception handling unchanged and map file errors locally.

Add independent archive expansion and entry budgets, reject unsafe members,
and align all provider calls with the new streaming interface. Reuse existing
file helpers, remove prototype connection migration, and preserve container-root
access while treating connected host roots as separate boundaries.

Validation: 145 focused Core tests passed. Earlier live checks covered native
browser transfers, ZIP extraction, Editor conflicts and a CLI roundtrip above
100 MiB with its configured limit raised. The five new provider plugins require
the matching streaming updates in their separate repositories.
2026-09-09 01:40:04 +02:00
Alessandro 4777c14d82 Expose connected CLI and Launcher folders in Files
Discover live host folders through existing Connector routing and bind each entry to its connection and exposed root. Respect host permissions, reject stale sessions and leave scope configuration in the CLI or Launcher.

Move host file bytes over authenticated HTTP with request-scoped receipts, size and SHA-256 checks, temporary-file cleanup and atomic publication. Honor Core size settings without a separate host HTTP ceiling.

Cancel pending transfers synchronously during context shutdown and send best-effort abort notices. Add tests for discovery, routing, permissions, receipt cleanup and cancellation.
2026-09-08 23:07:39 +02:00
Alessandro 36dda4c6b3 Add File Browser preferences and remote provider support
Add branded settings for sorting, list or icon view, initial tree visibility and independent editing and transfer limits. Refine picker controls and expose remote connection types through the Plugin Hub.

Route remote browsing, transfers, file actions and Editor sessions through enabled providers with per-connection permissions, bounded roots and save-conflict checks. Keep the Add connection menu overlaid and protocol-specific configuration in plugin extensions.

Cover navigation, provider permissions, remote editing and independent transfer limits with focused tests.
2026-09-08 23:07:39 +02:00
Alessandro a393faed0c Centralize configurable editing and transfer limits
Give Files and Editor shared UTF-8, binary and size validation. Default text editing to 10 MiB and file transfers to 100 MiB, with a scoped settings API and no artificial transfer ceiling.

Reject oversized local uploads before overwriting files and enforce Files download limits without changing Backup & Restore. Send larger Editor input and saves over HTTP while preserving conflict checks.

Add coverage for independent limits, invalid settings, large text editing and upload rejection without data loss.
2026-09-08 23:07:05 +02:00
Alessandro 9e0c44b984 Merge websocket transport hardening
Integrate negotiated payload limits, bounded chunked operations, transfer cleanup, and atomic HTTP file transfers. Preserve the current UI bundling, download scope, and Connector behavior while resolving branch conflicts.

Validation: 120 focused Core checks passed against a clean merged-source snapshot. Current File Browser edits are preserved in a separate stash for restoration.
2026-09-08 21:33:42 +02:00
Alessandro d541a942b0 fix(api): align downloads with file browser root
Resolve individual and bulk download paths from the filesystem root so authenticated operators can download every path exposed by the File Browser and editor.\n\nKeep the existing authentication, CSRF, path normalization, and archive behavior, and cover downloads outside the Agent Zero runtime directory with a regression test.
2026-08-12 14:34:16 +02:00
Alessandro 9dab4f2460 Hide the utility agent from profile selectors
Centralize omission of the internal default profile in the shared presentation catalog and keep status reporting intact for existing chats. Align Settings, model-switcher, Connector, Telegram, and selector contracts with focused regressions.
2026-08-12 14:34:15 +02:00
Alessandro afff2e3c05 Harden scoped tool policy enforcement
Resolve effective policy through inherited layers without letting empty upper configs shadow restrictions, and carry canonical tool identities through local and MCP execution.

Enforce required policy hooks and parent delegation checks at runtime, keep installed connector capabilities configurable while disconnected, and remove complete blocked-tool examples from rendered prompts.

Use the canonical tool prompts for concise catalog descriptions and add regressions for plugin activation, dotted local names, MCP calls, layered policies, and parallel subordinate paths.
2026-08-12 14:34:15 +02:00
Alessandro 9e5fd188e2 Finish scoped Agent Editor profile workflows
Add per-scope availability, duplication, active-profile status, and inline project selection while keeping the profile switcher synchronized with runtime state.

Reconcile unavailable profiles at explicit disable, deletion, project-transition, and context-creation boundaries; polish validation, prompt layout, deletion, and completion states; and extend focused backend and WebUI coverage.
2026-08-12 14:34:15 +02:00
Alessandro 2925baca8a Add file browser drag and drop
Move files and folders into directories or the parent path from the shared Files surface, with guarded multi-item backend moves and clear drop feedback.

Keep drag gestures independent from row selection, preserve unrelated selections after moves, and add focused regression coverage.
2026-08-01 12:50:31 +02:00
frdel bebe6826cf Improve WebUI bundling, manifest and stop command
Introduce a WebUI extension manifest and rewrite the asset bundler/server to support caller-supplied entry sets, extension-injected entries, and negotiated gzip. Key changes: add get_webui_extension_manifest() to helpers/extension, refactor Stop logic into stop_context() and reuse it from the connector `/stop` command, and add a new `/rename` slash command for chat naming. ui_bundler now accepts entry_urls, includes enabled extension entry files, raises the embedded text file size limit to 512 KiB, computes per-entry-set cache keys, and returns a bundle version based on the bundle signature. ui_server applies Starlette GZip middleware, adds routes (/, /index.html, /ui/index, /safe), serves splash/safe documents, injects the serialized webui_extension_manifest into the rendered index, and streamlines the /ui/asset-bundle endpoint with ETag and gzip handling. Also add multiple WebUI assets and fonts, new/updated plugin command YAML and Python command handlers, and corresponding tests covering bundling, commands, chat naming, and WebUI behaviors. Documentation (.dox.md) updated to reflect the new runtime contracts and guidance.
2026-07-29 19:49:07 +02:00
frdel 2ec52e1968 Add /stop API and stop-button UI/behavior
Introduce a /stop API handler (api/stop.py) and its DOX to cancel an AgentContext run without deleting the context; it clears pause state, progress and logs an info step. Add tests for stopping behavior, chat working animation, and sidebar timestamp/spacing (tests/*). Update helpers/git._format_git_timestamp to emit UTC timestamps without a timezone suffix and add a test for it. Implement stop-related UI/UX: input-store.js gains a stop state, activateSendButton(), and stopAgent() to call /stop; chat-bar-input.html updates the send button markup, aria-label and stop styles. Update sidebar/chat list CSS to add the working-bubble animation, adjust chat row layout and action-button visibility, and left-sidebar/bottom styling (nowrap timestamp). Modify messages.js to hide kvps.finished from display and complete the active process group when finished. Minor welcome-composer and documentation updates to reflect these behaviors.
2026-07-28 09:26:06 +02:00
Alessandro f08d63cb2e Make workspace HTTP transfers atomic
Stream uploads into same-directory partial files, verify their declared size, and publish them only after fsync and atomic replacement. Add download length and SHA-256 receipts so clients can verify bulk transfers before replacing host files.
2026-07-27 10:15:02 +02:00
Alessandro 828f919010 Harden Core connector transport
Enforce negotiated WebSocket ceilings before serialization can disconnect a peer, and add the symmetric checksummed transfer protocol for eligible large operations. Bound transfer state, spool large payloads to disk, and cancel active work on pause, reset, delete, or disconnect.
2026-07-27 10:14:52 +02:00
Alessandro 98589c6357 Add Editor downloads and archive extraction
Add Download to Editor file actions and safe File Browser extraction for ZIP, TAR, RAR, 7z, and compressed archives. Include archive safety checks, focused regressions, and 7zip in the base image.
2026-07-16 15:14:03 +02:00
Alessandro 3ac63c6166 Add responsive interface control visibility
Add an Interface settings section with independent mobile and desktop toggles for the project selector, clock, connection status, and right canvas rail.

Persist the visibility map in instance settings, apply it at the shared WebUI surfaces, preserve existing defaults, and cover the contract with focused regression tests and DOX updates.
2026-07-10 19:38:19 +02:00
Alessandro 7160747607 Remove backup file count cap
Let backup creation and restore cleanup use unlimited pattern scans so archives for agents with more than 50,000 files are complete. Keep UI preview and dry-run paths bounded for responsiveness while making the dry-run truncated flag safe for optional limits.

Add regression coverage for unlimited scans, backup creation, clean-before-restore, and restoring an archive entry past the old 50,000-file boundary.
2026-06-26 14:03:51 +02:00
Alessandro ffddc3ebcb Promote Files into shared canvas surface
Add Files to the universal canvas rail and sidebar flow, with a reusable floating surface modal chrome that matches Browser/Desktop behavior.

Make the File Browser modal draggable/resizable with Focus mode, keep Editor on the same draggable modal helper, and preserve dock/undock handoff state.

Harden File Browser startup so empty paths resolve to the default workdir, restyle the Up control, compact New file/New folder actions, and hide Modified before Name/Size in narrow containers.

Update DOX contracts and focused regression coverage for the new Files surface, modal chrome, default-path fallback, and compact layout behavior.
2026-06-23 11:19:58 +02:00
Alessandro 7ac9910e1d Add skill scanner settings flow
Add a Settings > Skills scanner section and modal backed by Snyk Agent Scan-oriented checks and prompts. Wire uploaded skill zips from Import Skills into the scanner before import, and add a preparation API that extracts archives into temporary scan roots without installing or executing them.

Harden shared skill zip extraction against traversal, backslash paths, and symlink entries, and cover the new flow with focused scanner tests.
2026-06-18 12:52:41 +02:00
Alessandro b9153f718e Preserve subordinate agent profiles
Validate call_subordinate profile arguments against available agent profiles so missing profiles fail as repairable errors. Persist each agent's profile in saved chats and avoid flattening existing subordinate profiles during profile switches, settings refresh, or restart reload.
2026-06-17 13:07:22 +02:00
Alessandro ab34084069 Polish MCP server management UI
Revamp the global and project MCP manager surfaces with list-first layout, clearer examples, a dedicated scanner modal, manager/raw toolbar parity, and local-command-first server creation.\n\nAdd server and tool search, plugin-style enable toggles, per-tool disabled_tools handling in the MCP backend, internal A0 MCP tool search, regression coverage, and updated DOX contracts.
2026-06-11 03:01:19 +02:00
Alessandro 521172b489 Revamp MCP server configuration
Add project-scoped MCP server configuration with global/project merge semantics, a richer settings UI, and chat composer access. Introduce MCP config scanning plus project-aware status/detail/log/apply APIs while preserving the raw JSON editor. Strengthen MCP runtime handling for dotted tool names, timeouts, status accuracy, and project-aware tool execution, with focused regression coverage.
2026-06-09 17:29:25 +02:00
frdel c576f67469 Merge branch 'ready' of https://github.com/agent0ai/agent-zero into ready 2026-06-08 12:41:57 +02:00
frdel e138e33ca9 Add file-level DOX docs & update AGENTS indexes
Add comprehensive file-level DOX documentation across the repo and update directory AGENTS.md indexes. Many new `*.py.dox.md` files were added under api, helpers, tools, plugins, extensions, webui, and other dirs to document endpoint purpose, ownership, runtime contracts, work guidance, and verification. Several AGENTS.md files were created or updated (agents profiles, api, docker, extensions, helpers, plugins, skills, webui components, etc.) to list child DOX files and clarify documentation/work guidance. Also add example and bundled profile DOX files (agent0, default, developer, hacker, researcher) and minor updates to helpers/dirty_json.py and its tests. These changes improve on-disk documentation coverage and establish the convention that each direct runtime file should have a matching `*.dox.md` describing its contracts and verification steps.
2026-06-08 12:41:53 +02:00
Alessandro ca4efe6e6a Fix Tailscale Remote Control CSRF origins
Normalize active Remote Control URLs to same-origin values before adding them to CSRF allowlists, so Tailscale Funnel URLs with paths or trailing slashes can bootstrap tokens correctly.

Allow WebSocket origin validation to trust only the currently active Remote Control origin, including Docker split-process tunnel service URLs, while preserving rejection for unrelated external origins.

Add focused regression coverage for active Tailscale-style origins, tunnel-service origin lookup, and negative cross-origin cases; keep run_ui decorator re-exports compatible with existing CSRF tests.
2026-06-04 14:54:39 +02:00
frdel 175baa49db Add AGENTS.md DOX files and migrate docs
Introduce DOX (AGENTS.md) contracts across the repository to formalize ownership and local work contracts: adds .github/AGENTS.md plus AGENTS.md files for agents, api, conf, docker, docs, extensions, helpers, knowledge, lib, plugins, prompts, scripts, skills, tests, tools, usr, webui (and several subfolders). Update root AGENTS.md (content and last-updated date) to include DOX framework guidance and a child DOX index. Update .gitignore to allow usr/ and usr/plugins AGENTS.md files. Remove legacy deep-dive files under docs/agents (banners, components, modals, plugins) and migrate frontend/plugin references to webui/ and plugins/ DOX locations. Also adjust plugins/README.md and several skills/*/SKILL.md files to align with the new DOX layout.
2026-06-01 13:55:07 +02:00
Alessandro d1827e6c66 Refactor: use user locale for time displays
Add user-configurable timezone and 12/24-hour preferences, then wire them through settings, runtime snapshots, scheduler payloads, wait handling, notifications, backups, memory, plugin metadata, and frontend formatters.

Keep UTC as the boundary for absolute instants while serializing user-facing dates in the configured or browser-resolved timezone. Preserve scheduler wall-clock inputs in the selected timezone, propagate TZ into desktop/runtime process environments, and restart active desktop sessions when the runtime timezone changes.

Cover the risky paths with timezone regression tests for settings normalization, auto and fixed timezone resolution, scheduler round-trips, memory timestamp conversion, and desktop timezone sync.
2026-05-21 15:26:00 +02:00
Alessandro Frau 81eeb0e198 Merge pull request #1653 from ruizanthony/fix/message-queue-auto-send-persistence
Fix message queue persistence after auto-send
2026-05-21 15:22:27 +02:00
Alessandro 675afa8dee Refactor speech stack into built-in Kokoro TTS and Whisper STT plugins
Split the legacy core speech stack into two built-in, independently toggleable plugins: `_kokoro_tts` for TTS and `_whisper_stt` for STT.

This refactor keeps dependency installation and bootstrap concerns in Docker/bootstrap/preload, while moving speech-specific tooling, APIs, prompts, UI, and runtime behavior into the plugins. Core now exposes engine-agnostic `tts-service` and `stt-service` brokers, with browser-native TTS preserved as the fallback when Kokoro is disabled.

Included in this change:
- add built-in `_kokoro_tts` plugin with plugin-owned synth API, config, status UI, and provider registration
- add built-in `_whisper_stt` plugin with plugin-owned transcribe API, mic runtime, device UI, prompt injection, and provider registration
- remove legacy core speech APIs/helpers/settings/UI and delete unused `webui/js/speech_browser.js`
- replace the old hardcoded speech settings section with a generic voice surface backed by plugin extensions
- update preload/docs/tests to match the new plugin-owned speech architecture

Behavioral intent:
- both plugins are built-in but not `always_enabled`
- users can now hot-switch TTS and STT independently
- browser TTS remains available when `_kokoro_tts` is off
- Whisper mic UI only appears when `_whisper_stt` is enabled
2026-05-21 05:41:59 +02:00
ruizanthony@gmail.com 83a58cf6ad Fix message queue persistence after auto-send 2026-05-19 14:07:09 +00:00
Alessandro 1f2d512226 fix(api): resolve image_get containment bypass (#1609)
Fixes agent0ai/agent-zero#1609.

Issue: "Unauthenticated Path-Containment Bypass in Agent Zero `/api/image_get`"
https://github.com/agent0ai/agent-zero/issues/1609

Resolve the path-containment bypass in /api/image_get by resolving requested images against the Agent Zero base directory before serving them, including symlink-aware validation and the development RFC fallback path.

Harden SVG and SVGZ responses with nosniff and a sandboxed CSP so uploaded SVGs cannot execute scripts in the Agent Zero origin. Add focused regressions for outside paths, symlink escapes, SVG headers, and development-mode remote validation.
2026-05-12 04:15:10 +02:00