Update IPC docs to reflect contract-driven architecture (#2477)
## Summary
- Rewrote the IPC architecture section in AGENTS.md to document the
current contract-driven pattern (`defineContract`/`createClient`,
`defineEvent`/`createEventClient`, `defineStream`/`createStreamClient`)
- Replaced outdated references to `IpcClient.getInstance()` with the new
domain client imports (e.g., `appClient`, `ipc` namespace)
- Added key files table, step-by-step guide for adding new endpoints,
and renderer usage examples
## Test plan
- Documentation-only change — no code affected
- Verified lint, type checks, and all 27 unit test files pass
#skip-bugbot
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2477">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Updated the IPC docs in AGENTS.md to reflect the contract-driven
architecture (defineContract/createClient,
defineEvent/createEventClient, defineStream/createStreamClient).
Replaced IpcClient.getInstance references with domain clients and the
ipc namespace, and added key files, add-endpoint steps, handler
expectations (Zod), renderer event/stream examples, and updated React
Query snippets.
<sup>Written for commit 2f9d6a8d4bbcac2c51437562e300ca03d2cf178f.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论