gm-copilot-cli 2.0.62 → 2.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copilot-profile.md +1 -1
- package/hooks/pre-tool-use-hook.js +2 -2
- package/manifest.yml +1 -1
- package/package.json +1 -1
- package/skills/code-search/SKILL.md +8 -8
- package/tools.json +1 -1
package/copilot-profile.md
CHANGED
|
@@ -57,9 +57,9 @@ const run = () => {
|
|
|
57
57
|
|
|
58
58
|
if (tool_name === 'Bash') {
|
|
59
59
|
const command = (tool_input?.command || '').trim();
|
|
60
|
-
const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl |pm2 )/.test(command);
|
|
60
|
+
const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl |pm2 |cd )/.test(command);
|
|
61
61
|
if (!allowed) {
|
|
62
|
-
return { block: true, reason: 'Bash only allows: git, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl, pm2. Write all logic as code and execute it via Bash (e.g. node -e "...", python -c "...", bun -e "..."). Use Read/Write/Edit for file ops. Use code-search skill for exploration.' };
|
|
62
|
+
return { block: true, reason: 'Bash only allows: git, gh, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl, pm2, cd. Write all logic as code and execute it via Bash (e.g. node -e "...", python -c "...", bun -e "..."). Use Read/Write/Edit for file ops. Use code-search skill for exploration.' };
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
package/manifest.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-search
|
|
3
3
|
description: Semantic code search across the codebase. Use for all code exploration, finding implementations, locating files, and answering codebase questions. Replaces mcp__plugin_gm_code-search__search and codebasesearch MCP tool.
|
|
4
|
-
allowed-tools: Bash(
|
|
4
|
+
allowed-tools: Bash(bun x codebasesearch*)
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Semantic Code Search
|
|
8
8
|
|
|
9
|
-
Search the codebase using natural language.
|
|
9
|
+
Only use bun x codebasesearch to search, ro custon code, never use other cli tools to search the codebase. Search the codebase using natural language. Do multiple searches when looking for files, starting with fewer words and adding more if you need to refine the search. 102 file types are covered, returns results with file paths and line numbers.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
bun x codebasesearch "your natural language query"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Examples
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
bun x codebasesearch "where is authentication handled"
|
|
21
|
+
bun x codebasesearch "database connection setup"
|
|
22
|
+
bun x codebasesearch "how are errors logged"
|
|
23
|
+
bun x codebasesearch "function that parses config files"
|
|
24
|
+
bun x codebasesearch "where is the rate limiter"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Rules
|