Files
ocean/frontend/agentation-entry.jsx
2026-01-31 23:16:21 +08:00

18 lines
482 B
React
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.
/**
* Agentation 挂载入口(https://github.com/benjitaylor/agentation
* 在页面底部渲染可视化反馈工具栏,供 AI 编码代理定位元素。
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Agentation } from 'agentation';
const rootEl = document.getElementById('agentation-root');
if (rootEl) {
const root = createRoot(rootEl);
root.render(
<React.StrictMode>
<Agentation />
</React.StrictMode>
);
}