@wiro-ai/wiro-mcp 1.9.1 → 2.1.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.
Files changed (216) hide show
  1. package/README.md +95 -42
  2. package/dist/index.js +7 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/instructions.js +5 -5
  5. package/dist/instructions.js.map +1 -1
  6. package/dist/playbooks.d.ts.map +1 -1
  7. package/dist/playbooks.js +111 -94
  8. package/dist/playbooks.js.map +1 -1
  9. package/dist/prompts.js +7 -7
  10. package/dist/prompts.js.map +1 -1
  11. package/dist/tools/answer-agent-approval.d.ts +4 -0
  12. package/dist/tools/answer-agent-approval.d.ts.map +1 -0
  13. package/dist/tools/answer-agent-approval.js +354 -0
  14. package/dist/tools/answer-agent-approval.js.map +1 -0
  15. package/dist/tools/apply-agent-skills.d.ts.map +1 -1
  16. package/dist/tools/apply-agent-skills.js +81 -30
  17. package/dist/tools/apply-agent-skills.js.map +1 -1
  18. package/dist/tools/bind-agent-project.d.ts.map +1 -1
  19. package/dist/tools/bind-agent-project.js +29 -28
  20. package/dist/tools/bind-agent-project.js.map +1 -1
  21. package/dist/tools/cancel-agent-message.js +1 -1
  22. package/dist/tools/cancel-agent-message.js.map +1 -1
  23. package/dist/tools/check-model-access.d.ts.map +1 -1
  24. package/dist/tools/check-model-access.js +14 -11
  25. package/dist/tools/check-model-access.js.map +1 -1
  26. package/dist/tools/connect-agent-connector.d.ts +4 -0
  27. package/dist/tools/connect-agent-connector.d.ts.map +1 -0
  28. package/dist/tools/connect-agent-connector.js +634 -0
  29. package/dist/tools/connect-agent-connector.js.map +1 -0
  30. package/dist/tools/control-agent.d.ts.map +1 -1
  31. package/dist/tools/control-agent.js +30 -31
  32. package/dist/tools/control-agent.js.map +1 -1
  33. package/dist/tools/delete-agent.d.ts.map +1 -1
  34. package/dist/tools/delete-agent.js +12 -5
  35. package/dist/tools/delete-agent.js.map +1 -1
  36. package/dist/tools/deploy-agent.d.ts.map +1 -1
  37. package/dist/tools/deploy-agent.js +96 -44
  38. package/dist/tools/deploy-agent.js.map +1 -1
  39. package/dist/tools/disconnect-agent-connector.d.ts +4 -0
  40. package/dist/tools/disconnect-agent-connector.d.ts.map +1 -0
  41. package/dist/tools/disconnect-agent-connector.js +184 -0
  42. package/dist/tools/disconnect-agent-connector.js.map +1 -0
  43. package/dist/tools/get-account.d.ts.map +1 -1
  44. package/dist/tools/get-account.js +24 -8
  45. package/dist/tools/get-account.js.map +1 -1
  46. package/dist/tools/get-agent-activity.d.ts.map +1 -1
  47. package/dist/tools/get-agent-activity.js +285 -138
  48. package/dist/tools/get-agent-activity.js.map +1 -1
  49. package/dist/tools/get-agent-connector-permissions.d.ts +145 -0
  50. package/dist/tools/get-agent-connector-permissions.d.ts.map +1 -0
  51. package/dist/tools/get-agent-connector-permissions.js +194 -0
  52. package/dist/tools/get-agent-connector-permissions.js.map +1 -0
  53. package/dist/tools/get-agent-conversation.d.ts.map +1 -1
  54. package/dist/tools/get-agent-conversation.js +39 -10
  55. package/dist/tools/get-agent-conversation.js.map +1 -1
  56. package/dist/tools/get-agent-message.d.ts.map +1 -1
  57. package/dist/tools/get-agent-message.js +13 -5
  58. package/dist/tools/get-agent-message.js.map +1 -1
  59. package/dist/tools/get-agent-template.d.ts.map +1 -1
  60. package/dist/tools/get-agent-template.js +13 -15
  61. package/dist/tools/get-agent-template.js.map +1 -1
  62. package/dist/tools/get-my-agent.d.ts.map +1 -1
  63. package/dist/tools/get-my-agent.js +38 -5
  64. package/dist/tools/get-my-agent.js.map +1 -1
  65. package/dist/tools/get-task-price.d.ts.map +1 -1
  66. package/dist/tools/get-task-price.js +4 -4
  67. package/dist/tools/get-task-price.js.map +1 -1
  68. package/dist/tools/get-task.d.ts.map +1 -1
  69. package/dist/tools/get-task.js +4 -4
  70. package/dist/tools/get-task.js.map +1 -1
  71. package/dist/tools/index.d.ts +8 -3
  72. package/dist/tools/index.d.ts.map +1 -1
  73. package/dist/tools/index.js +17 -6
  74. package/dist/tools/index.js.map +1 -1
  75. package/dist/tools/kill-task.js +1 -1
  76. package/dist/tools/kill-task.js.map +1 -1
  77. package/dist/tools/list-agent-connectors.d.ts +4 -0
  78. package/dist/tools/list-agent-connectors.d.ts.map +1 -0
  79. package/dist/tools/list-agent-connectors.js +325 -0
  80. package/dist/tools/list-agent-connectors.js.map +1 -0
  81. package/dist/tools/list-agent-skills.d.ts.map +1 -1
  82. package/dist/tools/list-agent-skills.js +59 -40
  83. package/dist/tools/list-agent-skills.js.map +1 -1
  84. package/dist/tools/list-agent-templates.d.ts.map +1 -1
  85. package/dist/tools/list-agent-templates.js +7 -5
  86. package/dist/tools/list-agent-templates.js.map +1 -1
  87. package/dist/tools/list-my-agents.d.ts.map +1 -1
  88. package/dist/tools/list-my-agents.js +7 -3
  89. package/dist/tools/list-my-agents.js.map +1 -1
  90. package/dist/tools/list-projects.d.ts.map +1 -1
  91. package/dist/tools/list-projects.js +7 -4
  92. package/dist/tools/list-projects.js.map +1 -1
  93. package/dist/tools/list-studio-results.d.ts.map +1 -1
  94. package/dist/tools/list-studio-results.js +3 -2
  95. package/dist/tools/list-studio-results.js.map +1 -1
  96. package/dist/tools/list-tasks.d.ts.map +1 -1
  97. package/dist/tools/list-tasks.js +6 -3
  98. package/dist/tools/list-tasks.js.map +1 -1
  99. package/dist/tools/manage-agent-billing.d.ts.map +1 -1
  100. package/dist/tools/manage-agent-billing.js +216 -359
  101. package/dist/tools/manage-agent-billing.js.map +1 -1
  102. package/dist/tools/manage-agent-custom-skill.d.ts.map +1 -1
  103. package/dist/tools/manage-agent-custom-skill.js +77 -30
  104. package/dist/tools/manage-agent-custom-skill.js.map +1 -1
  105. package/dist/tools/manage-model-access.js +1 -1
  106. package/dist/tools/manage-model-access.js.map +1 -1
  107. package/dist/tools/manage-spend-limit.js +1 -1
  108. package/dist/tools/manage-spend-limit.js.map +1 -1
  109. package/dist/tools/run-model.d.ts.map +1 -1
  110. package/dist/tools/run-model.js +4 -4
  111. package/dist/tools/run-model.js.map +1 -1
  112. package/dist/tools/schemas.d.ts +11 -0
  113. package/dist/tools/schemas.d.ts.map +1 -1
  114. package/dist/tools/schemas.js +19 -1
  115. package/dist/tools/schemas.js.map +1 -1
  116. package/dist/tools/send-agent-message.d.ts.map +1 -1
  117. package/dist/tools/send-agent-message.js +45 -20
  118. package/dist/tools/send-agent-message.js.map +1 -1
  119. package/dist/tools/set-agent-connector-accounts.d.ts +4 -0
  120. package/dist/tools/set-agent-connector-accounts.d.ts.map +1 -0
  121. package/dist/tools/set-agent-connector-accounts.js +263 -0
  122. package/dist/tools/set-agent-connector-accounts.js.map +1 -0
  123. package/dist/tools/set-agent-connector-permissions.d.ts +4 -0
  124. package/dist/tools/set-agent-connector-permissions.d.ts.map +1 -0
  125. package/dist/tools/set-agent-connector-permissions.js +280 -0
  126. package/dist/tools/set-agent-connector-permissions.js.map +1 -0
  127. package/dist/tools/set-agent-credentials.d.ts.map +1 -1
  128. package/dist/tools/set-agent-credentials.js +52 -169
  129. package/dist/tools/set-agent-credentials.js.map +1 -1
  130. package/dist/tools/update-agent.d.ts.map +1 -1
  131. package/dist/tools/update-agent.js +39 -18
  132. package/dist/tools/update-agent.js.map +1 -1
  133. package/dist/tools/wait-for-task.d.ts.map +1 -1
  134. package/dist/tools/wait-for-task.js +4 -4
  135. package/dist/tools/wait-for-task.js.map +1 -1
  136. package/dist/tools/wait-for-workflow-run.d.ts.map +1 -1
  137. package/dist/tools/wait-for-workflow-run.js +6 -3
  138. package/dist/tools/wait-for-workflow-run.js.map +1 -1
  139. package/dist/utils/agent-approvals.d.ts +328 -0
  140. package/dist/utils/agent-approvals.d.ts.map +1 -0
  141. package/dist/utils/agent-approvals.js +620 -0
  142. package/dist/utils/agent-approvals.js.map +1 -0
  143. package/dist/utils/agent-catalog.d.ts +15 -25
  144. package/dist/utils/agent-catalog.d.ts.map +1 -1
  145. package/dist/utils/agent-catalog.js +27 -36
  146. package/dist/utils/agent-catalog.js.map +1 -1
  147. package/dist/utils/agent-config.d.ts +87 -292
  148. package/dist/utils/agent-config.d.ts.map +1 -1
  149. package/dist/utils/agent-config.js +150 -787
  150. package/dist/utils/agent-config.js.map +1 -1
  151. package/dist/utils/agent-connectors.d.ts +197 -0
  152. package/dist/utils/agent-connectors.d.ts.map +1 -0
  153. package/dist/utils/agent-connectors.js +415 -0
  154. package/dist/utils/agent-connectors.js.map +1 -0
  155. package/dist/utils/agent-message.d.ts +106 -4
  156. package/dist/utils/agent-message.d.ts.map +1 -1
  157. package/dist/utils/agent-message.js +84 -14
  158. package/dist/utils/agent-message.js.map +1 -1
  159. package/dist/utils/agent-setup.d.ts +19 -14
  160. package/dist/utils/agent-setup.d.ts.map +1 -1
  161. package/dist/utils/agent-setup.js +171 -106
  162. package/dist/utils/agent-setup.js.map +1 -1
  163. package/dist/utils/agent-targets.d.ts.map +1 -1
  164. package/dist/utils/agent-targets.js +40 -14
  165. package/dist/utils/agent-targets.js.map +1 -1
  166. package/dist/utils/agent-turns.d.ts +256 -7
  167. package/dist/utils/agent-turns.d.ts.map +1 -1
  168. package/dist/utils/agent-turns.js +260 -71
  169. package/dist/utils/agent-turns.js.map +1 -1
  170. package/dist/utils/connector-permissions.d.ts +184 -0
  171. package/dist/utils/connector-permissions.d.ts.map +1 -0
  172. package/dist/utils/connector-permissions.js +439 -0
  173. package/dist/utils/connector-permissions.js.map +1 -0
  174. package/dist/utils/controls.d.ts +6 -2
  175. package/dist/utils/controls.d.ts.map +1 -1
  176. package/dist/utils/controls.js +20 -9
  177. package/dist/utils/controls.js.map +1 -1
  178. package/dist/utils/format.d.ts +10 -0
  179. package/dist/utils/format.d.ts.map +1 -1
  180. package/dist/utils/format.js +117 -38
  181. package/dist/utils/format.js.map +1 -1
  182. package/dist/utils/quoted-text.d.ts +2 -0
  183. package/dist/utils/quoted-text.d.ts.map +1 -1
  184. package/dist/utils/quoted-text.js +5 -0
  185. package/dist/utils/quoted-text.js.map +1 -1
  186. package/dist/utils/structured.d.ts +3 -0
  187. package/dist/utils/structured.d.ts.map +1 -1
  188. package/dist/utils/structured.js +7 -2
  189. package/dist/utils/structured.js.map +1 -1
  190. package/dist/utils/studio-runs.d.ts.map +1 -1
  191. package/dist/utils/studio-runs.js +6 -4
  192. package/dist/utils/studio-runs.js.map +1 -1
  193. package/dist/utils/user-agent.d.ts +271 -100
  194. package/dist/utils/user-agent.d.ts.map +1 -1
  195. package/dist/utils/user-agent.js +434 -159
  196. package/dist/utils/user-agent.js.map +1 -1
  197. package/dist/utils/wiro-project.d.ts +25 -0
  198. package/dist/utils/wiro-project.d.ts.map +1 -1
  199. package/dist/utils/wiro-project.js +76 -2
  200. package/dist/utils/wiro-project.js.map +1 -1
  201. package/dist/utils/workflow.d.ts.map +1 -1
  202. package/dist/utils/workflow.js +4 -2
  203. package/dist/utils/workflow.js.map +1 -1
  204. package/dist/utils/workspace.d.ts +3 -1
  205. package/dist/utils/workspace.d.ts.map +1 -1
  206. package/dist/utils/workspace.js +2 -1
  207. package/dist/utils/workspace.js.map +1 -1
  208. package/package.json +1 -1
  209. package/dist/tools/connect-agent-oauth.d.ts +0 -4
  210. package/dist/tools/connect-agent-oauth.d.ts.map +0 -1
  211. package/dist/tools/connect-agent-oauth.js +0 -778
  212. package/dist/tools/connect-agent-oauth.js.map +0 -1
  213. package/dist/tools/disconnect-agent-oauth.d.ts +0 -4
  214. package/dist/tools/disconnect-agent-oauth.d.ts.map +0 -1
  215. package/dist/tools/disconnect-agent-oauth.js +0 -138
  216. package/dist/tools/disconnect-agent-oauth.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"playbooks.js","sourceRoot":"","sources":["../src/playbooks.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,8EAA8E;AAC9E,wEAAwE;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GA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ChB,QAAQ,EAAE,QAAQ;CACnB,CAAC;AAEF,SAAS,SAAS,CAAC,QAAgB;IACjC,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAC/C,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC"}
package/dist/prompts.js CHANGED
@@ -43,13 +43,13 @@ function deployAgentText(goal) {
43
43
  'Before anything else, call `get_playbook` with the topic "agents" and follow it.',
44
44
  '',
45
45
  'Plan:',
46
- '1. Look for a template with `list_agent_templates` and read the best matches with `get_agent_template`. If none fits, suggest a custom build from `list_agent_skills`.',
47
- '2. Show me the options: the plan (Starter, Pro or Max) with its monthly price and monthly credits, the credentials and accounts it needs, and its chat channels. Every plan includes every skill. Let me choose.',
46
+ '1. Look for a template with `list_agent_templates` and read the best matches with `get_agent_template`. If none fits, suggest a custom build from `list_agent_skills`, with the outside services it works with from `list_agent_connectors`.',
47
+ '2. Show me the options: the plan (Starter, Pro or Max) with its monthly price and the AI usage it includes, the connectors and credentials it needs and how each one connects, and its chat channels. Every plan includes every skill and connector. Let me choose.',
48
48
  '3. Call `get_account` to check the balance and which wallet will pay.',
49
49
  '4. Call `deploy_agent` without confirm to get the quote. Show me the amount, the wallet, and that the plan renews every 30 days until it is cancelled. Only after I say yes, repeat the call as the quote\'s `nextAction` shows: `confirm: true` with `confirm_charge_usd` set to the quoted amount. If the price changed in between, nothing is charged: show me the new quote.',
50
50
  '5. Wait with `get_my_agent` until the agent is running (status 4). It starts even while credentials are missing.',
51
- '6. Set it up: ask me for each required credential and save it with `set_agent_credentials`. For a Wiro project (`wiro`), call `bind_agent_project` instead: it needs no key, shows me the project first and connects it only after my yes. For sign-in accounts, call `connect_agent_oauth` and tell me what it needs: a sign-in link, my own app keys first, or a token. If it gives a link, wait for me, then check the status.',
52
- '7. Tell me what works now and what still needs setup. Offer a short test message with `send_agent_message`; each message uses the agent\'s credits.',
51
+ '6. Set it up: ask me for each required credential and save it with `set_agent_credentials`. For a Wiro project (`wiro`), call `bind_agent_project` instead: it needs no key, shows me the project first and connects it only after my yes. The Wiro AI Models connector (`wiro`), which gives the agent its model tools, runs with that same project: connecting it binds the project the same way. Connect each outside service with `connect_agent_connector`: ask me for the values its Connect card needs, or give me its sign-in link to open myself, wait for me, then check the status. Where it has account choices, let me pick them with `set_agent_connector_accounts`.',
52
+ '7. Tell me what works now and what still needs setup. Offer a short test message with `send_agent_message`; each message uses the agent\'s AI usage.',
53
53
  '',
54
54
  'Confirm every charge with me before it happens. Never repeat secret values back to me. If a deploy fails or times out, check `list_my_agents` before trying again.',
55
55
  ].join('\n');
@@ -80,12 +80,12 @@ function talkToMyAgentText(agentName, message) {
80
80
  '',
81
81
  'Plan:',
82
82
  '1. Call `list_my_agents` and find the agent by name. If there is no clear match, show me the list and ask.',
83
- '2. Call `get_my_agent`. The agent must be running (status 4) and have credits left, unless my message is a "yes" or "yes N" to its setup proposals: Wiro answers those itself at any status and with no credits, and a "no" too while the agent is not running. If it is stopped, ask me before starting it with `control_agent`, then wait until it runs. If it has no credits, tell me and stop there.',
83
+ '2. Call `get_my_agent`. The agent must be running (status 4) and have AI usage it can pay for (included usage left, or $0.50 in the Wiro balance), unless my message is a "yes" or "yes N" to its setup proposals: Wiro answers those itself at any status and at no cost, and a "no" too while the agent is not running. If it is stopped, ask me before starting it with `control_agent`, then wait until it runs. If its AI usage is paused, tell me why and stop there.',
84
84
  '3. Call `send_agent_message` with agent set to the agent\'s guid and the message. Use its main session ("default") unless I name another one.',
85
85
  '4. If the reply is not ready, follow its `nextAction` with `get_agent_message`. If the agent moves the work to the background, read the result later with `get_agent_conversation`, unless the turn\'s notes say it will not appear for this project.',
86
- '5. Show me the reply and any files.',
86
+ '5. Show me the reply and any files. If an action waits for my approval, show me its request and ask me; answer it with `answer_agent_approval` only with my answer.',
87
87
  '',
88
- 'Each message uses the agent\'s credits, except a reply Wiro answers itself. Confirm with me before any action that costs money, such as buying credits or renewing the plan.',
88
+ 'Each message uses the agent\'s AI usage, except a reply Wiro answers itself. Confirm with me before any action that costs money, such as a plan change or renewing the plan.',
89
89
  ].join('\n');
90
90
  }
91
91
  export function registerPrompts(server, toolsets = TOOLSETS) {
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAgB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,+EAA+E;AAC/E,2EAA2E;AAC3E,8EAA8E;AAC9E,kEAAkE;AAElE,SAAS,KAAK,CAAC,KAAyB;IACtC,MAAM,OAAO,GAAG,KAAK,EAAE,IAAI,EAAE,CAAC;IAC9B,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACvC,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO;QACL,QAAQ,EAAE,CAAC;gBACT,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE;aACzC,CAAC;KACH,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAwB;IACjD,OAAO;QACL,yCAAyC,IAAI,IAAI,+BAA+B,EAAE;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yB;YAChC,WAAW,EAAE,yGAAyG;YACtH,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uFAAuF,CAAC;aACtH;SACF,EACD,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACnE,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,CAAC,cAAc,CACnB,kBAAkB,EAClB;YACE,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,uGAAuG;YACpH,UAAU,EAAE;gBACV,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sFAAsF,CAAC;gBAClI,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;aACzF;SACF,EACD,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAC/F,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { WiroClient } from '../client.js';
3
+ export declare function registerAnswerAgentApproval(server: McpServer, client: WiroClient): void;
4
+ //# sourceMappingURL=answer-agent-approval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"answer-agent-approval.d.ts","sourceRoot":"","sources":["../../src/tools/answer-agent-approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAmV/C,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CA8DvF"}
@@ -0,0 +1,354 @@
1
+ import { z } from 'zod';
2
+ import { ApiResultError, asString, errorResult, hasErrorCode, isPlainObject, requireApiSuccess, } from '../utils/api.js';
3
+ import { APPROVAL_ANSWERS, APPROVAL_ANSWERS_EXPLAINED, APPROVAL_RIGHTS, actionListedIn, approvalAnswerResumeSchema, approvalHeadline, approvalSchema, formatApproval, inChannelNote, toApproval, toApprovalAnswerResume, waitingApproval, withActionListed, } from '../utils/agent-approvals.js';
4
+ import { listConnections } from '../utils/agent-connectors.js';
5
+ import { toAgentMessage } from '../utils/agent-message.js';
6
+ import { readAgentMessage, resolveAgentTarget } from '../utils/agent-targets.js';
7
+ import { COLUMN_TITLES, PERMISSION_COLUMNS, permissionValueSchema, readConnectorPermissions, VALUE_TITLES, } from '../utils/connector-permissions.js';
8
+ import { jsonSpan, quotedSpan } from '../utils/quoted-text.js';
9
+ import { nextActionSchema, strictInput } from './schemas.js';
10
+ // The connections whose waiting cards are read, at most, when the card's own message cannot be read here.
11
+ const MAX_WAITING_LOOKUPS = 12;
12
+ const MESSAGE_NOT_FOUND = /message not found/i;
13
+ const outputSchema = {
14
+ agent: z.string(),
15
+ messageguid: z.string(),
16
+ cardid: z.string(),
17
+ answer: z.enum(APPROVAL_ANSWERS),
18
+ outcome: z.enum(['preview', 'answered', 'not_waiting', 'refused'])
19
+ .describe('preview: the card is shown and nothing changed. answered: Wiro took the answer. not_waiting: the card was already answered or expired. refused: Wiro did not take the answer, for the reason in message.'),
20
+ approval: approvalSchema.optional().describe('The card, as it is now.'),
21
+ summary: z.string().optional().describe('Wiro\'s summary of the answer, such as "Allowed once."'),
22
+ resume: approvalAnswerResumeSchema.optional(),
23
+ permissions: z.object({
24
+ connector: z.string(),
25
+ tool: z.string(),
26
+ chat: permissionValueSchema,
27
+ autopilot: permissionValueSchema,
28
+ }).optional().describe('After always: the action\'s permissions in Chat and Autopilot now.'),
29
+ message: z.string(),
30
+ nextAction: nextActionSchema.optional(),
31
+ };
32
+ /** What an answer does, in words, for the card it would answer. */
33
+ function answerText(approval, answer) {
34
+ switch (answer) {
35
+ case 'allow':
36
+ return 'Allow runs this one call once: the agent goes on with it in a new turn of the chat the card is in, and '
37
+ + 'the approval holds for an hour.';
38
+ case 'always':
39
+ // An action the connector has not listed yet: Wiro allows the call once and saves no setting.
40
+ if (approval.actionListed === false) {
41
+ return `${approval.alwaysChanges} Only an agent admin can choose it: the person who deployed the agent, or a `
42
+ + 'team admin of its team.';
43
+ }
44
+ return `Always allow runs this call once now. ${approval.alwaysChanges} A column set to Block stays blocked. `
45
+ + 'Only an agent admin can choose it: the person who deployed the agent, or a team admin of its team.';
46
+ default:
47
+ return 'Decline turns down this one call. The agent gets no new turn, and if it asks for the same action again '
48
+ + 'later, a new card asks again.';
49
+ }
50
+ }
51
+ /**
52
+ * The card, read from its message. When that message cannot be read with this connection, such as the owner's own
53
+ * chat of a team agent with private chats, the card is looked for among the cards waiting for the agent's connectors,
54
+ * which an agent admin can read.
55
+ */
56
+ async function findCard(client, call, signal) {
57
+ try {
58
+ const row = await readAgentMessage(client, call.target, call.messageguid, undefined, signal);
59
+ const message = toAgentMessage(row, { agent: call.target.agent });
60
+ return message.approvals?.find(item => item.cardid === call.cardid) ?? 'no-card';
61
+ }
62
+ catch (error) {
63
+ if (signal.aborted)
64
+ throw error;
65
+ if (!(error instanceof ApiResultError) || !MESSAGE_NOT_FOUND.test(error.message))
66
+ throw error;
67
+ }
68
+ return (await findWaitingCard(client, call, signal)) ?? 'no-message';
69
+ }
70
+ async function findWaitingCard(client, call, signal) {
71
+ let connections;
72
+ try {
73
+ connections = await listConnections(client, call.agentGuid, signal);
74
+ }
75
+ catch (error) {
76
+ if (signal.aborted)
77
+ throw error;
78
+ return undefined;
79
+ }
80
+ for (const connection of connections.filter(item => item.status === 'connected').slice(0, MAX_WAITING_LOOKUPS)) {
81
+ try {
82
+ const read = await readConnectorPermissions(client, call.agentGuid, connection.connector, signal);
83
+ const item = read.waiting.find(entry => entry.cardid === call.cardid && entry.messageguid === call.messageguid);
84
+ if (item)
85
+ return waitingApproval(item, read.connector, read.view, call.target.agent);
86
+ }
87
+ catch (error) {
88
+ if (signal.aborted)
89
+ throw error;
90
+ // Only an agent admin reads them: a refusal is the same for every connector.
91
+ if (hasErrorCode(error, 96) || hasErrorCode(error, 97))
92
+ return undefined;
93
+ }
94
+ }
95
+ return undefined;
96
+ }
97
+ /**
98
+ * A waiting card whose message does not say whether the connector has listed its action, with that read from the
99
+ * connector's permissions: Always allow saves a setting only for an action the connector has listed, and allows any
100
+ * other call once. Only an agent admin reads them, as only one can choose Always allow; when they cannot be read,
101
+ * the card stays as it is.
102
+ */
103
+ async function withListing(client, call, approval, signal) {
104
+ // A card asked in a chat app offers no Always allow, so nothing more needs reading.
105
+ if (approval.status !== 'pending' || approval.actionListed !== undefined || approval.origin === 'channel')
106
+ return approval;
107
+ try {
108
+ const read = await readConnectorPermissions(client, call.agentGuid, approval.connector, signal);
109
+ return withActionListed(approval, actionListedIn(read.view, approval.tool));
110
+ }
111
+ catch (error) {
112
+ if (signal.aborted)
113
+ throw error;
114
+ return approval;
115
+ }
116
+ }
117
+ function base(call) {
118
+ return { agent: call.target.agent, messageguid: call.messageguid, cardid: call.cardid, answer: call.answer };
119
+ }
120
+ function confirmStep(call) {
121
+ return {
122
+ tool: 'answer_agent_approval',
123
+ arguments: { ...base(call), confirm: true },
124
+ reason: 'Only after the user answered: repeat this with their answer (allow, always or decline) and confirm: true. '
125
+ + 'Never answer on your own.',
126
+ };
127
+ }
128
+ function preview(call, approval) {
129
+ if (approval.status !== 'pending') {
130
+ const state = approval.status === 'expired'
131
+ ? `It expired${approval.error ? `: ${approval.error}` : ''}${/[.!?]$/.test(approval.error ?? '') ? '' : '.'}`
132
+ : `It was already answered: ${approval.status === 'declined' ? 'declined' : approval.status === 'always' ? 'always allowed' : 'allowed once'}${approval.answeredAt ? ` at ${approval.answeredAt}` : ''}.`;
133
+ const message = `${state} There is nothing to answer. If the user still wants the action, ask the agent again: a new call makes a new card.`;
134
+ return {
135
+ content: [{ type: 'text', text: [`## Approval: ${approvalHeadline(approval)}`, '', message, '', ...formatApproval(approval, 'The card')].join('\n') }],
136
+ structuredContent: { ...base(call), outcome: 'not_waiting', approval, message },
137
+ };
138
+ }
139
+ if (approval.origin === 'channel') {
140
+ // Only a reply in that chat answers it: there is no confirm step to offer.
141
+ const message = inChannelNote(approval);
142
+ return {
143
+ content: [{ type: 'text', text: [`## Approval: ${approvalHeadline(approval)}`, '', message, '', ...formatApproval(approval, 'The card')].join('\n') }],
144
+ structuredContent: { ...base(call), outcome: 'preview', approval, message },
145
+ };
146
+ }
147
+ const nextAction = confirmStep(call);
148
+ const message = `${quotedSpan(approval.action)} in ${approval.connectorTitle} waits for an answer`
149
+ + `${approval.expiresAt ? ` until ${approval.expiresAt}` : ''}, and nothing has changed yet. ${answerText(approval, call.answer)} `
150
+ + 'Show the user the request and ask whether to allow it once, always allow it or decline it; then answer with '
151
+ + 'their answer and confirm: true.';
152
+ return {
153
+ content: [{
154
+ type: 'text',
155
+ text: [
156
+ `## Approval: ${approvalHeadline(approval)}`,
157
+ '',
158
+ message,
159
+ '',
160
+ ...formatApproval(approval, 'The card'),
161
+ '',
162
+ `What each answer does: ${APPROVAL_ANSWERS_EXPLAINED} ${APPROVAL_RIGHTS}`,
163
+ '',
164
+ `**Next:** after the user's answer, \`answer_agent_approval\` with ${jsonSpan(nextAction.arguments)}, with answer set to their answer.`,
165
+ ].join('\n'),
166
+ }],
167
+ structuredContent: { ...base(call), outcome: 'preview', approval, message, nextAction },
168
+ };
169
+ }
170
+ function resumeText(resume, answer) {
171
+ if (answer === 'decline' || !resume) {
172
+ return answer === 'decline' ? 'The agent gets no new turn, and a later call of the same action asks again.' : '';
173
+ }
174
+ switch (resume.status) {
175
+ case 'queued':
176
+ return resume.messageId
177
+ ? `The agent goes on with it in a new turn (message \`${resume.messageId}\`${resume.session ? `, session "${resume.session}"` : ''}): get_agent_message reads its answer.`
178
+ : 'The agent goes on with it in a new turn of the chat the card is in, which this connection does not read.';
179
+ case 'not_running':
180
+ return `${resume.message ? `${resume.message} ` : ''}Start it with control_agent, then ask it again in the same chat within the hour.`;
181
+ default:
182
+ return `No new turn started${resume.message ? `: ${resume.message}` : '.'} The approval holds for an hour: once that is sorted out, ask the agent again in the same chat.`;
183
+ }
184
+ }
185
+ function toPermissions(value) {
186
+ if (!isPlainObject(value))
187
+ return undefined;
188
+ const connector = asString(value.connector);
189
+ const tool = asString(value.tool);
190
+ const chat = permissionValueSchema.safeParse(value.chat);
191
+ const autopilot = permissionValueSchema.safeParse(value.autopilot);
192
+ if (!connector || !tool || !chat.success || !autopilot.success)
193
+ return undefined;
194
+ return { connector, tool, chat: chat.data, autopilot: autopilot.data };
195
+ }
196
+ function permissionsText(action, values) {
197
+ return `${action} now reads ${PERMISSION_COLUMNS.map(column => `${COLUMN_TITLES[column]} ${VALUE_TITLES[values[column]]}`).join(', ')}.`;
198
+ }
199
+ // Why Wiro did not take an answer, and what to do: by its code.
200
+ const REFUSAL_NOTES = {
201
+ approval_expired: 'Nothing ran. If the user still wants the action, ask the agent again: a new call makes a new card.',
202
+ approval_done: 'Nothing changed: the card was already answered. get_agent_message with this message id shows what became of it.',
203
+ approval_blocked: 'Nothing ran: the action is blocked now. get_agent_connector_permissions shows the connector\'s '
204
+ + 'permissions, and set_agent_connector_permissions changes them.',
205
+ 97: `${APPROVAL_RIGHTS} Allow, this call once, still works for this connection.`,
206
+ 96: 'Only the agent\'s owner and its team can answer its approvals.',
207
+ };
208
+ /** A card asked in a Telegram, Slack or Discord chat: only a reply there answers it. */
209
+ const IN_CHANNEL = 'approval_in_channel';
210
+ function refused(call, error) {
211
+ const approval = toApproval(error.body.approval, { messageguid: call.messageguid, agent: call.target.agent });
212
+ const code = error.codes.map(String).find(item => item in REFUSAL_NOTES || item === IN_CHANNEL);
213
+ const note = code === IN_CHANNEL ? inChannelNote(approval) : code ? REFUSAL_NOTES[code] : undefined;
214
+ // Wiro's own sentence can already say it, as for 96: a note is added only when it says more.
215
+ const message = note && !error.message.includes(note) ? `${error.message} ${note}` : error.message;
216
+ const nextAction = code === '97' && approval?.status === 'pending'
217
+ ? {
218
+ tool: 'answer_agent_approval',
219
+ arguments: { ...base(call), answer: 'allow' },
220
+ reason: 'Allow it once instead, if the user agrees: this shows what that does and changes nothing.',
221
+ }
222
+ : undefined;
223
+ return {
224
+ content: [{
225
+ type: 'text',
226
+ text: [`## Error`, '', message, ...(approval ? ['', ...formatApproval(approval, 'The card')] : [])].join('\n'),
227
+ }],
228
+ structuredContent: {
229
+ ...base(call),
230
+ outcome: 'refused',
231
+ ...(approval ? { approval } : {}),
232
+ message,
233
+ ...(nextAction ? { nextAction } : {}),
234
+ },
235
+ isError: true,
236
+ };
237
+ }
238
+ async function answerCard(client, call, signal) {
239
+ let body;
240
+ try {
241
+ body = requireApiSuccess(await client.post('/UserAgent/Message/ApprovalCardAct', {
242
+ useragentguid: call.agentGuid,
243
+ messageguid: call.messageguid,
244
+ cardid: call.cardid,
245
+ action: call.answer,
246
+ }, signal), 'The approval could not be saved. Try again.');
247
+ }
248
+ catch (error) {
249
+ if (error instanceof ApiResultError)
250
+ return refused(call, error);
251
+ throw error;
252
+ }
253
+ const approval = toApproval(body.approval, { messageguid: call.messageguid, agent: call.target.agent });
254
+ const summary = asString(body.summary)?.replace(/\s+/g, ' ').trim();
255
+ const resume = toApprovalAnswerResume(body.resume);
256
+ const permissions = toPermissions(body.permissions);
257
+ const action = approval ? quotedSpan(approval.action) : 'The action';
258
+ const message = [
259
+ summary ?? (call.answer === 'decline' ? 'Declined.' : call.answer === 'always' ? 'Always allowed.' : 'Allowed once.'),
260
+ permissions ? permissionsText(action, permissions) : '',
261
+ resumeText(resume, call.answer),
262
+ ].filter(Boolean).join(' ');
263
+ const nextAction = resume?.status === 'queued' && resume.messageId
264
+ ? {
265
+ tool: 'get_agent_message',
266
+ arguments: { agent: call.target.agent, message_id: resume.messageId },
267
+ reason: 'The agent goes on with the approved action in this new turn. This waits for its answer and sends nothing.',
268
+ }
269
+ : undefined;
270
+ return {
271
+ content: [{
272
+ type: 'text',
273
+ text: [
274
+ `## Approval answered${approval ? `: ${approvalHeadline(approval)}` : ''}`,
275
+ '',
276
+ message,
277
+ ...(approval ? ['', ...formatApproval(approval, 'The card')] : []),
278
+ ...(nextAction ? ['', `**Next:** \`${nextAction.tool}\` with ${jsonSpan(nextAction.arguments)}. ${nextAction.reason}`] : []),
279
+ ].join('\n'),
280
+ }],
281
+ structuredContent: {
282
+ ...base(call),
283
+ outcome: 'answered',
284
+ ...(approval ? { approval } : {}),
285
+ ...(summary ? { summary } : {}),
286
+ ...(resume ? { resume } : {}),
287
+ ...(permissions ? { permissions } : {}),
288
+ message,
289
+ ...(nextAction ? { nextAction } : {}),
290
+ },
291
+ };
292
+ }
293
+ export function registerAnswerAgentApproval(server, client) {
294
+ server.registerTool('answer_agent_approval', {
295
+ title: 'Answer an agent\'s approval card',
296
+ description: 'Answer a deployed agent\'s approval card. When the agent calls a Connector action whose permission '
297
+ + 'is Ask (by default every Create and send and Change and delete action in chat), the action does not '
298
+ + 'run: Wiro shows a card with the exact request, and the agent waits for a person\'s answer. send_agent_message, '
299
+ + 'get_agent_message and get_agent_conversation list these cards under approvals, with messageguid and cardid, '
300
+ + 'and get_agent_connector_permissions lists the ones a scheduled task or the agent\'s own work asked for. '
301
+ + 'answer allow runs this one call once; always runs it and also lets the action run without asking from now '
302
+ + 'on, in the columns that ask for it now (a column set to Block stays blocked, and an action the connector has '
303
+ + 'not listed yet is allowed only this once), and needs an agent admin: the person who deployed the agent or a '
304
+ + 'team admin of its team; decline turns down this one call, and the next call asks again. Without confirm it '
305
+ + 'shows the card, its request and what the answer does, and changes nothing: show it to the user and ask. '
306
+ + 'With confirm: true, only after the user answered, it answers. After an approval the agent goes on in a new '
307
+ + 'turn of the chat the card is in, and get_agent_message with the returned message id reads its answer. A yes '
308
+ + 'or no the user types in the agent\'s chat answers a card too. A card waits 24 hours, and an approval is used '
309
+ + 'within an hour. Studio and the Workflow Agent never ask.',
310
+ inputSchema: strictInput({
311
+ agent: z.string().min(1).max(100).describe('The deployed agent\'s guid, from list_my_agents.'),
312
+ messageguid: z.string().min(1).max(100)
313
+ .describe('The message the card is on: messageguid of the approval, from send_agent_message, get_agent_message, get_agent_conversation or get_agent_connector_permissions.'),
314
+ cardid: z.string().regex(/^[a-z0-9]{12}$/, 'cardid is the card\'s 12-character id, lowercase letters and digits, from the approval.')
315
+ .describe('The card\'s id: cardid of the approval.'),
316
+ answer: z.enum(APPROVAL_ANSWERS)
317
+ .describe('allow (this call once), always (this call, and the action runs without asking from now on; an action the connector has not listed yet is allowed only this once; agent admins only) or decline (turn down this call).'),
318
+ confirm: z.boolean().default(false)
319
+ .describe('false (default) shows the card and what the answer does, and changes nothing. true answers it: set it only after the user answered.'),
320
+ }),
321
+ outputSchema,
322
+ annotations: {
323
+ readOnlyHint: false,
324
+ destructiveHint: true,
325
+ // An answered card is not answered again: a repeat changes nothing.
326
+ idempotentHint: true,
327
+ openWorldHint: true,
328
+ },
329
+ }, async ({ agent, messageguid, cardid, answer, confirm }, extra) => {
330
+ try {
331
+ const target = resolveAgentTarget(agent);
332
+ if (target.kind !== 'deployed' || !target.agentGuid) {
333
+ throw new Error('Studio and the Workflow Agent never ask for approval: only a deployed agent\'s Connector actions do. Pass the agent\'s guid from list_my_agents.');
334
+ }
335
+ const call = { target, agentGuid: target.agentGuid, messageguid: messageguid.trim(), cardid, answer };
336
+ if (confirm)
337
+ return await answerCard(client, call, extra.signal);
338
+ const found = await findCard(client, call, extra.signal);
339
+ if (found === 'no-card') {
340
+ throw new Error(`Message ${call.messageguid} has no approval card ${cardid}. get_agent_message with this message id lists its cards.`);
341
+ }
342
+ if (found === 'no-message') {
343
+ throw new Error(`The message ${call.messageguid} cannot be read with this connection, and no card ${cardid} waits for `
344
+ + 'the agent\'s connectors that it can read. Check the ids with get_agent_conversation, or with '
345
+ + 'get_agent_connector_permissions, which an agent admin reads. Nothing was answered.');
346
+ }
347
+ return preview(call, await withListing(client, call, found, extra.signal));
348
+ }
349
+ catch (error) {
350
+ return errorResult(error);
351
+ }
352
+ });
353
+ }
354
+ //# sourceMappingURL=answer-agent-approval.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"answer-agent-approval.js","sourceRoot":"","sources":["../../src/tools/answer-agent-approval.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,GAElB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,eAAe,EACf,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,eAAe,EACf,gBAAgB,GAIjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAoB,MAAM,2BAA2B,CAAC;AACnG,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,GAEb,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE7D,0GAA0G;AAC1G,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAE/C,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WA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AAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apply-agent-skills.d.ts","sourceRoot":"","sources":["../../src/tools/apply-agent-skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAqJ/C,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CA2UpF"}
1
+ {"version":3,"file":"apply-agent-skills.d.ts","sourceRoot":"","sources":["../../src/tools/apply-agent-skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA0L/C,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAkWpF"}