lumiverse-spindle-types 0.4.25 → 0.4.26
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 +20 -0
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -958,6 +958,13 @@ export interface MessageSwipedPayloadDTO {
|
|
|
958
958
|
* execution cycle, providing the assigned member's identity, role, chance,
|
|
959
959
|
* avatar URL, and Lumia personality fields. It is `undefined` for all other
|
|
960
960
|
* invocation paths.
|
|
961
|
+
*
|
|
962
|
+
* `contextMessages` is populated when the invocation originates from a council
|
|
963
|
+
* execution cycle — carrying the structured chat context (system enrichment +
|
|
964
|
+
* chat history) that was assembled for this member. Extensions can inspect
|
|
965
|
+
* role boundaries directly instead of re-parsing the flattened `args.context`
|
|
966
|
+
* string. Multi-part message content is flattened to its text portion before
|
|
967
|
+
* being delivered. `undefined` for non-council invocation paths.
|
|
961
968
|
*/
|
|
962
969
|
export interface ToolInvocationPayloadDTO {
|
|
963
970
|
/** The bare (unqualified) tool name, matching what was passed to `registerTool`. */
|
|
@@ -968,6 +975,12 @@ export interface ToolInvocationPayloadDTO {
|
|
|
968
975
|
requestId: string;
|
|
969
976
|
/** Council member snapshot when invoked via council — otherwise `undefined`. */
|
|
970
977
|
councilMember?: CouncilMemberContext;
|
|
978
|
+
/**
|
|
979
|
+
* Structured chat context for council invocations — preserves role
|
|
980
|
+
* boundaries lost by the flattened `args.context` string. `undefined` for
|
|
981
|
+
* non-council paths.
|
|
982
|
+
*/
|
|
983
|
+
contextMessages?: LlmMessageDTO[];
|
|
971
984
|
}
|
|
972
985
|
|
|
973
986
|
/**
|
|
@@ -1334,6 +1347,13 @@ export type HostToWorker =
|
|
|
1334
1347
|
* Undefined for non-council invocation paths.
|
|
1335
1348
|
*/
|
|
1336
1349
|
councilMember?: CouncilMemberContext;
|
|
1350
|
+
/**
|
|
1351
|
+
* Structured chat context for council invocations — the same messages
|
|
1352
|
+
* that populated `args.context` (flattened string), but with role
|
|
1353
|
+
* boundaries preserved so extensions can re-render or filter them
|
|
1354
|
+
* without parsing. Undefined for non-council invocation paths.
|
|
1355
|
+
*/
|
|
1356
|
+
contextMessages?: LlmMessageDTO[];
|
|
1337
1357
|
}
|
|
1338
1358
|
| { type: "shutdown" }
|
|
1339
1359
|
| { type: "frontend_message"; payload: unknown; userId: string }
|