@kurrent/kcap 0.11.5 → 0.11.7

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,5 +1,5 @@
1
1
  {
2
2
  "name": "kcap",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "Records and visualizes Claude Code sessions via kcap CLI hooks"
5
5
  }
@@ -15,6 +15,10 @@
15
15
  "kcap-memory": {
16
16
  "command": "kcap",
17
17
  "args": ["mcp", "memory"]
18
+ },
19
+ "kcap-analytics": {
20
+ "command": "kcap",
21
+ "args": ["mcp", "analytics"]
18
22
  }
19
23
  }
20
24
  }
package/kcap/.mcp.json CHANGED
@@ -28,6 +28,12 @@
28
28
  "args": ["mcp", "workitems"],
29
29
  "cwd": "${CLAUDE_PROJECT_DIR}",
30
30
  "description": "Attach the current session to a work item (issue, PR, or a brand-new item) on the Capacitor server, and list the work items a session is attached to."
31
+ },
32
+ "kcap-analytics": {
33
+ "command": "kcap",
34
+ "args": ["mcp", "analytics"],
35
+ "cwd": "${CLAUDE_PROJECT_DIR}",
36
+ "description": "Query the org's AI coding-agent analytics (sessions, tools, tokens, cost, commits, PRs, evals) with governed read-only SQL. For 'what did we spend', 'which tools/models do we use', 'how many sessions' questions: call get_analytics_schema once, then query_analytics. Repo-aware: defaults to the current repo; pass scope 'global' for org-wide."
31
37
  }
32
38
  }
33
39
  }
package/kcap/README.md CHANGED
@@ -4,7 +4,7 @@ This plugin integrates [Kurrent Capacitor](../README.md) with Claude Code and Co
4
4
 
5
5
  ## What it does
6
6
 
7
- **MCP servers** — Two stdio servers, both auto-registered on plugin install (no manual `claude mcp add` or `~/.codex/config.toml` edit):
7
+ **MCP servers** — stdio servers auto-registered on plugin install (no manual `claude mcp add` or `~/.codex/config.toml` edit):
8
8
 
9
9
  ### `kcap-sessions`
10
10
 
@@ -46,6 +46,17 @@ Search, save, and update durable team memories — preferences, feedback, projec
46
46
 
47
47
  Repo- and machine-aware: it resolves the cwd to a repo hash and the local persisted machine id at startup to scope saves and bias search results.
48
48
 
49
+ ### `kcap-analytics`
50
+
51
+ Governed read-only SQL over the org's curated coding-agent analytics views (sessions, tool/skill/token usage, cost, commits, PRs, evals). Auto-registered for every supported harness — it resolves its repo scope from the working directory, so it rides the same registration path as `kcap-sessions`.
52
+
53
+ | Tool | Description |
54
+ |------|-------------|
55
+ | `get_analytics_schema` | The governed schema document: queryable views/columns, glossary, SQL rules, worked examples. Called once before writing SQL |
56
+ | `query_analytics` | Run one governed Postgres SELECT (`sql`, optional `scope` `"repo"`/`"global"`, optional `max_rows`); a rejected query returns the validator's reason to fix and retry |
57
+
58
+ Repo-aware: defaults to the cwd's repo; pass `scope: "global"` for org-wide questions. Requires `kcap login` and a kcap-server new enough to expose the `/api/analytics` endpoints.
59
+
49
60
  `kcap mcp judge` is intentionally not auto-registered. Add it with `claude mcp add kcap-judge -- kcap mcp judge` if you want it.
50
61
 
51
62
  **Hooks** — Automatically captures session activity and forwards it to the Kurrent Capacitor server:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kurrent/kcap",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "CLI companion for Kurrent Capacitor — records and visualizes Claude Code sessions",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -14,15 +14,17 @@
14
14
  "postinstall": "node bin/postinstall.js"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@kurrent/kcap-darwin-arm64": "0.11.5",
18
- "@kurrent/kcap-linux-x64": "0.11.5",
19
- "@kurrent/kcap-linux-arm64": "0.11.5",
20
- "@kurrent/kcap-linux-musl-x64": "0.11.5",
21
- "@kurrent/kcap-linux-musl-arm64": "0.11.5",
22
- "@kurrent/kcap-win-x64": "0.11.5"
17
+ "@kurrent/kcap-darwin-arm64": "0.11.7",
18
+ "@kurrent/kcap-linux-arm64": "0.11.7",
19
+ "@kurrent/kcap-linux-musl-arm64": "0.11.7",
20
+ "@kurrent/kcap-linux-musl-x64": "0.11.7",
21
+ "@kurrent/kcap-linux-x64": "0.11.7",
22
+ "@kurrent/kcap-win-x64": "0.11.7"
23
23
  },
24
24
  "files": [
25
25
  "bin/",
26
26
  "kcap/"
27
- ]
27
+ ],
28
+ "kcapReleaseCommit": "beb5e8e635c713a7e9fbfc50a993efb14d6aba71",
29
+ "kcapReleaseTag": "v0.11.7"
28
30
  }