@tuturuuu/ai 0.2.0 → 0.2.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/package.json +4 -4
- package/src/chat-sdk/zalo-personal.ts +15 -11
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuturuuu/ai",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/tutur3u/platform",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"@streamdown/math": "^1.0.2",
|
|
77
77
|
"@streamdown/mermaid": "^1.0.2",
|
|
78
78
|
"@tuturuuu/google": "0.0.1",
|
|
79
|
-
"@tuturuuu/internal-api": "0.4.
|
|
79
|
+
"@tuturuuu/internal-api": "0.4.1",
|
|
80
80
|
"@tuturuuu/supabase": "0.3.3",
|
|
81
|
-
"@tuturuuu/utils": "0.5.
|
|
81
|
+
"@tuturuuu/utils": "0.5.1",
|
|
82
82
|
"@vercel/sandbox": "^2.1.1",
|
|
83
83
|
"@zernio/chat-sdk-adapter": "^0.3.0",
|
|
84
84
|
"ai": "^6.0.197",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"zod": "^4.4.3"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@tuturuuu/types": "0.6.
|
|
106
|
+
"@tuturuuu/types": "0.6.1",
|
|
107
107
|
"@tuturuuu/typescript-config": "0.1.1",
|
|
108
108
|
"@types/node": "^25.9.2",
|
|
109
109
|
"@types/qrcode": "^1.5.6",
|
|
@@ -1256,16 +1256,15 @@ export function createZaloPersonalAdapter(
|
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
if (!requestViaWebSocket) {
|
|
1259
|
+
if (!requestViaWebSocket) {
|
|
1260
|
+
try {
|
|
1261
|
+
await transferApi.tuturuuuRequestPhoneSync?.({
|
|
1262
|
+
data: syncPayload,
|
|
1263
|
+
reqId: requestId,
|
|
1264
|
+
});
|
|
1265
|
+
requestViaHttp = true;
|
|
1266
|
+
} catch (error) {
|
|
1267
|
+
requestHttpError = toSafePhoneSyncError(error);
|
|
1269
1268
|
throw error;
|
|
1270
1269
|
}
|
|
1271
1270
|
}
|
|
@@ -1341,7 +1340,12 @@ export function createZaloPersonalAdapter(
|
|
|
1341
1340
|
.tuturuuuCleanMobileSync?.({ publicKey })
|
|
1342
1341
|
.then(() => true)
|
|
1343
1342
|
.catch(() => false)) ?? false;
|
|
1344
|
-
} else if (
|
|
1343
|
+
} else if (
|
|
1344
|
+
requestAccepted &&
|
|
1345
|
+
lastError &&
|
|
1346
|
+
messages.length === 0 &&
|
|
1347
|
+
!isPhoneSyncApprovalPendingError(lastError)
|
|
1348
|
+
) {
|
|
1345
1349
|
await transferApi
|
|
1346
1350
|
.tuturuuuCancelMobileMessages?.({ publicKey })
|
|
1347
1351
|
.catch(() => undefined);
|