32 Commits
Author SHA1 Message Date
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 46fc664842 Warn about incompatible Agent Zero versions in Plugin Hub 2026-11-18 13:13:02 +01:00
Jan Tomášek d87bd6d01d Add Official Plugin Hub category for agent0ai repositories 2026-11-18 11:55:37 +01:00
Alessandro 6d395ddeba Add channel plugin discovery to the welcome screen
Add a puzzle-icon "Find channels plugins" text button below the channel
buttons, reusing the welcome footer styling. Open Plugin Hub Browse with
the channels tag selected and any previous search cleared. Keep the
Channels filter visible even when no plugins have the tag.

Update the owning docs and regression coverage. Verified with 21 focused
tests and live browser checks for navigation, search reset, mobile layout,
and keyboard focus.
2026-11-01 00:19:17 +01:00
Alessandro e092b3aae6 Make provider plugins discoverable during onboarding
Add neutral puzzle-icon links to the first-message setup prompt and all
three onboarding provider tabs. Open Plugin Hub with the exact provider
tag filter, clear previous searches, and keep Provider visible in the
filter list even when no plugins match.

Replace the Account and Local notes with the shared shortcut. Close the
wizard before opening the Hub and preserve the pending chat message.

Validation: 24 focused pytest tests and 4 Plugin Hub tests passed.
Verified all three tabs, keyboard activation, and the 14 tagged results
in the live UI.
2026-10-31 21:05:39 +01:00
Alessandro 798318cbf2 Make welcome customizations discoverable in the Plugin Hub
Add a persistent puzzle-piece button beside Show all dismissed that opens
Plugin Hub Browse with Welcome selected and any previous search cleared.
Preserve this requested filter through the Browse initialization reset.

Match and count all plugin tags rather than only the first tag, and keep
the Welcome filter visible even before matching plugins are indexed. Clip
the welcome background without creating a nested scroll container so block
focus and touch reordering scroll the page correctly.

Validation: focused Hub and restoration tests passed, along with six
welcome composer checks. Live verification covered the Welcome filter,
responsive plugin panels, touch reordering, dismissal/restoration, and
clean console output. Shared component and extension loaders are unchanged.
2026-10-30 13:54:04 +01:00
Alessandro 40a4303637 Rebase local plugin commits during updates
Divergent local and upstream commits caused plugin updates to fail because
git pull had no reconciliation strategy.

Fetch the configured upstream and rebase local commits. Abort conflicting
rebases and restore the original commits and edits, preserving the stash
index during rollback. Refuse existing Git operations and leave other
branch refs untouched. Include escaped conflicting filenames in a
persistent error toast and retain the existing detail view.

Validation: 12 updater tests passed. Isolated installer/API checks covered
Git and ZIP installation, ordinary updates, rebasing, conflicts, and an
unavailable remote. Browser checks verified the conflict toast and filename
escaping.
2026-09-16 00:44:04 +02:00
spinnakergit d1e1c6494e fix(plugin-hub): preserve dirty edits during updates
Temporarily stash tracked plugin edits while updating. Restore the original checkout and edits if the update cannot reapply them, and surface the conflict beside the Update button. Add isolated Git regression coverage for merge, no-op, and conflict cases.
2026-08-12 14:34:16 +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 3ded188542 Add Plugin Hub "New" filter for recent plugins
- Add recency-based New filter to plugin hub browsing, showing plugins updated in the last 14 days
  - Add "Newest" sort option and New badge/filter chip styling in browse cards
  - Auto-switch to newest sorting when New filter is selected
2026-04-21 06:15:29 +02:00
frdel 44e008745d Sanitize print logs; refactor popular plugin logic
Ensure printed output and HTML logs are safe by importing and applying sanitize_string, opening log files with utf-8 and errors='replace', and sanitizing text before writing. Add tests to verify lone surrogate characters are replaced and that logging won't crash on invalid Unicode. In the plugin installer UI, introduce POPULAR_PLUGIN_MIN_STARS and centralize popularity checking in _isPopularPlugin, using it for filtering and counts.
2026-03-30 11:50:59 +02:00
Alessandro c2e14b6cd1 sanitize plugin markdown rendering with shared helper
Add a shared safe markdown pipeline for plugin READMEs and docs.

- vendor DOMPurify and introduce a shared safe-markdown helper
- centralize GitHub README link/image rebasing, including repo routes like `releases`
- sanitize rendered HTML before all plugin-related x-html sinks
- apply the shared renderer to Plugin Hub README, installed plugin README, and markdown modal docs
- preserve target/rel handling for external links
2026-03-28 19:29:26 +01:00
Alessandro baa806558e Handle GitHub route links in README rebasing 2026-03-28 14:47:07 +01:00
frdel c7a983638e Add force refresh support and state management improvements to plugin installer and model config
- Add force parameter to plugin index fetch with cache-busting headers and timestamp
- Add openIndexView and reloadIndex methods to pluginInstallStore for explicit refresh
- Add request sequence tracking to prevent race conditions in concurrent index loads
- Move models summary state from component to store with loading/caching support
- Add refreshModelsSummary, ensureModelsSummaryLoaded, and modal
2026-03-26 17:24:32 +01:00
Alessandro d986a19839 plugin_installer: refetch plugin hub on Browse tab
The browse view used x-create on install-index to load the index, but
that hook was not a dependable signal when returning from the Git or ZIP
tabs. setTab('store') now resets browse state and calls fetchIndex so the
hub stays in sync whenever Browse is selected, including on modal open.
2026-03-23 17:56:38 +01:00
frdel fd3b5253c7 refactor: normalize plugin paths, add README viewer to plugin info modal, and update plugin hub filters
- Normalize plugin paths using files.normalize_a0_path in get_enhanced_plugins_list
- Add collapsible README section to plugin info modal with loading/error states
- Implement loadPluginReadme function to fetch and render plugin documentation
- Update plugin hub pagination from 20 to 24 items per page
- Change popular filter threshold from >0 to >=3 stars
- Add comprehensive README styling with support
2026-03-22 08:05:32 +01:00
Alessandro e59cca3008 enhance README link handling in plugin installer
- Introduced _rebaseReadmeLinks function to update README links to point to the correct GitHub blob URLs based on the repository and branch.
- Updated readmeContent processing to apply link adjustments and ensure links open in new tabs.
2026-03-21 13:09:18 +01:00
Alessandro 6b8a6d959a improve Plugin Hub cards and plugin info
Surface repository metadata for installed custom plugins and add quick actions from the plugin info modal to open plugin files or jump back into the Plugin Hub. Refresh Plugin Hub card/status styling and modal spacing.
2026-03-21 13:01:44 +01:00
frdel 31ddee713c refactor: move allow_chat_override to top-level config and improve datetime parsing
- Move allow_chat_override from chat_model to top-level configuration
- Update all references to use new config path
- Set default to true in default_config.yaml, false in migration
- Fix datetime parsing to handle timezone-less ISO strings by appending 'Z'
- Remove inline style from tune icon in config.html
2026-03-19 21:17:48 +01:00
Alessandro 6aaa435a1d plugins: thumbnails in plugin list and hub 2026-03-19 15:57:58 +01:00
Alessandro 5ed58fb10f simplify plugin config modal opening
Move plugin config modal initialization into pluginSettingsStore.openConfig(), so callers only pass plugin name and optional scope. Resolve invalid project/agent scopes inside the store, initialize toggle state on the resolved scope, remove the old saveMode/core-save path, and delete stale saveMode guidance from docs and plugin skills.
2026-03-19 13:53:08 +01:00
Alessandro 661ec6b548 update plugin_scan message and styling 2026-03-18 17:08:38 +01:00
frdel bbffe18159 Merge branch 'development' of https://github.com/agent0ai/agent-zero into development 2026-03-16 20:34:49 +01:00
Alessandro 2dc6bd54f2 plugins: rename marketplace to plugin hub 2026-03-16 17:54:54 +01:00
Alessandro 2a6820064d plugins: rename init to execute 2026-03-16 17:13:11 +01:00
frdel 7ee5dac78e add report malicious plugin link to installer detail view
Add a "Report malicious plugin" link to the plugin detail view that generates a GitHub report-content URL for plugins with a GitHub source. The link extracts the username from the GitHub URL and pre-fills GitHub's abuse report form. Style the link in error-text color to distinguish it from other developer links.
2026-03-16 16:45:56 +01:00
Alessandro 32bc95da39 add extensible plugin list dropdown with marketplace links
Add a new per-plugin actions dropdown to the plugin list and expose new HTML extension points inside it so plugins can inject custom dropdown entries while empty menus stay hidden.

Also add a fire-and-forget JS hook after `plugins_list` loads, with `_plugin_installer` owning the cached marketplace index fetch and deep-link helper so matching installed plugins get a Marketplace action that opens the exact marketplace detail.
2026-03-16 15:44:45 +01:00
Alessandro abdb354d26 remove redundant x-destroy attributes in plugin-related HTML files 2026-03-16 04:04:37 +01:00
frdel 482fa42d98 refactor(git): Restructure git helpers with dataclasses and add remote update checking
Replace get_git_info implementation with structured dataclass-based approach. Add GitHeadInfo, GitReleaseInfo, GitRemoteReleaseInfo, GitRemoteReleasesResult, GitRemoteCommitsInfo, GitRepoReleaseInfo, and PluginUpdateInfo dataclasses. Implement get_remote_releases to query GitHub tags, get_remote_commits_since_local to check for upstream commits, get_repo_release_info to extract repository metadata, and update
2026-03-13 15:18:13 +01:00
frdel a48ac95a29 feat(plugins): Add extensibility and hooks system to plugin API
Add @extension.extensible decorators to all plugin API handler methods and core plugin functions to enable extension points. Implement plugin hooks system allowing plugins to define custom behavior via hooks.py file. Add call_plugin_hook function to execute plugin-specific hooks for events like uninstall, save_plugin_config, and get_plugin_config. Introduce uninstall_plugin function that calls uninstall hook before deletion. Move circular
2026-03-12 13:21:33 +01:00
Alessandro a9722e70fd use toastFrontend for error msgs in plugins 2026-03-11 13:01:52 +01:00
frdel 6515626242 refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00