@ycodium-ai/plugin-conversation 0.2.3054 → 0.2.3064
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/assets/ui.js +55 -55
- package/dist/index.js +4 -12
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -614,9 +614,9 @@ async function executionOf(ctx, threadId) {
|
|
|
614
614
|
// src/sessionMap/threadReads.ts
|
|
615
615
|
import {
|
|
616
616
|
isThreadNotFound,
|
|
617
|
+
threadMessagesNewestFirst,
|
|
617
618
|
threadOrNull,
|
|
618
619
|
THREAD_ACTIVITIES_LIST_LIMIT,
|
|
619
|
-
THREAD_MESSAGES_LIST_LIMIT,
|
|
620
620
|
TOOL_LIFECYCLE_ACTIVITY_KINDS
|
|
621
621
|
} from "@ycodium-ai/plugin-api";
|
|
622
622
|
|
|
@@ -656,7 +656,6 @@ function titlesByCallId(activities) {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
// src/sessionMap/threadReads.ts
|
|
659
|
-
var MESSAGES_PAGE = THREAD_MESSAGES_LIST_LIMIT;
|
|
660
659
|
var ACTIVITIES_PAGE = THREAD_ACTIVITIES_LIST_LIMIT;
|
|
661
660
|
var MAX_TITLE_ACTIVITIES = 500;
|
|
662
661
|
var TOOL_ACTIVITY_KINDS = [...TOOL_LIFECYCLE_ACTIVITY_KINDS];
|
|
@@ -667,17 +666,10 @@ var messageOf = (item) => ({
|
|
|
667
666
|
});
|
|
668
667
|
async function readTranscript(threads, threadId) {
|
|
669
668
|
const newestFirst = [];
|
|
670
|
-
let cursor = null;
|
|
671
669
|
try {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
limit: MESSAGES_PAGE,
|
|
676
|
-
cursor
|
|
677
|
-
});
|
|
678
|
-
newestFirst.push(...page.items.map(messageOf));
|
|
679
|
-
cursor = page.nextCursor;
|
|
680
|
-
} while (cursor !== null);
|
|
670
|
+
for await (const message of threadMessagesNewestFirst(threads, threadId)) {
|
|
671
|
+
newestFirst.push(messageOf(message));
|
|
672
|
+
}
|
|
681
673
|
} catch (error) {
|
|
682
674
|
if (isThreadNotFound(error)) return null;
|
|
683
675
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-conversation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3064",
|
|
4
4
|
"description": "The conversation surface: chat, trajectory, and session map, the input card, the queue, and turn navigation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chat",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"tailwindcss": "^4.0.0",
|
|
42
42
|
"typescript": "~6.0.3",
|
|
43
43
|
"vite-plus": "0.2.2",
|
|
44
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
45
|
-
"ycodium-
|
|
44
|
+
"@ycodium-ai/plugin-api": "0.2.3064",
|
|
45
|
+
"ycodium-composer-tokens": "0.0.0",
|
|
46
46
|
"ycodium-workspace-path": "0.0.0",
|
|
47
|
-
"ycodium-
|
|
47
|
+
"ycodium-system-text": "0.0.0"
|
|
48
48
|
},
|
|
49
49
|
"ycodium": {
|
|
50
50
|
"plugin": "./dist/index.js",
|