lumiverse-spindle-types 0.4.45 → 0.4.47
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/api.ts +12 -0
- package/src/events.ts +1 -0
- package/src/index.ts +4 -3
- package/src/tools.ts +2 -0
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -179,6 +179,8 @@ export interface ToolRegistrationDTO {
|
|
|
179
179
|
description: string;
|
|
180
180
|
parameters: Record<string, unknown>; // JSON Schema
|
|
181
181
|
council_eligible?: boolean;
|
|
182
|
+
/** Whether the tool is available for inline function calling during generation */
|
|
183
|
+
inline_available?: boolean;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
/** Tool/function schema passed to LLM for inline function calling. */
|
|
@@ -475,6 +477,12 @@ export interface ChatUpdateDTO {
|
|
|
475
477
|
metadata?: Record<string, unknown>;
|
|
476
478
|
}
|
|
477
479
|
|
|
480
|
+
/** Payload for `CHAT_SWITCHED` events. */
|
|
481
|
+
export interface ChatSwitchedPayloadDTO {
|
|
482
|
+
/** The chat the user switched to, or `null` when returning to the home screen. */
|
|
483
|
+
chatId: string | null;
|
|
484
|
+
}
|
|
485
|
+
|
|
478
486
|
// ─── World Book DTOs ─────────────────────────────────────────────────────
|
|
479
487
|
|
|
480
488
|
/**
|
|
@@ -1270,6 +1278,8 @@ export interface GenerationStartedPayloadDTO {
|
|
|
1270
1278
|
characterId?: string;
|
|
1271
1279
|
characterName?: string;
|
|
1272
1280
|
breakdown?: AssemblyBreakdownEntryDTO[];
|
|
1281
|
+
/** The type of generation: normal, continue, regenerate, swipe, or impersonate. */
|
|
1282
|
+
generationType?: string;
|
|
1273
1283
|
}
|
|
1274
1284
|
|
|
1275
1285
|
/** Payload for `STREAM_TOKEN_RECEIVED` events. */
|
|
@@ -1294,6 +1304,8 @@ export interface GenerationEndedPayloadDTO {
|
|
|
1294
1304
|
content?: string;
|
|
1295
1305
|
/** Error message when the generation failed. */
|
|
1296
1306
|
error?: string;
|
|
1307
|
+
/** The type of generation: normal, continue, regenerate, swipe, or impersonate. */
|
|
1308
|
+
generationType?: string;
|
|
1297
1309
|
}
|
|
1298
1310
|
|
|
1299
1311
|
/** Payload for `GENERATION_STOPPED` events (user-initiated stop). */
|
package/src/events.ts
CHANGED
|
@@ -13,6 +13,7 @@ export enum SpindleEvent {
|
|
|
13
13
|
export enum CoreEventType {
|
|
14
14
|
CONNECTED = "CONNECTED",
|
|
15
15
|
CHAT_CHANGED = "CHAT_CHANGED",
|
|
16
|
+
CHAT_SWITCHED = "CHAT_SWITCHED",
|
|
16
17
|
MESSAGE_SENT = "MESSAGE_SENT",
|
|
17
18
|
MESSAGE_EDITED = "MESSAGE_EDITED",
|
|
18
19
|
MESSAGE_DELETED = "MESSAGE_DELETED",
|
package/src/index.ts
CHANGED
|
@@ -33,9 +33,10 @@ export type {
|
|
|
33
33
|
CharacterCreateDTO,
|
|
34
34
|
CharacterAvatarUploadDTO,
|
|
35
35
|
CharacterUpdateDTO,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
ChatDTO,
|
|
37
|
+
ChatUpdateDTO,
|
|
38
|
+
ChatSwitchedPayloadDTO,
|
|
39
|
+
WorldBookDTO,
|
|
39
40
|
WorldBookCreateDTO,
|
|
40
41
|
WorldBookUpdateDTO,
|
|
41
42
|
WorldBookEntryDTO,
|
package/src/tools.ts
CHANGED
|
@@ -13,6 +13,8 @@ export interface ToolRegistration {
|
|
|
13
13
|
parameters: JSONSchema;
|
|
14
14
|
/** Whether council members can invoke this tool (future) */
|
|
15
15
|
council_eligible?: boolean;
|
|
16
|
+
/** Whether the tool is available for inline function calling during generation */
|
|
17
|
+
inline_available?: boolean;
|
|
16
18
|
/** Auto-set by host — the owning extension identifier */
|
|
17
19
|
extension_id: string;
|
|
18
20
|
}
|