Ken
|
0751fbfa0a
|
feat: visual artifact runtime for AI-generated inline visualizations
- Add bundle/apps/runtime.html: universal runtime that executes
AI-generated visualization code in a sandboxed context
- Pre-loads CDN libraries: Tabler CSS, Leaflet CSS+JS, Chart.js v4,
React 19 UMD, ReactDOM 19 UMD, Babel standalone 7
- Implements mcpBridge with JSON-RPC 2.0 protocol:
sendToHost, callTool (with UUID ids + Promise), sendMessage, resize
- executeVisual detects JSX/HTML/plain-JS paths via regex
- Auto-resize via requestAnimationFrame + scrollHeight + 32, capped at 800
- Initial ui/initialize handshake with runtime='visual-artifact' v1.0.0
- Listens for 'render' and legacy 'tool/input' methods
- Add tests/test_runtime_html.py: 61 tests covering all spec requirements
|
2026-05-26 20:08:22 +00:00 |
|
Ken
|
9f5a407773
|
feat: researcher agent with playwright-cli, A2UI, inline visuals, artifact conventions
- Add bundle/agents/researcher.md with full YAML frontmatter:
- meta.name: researcher
- meta.description with WHY/WHEN/WHAT/HOW pattern and 4 delegation examples
(hybrid cars near Woodinville, project management tools, Seattle-Tokyo flights,
mechanical keyboards for programming)
- model_role: [research, general]
- Body sections: Browser Control with 11-command playwright-cli table, Snapshot
Refs subsection, Best Practices, A2UI @mention, Artifacts @mention, Inline Visuals
@mention to visual-artifacts.md with proactive visual generation guidance, and
6-step Research Workflow (Understand → Plan → Browse/Extract → Present →
Generate Artifacts → Iterate)
- Add tests/test_researcher_agent.sh with 53 checks covering all spec requirements
Co-authored-by: Amplifier <amplifier@microsoft.com>
|
2026-05-26 20:00:03 +00:00 |
|