carlyemail-toolkit 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/core.js +2 -2
  2. package/package.json +1 -1
  3. package/tools.js +13 -5
package/core.js CHANGED
@@ -180,7 +180,7 @@ async function deleteInbox(client, a) {
180
180
 
181
181
  async function listThreads(client, a) {
182
182
  const scope = await resolveScope(client, a.inbox_id);
183
- const q = query(a, ...PAGE, ...WINDOW, "labels", "ascending", "senders", "recipients", "subject");
183
+ const q = query(a, ...PAGE, ...WINDOW, "labels", "ascending", "senders", "recipients", "subject", "assignee");
184
184
  if (scope.inbox) return client.threads.list(scope.inbox, q);
185
185
  return guided(await client.threads.listOrg(q), scope);
186
186
  }
@@ -200,7 +200,7 @@ async function getThread(client, a) {
200
200
 
201
201
  async function updateThread(client, a) {
202
202
  const scope = await resolveScope(client, a.inbox_id);
203
- const body = pick(a, "add_labels", "remove_labels");
203
+ const body = pick(a, "add_labels", "remove_labels", "assignee_id");
204
204
  if (scope.inbox) return client.threads.update(scope.inbox, a.thread_id, body);
205
205
  return client.threads.updateOrg(a.thread_id, body);
206
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlyemail-toolkit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CarlyEmail's email tools for the Vercel AI SDK, LangChain, and any other agent framework.",
5
5
  "keywords": [
6
6
  "carlyemail",
package/tools.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Written by tools/gen_toolkit_tools.py in the API repository. Do not edit.
2
2
  export default {
3
- "source": "app/mcp/tools.py, written by tools/gen_toolkit_tools.py",
3
+ "source": "app/mcp/tools/, written by tools/gen_toolkit_tools.py",
4
4
  "first_inbox": "Ask the person what they want their email address to be \u2014 the part before the @ \u2014 then call create_inbox with it as `username`.",
5
5
  "tools": [
6
6
  {
@@ -370,8 +370,8 @@ export default {
370
370
  },
371
371
  {
372
372
  "name": "get_attachment",
373
- "title": "Download an attachment",
374
- "description": "Get a download URL for an attachment.",
373
+ "title": "Read an attachment",
374
+ "description": "Read an attachment. Returns a download URL and extracted text for PDF and DOCX files. Use extracted_text to read the document; check text_status, text_truncated and text_warning for limits. Scanned images are not transcribed (no OCR).",
375
375
  "input_schema": {
376
376
  "type": "object",
377
377
  "properties": {
@@ -448,7 +448,7 @@ export default {
448
448
  {
449
449
  "name": "get_thread",
450
450
  "title": "Read a conversation",
451
- "description": "Get one thread with every message in it.",
451
+ "description": "Get one thread with every message in it, the team's notes on it, and any reply someone has started.",
452
452
  "input_schema": {
453
453
  "type": "object",
454
454
  "properties": {
@@ -645,6 +645,10 @@ export default {
645
645
  "type": "string",
646
646
  "description": "Only messages whose subject contains this text."
647
647
  },
648
+ "assignee": {
649
+ "type": "string",
650
+ "description": "Only conversations assigned to this member_id or api_key_id, to \"me\", or \"none\" for unassigned."
651
+ },
648
652
  "before": {
649
653
  "type": "string",
650
654
  "description": "Only items older than this ISO 8601 timestamp."
@@ -1200,7 +1204,7 @@ export default {
1200
1204
  {
1201
1205
  "name": "update_thread",
1202
1206
  "title": "Label a conversation",
1203
- "description": "Add or remove labels on a thread.",
1207
+ "description": "Add or remove labels on a thread, or hand it to a teammate or an agent.",
1204
1208
  "input_schema": {
1205
1209
  "type": "object",
1206
1210
  "properties": {
@@ -1225,6 +1229,10 @@ export default {
1225
1229
  "type": "string"
1226
1230
  },
1227
1231
  "description": "Labels to remove. Ones not present are ignored."
1232
+ },
1233
+ "assignee_id": {
1234
+ "type": "string",
1235
+ "description": "Who handles it: a member_id (from list_members), an api_key_id, or \"me\". Pass \"\" to unassign; leave it out to keep it."
1228
1236
  }
1229
1237
  },
1230
1238
  "required": [