@superdoc-dev/cli 0.2.0-next.83 → 0.2.0-next.85

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.
Files changed (2) hide show
  1. package/dist/index.js +473 -155
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1149,7 +1149,8 @@ var init_operation_definitions = __esm(() => {
1149
1149
  throws: [...T_NOT_FOUND_CAPABLE, "INVALID_TARGET", "INVALID_INPUT"]
1150
1150
  }),
1151
1151
  referenceDocPath: `format/${camelToKebab(entry.key)}.mdx`,
1152
- referenceGroup: "format"
1152
+ referenceGroup: "format",
1153
+ skipAsATool: true
1153
1154
  };
1154
1155
  return [operationId, definition];
1155
1156
  }));
@@ -1165,7 +1166,8 @@ var init_operation_definitions = __esm(() => {
1165
1166
  deterministicTargetResolution: false
1166
1167
  }),
1167
1168
  referenceDocPath: "find.mdx",
1168
- referenceGroup: "core"
1169
+ referenceGroup: "core",
1170
+ skipAsATool: true
1169
1171
  },
1170
1172
  getNode: {
1171
1173
  memberPath: "getNode",
@@ -1189,7 +1191,8 @@ var init_operation_definitions = __esm(() => {
1189
1191
  throws: T_NOT_FOUND
1190
1192
  }),
1191
1193
  referenceDocPath: "get-node-by-id.mdx",
1192
- referenceGroup: "core"
1194
+ referenceGroup: "core",
1195
+ essential: true
1193
1196
  },
1194
1197
  getText: {
1195
1198
  memberPath: "getText",
@@ -1198,7 +1201,8 @@ var init_operation_definitions = __esm(() => {
1198
1201
  requiresDocumentContext: true,
1199
1202
  metadata: readOperation(),
1200
1203
  referenceDocPath: "get-text.mdx",
1201
- referenceGroup: "core"
1204
+ referenceGroup: "core",
1205
+ essential: true
1202
1206
  },
1203
1207
  getMarkdown: {
1204
1208
  memberPath: "getMarkdown",
@@ -2473,7 +2477,8 @@ var init_operation_definitions = __esm(() => {
2473
2477
  deterministicTargetResolution: true
2474
2478
  }),
2475
2479
  referenceDocPath: "query/match.mdx",
2476
- referenceGroup: "query"
2480
+ referenceGroup: "query",
2481
+ essential: true
2477
2482
  },
2478
2483
  "mutations.preview": {
2479
2484
  memberPath: "mutations.preview",
@@ -2502,7 +2507,8 @@ var init_operation_definitions = __esm(() => {
2502
2507
  deterministicTargetResolution: true
2503
2508
  }),
2504
2509
  referenceDocPath: "mutations/apply.mdx",
2505
- referenceGroup: "mutations"
2510
+ referenceGroup: "mutations",
2511
+ essential: true
2506
2512
  },
2507
2513
  "capabilities.get": {
2508
2514
  memberPath: "capabilities",
@@ -3323,7 +3329,8 @@ var init_operation_definitions = __esm(() => {
3323
3329
  throws: ["CAPABILITY_UNAVAILABLE"]
3324
3330
  }),
3325
3331
  referenceDocPath: "history/undo.mdx",
3326
- referenceGroup: "history"
3332
+ referenceGroup: "history",
3333
+ essential: true
3327
3334
  },
3328
3335
  "history.redo": {
3329
3336
  memberPath: "history.redo",
@@ -6666,42 +6673,148 @@ var init_schemas = __esm(() => {
6666
6673
  return discoveryResultSchema({ oneOf: [textMatchItemSchema, nodeMatchItemSchema] }, queryMatchMetaSchema);
6667
6674
  })()
6668
6675
  },
6669
- "mutations.preview": {
6670
- input: objectSchema({
6671
- expectedRevision: { type: "string" },
6672
- atomic: { const: true },
6673
- changeMode: { enum: ["direct", "tracked"] },
6674
- steps: arraySchema({ type: "object" })
6675
- }, ["atomic", "changeMode", "steps"]),
6676
- output: objectSchema({
6677
- evaluatedRevision: { type: "string" },
6678
- steps: arraySchema({ type: "object" }),
6679
- valid: { type: "boolean" },
6680
- failures: arraySchema({ type: "object" })
6681
- }, ["evaluatedRevision", "steps", "valid"])
6682
- },
6683
- "mutations.apply": {
6684
- input: objectSchema({
6676
+ ...(() => {
6677
+ const selectWhereSchema = objectSchema({
6678
+ by: { const: "select", type: "string" },
6679
+ select: { oneOf: [textSelectorSchema, nodeSelectorSchema] },
6680
+ within: nodeAddressSchema,
6681
+ require: { enum: ["first", "exactlyOne", "all"] }
6682
+ }, ["by", "select", "require"]);
6683
+ const refWhereSchema = objectSchema({
6684
+ by: { const: "ref", type: "string" },
6685
+ ref: { type: "string" },
6686
+ within: nodeAddressSchema
6687
+ }, ["by", "ref"]);
6688
+ const stepWhereSchema = { oneOf: [selectWhereSchema, refWhereSchema] };
6689
+ const insertWhereSchema = objectSchema({
6690
+ by: { const: "select", type: "string" },
6691
+ select: { oneOf: [textSelectorSchema, nodeSelectorSchema] },
6692
+ within: nodeAddressSchema,
6693
+ require: { enum: ["first", "exactlyOne"] }
6694
+ }, ["by", "select", "require"]);
6695
+ const assertWhereSchema = objectSchema({
6696
+ by: { const: "select", type: "string" },
6697
+ select: { oneOf: [textSelectorSchema, nodeSelectorSchema] },
6698
+ within: nodeAddressSchema
6699
+ }, ["by", "select"]);
6700
+ const replacementBlockSchema = objectSchema({ text: { type: "string" } }, ["text"]);
6701
+ const replacementPayloadSchema = {
6702
+ oneOf: [
6703
+ objectSchema({ text: { type: "string" } }, ["text"]),
6704
+ objectSchema({ blocks: arraySchema(replacementBlockSchema) }, ["blocks"])
6705
+ ]
6706
+ };
6707
+ const inlineDirectiveSchema = { enum: [...INLINE_DIRECTIVES] };
6708
+ const setMarksSchema = objectSchema({
6709
+ bold: inlineDirectiveSchema,
6710
+ italic: inlineDirectiveSchema,
6711
+ underline: inlineDirectiveSchema,
6712
+ strike: inlineDirectiveSchema
6713
+ });
6714
+ const inlineStylePolicySchema = objectSchema({
6715
+ mode: { enum: ["preserve", "set", "clear", "merge"], type: "string" },
6716
+ requireUniform: { type: "boolean" },
6717
+ onNonUniform: { enum: ["error", "useLeadingRun", "majority", "union"] },
6718
+ setMarks: setMarksSchema
6719
+ }, ["mode"]);
6720
+ const paragraphStylePolicySchema = objectSchema({
6721
+ mode: { enum: ["preserve", "set", "clear"], type: "string" }
6722
+ }, ["mode"]);
6723
+ const stylePolicySchema = objectSchema({
6724
+ inline: inlineStylePolicySchema,
6725
+ paragraph: paragraphStylePolicySchema
6726
+ }, ["inline"]);
6727
+ const insertStylePolicySchema = objectSchema({
6728
+ inline: objectSchema({
6729
+ mode: { enum: ["inherit", "set", "clear"], type: "string" },
6730
+ setMarks: setMarksSchema
6731
+ }, ["mode"])
6732
+ }, ["inline"]);
6733
+ const textRewriteStepSchema = objectSchema({
6734
+ id: { type: "string" },
6735
+ op: { const: "text.rewrite", type: "string" },
6736
+ where: stepWhereSchema,
6737
+ args: objectSchema({
6738
+ replacement: replacementPayloadSchema,
6739
+ style: stylePolicySchema
6740
+ }, ["replacement"])
6741
+ }, ["id", "op", "where", "args"]);
6742
+ const textInsertStepSchema = objectSchema({
6743
+ id: { type: "string" },
6744
+ op: { const: "text.insert", type: "string" },
6745
+ where: insertWhereSchema,
6746
+ args: objectSchema({
6747
+ position: { enum: ["before", "after"] },
6748
+ content: objectSchema({ text: { type: "string" } }, ["text"]),
6749
+ style: insertStylePolicySchema
6750
+ }, ["position", "content"])
6751
+ }, ["id", "op", "where", "args"]);
6752
+ const textDeleteStepSchema = objectSchema({
6753
+ id: { type: "string" },
6754
+ op: { const: "text.delete", type: "string" },
6755
+ where: stepWhereSchema,
6756
+ args: objectSchema({})
6757
+ }, ["id", "op", "where", "args"]);
6758
+ const formatApplyStepSchema = objectSchema({
6759
+ id: { type: "string" },
6760
+ op: { const: "format.apply", type: "string" },
6761
+ where: stepWhereSchema,
6762
+ args: objectSchema({
6763
+ inline: buildInlineRunPatchSchema()
6764
+ }, ["inline"])
6765
+ }, ["id", "op", "where", "args"]);
6766
+ const assertStepSchema = objectSchema({
6767
+ id: { type: "string" },
6768
+ op: { const: "assert", type: "string" },
6769
+ where: assertWhereSchema,
6770
+ args: objectSchema({
6771
+ expectCount: { type: "number" }
6772
+ }, ["expectCount"])
6773
+ }, ["id", "op", "where", "args"]);
6774
+ const mutationStepSchema = {
6775
+ oneOf: [
6776
+ textRewriteStepSchema,
6777
+ textInsertStepSchema,
6778
+ textDeleteStepSchema,
6779
+ formatApplyStepSchema,
6780
+ assertStepSchema
6781
+ ]
6782
+ };
6783
+ const mutationsInputSchema = objectSchema({
6685
6784
  expectedRevision: { type: "string" },
6686
- atomic: { const: true },
6785
+ atomic: { const: true, type: "boolean" },
6687
6786
  changeMode: { enum: ["direct", "tracked"] },
6688
- steps: arraySchema({ type: "object" })
6689
- }, ["atomic", "changeMode", "steps"]),
6690
- output: objectSchema({
6691
- success: { const: true },
6692
- revision: objectSchema({ before: { type: "string" }, after: { type: "string" } }, ["before", "after"]),
6693
- steps: arraySchema({ type: "object" }),
6694
- trackedChanges: arraySchema({ type: "object" }),
6695
- timing: objectSchema({ totalMs: { type: "number" } }, ["totalMs"])
6696
- }, ["success", "revision", "steps", "timing"]),
6697
- success: objectSchema({
6698
- success: { const: true },
6699
- revision: objectSchema({ before: { type: "string" }, after: { type: "string" } }, ["before", "after"]),
6700
- steps: arraySchema({ type: "object" }),
6701
- timing: objectSchema({ totalMs: { type: "number" } }, ["totalMs"])
6702
- }, ["success", "revision", "steps", "timing"]),
6703
- failure: preApplyFailureResultSchemaFor("mutations.apply")
6704
- },
6787
+ steps: arraySchema(mutationStepSchema)
6788
+ }, ["atomic", "changeMode", "steps"]);
6789
+ return {
6790
+ "mutations.preview": {
6791
+ input: mutationsInputSchema,
6792
+ output: objectSchema({
6793
+ evaluatedRevision: { type: "string" },
6794
+ steps: arraySchema({ type: "object" }),
6795
+ valid: { type: "boolean" },
6796
+ failures: arraySchema({ type: "object" })
6797
+ }, ["evaluatedRevision", "steps", "valid"])
6798
+ },
6799
+ "mutations.apply": {
6800
+ input: mutationsInputSchema,
6801
+ output: objectSchema({
6802
+ success: { const: true },
6803
+ revision: objectSchema({ before: { type: "string" }, after: { type: "string" } }, ["before", "after"]),
6804
+ steps: arraySchema({ type: "object" }),
6805
+ trackedChanges: arraySchema({ type: "object" }),
6806
+ timing: objectSchema({ totalMs: { type: "number" } }, ["totalMs"])
6807
+ }, ["success", "revision", "steps", "timing"]),
6808
+ success: objectSchema({
6809
+ success: { const: true },
6810
+ revision: objectSchema({ before: { type: "string" }, after: { type: "string" } }, ["before", "after"]),
6811
+ steps: arraySchema({ type: "object" }),
6812
+ timing: objectSchema({ totalMs: { type: "number" } }, ["totalMs"])
6813
+ }, ["success", "revision", "steps", "timing"]),
6814
+ failure: preApplyFailureResultSchemaFor("mutations.apply")
6815
+ }
6816
+ };
6817
+ })(),
6705
6818
  "capabilities.get": {
6706
6819
  input: strictEmptyObjectSchema,
6707
6820
  output: capabilitiesOutputSchema
@@ -11323,7 +11436,7 @@ var CLI_ONLY_OPERATION_DEFINITIONS;
11323
11436
  var init_cli_only_operation_definitions = __esm(() => {
11324
11437
  CLI_ONLY_OPERATION_DEFINITIONS = {
11325
11438
  open: {
11326
- category: "lifecycle",
11439
+ category: "session",
11327
11440
  description: "Open a document and create a persistent editing session. Optionally override the document body with contentOverride + overrideType (markdown, html, or text).",
11328
11441
  requiresDocumentContext: false,
11329
11442
  intentName: "open_document",
@@ -11361,7 +11474,7 @@ var init_cli_only_operation_definitions = __esm(() => {
11361
11474
  }
11362
11475
  },
11363
11476
  save: {
11364
- category: "lifecycle",
11477
+ category: "session",
11365
11478
  description: "Save the current session to the original file or a new path.",
11366
11479
  requiresDocumentContext: false,
11367
11480
  intentName: "save_document",
@@ -11400,7 +11513,7 @@ var init_cli_only_operation_definitions = __esm(() => {
11400
11513
  }
11401
11514
  },
11402
11515
  close: {
11403
- category: "lifecycle",
11516
+ category: "session",
11404
11517
  description: "Close the active editing session and clean up resources.",
11405
11518
  requiresDocumentContext: false,
11406
11519
  intentName: "close_document",
@@ -11427,7 +11540,7 @@ var init_cli_only_operation_definitions = __esm(() => {
11427
11540
  }
11428
11541
  },
11429
11542
  status: {
11430
- category: "introspection",
11543
+ category: "session",
11431
11544
  description: "Show the current session status and document metadata.",
11432
11545
  requiresDocumentContext: false,
11433
11546
  intentName: "get_status",
@@ -11451,10 +11564,11 @@ var init_cli_only_operation_definitions = __esm(() => {
11451
11564
  }
11452
11565
  },
11453
11566
  describe: {
11454
- category: "introspection",
11567
+ category: "session",
11455
11568
  description: "List all available CLI operations and contract metadata.",
11456
11569
  requiresDocumentContext: false,
11457
11570
  intentName: "describe_commands",
11571
+ skipAsATool: true,
11458
11572
  sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
11459
11573
  outputSchema: {
11460
11574
  type: "object",
@@ -11477,11 +11591,12 @@ var init_cli_only_operation_definitions = __esm(() => {
11477
11591
  }
11478
11592
  },
11479
11593
  describeCommand: {
11480
- category: "introspection",
11594
+ category: "session",
11481
11595
  description: "Show detailed metadata for a single CLI operation.",
11482
11596
  requiresDocumentContext: false,
11483
11597
  tokenOverride: ["describe", "command"],
11484
11598
  intentName: "describe_command",
11599
+ skipAsATool: true,
11485
11600
  sdkMetadata: { mutates: false, idempotency: "idempotent", supportsTrackedMode: false, supportsDryRun: false },
11486
11601
  outputSchema: {
11487
11602
  type: "object",
@@ -11626,11 +11741,8 @@ function toDocApiId(cliOpId) {
11626
11741
  function deriveCategoryFromDocApi(docApiId) {
11627
11742
  const group = REFERENCE_GROUP_BY_OP.get(docApiId);
11628
11743
  if (!group)
11629
- return "query";
11630
- if (group === "core" || group === "mutations") {
11631
- return COMMAND_CATALOG[docApiId].mutates ? "mutation" : "query";
11632
- }
11633
- return group;
11744
+ return "core";
11745
+ return REFERENCE_GROUP_TO_CATEGORY[group] ?? "core";
11634
11746
  }
11635
11747
  function cliCategory(cliOpId) {
11636
11748
  const docApiId = toDocApiId(cliOpId);
@@ -11668,7 +11780,7 @@ function cliCommandTokens(cliOpId) {
11668
11780
  return override;
11669
11781
  return stripped.split(".").map(camelToKebab2);
11670
11782
  }
11671
- var CLI_OPERATION_DENYLIST, denySet, CLI_DOC_OPERATIONS, CLI_OPERATION_IDS, REFERENCE_GROUP_BY_OP;
11783
+ var CLI_OPERATION_DENYLIST, denySet, CLI_DOC_OPERATIONS, CLI_OPERATION_IDS, REFERENCE_GROUP_BY_OP, REFERENCE_GROUP_TO_CATEGORY;
11672
11784
  var init_operation_set = __esm(() => {
11673
11785
  init_src();
11674
11786
  init_cli_only_operation_definitions();
@@ -11687,6 +11799,26 @@ var init_operation_set = __esm(() => {
11687
11799
  REFERENCE_GROUP_BY_OP.set(opId, group.key);
11688
11800
  }
11689
11801
  }
11802
+ REFERENCE_GROUP_TO_CATEGORY = {
11803
+ core: "core",
11804
+ mutations: "core",
11805
+ query: "core",
11806
+ blocks: "core",
11807
+ capabilities: "core",
11808
+ format: "format",
11809
+ "format.paragraph": "format",
11810
+ styles: "format",
11811
+ "styles.paragraph": "format",
11812
+ create: "create",
11813
+ tables: "tables",
11814
+ sections: "sections",
11815
+ lists: "lists",
11816
+ comments: "comments",
11817
+ trackChanges: "trackChanges",
11818
+ toc: "toc",
11819
+ images: "images",
11820
+ history: "history"
11821
+ };
11690
11822
  });
11691
11823
 
11692
11824
  // ../../packages/superdoc/dist/chunks/rolldown-runtime-B2q5OVn9.es.js
@@ -32315,7 +32447,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
32315
32447
  emptyOptions2 = {};
32316
32448
  });
32317
32449
 
32318
- // ../../packages/superdoc/dist/chunks/SuperConverter-CejXSSGL.es.js
32450
+ // ../../packages/superdoc/dist/chunks/SuperConverter-JDAVdLpj.es.js
32319
32451
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
32320
32452
  const fieldValue = extension$1.config[field];
32321
32453
  if (typeof fieldValue === "function")
@@ -34104,10 +34236,10 @@ function discoveryItemSchema2(domainProperties, domainRequired = []) {
34104
34236
  ]);
34105
34237
  }
34106
34238
  function possibleFailureCodes2(operationId) {
34107
- return [...COMMAND_CATALOG2[operationId].possibleFailureCodes];
34239
+ return [...COMMAND_CATALOG3[operationId].possibleFailureCodes];
34108
34240
  }
34109
34241
  function preApplyThrowCodes2(operationId) {
34110
- return [...COMMAND_CATALOG2[operationId].throws.preApply];
34242
+ return [...COMMAND_CATALOG3[operationId].throws.preApply];
34111
34243
  }
34112
34244
  function receiptFailureSchemaFor2(operationId) {
34113
34245
  const codes = possibleFailureCodes2(operationId);
@@ -52323,7 +52455,7 @@ var isRegExp = (value) => {
52323
52455
  tracked: false,
52324
52456
  carrier: runAttributeCarrier2(runPropertyKey ?? key),
52325
52457
  schema
52326
- }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_NOT_FOUND_COMMAND_TRACKED2, T_IMAGE_COMMAND2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG2, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY3, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, nodeSummarySchema2, nodeInfoSchema2, matchContextSchema2, unknownNodeDiagnosticSchema2, textSelectorSchema2, nodeSelectorSchema2, findItemDomainSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, INSERT_INPUT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, REPLACE_INPUT_ALLOWED_KEYS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, TABLE_LOCATOR_OPS2, ROW_LOCATOR_OPS2, COLUMN_LOCATOR_OPS2, MERGE_RANGE_LOCATOR_OPS2, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS2, HEADER_FOOTER_VARIANTS2, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$208) => ({
52458
+ }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_NOT_FOUND_COMMAND_TRACKED2, T_IMAGE_COMMAND2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG3, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY3, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, nodeSummarySchema2, nodeInfoSchema2, matchContextSchema2, unknownNodeDiagnosticSchema2, textSelectorSchema2, nodeSelectorSchema2, findItemDomainSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, INSERT_INPUT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, REPLACE_INPUT_ALLOWED_KEYS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, TABLE_LOCATOR_OPS2, ROW_LOCATOR_OPS2, COLUMN_LOCATOR_OPS2, MERGE_RANGE_LOCATOR_OPS2, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS2, HEADER_FOOTER_VARIANTS2, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$208) => ({
52327
52459
  handlerName,
52328
52460
  handler: (params) => {
52329
52461
  const { nodes } = params;
@@ -63712,7 +63844,7 @@ var isRegExp = (value) => {
63712
63844
  state.kern = kernNode.attributes["w:val"];
63713
63845
  }
63714
63846
  }, SuperConverter;
63715
- var init_SuperConverter_CejXSSGL_es = __esm(() => {
63847
+ var init_SuperConverter_JDAVdLpj_es = __esm(() => {
63716
63848
  init_rolldown_runtime_B2q5OVn9_es();
63717
63849
  init_jszip_ChlR43oI_es();
63718
63850
  init_xml_js_DLE8mr0n_es();
@@ -66513,7 +66645,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
66513
66645
  ]
66514
66646
  }),
66515
66647
  referenceDocPath: `format/${camelToKebab3(entry.key)}.mdx`,
66516
- referenceGroup: "format"
66648
+ referenceGroup: "format",
66649
+ skipAsATool: true
66517
66650
  }];
66518
66651
  }));
66519
66652
  OPERATION_DEFINITIONS2 = {
@@ -66528,7 +66661,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
66528
66661
  deterministicTargetResolution: false
66529
66662
  }),
66530
66663
  referenceDocPath: "find.mdx",
66531
- referenceGroup: "core"
66664
+ referenceGroup: "core",
66665
+ skipAsATool: true
66532
66666
  },
66533
66667
  getNode: {
66534
66668
  memberPath: "getNode",
@@ -66552,7 +66686,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
66552
66686
  throws: T_NOT_FOUND2
66553
66687
  }),
66554
66688
  referenceDocPath: "get-node-by-id.mdx",
66555
- referenceGroup: "core"
66689
+ referenceGroup: "core",
66690
+ essential: true
66556
66691
  },
66557
66692
  getText: {
66558
66693
  memberPath: "getText",
@@ -66561,7 +66696,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
66561
66696
  requiresDocumentContext: true,
66562
66697
  metadata: readOperation2(),
66563
66698
  referenceDocPath: "get-text.mdx",
66564
- referenceGroup: "core"
66699
+ referenceGroup: "core",
66700
+ essential: true
66565
66701
  },
66566
66702
  getMarkdown: {
66567
66703
  memberPath: "getMarkdown",
@@ -68023,7 +68159,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
68023
68159
  deterministicTargetResolution: true
68024
68160
  }),
68025
68161
  referenceDocPath: "query/match.mdx",
68026
- referenceGroup: "query"
68162
+ referenceGroup: "query",
68163
+ essential: true
68027
68164
  },
68028
68165
  "mutations.preview": {
68029
68166
  memberPath: "mutations.preview",
@@ -68052,7 +68189,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
68052
68189
  deterministicTargetResolution: true
68053
68190
  }),
68054
68191
  referenceDocPath: "mutations/apply.mdx",
68055
- referenceGroup: "mutations"
68192
+ referenceGroup: "mutations",
68193
+ essential: true
68056
68194
  },
68057
68195
  "capabilities.get": {
68058
68196
  memberPath: "capabilities",
@@ -68907,7 +69045,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
68907
69045
  throws: ["CAPABILITY_UNAVAILABLE"]
68908
69046
  }),
68909
69047
  referenceDocPath: "history/undo.mdx",
68910
- referenceGroup: "history"
69048
+ referenceGroup: "history",
69049
+ essential: true
68911
69050
  },
68912
69051
  "history.redo": {
68913
69052
  memberPath: "history.redo",
@@ -69133,8 +69272,8 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
69133
69272
  OPERATION_IDS2 = Object.freeze(Object.keys(OPERATION_DEFINITIONS2));
69134
69273
  Object.freeze(OPERATION_IDS2.filter((id) => !id.includes(".")));
69135
69274
  Object.freeze(OPERATION_IDS2.filter((id) => id.includes(".")));
69136
- COMMAND_CATALOG2 = projectFromDefinitions2((_id, entry) => entry.metadata);
69137
- OPERATION_IDS2.filter((operationId) => COMMAND_CATALOG2[operationId].mutates);
69275
+ COMMAND_CATALOG3 = projectFromDefinitions2((_id, entry) => entry.metadata);
69276
+ OPERATION_IDS2.filter((operationId) => COMMAND_CATALOG3[operationId].mutates);
69138
69277
  projectFromDefinitions2((_id, entry) => entry.description);
69139
69278
  projectFromDefinitions2((_id, entry) => entry.requiresDocumentContext);
69140
69279
  projectFromDefinitions2((_id, entry) => entry.expectedResult);
@@ -71687,61 +71826,241 @@ var init_SuperConverter_CejXSSGL_es = __esm(() => {
71687
71826
  ]);
71688
71827
  const queryMatchMetaSchema = objectSchema2({ effectiveResolved: { type: "boolean" } }, ["effectiveResolved"]);
71689
71828
  return discoveryResultSchema2({ oneOf: [textMatchItemSchema, nodeMatchItemSchema] }, queryMatchMetaSchema);
71690
- })(), objectSchema2({
71691
- expectedRevision: { type: "string" },
71692
- atomic: { const: true },
71693
- changeMode: { enum: ["direct", "tracked"] },
71694
- steps: arraySchema2({ type: "object" })
71695
- }, [
71696
- "atomic",
71697
- "changeMode",
71698
- "steps"
71699
- ]), objectSchema2({
71700
- evaluatedRevision: { type: "string" },
71701
- steps: arraySchema2({ type: "object" }),
71702
- valid: { type: "boolean" },
71703
- failures: arraySchema2({ type: "object" })
71704
- }, [
71705
- "evaluatedRevision",
71706
- "steps",
71707
- "valid"
71708
- ]), objectSchema2({
71709
- expectedRevision: { type: "string" },
71710
- atomic: { const: true },
71711
- changeMode: { enum: ["direct", "tracked"] },
71712
- steps: arraySchema2({ type: "object" })
71713
- }, [
71714
- "atomic",
71715
- "changeMode",
71716
- "steps"
71717
- ]), objectSchema2({
71718
- success: { const: true },
71719
- revision: objectSchema2({
71720
- before: { type: "string" },
71721
- after: { type: "string" }
71722
- }, ["before", "after"]),
71723
- steps: arraySchema2({ type: "object" }),
71724
- trackedChanges: arraySchema2({ type: "object" }),
71725
- timing: objectSchema2({ totalMs: { type: "number" } }, ["totalMs"])
71726
- }, [
71727
- "success",
71728
- "revision",
71729
- "steps",
71730
- "timing"
71731
- ]), objectSchema2({
71732
- success: { const: true },
71733
- revision: objectSchema2({
71734
- before: { type: "string" },
71735
- after: { type: "string" }
71736
- }, ["before", "after"]),
71737
- steps: arraySchema2({ type: "object" }),
71738
- timing: objectSchema2({ totalMs: { type: "number" } }, ["totalMs"])
71739
- }, [
71740
- "success",
71741
- "revision",
71742
- "steps",
71743
- "timing"
71744
- ]), preApplyFailureResultSchemaFor2("mutations.apply"), objectSchema2({
71829
+ })(), { ...(() => {
71830
+ const stepWhereSchema = { oneOf: [objectSchema2({
71831
+ by: {
71832
+ const: "select",
71833
+ type: "string"
71834
+ },
71835
+ select: { oneOf: [textSelectorSchema2, nodeSelectorSchema2] },
71836
+ within: nodeAddressSchema2,
71837
+ require: { enum: [
71838
+ "first",
71839
+ "exactlyOne",
71840
+ "all"
71841
+ ] }
71842
+ }, [
71843
+ "by",
71844
+ "select",
71845
+ "require"
71846
+ ]), objectSchema2({
71847
+ by: {
71848
+ const: "ref",
71849
+ type: "string"
71850
+ },
71851
+ ref: { type: "string" },
71852
+ within: nodeAddressSchema2
71853
+ }, ["by", "ref"])] };
71854
+ const insertWhereSchema = objectSchema2({
71855
+ by: {
71856
+ const: "select",
71857
+ type: "string"
71858
+ },
71859
+ select: { oneOf: [textSelectorSchema2, nodeSelectorSchema2] },
71860
+ within: nodeAddressSchema2,
71861
+ require: { enum: ["first", "exactlyOne"] }
71862
+ }, [
71863
+ "by",
71864
+ "select",
71865
+ "require"
71866
+ ]);
71867
+ const assertWhereSchema = objectSchema2({
71868
+ by: {
71869
+ const: "select",
71870
+ type: "string"
71871
+ },
71872
+ select: { oneOf: [textSelectorSchema2, nodeSelectorSchema2] },
71873
+ within: nodeAddressSchema2
71874
+ }, ["by", "select"]);
71875
+ const replacementBlockSchema = objectSchema2({ text: { type: "string" } }, ["text"]);
71876
+ const replacementPayloadSchema = { oneOf: [objectSchema2({ text: { type: "string" } }, ["text"]), objectSchema2({ blocks: arraySchema2(replacementBlockSchema) }, ["blocks"])] };
71877
+ const inlineDirectiveSchema = { enum: [...INLINE_DIRECTIVES2] };
71878
+ const setMarksSchema = objectSchema2({
71879
+ bold: inlineDirectiveSchema,
71880
+ italic: inlineDirectiveSchema,
71881
+ underline: inlineDirectiveSchema,
71882
+ strike: inlineDirectiveSchema
71883
+ });
71884
+ const stylePolicySchema = objectSchema2({
71885
+ inline: objectSchema2({
71886
+ mode: {
71887
+ enum: [
71888
+ "preserve",
71889
+ "set",
71890
+ "clear",
71891
+ "merge"
71892
+ ],
71893
+ type: "string"
71894
+ },
71895
+ requireUniform: { type: "boolean" },
71896
+ onNonUniform: { enum: [
71897
+ "error",
71898
+ "useLeadingRun",
71899
+ "majority",
71900
+ "union"
71901
+ ] },
71902
+ setMarks: setMarksSchema
71903
+ }, ["mode"]),
71904
+ paragraph: objectSchema2({ mode: {
71905
+ enum: [
71906
+ "preserve",
71907
+ "set",
71908
+ "clear"
71909
+ ],
71910
+ type: "string"
71911
+ } }, ["mode"])
71912
+ }, ["inline"]);
71913
+ const insertStylePolicySchema = objectSchema2({ inline: objectSchema2({
71914
+ mode: {
71915
+ enum: [
71916
+ "inherit",
71917
+ "set",
71918
+ "clear"
71919
+ ],
71920
+ type: "string"
71921
+ },
71922
+ setMarks: setMarksSchema
71923
+ }, ["mode"]) }, ["inline"]);
71924
+ const mutationsInputSchema = objectSchema2({
71925
+ expectedRevision: { type: "string" },
71926
+ atomic: {
71927
+ const: true,
71928
+ type: "boolean"
71929
+ },
71930
+ changeMode: { enum: ["direct", "tracked"] },
71931
+ steps: arraySchema2({ oneOf: [
71932
+ objectSchema2({
71933
+ id: { type: "string" },
71934
+ op: {
71935
+ const: "text.rewrite",
71936
+ type: "string"
71937
+ },
71938
+ where: stepWhereSchema,
71939
+ args: objectSchema2({
71940
+ replacement: replacementPayloadSchema,
71941
+ style: stylePolicySchema
71942
+ }, ["replacement"])
71943
+ }, [
71944
+ "id",
71945
+ "op",
71946
+ "where",
71947
+ "args"
71948
+ ]),
71949
+ objectSchema2({
71950
+ id: { type: "string" },
71951
+ op: {
71952
+ const: "text.insert",
71953
+ type: "string"
71954
+ },
71955
+ where: insertWhereSchema,
71956
+ args: objectSchema2({
71957
+ position: { enum: ["before", "after"] },
71958
+ content: objectSchema2({ text: { type: "string" } }, ["text"]),
71959
+ style: insertStylePolicySchema
71960
+ }, ["position", "content"])
71961
+ }, [
71962
+ "id",
71963
+ "op",
71964
+ "where",
71965
+ "args"
71966
+ ]),
71967
+ objectSchema2({
71968
+ id: { type: "string" },
71969
+ op: {
71970
+ const: "text.delete",
71971
+ type: "string"
71972
+ },
71973
+ where: stepWhereSchema,
71974
+ args: objectSchema2({})
71975
+ }, [
71976
+ "id",
71977
+ "op",
71978
+ "where",
71979
+ "args"
71980
+ ]),
71981
+ objectSchema2({
71982
+ id: { type: "string" },
71983
+ op: {
71984
+ const: "format.apply",
71985
+ type: "string"
71986
+ },
71987
+ where: stepWhereSchema,
71988
+ args: objectSchema2({ inline: buildInlineRunPatchSchema2() }, ["inline"])
71989
+ }, [
71990
+ "id",
71991
+ "op",
71992
+ "where",
71993
+ "args"
71994
+ ]),
71995
+ objectSchema2({
71996
+ id: { type: "string" },
71997
+ op: {
71998
+ const: "assert",
71999
+ type: "string"
72000
+ },
72001
+ where: assertWhereSchema,
72002
+ args: objectSchema2({ expectCount: { type: "number" } }, ["expectCount"])
72003
+ }, [
72004
+ "id",
72005
+ "op",
72006
+ "where",
72007
+ "args"
72008
+ ])
72009
+ ] })
72010
+ }, [
72011
+ "atomic",
72012
+ "changeMode",
72013
+ "steps"
72014
+ ]);
72015
+ return {
72016
+ "mutations.preview": {
72017
+ input: mutationsInputSchema,
72018
+ output: objectSchema2({
72019
+ evaluatedRevision: { type: "string" },
72020
+ steps: arraySchema2({ type: "object" }),
72021
+ valid: { type: "boolean" },
72022
+ failures: arraySchema2({ type: "object" })
72023
+ }, [
72024
+ "evaluatedRevision",
72025
+ "steps",
72026
+ "valid"
72027
+ ])
72028
+ },
72029
+ "mutations.apply": {
72030
+ input: mutationsInputSchema,
72031
+ output: objectSchema2({
72032
+ success: { const: true },
72033
+ revision: objectSchema2({
72034
+ before: { type: "string" },
72035
+ after: { type: "string" }
72036
+ }, ["before", "after"]),
72037
+ steps: arraySchema2({ type: "object" }),
72038
+ trackedChanges: arraySchema2({ type: "object" }),
72039
+ timing: objectSchema2({ totalMs: { type: "number" } }, ["totalMs"])
72040
+ }, [
72041
+ "success",
72042
+ "revision",
72043
+ "steps",
72044
+ "timing"
72045
+ ]),
72046
+ success: objectSchema2({
72047
+ success: { const: true },
72048
+ revision: objectSchema2({
72049
+ before: { type: "string" },
72050
+ after: { type: "string" }
72051
+ }, ["before", "after"]),
72052
+ steps: arraySchema2({ type: "object" }),
72053
+ timing: objectSchema2({ totalMs: { type: "number" } }, ["totalMs"])
72054
+ }, [
72055
+ "success",
72056
+ "revision",
72057
+ "steps",
72058
+ "timing"
72059
+ ]),
72060
+ failure: preApplyFailureResultSchemaFor2("mutations.apply")
72061
+ }
72062
+ };
72063
+ })() }, objectSchema2({
71745
72064
  rows: {
71746
72065
  type: "integer",
71747
72066
  minimum: 1
@@ -119798,9 +120117,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
119798
120117
  init_remark_gfm_z_sDF4ss_es();
119799
120118
  });
119800
120119
 
119801
- // ../../packages/superdoc/dist/chunks/src-B8PRu6_u.es.js
119802
- var exports_src_B8PRu6_u_es = {};
119803
- __export(exports_src_B8PRu6_u_es, {
120120
+ // ../../packages/superdoc/dist/chunks/src-BRb4tNf0.es.js
120121
+ var exports_src_BRb4tNf0_es = {};
120122
+ __export(exports_src_BRb4tNf0_es, {
119804
120123
  zt: () => defineMark,
119805
120124
  z: () => cM,
119806
120125
  yt: () => removeAwarenessStates,
@@ -129030,7 +129349,7 @@ function isCommandBackedAvailability(operationId) {
129030
129349
  function buildOperationCapabilities(editor) {
129031
129350
  const operations = {};
129032
129351
  for (const operationId of OPERATION_IDS2) {
129033
- const metadata = COMMAND_CATALOG2[operationId];
129352
+ const metadata = COMMAND_CATALOG3[operationId];
129034
129353
  const available = isOperationAvailable(editor, operationId);
129035
129354
  const tracked = available && metadata.supportsTrackedMode && hasTrackedModeCapability(editor, operationId);
129036
129355
  const dryRun = metadata.supportsDryRun && available;
@@ -195789,9 +196108,9 @@ var Node$13 = class Node$14 {
195789
196108
  trackedChanges: context.trackedChanges ?? []
195790
196109
  });
195791
196110
  }, _hoisted_1$6, _hoisted_2$2, _hoisted_3, _hoisted_4, ContextMenu_default, _hoisted_1$5, BasicUpload_default, _hoisted_1$4, MIN_WIDTH = 200, PPI = 96, alignment = "flex-end", Ruler_default, GenericPopover_default, _hoisted_1$3, _hoisted_2$1, RESIZE_HANDLE_WIDTH_PX = 9, RESIZE_HANDLE_HEIGHT_PX = 9, RESIZE_HANDLE_OFFSET_PX = 4, DRAG_OVERLAY_EXTENSION_PX = 1000, MIN_DRAG_OVERLAY_WIDTH_PX = 2000, THROTTLE_INTERVAL_MS = 16, MIN_RESIZE_DELTA_PX = 1, TableResizeOverlay_default, _hoisted_1$2, OVERLAY_EXPANSION_PX = 2000, RESIZE_HANDLE_SIZE_PX = 12, MOUSE_MOVE_THROTTLE_MS = 16, DIMENSION_CHANGE_THRESHOLD_PX = 1, Z_INDEX_OVERLAY = 10, Z_INDEX_HANDLE = 15, Z_INDEX_GUIDELINE = 20, ImageResizeOverlay_default, LINK_CLICK_DEBOUNCE_MS = 300, CURSOR_UPDATE_TIMEOUT_MS = 10, POPOVER_VERTICAL_OFFSET_PX = 15, LinkClickHandler_default, _hoisted_1$1, _hoisted_2, DOCX2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", TABLE_RESIZE_HOVER_THRESHOLD = 8, TABLE_RESIZE_THROTTLE_MS = 16, SuperEditor_default, _hoisted_1, SuperInput_default, SlashMenu, Extensions;
195792
- var init_src_B8PRu6_u_es = __esm(() => {
196111
+ var init_src_BRb4tNf0_es = __esm(() => {
195793
196112
  init_rolldown_runtime_B2q5OVn9_es();
195794
- init_SuperConverter_CejXSSGL_es();
196113
+ init_SuperConverter_JDAVdLpj_es();
195795
196114
  init_jszip_ChlR43oI_es();
195796
196115
  init_uuid_qzgm05fK_es();
195797
196116
  init_constants_CMPtQbp7_es();
@@ -204565,7 +204884,7 @@ function print() { __p += __j.call(arguments, '') }
204565
204884
  RELATIONSHIP_ID_PATTERN = /^rId(\d+)$/;
204566
204885
  HEADER_FILE_PATTERN = /^word\/header(\d+)\.xml$/;
204567
204886
  FOOTER_FILE_PATTERN = /^word\/footer(\d+)\.xml$/;
204568
- HISTORY_UNSAFE_OPS = OPERATION_IDS2.filter((id2) => COMMAND_CATALOG2[id2].historyUnsafe === true);
204887
+ HISTORY_UNSAFE_OPS = OPERATION_IDS2.filter((id2) => COMMAND_CATALOG3[id2].historyUnsafe === true);
204569
204888
  SWITCH_PATTERN = /\\([a-z])(?:\s*(?:"([^"]*)"|([^\s\\]+)))?/gi;
204570
204889
  TAB_LEADER_MAP = {
204571
204890
  dot: "dot",
@@ -227473,8 +227792,8 @@ function print() { __p += __j.call(arguments, '') }
227473
227792
  return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
227474
227793
  };
227475
227794
  stubFalse_default = stubFalse;
227476
- freeExports$2 = typeof exports_src_B8PRu6_u_es == "object" && exports_src_B8PRu6_u_es && !exports_src_B8PRu6_u_es.nodeType && exports_src_B8PRu6_u_es;
227477
- freeModule$2 = freeExports$2 && typeof module_src_B8PRu6_u_es == "object" && module_src_B8PRu6_u_es && !module_src_B8PRu6_u_es.nodeType && module_src_B8PRu6_u_es;
227795
+ freeExports$2 = typeof exports_src_BRb4tNf0_es == "object" && exports_src_BRb4tNf0_es && !exports_src_BRb4tNf0_es.nodeType && exports_src_BRb4tNf0_es;
227796
+ freeModule$2 = freeExports$2 && typeof module_src_BRb4tNf0_es == "object" && module_src_BRb4tNf0_es && !module_src_BRb4tNf0_es.nodeType && module_src_BRb4tNf0_es;
227478
227797
  Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
227479
227798
  isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
227480
227799
  typedArrayTags = {};
@@ -227482,8 +227801,8 @@ function print() { __p += __j.call(arguments, '') }
227482
227801
  typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
227483
227802
  _baseIsTypedArray_default = baseIsTypedArray;
227484
227803
  _baseUnary_default = baseUnary;
227485
- freeExports$1 = typeof exports_src_B8PRu6_u_es == "object" && exports_src_B8PRu6_u_es && !exports_src_B8PRu6_u_es.nodeType && exports_src_B8PRu6_u_es;
227486
- freeModule$1 = freeExports$1 && typeof module_src_B8PRu6_u_es == "object" && module_src_B8PRu6_u_es && !module_src_B8PRu6_u_es.nodeType && module_src_B8PRu6_u_es;
227804
+ freeExports$1 = typeof exports_src_BRb4tNf0_es == "object" && exports_src_BRb4tNf0_es && !exports_src_BRb4tNf0_es.nodeType && exports_src_BRb4tNf0_es;
227805
+ freeModule$1 = freeExports$1 && typeof module_src_BRb4tNf0_es == "object" && module_src_BRb4tNf0_es && !module_src_BRb4tNf0_es.nodeType && module_src_BRb4tNf0_es;
227487
227806
  freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
227488
227807
  _nodeUtil_default = function() {
227489
227808
  try {
@@ -227588,8 +227907,8 @@ function print() { __p += __j.call(arguments, '') }
227588
227907
  Stack.prototype.has = _stackHas_default;
227589
227908
  Stack.prototype.set = _stackSet_default;
227590
227909
  _Stack_default = Stack;
227591
- freeExports = typeof exports_src_B8PRu6_u_es == "object" && exports_src_B8PRu6_u_es && !exports_src_B8PRu6_u_es.nodeType && exports_src_B8PRu6_u_es;
227592
- freeModule = freeExports && typeof module_src_B8PRu6_u_es == "object" && module_src_B8PRu6_u_es && !module_src_B8PRu6_u_es.nodeType && module_src_B8PRu6_u_es;
227910
+ freeExports = typeof exports_src_BRb4tNf0_es == "object" && exports_src_BRb4tNf0_es && !exports_src_BRb4tNf0_es.nodeType && exports_src_BRb4tNf0_es;
227911
+ freeModule = freeExports && typeof module_src_BRb4tNf0_es == "object" && module_src_BRb4tNf0_es && !module_src_BRb4tNf0_es.nodeType && module_src_BRb4tNf0_es;
227593
227912
  Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
227594
227913
  allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
227595
227914
  _cloneBuffer_default = cloneBuffer;
@@ -235535,7 +235854,7 @@ function print() { __p += __j.call(arguments, '') }
235535
235854
  ], 6);
235536
235855
  };
235537
235856
  }
235538
- }), [["__scopeId", "data-v-ff351a2a"]]);
235857
+ }), [["__scopeId", "data-v-79f4cb59"]]);
235539
235858
  _hoisted_1 = ["innerHTML"];
235540
235859
  SuperInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
235541
235860
  __name: "SuperInput",
@@ -235669,8 +235988,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
235669
235988
 
235670
235989
  // ../../packages/superdoc/dist/super-editor.es.js
235671
235990
  var init_super_editor_es = __esm(() => {
235672
- init_src_B8PRu6_u_es();
235673
- init_SuperConverter_CejXSSGL_es();
235991
+ init_src_BRb4tNf0_es();
235992
+ init_SuperConverter_JDAVdLpj_es();
235674
235993
  init_jszip_ChlR43oI_es();
235675
235994
  init_xml_js_DLE8mr0n_es();
235676
235995
  init_constants_CMPtQbp7_es();
@@ -368748,17 +369067,18 @@ function buildHelpText() {
368748
369067
  categories.set(spec.category, list8);
368749
369068
  }
368750
369069
  const categoryOrder = [
368751
- "query",
368752
- "mutation",
369070
+ "core",
368753
369071
  "format",
368754
369072
  "create",
368755
- "blocks",
369073
+ "tables",
369074
+ "sections",
368756
369075
  "lists",
368757
369076
  "comments",
368758
369077
  "trackChanges",
368759
- "lifecycle",
368760
- "session",
368761
- "introspection"
369078
+ "toc",
369079
+ "images",
369080
+ "history",
369081
+ "session"
368762
369082
  ];
368763
369083
  for (const category of categoryOrder) {
368764
369084
  const specs = categories.get(category);
@@ -369080,8 +369400,7 @@ var init_operation_params = __esm(() => {
369080
369400
  kind: "flag",
369081
369401
  flag: "change-mode",
369082
369402
  type: "string",
369083
- schema: { oneOf: [{ const: "direct" }, { const: "tracked" }] },
369084
- agentVisible: false
369403
+ schema: { enum: ["direct", "tracked"] }
369085
369404
  };
369086
369405
  EXPECTED_REVISION_PARAM = {
369087
369406
  name: "expectedRevision",
@@ -369102,7 +369421,7 @@ var init_operation_params = __esm(() => {
369102
369421
  flag: "user-email",
369103
369422
  type: "string"
369104
369423
  };
369105
- AGENT_HIDDEN_PARAM_NAMES = new Set(["out", "expectedRevision", "changeMode", "dryRun"]);
369424
+ AGENT_HIDDEN_PARAM_NAMES = new Set(["out", "expectedRevision", "dryRun"]);
369106
369425
  OPERATION_CONSTRAINTS = {
369107
369426
  "doc.find": {
369108
369427
  requiresOneOf: [["type", "query"]],
@@ -369139,14 +369458,7 @@ var init_operation_params = __esm(() => {
369139
369458
  address: { flag: "address-json" }
369140
369459
  }
369141
369460
  };
369142
- PARAM_SCHEMA_OVERRIDES = {
369143
- "doc.mutations.preview": {
369144
- steps: { type: "json" }
369145
- },
369146
- "doc.mutations.apply": {
369147
- steps: { type: "json" }
369148
- }
369149
- };
369461
+ PARAM_SCHEMA_OVERRIDES = {};
369150
369462
  PARAM_EXCLUSIONS = {
369151
369463
  "doc.find": new Set(["select"])
369152
369464
  };
@@ -369947,6 +370259,12 @@ function validateValueAgainstTypeSpec(value2, schema, path3) {
369947
370259
  }
369948
370260
  if (schema.type === "json")
369949
370261
  return;
370262
+ if (schema.enum) {
370263
+ if (!schema.enum.includes(value2)) {
370264
+ throw new CliError("VALIDATION_ERROR", `${path3} must be one of: ${schema.enum.join(", ")}.`);
370265
+ }
370266
+ return;
370267
+ }
369950
370268
  if (schema.type === "string") {
369951
370269
  if (typeof value2 !== "string")
369952
370270
  throw new CliError("VALIDATION_ERROR", `${path3} must be a string.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.2.0-next.83",
3
+ "version": "0.2.0-next.85",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -30,11 +30,11 @@
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.83",
34
- "@superdoc-dev/cli-linux-arm64": "0.2.0-next.83",
35
- "@superdoc-dev/cli-linux-x64": "0.2.0-next.83",
36
- "@superdoc-dev/cli-windows-x64": "0.2.0-next.83",
37
- "@superdoc-dev/cli-darwin-x64": "0.2.0-next.83"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.85",
34
+ "@superdoc-dev/cli-darwin-x64": "0.2.0-next.85",
35
+ "@superdoc-dev/cli-linux-x64": "0.2.0-next.85",
36
+ "@superdoc-dev/cli-linux-arm64": "0.2.0-next.85",
37
+ "@superdoc-dev/cli-windows-x64": "0.2.0-next.85"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "bun run src/index.ts",