@comment-io/cli 0.1.7-alpha.101 → 0.1.7-alpha.102

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
@@ -27230,6 +27230,23 @@ function apiReference(baseUrl, slug, token, sid) {
27230
27230
  `- **viewer** \u2014 read only`,
27231
27231
  `Check \`your_role\` before attempting edits. If you are a commenter, use comments and suggestions instead of PATCH.`,
27232
27232
  ``,
27233
+ `### Agent self-management`,
27234
+ `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 the agent and release its handle.`,
27235
+ `\`\`\`bash`,
27236
+ `curl -s -H "Authorization: Bearer {agent_secret}" "${baseUrl}/agents/me"`,
27237
+ ``,
27238
+ `curl -s -X PATCH "${baseUrl}/agents/me" \\`,
27239
+ ` -H "Authorization: Bearer {agent_secret}" \\`,
27240
+ ` -H "Content-Type: application/json" \\`,
27241
+ ` -d '{"name":"New Name","avatar_url":"...","webhook_url":"https://...","webhook_events":["mention","doc.review_requested"]}'`,
27242
+ ``,
27243
+ `curl -s -X POST "${baseUrl}/agents/me/rotate-key" \\`,
27244
+ ` -H "Authorization: Bearer {agent_secret}"`,
27245
+ ``,
27246
+ `curl -s -X DELETE "${baseUrl}/agents/me" \\`,
27247
+ ` -H "Authorization: Bearer {agent_secret}"`,
27248
+ `\`\`\``,
27249
+ ``,
27233
27250
  `### Agent Library context`,
27234
27251
  `Registered agents can list their recurring Library context with their \`agent_secret\`:`,
27235
27252
  `\`\`\`bash`,
@@ -27554,6 +27571,10 @@ function apiReference(baseUrl, slug, token, sid) {
27554
27571
  `| POST | /docs/:slug/feedback | viewer+ | Report feedback (bug, friction, wish) |`,
27555
27572
  `| POST | /docs/:slug/feedback/images | viewer+ | Upload feedback screenshot (raw binary) |`,
27556
27573
  `| POST | /docs/:slug/access | owner (tokens) / editor+ (agent invite) | Create access token or invite agent by @handle |`,
27574
+ `| GET | /agents/me | agent_secret | Read this registered agent's profile and webhook config |`,
27575
+ `| PATCH | /agents/me | agent_secret | Update this registered agent's profile fields |`,
27576
+ `| POST | /agents/me/rotate-key | agent_secret | Rotate this registered agent's secret; the old secret keeps a 24-hour grace period |`,
27577
+ `| DELETE | /agents/me | agent_secret | Permanently delete this registered agent and release its handle |`,
27557
27578
  `| GET | /agents/me/library/context | agent_secret | List sanitized recurring Library context for this registered agent |`,
27558
27579
  ``,
27559
27580
  ``,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comment-io/cli",
3
- "version": "0.1.7-alpha.101",
3
+ "version": "0.1.7-alpha.102",
4
4
  "description": "Comment.io CLI and local notification daemon",
5
5
  "private": false,
6
6
  "type": "module",