test-wuying-agentbay-sdk 0.13.0-beta.20251219165300 → 0.13.0-beta.20251219174104
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 +10 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -552,7 +552,7 @@ function getVersionFromPackageJson() {
|
|
|
552
552
|
}
|
|
553
553
|
} catch (error) {
|
|
554
554
|
}
|
|
555
|
-
return "0.
|
|
555
|
+
return "0.13.0";
|
|
556
556
|
}
|
|
557
557
|
_chunk4IPTHWLMcjs.__name.call(void 0, getVersionFromPackageJson, "getVersionFromPackageJson");
|
|
558
558
|
function isReleaseBuild() {
|
|
@@ -822,17 +822,17 @@ var _Client = class _Client extends _openapicore2.default {
|
|
|
822
822
|
*/
|
|
823
823
|
async deleteSessionAsyncWithOptions(request, runtime) {
|
|
824
824
|
request.validate();
|
|
825
|
-
|
|
825
|
+
const body = {};
|
|
826
826
|
if (!$dara.isNull(request.authorization)) {
|
|
827
827
|
body["Authorization"] = request.authorization;
|
|
828
828
|
}
|
|
829
829
|
if (!$dara.isNull(request.sessionId)) {
|
|
830
830
|
body["SessionId"] = request.sessionId;
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
const req = new _openapicore.$OpenApiUtil.OpenApiRequest({
|
|
833
833
|
body: _openapicore.OpenApiUtil.parseToMap(body)
|
|
834
834
|
});
|
|
835
|
-
|
|
835
|
+
const params = new _openapicore.$OpenApiUtil.Params({
|
|
836
836
|
action: "DeleteSessionAsync",
|
|
837
837
|
version: "2025-05-06",
|
|
838
838
|
protocol: "HTTPS",
|
|
@@ -852,7 +852,7 @@ var _Client = class _Client extends _openapicore2.default {
|
|
|
852
852
|
* @returns DeleteSessionAsyncResponse
|
|
853
853
|
*/
|
|
854
854
|
async deleteSessionAsync(request) {
|
|
855
|
-
|
|
855
|
+
const runtime = new $dara.RuntimeOptions({});
|
|
856
856
|
return await this.deleteSessionAsyncWithOptions(request, runtime);
|
|
857
857
|
}
|
|
858
858
|
/**
|
|
@@ -1302,11 +1302,11 @@ var _Client = class _Client extends _openapicore2.default {
|
|
|
1302
1302
|
*/
|
|
1303
1303
|
async getAndLoadInternalContextWithOptions(request, runtime) {
|
|
1304
1304
|
request.validate();
|
|
1305
|
-
|
|
1306
|
-
|
|
1305
|
+
const query = _openapicore.OpenApiUtil.query(request.toMap());
|
|
1306
|
+
const req = new _openapicore.$OpenApiUtil.OpenApiRequest({
|
|
1307
1307
|
query: _openapicore.OpenApiUtil.query(query)
|
|
1308
1308
|
});
|
|
1309
|
-
|
|
1309
|
+
const params = new _openapicore.$OpenApiUtil.Params({
|
|
1310
1310
|
action: "GetAndLoadInternalContext",
|
|
1311
1311
|
version: "2025-05-06",
|
|
1312
1312
|
protocol: "HTTPS",
|
|
@@ -1326,7 +1326,7 @@ var _Client = class _Client extends _openapicore2.default {
|
|
|
1326
1326
|
* @returns GetAndLoadInternalContextResponse
|
|
1327
1327
|
*/
|
|
1328
1328
|
async getAndLoadInternalContext(request) {
|
|
1329
|
-
|
|
1329
|
+
const runtime = new $dara.RuntimeOptions({});
|
|
1330
1330
|
return await this.getAndLoadInternalContextWithOptions(request, runtime);
|
|
1331
1331
|
}
|
|
1332
1332
|
/**
|
|
@@ -15962,8 +15962,7 @@ var _Session = class _Session {
|
|
|
15962
15962
|
);
|
|
15963
15963
|
const syncStartTime = Date.now();
|
|
15964
15964
|
try {
|
|
15965
|
-
|
|
15966
|
-
syncResult = await this.context.sync();
|
|
15965
|
+
const syncResult = await this.context.sync();
|
|
15967
15966
|
logInfo("\u{1F504} Synced all contexts");
|
|
15968
15967
|
const syncDuration = Date.now() - syncStartTime;
|
|
15969
15968
|
if (syncResult.success) {
|