githits 0.4.5 → 0.4.7
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 +2 -1
- package/README.md +5 -4
- package/commands/help.md +2 -1
- package/dist/cli.js +1427 -360
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-zzmbjttb.js → chunk-70bn2pmx.js} +2 -2
- package/dist/shared/{chunk-vfyz65v1.js → chunk-7b4f7fd5.js} +1 -1
- package/dist/shared/{chunk-ygqss6gp.js → chunk-tm11qwgr.js} +416 -78
- package/gemini-extension.json +1 -1
- package/package.json +11 -11
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/help.md +2 -1
- package/skills/githits-code/SKILL.md +1 -1
- package/skills/githits-code/references/code-and-docs.md +2 -2
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "githits",
|
|
3
3
|
"description": "CLI companion for GitHits - code examples from global open source for developers and AI assistants",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -69,29 +69,29 @@
|
|
|
69
69
|
"url": "https://github.com/githits-com/githits-cli/issues"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
72
|
+
"node": "^20.12.0 || >=22.13.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@inquirer/prompts": "^8.3
|
|
79
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
80
|
-
"@napi-rs/keyring": "^1.
|
|
78
|
+
"@inquirer/prompts": "^8.4.3",
|
|
79
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
80
|
+
"@napi-rs/keyring": "^1.3.0",
|
|
81
81
|
"commander": "^14.0.2",
|
|
82
82
|
"jsonc-parser": "^3.3.1",
|
|
83
83
|
"open": "^11.0.0",
|
|
84
|
-
"semver": "^7.
|
|
84
|
+
"semver": "^7.8.0",
|
|
85
85
|
"smol-toml": "^1.6.1",
|
|
86
|
-
"zod": "^4.
|
|
86
|
+
"zod": "^4.4.3"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@biomejs/biome": "^2.
|
|
89
|
+
"@biomejs/biome": "^2.4.15",
|
|
90
90
|
"@types/bun": "latest",
|
|
91
91
|
"@types/semver": "^7.7.1",
|
|
92
|
-
"bunup": "^0.16.
|
|
92
|
+
"bunup": "^0.16.31",
|
|
93
93
|
"husky": "^9.1.7",
|
|
94
|
-
"lint-staged": "^
|
|
95
|
-
"typescript": "^
|
|
94
|
+
"lint-staged": "^17.0.4",
|
|
95
|
+
"typescript": "^6.0.3"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -35,7 +35,8 @@ This plugin connects to the GitHits MCP server and always exposes these core too
|
|
|
35
35
|
|
|
36
36
|
Additional indexed dependency/package tools are available by default:
|
|
37
37
|
`search`, `search_status`, `docs_list`, `docs_read`, `pkg_info`, `pkg_vulns`,
|
|
38
|
-
`pkg_deps`, `pkg_changelog`, `
|
|
38
|
+
`pkg_deps`, `pkg_changelog`, `pkg_upgrade_review`, `code_files`,
|
|
39
|
+
`code_read`, and `code_grep`.
|
|
39
40
|
|
|
40
41
|
## Authentication
|
|
41
42
|
|
|
@@ -53,7 +53,7 @@ githits docs read <pageId> --lines 20-120
|
|
|
53
53
|
- For behavioral claims, prefer source, symbols, tests, and call sites over docs prose.
|
|
54
54
|
- For source work, locate symbols or matches first, then read a focused window with explicit `--lines`.
|
|
55
55
|
- For multi-step code/docs investigations, keep raw CLI output out of the final answer unless it is the evidence the user needs.
|
|
56
|
-
- If
|
|
56
|
+
- If output says it used recent/stale indexed evidence, treat the displayed served target as provenance; if freshness matters, retry with a longer `--wait` or use one of the displayed `queryable now` versions/refs, or inspect JSON `targetResolution` for structured candidates.
|
|
57
57
|
- After using GitHits results, send feedback when practical. Use `githits feedback <solution_id> --accept|--reject` for `githits example` results, or omit `<solution_id>` for generic session feedback such as `githits feedback --reject --tool search -m "missing kotlin support"`.
|
|
58
58
|
|
|
59
59
|
## External Content Posture
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitHits Code And Docs CLI Reference
|
|
2
2
|
|
|
3
|
-
Package target syntax is `registry:name[@version]`, for example `npm:express@5.2.1`; omit `@version` for the latest release. Repository target syntax uses `--repo-url <url> --git-ref <ref
|
|
3
|
+
Package target syntax is `registry:name[@version]`, for example `npm:express@5.2.1`; omit `@version` for the latest release. Repository target syntax uses `--repo-url <url> [--git-ref <ref>]` for `code` commands; omit `--git-ref` for the backend default-branch intent. For `search`, use `--in https://github.com/org/repo` for the backend default-branch snapshot or append `#ref` such as `#HEAD` for a specific/latest ref.
|
|
4
4
|
|
|
5
5
|
## Search
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ Useful filters: `--path`, repeatable `--glob`, repeatable `--ext`, repeatable `-
|
|
|
20
20
|
|
|
21
21
|
`githits code read <spec> <path>` reads one exact package-relative file. Use `--lines 10-80`, `--start`, or `--end` for focused windows. You can also append a range to the path: `src/index.js:10-80`.
|
|
22
22
|
|
|
23
|
-
For repository addressing: `githits code read --repo-url <url> --git-ref <ref> <path>`.
|
|
23
|
+
For repository addressing: `githits code read --repo-url <url> [--git-ref <ref>] <path>`.
|
|
24
24
|
|
|
25
25
|
## Code Grep
|
|
26
26
|
|