agent-zero/webui/components/projects/AGENTS.md
frdel 15a2b553be Unify global model presets
Make model presets a single global collection and treat presets as reusable setups (main, utility, embedding). Persisted scope configs now store only a preset name (Default is always present and immutable); project-scoped preset definitions were removed and attempts to edit/reset project presets are rejected. Add embedding-model support throughout: include embedding slot in presets, surface embedding in the switcher and override APIs, and notify extensions when the effective embedding model changes. Implement rename/retire propagation to update plugin configs, saved chats, and live AgentContext objects when preset names change or presets are removed. Update CLI/integration commands to use an "inherit" action for returning to the scoped preset and to report the effective scoped-or-chat preset. Add startup migration/bootstrap to initialize presets from remote or bundled fallback and numerous docs/UI text updates to reflect the new preset model. Extra: refactor config resolution helpers and add safety checks (validation, atomic writes) when saving presets.
2026-07-17 12:16:10 +02:00

1.1 KiB

Project Components DOX

Purpose

  • Own WebUI project creation, selection, editing, secrets, model, skill, MCP server, and file-structure components.

Ownership

  • projects-store.js owns project state and actions.
  • project-create.html, project-list.html, and project-selector.html own project creation and navigation UI.
  • project-edit*.html files own project editing subsections.
  • project-file-structure-test.html owns file-structure test UI.

Local Contracts

  • Keep project API payloads synchronized with backend project handlers.
  • Do not expose project secrets in logs, URLs, or long-lived frontend state unnecessarily.
  • Preserve scoped settings interactions with plugins, models, skills, and MCP servers.
  • Project model settings select a global _model_config preset; they do not own copied model dictionaries or project-local preset definitions.

Work Guidance

  • Verify project edit flows when changing shared project store state.

Verification

  • Smoke-test create, select, edit, secrets, LLM, skills, MCP servers, and file-structure flows after changes.

Child DOX Index

No child DOX files.