@rama_nigg/open-cursor 2.3.12 → 2.3.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rama_nigg/open-cursor",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.13",
|
|
4
4
|
"description": "No prompt limits. No broken streams. Full thinking + tool support. Your Cursor subscription, properly integrated.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin-entry.js",
|
|
@@ -42,7 +42,7 @@ export class StreamToAiSdkParts {
|
|
|
42
42
|
|
|
43
43
|
handleEvent(event: StreamJsonEvent): AiSdkStreamPart[] {
|
|
44
44
|
if (isAssistantText(event)) {
|
|
45
|
-
const isPartial = typeof
|
|
45
|
+
const isPartial = typeof event.timestamp_ms === "number";
|
|
46
46
|
if (isPartial) {
|
|
47
47
|
this.sawAssistantPartials = true;
|
|
48
48
|
const text = extractText(event);
|
|
@@ -56,7 +56,7 @@ export class StreamToAiSdkParts {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
if (isThinking(event)) {
|
|
59
|
-
const isPartial = typeof
|
|
59
|
+
const isPartial = typeof event.timestamp_ms === "number";
|
|
60
60
|
if (isPartial) {
|
|
61
61
|
this.sawThinkingPartials = true;
|
|
62
62
|
const text = extractThinking(event);
|
|
@@ -75,7 +75,7 @@ export class StreamToSseConverter {
|
|
|
75
75
|
|
|
76
76
|
handleEvent(event: StreamJsonEvent): string[] {
|
|
77
77
|
if (isAssistantText(event)) {
|
|
78
|
-
const isPartial = typeof
|
|
78
|
+
const isPartial = typeof event.timestamp_ms === "number";
|
|
79
79
|
if (isPartial) {
|
|
80
80
|
this.sawAssistantPartials = true;
|
|
81
81
|
const text = extractText(event);
|
|
@@ -89,7 +89,7 @@ export class StreamToSseConverter {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
if (isThinking(event)) {
|
|
92
|
-
const isPartial = typeof
|
|
92
|
+
const isPartial = typeof event.timestamp_ms === "number";
|
|
93
93
|
if (isPartial) {
|
|
94
94
|
this.sawThinkingPartials = true;
|
|
95
95
|
const text = extractThinking(event);
|