AGENTS.md@frontend/packages/react/src/componentsA
AGENTS.md@frontend/packages/react/src/components from volcengine/openviking is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add volcengine/openviking/frontend/packages/react/src/components/AGENTS.md@git:20261105.425b0d7Pins git:20261105.425b0d7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- volcengine/openviking
- Path
frontend/packages/react/src/components/AGENTS.md- Versions recorded
- 4
- Latest version
- git:20261105.425b0d7, committed Nov 5, 2026
- First version recorded
- Nov 4, 2026
- Size
- 2,251 bytes
- Repository stars
- 41,589
- License
- AGPL-3.0
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Components Agent Guide 适用于本目录及其子目录,同时遵循 [Frontend Agent Guide](../../../../AGENTS.md)。 ## 视图层边界 - 本目录只承载可复用的 UI 展示与交互,当前包括目录树、文件预览、TUI、作用域选择与 Agent 接入视图。组件的归属由职责决定。 - 通过 props 接收渲染所需的数据及加载、空态、错误等状态,通过事件回调表达展开、搜索、保存、重试等用户意图。回调可以返回组件渲染所需的输入(例如编辑前取回的完整正文),但不得返回任一宿主接口的数据结构;组件不能依赖某个宿主既定的接口格式。上层执行数据操作后,业务状态仍以 props 传入。 - 不自行调用 fetch、Axios 或业务 SDK,不创建业务 WebSocket/SSE 连接,也不通过私有 Hook、工具或 Store 间接引入数据获取逻辑。请求参数、响应适配、分页请求、流式连接和取消由上层负责。 - 组件内可做格式化等展示计算,可维护折叠、焦点、输入草稿等实例内交互状态。业务数据处理、权限判断、账号作用域、持久化和请求缓存由上层负责;组件接收处理后的数据与可操作状态。 - 组件不依赖业务模块、应用路由或业务服务。上层 [modules](../modules/AGENTS.md) 或宿主通过 Hook 获取和处理数据,再组合这些组件;组件仍可由宿主直接使用。 ## 新增与迁移 - 每个组件独占一个 kebab-case 目录,入口文件与目录同名;组件私有的子组件、Hook、类型和样式就近放置。 - 迁入代码时先拆出数据获取和业务编排,组件仅保留视图、交互和必要的公开接口。示例使用固定公开数据,由示例外层模拟状态更新;组件在没有后端连接时也应能独立展示和操作。 - 组件公开入口为 `components/<模块>`,样式入口为 `components/<模块>/style.css`,并纳入 `components/style.css` 和整包 `style.css`。单组件 CSS 必须可独立消费,JS 入口不隐式加载 CSS。不提供 `components` 聚合 JS 入口。 - 更新公开入口时同步维护包导出、Rslib 入口、声明路径及示例;验证要求沿用 Frontend Agent Guide。
Read the whole file at its exact version.
How to install
mdr add volcengine/openviking/frontend/packages/react/src/components/AGENTS.md@sha256:cb6ca5b97789af15The line at the top of this page pins the label git:20261105.425b0d7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_atujxlgprsukf3ft)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Nov 4, 2026 and Nov 5, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261105.425b0d7 latest | 2026-11-05 | 425b0d7 | 2,251 B | A | view · diff |
| git:20261104.0b713a5 | 2026-11-04 | 0b713a5 | 2,211 B | A | view · diff |
| git:20261104.2ace1f2 | 2026-11-04 | 2ace1f2 | 2,177 B | A | view · diff |
| git:20261104.e6437c9 | 2026-11-04 | e6437c9 | 2,246 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2251 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
volcengine/openviking · 41,589 stars · license AGPL-3.0 · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_atujxlgprsukf3ft GET https://markdownregistry.com/api/v1/resolve?ref=volcengine/openviking/frontend/packages/react/src/components/AGENTS.md GET https://markdownregistry.com/api/v1/blob/cb6ca5b97789af15cc82ae823fcae500cfbb074ffe1c8e5833753a6958b8d284
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.