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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "GitHits plugins for Claude Code - code examples from global open source",
9
- "version": "0.2.1"
9
+ "version": "0.2.3"
10
10
  },
11
11
  "plugins": [
12
12
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Code examples from global open source for developers and AI assistants",
5
5
  "author": {
6
6
  "name": "GitHits"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Code examples from global open source for developers and AI assistants",
5
5
  "author": {
6
6
  "name": "GitHits"
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, required) - programming language name (use `search_language` to verify)
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 get the correct language identifier.
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
- - Call `search_language` first to confirm the correct language name before calling `get_example`
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
@@ -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. The tool requires two
10
- parameters:
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 parameter:
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` and `language` parameters.
32
- - **search_language** — Look up supported programming language names before
33
- searching.
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`,
@@ -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. The tool requires two
12
- parameters:
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 parameter:
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