@quilltap/plugin-types 2.5.0 → 2.5.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.
@@ -332,6 +332,19 @@ interface LLMParams {
332
332
  profileParameters?: Record<string, unknown>;
333
333
  /** Previous response ID for conversation chaining (OpenAI Responses API) */
334
334
  previousResponseId?: string;
335
+ /**
336
+ * Per-character cache identifier. Quilltap builds this from the
337
+ * speaking character's ID so the stable persona block (manifesto /
338
+ * description / personality) becomes the actual cache prefix. Each
339
+ * provider decides how to apply it:
340
+ * - OpenAI / Grok use it as `prompt_cache_key` (sticky routing hint).
341
+ * - DeepSeek uses it as `user_id` (KV-cache isolation namespace).
342
+ * - OpenAI-compatible / Z.AI / OpenRouter forward it as `user`.
343
+ * - Anthropic ignores it (content-hashed `cache_control` breakpoints).
344
+ * - Ollama / Curl ignore it.
345
+ * Undefined when no character is active (e.g. user-only chats, titling).
346
+ */
347
+ cacheKey?: string;
335
348
  }
336
349
  /**
337
350
  * Response from a text completion
@@ -332,6 +332,19 @@ interface LLMParams {
332
332
  profileParameters?: Record<string, unknown>;
333
333
  /** Previous response ID for conversation chaining (OpenAI Responses API) */
334
334
  previousResponseId?: string;
335
+ /**
336
+ * Per-character cache identifier. Quilltap builds this from the
337
+ * speaking character's ID so the stable persona block (manifesto /
338
+ * description / personality) becomes the actual cache prefix. Each
339
+ * provider decides how to apply it:
340
+ * - OpenAI / Grok use it as `prompt_cache_key` (sticky routing hint).
341
+ * - DeepSeek uses it as `user_id` (KV-cache isolation namespace).
342
+ * - OpenAI-compatible / Z.AI / OpenRouter forward it as `user`.
343
+ * - Anthropic ignores it (content-hashed `cache_control` breakpoints).
344
+ * - Ollama / Curl ignore it.
345
+ * Undefined when no character is active (e.g. user-only chats, titling).
346
+ */
347
+ cacheKey?: string;
335
348
  }
336
349
  /**
337
350
  * Response from a text completion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/plugin-types",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Type definitions for Quilltap plugin development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",