@superdoc-dev/sdk 1.3.0-next.43 → 1.3.0-next.44
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/dist/generated/client.d.ts +4 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +52 -14
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +52 -14
- package/dist/generated/intent-dispatch.generated.cjs +2 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +2 -0
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +63 -31
- package/tools/intent_dispatch_generated.py +4 -0
- package/tools/system-prompt.md +143 -102
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +354 -40
- package/tools/tools.generic.json +123 -34
- package/tools/tools.openai.json +37 -31
- package/tools/tools.vercel.json +37 -31
|
@@ -2648,7 +2648,7 @@ const CONTRACT = {
|
|
|
2648
2648
|
"name": "ref",
|
|
2649
2649
|
"kind": "flag",
|
|
2650
2650
|
"type": "string",
|
|
2651
|
-
"description": "Handle ref
|
|
2651
|
+
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
2652
2652
|
},
|
|
2653
2653
|
{
|
|
2654
2654
|
"name": "content",
|
|
@@ -2724,25 +2724,29 @@ const CONTRACT = {
|
|
|
2724
2724
|
"kind": "flag",
|
|
2725
2725
|
"type": "string",
|
|
2726
2726
|
"flag": "block-id",
|
|
2727
|
-
"description": "Block ID of the target paragraph."
|
|
2727
|
+
"description": "Block ID of the target paragraph.",
|
|
2728
|
+
"agentVisible": false
|
|
2728
2729
|
},
|
|
2729
2730
|
{
|
|
2730
2731
|
"name": "start",
|
|
2731
2732
|
"kind": "flag",
|
|
2732
2733
|
"type": "number",
|
|
2733
|
-
"description": "Start offset within the block (character index)."
|
|
2734
|
+
"description": "Start offset within the block (character index).",
|
|
2735
|
+
"agentVisible": false
|
|
2734
2736
|
},
|
|
2735
2737
|
{
|
|
2736
2738
|
"name": "end",
|
|
2737
2739
|
"kind": "flag",
|
|
2738
2740
|
"type": "number",
|
|
2739
|
-
"description": "End offset within the block (character index)."
|
|
2741
|
+
"description": "End offset within the block (character index).",
|
|
2742
|
+
"agentVisible": false
|
|
2740
2743
|
},
|
|
2741
2744
|
{
|
|
2742
2745
|
"name": "offset",
|
|
2743
2746
|
"kind": "flag",
|
|
2744
2747
|
"type": "number",
|
|
2745
|
-
"description": "Character offset for insertion (alias for --start/--end with same value)."
|
|
2748
|
+
"description": "Character offset for insertion (alias for --start/--end with same value).",
|
|
2749
|
+
"agentVisible": false
|
|
2746
2750
|
}
|
|
2747
2751
|
],
|
|
2748
2752
|
"constraints": null,
|
|
@@ -2789,7 +2793,7 @@ const CONTRACT = {
|
|
|
2789
2793
|
"properties": {
|
|
2790
2794
|
"ref": {
|
|
2791
2795
|
"type": "string",
|
|
2792
|
-
"description": "Handle ref
|
|
2796
|
+
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
2793
2797
|
},
|
|
2794
2798
|
"in": {
|
|
2795
2799
|
"$ref": "#/$defs/StoryLocator"
|
|
@@ -3911,19 +3915,22 @@ const CONTRACT = {
|
|
|
3911
3915
|
"kind": "flag",
|
|
3912
3916
|
"type": "string",
|
|
3913
3917
|
"flag": "block-id",
|
|
3914
|
-
"description": "Block ID of the target paragraph."
|
|
3918
|
+
"description": "Block ID of the target paragraph.",
|
|
3919
|
+
"agentVisible": false
|
|
3915
3920
|
},
|
|
3916
3921
|
{
|
|
3917
3922
|
"name": "start",
|
|
3918
3923
|
"kind": "flag",
|
|
3919
3924
|
"type": "number",
|
|
3920
|
-
"description": "Start offset within the block (character index)."
|
|
3925
|
+
"description": "Start offset within the block (character index).",
|
|
3926
|
+
"agentVisible": false
|
|
3921
3927
|
},
|
|
3922
3928
|
{
|
|
3923
3929
|
"name": "end",
|
|
3924
3930
|
"kind": "flag",
|
|
3925
3931
|
"type": "number",
|
|
3926
|
-
"description": "End offset within the block (character index)."
|
|
3932
|
+
"description": "End offset within the block (character index).",
|
|
3933
|
+
"agentVisible": false
|
|
3927
3934
|
}
|
|
3928
3935
|
],
|
|
3929
3936
|
"constraints": null,
|
|
@@ -4811,19 +4818,22 @@ const CONTRACT = {
|
|
|
4811
4818
|
"kind": "flag",
|
|
4812
4819
|
"type": "string",
|
|
4813
4820
|
"flag": "block-id",
|
|
4814
|
-
"description": "Block ID of the target paragraph."
|
|
4821
|
+
"description": "Block ID of the target paragraph.",
|
|
4822
|
+
"agentVisible": false
|
|
4815
4823
|
},
|
|
4816
4824
|
{
|
|
4817
4825
|
"name": "start",
|
|
4818
4826
|
"kind": "flag",
|
|
4819
4827
|
"type": "number",
|
|
4820
|
-
"description": "Start offset within the block (character index)."
|
|
4828
|
+
"description": "Start offset within the block (character index).",
|
|
4829
|
+
"agentVisible": false
|
|
4821
4830
|
},
|
|
4822
4831
|
{
|
|
4823
4832
|
"name": "end",
|
|
4824
4833
|
"kind": "flag",
|
|
4825
4834
|
"type": "number",
|
|
4826
|
-
"description": "End offset within the block (character index)."
|
|
4835
|
+
"description": "End offset within the block (character index).",
|
|
4836
|
+
"agentVisible": false
|
|
4827
4837
|
}
|
|
4828
4838
|
],
|
|
4829
4839
|
"constraints": null,
|
|
@@ -5147,6 +5157,10 @@ const CONTRACT = {
|
|
|
5147
5157
|
"type": "boolean",
|
|
5148
5158
|
"description": "True if text is bold."
|
|
5149
5159
|
},
|
|
5160
|
+
"color": {
|
|
5161
|
+
"type": "string",
|
|
5162
|
+
"description": "Text color when explicitly set (e.g. '#000000')."
|
|
5163
|
+
},
|
|
5150
5164
|
"alignment": {
|
|
5151
5165
|
"type": "string",
|
|
5152
5166
|
"description": "Paragraph alignment."
|
|
@@ -5154,6 +5168,10 @@ const CONTRACT = {
|
|
|
5154
5168
|
"headingLevel": {
|
|
5155
5169
|
"type": "number",
|
|
5156
5170
|
"description": "Heading level (1-6)."
|
|
5171
|
+
},
|
|
5172
|
+
"ref": {
|
|
5173
|
+
"type": "string",
|
|
5174
|
+
"description": "Ref handle for this block. Pass directly to superdoc_format or superdoc_edit ref param. Only present for non-empty blocks."
|
|
5157
5175
|
}
|
|
5158
5176
|
},
|
|
5159
5177
|
"additionalProperties": false,
|
|
@@ -33568,6 +33586,10 @@ const CONTRACT = {
|
|
|
33568
33586
|
"items": {
|
|
33569
33587
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
33570
33588
|
}
|
|
33589
|
+
},
|
|
33590
|
+
"ref": {
|
|
33591
|
+
"type": "string",
|
|
33592
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
33571
33593
|
}
|
|
33572
33594
|
},
|
|
33573
33595
|
"additionalProperties": false,
|
|
@@ -33628,6 +33650,10 @@ const CONTRACT = {
|
|
|
33628
33650
|
"items": {
|
|
33629
33651
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
33630
33652
|
}
|
|
33653
|
+
},
|
|
33654
|
+
"ref": {
|
|
33655
|
+
"type": "string",
|
|
33656
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
33631
33657
|
}
|
|
33632
33658
|
},
|
|
33633
33659
|
"additionalProperties": false,
|
|
@@ -34181,6 +34207,10 @@ const CONTRACT = {
|
|
|
34181
34207
|
"items": {
|
|
34182
34208
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
34183
34209
|
}
|
|
34210
|
+
},
|
|
34211
|
+
"ref": {
|
|
34212
|
+
"type": "string",
|
|
34213
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
34184
34214
|
}
|
|
34185
34215
|
},
|
|
34186
34216
|
"additionalProperties": false,
|
|
@@ -34241,6 +34271,10 @@ const CONTRACT = {
|
|
|
34241
34271
|
"items": {
|
|
34242
34272
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
34243
34273
|
}
|
|
34274
|
+
},
|
|
34275
|
+
"ref": {
|
|
34276
|
+
"type": "string",
|
|
34277
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
34244
34278
|
}
|
|
34245
34279
|
},
|
|
34246
34280
|
"additionalProperties": false,
|
|
@@ -45346,7 +45380,9 @@ const CONTRACT = {
|
|
|
45346
45380
|
"success",
|
|
45347
45381
|
"failure"
|
|
45348
45382
|
]
|
|
45349
|
-
}
|
|
45383
|
+
},
|
|
45384
|
+
"intentGroup": "format",
|
|
45385
|
+
"intentAction": "set_flow_options"
|
|
45350
45386
|
},
|
|
45351
45387
|
"doc.format.paragraph.setTabStop": {
|
|
45352
45388
|
"operationId": "doc.format.paragraph.setTabStop",
|
|
@@ -87915,7 +87951,9 @@ const CONTRACT = {
|
|
|
87915
87951
|
"success",
|
|
87916
87952
|
"failure"
|
|
87917
87953
|
]
|
|
87918
|
-
}
|
|
87954
|
+
},
|
|
87955
|
+
"intentGroup": "create",
|
|
87956
|
+
"intentAction": "table"
|
|
87919
87957
|
},
|
|
87920
87958
|
"doc.tables.convertFromText": {
|
|
87921
87959
|
"operationId": "doc.tables.convertFromText",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,QAk2hJtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -3763,7 +3763,7 @@ export const CONTRACT = {
|
|
|
3763
3763
|
"name": "ref",
|
|
3764
3764
|
"kind": "flag",
|
|
3765
3765
|
"type": "string",
|
|
3766
|
-
"description": "Handle ref
|
|
3766
|
+
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
3767
3767
|
},
|
|
3768
3768
|
{
|
|
3769
3769
|
"name": "content",
|
|
@@ -3839,25 +3839,29 @@ export const CONTRACT = {
|
|
|
3839
3839
|
"kind": "flag",
|
|
3840
3840
|
"type": "string",
|
|
3841
3841
|
"flag": "block-id",
|
|
3842
|
-
"description": "Block ID of the target paragraph."
|
|
3842
|
+
"description": "Block ID of the target paragraph.",
|
|
3843
|
+
"agentVisible": false
|
|
3843
3844
|
},
|
|
3844
3845
|
{
|
|
3845
3846
|
"name": "start",
|
|
3846
3847
|
"kind": "flag",
|
|
3847
3848
|
"type": "number",
|
|
3848
|
-
"description": "Start offset within the block (character index)."
|
|
3849
|
+
"description": "Start offset within the block (character index).",
|
|
3850
|
+
"agentVisible": false
|
|
3849
3851
|
},
|
|
3850
3852
|
{
|
|
3851
3853
|
"name": "end",
|
|
3852
3854
|
"kind": "flag",
|
|
3853
3855
|
"type": "number",
|
|
3854
|
-
"description": "End offset within the block (character index)."
|
|
3856
|
+
"description": "End offset within the block (character index).",
|
|
3857
|
+
"agentVisible": false
|
|
3855
3858
|
},
|
|
3856
3859
|
{
|
|
3857
3860
|
"name": "offset",
|
|
3858
3861
|
"kind": "flag",
|
|
3859
3862
|
"type": "number",
|
|
3860
|
-
"description": "Character offset for insertion (alias for --start/--end with same value)."
|
|
3863
|
+
"description": "Character offset for insertion (alias for --start/--end with same value).",
|
|
3864
|
+
"agentVisible": false
|
|
3861
3865
|
}
|
|
3862
3866
|
],
|
|
3863
3867
|
"constraints": null,
|
|
@@ -3904,7 +3908,7 @@ export const CONTRACT = {
|
|
|
3904
3908
|
"properties": {
|
|
3905
3909
|
"ref": {
|
|
3906
3910
|
"type": "string",
|
|
3907
|
-
"description": "Handle ref
|
|
3911
|
+
"description": "Handle ref from superdoc_search result (pass handle.ref value directly). Preferred over building a target object."
|
|
3908
3912
|
},
|
|
3909
3913
|
"in": {
|
|
3910
3914
|
"$ref": "#/$defs/StoryLocator"
|
|
@@ -5026,19 +5030,22 @@ export const CONTRACT = {
|
|
|
5026
5030
|
"kind": "flag",
|
|
5027
5031
|
"type": "string",
|
|
5028
5032
|
"flag": "block-id",
|
|
5029
|
-
"description": "Block ID of the target paragraph."
|
|
5033
|
+
"description": "Block ID of the target paragraph.",
|
|
5034
|
+
"agentVisible": false
|
|
5030
5035
|
},
|
|
5031
5036
|
{
|
|
5032
5037
|
"name": "start",
|
|
5033
5038
|
"kind": "flag",
|
|
5034
5039
|
"type": "number",
|
|
5035
|
-
"description": "Start offset within the block (character index)."
|
|
5040
|
+
"description": "Start offset within the block (character index).",
|
|
5041
|
+
"agentVisible": false
|
|
5036
5042
|
},
|
|
5037
5043
|
{
|
|
5038
5044
|
"name": "end",
|
|
5039
5045
|
"kind": "flag",
|
|
5040
5046
|
"type": "number",
|
|
5041
|
-
"description": "End offset within the block (character index)."
|
|
5047
|
+
"description": "End offset within the block (character index).",
|
|
5048
|
+
"agentVisible": false
|
|
5042
5049
|
}
|
|
5043
5050
|
],
|
|
5044
5051
|
"constraints": null,
|
|
@@ -5926,19 +5933,22 @@ export const CONTRACT = {
|
|
|
5926
5933
|
"kind": "flag",
|
|
5927
5934
|
"type": "string",
|
|
5928
5935
|
"flag": "block-id",
|
|
5929
|
-
"description": "Block ID of the target paragraph."
|
|
5936
|
+
"description": "Block ID of the target paragraph.",
|
|
5937
|
+
"agentVisible": false
|
|
5930
5938
|
},
|
|
5931
5939
|
{
|
|
5932
5940
|
"name": "start",
|
|
5933
5941
|
"kind": "flag",
|
|
5934
5942
|
"type": "number",
|
|
5935
|
-
"description": "Start offset within the block (character index)."
|
|
5943
|
+
"description": "Start offset within the block (character index).",
|
|
5944
|
+
"agentVisible": false
|
|
5936
5945
|
},
|
|
5937
5946
|
{
|
|
5938
5947
|
"name": "end",
|
|
5939
5948
|
"kind": "flag",
|
|
5940
5949
|
"type": "number",
|
|
5941
|
-
"description": "End offset within the block (character index)."
|
|
5950
|
+
"description": "End offset within the block (character index).",
|
|
5951
|
+
"agentVisible": false
|
|
5942
5952
|
}
|
|
5943
5953
|
],
|
|
5944
5954
|
"constraints": null,
|
|
@@ -6262,6 +6272,10 @@ export const CONTRACT = {
|
|
|
6262
6272
|
"type": "boolean",
|
|
6263
6273
|
"description": "True if text is bold."
|
|
6264
6274
|
},
|
|
6275
|
+
"color": {
|
|
6276
|
+
"type": "string",
|
|
6277
|
+
"description": "Text color when explicitly set (e.g. '#000000')."
|
|
6278
|
+
},
|
|
6265
6279
|
"alignment": {
|
|
6266
6280
|
"type": "string",
|
|
6267
6281
|
"description": "Paragraph alignment."
|
|
@@ -6269,6 +6283,10 @@ export const CONTRACT = {
|
|
|
6269
6283
|
"headingLevel": {
|
|
6270
6284
|
"type": "number",
|
|
6271
6285
|
"description": "Heading level (1-6)."
|
|
6286
|
+
},
|
|
6287
|
+
"ref": {
|
|
6288
|
+
"type": "string",
|
|
6289
|
+
"description": "Ref handle for this block. Pass directly to superdoc_format or superdoc_edit ref param. Only present for non-empty blocks."
|
|
6272
6290
|
}
|
|
6273
6291
|
},
|
|
6274
6292
|
"additionalProperties": false,
|
|
@@ -34683,6 +34701,10 @@ export const CONTRACT = {
|
|
|
34683
34701
|
"items": {
|
|
34684
34702
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
34685
34703
|
}
|
|
34704
|
+
},
|
|
34705
|
+
"ref": {
|
|
34706
|
+
"type": "string",
|
|
34707
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
34686
34708
|
}
|
|
34687
34709
|
},
|
|
34688
34710
|
"additionalProperties": false,
|
|
@@ -34743,6 +34765,10 @@ export const CONTRACT = {
|
|
|
34743
34765
|
"items": {
|
|
34744
34766
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
34745
34767
|
}
|
|
34768
|
+
},
|
|
34769
|
+
"ref": {
|
|
34770
|
+
"type": "string",
|
|
34771
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
34746
34772
|
}
|
|
34747
34773
|
},
|
|
34748
34774
|
"additionalProperties": false,
|
|
@@ -35296,6 +35322,10 @@ export const CONTRACT = {
|
|
|
35296
35322
|
"items": {
|
|
35297
35323
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
35298
35324
|
}
|
|
35325
|
+
},
|
|
35326
|
+
"ref": {
|
|
35327
|
+
"type": "string",
|
|
35328
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
35299
35329
|
}
|
|
35300
35330
|
},
|
|
35301
35331
|
"additionalProperties": false,
|
|
@@ -35356,6 +35386,10 @@ export const CONTRACT = {
|
|
|
35356
35386
|
"items": {
|
|
35357
35387
|
"$ref": "#/$defs/TrackedChangeAddress"
|
|
35358
35388
|
}
|
|
35389
|
+
},
|
|
35390
|
+
"ref": {
|
|
35391
|
+
"type": "string",
|
|
35392
|
+
"description": "Ref handle for the created block. Pass directly to superdoc_format or superdoc_edit ref param without searching."
|
|
35359
35393
|
}
|
|
35360
35394
|
},
|
|
35361
35395
|
"additionalProperties": false,
|
|
@@ -46461,7 +46495,9 @@ export const CONTRACT = {
|
|
|
46461
46495
|
"success",
|
|
46462
46496
|
"failure"
|
|
46463
46497
|
]
|
|
46464
|
-
}
|
|
46498
|
+
},
|
|
46499
|
+
"intentGroup": "format",
|
|
46500
|
+
"intentAction": "set_flow_options"
|
|
46465
46501
|
},
|
|
46466
46502
|
"doc.format.paragraph.setTabStop": {
|
|
46467
46503
|
"operationId": "doc.format.paragraph.setTabStop",
|
|
@@ -89030,7 +89066,9 @@ export const CONTRACT = {
|
|
|
89030
89066
|
"success",
|
|
89031
89067
|
"failure"
|
|
89032
89068
|
]
|
|
89033
|
-
}
|
|
89069
|
+
},
|
|
89070
|
+
"intentGroup": "create",
|
|
89071
|
+
"intentAction": "table"
|
|
89034
89072
|
},
|
|
89035
89073
|
"doc.tables.convertFromText": {
|
|
89036
89074
|
"operationId": "doc.tables.convertFromText",
|
|
@@ -33,6 +33,7 @@ function dispatchIntentTool(toolName, args, execute) {
|
|
|
33
33
|
case 'set_alignment': return execute('doc.format.paragraph.setAlignment', rest);
|
|
34
34
|
case 'set_indentation': return execute('doc.format.paragraph.setIndentation', rest);
|
|
35
35
|
case 'set_spacing': return execute('doc.format.paragraph.setSpacing', rest);
|
|
36
|
+
case 'set_flow_options': return execute('doc.format.paragraph.setFlowOptions', rest);
|
|
36
37
|
case 'set_direction': return execute('doc.format.paragraph.setDirection', rest);
|
|
37
38
|
default: throw new Error(`Unknown action for superdoc_format: ${action}`);
|
|
38
39
|
}
|
|
@@ -42,6 +43,7 @@ function dispatchIntentTool(toolName, args, execute) {
|
|
|
42
43
|
switch (action) {
|
|
43
44
|
case 'paragraph': return execute('doc.create.paragraph', rest);
|
|
44
45
|
case 'heading': return execute('doc.create.heading', rest);
|
|
46
|
+
case 'table': return execute('doc.create.table', rest);
|
|
45
47
|
default: throw new Error(`Unknown action for superdoc_create: ${action}`);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-dispatch.generated.d.ts","sourceRoot":"","sources":["../../src/generated/intent-dispatch.generated.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,GACxE,OAAO,
|
|
1
|
+
{"version":3,"file":"intent-dispatch.generated.d.ts","sourceRoot":"","sources":["../../src/generated/intent-dispatch.generated.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,GACxE,OAAO,CA2FT"}
|
|
@@ -31,6 +31,7 @@ export function dispatchIntentTool(toolName, args, execute) {
|
|
|
31
31
|
case 'set_alignment': return execute('doc.format.paragraph.setAlignment', rest);
|
|
32
32
|
case 'set_indentation': return execute('doc.format.paragraph.setIndentation', rest);
|
|
33
33
|
case 'set_spacing': return execute('doc.format.paragraph.setSpacing', rest);
|
|
34
|
+
case 'set_flow_options': return execute('doc.format.paragraph.setFlowOptions', rest);
|
|
34
35
|
case 'set_direction': return execute('doc.format.paragraph.setDirection', rest);
|
|
35
36
|
default: throw new Error(`Unknown action for superdoc_format: ${action}`);
|
|
36
37
|
}
|
|
@@ -40,6 +41,7 @@ export function dispatchIntentTool(toolName, args, execute) {
|
|
|
40
41
|
switch (action) {
|
|
41
42
|
case 'paragraph': return execute('doc.create.paragraph', rest);
|
|
42
43
|
case 'heading': return execute('doc.create.heading', rest);
|
|
44
|
+
case 'table': return execute('doc.create.table', rest);
|
|
43
45
|
default: throw new Error(`Unknown action for superdoc_create: ${action}`);
|
|
44
46
|
}
|
|
45
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/sdk",
|
|
3
|
-
"version": "1.3.0-next.
|
|
3
|
+
"version": "1.3.0-next.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"typescript": "^5.9.2"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@superdoc-dev/sdk-darwin-arm64": "1.3.0-next.
|
|
30
|
-
"@superdoc-dev/sdk-
|
|
31
|
-
"@superdoc-dev/sdk-linux-
|
|
32
|
-
"@superdoc-dev/sdk-
|
|
33
|
-
"@superdoc-dev/sdk-
|
|
29
|
+
"@superdoc-dev/sdk-darwin-arm64": "1.3.0-next.44",
|
|
30
|
+
"@superdoc-dev/sdk-darwin-x64": "1.3.0-next.44",
|
|
31
|
+
"@superdoc-dev/sdk-linux-x64": "1.3.0-next.44",
|
|
32
|
+
"@superdoc-dev/sdk-windows-x64": "1.3.0-next.44",
|
|
33
|
+
"@superdoc-dev/sdk-linux-arm64": "1.3.0-next.44"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
Binary file
|
|
Binary file
|