lumiverse-spindle-types 0.4.71 → 0.4.72

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 (3) hide show
  1. package/package.json +1 -1
  2. package/src/api.ts +13 -0
  3. package/src/dom.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.4.71",
3
+ "version": "0.4.72",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
package/src/api.ts CHANGED
@@ -14,6 +14,19 @@ export interface LlmMessageDTO {
14
14
  role: "system" | "user" | "assistant";
15
15
  content: string | LlmMessagePartDTO[];
16
16
  name?: string;
17
+ /**
18
+ * Thinking-mode reasoning content from the previous assistant turn, echoed
19
+ * back on the next request. Required by DeepSeek's thinking-mode models
20
+ * (`deepseek-reasoner`, `deepseek-chat` with thinking enabled) **on
21
+ * tool-call continuations** — DeepSeek's API rejects a continuation when
22
+ * an assistant turn invoked a tool call and the echo doesn't carry its
23
+ * reasoning_content back. Plain-text continuations don't need this; nor
24
+ * do non-thinking models. Other openai-compatible providers that route
25
+ * DeepSeek (NanoGPT, OpenRouter, etc.) inherit the same requirement;
26
+ * providers without a reasoning_content notion ignore the field. Set
27
+ * only on `role: 'assistant'` messages.
28
+ */
29
+ reasoning_content?: string;
17
30
  }
18
31
 
19
32
  export type SpindleUserRoleDTO = "operator" | "admin" | "user";
package/src/dom.ts CHANGED
@@ -232,6 +232,8 @@ export interface SpindleSandboxAPI {
232
232
  fetchAudio(url: string, options?: RequestInitDTO): Promise<SpindleSandboxMediaResource>;
233
233
  /** Fetch remote audio through the proxy and create a sandbox-local audio element. */
234
234
  createAudio(url: string, options?: SpindleSandboxAudioOptions): Promise<SpindleSandboxAudioHandle>;
235
+ /** Fetch a remote web font through the permission-gated proxy and expose it as a blob URL usable in `@font-face src: url(...)`. */
236
+ fetchFont(url: string, options?: RequestInitDTO): Promise<SpindleSandboxMediaResource>;
235
237
  }
236
238
 
237
239
  export interface SpindleUploadFile {