githits 0.17.1 → 0.19.0
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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.plugin/plugin.json +1 -1
- package/README.md +2 -3
- package/dist/cli.js +45 -52
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-xd3fmh5h.js → chunk-1mb97483.js} +1 -1
- package/dist/shared/{chunk-768386cf.js → chunk-5wwkppph.js} +1 -1
- package/dist/shared/{chunk-n5pgm1zt.js → chunk-j981hv7p.js} +76 -14
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/server.json +2 -2
- package/skills/githits-code/SKILL.md +1 -3
- package/skills/githits-code/references/code-and-docs.md +4 -5
- package/skills/githits-mcp/SKILL.md +4 -2
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/plugin.json
CHANGED
package/server.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"source": "github",
|
|
17
17
|
"id": "1165453165"
|
|
18
18
|
},
|
|
19
|
-
"version": "0.
|
|
19
|
+
"version": "0.19.0",
|
|
20
20
|
"remotes": [
|
|
21
21
|
{
|
|
22
22
|
"type": "streamable-http",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registryType": "npm",
|
|
29
29
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
30
30
|
"identifier": "githits",
|
|
31
|
-
"version": "0.
|
|
31
|
+
"version": "0.19.0",
|
|
32
32
|
"runtimeHint": "npx",
|
|
33
33
|
"transport": {
|
|
34
34
|
"type": "stdio"
|
|
@@ -21,9 +21,8 @@ Use GitHits for evidence from real open-source code instead of guessing from mod
|
|
|
21
21
|
|
|
22
22
|
## Decision Flow
|
|
23
23
|
|
|
24
|
-
- Need a canonical cross-project example or pattern: `githits example "<focused question>"`; include source repositories/citations from GitHits' generated references/provenance section
|
|
24
|
+
- Need a canonical cross-project example or pattern: `githits example "<focused question>"`; include source repositories/citations from GitHits' generated references/provenance section. If GitHits cannot match `--lang`, retry with a suggested language from the error, or omit `--lang`.
|
|
25
25
|
- Need package metadata, vulnerability/advisory status, dependency graphs, or release notes: stop and use the `githits-package` skill instead.
|
|
26
|
-
- Exact language name uncertain for `example --lang`: run `githits languages <query>` first.
|
|
27
26
|
- Inspecting a known dependency or public repository: start with `githits search` scoped by `--in`.
|
|
28
27
|
- Searching an exact standalone documentation site: use `githits search "<topic>" --source docs --in site:<host[/path]>`. If the result reports suggested site targets, retry one explicitly; suggestions are advisory targets, not aliases.
|
|
29
28
|
- Need file/path enumeration: use `githits code files`; do not probe directories with `code read`.
|
|
@@ -35,7 +34,6 @@ Use GitHits for evidence from real open-source code instead of guessing from mod
|
|
|
35
34
|
```bash
|
|
36
35
|
githits example "how to use express middleware"
|
|
37
36
|
githits example "react hooks patterns" --lang typescript
|
|
38
|
-
githits languages type
|
|
39
37
|
|
|
40
38
|
githits search "router middleware" --in npm:express@5.2.1
|
|
41
39
|
githits search "debounce" --in npm:lodash@4.18.1 --source symbol
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitHits Code And Docs CLI Reference
|
|
2
2
|
|
|
3
|
-
Package target syntax requires an explicit registry: `registry:name[@version]`, for example `npm:express@5.2.1`; omit `@version` for the latest release. Package targets inspect an indexed artifact/manifest root. Swift package targets use `swift:github.com/<owner>/<repo>` and Zig package targets use `zig:gh/<owner>/<repo>`. Use public repository targets for full repositories or sibling packages. Repository compact targets use `github:org/repo[
|
|
3
|
+
Package target syntax requires an explicit registry: `registry:name[@version]`, for example `npm:express@5.2.1`; omit `@version` for the latest release. Package targets inspect an indexed artifact/manifest root. Swift package targets use `swift:github.com/<owner>/<repo>` and Zig package targets use `zig:gh/<owner>/<repo>`. Use public repository targets for full repositories or sibling packages. Repository compact targets use `github:org/repo[@ref]`, `codeberg:owner/repo[@ref]`, `gitlab:group[/subgroup...]/project[@ref]`, `github.com/org/repo[@ref]`, or `https://github.com/org/repo[@ref]`; omitted refs request the backend default-branch intent. Exact standalone documentation sites use `site:<host[/path]>`. Output uses canonical `provider:path@ref` formatting so refs can contain `@` safely. `code` commands also support `--repo-url <url> [--git-ref <ref>]`.
|
|
4
4
|
|
|
5
5
|
## Search
|
|
6
6
|
|
|
@@ -57,15 +57,14 @@ Partial and capped documentation coverage are usable published evidence. Report
|
|
|
57
57
|
## Command Name Mapping
|
|
58
58
|
|
|
59
59
|
- `githits example` maps to MCP `get_example`.
|
|
60
|
-
- `githits languages` maps to MCP `search_language`.
|
|
61
60
|
- `githits search` maps to MCP `search`.
|
|
62
61
|
- `githits search-status` maps to MCP `search_status`.
|
|
63
62
|
- `githits code files` maps to MCP `code_files`.
|
|
64
63
|
- `githits code grep` maps to MCP `code_grep`.
|
|
65
|
-
- `githits code read` maps to MCP `
|
|
64
|
+
- `githits code read` maps to MCP `read` with `target` and `path`.
|
|
66
65
|
- `githits docs list` maps to MCP `docs_list`.
|
|
67
|
-
- `githits docs read` maps to MCP `
|
|
66
|
+
- `githits docs read` maps to MCP `read` with `target` alone.
|
|
68
67
|
|
|
69
|
-
Direct repository targets accept approved full HTTPS URLs on github.com, codeberg.org, and gitlab.com. Codeberg requires exactly owner/repo; GitLab allows nested namespaces. Only GitHub supports host shorthand and HTTP compatibility. Never infer a provider from bare owner/repo.
|
|
68
|
+
Direct repository targets accept approved full HTTPS URLs on github.com, codeberg.org, and gitlab.com. Codeberg requires exactly owner/repo; GitLab allows nested namespaces. Only GitHub supports host shorthand and HTTP compatibility. Never infer a provider from bare owner/repo. Repository refs use an @ suffix and may themselves contain / and @; # is reserved for semantic fragments. Empty refs and mixed suffixes are invalid. Credentials, queries, provider web subpaths, and unsupported/self-hosted hosts are rejected. Package targets keep registry-native coordinates, including `zig:cb/owner/repo` and `swift:gitlab.com/group/project`. Changelog repo URL fields remain full HTTPS URLs.
|
|
70
69
|
|
|
71
70
|
GitLab web paths with `/-/` or reserved routes such as `tree`, `blob`, and `raw` are rejected. Unreserved names such as `issues` can be repository path components; without a web-route marker, the client treats the complete nested path as repository identity.
|
|
@@ -32,14 +32,16 @@ the routing decision; the selected tool supplies its argument details.
|
|
|
32
32
|
| Find canonical implementation examples across projects | `get_example` |
|
|
33
33
|
| Check progress of an earlier search reference | `search_status` |
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
If `get_example` cannot match a language, retry with a suggested language from the error, or omit language. For comparative questions, combine
|
|
36
36
|
the relevant package/source route with examples when needed.
|
|
37
37
|
|
|
38
38
|
Scope: public OSS only, never local/private/proprietary source. Package targets
|
|
39
39
|
use `registry:name[@version]` and inspect an indexed artifact/manifest root;
|
|
40
40
|
Swift uses `swift:github.com/<owner>/<repo>`, Zig `zig:gh/<owner>/<repo>`.
|
|
41
41
|
Use public repository targets for full repositories or sibling packages, with
|
|
42
|
-
an explicit
|
|
42
|
+
an explicit `github:`, `codeberg:`, or `gitlab:` provider, or a supported full URL.
|
|
43
|
+
Append revisions as `@ref`; refs may contain later `@` characters. `#` is
|
|
44
|
+
reserved for semantic fragments and never identifies a repository revision.
|
|
43
45
|
Never infer a repository provider. Use selected tool descriptions for supported
|
|
44
46
|
target forms and argument details.
|
|
45
47
|
|