@aexol/spectral 0.2.21 → 0.2.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/dist/server/pi-bridge.js
CHANGED
|
@@ -724,7 +724,13 @@ export class PiBridge {
|
|
|
724
724
|
e.type === "tool_result");
|
|
725
725
|
if (!finalContent && !hasMeaningfulEvent) {
|
|
726
726
|
console.debug("[pi-bridge] skipping empty intermediate message");
|
|
727
|
-
|
|
727
|
+
try {
|
|
728
|
+
this.opts.onAssistantMessageSkipped?.(messageId);
|
|
729
|
+
}
|
|
730
|
+
catch (err) {
|
|
731
|
+
const e = err instanceof Error ? err : new Error(String(err));
|
|
732
|
+
console.error(`[pi-bridge] onAssistantMessageSkipped failed: ${e.message}`);
|
|
733
|
+
}
|
|
728
734
|
return;
|
|
729
735
|
}
|
|
730
736
|
const eventsJsonl = wireEvents.map((e) => JSON.stringify(e)).join("\n");
|
package/dist/server/storage.js
CHANGED
|
@@ -439,7 +439,12 @@ export class SessionStore {
|
|
|
439
439
|
*/
|
|
440
440
|
/** Delete a message by id. No-op if the message doesn't exist. */
|
|
441
441
|
deleteMessage(id) {
|
|
442
|
-
|
|
442
|
+
try {
|
|
443
|
+
this.stmtDeleteMessage.run(id);
|
|
444
|
+
}
|
|
445
|
+
catch (err) {
|
|
446
|
+
console.error(`[spectral] error: deleteMessage failed for ${id}: ${err instanceof Error ? err.message : String(err)}`);
|
|
447
|
+
}
|
|
443
448
|
}
|
|
444
449
|
appendMessage(sessionId, msg) {
|
|
445
450
|
const id = msg.id ?? randomUUID();
|