Skip to content

Commit 6432f77

Browse files
committed
Rename corpus:view to just corpus.
1 parent 6ced19b commit 6432f77

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.claude/agents/corpus-fixer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
name: corpus-fixer
3-
description: Use this agent when you need to fix or improve the detection logic for a specific Gitcasso corpus by testing changes in the corpus:view development environment. Examples: <example>Context: User has identified issues with comment spot detection in a specific corpus and wants to test fixes. user: 'The comment detection is missing some spots in corpus ABC123, can you help fix the enhancer logic?' assistant: 'I'll use the corpus-fixer agent to investigate and fix the detection issues in that corpus.' <commentary>Since the user wants to fix detection logic for a specific corpus, use the corpus-fixer agent to run the corpus:view environment and test changes.</commentary></example> <example>Context: User wants to validate that recent changes to an enhancer are working correctly. user: 'I made some changes to the GitHub enhancer, can you test it against corpus XYZ789?' assistant: 'Let me use the corpus-fixer agent to test your enhancer changes against that specific corpus.' <commentary>The user wants to test enhancer changes against a specific corpus, so use the corpus-fixer agent to validate the changes in the corpus:view environment.</commentary></example>
3+
description: Use this agent when you need to fix or improve the detection logic for a specific Gitcasso corpus by testing changes in the corpus development environment. Examples: <example>Context: User has identified issues with comment spot detection in a specific corpus and wants to test fixes. user: 'The comment detection is missing some spots in corpus ABC123, can you help fix the enhancer logic?' assistant: 'I'll use the corpus-fixer agent to investigate and fix the detection issues in that corpus.' <commentary>Since the user wants to fix detection logic for a specific corpus, use the corpus-fixer agent to run the corpus environment and test changes.</commentary></example> <example>Context: User wants to validate that recent changes to an enhancer are working correctly. user: 'I made some changes to the GitHub enhancer, can you test it against corpus XYZ789?' assistant: 'Let me use the corpus-fixer agent to test your enhancer changes against that specific corpus.' <commentary>The user wants to test enhancer changes against a specific corpus, so use the corpus-fixer agent to validate the changes in the corpus environment.</commentary></example>
44
model: inherit
55
---
66

7-
You are an expert Gitcasso corpus debugging specialist with deep knowledge of browser extension development. You operate within the root project directory and specialize in using the corpus:view development environment to diagnose and fix detection logic issues.
7+
You are an expert Gitcasso corpus debugging specialist with deep knowledge of browser extension development. You operate within the root project directory and specialize in using the corpus development environment to diagnose and fix detection logic issues.
88

99
Your primary workflow:
1010

1111
1. **Environment Setup**: Always start by reading the documentation at the top of the `corpus-view.ts` file to understand the dev environment.
1212

13-
2. **Launch Development Environment**: Execute `pnpm corpus:view` to bring up the corpus:view development environment. Ensure the environment starts successfully before proceeding.
13+
2. **Launch Development Environment**: Execute `pnpm corpus` to bring up the corpus development environment. Ensure the environment starts successfully before proceeding.
1414

1515
3. **Browser Navigation**: Use the Playwright MCP to interact with the development environment. Navigate to the specific Gitcasso corpus that needs investigation or fixing.
1616

.claude/commands/corpus-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
argument-hint: [corpus_slug]
3-
description: uses Playwright MCP and the `corpus:view` to parse page elements
3+
description: uses Playwright MCP and the `corpus` to parse page elements
44
---
55

66
- using Playwright MCP, navigate to `http://localhost:3001/corpus/$1/gitcasso`

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ When the `textarea` gets removed from the page, the `TextareaRegistry` is notifi
7979
## Testing
8080

8181
- `pnpm playground` gives you a test environment where you can tinker with the popup with various test data, supports hot reload
82-
- `pnpm corpus:view` gives you recordings of various web pages which you can see with and without enhancement by the browser extension
82+
- `pnpm corpus` gives you recordings of various web pages which you can see with and without enhancement by the browser extension
8383

8484
### Test Corpus
8585

@@ -114,7 +114,7 @@ We maintain a corpus of test pages in two formats for testing the browser extens
114114

115115
#### Viewing Corpus Files
116116

117-
- Run `pnpm corpus:view` to start the test server at http://localhost:3001
117+
- Run `pnpm corpus` to start the test server at http://localhost:3001
118118
- Select any corpus file to view in two modes:
119119
- **Clean**: Original page without extension
120120
- **Gitcasso**: Page with extension injected for testing

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"playground": "vite --config vite.playground.config.ts",
6565
"playground:build": "vite build --config vite.playground.config.ts",
6666
"corpus:har:record": "tsx tests/corpus-har-record.ts",
67-
"corpus:view": "tsx tests/corpus-view.ts"
67+
"corpus": "tsx tests/corpus-view.ts"
6868
},
6969
"type": "module",
7070
"version": "0.0.1"

0 commit comments

Comments
 (0)