lumiverse-spindle-types 0.6.63 → 0.6.65

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/dist/api.d.ts CHANGED
@@ -14,6 +14,7 @@ export type LlmMessagePartDTO = {
14
14
  type: "text";
15
15
  text: string;
16
16
  cache_control?: Record<string, unknown>;
17
+ thought_signature?: string;
17
18
  } | {
18
19
  type: "image";
19
20
  data: string;
@@ -48,7 +49,11 @@ export interface LlmMessageDTO {
48
49
  role: "system" | "user" | "assistant";
49
50
  content: string | LlmMessagePartDTO[];
50
51
  name?: string;
52
+ /** Marks a trailing assistant message as a generation prefix. */
53
+ partial?: boolean;
51
54
  cache_control?: Record<string, unknown>;
55
+ /** Opaque Gemini signature on a non-tool response part; replay unmodified. */
56
+ thought_signature?: string;
52
57
  /**
53
58
  * Thinking-mode reasoning content from the previous assistant turn, echoed
54
59
  * back on the next request. Required by DeepSeek's thinking-mode models
@@ -2091,6 +2096,8 @@ export interface WorldInfoActivatedEventDTO {
2091
2096
  stats?: Record<string, unknown>;
2092
2097
  }
2093
2098
  export interface DryRunRequestDTO {
2099
+ /** Include prepared messages with media, tool calls and reasoning intact. Requires generation-request-messages-v1. */
2100
+ includeRequestMessages?: boolean;
2094
2101
  chatId: string;
2095
2102
  connectionId?: string;
2096
2103
  personaId?: string;
@@ -2251,6 +2258,10 @@ export interface SpindleMessageMetadataDTO extends Record<string, unknown> {
2251
2258
  preset_contexts?: Array<MessagePresetContextDTO | null>;
2252
2259
  }
2253
2260
  export interface DryRunResultDTO {
2261
+ /** Prepared messages returned only when includeRequestMessages is true. */
2262
+ request_messages?: LlmMessageDTO[];
2263
+ /** Prepared assistant prefix, already included in request_messages. Returned only with includeRequestMessages. */
2264
+ assistantPrefill?: string;
2254
2265
  /** Returned only with forcePresetId: true. Requires message-preset-context-v1: 1. */
2255
2266
  variable_state?: MacroVariableSnapshotDTO;
2256
2267
  messages: LlmMessageDTO[];
@@ -3708,6 +3719,7 @@ export type WorkerToHost = import("./decisions.js").DecisionWorkerMessage | impo
3708
3719
  patch: {
3709
3720
  content?: string;
3710
3721
  metadata?: Record<string, unknown>;
3722
+ metadata_patch?: Record<string, unknown>;
3711
3723
  swipes?: string[];
3712
3724
  swipe_id?: number;
3713
3725
  swipe_dates?: number[];
package/dist/host.js CHANGED
@@ -1,5 +1,7 @@
1
1
  export const SPINDLE_HOST_CAPABILITIES = Object.freeze({
2
2
  "message-preset-context-v1": 1,
3
+ "generation-request-messages-v1": 1,
4
+ "chat-metadata-patch-v1": 1,
3
5
  "chat-swipe-reasoning-v1": 1,
4
6
  "preset-extension-data-v1": 1,
5
7
  "preset-editor-v1": 1,
@@ -518,6 +518,12 @@ export interface SpindleAPI {
518
518
  updateMessage(chatId: string, messageId: string, patch: {
519
519
  content?: string;
520
520
  metadata?: SpindleMessageMetadataDTO;
521
+ /**
522
+ * Merge top-level metadata fields with the latest stored metadata.
523
+ * Nested values are replaced; null is stored as a value. Cannot be
524
+ * combined with metadata. Requires host capability `chat-metadata-patch-v1`.
525
+ */
526
+ metadata_patch?: SpindleMessageMetadataDTO;
521
527
  swipes?: string[];
522
528
  swipe_id?: number;
523
529
  swipe_dates?: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.6.63",
3
+ "version": "0.6.65",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "keywords": [