@myrialabs/clopen 0.3.13 → 0.3.14
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/backend/chat/stream-manager.ts +15 -0
- package/backend/engine/README.md +16 -1669
- package/backend/engine/adapters/claude/message-converter.ts +34 -7
- package/backend/engine/adapters/claude/models.ts +174 -2
- package/backend/engine/docs/adapter-contract.md +183 -0
- package/backend/engine/docs/adding-an-engine.md +150 -0
- package/backend/engine/docs/database.md +123 -0
- package/backend/engine/docs/frontend-and-chat.md +176 -0
- package/backend/engine/docs/lessons-learned.md +715 -0
- package/backend/engine/docs/quick-reference.md +36 -0
- package/backend/engine/docs/system-tools.md +82 -0
- package/backend/engine/docs/websocket-routes.md +240 -0
- package/backend/files/file-archive.test.ts +131 -0
- package/backend/files/file-archive.ts +89 -28
- package/backend/files/file-operations.ts +21 -1
- package/backend/files/file-watcher.ts +117 -3
- package/backend/projects/project-cleanup.ts +1 -1
- package/backend/utils/ws.ts +9 -0
- package/backend/ws/chat/stream.ts +46 -38
- package/backend/ws/files/watch.ts +48 -19
- package/backend/ws/files/write.ts +6 -2
- package/dist/assets/{main-DOVudc3_.js → main-C37-Y8f-.js} +184 -184
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/shared/types/unified/index.ts +6 -0
- package/shared/types/unified/stream.ts +15 -1
- package/shared/types/unified/tool.ts +41 -1
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
SystemInitEvent,
|
|
25
25
|
RateLimitEvent,
|
|
26
26
|
RateLimitType,
|
|
27
|
+
NotificationEvent,
|
|
27
28
|
TokenUsage,
|
|
28
29
|
StopReason,
|
|
29
30
|
UserContentBlock,
|
|
@@ -731,6 +732,20 @@ class StreamManager extends EventEmitter {
|
|
|
731
732
|
continue;
|
|
732
733
|
}
|
|
733
734
|
|
|
735
|
+
// ── Notification (e.g. background-task completion) ─────
|
|
736
|
+
case 'notification': {
|
|
737
|
+
const note = output as NotificationEvent;
|
|
738
|
+
this.emitStreamEvent(streamState, 'notification', {
|
|
739
|
+
notification: {
|
|
740
|
+
type: note.level,
|
|
741
|
+
title: note.title,
|
|
742
|
+
message: note.message,
|
|
743
|
+
},
|
|
744
|
+
timestamp: new Date().toISOString()
|
|
745
|
+
});
|
|
746
|
+
continue; // transient — don't save to DB
|
|
747
|
+
}
|
|
748
|
+
|
|
734
749
|
// ── Result ─────────────────────────────────────────────
|
|
735
750
|
case 'result': {
|
|
736
751
|
if (output.subtype === 'success') {
|