carlyemail-toolkit 0.1.5 → 0.1.6
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/core.js +2 -2
- package/package.json +1 -1
- package/tools.js +3 -3
package/core.js
CHANGED
|
@@ -113,7 +113,7 @@ export async function oneInbox(client, inboxId) {
|
|
|
113
113
|
`This organization has ${scope.candidates.length} inboxes, so inbox_id is required.`,
|
|
114
114
|
{
|
|
115
115
|
code: "inbox_id_required",
|
|
116
|
-
fix: `
|
|
116
|
+
fix: `Pass the one that fits this mail as inbox_id: ${shown}${more}.`,
|
|
117
117
|
},
|
|
118
118
|
);
|
|
119
119
|
}
|
|
@@ -173,7 +173,7 @@ async function updateInbox(client, a) {
|
|
|
173
173
|
async function deleteInbox(client, a) {
|
|
174
174
|
const inbox = await oneInbox(client, a.inbox_id);
|
|
175
175
|
// Only sent when true, so a refusal (`inbox_in_use`) reaches the model and
|
|
176
|
-
// it
|
|
176
|
+
// it decides whether to try again with `force`.
|
|
177
177
|
await client.inboxes.delete(inbox, a.force === true ? { force: true } : {});
|
|
178
178
|
return { deleted: true, inbox_id: inbox };
|
|
179
179
|
}
|
package/package.json
CHANGED
package/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Written by tools/gen_toolkit_tools.py in the API repository. Do not edit.
|
|
2
2
|
export default {
|
|
3
3
|
"source": "app/mcp/tools/, written by tools/gen_toolkit_tools.py",
|
|
4
|
-
"first_inbox": "
|
|
4
|
+
"first_inbox": "Create an inbox with create_inbox and carry on. Use the address the person asked for as `username` if they named one; otherwise choose it yourself.",
|
|
5
5
|
"tools": [
|
|
6
6
|
{
|
|
7
7
|
"name": "add_note",
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
{
|
|
174
174
|
"name": "create_inbox",
|
|
175
175
|
"title": "Create an inbox",
|
|
176
|
-
"description": "Create a new inbox.
|
|
176
|
+
"description": "Create a new inbox. Use the address the person asked for as `username`, or choose one yourself; omit it for a generated address.",
|
|
177
177
|
"input_schema": {
|
|
178
178
|
"type": "object",
|
|
179
179
|
"properties": {
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
235
235
|
{
|
|
236
236
|
"name": "delete_inbox",
|
|
237
237
|
"title": "Delete an inbox and its mail",
|
|
238
|
-
"description": "Delete an inbox. Its messages go with it. An inbox that sent mail or whose key was used in the last 30 days is refused with `inbox_in_use`;
|
|
238
|
+
"description": "Delete an inbox. Its messages go with it. An inbox that sent mail or whose key was used in the last 30 days is refused with `inbox_in_use`; call again with `force` if you mean to delete it anyway.",
|
|
239
239
|
"input_schema": {
|
|
240
240
|
"type": "object",
|
|
241
241
|
"properties": {
|