@standardagents/vue 0.41.17 → 0.41.19
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/index.cjs +6 -0
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -97,6 +97,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
97
97
|
const hasMoreMessages = vue.ref(false);
|
|
98
98
|
const isLoadingOlderMessages = vue.ref(false);
|
|
99
99
|
const status = vue.ref("disconnected");
|
|
100
|
+
const runStatus = vue.ref(null);
|
|
100
101
|
const isLoading = vue.ref(preload);
|
|
101
102
|
const error = vue.ref(null);
|
|
102
103
|
const pendingFiles = vue.ref([]);
|
|
@@ -336,6 +337,9 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
339
|
},
|
|
340
|
+
onThreadStatus: (event) => {
|
|
341
|
+
runStatus.value = event.status;
|
|
342
|
+
},
|
|
339
343
|
onError: (err) => {
|
|
340
344
|
error.value = err instanceof Error ? err : new Error(String(err));
|
|
341
345
|
}
|
|
@@ -500,6 +504,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
500
504
|
connectionManager?.disconnect();
|
|
501
505
|
connectionManager = null;
|
|
502
506
|
status.value = "disconnected";
|
|
507
|
+
runStatus.value = null;
|
|
503
508
|
}
|
|
504
509
|
vue.watch(threadId, (newThreadId, oldThreadId) => {
|
|
505
510
|
if (newThreadId !== oldThreadId) {
|
|
@@ -550,6 +555,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
550
555
|
status,
|
|
551
556
|
connectionStatus: status,
|
|
552
557
|
// alias
|
|
558
|
+
runStatus,
|
|
553
559
|
isLoading,
|
|
554
560
|
loading: isLoading,
|
|
555
561
|
// alias
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComputedRef, Ref, InjectionKey, Plugin, PropType } from 'vue';
|
|
3
3
|
import * as _standardagents_client from '@standardagents/client';
|
|
4
4
|
import { AgentBuilderClient, SendMessagePayload, Message, ThreadFile, PendingAttachment } from '@standardagents/client';
|
|
5
|
-
export { AgentBuilderClient, AttachmentPayload, AttachmentRef, ConnectionStatus, FileUploadManager, GetMessagesOptions, GroupedThreadMessage, Message, PendingAttachment, SendMessagePayload, StatusMessage, SubagentBlockMessage, SubagentThreadMessage, Thread, ThreadConnectionCallbacks, ThreadConnectionManager, ThreadConnectionOptions, ThreadFile, ThreadMessage, WorkItem, WorkMessage, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToSubagentBlocks, transformToWorkblocks } from '@standardagents/client';
|
|
5
|
+
export { AgentBuilderClient, AttachmentPayload, AttachmentRef, ConnectionStatus, FileUploadManager, GetMessagesOptions, GroupedThreadMessage, Message, PendingAttachment, SendMessagePayload, StatusMessage, SubagentBlockMessage, SubagentThreadMessage, Thread, ThreadConnectionCallbacks, ThreadConnectionManager, ThreadConnectionOptions, ThreadFile, ThreadMessage, ThreadRunState, ThreadStatus, ThreadStatusEvent, WorkItem, WorkMessage, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToSubagentBlocks, transformToWorkblocks } from '@standardagents/client';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Configuration for the StandardAgents plugin
|
|
@@ -67,6 +67,12 @@ interface ThreadContext {
|
|
|
67
67
|
status: Ref<_standardagents_client.ConnectionStatus>;
|
|
68
68
|
/** Connection status (alias for status) */
|
|
69
69
|
connectionStatus: Ref<_standardagents_client.ConnectionStatus>;
|
|
70
|
+
/**
|
|
71
|
+
* Authoritative run status pushed by the server (`thread_status` frames):
|
|
72
|
+
* a snapshot on every (re)connect, then each change. Null until the first
|
|
73
|
+
* frame arrives.
|
|
74
|
+
*/
|
|
75
|
+
runStatus: Ref<_standardagents_client.ThreadStatus | null>;
|
|
70
76
|
/** Whether the thread is currently loading */
|
|
71
77
|
isLoading: Ref<boolean>;
|
|
72
78
|
/** Whether the thread is currently loading (alias for isLoading) */
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { ComputedRef, Ref, InjectionKey, Plugin, PropType } from 'vue';
|
|
3
3
|
import * as _standardagents_client from '@standardagents/client';
|
|
4
4
|
import { AgentBuilderClient, SendMessagePayload, Message, ThreadFile, PendingAttachment } from '@standardagents/client';
|
|
5
|
-
export { AgentBuilderClient, AttachmentPayload, AttachmentRef, ConnectionStatus, FileUploadManager, GetMessagesOptions, GroupedThreadMessage, Message, PendingAttachment, SendMessagePayload, StatusMessage, SubagentBlockMessage, SubagentThreadMessage, Thread, ThreadConnectionCallbacks, ThreadConnectionManager, ThreadConnectionOptions, ThreadFile, ThreadMessage, WorkItem, WorkMessage, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToSubagentBlocks, transformToWorkblocks } from '@standardagents/client';
|
|
5
|
+
export { AgentBuilderClient, AttachmentPayload, AttachmentRef, ConnectionStatus, FileUploadManager, GetMessagesOptions, GroupedThreadMessage, Message, PendingAttachment, SendMessagePayload, StatusMessage, SubagentBlockMessage, SubagentThreadMessage, Thread, ThreadConnectionCallbacks, ThreadConnectionManager, ThreadConnectionOptions, ThreadFile, ThreadMessage, ThreadRunState, ThreadStatus, ThreadStatusEvent, WorkItem, WorkMessage, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToSubagentBlocks, transformToWorkblocks } from '@standardagents/client';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Configuration for the StandardAgents plugin
|
|
@@ -67,6 +67,12 @@ interface ThreadContext {
|
|
|
67
67
|
status: Ref<_standardagents_client.ConnectionStatus>;
|
|
68
68
|
/** Connection status (alias for status) */
|
|
69
69
|
connectionStatus: Ref<_standardagents_client.ConnectionStatus>;
|
|
70
|
+
/**
|
|
71
|
+
* Authoritative run status pushed by the server (`thread_status` frames):
|
|
72
|
+
* a snapshot on every (re)connect, then each change. Null until the first
|
|
73
|
+
* frame arrives.
|
|
74
|
+
*/
|
|
75
|
+
runStatus: Ref<_standardagents_client.ThreadStatus | null>;
|
|
70
76
|
/** Whether the thread is currently loading */
|
|
71
77
|
isLoading: Ref<boolean>;
|
|
72
78
|
/** Whether the thread is currently loading (alias for isLoading) */
|
package/dist/index.js
CHANGED
|
@@ -96,6 +96,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
96
96
|
const hasMoreMessages = ref(false);
|
|
97
97
|
const isLoadingOlderMessages = ref(false);
|
|
98
98
|
const status = ref("disconnected");
|
|
99
|
+
const runStatus = ref(null);
|
|
99
100
|
const isLoading = ref(preload);
|
|
100
101
|
const error = ref(null);
|
|
101
102
|
const pendingFiles = ref([]);
|
|
@@ -335,6 +336,9 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
338
|
},
|
|
339
|
+
onThreadStatus: (event) => {
|
|
340
|
+
runStatus.value = event.status;
|
|
341
|
+
},
|
|
338
342
|
onError: (err) => {
|
|
339
343
|
error.value = err instanceof Error ? err : new Error(String(err));
|
|
340
344
|
}
|
|
@@ -499,6 +503,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
499
503
|
connectionManager?.disconnect();
|
|
500
504
|
connectionManager = null;
|
|
501
505
|
status.value = "disconnected";
|
|
506
|
+
runStatus.value = null;
|
|
502
507
|
}
|
|
503
508
|
watch(threadId, (newThreadId, oldThreadId) => {
|
|
504
509
|
if (newThreadId !== oldThreadId) {
|
|
@@ -549,6 +554,7 @@ function useThreadSetup(threadIdInput, options = {}) {
|
|
|
549
554
|
status,
|
|
550
555
|
connectionStatus: status,
|
|
551
556
|
// alias
|
|
557
|
+
runStatus,
|
|
552
558
|
isLoading,
|
|
553
559
|
loading: isLoading,
|
|
554
560
|
// alias
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standardagents/vue",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue SDK for Standard Agents",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@standardagents/client": "0.41.
|
|
33
|
+
"@standardagents/client": "0.41.19"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"vue": "^3.3.0"
|