Skip to content

Add production source location plugins - #199

Open
SweetRetry wants to merge 2 commits into
benjitaylor:mainfrom
SweetRetry:feat/source-location-plugin
Open

Add production source location plugins#199
SweetRetry wants to merge 2 commits into
benjitaylor:mainfrom
SweetRetry:feat/source-location-plugin

Conversation

@SweetRetry

Copy link
Copy Markdown

Summary

  • resolve build-time data-agentation-id metadata before falling back to React internals
  • add a separately publishable @agentation/source-locations workspace package with Next.js/Turbopack and Vite integrations
  • generate compact manifests containing repository-relative paths and positions without source content
  • preserve existing Turbopack rules while running instrumentation first
  • cover .js, .jsx, and .tsx, and avoid instrumenting shadowed custom component bindings
  • document single-project and monorepo setup

Testing

  • pnpm test
  • pnpm build
  • pnpm install --offline --ignore-scripts --frozen-lockfile
  • npm pack --dry-run --json in plugins/source-locations

Closes #198

Add opt-in Next.js and Vite build integrations backed by a compact source manifest. Resolve instrumented DOM elements in the Agentation runtime and cover workspace, binding, and loader-order behavior.
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

@SweetRetry is attempting to deploy a commit to the Benji Taylor's Projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support original source locations in deployed Preview environments through an opt-in build plugin

1 participant