agent-zero/plugins/_editor/AGENTS.md
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

1.5 KiB

Editor Plugin DOX

Purpose

  • Own the native Markdown and plain text editor surface for canvas and floating modal workflows.

Ownership

  • api/ owns editor session and WebSocket handlers.
  • helpers/ owns editor text session and open-file context helpers.
  • prompts/ owns agent-visible open-file context.
  • webui/ owns editor panel, preview, store, and main surface.
  • extensions/ owns editor hook contributions.

Local Contracts

  • Keep editor session state synchronized across API, WebSocket, and WebUI panel behavior.
  • Do not expose unsaved content or local paths beyond intended chat/context surfaces.
  • Keep the floating Editor modal on the shared surface modal chrome so the header remains draggable while existing Focus mode continues to work.
  • Keep Editor Open wired through the File Browser text picker so users can open one or more Markdown or plain text files with an obvious confirmation action.
  • Keep Download in the Editor file-actions menu and save dirty text before downloading it.
  • Keep Save As distinct from Rename: Save As writes the current editor text to a chosen .md or .txt path and retargets the active session without removing the original file.
  • Preserve source chat context ids when opening Markdown files from tool-result canvas handoffs.

Work Guidance

  • Coordinate editor preview and session changes with canvas surface registration.

Verification

  • Smoke-test opening, editing, previewing, and reconnecting editor sessions after changes.

Child DOX Index

No child DOX files.