Files
agent-zero/plugins/_wait/AGENTS.md
Alessandro 25694e2ce7 feat: add missing bundled plugin thumbnails
Add matching catalog artwork for A2A Chat, Behavior Adjustment,
Notify User, Scheduler, Search Engine, and Wait, completing thumbnail
coverage for all 47 bundled plugins.

Save each JPEG at 256x256 and below 20,000 bytes, and document the
asset ownership in each plugin's DOX.

Validation: checked image dimensions, encoding, and file sizes;
verified catalog discovery, HTTP delivery, and live WebUI rendering.
2026-10-27 18:40:11 +01:00

38 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Wait Plugin DOX
## Purpose
- Own the `wait` tool for pausing agent execution until a duration or timestamp.
## Ownership
- `tools/wait.py` owns argument parsing, validation, and agent-facing tool behavior.
- `helpers/wait.py` owns intervention-aware waiting and remaining-time formatting.
- `prompts/` owns the tool prompt and the wait-complete framework message.
- `extensions/webui/` owns the tool's message presentation.
- `webui/css/` owns the HLD badge accent loaded through the `extensions/webui/page-head/` extension.
- `plugin.yaml` and `README.md` own metadata and docs.
- `webui/thumbnail.jpg` owns the 256×256 plugin catalog artwork, kept below 20 KB.
## Local Contracts
- Duration waits extend the target time by observed intervention pauses; `until` waits keep the absolute target.
- The countdown reports whole seconds only; the wait loop ticks on whole-second boundaries.
- Waiting loops must keep calling `agent.handle_intervention()` so pause/abort stays responsive.
- `tools/wait.py` logs `type="wait"` through a `get_log_object()` override; `extensions/webui/get_message_handler/wait-handler.js` renders it with badge `HLD` and `get_process_step_types/wait-types.js` registers the type for raw-log grouping.
- The plugin owns the historical `progress` presentation: the core `drawMessageProgress` handler and its dispatch case were removed, and old chat logs carrying `type="progress"` route through this plugin's handler.
## Work Guidance
- Keep tool output concise, model-readable, and safe for history persistence.
- Coordinate argument or behavior changes with the tool prompt and the managed-wait helper contract.
- Respect intervention flow: waiting loops must keep calling `agent.handle_intervention()`.
## Verification
- Run `tests/test_wait_tool.py` for the wait logic regression tests covering argument validation, countdown tick anchoring, intervention pause extension, and remaining-time formatting.
## Child DOX Index
No child DOX files.