44 *
55 * Helper commands are NOT derived from OPERATION_DEFINITIONS. They exist
66 * only in the CLI and SDK layers, providing familiar shortcuts like
7- * `superdoc format bold` that route to `format.apply` with marks pre-filled.
7+ * `superdoc format bold` that route to `format.apply` with inline styles pre-filled.
88 *
99 * Each entry maps CLI tokens → canonical OperationId + default args to merge.
1010 * Helper commands route through the standard doc operation dispatch (read/mutation
@@ -34,7 +34,7 @@ export interface CliHelperCommand {
3434 inputTransform ?: ( input : Record < string , unknown > ) => Record < string , unknown > ;
3535}
3636
37- /** Maps a flat `--id` flag to the `target: { id }` shape expected by review .decide. */
37+ /** Maps a flat `--id` flag to the `target: { id }` shape expected by trackChanges .decide. */
3838function mapIdToTarget ( input : Record < string , unknown > ) : Record < string , unknown > {
3939 if ( typeof input . id === 'string' && input . target === undefined ) {
4040 const { id, ...rest } = input ;
@@ -44,7 +44,7 @@ function mapIdToTarget(input: Record<string, unknown>): Record<string, unknown>
4444}
4545
4646/**
47- * Format helper commands — map `format <mark>` to `format.apply` with pre-filled marks .
47+ * Format helper commands — map `format <mark>` to `format.apply` with pre-filled inline styles .
4848 * These keep `superdoc format bold|italic|underline|strikethrough` as ergonomic
4949 * shortcuts over the canonical `format.apply` contract operation.
5050 */
@@ -53,7 +53,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
5353 {
5454 tokens : [ 'format' , 'bold' ] ,
5555 canonicalOperationId : 'format.apply' ,
56- defaultInput : { marks : { bold : true } } ,
56+ defaultInput : { inline : { bold : true } } ,
5757 description : 'Apply bold formatting to a text range.' ,
5858 category : 'format' ,
5959 mutates : true ,
@@ -65,7 +65,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
6565 {
6666 tokens : [ 'format' , 'italic' ] ,
6767 canonicalOperationId : 'format.apply' ,
68- defaultInput : { marks : { italic : true } } ,
68+ defaultInput : { inline : { italic : true } } ,
6969 description : 'Apply italic formatting to a text range.' ,
7070 category : 'format' ,
7171 mutates : true ,
@@ -74,7 +74,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
7474 {
7575 tokens : [ 'format' , 'underline' ] ,
7676 canonicalOperationId : 'format.apply' ,
77- defaultInput : { marks : { underline : true } } ,
77+ defaultInput : { inline : { underline : true } } ,
7878 description : 'Apply underline formatting to a text range.' ,
7979 category : 'format' ,
8080 mutates : true ,
@@ -83,16 +83,16 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
8383 {
8484 tokens : [ 'format' , 'strikethrough' ] ,
8585 canonicalOperationId : 'format.apply' ,
86- defaultInput : { marks : { strike : true } } ,
86+ defaultInput : { inline : { strike : true } } ,
8787 description : 'Apply strikethrough formatting to a text range.' ,
8888 category : 'format' ,
8989 mutates : true ,
9090 examples : [ 'superdoc format strikethrough --blockId p1 --start 0 --end 5' ] ,
9191 } ,
92- // --- Track-changes review helpers (route to review .decide) ---
92+ // --- Track-changes review helpers (route to trackChanges .decide) ---
9393 {
9494 tokens : [ 'track-changes' , 'accept' ] ,
95- canonicalOperationId : 'review .decide' ,
95+ canonicalOperationId : 'trackChanges .decide' ,
9696 defaultInput : { decision : 'accept' } ,
9797 description : 'Accept a tracked change by ID.' ,
9898 category : 'trackChanges' ,
@@ -103,7 +103,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
103103 } ,
104104 {
105105 tokens : [ 'track-changes' , 'reject' ] ,
106- canonicalOperationId : 'review .decide' ,
106+ canonicalOperationId : 'trackChanges .decide' ,
107107 defaultInput : { decision : 'reject' } ,
108108 description : 'Reject a tracked change by ID.' ,
109109 category : 'trackChanges' ,
@@ -114,7 +114,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
114114 } ,
115115 {
116116 tokens : [ 'track-changes' , 'accept-all' ] ,
117- canonicalOperationId : 'review .decide' ,
117+ canonicalOperationId : 'trackChanges .decide' ,
118118 defaultInput : { decision : 'accept' , target : { scope : 'all' } } ,
119119 description : 'Accept all tracked changes.' ,
120120 category : 'trackChanges' ,
@@ -123,7 +123,7 @@ export const CLI_HELPER_COMMANDS: readonly CliHelperCommand[] = [
123123 } ,
124124 {
125125 tokens : [ 'track-changes' , 'reject-all' ] ,
126- canonicalOperationId : 'review .decide' ,
126+ canonicalOperationId : 'trackChanges .decide' ,
127127 defaultInput : { decision : 'reject' , target : { scope : 'all' } } ,
128128 description : 'Reject all tracked changes.' ,
129129 category : 'trackChanges' ,
0 commit comments