@re-agentation/metro
v0.2.1
Published
Metro custom middleware that receives Re-agentation annotation batches from the running RN app and queues them for the MCP server.
Downloads
406
Maintainers
Readme
@re-agentation/metro
Metro dev-server middleware for Re-agentation — receives annotation batches from the probe and exposes the queue, change history, undo/redo stash, and media uploads to the apply watcher / MCP server.
👉 See the root README for the full story, architecture, and setup.
Install
pnpm add -D @re-agentation/metroUse
// metro.config.js
const { withReagentation } = require('@re-agentation/metro')
const { getDefaultConfig } = require('@react-native/metro-config')
module.exports = withReagentation(getDefaultConfig(__dirname))This mounts endpoints under /__agentation__/ on the Metro dev server:
POST /batch— enqueue a batch from the probeGET /status·GET /queue/recent·POST /ack·POST /cancelGET /history(limit·offset·q·status) + per-entryundo/redo/DELETEPOST /media+ media / before-after screenshot serving
All state lives on your machine under .agentation/ — zero telemetry, nothing uploaded. (Add .agentation/ to .gitignore.)
Production safety
The middleware only runs inside the Metro dev server. A release build ships a static bundle with no Metro, so none of this exists in production.
License
MIT © Jaehwa Jung & Re-agentation contributors
