@comment-io/cli 0.1.7-alpha.48 → 0.1.7-alpha.51

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
@@ -27312,6 +27312,12 @@ function apiReference(baseUrl, slug, token, sid) {
27312
27312
  `\`\`\``,
27313
27313
  `Use \`after_block\` or \`before_block\`; literal \`null\` means document beginning/end. Send only non-null \`content_blocks[].id\` values (\`bid_...\`) with \`base_revision\`; do not echo a null \`id\` from a block as a block target. Stale durable block targets can rebase when each edit has exactly one \`after_block\` xor \`before_block\`; paired/mixed targets still require the current revision. Deprecated \`content_blocks[].block_id\` (\`blk_...\`) is accepted only as an exact current-revision target and returns \`Deprecation: block_id\`. \`?dryRun=true\` validates and returns the resulting \`markdown\` without committing.`,
27314
27314
  ``,
27315
+ `#### Editing tables`,
27316
+ `- Change a cell with an \`old_string\`/\`new_string\` search where \`old_string\` is the cell's exact text \u2014 one cell, no newlines. Tables canonicalize column padding on every write, so match the cell content (\`in progress\`), not the padded borders (\`| in progress |\`).`,
27317
+ `- A cell value that repeats across rows (e.g. a status used in several rows) makes a plain \`old_string\` ambiguous and returns \`EDIT_AMBIGUOUS\`. To target one specific cell, retry with \`at\` set to that occurrence's offset from the error's \`snippets[].offset\`. \`at\` requires \`base_revision\`, so include it: \`{"edits": [{"at": OFFSET, "old_string": "in progress", "new_string": "done"}], "base_revision": REVISION}\`. \`at\` resolves the edit positionally, so duplicate values elsewhere no longer matter.`,
27318
+ `- Do not put a raw \`|\` in \`new_string\` \u2014 it adds a column and the edit is rejected (422, document unchanged). For a literal pipe inside a cell, escape it as \`\\|\`.`,
27319
+ `- Delete a whole table by matching its full markdown (every row, including the \`---\` separator line) with \`new_string: ""\`. Send it as its own edit \u2014 bundling a table delete with other edits in one batch may fail with a structural rejection. The document also needs other content besides the table \u2014 deleting the only block in a document is not supported and returns 422.`,
27320
+ ``,
27315
27321
  `#### Batch edits`,
27316
27322
  `Send multiple edits in one request. Current-base batches are applied sequentially \u2014 later edits see the result of earlier ones:`,
27317
27323
  `\`\`\`bash`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comment-io/cli",
3
- "version": "0.1.7-alpha.48",
3
+ "version": "0.1.7-alpha.51",
4
4
  "description": "Comment.io CLI and local notification daemon",
5
5
  "private": false,
6
6
  "type": "module",