Commit Graph
17 Commits
Author SHA1 Message Date
Alessandro 1ff362a0e6 Speed up agent editor loading with deferred Advanced data
Open Easy mode with only the main instruction prompt and fetch the remaining
prompt files on first Advanced entry. Preserve unsaved edits, checkpoints,
project scope changes and ACE undo history. Keep full loads as the API default
for existing clients.

Inventory prompt files once per root per request and render capability lists
and tool actions only when expanded, avoiding work while those views are closed.

Validation: 325 focused regression tests pass in the Docker framework runtime.
Live browser and HTTP checks cover Global/project saves, deferred loading,
mode switching, unsaved edits, action controls, ACE undo, and failed-load retry.
The full suite reports 2,939 passed and 48 skipped; all 14 failures also reproduce
against the unchanged HEAD before this change.
2026-10-28 01:31:12 +01:00
Alessandro 9616ee518b feat: group tool action permissions in Agent Editor
Show each tool once in Easy and Advanced modes, with expandable action
controls and existing descriptions. Whole-tool controls update all actions;
action searches reveal matching entries without narrowing that scope.

Hide permission summaries when every action is enabled. Add an expanded
"Individual tool actions" subtitle and align action text and controls with
the parent tool. Preserve saved action IDs and keep expansion and search
out of profile changes.

Validation: 194 focused tests passed, with all seven WebUI tests rerun
after the final styling changes. Live Docker checks covered desktop/mobile
rendering, keyboard expansion, filtered bulk edits, and save/reopen. The
final padding adjustment was verified in the served stylesheet.
2026-10-27 21:43:09 +01:00
Alessandro 0e3d267f79 feat: add per-action permissions for bundled tools
Let profiles allow individual operations across all 12 bundled multi-action
tools, such as reading files without allowing writes or listing scheduled
tasks without allowing deletion.

Share action contracts across runtime policy, Agent Editor, text prompts,
and native schemas. Preserve existing whole-tool policies and legacy memory
IDs; only explicit permission edits persist the editor's projection.

Check aliases, defaults, browser batches, reset flags, and parallel
operations at execution. Apply action permissions to automatic browser
context and skill hints.

Validation: 742 focused tests passed. Live Docker checks verified allowed
reads, denied writes through native/legacy/parallel dispatch, blocked
scheduler deletion, and editor save/reload.
2026-10-27 19:06:13 +01:00
Alessandro Frau 31ceafa2c1 Merge pull request #1966 from linkliti/feat/promote-plugins-v2
feat: Tool improvements
2026-10-27 18:24:19 +01:00
Alessandro 788997691f fix: align editor permissions and legacy tool contracts 2026-10-27 18:02:15 +01:00
Alessandro d896a4277c Clarify prompt editing in Agent Editor
Prompt templates with runtime variables looked read-only and exposed processor
details above the editing area. Give main sections readable titles and show
customization status beside the title, a compact save path with a reliable
copy action, and a short variable hint below the editor.

Keep authored placeholders intact so runtime values refresh normally. Cover
Global and project overrides, template hints, search, and clipboard failures;
update the plugin documentation.

Validation: 198 focused tests passed. Verified save/reopen/reset, clipboard
contents, and a 377px-wide editor pane on the live localhost:32081 instance.
2026-10-22 22:13:25 +02:00
Alessandro a4e65d4721 Fix user plugin precedence in provider and profile merges
User-first discovery let last-value-wins merges overwrite community
provider and profile definitions with bundled values. Apply bundled root
groups first in provider loading, profile loading and catalogs, and Agent
Editor metadata.

Share the existing root-priority key and use stable sorting at merge sites,
preserving same-root order and cached lookup lists. Add collision, fallback,
scoped-override and prompt/schema/dispatch regressions, and update DOX.

Validation: 206 focused tests and 17 checks against the bind-mounted Docker
framework runtime passed. git diff --check and helper DOX coverage passed.
2026-10-08 15:51:32 +02:00
Alessandro 282f13982b fix agent profile switching logic
Keep profile catalog reads lightweight by detecting sparse editor overrides without building removal plans for every agent.

Use the chat snapshot refresh as the single switch trigger and share concurrent same-context catalog requests while preserving newest-context-wins behavior.
2026-08-12 14:34:15 +02:00
Alessandro c327701c83 Fix Agent Editor profile lifecycle state
Base reset visibility on the sparse removal plan, preserve unrelated profile files, and surface completion feedback without waiting for model-profile refreshes.

Keep saved preset controls and fresh-chat selection synchronized across global and project scopes, including the shared sidebar context race, with focused regressions and updated DOX.
2026-08-12 14:34:15 +02:00
Alessandro 13ecab24ee Unify Agent Editor capability and prompt controls
Give Tools, MCPs, and Skills explicit default switches with segmented per-item policy controls while preserving sparse overrides. Simplify Advanced prompt editing around the full-height ACE surface and align the editor contracts and regression coverage.
2026-08-12 14:34:15 +02:00
Alessandro 2a2890d892 Add reusable agent profile commands
Expose sparse Easy-mode profile creation through the Agent Editor and Connector API capability, while preserving existing profile selection behavior.

Reuse /profile in the WebUI for management and fast creation, then open a fresh chat with the new profile in the selected project scope. Add focused backend, command, and WebUI regressions for the shared flow.
2026-08-12 14:34:15 +02:00
Alessandro 7b9f06771f Polish Agent Editor profile management
Add scoped restore for inherited profiles through the existing sparse removal path, and streamline Manage agents with separator rows and no redundant footer.

Remove redundant customization signals, use theme-primary colors for compact identity actions, simplify delegation guidance, and extend focused WebUI regressions.
2026-08-12 14:34:15 +02:00
Alessandro 7545eef298 Harden scoped agent profile mutations
Validate destructive requests and project-derived scopes at the Agent Editor API boundary, and reuse the running-profile guard for deletion.

Recheck creation and availability invariants inside the existing mutation boundary, preserve project availability atomically through its dedicated owner, and keep Project Edit and Settings catalogs from replaying stale or unavailable profile state.

Add focused regressions for confirmation, collisions, malformed project metadata, avatar failures, running profiles, and sparse project updates.
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 027466c873 Add project-scoped Agent Editor profiles
Reuse the existing project/profile layers so Manage agents can switch between Global and project scope while sparse reads, writes, resets, and policy configs stay bound to the selected layer.

Make deletion scope-owned, preserve inherited profiles, and open Save & test chats in the exact selected scope.
2026-08-12 14:34:15 +02:00
Alessandro 457e92584f Polish Agent Editor workflows
Refine the Easy and Advanced surfaces with direct prompt editing, visible tool controls, compact transfer lists, per-row profile actions, and clearer review and removal states.

Reuse the shared compact model preset selector, improve responsive layouts and copy, and extend focused WebUI contracts for the polished behavior.
2026-08-12 14:34:15 +02:00
Alessandro 32bf5889b0 Add deterministic sparse Agent Editor backend
Add dedicated Agent Editor APIs that read layered profile state and execute explicit change plans for metadata, prompts, model presets, tool policy, skill policy, and avatars.

Keep writes sparse and user-scoped, preserve unknown files and keys, avoid the destructive legacy save path and all model calls, and cover profile lifecycle, validation, provenance, and reset behavior.
2026-08-12 14:34:15 +02:00