@ai-accounts/vue-headless 0.3.12 → 0.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/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -367,11 +367,11 @@ function useConversation(client) {
|
|
|
367
367
|
try {
|
|
368
368
|
let accumulated = "";
|
|
369
369
|
for await (const delta of client.streamChat(sessionId.value, content)) {
|
|
370
|
-
if (delta.kind === "token" && delta.
|
|
371
|
-
accumulated += delta.
|
|
370
|
+
if (delta.kind === "token" && delta.payload) {
|
|
371
|
+
accumulated += delta.payload;
|
|
372
372
|
streamingText.value = accumulated;
|
|
373
373
|
} else if (delta.kind === "error") {
|
|
374
|
-
error.value = delta.
|
|
374
|
+
error.value = delta.payload ?? "Unknown error";
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
if (accumulated) {
|
|
@@ -951,7 +951,7 @@ function useStreamingParser(options = {}) {
|
|
|
951
951
|
}
|
|
952
952
|
|
|
953
953
|
// src/index.ts
|
|
954
|
-
var version = "0.3.
|
|
954
|
+
var version = "0.3.13";
|
|
955
955
|
// Annotate the CommonJS export names for ESM import in node:
|
|
956
956
|
0 && (module.exports = {
|
|
957
957
|
aiAccountsKey,
|
package/dist/index.d.cts
CHANGED
|
@@ -216,6 +216,6 @@ interface UseStreamingParserReturn {
|
|
|
216
216
|
*/
|
|
217
217
|
declare function useStreamingParser(options?: UseStreamingParserOptions): UseStreamingParserReturn;
|
|
218
218
|
|
|
219
|
-
declare const version = "0.3.
|
|
219
|
+
declare const version = "0.3.13";
|
|
220
220
|
|
|
221
221
|
export { type AiAccountsContext, type AiAccountsPluginOptions, type BackendResponseState, type LoginStatus, type ProcessGroup, type SynthesisStateRef, type UseAccountWizardOptions, type UseAccountWizardReturn, type UseConversationReturn, type UseLoginSession, type UseOnboardingOptions, type UseOnboardingReturn, type UseProcessGroupsReturn, type UseSmartChatReturn, type UseSmartScrollReturn, type UseStreamingParserOptions, type UseStreamingParserReturn, aiAccountsKey, aiAccountsPlugin, useAccountWizard, useAiAccounts, useBackendRegistry, useConversation, useLoginSession, useOnboarding, useProcessGroups, useSmartChat, useSmartScroll, useStreamingParser, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -216,6 +216,6 @@ interface UseStreamingParserReturn {
|
|
|
216
216
|
*/
|
|
217
217
|
declare function useStreamingParser(options?: UseStreamingParserOptions): UseStreamingParserReturn;
|
|
218
218
|
|
|
219
|
-
declare const version = "0.3.
|
|
219
|
+
declare const version = "0.3.13";
|
|
220
220
|
|
|
221
221
|
export { type AiAccountsContext, type AiAccountsPluginOptions, type BackendResponseState, type LoginStatus, type ProcessGroup, type SynthesisStateRef, type UseAccountWizardOptions, type UseAccountWizardReturn, type UseConversationReturn, type UseLoginSession, type UseOnboardingOptions, type UseOnboardingReturn, type UseProcessGroupsReturn, type UseSmartChatReturn, type UseSmartScrollReturn, type UseStreamingParserOptions, type UseStreamingParserReturn, aiAccountsKey, aiAccountsPlugin, useAccountWizard, useAiAccounts, useBackendRegistry, useConversation, useLoginSession, useOnboarding, useProcessGroups, useSmartChat, useSmartScroll, useStreamingParser, version };
|
package/dist/index.js
CHANGED
|
@@ -323,11 +323,11 @@ function useConversation(client) {
|
|
|
323
323
|
try {
|
|
324
324
|
let accumulated = "";
|
|
325
325
|
for await (const delta of client.streamChat(sessionId.value, content)) {
|
|
326
|
-
if (delta.kind === "token" && delta.
|
|
327
|
-
accumulated += delta.
|
|
326
|
+
if (delta.kind === "token" && delta.payload) {
|
|
327
|
+
accumulated += delta.payload;
|
|
328
328
|
streamingText.value = accumulated;
|
|
329
329
|
} else if (delta.kind === "error") {
|
|
330
|
-
error.value = delta.
|
|
330
|
+
error.value = delta.payload ?? "Unknown error";
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
if (accumulated) {
|
|
@@ -907,7 +907,7 @@ function useStreamingParser(options = {}) {
|
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
// src/index.ts
|
|
910
|
-
var version = "0.3.
|
|
910
|
+
var version = "0.3.13";
|
|
911
911
|
export {
|
|
912
912
|
aiAccountsKey,
|
|
913
913
|
aiAccountsPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-accounts/vue-headless",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "Vue 3 headless composables for ai-accounts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ai-accounts/ts-core": "0.3.
|
|
30
|
+
"@ai-accounts/ts-core": "0.3.13"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"vue": "^3.4.0",
|