lumiverse-spindle-types 0.5.20 → 0.5.22
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 +11 -1
- package/src/dom.ts +0 -2
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -40,10 +40,20 @@ export interface LlmMessageDTO {
|
|
|
40
40
|
* True when this message is a chat-history turn (as opposed to a depth-injected
|
|
41
41
|
* world-info/preset/author's-note block that was spliced into the chat-history
|
|
42
42
|
* range). Set by the host only on the messages passed to the interceptor pipeline,
|
|
43
|
-
* so an extension applying prompt-target regex inline can reproduce the host's depth
|
|
43
|
+
* so an extension applying prompt-target regex inline can reproduce the host's depth
|
|
44
44
|
* frame exactly.
|
|
45
45
|
*/
|
|
46
46
|
__isChatHistory?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Id of the originating chat message, set only on chat-history turns. Lets
|
|
49
|
+
* interceptors map back to the source message without matching on
|
|
50
|
+
* (macro/regex-mutated) content. Stripped before the LLM payload.
|
|
51
|
+
*/
|
|
52
|
+
sourceMessageId?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Source message's `index_in_chat`, paired with `sourceMessageId`.
|
|
55
|
+
*/
|
|
56
|
+
sourceIndexInChat?: number;
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
export type SpindleUserRoleDTO = "operator" | "admin" | "user";
|
package/src/dom.ts
CHANGED
|
@@ -691,8 +691,6 @@ export interface SpindleDisplayResolverRegistry {
|
|
|
691
691
|
registerResolver(resolver: SpindleDisplayResolver): () => void;
|
|
692
692
|
/** Ask the host to invalidate cached display resolutions whose dependencies (a `<scope>:<name>` set) changed. */
|
|
693
693
|
invalidate(touchedVars: string[]): void;
|
|
694
|
-
/** Publish the set of character IDs whose display this extension owns. The host uses it to decide synchronously, at render time, whether a chat is owned by this resolver. */
|
|
695
|
-
setOwnedCharacters(characterIds: string[]): void;
|
|
696
694
|
}
|
|
697
695
|
|
|
698
696
|
/** Context object provided to frontend extension modules */
|