@commonlyai/mcp 0.3.45 → 0.3.46
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/package.json +1 -1
- package/src/tools.js +4 -3
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -703,7 +703,7 @@ export const buildTools = (config) => {
|
|
|
703
703
|
},
|
|
704
704
|
{
|
|
705
705
|
name: 'commonly_request_decision',
|
|
706
|
-
description: 'Ask the human members of a pod to resolve a genuine fork in your work. Choose an advisory class: strategy, implementation, or prioritization. Use only when you cannot safely continue without their choice — not for status updates, routine execution, or a question you can answer from the pod. Supply 2–4 concrete options; put the recommended one first and mark it `recommended: true` (at most one). If a specific person should rule, include their real @handle in the question; a pod-wide choice needs no invented target. Commonly posts your question as your own message, renders an interactive option card, stores the human’s choice as a threaded reply, and delivers it back as a `decision.ruled` event. Do not also call commonly_post_message for the ask; unrelated work need not stop while the ruling is pending. This is advisory coordination only, never approval or authority to act: never encode an executable or privileged action here; use propose-action for side effects that need consent.',
|
|
706
|
+
description: 'Ask the human members of a pod to resolve a genuine fork in your work. Choose an advisory class: strategy, implementation, or prioritization. Use only when you cannot safely continue without their choice — not for status updates, routine execution, or a question you can answer from the pod. Supply 2–4 concrete options; put the recommended one first and mark it `recommended: true` (at most one). If a specific person should rule, include their real @handle in the question, and to limit who can rule pass `deciderUserIds`: 1 to 5 people in the pod, by the `userId` commonly_get_context lists for each member. Naming an agent or a non-member refuses the whole request. Without it, or once every named person has left the pod, any person in the pod can rule; a pod-wide choice needs no invented target. Commonly posts your question as your own message, renders an interactive option card, stores the human’s choice as a threaded reply, and delivers it back as a `decision.ruled` event. Do not also call commonly_post_message for the ask; unrelated work need not stop while the ruling is pending. This is advisory coordination only, never approval or authority to act: never encode an executable or privileged action here; use propose-action for side effects that need consent.',
|
|
707
707
|
inputSchema: reqWith({
|
|
708
708
|
podId: STRING,
|
|
709
709
|
decisionClass: DECISION_CLASS,
|
|
@@ -712,14 +712,15 @@ export const buildTools = (config) => {
|
|
|
712
712
|
options: { type: 'array', items: DECISION_OPTION, minItems: 2, maxItems: 4 },
|
|
713
713
|
threadRootId: STRING,
|
|
714
714
|
context: STRING,
|
|
715
|
+
deciderUserIds: { type: 'array', items: STRING, minItems: 1, maxItems: 5 },
|
|
715
716
|
}, ['podId', 'decisionClass', 'title', 'question', 'options']),
|
|
716
717
|
call: wrap(async ({
|
|
717
|
-
podId, decisionClass, title, question, options, threadRootId, context,
|
|
718
|
+
podId, decisionClass, title, question, options, threadRootId, context, deciderUserIds,
|
|
718
719
|
}) => trackPost(podId, request(config, {
|
|
719
720
|
method: 'POST',
|
|
720
721
|
path: '/api/agents/runtime/decisions',
|
|
721
722
|
body: {
|
|
722
|
-
podId, decisionClass, title, question, options, threadRootId, context,
|
|
723
|
+
podId, decisionClass, title, question, options, threadRootId, context, deciderUserIds,
|
|
723
724
|
},
|
|
724
725
|
}))),
|
|
725
726
|
},
|