githits 0.9.2 → 0.9.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 +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/AGENTS.md +7 -2
- package/dist/cli.js +81 -36
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-89dydy8a.js → chunk-etx8jndp.js} +100 -7
- package/dist/shared/{chunk-dqq6yv70.js → chunk-g3jtxnfk.js} +1 -1
- package/dist/shared/{chunk-9wrnhdst.js → chunk-kc1y3rd7.js} +1 -1
- 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 +4 -1
- package/skills/githits-code/references/code-and-docs.md +5 -3
- package/skills/githits-mcp/SKILL.md +3 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createRequire}from"node:module";var __require=createRequire(import.meta.url);var description="The code context layer for AI coding agents";var version="0.9.
|
|
1
|
+
import{createRequire}from"node:module";var __require=createRequire(import.meta.url);var description="The code context layer for AI coding agents";var version="0.9.3";
|
|
2
2
|
export{__require,description,version};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{clearAutoLoginAuthSessionMetadata,createAuthCommandDependencies,createAuthStatusDependencies,createContainer,loadAutoLoginAuthSessionMetadata,recordAuthFingerprint}from"./chunk-
|
|
1
|
+
import{clearAutoLoginAuthSessionMetadata,createAuthCommandDependencies,createAuthStatusDependencies,createContainer,loadAutoLoginAuthSessionMetadata,recordAuthFingerprint}from"./chunk-etx8jndp.js";import"./chunk-g3jtxnfk.js";export{recordAuthFingerprint,loadAutoLoginAuthSessionMetadata,createContainer,createAuthStatusDependencies,createAuthCommandDependencies,clearAutoLoginAuthSessionMetadata};
|
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.9.
|
|
19
|
+
"version": "0.9.3",
|
|
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.9.
|
|
31
|
+
"version": "0.9.3",
|
|
32
32
|
"runtimeHint": "npx",
|
|
33
33
|
"transport": {
|
|
34
34
|
"type": "stdio"
|
|
@@ -24,6 +24,7 @@ Use GitHits for evidence from real open-source code instead of guessing from mod
|
|
|
24
24
|
- Need package metadata, vulnerability/advisory status, dependency graphs, or release notes: stop and use the `githits-package` skill instead.
|
|
25
25
|
- Exact language name uncertain for `example --lang`: run `githits languages <query>` first.
|
|
26
26
|
- Inspecting a known dependency or GitHub repo: start with `githits search` scoped by `--in`.
|
|
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.
|
|
27
28
|
- Need file/path enumeration: use `githits code files`; do not probe directories with `code read`.
|
|
28
29
|
- Know the exact text to match: use `githits code grep` (literal by default). Pass `--regex` for RE2 syntax; lookaround and backreferences are unsupported. Use `githits search` for discovery.
|
|
29
30
|
- Need documentation pages: use `githits search "<topic>" --source docs --in <target>` for topic search, or `githits docs list <spec>` to browse available pages.
|
|
@@ -38,6 +39,7 @@ githits languages type
|
|
|
38
39
|
githits search "router middleware" --in npm:express@5.2.1
|
|
39
40
|
githits search "debounce" --in npm:lodash@4.18.1 --source symbol
|
|
40
41
|
githits search '"body parser" OR multer' --in npm:express --source docs --json
|
|
42
|
+
githits search "middleware" --in site:expressjs.com --source docs
|
|
41
43
|
githits search-status <searchRef>
|
|
42
44
|
|
|
43
45
|
githits code files npm:express@5.2.1 lib/ --ext js --limit 100
|
|
@@ -55,12 +57,13 @@ githits docs read <pageId> --lines 20-120
|
|
|
55
57
|
- For `githits example` results, report the source repositories/citations shown in GitHits' generated references/provenance section; they are core evidence for the synthesized pattern.
|
|
56
58
|
- Package targets inspect published artifacts and omitted versions resolve to the latest release; repository targets inspect repository trees. For source-layout questions, always pin and report the package version or Git ref.
|
|
57
59
|
- For source work, locate symbols or matches first, then read a focused window with explicit `--lines`.
|
|
58
|
-
- Documentation text reads return at most 150 lines per call. Continue with
|
|
60
|
+
- Documentation text reads return at most 150 lines per call. Continue with explicit `--lines` windows when more context is needed; pass `--json` when you need `startLine`, `endLine`, or `totalLines` pagination metadata.
|
|
59
61
|
- For multi-step code/docs investigations, keep raw CLI output out of the final answer unless it is the evidence the user needs.
|
|
60
62
|
- 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.
|
|
61
63
|
- Treat partial documentation coverage as incomplete evidence and retry later when advised. Capped coverage is terminal for the current crawl, so report the limitation instead of retrying.
|
|
62
64
|
- If search returns a `searchRef`, continue with `githits search-status <searchRef>` instead of repeating the original search. Its bounded wait defaults to 20 seconds; use `--wait <seconds>` with an integer from 0 to 60 to adjust it.
|
|
63
65
|
- If grep returns no matches, do not repeat it unchanged. Follow the returned guidance by changing the pattern, broadening the file scope, or switching to `githits search` for conceptual discovery.
|
|
66
|
+
- For a missing or ambiguous standalone site, use the returned `suggestedSiteTargets` in order. Do not rewrite the original target or retry automatically; when `suggestedSiteTargetsTruncated` is true, state that additional candidates were omitted.
|
|
64
67
|
- If a code-navigation command returns `INDEXING`, use the elapsed/expected duration in the message to decide whether to retry with `--wait`; prefer any displayed indexed refs/versions when you need an immediate follow-up.
|
|
65
68
|
- 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"`.
|
|
66
69
|
|
|
@@ -1,15 +1,17 @@
|
|
|
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. Repository compact targets use `github:org/repo[#ref|@ref]`, `github.com/org/repo[#ref|@ref]`, or `https://github.com/org/repo[#ref|@ref]`; omitted refs request the backend default-branch intent. Output uses canonical `github:org/repo#ref` formatting so refs can contain `@` safely. `code` commands also support `--repo-url <url> [--git-ref <ref>]`.
|
|
3
|
+
Package target syntax requires an explicit registry: `registry:name[@version]`, for example `npm:express@5.2.1`; omit `@version` for the latest release. Repository compact targets use `github:org/repo[#ref|@ref]`, `github.com/org/repo[#ref|@ref]`, or `https://github.com/org/repo[#ref|@ref]`; omitted refs request the backend default-branch intent. Exact standalone documentation sites use `site:<host[/path]>`. Output uses canonical `github:org/repo#ref` formatting so refs can contain `@` safely. `code` commands also support `--repo-url <url> [--git-ref <ref>]`.
|
|
4
4
|
|
|
5
5
|
## Search
|
|
6
6
|
|
|
7
|
-
`githits search "<query>" --in <target>` searches indexed dependency code, docs, and
|
|
7
|
+
`githits search "<query>" --in <target>` searches indexed dependency code, docs, symbols, and exact standalone documentation sites. Repeat `--in` for multiple targets. Use `--source code`, `--source docs`, or `--source symbol` to force a source; omit it for auto-routing. For a standalone site, pass `--source docs --in site:<host[/path]>`.
|
|
8
8
|
|
|
9
9
|
Useful filters: `--kind`, `--category`, `--path-prefix`, `--intent`, `--public`, `--name`, `--lang`, `--limit`, `--offset`, `--wait`, `--allow-partial`, `--json`.
|
|
10
10
|
|
|
11
11
|
If search returns a `searchRef`, do not repeat the original search. Continue with `githits search-status <searchRef> [--wait <seconds>]`; the bounded wait defaults to 20 seconds, and the explicit value must be an integer from 0 to 60.
|
|
12
12
|
|
|
13
|
+
If a missing or ambiguous site returns suggested site targets, retry one of those exact labels explicitly. They are advisory, not aliases, and GitHits does not select or retry one automatically. A truncation notice means more valid candidates were omitted.
|
|
14
|
+
|
|
13
15
|
## Code Files
|
|
14
16
|
|
|
15
17
|
`githits code files <spec> [path-prefix]` lists paths. Use this before `code read` when you do not know the exact file path.
|
|
@@ -33,7 +35,7 @@ When grep returns no matches, do not repeat it unchanged. Change or shorten the
|
|
|
33
35
|
|
|
34
36
|
`githits docs list <spec>` browses available documentation pages. It is not topic search.
|
|
35
37
|
|
|
36
|
-
`githits docs read <pageId>` reads a page. Text output returns at most 150 lines per call, including larger explicit ranges; continue
|
|
38
|
+
`githits docs read <pageId>` reads a page. Text output returns at most 150 lines per call, including larger explicit ranges; continue with explicit `--lines` windows when more context is needed. Use `--json` when extracting `startLine`, `endLine`, `totalLines`, or source metadata.
|
|
37
39
|
|
|
38
40
|
For topic search, use `githits search "<topic>" --source docs --in <target>`, then pass the returned page ID to `docs read`.
|
|
39
41
|
|
|
@@ -18,10 +18,13 @@ Scope boundaries:
|
|
|
18
18
|
Use the most targeted GitHits MCP tool or combination of tools for the job:
|
|
19
19
|
|
|
20
20
|
- Use `search` and `docs_*` for package documentation, repository docs, exact APIs, configuration, or setup behavior.
|
|
21
|
+
- For an exact standalone documentation site, call `search` with target `site:<host[/path]>` and source `docs`. Follow a returned `searchRef` with `search_status`; if a missing or ambiguous site instead returns `suggestedSiteTargets`, retry one exact suggestion explicitly rather than rewriting the target or treating it as an alias.
|
|
21
22
|
- Use `search`, `code_files`, `code_grep`, and `code_read` for version-specific package/repository source, tests, symbols, call sites, and implementation evidence.
|
|
22
23
|
- Use `pkg_info`, `pkg_vulns`, `pkg_deps`, `pkg_changelog`, and `pkg_upgrade_review` for package metadata, versions, adoption, vulnerabilities, dependency graphs, changelogs, and upgrade-review evidence.
|
|
23
24
|
- Use `get_example` as the broad OSS-first discovery, planning, and research path for vague issues, unfamiliar errors, "how do others do this" questions, multi-library/API combinations, global implementation-pattern scans, and rare needle-in-the-haystack examples that may appear in only one or a few repositories. When the dependency or repository is already known, default to `search`, `docs_*`, and `code_*` first; add `get_example` when you need broader cross-project evidence or a hard-to-find real-world example.
|
|
24
25
|
|
|
26
|
+
If GitHits MCP tools are unavailable but the `githits` CLI is installed, switch to the `githits-code` or `githits-package` skill and use its equivalent CLI commands. Do not treat missing MCP registration as evidence that GitHits lacks the requested content.
|
|
27
|
+
|
|
25
28
|
Prefer the default compact text output. Request JSON only when exact structured fields are necessary.
|
|
26
29
|
|
|
27
30
|
When answering, ground claims in fetched GitHits evidence and cite the relevant package, repository, file, docs page, or version facts when available. If GitHits does not have enough evidence, say what is missing and then use the next best source.
|