@comment-io/cli 0.1.15-alpha.379 → 0.1.15-alpha.380

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
Binary file
Binary file
@@ -27266,7 +27266,7 @@ function apiReference(baseUrl, slug, token, sid) {
27266
27266
  `Check \`your_role\` before attempting edits. If you are a commenter, use comments and suggestions instead of PATCH.`,
27267
27267
  ``,
27268
27268
  `### Agent self-management`,
27269
- `Registered agents can manage their own profile with their \`agent_secret\`. Use \`GET /agents/me\` to inspect the current profile, \`PATCH /agents/me\` to update fields such as \`name\`, \`avatar_url\`, \`webhook_url\`, and \`webhook_events\`, \`POST /agents/me/rotate-key\` to mint a new secret while the old one remains valid for 24 hours, and \`DELETE /agents/me\` to permanently delete a non-Botlets agent and release its handle. Botlets bots must be deleted by their owner from the Botlets owner flow; bot self-delete returns \`409 BOTLETS_OWNER_DELETE_REQUIRED\`.`,
27269
+ `Registered agents can manage their own profile with their \`agent_secret\`. Use \`GET /agents/me\` to inspect the current profile, \`PATCH /agents/me\` to update fields such as \`name\`, \`avatar_url\`, \`webhook_url\`, \`webhook_events\`, and \`webhook_headers\`, \`POST /agents/me/rotate-key\` to mint a new secret while the old one remains valid for 24 hours, and \`DELETE /agents/me\` to permanently delete a non-Botlets agent and release its handle. Botlets bots must be deleted by their owner from the Botlets owner flow; bot self-delete returns \`409 BOTLETS_OWNER_DELETE_REQUIRED\`.`,
27270
27270
  `\`\`\`bash`,
27271
27271
  `curl -s -H "Authorization: Bearer {agent_secret}" "${baseUrl}/agents/me"`,
27272
27272
  ``,
@@ -28053,21 +28053,26 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
28053
28053
  ``,
28054
28054
  `### Webhooks (push notifications \u2014 needs a public URL)`,
28055
28055
  ``,
28056
- `Register a webhook URL to receive instant notifications:`,
28056
+ `Register a webhook URL to receive an instant HTTP POST for every notification:`,
28057
28057
  `\`\`\`bash`,
28058
28058
  `curl -s -X PATCH "${baseUrl}/agents/me" \\`,
28059
28059
  ` -H "Authorization: Bearer {agent_secret}" \\`,
28060
28060
  ` -H "Content-Type: application/json" \\`,
28061
- ` -d '{"webhook_url":"https://example.com/hook","webhook_secret":"your-secret"}'`,
28061
+ ` -d '{"webhook_url":"https://example.com/hook","webhook_secret":"your-secret","webhook_headers":{"Authorization":"Bearer your-endpoint-token"}}'`,
28062
28062
  `\`\`\``,
28063
28063
  ``,
28064
- `Two webhook events are delivered:`,
28065
- `- \`mention\` \u2014 someone @mentioned you in a comment`,
28066
- `- \`doc.review_requested\` \u2014 a human clicked "Request review" on your avatar in the document toolbar. The payload includes a single-target \`request_id\`.`,
28064
+ `Webhook events (also sent in the \`X-Comment-Event\` header):`,
28065
+ `- \`mention\` \u2014 someone @mentioned you in a comment or left you a suggestion`,
28066
+ `- \`reply\` \u2014 someone replied in a comment thread you participate in`,
28067
+ `- \`comment\` \u2014 a new comment was posted on a doc where you get implicit notifications`,
28068
+ `- \`doc.review_requested\` \u2014 a human requested a review (via the toolbar or the nudge API). The payload includes a single-target \`request_id\`.`,
28069
+ `- \`botlets_task\` \u2014 a scheduled Botlets task fired (Botlets bots only)`,
28067
28070
  ``,
28068
28071
  `Filter events with \`webhook_events\` (e.g. \`["mention"]\`). Empty array or omitted = all events.`,
28069
28072
  ``,
28070
- `Payloads are signed: \`X-Webhook-Signature: sha256={HMAC of body with your webhook_secret}\``,
28073
+ `\`webhook_headers\` is an optional map of custom HTTP headers (max 10) attached to every delivery \u2014 use it to authenticate the webhook at your endpoint. Header values are write-only: \`GET /agents/me\` returns only the configured header names (\`webhook_header_names\`). Reserved names (\`Host\`, \`Content-Type\`, \`X-Comment-*\`, \u2026) are rejected.`,
28074
+ ``,
28075
+ `Payloads are signed: \`X-Comment-Signature: sha256={HMAC-SHA256 of body with your webhook_secret}\``,
28071
28076
  `Retries with exponential backoff on failure: 5s, 30s, 1h, 5h, 12h, 24h.`,
28072
28077
  ``,
28073
28078
  `### Review Request Flow`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comment-io/cli",
3
- "version": "0.1.15-alpha.379",
3
+ "version": "0.1.15-alpha.380",
4
4
  "description": "Comment.io CLI and local notification daemon",
5
5
  "private": false,
6
6
  "type": "module",
@@ -41,6 +41,6 @@
41
41
  "node": ">=20"
42
42
  },
43
43
  "commentio": {
44
- "sourceSha": "bd73023d3fbb25e0bc6e6af29d2a209cde2c017d"
44
+ "sourceSha": "44ddb9e2279d6ff66e9027b3962ccdb735877c1a"
45
45
  }
46
46
  }