@ynhcj/xiaoyi-channel 0.0.34-next → 0.0.35-next
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/channel.js
CHANGED
|
@@ -21,7 +21,6 @@ import { searchAlarmTool } from "./tools/search-alarm-tool.js";
|
|
|
21
21
|
import { modifyAlarmTool } from "./tools/modify-alarm-tool.js";
|
|
22
22
|
import { deleteAlarmTool } from "./tools/delete-alarm-tool.js";
|
|
23
23
|
import { sendFileToUserTool } from "./tools/send-file-to-user-tool.js";
|
|
24
|
-
import { xiaoyiCollectionTool } from "./tools/xiaoyi-collection-tool.js";
|
|
25
24
|
import { viewPushResultTool } from "./tools/view-push-result-tool.js";
|
|
26
25
|
import { imageReadingTool } from "./tools/image-reading-tool.js";
|
|
27
26
|
import { timestampToUtc8Tool } from "./tools/timestamp-to-utc8-tool.js";
|
|
@@ -63,7 +62,7 @@ export const xyPlugin = {
|
|
|
63
62
|
schema: xyConfigSchema,
|
|
64
63
|
},
|
|
65
64
|
outbound: xyOutbound,
|
|
66
|
-
agentTools: [locationTool, noteTool, searchNoteTool, modifyNoteTool, calendarTool, searchCalendarTool, searchContactTool, searchPhotoGalleryTool, uploadPhotoTool, xiaoyiGuiTool,
|
|
65
|
+
agentTools: [locationTool, noteTool, searchNoteTool, modifyNoteTool, calendarTool, searchCalendarTool, searchContactTool, searchPhotoGalleryTool, uploadPhotoTool, xiaoyiGuiTool, callPhoneTool, searchMessageTool, sendMessageTool, searchFileTool, uploadFileTool, createAlarmTool, searchAlarmTool, modifyAlarmTool, deleteAlarmTool, sendFileToUserTool, viewPushResultTool, imageReadingTool, timestampToUtc8Tool],
|
|
67
66
|
messaging: {
|
|
68
67
|
normalizeTarget: (raw) => {
|
|
69
68
|
const trimmed = raw.trim();
|
|
@@ -163,10 +163,6 @@ b. 使用该工具之前需获取当前真实时间
|
|
|
163
163
|
if (!normalizedDaysOfWeek || normalizedDaysOfWeek.length === 0) {
|
|
164
164
|
throw new Error("daysOfWeek array cannot be empty");
|
|
165
165
|
}
|
|
166
|
-
// 验证数组长度必须为1
|
|
167
|
-
if (normalizedDaysOfWeek.length !== 1) {
|
|
168
|
-
throw new Error("daysOfWeek 仅支持长度为1的数组。如果需要一周中不同的几天,需要多次调用此工具");
|
|
169
|
-
}
|
|
170
166
|
// Validate each day
|
|
171
167
|
for (const day of normalizedDaysOfWeek) {
|
|
172
168
|
if (typeof day !== "string" || !DAYS_OF_WEEK_VALUES.includes(day)) {
|
|
@@ -199,10 +199,6 @@ export const modifyAlarmTool = {
|
|
|
199
199
|
if (!normalizedDaysOfWeek || normalizedDaysOfWeek.length === 0) {
|
|
200
200
|
throw new Error("daysOfWeek array cannot be empty");
|
|
201
201
|
}
|
|
202
|
-
// 验证数组长度必须为1
|
|
203
|
-
if (normalizedDaysOfWeek.length !== 1) {
|
|
204
|
-
throw new Error("daysOfWeek 仅支持长度为1的数组。如果需要一周中不同的几天,需要多次调用此工具");
|
|
205
|
-
}
|
|
206
202
|
// Validate each day
|
|
207
203
|
for (const day of normalizedDaysOfWeek) {
|
|
208
204
|
if (typeof day !== "string" || !DAYS_OF_WEEK_VALUES.includes(day)) {
|