githits 0.2.1 → 0.2.3
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.plugin/plugin.json +1 -1
- package/GEMINI.md +3 -3
- package/commands/example.md +7 -6
- package/commands/help.md +3 -3
- package/commands/search.md +7 -6
- package/dist/cli.js +708 -94
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-67qnnqby.js → chunk-9zze00cp.js} +2 -2
- package/dist/shared/{chunk-ykr7x8jp.js → chunk-a9js75mw.js} +1 -1
- package/dist/shared/{chunk-szjytcvw.js → chunk-js72s35a.js} +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +2 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/example.md +7 -6
- package/plugins/claude/commands/help.md +3 -3
- package/plugins/claude/commands/search.md +7 -6
- package/plugins/claude/skills/search/SKILL.md +2 -1
- package/skills/search/SKILL.md +2 -1
package/.plugin/plugin.json
CHANGED
package/GEMINI.md
CHANGED
|
@@ -11,12 +11,12 @@ Find code examples from open source repositories.
|
|
|
11
11
|
**Parameters:**
|
|
12
12
|
|
|
13
13
|
- `query` (string, required) - natural language description of what you need
|
|
14
|
-
- `language` (string,
|
|
14
|
+
- `language` (string, optional) - programming language name; omit it to let GitHits infer the language from the query
|
|
15
15
|
- `license_mode` (string, optional) - one of `strict` (default), `yolo`, or `custom`
|
|
16
16
|
|
|
17
17
|
### search_language
|
|
18
18
|
|
|
19
|
-
Look up supported programming language names. Use this before calling `get_example` to
|
|
19
|
+
Look up supported programming language names. Use this before calling `get_example` only when you need to force a specific language and the exact name is uncertain.
|
|
20
20
|
|
|
21
21
|
**Parameters:**
|
|
22
22
|
|
|
@@ -60,7 +60,7 @@ Do not use `get_example` for:
|
|
|
60
60
|
|
|
61
61
|
## How to Search Well
|
|
62
62
|
|
|
63
|
-
-
|
|
63
|
+
- Pass `language` only when you need to force a specific language; call `search_language` first if the exact language name is uncertain
|
|
64
64
|
- Formulate queries as natural language questions (e.g., "How to stream responses with the Vercel AI SDK in Next.js")
|
|
65
65
|
- Include specific error messages, library names, or API names when relevant
|
|
66
66
|
- Keep queries focused: 3-4 technical terms maximum
|
package/commands/example.md
CHANGED
|
@@ -6,16 +6,17 @@ description: Search for canonical code examples from open source via GitHits
|
|
|
6
6
|
|
|
7
7
|
Search for code examples using GitHits for the query: "$ARGUMENTS"
|
|
8
8
|
|
|
9
|
-
Use the GitHits MCP `get_example` tool with the user's query.
|
|
10
|
-
|
|
9
|
+
Use the GitHits MCP `get_example` tool with the user's query.
|
|
10
|
+
|
|
11
|
+
Required parameter:
|
|
11
12
|
|
|
12
13
|
- **query**: The user's search query, formulated in natural language.
|
|
13
|
-
- **language**: The programming language. If the language is unclear from
|
|
14
|
-
context, use the `search_language` tool first to find the correct language
|
|
15
|
-
name.
|
|
16
14
|
|
|
17
|
-
Optional
|
|
15
|
+
Optional parameters:
|
|
18
16
|
|
|
17
|
+
- **language**: The programming language. Omit it to let GitHits infer the
|
|
18
|
+
language from the query. If you need to force a specific language and the
|
|
19
|
+
exact name is uncertain, use the `search_language` tool first.
|
|
19
20
|
- **license_mode**: `"strict"` (default, excludes copyleft), `"yolo"` (all
|
|
20
21
|
licenses), or `"custom"` (user's blocklist).
|
|
21
22
|
|
package/commands/help.md
CHANGED
|
@@ -28,9 +28,9 @@ context summary:
|
|
|
28
28
|
This plugin connects to the GitHits MCP server and always exposes three core tools:
|
|
29
29
|
|
|
30
30
|
- **get_example** — Find code examples by describing what you need in natural
|
|
31
|
-
language. Requires `query
|
|
32
|
-
- **search_language** — Look up supported programming language names
|
|
33
|
-
|
|
31
|
+
language. Requires `query`; `language` is optional and inferred when omitted.
|
|
32
|
+
- **search_language** — Look up supported programming language names when you
|
|
33
|
+
need to force a specific language.
|
|
34
34
|
- **feedback** — Rate a search result to improve future quality.
|
|
35
35
|
|
|
36
36
|
Additional indexed dependency/package tools such as `search`, `package_summary`,
|
package/commands/search.md
CHANGED
|
@@ -8,16 +8,17 @@ Use GitHits example search for the query: "$ARGUMENTS"
|
|
|
8
8
|
|
|
9
9
|
This slash command is the older alias for `/githits:example`.
|
|
10
10
|
|
|
11
|
-
Use the GitHits MCP `get_example` tool with the user's query.
|
|
12
|
-
|
|
11
|
+
Use the GitHits MCP `get_example` tool with the user's query.
|
|
12
|
+
|
|
13
|
+
Required parameter:
|
|
13
14
|
|
|
14
15
|
- **query**: The user's search query, formulated in natural language.
|
|
15
|
-
- **language**: The programming language. If the language is unclear from
|
|
16
|
-
context, use the `search_language` tool first to find the correct language
|
|
17
|
-
name.
|
|
18
16
|
|
|
19
|
-
Optional
|
|
17
|
+
Optional parameters:
|
|
20
18
|
|
|
19
|
+
- **language**: The programming language. Omit it to let GitHits infer the
|
|
20
|
+
language from the query. If you need to force a specific language and the
|
|
21
|
+
exact name is uncertain, use the `search_language` tool first.
|
|
21
22
|
- **license_mode**: `"strict"` (default, excludes copyleft), `"yolo"` (all
|
|
22
23
|
licenses), or `"custom"` (user's blocklist).
|
|
23
24
|
|