Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# My Custom Claude Instructions

Do not modify this file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "command-config-no-agent-writes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
> git init
> vp config
> cat CLAUDE.md # should be unchanged
# My Custom Claude Instructions

Do not modify this file.

> test -f AGENTS.md && echo 'AGENTS.md exists' || echo 'AGENTS.md not created' # should not exist
AGENTS.md not created
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"commands": [
{ "command": "git init", "ignoreOutput": true },
"vp config",
"cat CLAUDE.md # should be unchanged",
"test -f AGENTS.md && echo 'AGENTS.md exists' || echo 'AGENTS.md not created' # should not exist"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# My Project

Custom instructions here.

<!--VITE PLUS START-->

OUTDATED CONTENT THAT SHOULD BE REPLACED

<!--VITE PLUS END-->

More custom content below.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "command-config-update-agents"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
> git init
> vp config # should auto-update agent instructions
> head -5 AGENTS.md # verify user content preserved
# My Project

Custom instructions here.

<!--VITE PLUS START-->

> tail -3 AGENTS.md # verify user content preserved
<!--VITE PLUS END-->

More custom content below.

> grep -q 'OUTDATED CONTENT' AGENTS.md && echo 'ERROR: outdated content still present' || echo 'outdated content replaced' # verify old content gone
outdated content replaced
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"commands": [
{ "command": "git init", "ignoreOutput": true },
"vp config # should auto-update agent instructions",
"head -5 AGENTS.md # verify user content preserved",
"tail -3 AGENTS.md # verify user content preserved",
"grep -q 'OUTDATED CONTENT' AGENTS.md && echo 'ERROR: outdated content still present' || echo 'outdated content replaced' # verify old content gone"
]
}
15 changes: 0 additions & 15 deletions packages/cli/snap-tests/command-run-with-vp-config/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@
$ vp config ⊘ cache disabled
.git can't be found

Created AGENTS.md with Vite+ instructions
◇ Add this MCP server config to your agent ─╮

{
"vite-plus": {
"command": "npx",
"args": [
"vp",
"mcp"
]
}
}

╰────────────────────────────────────────────╯


[2]> vp run bar # should throw error
$ vp not-exist-command ⊘ cache disabled
Expand Down
95 changes: 0 additions & 95 deletions packages/cli/src/config/__tests__/agent.spec.ts

This file was deleted.

205 changes: 0 additions & 205 deletions packages/cli/src/config/agent.ts

This file was deleted.

Loading
Loading