@opengeni/react 1.4.5-canary.38533006839001 → 2.0.1
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/{chunk-ROUV2WRM.js → chunk-25YZS7TK.js} +3 -3
- package/dist/{chunk-KKSJE6P2.js → chunk-HQN5AZFY.js} +8 -2
- package/dist/{chunk-KKSJE6P2.js.map → chunk-HQN5AZFY.js.map} +1 -1
- package/dist/{chunk-JTY5Y7O4.js → chunk-RRYCD3QD.js} +5 -5
- package/dist/chunk-RRYCD3QD.js.map +1 -0
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/{latest-question-MYLGMNDL.js → latest-question-6WZQV23L.js} +2 -2
- package/dist/session-ui.js +3 -3
- package/dist/session.js +2 -2
- package/dist/timeline/compaction-copy.d.ts +8 -0
- package/package.json +4 -4
- package/src/components/message-timeline.tsx +2 -2
- package/src/components/workspace-dock.tsx +18 -1
- package/src/timeline/compaction-copy.ts +14 -0
- package/dist/chunk-JTY5Y7O4.js.map +0 -1
- /package/dist/{chunk-ROUV2WRM.js.map → chunk-25YZS7TK.js.map} +0 -0
- /package/dist/{latest-question-MYLGMNDL.js.map → latest-question-6WZQV23L.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildTimeline,
|
|
4
4
|
groupTimeline,
|
|
5
5
|
sessionStatusFromEvents
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HQN5AZFY.js";
|
|
7
7
|
import {
|
|
8
8
|
isActionableHumanInputRequest
|
|
9
9
|
} from "./chunk-IZV5FTJC.js";
|
|
@@ -1554,7 +1554,7 @@ function useSessionEvents(sessionId, options = {}) {
|
|
|
1554
1554
|
let generation = navigationGenerationRef.current;
|
|
1555
1555
|
const current = () => ownsNavigation() && generation === navigationGenerationRef.current;
|
|
1556
1556
|
try {
|
|
1557
|
-
const { resolveLatestQuestion } = await import("./latest-question-
|
|
1557
|
+
const { resolveLatestQuestion } = await import("./latest-question-6WZQV23L.js");
|
|
1558
1558
|
if (!current()) return null;
|
|
1559
1559
|
const destination = await resolveLatestQuestion({
|
|
1560
1560
|
client,
|
|
@@ -3003,4 +3003,4 @@ export {
|
|
|
3003
3003
|
useGoal,
|
|
3004
3004
|
useNewConversation
|
|
3005
3005
|
};
|
|
3006
|
-
//# sourceMappingURL=chunk-
|
|
3006
|
+
//# sourceMappingURL=chunk-25YZS7TK.js.map
|
|
@@ -271,6 +271,10 @@ import {
|
|
|
271
271
|
|
|
272
272
|
// src/timeline/compaction-copy.ts
|
|
273
273
|
var COMPACTION_FAILURE_TITLE = "Couldn\u2019t compact conversation history";
|
|
274
|
+
var COMPACTION_INTERRUPTED_TITLE = "Compaction interrupted";
|
|
275
|
+
function compactionSkipTitle(reason) {
|
|
276
|
+
return reason === "interrupted" ? COMPACTION_INTERRUPTED_TITLE : COMPACTION_FAILURE_TITLE;
|
|
277
|
+
}
|
|
274
278
|
var COMPACTION_REJECTION_NOTE = "The provider rejects this request the same way until the conversation changes.";
|
|
275
279
|
function compactionSkipSubtitle(reason, providerRejection = null) {
|
|
276
280
|
switch (reason) {
|
|
@@ -282,6 +286,8 @@ function compactionSkipSubtitle(reason, providerRejection = null) {
|
|
|
282
286
|
return "Checkpoint exceeds this model's context budget. Chat history is unchanged.";
|
|
283
287
|
case "replacement_unchanged":
|
|
284
288
|
return "Checkpoint made no progress";
|
|
289
|
+
case "interrupted":
|
|
290
|
+
return "It will retry if still needed. Chat history is unchanged.";
|
|
285
291
|
case "summarization_failed":
|
|
286
292
|
return providerRejection ? "Chat history is unchanged. If your next message fails too, start a new session." : "Request it again to retry. Chat history is unchanged.";
|
|
287
293
|
default:
|
|
@@ -3016,7 +3022,7 @@ function looksLikeId(value) {
|
|
|
3016
3022
|
}
|
|
3017
3023
|
|
|
3018
3024
|
export {
|
|
3019
|
-
|
|
3025
|
+
compactionSkipTitle,
|
|
3020
3026
|
compactionSkipSubtitle,
|
|
3021
3027
|
compactionFailureDetails,
|
|
3022
3028
|
presentTurnFailureText,
|
|
@@ -3029,4 +3035,4 @@ export {
|
|
|
3029
3035
|
isTurnExecutionEvidence,
|
|
3030
3036
|
extractSessionRef
|
|
3031
3037
|
};
|
|
3032
|
-
//# sourceMappingURL=chunk-
|
|
3038
|
+
//# sourceMappingURL=chunk-HQN5AZFY.js.map
|