@@ -16,7 +16,7 @@ import { resolve, dirname } from 'node:path';
1616import { createHash } from 'node:crypto' ;
1717import { tmpdir } from 'node:os' ;
1818
19- import { COMMAND_CATALOG } from '@superdoc/document-api' ;
19+ import { COMMAND_CATALOG , INLINE_PROPERTY_REGISTRY } from '@superdoc/document-api' ;
2020
2121import { CLI_OPERATION_METADATA } from '../src/cli/operation-params' ;
2222import {
@@ -60,12 +60,35 @@ const INTENT_NAMES = {
6060 'doc.delete' : 'delete_content' ,
6161 'doc.blocks.delete' : 'delete_block' ,
6262 'doc.format.apply' : 'format_apply' ,
63- 'doc.format.fontSize' : 'format_font_size' ,
64- 'doc.format.fontFamily' : 'format_font_family' ,
65- 'doc.format.color' : 'format_color' ,
63+ ...Object . fromEntries (
64+ INLINE_PROPERTY_REGISTRY . map ( ( entry ) => [
65+ `doc.format.${ entry . key } ` ,
66+ `format_${ entry . key . replace ( / [ A - Z ] / g, ( char ) => `_${ char . toLowerCase ( ) } ` ) } ` ,
67+ ] ) ,
68+ ) ,
6669 'doc.format.align' : 'format_align' ,
70+ 'doc.styles.apply' : 'styles_apply' ,
6771 'doc.create.paragraph' : 'create_paragraph' ,
6872 'doc.create.heading' : 'create_heading' ,
73+ 'doc.create.sectionBreak' : 'create_section_break' ,
74+ 'doc.sections.list' : 'list_sections' ,
75+ 'doc.sections.get' : 'get_section' ,
76+ 'doc.sections.setBreakType' : 'set_section_break_type' ,
77+ 'doc.sections.setPageMargins' : 'set_section_page_margins' ,
78+ 'doc.sections.setHeaderFooterMargins' : 'set_section_header_footer_margins' ,
79+ 'doc.sections.setPageSetup' : 'set_section_page_setup' ,
80+ 'doc.sections.setColumns' : 'set_section_columns' ,
81+ 'doc.sections.setLineNumbering' : 'set_section_line_numbering' ,
82+ 'doc.sections.setPageNumbering' : 'set_section_page_numbering' ,
83+ 'doc.sections.setTitlePage' : 'set_section_title_page' ,
84+ 'doc.sections.setOddEvenHeadersFooters' : 'set_section_odd_even_headers_footers' ,
85+ 'doc.sections.setVerticalAlign' : 'set_section_vertical_align' ,
86+ 'doc.sections.setSectionDirection' : 'set_section_direction' ,
87+ 'doc.sections.setHeaderFooterRef' : 'set_section_header_footer_reference' ,
88+ 'doc.sections.clearHeaderFooterRef' : 'clear_section_header_footer_reference' ,
89+ 'doc.sections.setLinkToPrevious' : 'set_section_link_to_previous' ,
90+ 'doc.sections.setPageBorders' : 'set_section_page_borders' ,
91+ 'doc.sections.clearPageBorders' : 'clear_section_page_borders' ,
6992 'doc.lists.list' : 'list_lists' ,
7093 'doc.lists.get' : 'get_list' ,
7194 'doc.lists.insert' : 'insert_list' ,
@@ -85,6 +108,46 @@ const INTENT_NAMES = {
85108 'doc.query.match' : 'query_match' ,
86109 'doc.mutations.preview' : 'preview_mutations' ,
87110 'doc.mutations.apply' : 'apply_mutations' ,
111+ 'doc.create.table' : 'create_table' ,
112+ 'doc.tables.convertFromText' : 'convert_text_to_table' ,
113+ 'doc.tables.delete' : 'delete_table' ,
114+ 'doc.tables.clearContents' : 'clear_table_contents' ,
115+ 'doc.tables.move' : 'move_table' ,
116+ 'doc.tables.split' : 'split_table' ,
117+ 'doc.tables.convertToText' : 'convert_table_to_text' ,
118+ 'doc.tables.setLayout' : 'set_table_layout' ,
119+ 'doc.tables.insertRow' : 'insert_table_row' ,
120+ 'doc.tables.deleteRow' : 'delete_table_row' ,
121+ 'doc.tables.setRowHeight' : 'set_table_row_height' ,
122+ 'doc.tables.distributeRows' : 'distribute_table_rows' ,
123+ 'doc.tables.setRowOptions' : 'set_table_row_options' ,
124+ 'doc.tables.insertColumn' : 'insert_table_column' ,
125+ 'doc.tables.deleteColumn' : 'delete_table_column' ,
126+ 'doc.tables.setColumnWidth' : 'set_table_column_width' ,
127+ 'doc.tables.distributeColumns' : 'distribute_table_columns' ,
128+ 'doc.tables.insertCell' : 'insert_table_cell' ,
129+ 'doc.tables.deleteCell' : 'delete_table_cell' ,
130+ 'doc.tables.mergeCells' : 'merge_table_cells' ,
131+ 'doc.tables.unmergeCells' : 'unmerge_table_cells' ,
132+ 'doc.tables.splitCell' : 'split_table_cell' ,
133+ 'doc.tables.setCellProperties' : 'set_table_cell_properties' ,
134+ 'doc.tables.sort' : 'sort_table' ,
135+ 'doc.tables.setAltText' : 'set_table_alt_text' ,
136+ 'doc.tables.setStyle' : 'set_table_style' ,
137+ 'doc.tables.clearStyle' : 'clear_table_style' ,
138+ 'doc.tables.setStyleOption' : 'set_table_style_option' ,
139+ 'doc.tables.setBorder' : 'set_table_border' ,
140+ 'doc.tables.clearBorder' : 'clear_table_border' ,
141+ 'doc.tables.applyBorderPreset' : 'apply_table_border_preset' ,
142+ 'doc.tables.setShading' : 'set_table_shading' ,
143+ 'doc.tables.clearShading' : 'clear_table_shading' ,
144+ 'doc.tables.setTablePadding' : 'set_table_padding' ,
145+ 'doc.tables.setCellPadding' : 'set_table_cell_padding' ,
146+ 'doc.tables.setCellSpacing' : 'set_table_cell_spacing' ,
147+ 'doc.tables.clearCellSpacing' : 'clear_table_cell_spacing' ,
148+ 'doc.tables.get' : 'get_table' ,
149+ 'doc.tables.getCells' : 'get_table_cells' ,
150+ 'doc.tables.getProperties' : 'get_table_properties' ,
88151} as const satisfies Record < DocBackedCliOpId , string > ;
89152
90153// ---------------------------------------------------------------------------
0 commit comments