@lorekit/cli 1.30.2 → 1.30.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mcp.mjs +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lorekit/cli",
3
- "version": "1.30.2",
3
+ "version": "1.30.3",
4
4
  "description": "Install the LoreKit shared-memory skill and run health checks for the LoreKit MCP server.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/mcp.mjs CHANGED
@@ -154,6 +154,12 @@ export async function restFetch(baseUrl, token, path, { method = 'GET', body, ti
154
154
  ...(token ? { authorization: `Bearer ${token}` } : {}),
155
155
  ...(traceparent ? { traceparent } : {}),
156
156
  ...(correlationId ? { 'x-lorekit-correlation-id': correlationId } : {}),
157
+ // Name the calling surface so usage analytics can tell a CLI read from a
158
+ // dashboard one. Not cosmetic: `GET /memories/read-activity` EXCLUDES the
159
+ // `dashboard` client (a human browsing lore is not consuming it), so a
160
+ // caller that wants its reads counted has to be attributable. Constant,
161
+ // never env-driven — this binary is always the CLI.
162
+ 'x-lorekit-client': 'cli',
157
163
  };
158
164
  const res = await fetch(url, {
159
165
  method,