githits 0.10.2 → 0.11.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.
- 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 +5 -4
- package/README.md +17 -5
- package/dist/cli.js +91 -82
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-sxk7eqz9.js → chunk-1smksmje.js} +1 -1
- package/dist/shared/chunk-8szmn94w.js +1725 -0
- package/dist/shared/{chunk-1wcxq91a.js → chunk-w4en54zp.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 +1 -1
- package/skills/githits-code/references/code-and-docs.md +1 -1
- package/skills/githits-mcp/SKILL.md +2 -33
- package/skills/githits-package/references/package.md +1 -1
- package/dist/shared/chunk-czm1k7n9.js +0 -1725
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "The code context layer for AI coding agents",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.11.1"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "githits",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.11.1",
|
|
15
15
|
"description": "The code context layer for AI coding agents",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "GitHits"
|
package/.plugin/plugin.json
CHANGED
package/AGENTS.md
CHANGED
|
@@ -27,6 +27,7 @@ Philosophy: "Create architecture that is performant and easy to test"
|
|
|
27
27
|
- Use dependency injection for external services (REST client, etc.)
|
|
28
28
|
- Do not eagerly validate network/proxy/environment configuration while constructing command dependencies when the command has local-only or no-network paths. Defer validation until the first network operation and add regression tests for malformed env values on local paths.
|
|
29
29
|
- For MCP/agent-facing tools, avoid coupled optional flags and default-true booleans. Design schemas for real agent calls, including empty strings, empty arrays, and explicit `false` values.
|
|
30
|
+
- For MCP tool discovery, treat the tool name plus the first 80 description characters as a standalone selection surface. A verified Claude Desktop connector session exposed only that context during unguided tool selection; connector descriptions and MCP server instructions did not reach it. Lead with the natural user question and the tool's distinct job, treat 80 characters as a ceiling rather than a target, and keep registry counts/lists, argument mechanics, and follow-up routing after that boundary. Do not rely on neighboring tools for context. Add first-80 contract tests and run descriptor-only agent evals for description changes.
|
|
30
31
|
- For GraphQL/API-backed tools, treat minimal data fetching as part of the tool contract. Before adding or changing selected fields, compare the query against every consumer (text, verbose, JSON, MCP, CLI, and internal callers), use conditional fields or separate queries for mode-specific data, and add tests that assert the wire variables/selections for compact and detailed modes.
|
|
31
32
|
|
|
32
33
|
See `docs/guidelines/ARCHITECTURAL_GUIDELINES.md` for detailed planning checklist and design principles.
|
|
@@ -109,12 +110,12 @@ See `docs/guidelines/TESTING.md` for comprehensive patterns.
|
|
|
109
110
|
|
|
110
111
|
## Workspace Boundaries
|
|
111
112
|
|
|
112
|
-
- Root `src/**` is still the published `githits` CLI implementation until the CLI package move completes. It owns Commander commands, local auth storage, browser login, init/setup flows, local stdio MCP startup,
|
|
113
|
-
- `packages/core-internal` is private source. It owns transport-neutral service clients, service interfaces, shared request/header
|
|
114
|
-
- `packages/mcp` is the public `@githits/mcp` package. Its public tool/server API is `packages/mcp/src/index.ts`: transport-neutral MCP server creation, tool registration, descriptors, instructions, request-scoped service provider types, and MCP service types. Its public runtime/client API is `packages/mcp/src/client.ts`, exported as `@githits/mcp/client`, for remote MCP servers that need concrete service implementations
|
|
113
|
+
- Root `src/**` is still the published `githits` CLI implementation until the CLI package move completes. It owns Commander commands, local auth storage, browser login, init/setup flows, local stdio MCP startup, plugin/assistant packaging assets, and the diagnostics implementation/lifecycle (environment, process, and output destinations).
|
|
114
|
+
- `packages/core-internal` is private source. It owns transport-neutral service clients, service interfaces, shared request/header primitives, the host-supplied `ServiceDiagnostics` contract, neutral service errors, PKCE helpers, and `TokenProvider`. It must not discover diagnostics environment settings or own diagnostics process/output destinations. Never publish or leak `@githits/core-internal` into public artifacts.
|
|
115
|
+
- `packages/mcp` is the public `@githits/mcp` package. Its public tool/server API is `packages/mcp/src/index.ts`: transport-neutral MCP server creation, tool registration, descriptors, instructions, request-scoped service provider types, and MCP service types. Its public runtime/client API is `packages/mcp/src/client.ts`, exported as `@githits/mcp/client`, for remote MCP servers that need concrete service implementations, token/header/config helpers, and optional injected `ServiceDiagnostics`.
|
|
115
116
|
- `@githits/mcp/smoke-test` is a public validation helper entrypoint for remote MCP servers. It exports smoke assertions and `runMcpSmoke()` without depending on local CLI startup.
|
|
116
117
|
- `@githits/mcp/internal` is a workspace-only alias for root CLI transition helpers. External packages and the future remote MCP server repo must never import it. If remote server work needs something internal, promote the smallest stable API through `@githits/mcp` instead.
|
|
117
|
-
- Public package artifacts for both root `githits` and `@githits/mcp` must not contain `@githits/core-internal`, `workspace:*`, `@githits/mcp/internal`, or private source aliases in JS, declarations, or manifests.
|
|
118
|
+
- Public package artifacts for both root `githits` and `@githits/mcp` must not contain `@githits/core-internal`, `workspace:*`, `@githits/mcp/internal`, or private source aliases in JS, declarations, or manifests. The public-package validator also rejects static `fs`, `node:fs`, `fs/promises`, and `node:fs/promises` imports in core source and packed MCP artifacts, and rejects direct core `process.stderr`/`process.stdout` access. These checks cover statically resolved string-literal module edges; they do not claim browser compatibility.
|
|
118
119
|
|
|
119
120
|
## Release Boundaries
|
|
120
121
|
|
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ broader open-source ecosystem, not just model memory or local repo context:
|
|
|
70
70
|
|
|
71
71
|
| Capability | MCP tools | CLI commands |
|
|
72
72
|
|---|---|---|
|
|
73
|
+
| Tool orientation | `quick_start` | — |
|
|
73
74
|
| Code examples | `get_example`, `search_language` | `githits example`, `githits languages` |
|
|
74
75
|
| Code navigation | `search`, `search_status`, `code_files`, `code_read`, `code_grep` | `githits search`, `githits search-status`, `githits code ...` |
|
|
75
76
|
| Documentation access | `docs_list`, `docs_read` | `githits docs ...` |
|
|
@@ -294,11 +295,13 @@ is required.
|
|
|
294
295
|
To remove configuration written by `init`:
|
|
295
296
|
|
|
296
297
|
```sh
|
|
297
|
-
npx githits@latest
|
|
298
|
+
npx githits@latest uninstall
|
|
298
299
|
```
|
|
299
300
|
|
|
300
|
-
This removes GitHits MCP configuration and
|
|
301
|
-
`npx githits@latest logout` separately to
|
|
301
|
+
This removes GitHits MCP configuration and guidance written by `init`, while
|
|
302
|
+
preserving stored credentials. Run `npx githits@latest logout` separately to
|
|
303
|
+
remove credentials. The compatibility form `npx githits@latest init uninstall`
|
|
304
|
+
accepts the same `--yes`, `--project`, and `--keep-guidance` options.
|
|
302
305
|
|
|
303
306
|
## Project Setup
|
|
304
307
|
|
|
@@ -317,7 +320,7 @@ Agent-safe non-interactive setup uses staged discovery and explicit install:
|
|
|
317
320
|
|
|
318
321
|
```sh
|
|
319
322
|
npx githits@latest init --detect-agents --json
|
|
320
|
-
npx githits@latest init --install-agents cursor,codex
|
|
323
|
+
npx githits@latest init --install-agents cursor,codex-cli
|
|
321
324
|
```
|
|
322
325
|
|
|
323
326
|
## Plugin and Extension Packaging
|
|
@@ -349,6 +352,14 @@ Antigravity plugin through `plugin.json`, `mcp_config.json`, and the shared
|
|
|
349
352
|
`skills/` tree. Generated manifests are refreshed with `bun run plugins:generate`
|
|
350
353
|
and validated with `bun run plugins:check`.
|
|
351
354
|
|
|
355
|
+
Guided `init` installs the four canonical skills (`githits-code`, `githits-mcp`,
|
|
356
|
+
`githits-onboarding`, and `githits-package`) only for selected agents. Shared
|
|
357
|
+
skill-capable agents use `~/.agents/skills/` at user scope or `.agents/skills/`
|
|
358
|
+
at project scope; native-only agents use their verified native skill directory.
|
|
359
|
+
Compatible agents reading a shared root can discover those skills. A later
|
|
360
|
+
guided run repairs missing skills, and migration removes only the historical
|
|
361
|
+
Cline or Junie `githits-mcp/SKILL.md` after the complete shared set is verified.
|
|
362
|
+
|
|
352
363
|
For Claude Code marketplace installs:
|
|
353
364
|
|
|
354
365
|
```sh
|
|
@@ -366,7 +377,8 @@ gemini extensions install https://github.com/githits-com/githits-cli
|
|
|
366
377
|
|
|
367
378
|
```text
|
|
368
379
|
githits init Connect GitHits to your coding agents
|
|
369
|
-
githits
|
|
380
|
+
githits uninstall Remove GitHits MCP configuration and guidance
|
|
381
|
+
githits init uninstall Compatibility alias for `githits uninstall`
|
|
370
382
|
githits login Sign in to your GitHits account
|
|
371
383
|
githits logout Remove stored credentials
|
|
372
384
|
githits mcp Show setup instructions or start the local MCP server
|