@belonguniverseai/react-sdk 0.6.33 → 0.6.34
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/api/client.d.ts +563 -2
- package/dist/api/computer.d.ts +60 -0
- package/dist/api/proactive.d.ts +36 -0
- package/dist/api/query-keys.d.ts +3 -0
- package/dist/api/task-schedule-folders.d.ts +3 -3
- package/dist/api/task-schedule-projects.d.ts +5 -5
- package/dist/api/task-schedules.d.ts +27 -4
- package/dist/app/dock-story-data.d.ts +1 -1
- package/dist/component/{abnfDiagram-N423BO3Z-CK4wvzwz.js → abnfDiagram-N423BO3Z-K52-wOfg.js} +4 -4
- package/dist/component/{architectureDiagram-T3A2C74G-DoljsqqO.js → architectureDiagram-T3A2C74G-B64SrMLF.js} +6 -6
- package/dist/component/{blockDiagram-VBNYF7ZC-Ie7SErpH.js → blockDiagram-VBNYF7ZC-B7Di5R1s.js} +8 -8
- package/dist/component/{c4Diagram-5PPSVZJV-rfEof5mj.js → c4Diagram-5PPSVZJV-ClDtA2m4.js} +4 -4
- package/dist/component/{channel-C5ABP6lE.js → channel-C6_lLEWW.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-CWOCv67u.js → chunk-2GRJ4B5K-B07moQal.js} +2 -2
- package/dist/component/{chunk-3NCLNEKW-BJYANBvv.js → chunk-3NCLNEKW-TUF1Wrf6.js} +2 -2
- package/dist/component/{chunk-4I5QYGJK-C29OfER5.js → chunk-4I5QYGJK-qY-_sgVE.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-D__NH4Op.js → chunk-5RXB4S5H-BU0H_zl3.js} +6 -6
- package/dist/component/{chunk-6Q2QTUOP-BgSQgII8.js → chunk-6Q2QTUOP-nIHNEMhm.js} +3 -3
- package/dist/component/{chunk-7Z6QIM7H-vNexNF_V.js → chunk-7Z6QIM7H-D7mHGFzt.js} +8 -8
- package/dist/component/{chunk-GF5L2VYU-D3vxqomE.js → chunk-GF5L2VYU-uM1RliIa.js} +6 -6
- package/dist/component/{chunk-I66GZJ75-Dkw1ISGd.js → chunk-I66GZJ75-oDyTlx3R.js} +2 -2
- package/dist/component/{chunk-J7OUQ5F2-dC67pJWg.js → chunk-J7OUQ5F2-c7iD4Gpa.js} +7 -7
- package/dist/component/{chunk-JQJVKLGR-Djj9TdhH.js → chunk-JQJVKLGR-JeqFPv2A.js} +8 -8
- package/dist/component/{chunk-KBJHAD2P-dwIA6Vmi.js → chunk-KBJHAD2P-DjQd-FIs.js} +2 -2
- package/dist/component/{chunk-NSK5VX7P-thQxjtNK.js → chunk-NSK5VX7P-Bq0sOWgd.js} +2 -2
- package/dist/component/{chunk-QR6OTTB3-OMd-rgNj.js → chunk-QR6OTTB3-DctDLVWm.js} +7 -7
- package/dist/component/{chunk-UBXNYLIW-D26S6zO6.js → chunk-UBXNYLIW-Ka1R3omP.js} +3 -3
- package/dist/component/{chunk-W5SLKNZC-DLV7M8by.js → chunk-W5SLKNZC-CI_OqVnD.js} +2 -2
- package/dist/component/{chunk-WRU74C26-13bvIAgD.js → chunk-WRU74C26-BMkh1mHN.js} +4 -4
- package/dist/component/{classDiagram-JCYQIIEL-BFQ72AZA.js → classDiagram-JCYQIIEL-C1E0BQye.js} +13 -13
- package/dist/component/{classDiagram-v2-OCEON4UE-UFfArXpP.js → classDiagram-v2-OCEON4UE-hQKKIbDF.js} +13 -13
- package/dist/component/{component-Bhs6PFPY.js → component-B44aZ-1Z.js} +20116 -19001
- package/dist/component/{cynefinDiagram-MW4NZA55-Bgfw8c41.js → cynefinDiagram-MW4NZA55-0yefvDKM.js} +4 -4
- package/dist/component/{dagre-VZM6K2ZE-CQoUcF3S.js → dagre-VZM6K2ZE-CBlt7UUF.js} +9 -9
- package/dist/component/{diagram-7IWD3JNH-C8-mvAEv.js → diagram-7IWD3JNH-D0zEzayZ.js} +5 -5
- package/dist/component/{diagram-B4RE2ZJO-BATqCIx3.js → diagram-B4RE2ZJO-Dm2FX5kh.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-DwRMRXWz.js → diagram-LBJQPF4R-nQGWQGIp.js} +4 -4
- package/dist/component/{diagram-Q27KOJAE-D6gO0LTm.js → diagram-Q27KOJAE-Co-Dq4kd.js} +6 -6
- package/dist/component/{diagram-UB23O5K3-4nOrWHql.js → diagram-UB23O5K3-ClWS8vTp.js} +4 -4
- package/dist/component/{ebnfDiagram-BXEA7PRR-DCO-Nj3k.js → ebnfDiagram-BXEA7PRR-Cq6K_q0O.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-hWtImhPN.js → erDiagram-JOGREHBK-DvPI-BqP.js} +12 -12
- package/dist/component/flowDiagram-UKHOOZJN-2MBQiA4G.js +19 -0
- package/dist/component/{ganttDiagram-PKOTCBZU-BE8Mqoej.js → ganttDiagram-PKOTCBZU-DXzfT7Q5.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-DURS7rAN.js → gitGraphDiagram-DS77QQ5N-CMKpJJJ_.js} +3 -3
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-BqBxR6YB.js → infoDiagram-6WML65LV-Ck5rB_GF.js} +3 -3
- package/dist/component/{ishikawaDiagram-WSZJBQD7-CnYZd1Dq.js → ishikawaDiagram-WSZJBQD7-CHQxwGjK.js} +4 -4
- package/dist/component/{journeyDiagram-NVQOT4AX-Cgkpx4Qx.js → journeyDiagram-NVQOT4AX-CnPVgyHk.js} +3 -3
- package/dist/component/{kanban-definition-27J2QSJJ-CJSdhT0i.js → kanban-definition-27J2QSJJ-CC8oOHrI.js} +9 -9
- package/dist/component/{line-BBEHlpsV.js → line-AtEledwJ.js} +2 -2
- package/dist/component/{mindmap-definition-FAOFIHXS-DgHouLA-.js → mindmap-definition-FAOFIHXS-WWI6yyUJ.js} +11 -11
- package/dist/component/{pegDiagram-VL7TDLO6-B_iGQ6sI.js → pegDiagram-VL7TDLO6-D5NeC_IJ.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-g7GxM0JA.js → pieDiagram-7S7Q4E2Y-M4MUAitH.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-Bp7z4raq.js → quadrantDiagram-CIZ2JOQS-viErJFsV.js} +2 -2
- package/dist/component/{railroadDiagram-AXF67PYL-CYx3PP5o.js → railroadDiagram-AXF67PYL-C8IhZ-59.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-BJNRJceo.js → requirementDiagram-LRYGKXZP-D1vdZzCs.js} +11 -11
- package/dist/component/{sankeyDiagram-W5VNT64P-Cf0tVHbW.js → sankeyDiagram-W5VNT64P-Bl52MqzW.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-BsAsKMRH.js → sequenceDiagram-SI44F4Z6-Cx-Aio7P.js} +4 -4
- package/dist/component/{stateDiagram-OKZ733FA-Bpk0vtTK.js → stateDiagram-OKZ733FA-CHqMp3xm.js} +14 -14
- package/dist/component/{stateDiagram-v2-UEYNNEHI-CJFoUvD2.js → stateDiagram-v2-UEYNNEHI-DqTLHDUB.js} +13 -13
- package/dist/component/{swimlanes-SLNWSIFB-Be5A0lwq.js → swimlanes-SLNWSIFB-BkaXpBe5.js} +9 -9
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-J8VNaPhM.js → swimlanesDiagram-ULZ7WXOC-DyMFUKdr.js} +13 -13
- package/dist/component/{timeline-definition-Z64GVDOM-CU9PEkPY.js → timeline-definition-Z64GVDOM-Ba3A3s-L.js} +4 -4
- package/dist/component/{vennDiagram-T6HMQDX7-Cno78tFK.js → vennDiagram-T6HMQDX7-4W_JJhIz.js} +4 -4
- package/dist/component/{wardleyDiagram-T6FBY63Y-BEb1Rn5J.js → wardleyDiagram-T6FBY63Y-CllyyQYm.js} +4 -4
- package/dist/component/{xychartDiagram-ELKLHX3M-BwjMczCl.js → xychartDiagram-ELKLHX3M-DS3MPPul.js} +7 -7
- package/dist/components/embed/ComputerSettings.d.ts +7 -0
- package/dist/components/embed/EmbedRail.d.ts +8 -2
- package/dist/components/embed/EmbedSessions.d.ts +15 -2
- package/dist/components/embed/MobileNavBar.d.ts +4 -2
- package/dist/components/embed/ProactiveChecksSetting.d.ts +7 -0
- package/dist/components/embed/use-settings-owner-key.d.ts +15 -0
- package/dist/components/pinned/PinnedChatHeader.d.ts +9 -0
- package/dist/components/pinned/use-agent-name.d.ts +2 -0
- package/dist/embed/goal-cap-notice.d.ts +0 -9
- package/dist/embed/pinned-chat.d.ts +34 -0
- package/dist/embed/voice/line-run-reader.d.ts +1 -1
- package/dist/embed/voice-call.d.ts +6 -0
- package/dist/i18n/messages/en.d.ts +81 -9
- package/dist/i18n/messages/surfaces/pinned.d.ts +76 -0
- package/dist/i18n/messages/surfaces/scheduled.d.ts +37 -5
- package/dist/i18n/messages/surfaces/settings.d.ts +140 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +52 -4
- package/dist/i18n/messages/surfaces/vault.d.ts +1 -1
- package/dist/routes/chat/history-merge.d.ts +4 -1
- package/dist/stream/belong-chat-transport.d.ts +6 -9
- package/dist/stream/pause-notice-copy.d.ts +3 -0
- package/dist/stream/reconnect-backoff.d.ts +39 -0
- package/dist/stream/run-error-copy.d.ts +25 -0
- package/dist/stream/stream-notice.d.ts +9 -0
- package/package.json +1 -1
- package/dist/component/flowDiagram-UKHOOZJN-8qLgX2Wv.js +0 -19
|
@@ -24,6 +24,31 @@ export declare const settingsEn: {
|
|
|
24
24
|
apiKeysDescription: string;
|
|
25
25
|
guide: string;
|
|
26
26
|
guideDescription: string;
|
|
27
|
+
computer: string;
|
|
28
|
+
computerDescription: string;
|
|
29
|
+
computerIntro: string;
|
|
30
|
+
computerLoading: string;
|
|
31
|
+
computerLoadError: string;
|
|
32
|
+
computerAuthError: string;
|
|
33
|
+
computerDownload: string;
|
|
34
|
+
computerConnect: string;
|
|
35
|
+
computerReplace: string;
|
|
36
|
+
computerConnectError: string;
|
|
37
|
+
computerOpenApp: string;
|
|
38
|
+
computerPairingHint: string;
|
|
39
|
+
computerCopyLink: string;
|
|
40
|
+
computerCopied: string;
|
|
41
|
+
computerCopyError: string;
|
|
42
|
+
computerWaiting: string;
|
|
43
|
+
computerOnline: string;
|
|
44
|
+
computerOffline: string;
|
|
45
|
+
computerMeta: string;
|
|
46
|
+
computerDisconnect: string;
|
|
47
|
+
computerConfirmDisconnect: string;
|
|
48
|
+
computerDisconnectError: string;
|
|
49
|
+
computerOsMacos: string;
|
|
50
|
+
computerOsWindows: string;
|
|
51
|
+
computerOsLinux: string;
|
|
27
52
|
apiKeysName: string;
|
|
28
53
|
apiKeysCreate: string;
|
|
29
54
|
apiKeysRevoke: string;
|
|
@@ -44,6 +69,16 @@ export declare const settingsEn: {
|
|
|
44
69
|
workspaceScopeDescription: string;
|
|
45
70
|
workspaceScopeApplies: string;
|
|
46
71
|
workspaceScopeSaveError: string;
|
|
72
|
+
proactiveTitle: string;
|
|
73
|
+
proactiveBody: string;
|
|
74
|
+
proactiveBodySlack: string;
|
|
75
|
+
proactiveWatching: string;
|
|
76
|
+
proactiveOff: string;
|
|
77
|
+
proactiveLastCheck: string;
|
|
78
|
+
proactiveNextCheck: string;
|
|
79
|
+
proactiveCheckNow: string;
|
|
80
|
+
proactiveChecking: string;
|
|
81
|
+
proactiveNothingNew: string;
|
|
47
82
|
profile: string;
|
|
48
83
|
languageDescription: string;
|
|
49
84
|
dockPosition: string;
|
|
@@ -92,6 +127,31 @@ export declare const settingsEs: {
|
|
|
92
127
|
apiKeysDescription: string;
|
|
93
128
|
guide: string;
|
|
94
129
|
guideDescription: string;
|
|
130
|
+
computer: string;
|
|
131
|
+
computerDescription: string;
|
|
132
|
+
computerIntro: string;
|
|
133
|
+
computerLoading: string;
|
|
134
|
+
computerLoadError: string;
|
|
135
|
+
computerAuthError: string;
|
|
136
|
+
computerDownload: string;
|
|
137
|
+
computerConnect: string;
|
|
138
|
+
computerReplace: string;
|
|
139
|
+
computerConnectError: string;
|
|
140
|
+
computerOpenApp: string;
|
|
141
|
+
computerPairingHint: string;
|
|
142
|
+
computerCopyLink: string;
|
|
143
|
+
computerCopied: string;
|
|
144
|
+
computerCopyError: string;
|
|
145
|
+
computerWaiting: string;
|
|
146
|
+
computerOnline: string;
|
|
147
|
+
computerOffline: string;
|
|
148
|
+
computerMeta: string;
|
|
149
|
+
computerDisconnect: string;
|
|
150
|
+
computerConfirmDisconnect: string;
|
|
151
|
+
computerDisconnectError: string;
|
|
152
|
+
computerOsMacos: string;
|
|
153
|
+
computerOsWindows: string;
|
|
154
|
+
computerOsLinux: string;
|
|
95
155
|
apiKeysName: string;
|
|
96
156
|
apiKeysCreate: string;
|
|
97
157
|
apiKeysRevoke: string;
|
|
@@ -112,6 +172,16 @@ export declare const settingsEs: {
|
|
|
112
172
|
workspaceScopeDescription: string;
|
|
113
173
|
workspaceScopeApplies: string;
|
|
114
174
|
workspaceScopeSaveError: string;
|
|
175
|
+
proactiveTitle: string;
|
|
176
|
+
proactiveBody: string;
|
|
177
|
+
proactiveBodySlack: string;
|
|
178
|
+
proactiveWatching: string;
|
|
179
|
+
proactiveOff: string;
|
|
180
|
+
proactiveLastCheck: string;
|
|
181
|
+
proactiveNextCheck: string;
|
|
182
|
+
proactiveCheckNow: string;
|
|
183
|
+
proactiveChecking: string;
|
|
184
|
+
proactiveNothingNew: string;
|
|
115
185
|
profile: string;
|
|
116
186
|
languageDescription: string;
|
|
117
187
|
dockPosition: string;
|
|
@@ -160,6 +230,31 @@ export declare const settingsPt: {
|
|
|
160
230
|
apiKeysDescription: string;
|
|
161
231
|
guide: string;
|
|
162
232
|
guideDescription: string;
|
|
233
|
+
computer: string;
|
|
234
|
+
computerDescription: string;
|
|
235
|
+
computerIntro: string;
|
|
236
|
+
computerLoading: string;
|
|
237
|
+
computerLoadError: string;
|
|
238
|
+
computerAuthError: string;
|
|
239
|
+
computerDownload: string;
|
|
240
|
+
computerConnect: string;
|
|
241
|
+
computerReplace: string;
|
|
242
|
+
computerConnectError: string;
|
|
243
|
+
computerOpenApp: string;
|
|
244
|
+
computerPairingHint: string;
|
|
245
|
+
computerCopyLink: string;
|
|
246
|
+
computerCopied: string;
|
|
247
|
+
computerCopyError: string;
|
|
248
|
+
computerWaiting: string;
|
|
249
|
+
computerOnline: string;
|
|
250
|
+
computerOffline: string;
|
|
251
|
+
computerMeta: string;
|
|
252
|
+
computerDisconnect: string;
|
|
253
|
+
computerConfirmDisconnect: string;
|
|
254
|
+
computerDisconnectError: string;
|
|
255
|
+
computerOsMacos: string;
|
|
256
|
+
computerOsWindows: string;
|
|
257
|
+
computerOsLinux: string;
|
|
163
258
|
apiKeysName: string;
|
|
164
259
|
apiKeysCreate: string;
|
|
165
260
|
apiKeysRevoke: string;
|
|
@@ -180,6 +275,16 @@ export declare const settingsPt: {
|
|
|
180
275
|
workspaceScopeDescription: string;
|
|
181
276
|
workspaceScopeApplies: string;
|
|
182
277
|
workspaceScopeSaveError: string;
|
|
278
|
+
proactiveTitle: string;
|
|
279
|
+
proactiveBody: string;
|
|
280
|
+
proactiveBodySlack: string;
|
|
281
|
+
proactiveWatching: string;
|
|
282
|
+
proactiveOff: string;
|
|
283
|
+
proactiveLastCheck: string;
|
|
284
|
+
proactiveNextCheck: string;
|
|
285
|
+
proactiveCheckNow: string;
|
|
286
|
+
proactiveChecking: string;
|
|
287
|
+
proactiveNothingNew: string;
|
|
183
288
|
profile: string;
|
|
184
289
|
languageDescription: string;
|
|
185
290
|
dockPosition: string;
|
|
@@ -228,6 +333,31 @@ export declare const settingsIt: {
|
|
|
228
333
|
apiKeysDescription: string;
|
|
229
334
|
guide: string;
|
|
230
335
|
guideDescription: string;
|
|
336
|
+
computer: string;
|
|
337
|
+
computerDescription: string;
|
|
338
|
+
computerIntro: string;
|
|
339
|
+
computerLoading: string;
|
|
340
|
+
computerLoadError: string;
|
|
341
|
+
computerAuthError: string;
|
|
342
|
+
computerDownload: string;
|
|
343
|
+
computerConnect: string;
|
|
344
|
+
computerReplace: string;
|
|
345
|
+
computerConnectError: string;
|
|
346
|
+
computerOpenApp: string;
|
|
347
|
+
computerPairingHint: string;
|
|
348
|
+
computerCopyLink: string;
|
|
349
|
+
computerCopied: string;
|
|
350
|
+
computerCopyError: string;
|
|
351
|
+
computerWaiting: string;
|
|
352
|
+
computerOnline: string;
|
|
353
|
+
computerOffline: string;
|
|
354
|
+
computerMeta: string;
|
|
355
|
+
computerDisconnect: string;
|
|
356
|
+
computerConfirmDisconnect: string;
|
|
357
|
+
computerDisconnectError: string;
|
|
358
|
+
computerOsMacos: string;
|
|
359
|
+
computerOsWindows: string;
|
|
360
|
+
computerOsLinux: string;
|
|
231
361
|
apiKeysName: string;
|
|
232
362
|
apiKeysCreate: string;
|
|
233
363
|
apiKeysRevoke: string;
|
|
@@ -248,6 +378,16 @@ export declare const settingsIt: {
|
|
|
248
378
|
workspaceScopeDescription: string;
|
|
249
379
|
workspaceScopeApplies: string;
|
|
250
380
|
workspaceScopeSaveError: string;
|
|
381
|
+
proactiveTitle: string;
|
|
382
|
+
proactiveBody: string;
|
|
383
|
+
proactiveBodySlack: string;
|
|
384
|
+
proactiveWatching: string;
|
|
385
|
+
proactiveOff: string;
|
|
386
|
+
proactiveLastCheck: string;
|
|
387
|
+
proactiveNextCheck: string;
|
|
388
|
+
proactiveCheckNow: string;
|
|
389
|
+
proactiveChecking: string;
|
|
390
|
+
proactiveNothingNew: string;
|
|
251
391
|
profile: string;
|
|
252
392
|
languageDescription: string;
|
|
253
393
|
dockPosition: string;
|
|
@@ -206,9 +206,21 @@ export declare const streamEn: {
|
|
|
206
206
|
readonly reconnecting: "Reconnecting to Simetrik…";
|
|
207
207
|
};
|
|
208
208
|
readonly reconnectingBadge: "reconnecting";
|
|
209
|
-
readonly
|
|
209
|
+
readonly pauseOutputLimit: "Paused — this answer reached its length limit. Reply to continue.";
|
|
210
|
+
readonly pauseStepLimit: "Paused — this task reached its automatic work limit. Reply to continue.";
|
|
211
|
+
readonly pauseWatchdog: "Paused — a step stopped responding or ran out of time. Reply to continue.";
|
|
212
|
+
readonly pauseRepeatedFailure: "Paused — the same step kept failing. Reply with what to change.";
|
|
213
|
+
readonly pauseQuotaExceeded: "Paused — unfinished";
|
|
214
|
+
readonly pauseGeneric: "Paused before finishing. Reply to continue.";
|
|
210
215
|
readonly resumingAfterPause: "Taking longer than expected — picking it back up…";
|
|
211
216
|
readonly answerBlocked: "That answer was blocked before it finished. You can start a new conversation. If it keeps happening, contact support.";
|
|
217
|
+
readonly runErrorStoppedShort: "That answer stopped before it was finished. Ask again and it will pick up where it left off.";
|
|
218
|
+
readonly runErrorContextFull: "That answer stopped because this conversation has grown too long. Start a new chat to carry the work on there.";
|
|
219
|
+
readonly runErrorStepTooLong: "That step took too long, so it was stopped. Ask again to carry on.";
|
|
220
|
+
readonly runErrorConnectionRevoked: "A connection was turned off, so this stopped. Connect it again to continue.";
|
|
221
|
+
readonly runErrorGeneric: "Something went wrong and that answer couldn't finish. Ask again in a moment.";
|
|
222
|
+
readonly runCancelled: "Stopped";
|
|
223
|
+
readonly runThrottled: "Paused";
|
|
212
224
|
readonly open: "Open";
|
|
213
225
|
readonly reconnectRateLimited: "{{provider}} is busy — trying again automatically in {{seconds}}s.";
|
|
214
226
|
readonly reconnectRateLimitedStill: "{{provider}} is still busy. We'll keep trying on our own.";
|
|
@@ -411,9 +423,21 @@ export declare const streamEs: {
|
|
|
411
423
|
reconnecting: string;
|
|
412
424
|
};
|
|
413
425
|
reconnectingBadge: string;
|
|
414
|
-
|
|
426
|
+
pauseOutputLimit: string;
|
|
427
|
+
pauseStepLimit: string;
|
|
428
|
+
pauseWatchdog: string;
|
|
429
|
+
pauseRepeatedFailure: string;
|
|
430
|
+
pauseQuotaExceeded: string;
|
|
431
|
+
pauseGeneric: string;
|
|
415
432
|
resumingAfterPause: string;
|
|
416
433
|
answerBlocked: string;
|
|
434
|
+
runErrorStoppedShort: string;
|
|
435
|
+
runErrorContextFull: string;
|
|
436
|
+
runErrorStepTooLong: string;
|
|
437
|
+
runErrorConnectionRevoked: string;
|
|
438
|
+
runErrorGeneric: string;
|
|
439
|
+
runCancelled: string;
|
|
440
|
+
runThrottled: string;
|
|
417
441
|
open: string;
|
|
418
442
|
reconnectRateLimited: string;
|
|
419
443
|
reconnectRateLimitedStill: string;
|
|
@@ -616,9 +640,21 @@ export declare const streamPt: {
|
|
|
616
640
|
reconnecting: string;
|
|
617
641
|
};
|
|
618
642
|
reconnectingBadge: string;
|
|
619
|
-
|
|
643
|
+
pauseOutputLimit: string;
|
|
644
|
+
pauseStepLimit: string;
|
|
645
|
+
pauseWatchdog: string;
|
|
646
|
+
pauseRepeatedFailure: string;
|
|
647
|
+
pauseQuotaExceeded: string;
|
|
648
|
+
pauseGeneric: string;
|
|
620
649
|
resumingAfterPause: string;
|
|
621
650
|
answerBlocked: string;
|
|
651
|
+
runErrorStoppedShort: string;
|
|
652
|
+
runErrorContextFull: string;
|
|
653
|
+
runErrorStepTooLong: string;
|
|
654
|
+
runErrorConnectionRevoked: string;
|
|
655
|
+
runErrorGeneric: string;
|
|
656
|
+
runCancelled: string;
|
|
657
|
+
runThrottled: string;
|
|
622
658
|
open: string;
|
|
623
659
|
reconnectRateLimited: string;
|
|
624
660
|
reconnectRateLimitedStill: string;
|
|
@@ -821,9 +857,21 @@ export declare const streamIt: {
|
|
|
821
857
|
reconnecting: string;
|
|
822
858
|
};
|
|
823
859
|
reconnectingBadge: string;
|
|
824
|
-
|
|
860
|
+
pauseOutputLimit: string;
|
|
861
|
+
pauseStepLimit: string;
|
|
862
|
+
pauseWatchdog: string;
|
|
863
|
+
pauseRepeatedFailure: string;
|
|
864
|
+
pauseQuotaExceeded: string;
|
|
865
|
+
pauseGeneric: string;
|
|
825
866
|
resumingAfterPause: string;
|
|
826
867
|
answerBlocked: string;
|
|
868
|
+
runErrorStoppedShort: string;
|
|
869
|
+
runErrorContextFull: string;
|
|
870
|
+
runErrorStepTooLong: string;
|
|
871
|
+
runErrorConnectionRevoked: string;
|
|
872
|
+
runErrorGeneric: string;
|
|
873
|
+
runCancelled: string;
|
|
874
|
+
runThrottled: string;
|
|
827
875
|
open: string;
|
|
828
876
|
reconnectRateLimited: string;
|
|
829
877
|
reconnectRateLimitedStill: string;
|
|
@@ -9,7 +9,7 @@ export declare const vaultEn: {
|
|
|
9
9
|
readonly name: "Name";
|
|
10
10
|
readonly nameHint: "Use lowercase letters, numbers and hyphens. Names cannot be changed.";
|
|
11
11
|
readonly kind: "Kind";
|
|
12
|
-
readonly apiKey: "API key";
|
|
12
|
+
readonly apiKey: "API key, token or password";
|
|
13
13
|
readonly pem: "PEM private key";
|
|
14
14
|
readonly value: "Secret value";
|
|
15
15
|
readonly save: "Save";
|
|
@@ -12,7 +12,10 @@ import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
|
|
|
12
12
|
* live lines up too), then back over the earlier rows of the page.
|
|
13
13
|
*
|
|
14
14
|
* Dedupe prefers the row id, then the client id the row was sent with. A
|
|
15
|
-
* message with no id match yet falls back to `(role, flattened text)
|
|
15
|
+
* message with no id match yet falls back to `(role, flattened text)`; a live
|
|
16
|
+
* reply of a task whose rows nothing on screen lines up with folds into them
|
|
17
|
+
* when their text covers its own, and takes their place when it says more
|
|
18
|
+
* (`replyStanding`). Only
|
|
16
19
|
* the suffix AFTER the last server-known on-screen message can be local-only.
|
|
17
20
|
* Within that suffix, an assistant at the same next position as a durable
|
|
18
21
|
* assistant is the same historical turn with stream-vs-folded whitespace/part
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { RECONNECT_MAX_CONSECUTIVE_FAILURES } from './reconnect-backoff.ts';
|
|
2
3
|
import { ChatTransport, UIMessageChunk } from 'ai';
|
|
3
4
|
import { FirstResponseObservation, FirstResponseSample } from '../infrastructure/telemetry/first-response-timing.ts';
|
|
4
5
|
import { AUTH_EXPIRED_ERROR_PREFIX } from '../api/auth-errors.ts';
|
|
@@ -426,13 +427,8 @@ export declare class PostMessageError extends Error {
|
|
|
426
427
|
readonly body: string;
|
|
427
428
|
constructor(status: number, body: string);
|
|
428
429
|
}
|
|
429
|
-
/**
|
|
430
|
-
|
|
431
|
-
export declare const RECONNECT_BASE_DELAY_MS = 1000;
|
|
432
|
-
/** Exponential backoff ceiling. */
|
|
433
|
-
export declare const RECONNECT_MAX_DELAY_MS = 30000;
|
|
434
|
-
/** Consecutive connection attempts that deliver no event before we give up. */
|
|
435
|
-
export declare const RECONNECT_MAX_CONSECUTIVE_FAILURES = 10;
|
|
430
|
+
/** The reconnect policy lives with every other reader of a run's stream. */
|
|
431
|
+
export { RECONNECT_MAX_CONSECUTIVE_FAILURES };
|
|
436
432
|
/**
|
|
437
433
|
* Liveness watchdog: the server emits a `: keepalive` comment every 15s
|
|
438
434
|
* (run-stream.routes.ts), so a healthy connection delivers a chunk at least
|
|
@@ -473,9 +469,10 @@ export type BelongChatTransportOptions = {
|
|
|
473
469
|
readonly apiBaseUrl: string;
|
|
474
470
|
/**
|
|
475
471
|
* Reconnect delay seam (§25 — do not hide time). Tests inject an instant
|
|
476
|
-
* recorder; production uses a real setTimeout sleep
|
|
472
|
+
* recorder; production uses a real setTimeout sleep that `signal` (a stop
|
|
473
|
+
* or a supersede) ends at once.
|
|
477
474
|
*/
|
|
478
|
-
readonly sleepMs?: (ms: number) => Promise<void>;
|
|
475
|
+
readonly sleepMs?: (ms: number, signal: AbortSignal) => Promise<void>;
|
|
479
476
|
/**
|
|
480
477
|
* Stall-watchdog window override (§25). Tests shrink it to tens of ms;
|
|
481
478
|
* production uses `STALL_TIMEOUT_MS`.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a reader of `GET /v1/runs/:runId/stream` waits between reconnects, and
|
|
3
|
+
* when it gives up (plan 007 §C4). One policy for every reader of a run's
|
|
4
|
+
* stream, so none of them can hammer the server harder than the chat does.
|
|
5
|
+
*/
|
|
6
|
+
/** Consecutive connection attempts that deliver no event before we give up. */
|
|
7
|
+
export declare const RECONNECT_MAX_CONSECUTIVE_FAILURES = 10;
|
|
8
|
+
/**
|
|
9
|
+
* Whether an event's `id:` moves a reader past its cursor. Only that counts as
|
|
10
|
+
* progress for the failure streak: an id-less part, or an id the reader has
|
|
11
|
+
* already seen (a server repeating itself), proves nothing, so a stream that
|
|
12
|
+
* only ever gives those still runs out of attempts. Ids that are not
|
|
13
|
+
* `<ms>-<seq>` count as progress when they differ from the cursor.
|
|
14
|
+
*/
|
|
15
|
+
export declare const advancesCursor: (eventId: string, cursor: string | null) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The wait before the next attempt, after `consecutiveFailuresCount` attempts
|
|
18
|
+
* in a row delivered no event: 1 s → 2 s → 4 s … capped at 30 s. A reader also
|
|
19
|
+
* passes its streak of attempts that ended on the run stream's failure notice
|
|
20
|
+
* (#1063), whichever is larger, so a server that brings one new event and then
|
|
21
|
+
* breaks, on every attempt, is polled at up to 30 s rather than every second.
|
|
22
|
+
*/
|
|
23
|
+
export declare const reconnectDelayMs: (consecutiveFailuresCount: number) => number;
|
|
24
|
+
/**
|
|
25
|
+
* The notice streak after an attempt that ended on the run stream's failure
|
|
26
|
+
* notice. An attempt that brought many new events first was a healthy stream
|
|
27
|
+
* that broke once, so its break starts the streak over at 1 (a 1 s wait), and
|
|
28
|
+
* the sixth such break in a long run never freezes the answer for 30 s. A
|
|
29
|
+
* trickle of fewer new events keeps climbing toward the 30 s ceiling.
|
|
30
|
+
*/
|
|
31
|
+
export declare const nextNoticeStreakCount: (noticeStreakCount: number, attemptNewEventsCount: number) => number;
|
|
32
|
+
/**
|
|
33
|
+
* The default wait before a reconnect: `ms`, or less. An abort of `signal`
|
|
34
|
+
* ends it at once and clears its timer and listener, so a reader torn down
|
|
35
|
+
* mid-backoff holds no timer for up to 30 s (review 1063.6 S3). It resolves
|
|
36
|
+
* either way: the caller re-checks its own abort state after the wait, so a
|
|
37
|
+
* live reader waits exactly as long as before.
|
|
38
|
+
*/
|
|
39
|
+
export declare const abortableSleepMs: (ms: number, signal: AbortSignal) => Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { BelongUIMessage } from './belong-data-parts.ts';
|
|
3
|
+
/** The localized line for a failed run's code: its own, or the generic one. */
|
|
4
|
+
export declare const runErrorText: (t: TFunction, code: string | undefined) => string;
|
|
5
|
+
/** The `error` chunk text for a failed run: its code behind the marker, never its message. */
|
|
6
|
+
export declare const runErrorErrorText: (code: string | undefined) => string;
|
|
7
|
+
/** The localized line for a failed run's error text, or `null` for any other error. */
|
|
8
|
+
export declare const runErrorTextFromError: (t: TFunction, errorMessage: string) => string | null;
|
|
9
|
+
/** What a live call offers after a failure: the same as the dock's line says. */
|
|
10
|
+
type RunErrorNextStep = "try_again" | "new_conversation";
|
|
11
|
+
/**
|
|
12
|
+
* The call's next step for a failed run's error text. A line that says to
|
|
13
|
+
* start a new chat (a conversation grown too long, a blocked answer) must not
|
|
14
|
+
* be followed by an offer to try again; everything else may try again.
|
|
15
|
+
*/
|
|
16
|
+
export declare const runErrorNextStepFromError: (errorMessage: string) => RunErrorNextStep;
|
|
17
|
+
/**
|
|
18
|
+
* Whether a turn already shows its failure: its LAST status part is a failed
|
|
19
|
+
* run that is neither paused nor resuming. Then the turn's own notice (the
|
|
20
|
+
* same live and from history, §41) says it, and the chat's error row must
|
|
21
|
+
* not repeat it. A turn still showing "picking it back up" whose resume
|
|
22
|
+
* never came does not, so the row says it there.
|
|
23
|
+
*/
|
|
24
|
+
export declare const turnShowsRunFailure: (message: BelongUIMessage) => boolean;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
/** Whether a wire `data-status` part is the run stream's failure notice. */
|
|
3
|
+
export declare const isStreamNoticePart: (part: {
|
|
4
|
+
readonly id?: string | undefined;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
/** The give-up `error` chunk text for a stream notice: its code behind the marker, never its message. */
|
|
7
|
+
export declare const streamNoticeErrorText: (code: string | undefined) => string;
|
|
8
|
+
/** The localized line for a stream notice's error text, or `null` for any other error. */
|
|
9
|
+
export declare const streamNoticeText: (t: TFunction, errorMessage: string) => string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.34",
|
|
4
4
|
"description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
globalThis.process = globalThis.process || { env: {} }, globalThis.global = globalThis.global || globalThis;
|
|
2
|
-
import "./chunk-Y2CYZVJY-CiUSrfaV.js";
|
|
3
|
-
import "./src-CKo8cHWB.js";
|
|
4
|
-
import "./chunk-I66GZJ75-Dkw1ISGd.js";
|
|
5
|
-
import "./chunk-NSK5VX7P-thQxjtNK.js";
|
|
6
|
-
import "./chunk-ZIRB5QZD-DmX0SXRC.js";
|
|
7
|
-
import "./chunk-W5SLKNZC-DLV7M8by.js";
|
|
8
|
-
import "./chunk-UBXNYLIW-D26S6zO6.js";
|
|
9
|
-
import "./chunk-4I5QYGJK-C29OfER5.js";
|
|
10
|
-
import "./chunk-WRU74C26-13bvIAgD.js";
|
|
11
|
-
import "./chunk-QR6OTTB3-OMd-rgNj.js";
|
|
12
|
-
import "./chunk-7BUUIJ7U-DJJ8ycYS.js";
|
|
13
|
-
import "./chunk-7Z6QIM7H-vNexNF_V.js";
|
|
14
|
-
import "./chunk-J7OUQ5F2-dC67pJWg.js";
|
|
15
|
-
import "./chunk-5VM5RSS4-BuOiQaWo.js";
|
|
16
|
-
import "./chunk-2GRJ4B5K-CWOCv67u.js";
|
|
17
|
-
import "./chunk-XXDRQBXY-BP7ld7ls.js";
|
|
18
|
-
import "./chunk-KBJHAD2P-dwIA6Vmi.js";
|
|
19
|
-
export { n as diagram } from "./chunk-JQJVKLGR-Djj9TdhH.js";
|