How pranavsinghpatil/inlay-mware works
Inlay is loopback middleware for transparently forwarding a coding harness’s provider requests while collecting bounded, content-free measurements. The main runtime path validates configuration, accepts and buffers requests, forwards them to the configured provider, streams responses back, and records process-local metrics. Optional structural, recurrence, and timeline observations enrich those records; explicitly loaded Pi adapters provide separate research capture of protocol or tool-action metadata. The README documents the transport boundary and measurement limits; sampled sources show the runtime and adapter calls, but not every route branch.
Main entry points: app.ts HTTP proxy · content-free-timeline.ts Content-free timeline · server.ts Server startup · protocol-spike.ts Protocol spike
Components 16
Proxy runtime
- Server startup
src/server.ts - Proxy config
src/config.ts - HTTP proxy
src/app.ts - HTTP helpers
src/http.ts
Transport measurement
- Metrics window
src/metrics.ts - Request structure
src/observation.ts - SSE observer
src/observation.ts - Exact recurrence
src/observation.ts
Pi research adapters
- Protocol spike
extensions/protocol-spike.ts - Action feasibility
extensions/action-fusion-feasibility.ts - Content-free timeline
extensions/content-free-timeline.ts
Local capture
- Protocol capture
src/protocol-capture.ts - Action recorder
src/action-observation.ts
Other components
- Coding harness
- Existing provider
- Pi harness
Connections 18
- Coding harness → HTTP proxy: sends requests
README.md - HTTP proxy → Existing provider: forwards requests
README.md - Existing provider → HTTP proxy: streams responses
README.md - HTTP proxy → Coding harness: passes through
README.md - Server startup → Proxy config: loads
src/server.ts - Server startup → HTTP proxy: starts
src/server.ts - HTTP proxy → HTTP helpers: reads and forwards
src/app.ts - HTTP proxy → Metrics window: records metrics
src/app.ts - HTTP proxy → Request structure: derives structure
src/app.ts - HTTP proxy → SSE observer: observes stream
src/app.ts - HTTP proxy → Exact recurrence: tracks recurrence
src/app.ts - Protocol spike → Protocol capture: appends events
extensions/protocol-spike.ts - Action feasibility → Action recorder: records actions
extensions/action-fusion-feasibility.ts - Content-free timeline → Action recorder: records timings
extensions/content-free-timeline.ts - Pi harness → Protocol spike: loads adapter
- Pi harness → Action feasibility: loads adapter
- Pi harness → Content-free timeline: loads adapter
- Content-free timeline → Existing provider: overrides base URL
extensions/content-free-timeline.ts