@ynhcj/xiaoyi-channel 0.0.164-beta → 0.0.165-beta
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/src/tools/calendar-tool.js +1 -1
- package/dist/src/tools/call-phone-tool.js +1 -1
- package/dist/src/tools/create-alarm-tool.js +1 -1
- package/dist/src/tools/create-all-tools.js +2 -2
- package/dist/src/tools/delete-alarm-tool.js +1 -1
- package/dist/src/tools/location-tool.js +1 -1
- package/dist/src/tools/modify-alarm-tool.js +1 -1
- package/dist/src/tools/modify-note-tool.js +1 -1
- package/dist/src/tools/note-tool.js +1 -1
- package/dist/src/tools/query-app-message-tool.js +1 -1
- package/dist/src/tools/query-memory-data-tool.js +1 -1
- package/dist/src/tools/query-todo-task-tool.js +1 -1
- package/dist/src/tools/save-file-to-phone-tool.js +1 -1
- package/dist/src/tools/save-media-to-gallery-tool.js +1 -1
- package/dist/src/tools/search-alarm-tool.js +1 -1
- package/dist/src/tools/search-calendar-tool.js +1 -1
- package/dist/src/tools/search-contact-tool.js +1 -1
- package/dist/src/tools/search-email-tool.js +1 -1
- package/dist/src/tools/search-note-tool.js +1 -1
- package/dist/src/tools/search-photo-gallery-tool.js +1 -1
- package/dist/src/tools/send-email-tool.js +1 -1
- package/dist/src/tools/upload-file-tool.js +1 -1
- package/dist/src/tools/upload-photo-tool.js +1 -1
- package/dist/src/tools/xiaoyi-add-collection-tool.js +1 -1
- package/dist/src/tools/xiaoyi-collection-tool.js +1 -1
- package/dist/src/tools/xiaoyi-delete-collection-tool.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { createGetPhotoToolSchemaTool } from "./get-photo-tool-schema.js";
|
|
|
13
13
|
import { createGetDeviceFileToolSchemaTool } from "./get-device-file-tool-schema.js";
|
|
14
14
|
import { createGetAlarmToolSchemaTool } from "./get-alarm-tool-schema.js";
|
|
15
15
|
import { createGetCollectionToolSchemaTool } from "./get-collection-tool-schema.js";
|
|
16
|
-
import { createGetEmailToolSchemaTool } from "./get-email-tool-schema.js";
|
|
16
|
+
// import { createGetEmailToolSchemaTool } from "./get-email-tool-schema.js";
|
|
17
17
|
import { createLoginTokenTool } from "./login-token-tool.js";
|
|
18
18
|
import { createAgentAsSkillTool } from "./agent-as-skill-tool.js";
|
|
19
19
|
import { createDiscoverCrossDevicesTool } from "./discover-cross-devices-tool.js";
|
|
@@ -47,7 +47,7 @@ export function createAllTools(ctx) {
|
|
|
47
47
|
createGetAlarmToolSchemaTool(ctx),
|
|
48
48
|
createGetCollectionToolSchemaTool(ctx),
|
|
49
49
|
createSendFileToUserTool(ctx),
|
|
50
|
-
createGetEmailToolSchemaTool(ctx),
|
|
50
|
+
// createGetEmailToolSchemaTool(ctx),
|
|
51
51
|
viewPushResultTool,
|
|
52
52
|
createImageReadingTool(ctx),
|
|
53
53
|
timestampToUtc8Tool,
|
|
@@ -140,7 +140,7 @@ async function searchPhotos(wsManager, config, sessionId, taskId, messageId, too
|
|
|
140
140
|
resolve(event.outputs);
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
|
-
reject(new Error(`搜索照片失败: ${event.
|
|
143
|
+
reject(new Error(`搜索照片失败: ${JSON.stringify(event.outputs)}`));
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
};
|
|
@@ -194,7 +194,7 @@ async function getFileUrls(wsManager, config, sessionId, taskId, messageId, tool
|
|
|
194
194
|
resolve(fileUrls);
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
|
-
reject(new Error(`获取文件URL失败: ${event.
|
|
197
|
+
reject(new Error(`获取文件URL失败: ${JSON.stringify(event.outputs)}`));
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
};
|
|
@@ -158,7 +158,7 @@ async function getPhotoUrls(wsManager, config, sessionId, taskId, messageId, too
|
|
|
158
158
|
resolve(imageUrls);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
reject(new Error(`获取照片URL失败: ${event.
|
|
161
|
+
reject(new Error(`获取照片URL失败: ${JSON.stringify(event.outputs)}`));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
};
|