@jclvsh/iris 0.16.0 → 0.17.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.
@@ -72,6 +72,18 @@ export function registerMessageCommands(program, client) {
72
72
  handleError(error);
73
73
  }
74
74
  });
75
+ messages
76
+ .command("mark-sent <id>")
77
+ .description("mark a pending manual-channel draft (tiktok / instagram cold first-touch) as sent outside the platform")
78
+ .action(async (id) => {
79
+ try {
80
+ const result = await client.post(`/messages/${id}/mark-sent`);
81
+ formatOutput(result, getFormat(program.opts()));
82
+ }
83
+ catch (error) {
84
+ handleError(error);
85
+ }
86
+ });
75
87
  messages
76
88
  .command("feedback <id>")
77
89
  .description("submit feedback to improve future AI generations")
@@ -55,6 +55,17 @@ export function registerMessageTools(server, client) {
55
55
  return formatMcpError(error);
56
56
  }
57
57
  });
58
+ server.tool("mark_message_sent", "mark a pending manual-channel draft (tiktok, or instagram cold first-touch) as sent outside the platform. API-sendable drafts must use approve_message instead. requires write scope.", {
59
+ id: z.string().uuid().describe("approval queue item ID"),
60
+ }, async ({ id }) => {
61
+ try {
62
+ const result = await client.post(`/messages/${id}/mark-sent`);
63
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
64
+ }
65
+ catch (error) {
66
+ return formatMcpError(error);
67
+ }
68
+ });
58
69
  server.tool("submit_message_feedback", "submit feedback on an AI-generated message to improve future generations. requires send scope.", {
59
70
  id: z.string().uuid().describe("message ID"),
60
71
  feedback: z.string().min(1).max(2000).describe("feedback text"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclvsh/iris",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "MCP server for the Iris API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",