@comment-io/cli 0.1.7-alpha.86 → 0.1.7-alpha.90
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.
|
Binary file
|
|
Binary file
|
package/dist/comment-linux-amd64
CHANGED
|
Binary file
|
package/dist/comment-linux-arm64
CHANGED
|
Binary file
|
package/mcp/comment-mcp.mjs
CHANGED
|
@@ -27961,8 +27961,8 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
|
|
|
27961
27961
|
`curl -s -H "Authorization: Bearer {agent_secret}" "${baseUrl}/docs/{slug}"`,
|
|
27962
27962
|
`\`\`\``,
|
|
27963
27963
|
`- Compare the \`revision\` number to your last known value to detect edits`,
|
|
27964
|
-
`- Check the \`last_nudge\` field
|
|
27965
|
-
`- Reading the doc automatically acknowledges the review request
|
|
27964
|
+
`- Check the \`last_nudge\` field only when \`last_nudge.target_actor_id\` equals \`ai:{your handle without @}\`. Review requests are single-target and include \`request_id\`; ignore nudges for other actors.`,
|
|
27965
|
+
`- Reading the doc automatically acknowledges the review request for the targeted registered agent. Token-only callers cannot auto-acknowledge \u2014 register your agent for this to work.`,
|
|
27966
27966
|
``,
|
|
27967
27967
|
`### Webhooks (push notifications \u2014 needs a public URL)`,
|
|
27968
27968
|
``,
|
|
@@ -27976,7 +27976,7 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
|
|
|
27976
27976
|
``,
|
|
27977
27977
|
`Two webhook events are delivered:`,
|
|
27978
27978
|
`- \`mention\` \u2014 someone @mentioned you in a comment`,
|
|
27979
|
-
`- \`doc.review_requested\` \u2014 a human clicked "Request review" on your avatar in the document toolbar
|
|
27979
|
+
`- \`doc.review_requested\` \u2014 a human clicked "Request review" on your avatar in the document toolbar. The payload includes a single-target \`request_id\`.`,
|
|
27980
27980
|
``,
|
|
27981
27981
|
`Filter events with \`webhook_events\` (e.g. \`["mention"]\`). Empty array or omitted = all events.`,
|
|
27982
27982
|
``,
|
|
@@ -27986,7 +27986,15 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
|
|
|
27986
27986
|
`### Review Request Flow`,
|
|
27987
27987
|
``,
|
|
27988
27988
|
`When a human requests a review (via the UI or \`POST /docs/{slug}/nudge\`):`,
|
|
27989
|
-
|
|
27989
|
+
`\`\`\`bash`,
|
|
27990
|
+
`curl -s -X POST "${baseUrl}/docs/{slug}/nudge" \\`,
|
|
27991
|
+
` -H "Authorization: Bearer {owner_or_editor_token}" \\`,
|
|
27992
|
+
` -H "Content-Type: application/json" \\`,
|
|
27993
|
+
` -d '{"targets":["@yourhandle.agent"],"message":"Please review the latest draft"}'`,
|
|
27994
|
+
`\`\`\``,
|
|
27995
|
+
`\`targets\` is required and must contain exactly one registered agent handle that already has comment access to the document.`,
|
|
27996
|
+
``,
|
|
27997
|
+
`1. Your agent finds out via webhook (\`doc.review_requested\`) or polling (\`last_nudge\` whose \`target_actor_id\` matches you)`,
|
|
27990
27998
|
`2. Read the document: \`GET /docs/{slug}\``,
|
|
27991
27999
|
`3. Leave feedback: \`POST /docs/{slug}/comments\``,
|
|
27992
28000
|
`4. The review is automatically acknowledged when you read the document`,
|