githits 0.10.0 → 0.10.2
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/dist/cli.js +40 -34
- package/dist/index.js +1 -1
- package/dist/shared/chunk-1wcxq91a.js +1 -0
- package/dist/shared/{chunk-4vxe5qg5.js → chunk-czm1k7n9.js} +14 -5
- package/dist/shared/{chunk-q6aqsqv3.js → chunk-sxk7eqz9.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 +3 -2
- package/skills/githits-code/references/code-and-docs.md +10 -1
- package/skills/githits-mcp/SKILL.md +2 -2
- package/dist/shared/chunk-vzkfjt3p.js +0 -1
package/server.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"source": "github",
|
|
17
17
|
"id": "1165453165"
|
|
18
18
|
},
|
|
19
|
-
"version": "0.10.
|
|
19
|
+
"version": "0.10.2",
|
|
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.10.
|
|
31
|
+
"version": "0.10.2",
|
|
32
32
|
"runtimeHint": "npx",
|
|
33
33
|
"transport": {
|
|
34
34
|
"type": "stdio"
|
|
@@ -59,9 +59,10 @@ githits docs read <pageId> --lines 20-120
|
|
|
59
59
|
- For source work, locate symbols or matches first, then read a focused window with explicit `--lines`.
|
|
60
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.
|
|
61
61
|
- For multi-step code/docs investigations, keep raw CLI output out of the final answer unless it is the evidence the user needs.
|
|
62
|
-
- If output says it used recent
|
|
62
|
+
- If output says it used recent, stale, or provisional indexed evidence, treat the displayed served target as provenance. Provisional evidence is queryable while visibly still indexing. If freshness matters, follow the rendered continuation, retry with a longer `--wait`, use one of the displayed `queryable now` versions/refs, or inspect JSON `targetResolution` for structured candidates.
|
|
63
63
|
- Partial and capped documentation coverage are usable published evidence. Report the disclosed limit, but infer neither indexing progress nor retryability from coverage; follow only `searchRef` and the evidence notice.
|
|
64
|
-
- If search returns a `searchRef`, continue with `githits search-status <searchRef>`
|
|
64
|
+
- If search returns a `searchRef`, continue with `githits search-status <searchRef>` only when the output explicitly supplies that follow-up, including for active `PENDING`, `INDEXING`, or `SEARCHING` progress or a completed result with an evidence notice. Its bounded wait defaults to 20 seconds; use `--wait <seconds>` with an integer from 0 to 60 to adjust it. For terminal `DEFERRED`, `TIMEOUT`, or `FAILED` progress, or an unrecognized status, preserve any disclosed evidence, do not poll the reference again, and follow the rendered new-search action.
|
|
65
|
+
- If discovery search returns no useful hits, do not repeat it unchanged. Follow the rendered pivots; when the query is now an exact identifier or string, switch to `githits code grep` and read the focused match because symbol discovery may not include re-exports or generated aliases.
|
|
65
66
|
- 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
67
|
- 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.
|
|
67
68
|
- 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.
|
|
@@ -8,7 +8,16 @@ Package target syntax requires an explicit registry: `registry:name[@version]`,
|
|
|
8
8
|
|
|
9
9
|
Useful filters: `--kind`, `--category`, `--path-prefix`, `--intent`, `--public`, `--name`, `--lang`, `--limit`, `--offset`, `--wait`, `--allow-partial`, `--json`.
|
|
10
10
|
|
|
11
|
-
If search returns a `searchRef`,
|
|
11
|
+
If search returns a `searchRef`, continue with `githits search-status <searchRef> [--wait <seconds>]` only when the output explicitly supplies that follow-up, including for active `PENDING`, `INDEXING`, or `SEARCHING` progress or a completed result with an evidence notice. The bounded wait defaults to 20 seconds, and the explicit value must be an integer from 0 to 60. Terminal `DEFERRED`, `TIMEOUT`, or `FAILED` progress, and unrecognized statuses, do not advance: keep any disclosed evidence, do not poll the same reference, and follow the rendered new-search action.
|
|
12
|
+
|
|
13
|
+
Stale or provisional evidence remains queryable while refresh or indexing
|
|
14
|
+
continues. Treat the displayed served target as exact provenance and follow a
|
|
15
|
+
`searchRef` only when the output renders the continuation.
|
|
16
|
+
|
|
17
|
+
If discovery returns no useful hits, follow its rendered pivots instead of
|
|
18
|
+
repeating it unchanged. Once the query is an exact identifier or string, use
|
|
19
|
+
`code grep` and then read the focused match; symbol discovery may not include
|
|
20
|
+
re-exports or generated aliases.
|
|
12
21
|
|
|
13
22
|
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
23
|
|
|
@@ -13,12 +13,12 @@ Scope boundaries:
|
|
|
13
13
|
|
|
14
14
|
- GitHits indexes and searches public OSS repositories, package registry artifacts, and public package documentation. It does not index the user's local workspace, private repositories, uncommitted changes, or proprietary code unless that code is also available as public OSS/package evidence.
|
|
15
15
|
- When the user references a public GitHub repository, GitHub file URL, package docs, or OSS registry package, prefer GitHits by translating the reference into a GitHits repository or package target. Use generic web search when GitHits lacks the content or the target is not available through GitHits.
|
|
16
|
-
- If a public target is not indexed
|
|
16
|
+
- If a public target is not fully indexed, use any returned provisional evidence with its exact served identity and follow only the rendered indexing or `search_status` guidance. Do not fall back to generic web search just because indexing is still in progress.
|
|
17
17
|
|
|
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
|
|
21
|
+
- For an exact standalone documentation site, call `search` with target `site:<host[/path]>` and source `docs`. Follow a returned `searchRef` with `search_status` only when the output explicitly supplies that follow-up, including for active `PENDING`, `INDEXING`, or `SEARCHING` progress or a completed result with an evidence notice. For terminal `DEFERRED`, `TIMEOUT`, or `FAILED` progress, or an unrecognized status, keep any disclosed evidence, do not poll the reference again, and follow the rendered new-search action. 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.
|
|
22
22
|
- Use `search`, `code_files`, `code_grep`, and `code_read` for version-specific package/repository source, tests, symbols, call sites, and implementation evidence.
|
|
23
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.
|
|
24
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.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{clearAutoLoginAuthSessionMetadata,createAuthCommandDependencies,createAuthStatusDependencies,createContainer,createLogoutCommandDependencies,loadAutoLoginAuthSessionMetadata,recordAuthFingerprint}from"./chunk-4vxe5qg5.js";import"./chunk-q6aqsqv3.js";export{recordAuthFingerprint,loadAutoLoginAuthSessionMetadata,createLogoutCommandDependencies,createContainer,createAuthStatusDependencies,createAuthCommandDependencies,clearAutoLoginAuthSessionMetadata};
|