@getdial/cli 0.46.0 → 0.47.0
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.
|
@@ -16,7 +16,7 @@ export async function runGroupList(opts) {
|
|
|
16
16
|
// A name Dial could not read is rendered as a dash — never the literal "null",
|
|
17
17
|
// and never the group id standing in for a name, which would read as one.
|
|
18
18
|
const name = g.name ?? "—";
|
|
19
|
-
console.log(`${g.id} ${name}`);
|
|
19
|
+
console.log(`${g.id} ${g.channel} ${name}`);
|
|
20
20
|
}
|
|
21
21
|
return 0;
|
|
22
22
|
}
|
package/dist/mcp/schemas.js
CHANGED
|
@@ -81,6 +81,9 @@ export const phoneNumberSchema = z
|
|
|
81
81
|
*/
|
|
82
82
|
export const groupSchema = z.object({
|
|
83
83
|
id: z.string().describe("Group id — pass as groupId to send_message or list_messages"),
|
|
84
|
+
channel: z
|
|
85
|
+
.enum(["whatsapp", "imessage"])
|
|
86
|
+
.describe("The channel the group is on; its rules apply to anything sent into the group"),
|
|
84
87
|
name: z
|
|
85
88
|
.string()
|
|
86
89
|
.nullable()
|
|
@@ -19,7 +19,7 @@ export const replyToMessageTool = {
|
|
|
19
19
|
name: "reply_to_message",
|
|
20
20
|
config: {
|
|
21
21
|
title: "Reply to a message",
|
|
22
|
-
description: "Reply in-thread or react to an existing message. The reply goes out from the Dial number the target message belongs to, to the other party — no from/to needed. Provide exactly one of body or reaction. On iMessage numbers replies thread and reactions are native; recipients that can only receive SMS get an emoji reaction as a regular text, and named reactions are rejected.",
|
|
22
|
+
description: "Reply in-thread or react to an existing message. The reply goes out from the Dial number the target message belongs to, to the other party — no from/to needed. Provide exactly one of body or reaction. On iMessage numbers replies thread and reactions are native; recipients that can only receive SMS get an emoji reaction as a regular text, and named reactions are rejected. On an iMessage number, a body reply needs a target that arrived over iMessage or RCS — one that came in over SMS carries no thread to attach to and is rejected, so send a new message with send_message instead of retrying. On WhatsApp numbers both are native, in a one-to-one conversation or a group: a reaction lands on the target message, and a body is a quoted reply.",
|
|
23
23
|
inputSchema,
|
|
24
24
|
outputSchema: { message: messageSchema },
|
|
25
25
|
annotations: { openWorldHint: true },
|
|
@@ -47,9 +47,9 @@ export const sendMessageTool = {
|
|
|
47
47
|
description: "Send a message from one of your Dial numbers — to a phone number, or into a group conversation — " +
|
|
48
48
|
"optionally with media attachments (MMS). On an iMessage number, a single audio attachment is " +
|
|
49
49
|
"delivered as a voice message unless forceAudioFile is true. " +
|
|
50
|
-
"Address it with exactly one of to or groupId. A WhatsApp
|
|
51
|
-
"attachment
|
|
52
|
-
"
|
|
50
|
+
"Address it with exactly one of to or groupId. A WhatsApp send — one-to-one or into a group — " +
|
|
51
|
+
"carries at most one attachment, and a body may accompany it only for an image or video; an " +
|
|
52
|
+
"iMessage group takes media like any other iMessage conversation.",
|
|
53
53
|
inputSchema,
|
|
54
54
|
outputSchema: { message: messageSchema },
|
|
55
55
|
annotations: { openWorldHint: true },
|
package/package.json
CHANGED
package/skills.tar.gz
CHANGED
|
Binary file
|