refactor: remove old versioned marker system from agent instructions injection#802
Merged
refactor: remove old versioned marker system from agent instructions injection#802
Conversation
✅ Deploy Preview for viteplus-staging canceled.
|
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
…injection Replace the `<!--injected-by-vite-plus-v...-->` marker system with the `<!--VITE PLUS START-->` / `<!--VITE PLUS END-->` markers already used by `utils/agent.ts`. This removes `getOwnVersion()`, version comparison logic, and the old regex constants, reusing `replaceMarkedAgentInstructionsSection()` from the shared utility instead.
…Block Cover all code paths: file creation, marker-based update, no-change skip, and append without markers.
Use detectExistingAgentTargetPaths to check all known agent file paths instead of hardcoding only AGENTS.md and CLAUDE.md. Revert AGENT_INSTRUCTIONS_START_MARKER back to non-exported const.
d52adb3 to
c4128b1
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Replace the
<!--injected-by-vite-plus-v...-->marker system with the<!--VITE PLUS START-->/<!--VITE PLUS END-->markers already usedby
utils/agent.ts. This removesgetOwnVersion(), version comparisonlogic, and the old regex constants, reusing
replaceMarkedAgentInstructionsSection()from the shared utility instead.