git-subtree-dir: aiui git-subtree-mainline:0c4826f8ccgit-subtree-split:e30ac1d106
1.0 KiB
1.0 KiB
name, description, allowed-tools
| name | description | allowed-tools |
|---|---|---|
| mock-archy | Enable/configure mock Archy data for standalone dev testing | Bash(*), Read, Edit, Glob, Grep |
Set up or modify mock Archy data for testing the Archipelago integration without a real Archy host.
How it works
Mock data is in packages/app/src/mocks/archy.ts. When enabled, useArchy.ts loads this data instead of waiting for the Archy bridge.
Enable mock mode
Two ways:
- Add
VITE_MOCK_ARCHY=trueto.env.local - Add
?mockArchyto the URL:http://localhost:5173/?mockArchy
Customization
The user may ask to:
- Add/remove mock apps from the installed list
- Change wallet balance or channel count
- Add/modify files in the mock file list
- Change system info or network status
- Test specific scenarios (e.g., "node is syncing", "wallet offline", "no files")
Edit packages/app/src/mocks/archy.ts accordingly.
Verify
After changes, check that buildArchyContext() in useArchy.ts produces the expected system prompt section by reading the function and tracing the mock data through it.