next.js
ec8ddcd7 - docs: clarify agent feedback workspace context (#101358)

Commit
25 days ago
docs: clarify agent feedback workspace context (#101358) ## Summary A repository-root `npx` invocation may fail when Next.js is installed only in a child workspace. Specify the directory whose `package.json` declares `next` in the managed entry command, and keep the monorepo explanation and pnpm example in the internal feedback protocol. Updated guidance: - `packages/next/src/server/lib/generate-agent-files.ts` and `packages/create-next-app/helpers/generate-agent-files.ts`: short package-directory instruction. - `docs/01-app/02-guides/ai-agents.mdx` and `docs/01-app/03-api-reference/05-config/01-next-config-js/agentFeedback.mdx`: matching managed blocks. - `packages/next/src/agent-feedback/protocol.md`: workspace context and pnpm invocation for opening report drafts. The merged #100135 covers hoisted installs; this clarification covers an app-local install that is not visible from the repository root. Finding: https://next-maintainer-agent.vercel.tools/agent-feedback/6773 ## Verification - Supplied reproduction at `666656de4d13839d5e1aeaae90717de04cad9423` passed locally on `next@16.5.0-canary.43`: root `npx` fails, while app-directory and resolved-CLI invocations succeed. - With `--dry-run`, `pnpm --dir apps/web exec next internal agent-feedback-instructions` from the repository root and `npx` from `apps/web` both exit 0 and print identical protocol output. - Existing generator unit suite: 15 tests passed. - Ran both source generators in temporary directories and verified their feedback blocks exactly match both docs copies. - Prettier and ESLint passed on all changed files. - Full checks remain blocked: `pnpm lint` reports existing unused Rust turbo-tasks items; `pnpm build-all` cannot find `microbundle` in the temporary worktree. <!-- NEXT_JS_LLM -->
Author
Parents
Loading