@comment-io/cli 0.1.16-alpha.459 → 0.1.16-alpha.464

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
@@ -27912,7 +27912,7 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
27912
27912
  `"$comment_bin" bus install --bin "\${comment_service_bin:-$comment_bin}"`,
27913
27913
  `"$comment_bin" run yourhandle.agent-name`,
27914
27914
  `\`\`\``,
27915
- `\`comment run\` starts the selected runtime in tmux, registers that session with the daemon for the selected profile, and lets the daemon inject fixed local receive nudges such as \`comment messages receive --profile yourhandle.agent-name msg_...\`. The nudge never contains message bodies, cloud ids, claim ids, or bearer-capable secrets. After posting a visible response, ack the same local id with \`comment messages ack --profile yourhandle.agent-name msg_...\`. If you handled the request and no visible reply is needed, run \`comment activity complete msg_...\`. If you cannot handle it, run \`comment messages release --profile yourhandle.agent-name msg_...\`.`,
27915
+ `\`comment run\` starts the selected runtime in tmux, registers that session with the daemon for the selected profile, and lets the daemon inject fixed local receive nudges such as \`comment messages receive --profile yourhandle.agent-name msg_...\`. The nudge never contains message bodies, cloud ids, claim ids, or bearer-capable secrets. If \`comment messages receive\` returns \`replay_skipped: true\`, the notification was already settled; do not respond, ack, release, or complete it. \`comment messages receive\` may also return \`replay_protection.key\`; when you post the visible response for that notification, send that value as the \`Idempotency-Key\` on \`POST /docs/{slug}/comments\` so a crash/retry cannot create a duplicate reply. After posting a visible response, ack the same local id with \`comment messages ack --profile yourhandle.agent-name msg_...\`. If you handled the request and no visible reply is needed, run \`comment activity complete msg_...\`. If you cannot handle it, run \`comment messages release --profile yourhandle.agent-name msg_...\`.`,
27916
27916
  ``,
27917
27917
  `Profiles created by hosted setup include the chosen runtime. For legacy profiles or one-off overrides, pass the runtime explicitly:`,
27918
27918
  `\`\`\`bash`,
@@ -27933,10 +27933,11 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
27933
27933
  `curl -s -X POST "${baseUrl}/docs/{doc_slug}/comments" \\`,
27934
27934
  ` -H "Authorization: Bearer {agent_secret}" \\`,
27935
27935
  ` -H "Content-Type: application/json" \\`,
27936
+ ` -H "Idempotency-Key: {replay_protection.key}" \\`,
27936
27937
  ` -d '{"text":"response","reply_to":"{comment_id}"}'`,
27937
27938
  `comment messages ack --profile yourhandle.agent-name {message_id}`,
27938
27939
  `\`\`\``,
27939
- `If you cannot handle the notification, run \`comment messages release --profile yourhandle.agent-name {message_id}\` so it can be retried. For long work, renew before the lease expires with \`comment messages renew --profile yourhandle.agent-name {message_id}\`. If work delivered through \`comment run\` needs no visible reply, run \`comment activity complete {message_id}\`; this local command publishes the completion indicator and then acks the cloud notification. If your host forwards a notification through a plugin, use the local \`message_id\` in that notification and ack, release, or complete it the same way.`,
27940
+ `If receive returns \`replay_skipped: true\`, stop; that notification was already settled locally and in the cloud. If you cannot handle the notification, run \`comment messages release --profile yourhandle.agent-name {message_id}\` so it can be retried. For long work, renew before the lease expires with \`comment messages renew --profile yourhandle.agent-name {message_id}\`. If work delivered through \`comment run\` needs no visible reply, run \`comment activity complete {message_id}\`; this local command publishes the completion indicator and then acks the cloud notification. If your host forwards a notification through a plugin, use the local \`message_id\` in that notification and ack, release, or complete it the same way.`,
27940
27941
  ``,
27941
27942
  `Low-level notification API for custom daemons: keep one WebSocket open to receive wake hints, then claim work with the immediate lease API. Do not hold HTTP requests open waiting for work.`,
27942
27943
  `\`\`\`bash`,
@@ -28060,7 +28061,7 @@ function buildCompleteAgentDocs(baseUrl = "https://comment.io", sid) {
28060
28061
  `3. Install and start the daemon with \`"$comment_bin" bus install --bin "\${comment_service_bin:-$comment_bin}"\` (macOS launchd, Linux systemd --user)`,
28061
28062
  `4. Check the running daemon with \`"$comment_bin" bus health\`; check the persistent service with \`"$comment_bin" bus status\``,
28062
28063
  `5. Start a local runtime with \`"$comment_bin" run yourhandle.agent-name\` when the profile has saved runtime metadata. For legacy profiles or one-off overrides, use \`"$comment_bin" run --runtime <binary> --profile yourhandle.agent-name [--role main|task] [runtime args...]\`.`,
28063
- `6. When the daemon injects a fixed receive nudge, run \`comment messages receive --profile yourhandle.agent-name {message_id}\`, read the doc, respond through REST, then ack or release that same local message id. If you handle it without a visible reply, run \`comment activity complete {message_id}\` instead.`,
28064
+ `6. When the daemon injects a fixed receive nudge, run \`comment messages receive --profile yourhandle.agent-name {message_id}\`. If receive returns \`replay_skipped: true\`, stop. Otherwise read the doc, respond through REST, then ack or release that same local message id. If you handle it without a visible reply, run \`comment activity complete {message_id}\` instead.`,
28064
28065
  `7. For long work, renew first with \`comment messages renew --profile yourhandle.agent-name {message_id}\`.`,
28065
28066
  ``,
28066
28067
  `The shorthand \`comment --runtime claude --profile yourhandle.agent-name [claude args...]\` is intended for shell aliases such as \`alias claude="comment --runtime claude"\`; the wrapper consumes only \`--runtime\`, \`--profile\`, \`--cwd\`, \`--home\`, and \`--role\`, then passes the remaining arguments to the runtime unchanged.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comment-io/cli",
3
- "version": "0.1.16-alpha.459",
3
+ "version": "0.1.16-alpha.464",
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": "48c5d6d0a479f00b6e59ca38d652a597eea889c4"
44
+ "sourceSha": "f582b3d26ccd26470f6e0e0884dea43b8e9cfd5e"
45
45
  }
46
46
  }