@superdoc/cli-darwin-x64 0.23.0-next.100 → 0.24.0
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.
- package/bin/assets/blank.docx +0 -0
- package/bin/superdoc +0 -0
- package/bin/tools/catalog.json +38 -1
- package/bin/tools/tools.anthropic.json +38 -1
- package/bin/tools/tools.generic.json +38 -1
- package/bin/tools/tools.openai.json +38 -1
- package/bin/tools/tools.vercel.json +38 -1
- package/package.json +12 -1
package/bin/assets/blank.docx
CHANGED
|
Binary file
|
package/bin/superdoc
CHANGED
|
Binary file
|
package/bin/tools/catalog.json
CHANGED
|
@@ -4725,7 +4725,7 @@
|
|
|
4725
4725
|
},
|
|
4726
4726
|
{
|
|
4727
4727
|
"toolName": "superdoc_comment",
|
|
4728
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment;
|
|
4728
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; \"action\", \"text\", and \"target\" are required, while commentId (the v1 compatibility alias for externalId), externalId, author fields, and metadata are optional correlation fields.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
4729
4729
|
"inputSchema": {
|
|
4730
4730
|
"type": "object",
|
|
4731
4731
|
"properties": {
|
|
@@ -4850,6 +4850,43 @@
|
|
|
4850
4850
|
"type": "string",
|
|
4851
4851
|
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
4852
4852
|
},
|
|
4853
|
+
"commentId": {
|
|
4854
|
+
"type": "string",
|
|
4855
|
+
"minLength": 1,
|
|
4856
|
+
"maxLength": 1024,
|
|
4857
|
+
"description": "Compatibility alias for externalId, matching the caller-supplied commentId accepted by the v1 editor. V2 still generates a separate Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4858
|
+
},
|
|
4859
|
+
"externalId": {
|
|
4860
|
+
"type": "string",
|
|
4861
|
+
"minLength": 1,
|
|
4862
|
+
"maxLength": 1024,
|
|
4863
|
+
"description": "Caller-owned durable, document-unique integration id. Kept separate from the generated Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4864
|
+
},
|
|
4865
|
+
"author": {
|
|
4866
|
+
"type": "string",
|
|
4867
|
+
"minLength": 1,
|
|
4868
|
+
"description": "Author display name. Defaults to the configured session author. Only for action 'create'. Omit for other actions."
|
|
4869
|
+
},
|
|
4870
|
+
"authorId": {
|
|
4871
|
+
"type": "string",
|
|
4872
|
+
"minLength": 1,
|
|
4873
|
+
"description": "Stable caller-owned author id. Only for action 'create'. Omit for other actions."
|
|
4874
|
+
},
|
|
4875
|
+
"authorEmail": {
|
|
4876
|
+
"type": "string",
|
|
4877
|
+
"minLength": 1,
|
|
4878
|
+
"description": "Caller-owned author email. Only for action 'create'. Omit for other actions."
|
|
4879
|
+
},
|
|
4880
|
+
"authorImage": {
|
|
4881
|
+
"type": "string",
|
|
4882
|
+
"minLength": 1,
|
|
4883
|
+
"description": "Caller-owned author image URL. Only for action 'create'. Omit for other actions."
|
|
4884
|
+
},
|
|
4885
|
+
"metadata": {
|
|
4886
|
+
"type": "object",
|
|
4887
|
+
"additionalProperties": true,
|
|
4888
|
+
"description": "Caller-owned JSON metadata persisted with the comment. Only for action 'create'. Omit for other actions."
|
|
4889
|
+
},
|
|
4853
4890
|
"id": {
|
|
4854
4891
|
"type": "string",
|
|
4855
4892
|
"description": "Required for actions 'delete', 'get'."
|
|
@@ -4440,7 +4440,7 @@
|
|
|
4440
4440
|
},
|
|
4441
4441
|
{
|
|
4442
4442
|
"name": "superdoc_comment",
|
|
4443
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment;
|
|
4443
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; \"action\", \"text\", and \"target\" are required, while commentId (the v1 compatibility alias for externalId), externalId, author fields, and metadata are optional correlation fields.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
4444
4444
|
"input_schema": {
|
|
4445
4445
|
"type": "object",
|
|
4446
4446
|
"properties": {
|
|
@@ -4565,6 +4565,43 @@
|
|
|
4565
4565
|
"type": "string",
|
|
4566
4566
|
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
4567
4567
|
},
|
|
4568
|
+
"commentId": {
|
|
4569
|
+
"type": "string",
|
|
4570
|
+
"minLength": 1,
|
|
4571
|
+
"maxLength": 1024,
|
|
4572
|
+
"description": "Compatibility alias for externalId, matching the caller-supplied commentId accepted by the v1 editor. V2 still generates a separate Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4573
|
+
},
|
|
4574
|
+
"externalId": {
|
|
4575
|
+
"type": "string",
|
|
4576
|
+
"minLength": 1,
|
|
4577
|
+
"maxLength": 1024,
|
|
4578
|
+
"description": "Caller-owned durable, document-unique integration id. Kept separate from the generated Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4579
|
+
},
|
|
4580
|
+
"author": {
|
|
4581
|
+
"type": "string",
|
|
4582
|
+
"minLength": 1,
|
|
4583
|
+
"description": "Author display name. Defaults to the configured session author. Only for action 'create'. Omit for other actions."
|
|
4584
|
+
},
|
|
4585
|
+
"authorId": {
|
|
4586
|
+
"type": "string",
|
|
4587
|
+
"minLength": 1,
|
|
4588
|
+
"description": "Stable caller-owned author id. Only for action 'create'. Omit for other actions."
|
|
4589
|
+
},
|
|
4590
|
+
"authorEmail": {
|
|
4591
|
+
"type": "string",
|
|
4592
|
+
"minLength": 1,
|
|
4593
|
+
"description": "Caller-owned author email. Only for action 'create'. Omit for other actions."
|
|
4594
|
+
},
|
|
4595
|
+
"authorImage": {
|
|
4596
|
+
"type": "string",
|
|
4597
|
+
"minLength": 1,
|
|
4598
|
+
"description": "Caller-owned author image URL. Only for action 'create'. Omit for other actions."
|
|
4599
|
+
},
|
|
4600
|
+
"metadata": {
|
|
4601
|
+
"type": "object",
|
|
4602
|
+
"additionalProperties": true,
|
|
4603
|
+
"description": "Caller-owned JSON metadata persisted with the comment. Only for action 'create'. Omit for other actions."
|
|
4604
|
+
},
|
|
4568
4605
|
"id": {
|
|
4569
4606
|
"type": "string",
|
|
4570
4607
|
"description": "Required for actions 'delete', 'get'."
|
|
@@ -4550,7 +4550,7 @@
|
|
|
4550
4550
|
},
|
|
4551
4551
|
{
|
|
4552
4552
|
"name": "superdoc_comment",
|
|
4553
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment;
|
|
4553
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; \"action\", \"text\", and \"target\" are required, while commentId (the v1 compatibility alias for externalId), externalId, author fields, and metadata are optional correlation fields.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
4554
4554
|
"parameters": {
|
|
4555
4555
|
"type": "object",
|
|
4556
4556
|
"properties": {
|
|
@@ -4675,6 +4675,43 @@
|
|
|
4675
4675
|
"type": "string",
|
|
4676
4676
|
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
4677
4677
|
},
|
|
4678
|
+
"commentId": {
|
|
4679
|
+
"type": "string",
|
|
4680
|
+
"minLength": 1,
|
|
4681
|
+
"maxLength": 1024,
|
|
4682
|
+
"description": "Compatibility alias for externalId, matching the caller-supplied commentId accepted by the v1 editor. V2 still generates a separate Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4683
|
+
},
|
|
4684
|
+
"externalId": {
|
|
4685
|
+
"type": "string",
|
|
4686
|
+
"minLength": 1,
|
|
4687
|
+
"maxLength": 1024,
|
|
4688
|
+
"description": "Caller-owned durable, document-unique integration id. Kept separate from the generated Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4689
|
+
},
|
|
4690
|
+
"author": {
|
|
4691
|
+
"type": "string",
|
|
4692
|
+
"minLength": 1,
|
|
4693
|
+
"description": "Author display name. Defaults to the configured session author. Only for action 'create'. Omit for other actions."
|
|
4694
|
+
},
|
|
4695
|
+
"authorId": {
|
|
4696
|
+
"type": "string",
|
|
4697
|
+
"minLength": 1,
|
|
4698
|
+
"description": "Stable caller-owned author id. Only for action 'create'. Omit for other actions."
|
|
4699
|
+
},
|
|
4700
|
+
"authorEmail": {
|
|
4701
|
+
"type": "string",
|
|
4702
|
+
"minLength": 1,
|
|
4703
|
+
"description": "Caller-owned author email. Only for action 'create'. Omit for other actions."
|
|
4704
|
+
},
|
|
4705
|
+
"authorImage": {
|
|
4706
|
+
"type": "string",
|
|
4707
|
+
"minLength": 1,
|
|
4708
|
+
"description": "Caller-owned author image URL. Only for action 'create'. Omit for other actions."
|
|
4709
|
+
},
|
|
4710
|
+
"metadata": {
|
|
4711
|
+
"type": "object",
|
|
4712
|
+
"additionalProperties": true,
|
|
4713
|
+
"description": "Caller-owned JSON metadata persisted with the comment. Only for action 'create'. Omit for other actions."
|
|
4714
|
+
},
|
|
4678
4715
|
"id": {
|
|
4679
4716
|
"type": "string",
|
|
4680
4717
|
"description": "Required for actions 'delete', 'get'."
|
|
@@ -4457,7 +4457,7 @@
|
|
|
4457
4457
|
"type": "function",
|
|
4458
4458
|
"function": {
|
|
4459
4459
|
"name": "superdoc_comment",
|
|
4460
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment;
|
|
4460
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; \"action\", \"text\", and \"target\" are required, while commentId (the v1 compatibility alias for externalId), externalId, author fields, and metadata are optional correlation fields.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
4461
4461
|
"parameters": {
|
|
4462
4462
|
"type": "object",
|
|
4463
4463
|
"properties": {
|
|
@@ -4582,6 +4582,43 @@
|
|
|
4582
4582
|
"type": "string",
|
|
4583
4583
|
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
4584
4584
|
},
|
|
4585
|
+
"commentId": {
|
|
4586
|
+
"type": "string",
|
|
4587
|
+
"minLength": 1,
|
|
4588
|
+
"maxLength": 1024,
|
|
4589
|
+
"description": "Compatibility alias for externalId, matching the caller-supplied commentId accepted by the v1 editor. V2 still generates a separate Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4590
|
+
},
|
|
4591
|
+
"externalId": {
|
|
4592
|
+
"type": "string",
|
|
4593
|
+
"minLength": 1,
|
|
4594
|
+
"maxLength": 1024,
|
|
4595
|
+
"description": "Caller-owned durable, document-unique integration id. Kept separate from the generated Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4596
|
+
},
|
|
4597
|
+
"author": {
|
|
4598
|
+
"type": "string",
|
|
4599
|
+
"minLength": 1,
|
|
4600
|
+
"description": "Author display name. Defaults to the configured session author. Only for action 'create'. Omit for other actions."
|
|
4601
|
+
},
|
|
4602
|
+
"authorId": {
|
|
4603
|
+
"type": "string",
|
|
4604
|
+
"minLength": 1,
|
|
4605
|
+
"description": "Stable caller-owned author id. Only for action 'create'. Omit for other actions."
|
|
4606
|
+
},
|
|
4607
|
+
"authorEmail": {
|
|
4608
|
+
"type": "string",
|
|
4609
|
+
"minLength": 1,
|
|
4610
|
+
"description": "Caller-owned author email. Only for action 'create'. Omit for other actions."
|
|
4611
|
+
},
|
|
4612
|
+
"authorImage": {
|
|
4613
|
+
"type": "string",
|
|
4614
|
+
"minLength": 1,
|
|
4615
|
+
"description": "Caller-owned author image URL. Only for action 'create'. Omit for other actions."
|
|
4616
|
+
},
|
|
4617
|
+
"metadata": {
|
|
4618
|
+
"type": "object",
|
|
4619
|
+
"additionalProperties": true,
|
|
4620
|
+
"description": "Caller-owned JSON metadata persisted with the comment. Only for action 'create'. Omit for other actions."
|
|
4621
|
+
},
|
|
4585
4622
|
"id": {
|
|
4586
4623
|
"type": "string",
|
|
4587
4624
|
"description": "Required for actions 'delete', 'get'."
|
|
@@ -4457,7 +4457,7 @@
|
|
|
4457
4457
|
"type": "function",
|
|
4458
4458
|
"function": {
|
|
4459
4459
|
"name": "superdoc_comment",
|
|
4460
|
-
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment;
|
|
4460
|
+
"description": "Manage document comment threads: create, read, update, and delete. To create a comment, first use superdoc_search to find the target text, then pass action \"create\" with the comment text and a target built from items[0].blocks. For a single-block match use {kind:\"text\", blockId: items[0].blocks[0].blockId, range: items[0].blocks[0].range}. For a cross-block match use {kind:\"text\", segments: items[0].blocks.map(b => ({blockId: b.blockId, range: b.range}))}. Do NOT use items[0].highlightRange (snippet-relative, not block-relative) or items[0].target (a SelectionTarget, not accepted by comments.create). For threaded replies, pass \"parentId\" with the parent comment ID. Action \"list\" returns all comments with optional pagination (limit, offset) and filtering (includeResolved:true to include resolved). Action \"get\" retrieves a single comment by ID. Action \"update\" changes comment text, re-anchors the thread, changes status to \"resolved\", or toggles the legacy `sdcom:internal` flag for v1 compatibility. Action \"delete\" removes a comment or reply by ID. Do NOT pass \"ref\", \"id\", or \"parentId\" when creating a new top-level comment; \"action\", \"text\", and \"target\" are required, while commentId (the v1 compatibility alias for externalId), externalId, author fields, and metadata are optional correlation fields.\n\nEXAMPLES:\n 1. {\"action\":\"create\",\"text\":\"Please review this section.\",\"target\":{\"kind\":\"text\",\"blockId\":\"<blockId>\",\"range\":{\"start\":5,\"end\":25}}}\n 2. {\"action\":\"list\",\"limit\":20,\"offset\":0}\n 3. {\"action\":\"update\",\"id\":\"<commentId>\",\"status\":\"resolved\"}\n 4. {\"action\":\"delete\",\"id\":\"<commentId>\"}",
|
|
4461
4461
|
"parameters": {
|
|
4462
4462
|
"type": "object",
|
|
4463
4463
|
"properties": {
|
|
@@ -4582,6 +4582,43 @@
|
|
|
4582
4582
|
"type": "string",
|
|
4583
4583
|
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
4584
4584
|
},
|
|
4585
|
+
"commentId": {
|
|
4586
|
+
"type": "string",
|
|
4587
|
+
"minLength": 1,
|
|
4588
|
+
"maxLength": 1024,
|
|
4589
|
+
"description": "Compatibility alias for externalId, matching the caller-supplied commentId accepted by the v1 editor. V2 still generates a separate Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4590
|
+
},
|
|
4591
|
+
"externalId": {
|
|
4592
|
+
"type": "string",
|
|
4593
|
+
"minLength": 1,
|
|
4594
|
+
"maxLength": 1024,
|
|
4595
|
+
"description": "Caller-owned durable, document-unique integration id. Kept separate from the generated Word-compatible commentId. Only for action 'create'. Omit for other actions."
|
|
4596
|
+
},
|
|
4597
|
+
"author": {
|
|
4598
|
+
"type": "string",
|
|
4599
|
+
"minLength": 1,
|
|
4600
|
+
"description": "Author display name. Defaults to the configured session author. Only for action 'create'. Omit for other actions."
|
|
4601
|
+
},
|
|
4602
|
+
"authorId": {
|
|
4603
|
+
"type": "string",
|
|
4604
|
+
"minLength": 1,
|
|
4605
|
+
"description": "Stable caller-owned author id. Only for action 'create'. Omit for other actions."
|
|
4606
|
+
},
|
|
4607
|
+
"authorEmail": {
|
|
4608
|
+
"type": "string",
|
|
4609
|
+
"minLength": 1,
|
|
4610
|
+
"description": "Caller-owned author email. Only for action 'create'. Omit for other actions."
|
|
4611
|
+
},
|
|
4612
|
+
"authorImage": {
|
|
4613
|
+
"type": "string",
|
|
4614
|
+
"minLength": 1,
|
|
4615
|
+
"description": "Caller-owned author image URL. Only for action 'create'. Omit for other actions."
|
|
4616
|
+
},
|
|
4617
|
+
"metadata": {
|
|
4618
|
+
"type": "object",
|
|
4619
|
+
"additionalProperties": true,
|
|
4620
|
+
"description": "Caller-owned JSON metadata persisted with the comment. Only for action 'create'. Omit for other actions."
|
|
4621
|
+
},
|
|
4585
4622
|
"id": {
|
|
4586
4623
|
"type": "string",
|
|
4587
4624
|
"description": "Required for actions 'delete', 'get'."
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli-darwin-x64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
|
+
"description": "SuperDoc CLI binary for macOS x64. Selected automatically by @superdoc/cli; do not install it directly.",
|
|
5
|
+
"license": "AGPL-3.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/superdoc/docx-editor.git",
|
|
9
|
+
"directory": "apps/cli/platforms/cli-darwin-x64"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/superdoc/docx-editor#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/superdoc/docx-editor/issues"
|
|
14
|
+
},
|
|
4
15
|
"os": [
|
|
5
16
|
"darwin"
|
|
6
17
|
],
|