githits 0.8.0 → 0.9.1

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.
@@ -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.8.0";
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";
2
2
  export{__require,description,version};
@@ -1 +1 @@
1
- import{clearAutoLoginAuthSessionMetadata,createAuthCommandDependencies,createAuthStatusDependencies,createContainer,loadAutoLoginAuthSessionMetadata,recordAuthFingerprint}from"./chunk-4dy65qws.js";import"./chunk-r6qmrkbn.js";export{recordAuthFingerprint,loadAutoLoginAuthSessionMetadata,createContainer,createAuthStatusDependencies,createAuthCommandDependencies,clearAutoLoginAuthSessionMetadata};
1
+ import{clearAutoLoginAuthSessionMetadata,createAuthCommandDependencies,createAuthStatusDependencies,createContainer,loadAutoLoginAuthSessionMetadata,recordAuthFingerprint}from"./chunk-mm18f1hm.js";import"./chunk-mz63e2sv.js";export{recordAuthFingerprint,loadAutoLoginAuthSessionMetadata,createContainer,createAuthStatusDependencies,createAuthCommandDependencies,clearAutoLoginAuthSessionMetadata};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "The code context layer for AI coding agents",
5
5
  "mcpServers": {
6
6
  "githits": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "githits",
3
3
  "description": "The code context layer for AI coding agents",
4
- "version": "0.8.0",
4
+ "version": "0.9.1",
5
5
  "mcpName": "com.githits/githits",
6
6
  "type": "module",
7
7
  "workspaces": [
@@ -109,17 +109,17 @@
109
109
  "open": "^11.0.0",
110
110
  "semver": "7.8.5",
111
111
  "smol-toml": "^1.6.1",
112
- "undici": "7.28.0",
112
+ "undici": "7.29.0",
113
113
  "yaml": "^2.9.0",
114
114
  "zod": "^4.4.3"
115
115
  },
116
116
  "devDependencies": {
117
- "@biomejs/biome": "2.5.5",
117
+ "@biomejs/biome": "2.5.6",
118
118
  "@types/bun": "latest",
119
119
  "@types/semver": "^7.7.1",
120
120
  "bunup": "^0.16.32",
121
121
  "husky": "^9.1.7",
122
- "lint-staged": "17.2.0",
122
+ "lint-staged": "17.3.0",
123
123
  "typescript": "^7.0.2"
124
124
  }
125
125
  }
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "githits",
4
- "version": "0.8.0",
4
+ "version": "0.9.1",
5
5
  "description": "The code context layer for AI coding agents",
6
6
  "author": {
7
7
  "name": "GitHits"
package/server.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "source": "github",
17
17
  "id": "1165453165"
18
18
  },
19
- "version": "0.8.0",
19
+ "version": "0.9.1",
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.8.0",
31
+ "version": "0.9.1",
32
32
  "runtimeHint": "npx",
33
33
  "transport": {
34
34
  "type": "stdio"
@@ -16,6 +16,7 @@ Use GitHits for evidence from real open-source code instead of guessing from mod
16
16
  - If `githits` is not found, retry the same command as `npx -y githits@latest ...`.
17
17
  - Use `--json` when you need stable fields to parse or chain into another command.
18
18
  - Do not expose credentials. If auth is required interactively, run `githits login`; use `githits login --no-browser` only when the user can complete the printed URL flow. In noninteractive eval/CI, do not start OAuth; report that `GITHITS_API_TOKEN` or prior login is required.
19
+ - If a command returns `TERMS_ACCEPTANCE_REQUIRED`, run `githits settings terms accept` or use the returned authenticated acceptance URL, then retry once.
19
20
 
20
21
  ## Decision Flow
21
22
 
@@ -58,6 +59,8 @@ githits docs read <pageId> --lines 20-120
58
59
  - For multi-step code/docs investigations, keep raw CLI output out of the final answer unless it is the evidence the user needs.
59
60
  - 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.
60
61
  - 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
+ - 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
+ - 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.
61
64
  - 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.
62
65
  - 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"`.
63
66
 
@@ -8,7 +8,7 @@ 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`, continue with `githits search-status <searchRef>`.
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
13
  ## Code Files
14
14
 
@@ -27,6 +27,7 @@ For repository addressing: `githits code read --repo-url <url> [--git-ref <ref>]
27
27
  `githits code grep <spec> <pattern> [path-prefix]` runs deterministic text grep. Use `--regex` for RE2 regex, `--case-sensitive`, `-C`, `-A`, `-B`, `--path`, repeatable `--glob`, repeatable `--ext`, `--exclude-docs`, `--exclude-tests`, `--limit`, `--per-file-limit`, `--cursor`, `--symbol-field`, `--wait`, `--verbose`, `--json`.
28
28
 
29
29
  Use `search` for discovery and `code grep` only when you know the pattern.
30
+ When grep returns no matches, do not repeat it unchanged. Change or shorten the pattern, broaden the path/filter scope, or switch to `search` for conceptual intent.
30
31
 
31
32
  ## Docs
32
33
 
@@ -17,6 +17,7 @@ Use GitHits package intelligence before making dependency claims from memory.
17
17
  - If `githits` is not found, retry the same command as `npx -y githits@latest ...`.
18
18
  - Use `--json` when comparing versions, counting vulnerabilities, or extracting fields.
19
19
  - Do not expose credentials. If auth is required interactively, run `githits login`; use `githits login --no-browser` only when the user can complete the printed URL flow. In noninteractive eval/CI, do not start OAuth; report that `GITHITS_API_TOKEN` or prior login is required.
20
+ - If a command returns `TERMS_ACCEPTANCE_REQUIRED`, run `githits settings terms accept` or use the returned authenticated acceptance URL, then retry once.
20
21
 
21
22
  ## Package Spec
22
23