@co0ontty/wand 4.7.1 → 4.8.0
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/build-info.json +3 -3
- package/dist/config.d.ts +2 -2
- package/dist/config.js +4 -4
- package/dist/path-repair.js +7 -3
- package/dist/process-manager.js +18 -1
- package/dist/server-session-routes.js +15 -11
- package/dist/server.js +4 -1
- package/dist/session-transport.d.ts +1 -0
- package/dist/session-transport.js +3 -1
- package/dist/storage.js +5 -1
- package/dist/structured-client-protocol.d.ts +7 -0
- package/dist/structured-client-protocol.js +168 -0
- package/dist/structured-grok-adapter.d.ts +12 -0
- package/dist/structured-grok-adapter.js +156 -0
- package/dist/structured-provider-common.d.ts +1 -0
- package/dist/structured-provider-common.js +16 -1
- package/dist/structured-session-manager.d.ts +3 -0
- package/dist/structured-session-manager.js +165 -7
- package/dist/system-ai.js +2 -0
- package/dist/types.d.ts +30 -2
- package/dist/web-ui/content/scripts.js +42 -42
- package/dist/web-ui/embedded-assets.d.ts +1 -1
- package/dist/web-ui/embedded-assets.js +2 -2
- package/dist/ws-broadcast.js +2 -0
- package/package.json +1 -1
package/dist/ws-broadcast.js
CHANGED
|
@@ -6,6 +6,7 @@ import { WebSocket } from "ws";
|
|
|
6
6
|
import { readSessionCookie } from "./auth.js";
|
|
7
7
|
import { blockWindowMessagesForTransport, windowMessagesForTransport } from "./message-truncator.js";
|
|
8
8
|
import { boundSessionEventData, toSessionDetailDTO } from "./session-transport.js";
|
|
9
|
+
import { enrichStructuredMessages } from "./structured-client-protocol.js";
|
|
9
10
|
// ── Constants ──
|
|
10
11
|
const MAX_QUEUE_SIZE = 500;
|
|
11
12
|
const QUEUE_RESUME_SIZE = Math.floor(MAX_QUEUE_SIZE * 0.8);
|
|
@@ -278,6 +279,7 @@ export class WsBroadcastManager {
|
|
|
278
279
|
if (!messages) {
|
|
279
280
|
return { messages: undefined, messageOffset: 0, messageTotal: 0 };
|
|
280
281
|
}
|
|
282
|
+
messages = enrichStructuredMessages(messages);
|
|
281
283
|
if (client.blockBudget && client.blockBudget > 0) {
|
|
282
284
|
const w = blockWindowMessagesForTransport(messages, this.getCardDefaults(), client.blockBudget);
|
|
283
285
|
return {
|