@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.
- package/package.json +1 -1
- package/src/mcp.mjs +6 -0
package/package.json
CHANGED
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,
|