@superdoc/sdk 2.12.0-next.2 → 2.12.0-next.20
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/README.md +15 -0
- package/dist/actions/define.cjs +6 -1
- package/dist/actions/define.js +6 -1
- package/dist/agent/actions.cjs +125 -13
- package/dist/agent/actions.d.ts +12 -5
- package/dist/agent/actions.js +125 -13
- package/dist/agent/catalog.cjs +7 -1
- package/dist/agent/catalog.js +7 -1
- package/dist/agent/doc-snapshot.cjs +30 -24
- package/dist/agent/doc-snapshot.d.ts +1 -0
- package/dist/agent/doc-snapshot.js +29 -24
- package/dist/agent/runtime.cjs +6 -1
- package/dist/agent/runtime.d.ts +5 -1
- package/dist/agent/runtime.js +6 -1
- package/dist/agent/textbox-snapshot.cjs +65 -0
- package/dist/agent/textbox-snapshot.d.ts +22 -0
- package/dist/agent/textbox-snapshot.js +60 -0
- package/dist/embedded-prompts.generated.cjs +2 -2
- package/dist/embedded-prompts.generated.js +2 -2
- package/dist/generated/client.d.ts +54 -0
- package/dist/generated/contract.cjs +395 -7
- package/dist/generated/contract.js +395 -7
- package/dist/index.d.ts +1 -1
- package/dist/prompts/mcp-prompt.md +1 -1
- package/dist/prompts/system-prompt.md +1 -1
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/package.json +8 -8
- package/tools/tools-policy.json +1 -1
|
@@ -10728,7 +10728,7 @@ const CONTRACT = {
|
|
|
10728
10728
|
"command": [
|
|
10729
10729
|
"open"
|
|
10730
10730
|
],
|
|
10731
|
-
"description": "Open a document and create a persistent v2 editing session. V2 single-socket collaboration supports y-websocket, Hocuspocus, and Liveblocks.",
|
|
10731
|
+
"description": "Open a document and create a persistent v2 editing session. Content override atomically initializes a blank document or replaces a template body. V2 single-socket collaboration supports y-websocket, Hocuspocus, and Liveblocks.",
|
|
10732
10732
|
"category": "session",
|
|
10733
10733
|
"stability": "stable",
|
|
10734
10734
|
"mutates": true,
|
|
@@ -10738,7 +10738,8 @@ const CONTRACT = {
|
|
|
10738
10738
|
"examples": [
|
|
10739
10739
|
"superdoc open my-doc.docx",
|
|
10740
10740
|
"superdoc open --content-override \"# Title\\n\\nBody text\" --override-type markdown",
|
|
10741
|
-
"superdoc open template.docx --content-override '<p>ALPHA01</p><p>BRAVO02</p>' --override-type html"
|
|
10741
|
+
"superdoc open template.docx --content-override '<p>ALPHA01</p><p>BRAVO02</p>' --override-type html",
|
|
10742
|
+
"superdoc open my-doc.docx --collaboration-json '{\"url\":\"wss://collab.example.com\"}'"
|
|
10742
10743
|
],
|
|
10743
10744
|
"errors": []
|
|
10744
10745
|
},
|
|
@@ -300963,6 +300964,122 @@ const CONTRACT = {
|
|
|
300963
300964
|
"parts"
|
|
300964
300965
|
]
|
|
300965
300966
|
},
|
|
300967
|
+
"applyEligibility": {
|
|
300968
|
+
"type": "object",
|
|
300969
|
+
"properties": {
|
|
300970
|
+
"direct": {
|
|
300971
|
+
"type": "object",
|
|
300972
|
+
"properties": {
|
|
300973
|
+
"status": {
|
|
300974
|
+
"type": "string",
|
|
300975
|
+
"enum": [
|
|
300976
|
+
"candidate",
|
|
300977
|
+
"blocked"
|
|
300978
|
+
]
|
|
300979
|
+
},
|
|
300980
|
+
"blockers": {
|
|
300981
|
+
"type": "array",
|
|
300982
|
+
"items": {
|
|
300983
|
+
"type": "object",
|
|
300984
|
+
"properties": {
|
|
300985
|
+
"code": {
|
|
300986
|
+
"type": "string",
|
|
300987
|
+
"enum": [
|
|
300988
|
+
"family-apply-lane-unavailable",
|
|
300989
|
+
"header-footer-physical-lifecycle-unsafe",
|
|
300990
|
+
"header-footer-tracked-lifecycle-unsupported",
|
|
300991
|
+
"comment-replay-unsafe",
|
|
300992
|
+
"comment-anchor-marker-semantics-unsafe",
|
|
300993
|
+
"styles-replay-unsafe",
|
|
300994
|
+
"numbering-replay-unsafe",
|
|
300995
|
+
"section-reference-replay-unsafe",
|
|
300996
|
+
"structural-paragraph-unsupported"
|
|
300997
|
+
]
|
|
300998
|
+
},
|
|
300999
|
+
"message": {
|
|
301000
|
+
"type": "string"
|
|
301001
|
+
},
|
|
301002
|
+
"families": {
|
|
301003
|
+
"type": "array",
|
|
301004
|
+
"items": {
|
|
301005
|
+
"type": "string"
|
|
301006
|
+
}
|
|
301007
|
+
}
|
|
301008
|
+
},
|
|
301009
|
+
"additionalProperties": false,
|
|
301010
|
+
"required": [
|
|
301011
|
+
"code",
|
|
301012
|
+
"message"
|
|
301013
|
+
]
|
|
301014
|
+
}
|
|
301015
|
+
}
|
|
301016
|
+
},
|
|
301017
|
+
"additionalProperties": false,
|
|
301018
|
+
"required": [
|
|
301019
|
+
"status",
|
|
301020
|
+
"blockers"
|
|
301021
|
+
]
|
|
301022
|
+
},
|
|
301023
|
+
"tracked": {
|
|
301024
|
+
"type": "object",
|
|
301025
|
+
"properties": {
|
|
301026
|
+
"status": {
|
|
301027
|
+
"type": "string",
|
|
301028
|
+
"enum": [
|
|
301029
|
+
"candidate",
|
|
301030
|
+
"blocked"
|
|
301031
|
+
]
|
|
301032
|
+
},
|
|
301033
|
+
"blockers": {
|
|
301034
|
+
"type": "array",
|
|
301035
|
+
"items": {
|
|
301036
|
+
"type": "object",
|
|
301037
|
+
"properties": {
|
|
301038
|
+
"code": {
|
|
301039
|
+
"type": "string",
|
|
301040
|
+
"enum": [
|
|
301041
|
+
"family-apply-lane-unavailable",
|
|
301042
|
+
"header-footer-physical-lifecycle-unsafe",
|
|
301043
|
+
"header-footer-tracked-lifecycle-unsupported",
|
|
301044
|
+
"comment-replay-unsafe",
|
|
301045
|
+
"comment-anchor-marker-semantics-unsafe",
|
|
301046
|
+
"styles-replay-unsafe",
|
|
301047
|
+
"numbering-replay-unsafe",
|
|
301048
|
+
"section-reference-replay-unsafe",
|
|
301049
|
+
"structural-paragraph-unsupported"
|
|
301050
|
+
]
|
|
301051
|
+
},
|
|
301052
|
+
"message": {
|
|
301053
|
+
"type": "string"
|
|
301054
|
+
},
|
|
301055
|
+
"families": {
|
|
301056
|
+
"type": "array",
|
|
301057
|
+
"items": {
|
|
301058
|
+
"type": "string"
|
|
301059
|
+
}
|
|
301060
|
+
}
|
|
301061
|
+
},
|
|
301062
|
+
"additionalProperties": false,
|
|
301063
|
+
"required": [
|
|
301064
|
+
"code",
|
|
301065
|
+
"message"
|
|
301066
|
+
]
|
|
301067
|
+
}
|
|
301068
|
+
}
|
|
301069
|
+
},
|
|
301070
|
+
"additionalProperties": false,
|
|
301071
|
+
"required": [
|
|
301072
|
+
"status",
|
|
301073
|
+
"blockers"
|
|
301074
|
+
]
|
|
301075
|
+
}
|
|
301076
|
+
},
|
|
301077
|
+
"additionalProperties": false,
|
|
301078
|
+
"required": [
|
|
301079
|
+
"direct",
|
|
301080
|
+
"tracked"
|
|
301081
|
+
]
|
|
301082
|
+
},
|
|
300966
301083
|
"payload": {
|
|
300967
301084
|
"type": "object",
|
|
300968
301085
|
"description": "Opaque engine-owned diff data."
|
|
@@ -301206,6 +301323,157 @@ const CONTRACT = {
|
|
|
301206
301323
|
"parts"
|
|
301207
301324
|
]
|
|
301208
301325
|
},
|
|
301326
|
+
"applyEligibility": {
|
|
301327
|
+
"type": "object",
|
|
301328
|
+
"properties": {
|
|
301329
|
+
"direct": {
|
|
301330
|
+
"type": "object",
|
|
301331
|
+
"properties": {
|
|
301332
|
+
"status": {
|
|
301333
|
+
"oneOf": [
|
|
301334
|
+
{
|
|
301335
|
+
"const": "candidate"
|
|
301336
|
+
},
|
|
301337
|
+
{
|
|
301338
|
+
"const": "blocked"
|
|
301339
|
+
}
|
|
301340
|
+
]
|
|
301341
|
+
},
|
|
301342
|
+
"blockers": {
|
|
301343
|
+
"type": "array",
|
|
301344
|
+
"items": {
|
|
301345
|
+
"type": "object",
|
|
301346
|
+
"properties": {
|
|
301347
|
+
"code": {
|
|
301348
|
+
"oneOf": [
|
|
301349
|
+
{
|
|
301350
|
+
"const": "family-apply-lane-unavailable"
|
|
301351
|
+
},
|
|
301352
|
+
{
|
|
301353
|
+
"const": "header-footer-physical-lifecycle-unsafe"
|
|
301354
|
+
},
|
|
301355
|
+
{
|
|
301356
|
+
"const": "header-footer-tracked-lifecycle-unsupported"
|
|
301357
|
+
},
|
|
301358
|
+
{
|
|
301359
|
+
"const": "comment-replay-unsafe"
|
|
301360
|
+
},
|
|
301361
|
+
{
|
|
301362
|
+
"const": "comment-anchor-marker-semantics-unsafe"
|
|
301363
|
+
},
|
|
301364
|
+
{
|
|
301365
|
+
"const": "styles-replay-unsafe"
|
|
301366
|
+
},
|
|
301367
|
+
{
|
|
301368
|
+
"const": "numbering-replay-unsafe"
|
|
301369
|
+
},
|
|
301370
|
+
{
|
|
301371
|
+
"const": "section-reference-replay-unsafe"
|
|
301372
|
+
},
|
|
301373
|
+
{
|
|
301374
|
+
"const": "structural-paragraph-unsupported"
|
|
301375
|
+
}
|
|
301376
|
+
]
|
|
301377
|
+
},
|
|
301378
|
+
"message": {
|
|
301379
|
+
"type": "string"
|
|
301380
|
+
},
|
|
301381
|
+
"families": {
|
|
301382
|
+
"type": "array",
|
|
301383
|
+
"items": {
|
|
301384
|
+
"type": "string"
|
|
301385
|
+
}
|
|
301386
|
+
}
|
|
301387
|
+
},
|
|
301388
|
+
"required": [
|
|
301389
|
+
"code",
|
|
301390
|
+
"message"
|
|
301391
|
+
]
|
|
301392
|
+
}
|
|
301393
|
+
}
|
|
301394
|
+
},
|
|
301395
|
+
"required": [
|
|
301396
|
+
"status",
|
|
301397
|
+
"blockers"
|
|
301398
|
+
]
|
|
301399
|
+
},
|
|
301400
|
+
"tracked": {
|
|
301401
|
+
"type": "object",
|
|
301402
|
+
"properties": {
|
|
301403
|
+
"status": {
|
|
301404
|
+
"oneOf": [
|
|
301405
|
+
{
|
|
301406
|
+
"const": "candidate"
|
|
301407
|
+
},
|
|
301408
|
+
{
|
|
301409
|
+
"const": "blocked"
|
|
301410
|
+
}
|
|
301411
|
+
]
|
|
301412
|
+
},
|
|
301413
|
+
"blockers": {
|
|
301414
|
+
"type": "array",
|
|
301415
|
+
"items": {
|
|
301416
|
+
"type": "object",
|
|
301417
|
+
"properties": {
|
|
301418
|
+
"code": {
|
|
301419
|
+
"oneOf": [
|
|
301420
|
+
{
|
|
301421
|
+
"const": "family-apply-lane-unavailable"
|
|
301422
|
+
},
|
|
301423
|
+
{
|
|
301424
|
+
"const": "header-footer-physical-lifecycle-unsafe"
|
|
301425
|
+
},
|
|
301426
|
+
{
|
|
301427
|
+
"const": "header-footer-tracked-lifecycle-unsupported"
|
|
301428
|
+
},
|
|
301429
|
+
{
|
|
301430
|
+
"const": "comment-replay-unsafe"
|
|
301431
|
+
},
|
|
301432
|
+
{
|
|
301433
|
+
"const": "comment-anchor-marker-semantics-unsafe"
|
|
301434
|
+
},
|
|
301435
|
+
{
|
|
301436
|
+
"const": "styles-replay-unsafe"
|
|
301437
|
+
},
|
|
301438
|
+
{
|
|
301439
|
+
"const": "numbering-replay-unsafe"
|
|
301440
|
+
},
|
|
301441
|
+
{
|
|
301442
|
+
"const": "section-reference-replay-unsafe"
|
|
301443
|
+
},
|
|
301444
|
+
{
|
|
301445
|
+
"const": "structural-paragraph-unsupported"
|
|
301446
|
+
}
|
|
301447
|
+
]
|
|
301448
|
+
},
|
|
301449
|
+
"message": {
|
|
301450
|
+
"type": "string"
|
|
301451
|
+
},
|
|
301452
|
+
"families": {
|
|
301453
|
+
"type": "array",
|
|
301454
|
+
"items": {
|
|
301455
|
+
"type": "string"
|
|
301456
|
+
}
|
|
301457
|
+
}
|
|
301458
|
+
},
|
|
301459
|
+
"required": [
|
|
301460
|
+
"code",
|
|
301461
|
+
"message"
|
|
301462
|
+
]
|
|
301463
|
+
}
|
|
301464
|
+
}
|
|
301465
|
+
},
|
|
301466
|
+
"required": [
|
|
301467
|
+
"status",
|
|
301468
|
+
"blockers"
|
|
301469
|
+
]
|
|
301470
|
+
}
|
|
301471
|
+
},
|
|
301472
|
+
"required": [
|
|
301473
|
+
"direct",
|
|
301474
|
+
"tracked"
|
|
301475
|
+
]
|
|
301476
|
+
},
|
|
301209
301477
|
"payload": {
|
|
301210
301478
|
"type": "object",
|
|
301211
301479
|
"properties": {},
|
|
@@ -301390,6 +301658,122 @@ const CONTRACT = {
|
|
|
301390
301658
|
"parts"
|
|
301391
301659
|
]
|
|
301392
301660
|
},
|
|
301661
|
+
"applyEligibility": {
|
|
301662
|
+
"type": "object",
|
|
301663
|
+
"properties": {
|
|
301664
|
+
"direct": {
|
|
301665
|
+
"type": "object",
|
|
301666
|
+
"properties": {
|
|
301667
|
+
"status": {
|
|
301668
|
+
"type": "string",
|
|
301669
|
+
"enum": [
|
|
301670
|
+
"candidate",
|
|
301671
|
+
"blocked"
|
|
301672
|
+
]
|
|
301673
|
+
},
|
|
301674
|
+
"blockers": {
|
|
301675
|
+
"type": "array",
|
|
301676
|
+
"items": {
|
|
301677
|
+
"type": "object",
|
|
301678
|
+
"properties": {
|
|
301679
|
+
"code": {
|
|
301680
|
+
"type": "string",
|
|
301681
|
+
"enum": [
|
|
301682
|
+
"family-apply-lane-unavailable",
|
|
301683
|
+
"header-footer-physical-lifecycle-unsafe",
|
|
301684
|
+
"header-footer-tracked-lifecycle-unsupported",
|
|
301685
|
+
"comment-replay-unsafe",
|
|
301686
|
+
"comment-anchor-marker-semantics-unsafe",
|
|
301687
|
+
"styles-replay-unsafe",
|
|
301688
|
+
"numbering-replay-unsafe",
|
|
301689
|
+
"section-reference-replay-unsafe",
|
|
301690
|
+
"structural-paragraph-unsupported"
|
|
301691
|
+
]
|
|
301692
|
+
},
|
|
301693
|
+
"message": {
|
|
301694
|
+
"type": "string"
|
|
301695
|
+
},
|
|
301696
|
+
"families": {
|
|
301697
|
+
"type": "array",
|
|
301698
|
+
"items": {
|
|
301699
|
+
"type": "string"
|
|
301700
|
+
}
|
|
301701
|
+
}
|
|
301702
|
+
},
|
|
301703
|
+
"additionalProperties": false,
|
|
301704
|
+
"required": [
|
|
301705
|
+
"code",
|
|
301706
|
+
"message"
|
|
301707
|
+
]
|
|
301708
|
+
}
|
|
301709
|
+
}
|
|
301710
|
+
},
|
|
301711
|
+
"additionalProperties": false,
|
|
301712
|
+
"required": [
|
|
301713
|
+
"status",
|
|
301714
|
+
"blockers"
|
|
301715
|
+
]
|
|
301716
|
+
},
|
|
301717
|
+
"tracked": {
|
|
301718
|
+
"type": "object",
|
|
301719
|
+
"properties": {
|
|
301720
|
+
"status": {
|
|
301721
|
+
"type": "string",
|
|
301722
|
+
"enum": [
|
|
301723
|
+
"candidate",
|
|
301724
|
+
"blocked"
|
|
301725
|
+
]
|
|
301726
|
+
},
|
|
301727
|
+
"blockers": {
|
|
301728
|
+
"type": "array",
|
|
301729
|
+
"items": {
|
|
301730
|
+
"type": "object",
|
|
301731
|
+
"properties": {
|
|
301732
|
+
"code": {
|
|
301733
|
+
"type": "string",
|
|
301734
|
+
"enum": [
|
|
301735
|
+
"family-apply-lane-unavailable",
|
|
301736
|
+
"header-footer-physical-lifecycle-unsafe",
|
|
301737
|
+
"header-footer-tracked-lifecycle-unsupported",
|
|
301738
|
+
"comment-replay-unsafe",
|
|
301739
|
+
"comment-anchor-marker-semantics-unsafe",
|
|
301740
|
+
"styles-replay-unsafe",
|
|
301741
|
+
"numbering-replay-unsafe",
|
|
301742
|
+
"section-reference-replay-unsafe",
|
|
301743
|
+
"structural-paragraph-unsupported"
|
|
301744
|
+
]
|
|
301745
|
+
},
|
|
301746
|
+
"message": {
|
|
301747
|
+
"type": "string"
|
|
301748
|
+
},
|
|
301749
|
+
"families": {
|
|
301750
|
+
"type": "array",
|
|
301751
|
+
"items": {
|
|
301752
|
+
"type": "string"
|
|
301753
|
+
}
|
|
301754
|
+
}
|
|
301755
|
+
},
|
|
301756
|
+
"additionalProperties": false,
|
|
301757
|
+
"required": [
|
|
301758
|
+
"code",
|
|
301759
|
+
"message"
|
|
301760
|
+
]
|
|
301761
|
+
}
|
|
301762
|
+
}
|
|
301763
|
+
},
|
|
301764
|
+
"additionalProperties": false,
|
|
301765
|
+
"required": [
|
|
301766
|
+
"status",
|
|
301767
|
+
"blockers"
|
|
301768
|
+
]
|
|
301769
|
+
}
|
|
301770
|
+
},
|
|
301771
|
+
"additionalProperties": false,
|
|
301772
|
+
"required": [
|
|
301773
|
+
"direct",
|
|
301774
|
+
"tracked"
|
|
301775
|
+
]
|
|
301776
|
+
},
|
|
301393
301777
|
"payload": {
|
|
301394
301778
|
"type": "object",
|
|
301395
301779
|
"description": "Opaque engine-owned diff data."
|
|
@@ -308123,7 +308507,7 @@ const CONTRACT = {
|
|
|
308123
308507
|
"open"
|
|
308124
308508
|
],
|
|
308125
308509
|
"category": "session",
|
|
308126
|
-
"description": "Open a document and create a persistent v2 editing session. V2 single-socket collaboration supports y-websocket, Hocuspocus, and Liveblocks.",
|
|
308510
|
+
"description": "Open a document and create a persistent v2 editing session. Content override atomically initializes a blank document or replaces a template body. V2 single-socket collaboration supports y-websocket, Hocuspocus, and Liveblocks.",
|
|
308127
308511
|
"requiresDocumentContext": false,
|
|
308128
308512
|
"docRequirement": "none",
|
|
308129
308513
|
"responseEnvelopeKey": null,
|
|
@@ -308331,13 +308715,15 @@ const CONTRACT = {
|
|
|
308331
308715
|
"name": "contentOverride",
|
|
308332
308716
|
"kind": "flag",
|
|
308333
308717
|
"type": "string",
|
|
308334
|
-
"flag": "content-override"
|
|
308718
|
+
"flag": "content-override",
|
|
308719
|
+
"description": "Complete main-body content. Requires --override-type and cannot be combined with collaboration."
|
|
308335
308720
|
},
|
|
308336
308721
|
{
|
|
308337
308722
|
"name": "overrideType",
|
|
308338
308723
|
"kind": "flag",
|
|
308339
308724
|
"type": "string",
|
|
308340
|
-
"flag": "override-type"
|
|
308725
|
+
"flag": "override-type",
|
|
308726
|
+
"description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
|
|
308341
308727
|
},
|
|
308342
308728
|
{
|
|
308343
308729
|
"name": "roomMode",
|
|
@@ -308566,10 +308952,12 @@ const CONTRACT = {
|
|
|
308566
308952
|
"description": "Tracked-change projection options for the opened session."
|
|
308567
308953
|
},
|
|
308568
308954
|
"contentOverride": {
|
|
308569
|
-
"type": "string"
|
|
308955
|
+
"type": "string",
|
|
308956
|
+
"description": "Complete main-body content. Requires --override-type and cannot be combined with collaboration."
|
|
308570
308957
|
},
|
|
308571
308958
|
"overrideType": {
|
|
308572
|
-
"type": "string"
|
|
308959
|
+
"type": "string",
|
|
308960
|
+
"description": "Content format for --content-override: markdown, html, or text. Required when --content-override is present."
|
|
308573
308961
|
},
|
|
308574
308962
|
"roomMode": {
|
|
308575
308963
|
"type": "string",
|