@superdoc-dev/sdk 1.4.0 → 1.5.1-next.1

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.
@@ -32,6 +32,7 @@ export function createDocApi(runtime) {
32
32
  getHtml: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(CONTRACT.operations["doc.getHtml"], params, options), "html"),
33
33
  markdownToFragment: async (params, options) => unwrapEnvelope(await runtime.invoke(CONTRACT.operations["doc.markdownToFragment"], params, options), "result"),
34
34
  info: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.info"], params, options),
35
+ extract: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.extract"], params, options),
35
36
  clearContent: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(CONTRACT.operations["doc.clearContent"], params, options), "receipt"),
36
37
  insert: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insert"], params, options),
37
38
  replace: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.replace"], params, options),
@@ -527,6 +528,7 @@ export function createBoundDocApi(runtime) {
527
528
  getHtml: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(CONTRACT.operations["doc.getHtml"], params, options), "html"),
528
529
  markdownToFragment: async (params, options) => unwrapEnvelope(await runtime.invoke(CONTRACT.operations["doc.markdownToFragment"], params, options), "result"),
529
530
  info: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.info"], params, options),
531
+ extract: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.extract"], params, options),
530
532
  clearContent: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(CONTRACT.operations["doc.clearContent"], params, options), "receipt"),
531
533
  insert: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.insert"], params, options),
532
534
  replace: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.replace"], params, options),
@@ -2005,6 +2005,169 @@ const CONTRACT = {
2005
2005
  "intentGroup": "get_content",
2006
2006
  "intentAction": "info"
2007
2007
  },
2008
+ "doc.extract": {
2009
+ "operationId": "doc.extract",
2010
+ "sdkSurface": "document",
2011
+ "command": "extract",
2012
+ "commandTokens": [
2013
+ "extract"
2014
+ ],
2015
+ "category": "core",
2016
+ "description": "Extract all document content with stable IDs for RAG pipelines. Returns blocks with full text, comments, and tracked changes — each with an ID compatible with scrollToElement().",
2017
+ "requiresDocumentContext": true,
2018
+ "docRequirement": "optional",
2019
+ "responseEnvelopeKey": null,
2020
+ "params": [
2021
+ {
2022
+ "name": "doc",
2023
+ "kind": "doc",
2024
+ "type": "string",
2025
+ "description": "Document path. Optional when a session is already open."
2026
+ },
2027
+ {
2028
+ "name": "sessionId",
2029
+ "kind": "flag",
2030
+ "type": "string",
2031
+ "flag": "session",
2032
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
2033
+ }
2034
+ ],
2035
+ "constraints": null,
2036
+ "mutates": false,
2037
+ "idempotency": "idempotent",
2038
+ "supportsTrackedMode": false,
2039
+ "supportsDryRun": false,
2040
+ "inputSchema": {
2041
+ "type": "object",
2042
+ "properties": {},
2043
+ "additionalProperties": false
2044
+ },
2045
+ "outputSchema": {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "blocks": {
2049
+ "type": "array",
2050
+ "items": {
2051
+ "type": "object",
2052
+ "properties": {
2053
+ "nodeId": {
2054
+ "type": "string",
2055
+ "description": "Stable block ID — pass to scrollToElement() for navigation."
2056
+ },
2057
+ "type": {
2058
+ "type": "string",
2059
+ "description": "Block type: paragraph, heading, listItem, table, image, etc."
2060
+ },
2061
+ "text": {
2062
+ "type": "string",
2063
+ "description": "Full plain text content of the block."
2064
+ },
2065
+ "headingLevel": {
2066
+ "type": "integer",
2067
+ "description": "Heading level (1–6). Only present for headings."
2068
+ }
2069
+ },
2070
+ "additionalProperties": false,
2071
+ "required": [
2072
+ "nodeId",
2073
+ "type",
2074
+ "text"
2075
+ ]
2076
+ }
2077
+ },
2078
+ "comments": {
2079
+ "type": "array",
2080
+ "items": {
2081
+ "type": "object",
2082
+ "properties": {
2083
+ "entityId": {
2084
+ "type": "string",
2085
+ "description": "Comment entity ID — pass to scrollToElement() for navigation."
2086
+ },
2087
+ "text": {
2088
+ "type": "string",
2089
+ "description": "Comment body text."
2090
+ },
2091
+ "anchoredText": {
2092
+ "type": "string",
2093
+ "description": "The document text the comment is anchored to."
2094
+ },
2095
+ "blockId": {
2096
+ "type": "string",
2097
+ "description": "Block ID the comment is anchored to."
2098
+ },
2099
+ "status": {
2100
+ "type": "string",
2101
+ "enum": [
2102
+ "open",
2103
+ "resolved"
2104
+ ]
2105
+ },
2106
+ "author": {
2107
+ "type": "string",
2108
+ "description": "Comment author name."
2109
+ }
2110
+ },
2111
+ "additionalProperties": false,
2112
+ "required": [
2113
+ "entityId",
2114
+ "status"
2115
+ ]
2116
+ }
2117
+ },
2118
+ "trackedChanges": {
2119
+ "type": "array",
2120
+ "items": {
2121
+ "type": "object",
2122
+ "properties": {
2123
+ "entityId": {
2124
+ "type": "string",
2125
+ "description": "Tracked change entity ID — pass to scrollToElement() for navigation."
2126
+ },
2127
+ "type": {
2128
+ "type": "string",
2129
+ "enum": [
2130
+ "insert",
2131
+ "delete",
2132
+ "format"
2133
+ ]
2134
+ },
2135
+ "excerpt": {
2136
+ "type": "string",
2137
+ "description": "Short text excerpt of the changed content."
2138
+ },
2139
+ "author": {
2140
+ "type": "string",
2141
+ "description": "Change author name."
2142
+ },
2143
+ "date": {
2144
+ "type": "string",
2145
+ "description": "Change date (ISO string)."
2146
+ }
2147
+ },
2148
+ "additionalProperties": false,
2149
+ "required": [
2150
+ "entityId",
2151
+ "type"
2152
+ ]
2153
+ }
2154
+ },
2155
+ "revision": {
2156
+ "type": "string",
2157
+ "description": "Document revision at the time of extraction."
2158
+ }
2159
+ },
2160
+ "additionalProperties": false,
2161
+ "required": [
2162
+ "blocks",
2163
+ "comments",
2164
+ "trackedChanges",
2165
+ "revision"
2166
+ ]
2167
+ },
2168
+ "intentGroup": "get_content",
2169
+ "intentAction": "extract"
2170
+ },
2008
2171
  "doc.clearContent": {
2009
2172
  "operationId": "doc.clearContent",
2010
2173
  "sdkSurface": "document",
@@ -73896,6 +74059,41 @@ const CONTRACT = {
73896
74059
  "dryRun"
73897
74060
  ]
73898
74061
  },
74062
+ "extract": {
74063
+ "type": "object",
74064
+ "properties": {
74065
+ "available": {
74066
+ "type": "boolean"
74067
+ },
74068
+ "tracked": {
74069
+ "type": "boolean"
74070
+ },
74071
+ "dryRun": {
74072
+ "type": "boolean"
74073
+ },
74074
+ "reasons": {
74075
+ "type": "array",
74076
+ "items": {
74077
+ "enum": [
74078
+ "COMMAND_UNAVAILABLE",
74079
+ "HELPER_UNAVAILABLE",
74080
+ "OPERATION_UNAVAILABLE",
74081
+ "TRACKED_MODE_UNAVAILABLE",
74082
+ "DRY_RUN_UNAVAILABLE",
74083
+ "NAMESPACE_UNAVAILABLE",
74084
+ "STYLES_PART_MISSING",
74085
+ "COLLABORATION_ACTIVE"
74086
+ ]
74087
+ }
74088
+ }
74089
+ },
74090
+ "additionalProperties": false,
74091
+ "required": [
74092
+ "available",
74093
+ "tracked",
74094
+ "dryRun"
74095
+ ]
74096
+ },
73899
74097
  "clearContent": {
73900
74098
  "type": "object",
73901
74099
  "properties": {
@@ -87068,6 +87266,7 @@ const CONTRACT = {
87068
87266
  "getHtml",
87069
87267
  "markdownToFragment",
87070
87268
  "info",
87269
+ "extract",
87071
87270
  "clearContent",
87072
87271
  "insert",
87073
87272
  "replace",
@@ -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,QAw4hJtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
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,QA+kiJtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
@@ -3120,6 +3120,169 @@ export const CONTRACT = {
3120
3120
  "intentGroup": "get_content",
3121
3121
  "intentAction": "info"
3122
3122
  },
3123
+ "doc.extract": {
3124
+ "operationId": "doc.extract",
3125
+ "sdkSurface": "document",
3126
+ "command": "extract",
3127
+ "commandTokens": [
3128
+ "extract"
3129
+ ],
3130
+ "category": "core",
3131
+ "description": "Extract all document content with stable IDs for RAG pipelines. Returns blocks with full text, comments, and tracked changes — each with an ID compatible with scrollToElement().",
3132
+ "requiresDocumentContext": true,
3133
+ "docRequirement": "optional",
3134
+ "responseEnvelopeKey": null,
3135
+ "params": [
3136
+ {
3137
+ "name": "doc",
3138
+ "kind": "doc",
3139
+ "type": "string",
3140
+ "description": "Document path. Optional when a session is already open."
3141
+ },
3142
+ {
3143
+ "name": "sessionId",
3144
+ "kind": "flag",
3145
+ "type": "string",
3146
+ "flag": "session",
3147
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
3148
+ }
3149
+ ],
3150
+ "constraints": null,
3151
+ "mutates": false,
3152
+ "idempotency": "idempotent",
3153
+ "supportsTrackedMode": false,
3154
+ "supportsDryRun": false,
3155
+ "inputSchema": {
3156
+ "type": "object",
3157
+ "properties": {},
3158
+ "additionalProperties": false
3159
+ },
3160
+ "outputSchema": {
3161
+ "type": "object",
3162
+ "properties": {
3163
+ "blocks": {
3164
+ "type": "array",
3165
+ "items": {
3166
+ "type": "object",
3167
+ "properties": {
3168
+ "nodeId": {
3169
+ "type": "string",
3170
+ "description": "Stable block ID — pass to scrollToElement() for navigation."
3171
+ },
3172
+ "type": {
3173
+ "type": "string",
3174
+ "description": "Block type: paragraph, heading, listItem, table, image, etc."
3175
+ },
3176
+ "text": {
3177
+ "type": "string",
3178
+ "description": "Full plain text content of the block."
3179
+ },
3180
+ "headingLevel": {
3181
+ "type": "integer",
3182
+ "description": "Heading level (1–6). Only present for headings."
3183
+ }
3184
+ },
3185
+ "additionalProperties": false,
3186
+ "required": [
3187
+ "nodeId",
3188
+ "type",
3189
+ "text"
3190
+ ]
3191
+ }
3192
+ },
3193
+ "comments": {
3194
+ "type": "array",
3195
+ "items": {
3196
+ "type": "object",
3197
+ "properties": {
3198
+ "entityId": {
3199
+ "type": "string",
3200
+ "description": "Comment entity ID — pass to scrollToElement() for navigation."
3201
+ },
3202
+ "text": {
3203
+ "type": "string",
3204
+ "description": "Comment body text."
3205
+ },
3206
+ "anchoredText": {
3207
+ "type": "string",
3208
+ "description": "The document text the comment is anchored to."
3209
+ },
3210
+ "blockId": {
3211
+ "type": "string",
3212
+ "description": "Block ID the comment is anchored to."
3213
+ },
3214
+ "status": {
3215
+ "type": "string",
3216
+ "enum": [
3217
+ "open",
3218
+ "resolved"
3219
+ ]
3220
+ },
3221
+ "author": {
3222
+ "type": "string",
3223
+ "description": "Comment author name."
3224
+ }
3225
+ },
3226
+ "additionalProperties": false,
3227
+ "required": [
3228
+ "entityId",
3229
+ "status"
3230
+ ]
3231
+ }
3232
+ },
3233
+ "trackedChanges": {
3234
+ "type": "array",
3235
+ "items": {
3236
+ "type": "object",
3237
+ "properties": {
3238
+ "entityId": {
3239
+ "type": "string",
3240
+ "description": "Tracked change entity ID — pass to scrollToElement() for navigation."
3241
+ },
3242
+ "type": {
3243
+ "type": "string",
3244
+ "enum": [
3245
+ "insert",
3246
+ "delete",
3247
+ "format"
3248
+ ]
3249
+ },
3250
+ "excerpt": {
3251
+ "type": "string",
3252
+ "description": "Short text excerpt of the changed content."
3253
+ },
3254
+ "author": {
3255
+ "type": "string",
3256
+ "description": "Change author name."
3257
+ },
3258
+ "date": {
3259
+ "type": "string",
3260
+ "description": "Change date (ISO string)."
3261
+ }
3262
+ },
3263
+ "additionalProperties": false,
3264
+ "required": [
3265
+ "entityId",
3266
+ "type"
3267
+ ]
3268
+ }
3269
+ },
3270
+ "revision": {
3271
+ "type": "string",
3272
+ "description": "Document revision at the time of extraction."
3273
+ }
3274
+ },
3275
+ "additionalProperties": false,
3276
+ "required": [
3277
+ "blocks",
3278
+ "comments",
3279
+ "trackedChanges",
3280
+ "revision"
3281
+ ]
3282
+ },
3283
+ "intentGroup": "get_content",
3284
+ "intentAction": "extract"
3285
+ },
3123
3286
  "doc.clearContent": {
3124
3287
  "operationId": "doc.clearContent",
3125
3288
  "sdkSurface": "document",
@@ -75011,6 +75174,41 @@ export const CONTRACT = {
75011
75174
  "dryRun"
75012
75175
  ]
75013
75176
  },
75177
+ "extract": {
75178
+ "type": "object",
75179
+ "properties": {
75180
+ "available": {
75181
+ "type": "boolean"
75182
+ },
75183
+ "tracked": {
75184
+ "type": "boolean"
75185
+ },
75186
+ "dryRun": {
75187
+ "type": "boolean"
75188
+ },
75189
+ "reasons": {
75190
+ "type": "array",
75191
+ "items": {
75192
+ "enum": [
75193
+ "COMMAND_UNAVAILABLE",
75194
+ "HELPER_UNAVAILABLE",
75195
+ "OPERATION_UNAVAILABLE",
75196
+ "TRACKED_MODE_UNAVAILABLE",
75197
+ "DRY_RUN_UNAVAILABLE",
75198
+ "NAMESPACE_UNAVAILABLE",
75199
+ "STYLES_PART_MISSING",
75200
+ "COLLABORATION_ACTIVE"
75201
+ ]
75202
+ }
75203
+ }
75204
+ },
75205
+ "additionalProperties": false,
75206
+ "required": [
75207
+ "available",
75208
+ "tracked",
75209
+ "dryRun"
75210
+ ]
75211
+ },
75014
75212
  "clearContent": {
75015
75213
  "type": "object",
75016
75214
  "properties": {
@@ -88183,6 +88381,7 @@ export const CONTRACT = {
88183
88381
  "getHtml",
88184
88382
  "markdownToFragment",
88185
88383
  "info",
88384
+ "extract",
88186
88385
  "clearContent",
88187
88386
  "insert",
88188
88387
  "replace",
@@ -10,6 +10,7 @@ function dispatchIntentTool(toolName, args, execute) {
10
10
  case 'markdown': return execute('doc.getMarkdown', rest);
11
11
  case 'html': return execute('doc.getHtml', rest);
12
12
  case 'info': return execute('doc.info', rest);
13
+ case 'extract': return execute('doc.extract', rest);
13
14
  case 'blocks': return execute('doc.blocks.list', rest);
14
15
  default: throw new Error(`Unknown action for superdoc_get_content: ${action}`);
15
16
  }
@@ -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,CA2FT"}
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,CA4FT"}
@@ -8,6 +8,7 @@ export function dispatchIntentTool(toolName, args, execute) {
8
8
  case 'markdown': return execute('doc.getMarkdown', rest);
9
9
  case 'html': return execute('doc.getHtml', rest);
10
10
  case 'info': return execute('doc.info', rest);
11
+ case 'extract': return execute('doc.extract', rest);
11
12
  case 'blocks': return execute('doc.blocks.list', rest);
12
13
  default: throw new Error(`Unknown action for superdoc_get_content: ${action}`);
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.5.1-next.1",
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-linux-x64": "1.4.0",
30
- "@superdoc-dev/sdk-darwin-arm64": "1.4.0",
31
- "@superdoc-dev/sdk-windows-x64": "1.4.0",
32
- "@superdoc-dev/sdk-linux-arm64": "1.4.0",
33
- "@superdoc-dev/sdk-darwin-x64": "1.4.0"
29
+ "@superdoc-dev/sdk-darwin-x64": "1.5.1-next.1",
30
+ "@superdoc-dev/sdk-linux-arm64": "1.5.1-next.1",
31
+ "@superdoc-dev/sdk-linux-x64": "1.5.1-next.1",
32
+ "@superdoc-dev/sdk-windows-x64": "1.5.1-next.1",
33
+ "@superdoc-dev/sdk-darwin-arm64": "1.5.1-next.1"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -13,12 +13,13 @@
13
13
  "type": "string",
14
14
  "enum": [
15
15
  "blocks",
16
+ "extract",
16
17
  "html",
17
18
  "info",
18
19
  "markdown",
19
20
  "text"
20
21
  ],
21
- "description": "The action to perform. One of: blocks, html, info, markdown, text."
22
+ "description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
22
23
  },
23
24
  "unflattenLists": {
24
25
  "type": "boolean",
@@ -73,6 +74,10 @@
73
74
  "operationId": "doc.info",
74
75
  "intentAction": "info"
75
76
  },
77
+ {
78
+ "operationId": "doc.extract",
79
+ "intentAction": "extract"
80
+ },
76
81
  {
77
82
  "operationId": "doc.blocks.list",
78
83
  "intentAction": "blocks"
@@ -21,6 +21,8 @@ def dispatch_intent_tool(
21
21
  return execute('doc.getHtml', rest)
22
22
  elif action == 'info':
23
23
  return execute('doc.info', rest)
24
+ elif action == 'extract':
25
+ return execute('doc.extract', rest)
24
26
  elif action == 'blocks':
25
27
  return execute('doc.blocks.list', rest)
26
28
  else:
@@ -39,5 +39,5 @@
39
39
  "mutates": true
40
40
  }
41
41
  ],
42
- "contractHash": "ea6e458d5c1476621d84f5bde9f85df9c3d620d0e226f206c57456f5ed6d20b3"
42
+ "contractHash": "c1c3f265f892774185e1cd219fc70e7c24edac55bd34fe56a1ff878f780dda30"
43
43
  }
@@ -11,12 +11,13 @@
11
11
  "type": "string",
12
12
  "enum": [
13
13
  "blocks",
14
+ "extract",
14
15
  "html",
15
16
  "info",
16
17
  "markdown",
17
18
  "text"
18
19
  ],
19
- "description": "The action to perform. One of: blocks, html, info, markdown, text."
20
+ "description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
20
21
  },
21
22
  "unflattenLists": {
22
23
  "type": "boolean",
@@ -11,12 +11,13 @@
11
11
  "type": "string",
12
12
  "enum": [
13
13
  "blocks",
14
+ "extract",
14
15
  "html",
15
16
  "info",
16
17
  "markdown",
17
18
  "text"
18
19
  ],
19
- "description": "The action to perform. One of: blocks, html, info, markdown, text."
20
+ "description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
20
21
  },
21
22
  "unflattenLists": {
22
23
  "type": "boolean",
@@ -55,12 +56,13 @@
55
56
  },
56
57
  "metadata": {
57
58
  "mutates": false,
58
- "operationCount": 5,
59
+ "operationCount": 6,
59
60
  "operations": [
60
61
  "doc.getText",
61
62
  "doc.getMarkdown",
62
63
  "doc.getHtml",
63
64
  "doc.info",
65
+ "doc.extract",
64
66
  "doc.blocks.list"
65
67
  ]
66
68
  },
@@ -13,12 +13,13 @@
13
13
  "type": "string",
14
14
  "enum": [
15
15
  "blocks",
16
+ "extract",
16
17
  "html",
17
18
  "info",
18
19
  "markdown",
19
20
  "text"
20
21
  ],
21
- "description": "The action to perform. One of: blocks, html, info, markdown, text."
22
+ "description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
22
23
  },
23
24
  "unflattenLists": {
24
25
  "type": "boolean",
@@ -13,12 +13,13 @@
13
13
  "type": "string",
14
14
  "enum": [
15
15
  "blocks",
16
+ "extract",
16
17
  "html",
17
18
  "info",
18
19
  "markdown",
19
20
  "text"
20
21
  ],
21
- "description": "The action to perform. One of: blocks, html, info, markdown, text."
22
+ "description": "The action to perform. One of: blocks, extract, html, info, markdown, text."
22
23
  },
23
24
  "unflattenLists": {
24
25
  "type": "boolean",