revise 2.2.0 → 3.0.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +56 -1182
  2. package/LICENSE +24 -41
  3. package/README.md +103 -26
  4. package/agent.d.ts +139 -0
  5. package/chunks/chunk-U5X47PZ6.js +135 -0
  6. package/chunks/chunk-U6YKQBKL.js +15 -0
  7. package/chunks/chunk-ZLQVPMBN.js +1650 -0
  8. package/chunks/package-5SHL5FOJ.js +14 -0
  9. package/chunks/render-QD5VWKSV.js +109 -0
  10. package/cli-output.schema.json +1984 -0
  11. package/cli.js +3609 -0
  12. package/document.d.ts +320 -0
  13. package/docx.d.ts +73 -0
  14. package/errors.d.ts +14 -0
  15. package/index.d.ts +13 -975
  16. package/index.js +31 -1
  17. package/legacy/editor.d.ts +19 -0
  18. package/legacy/editor.js +16 -0
  19. package/legacy/server.d.ts +37 -0
  20. package/legacy/server.js +25 -0
  21. package/legacy/style.css +2 -0
  22. package/package.d.ts +23 -0
  23. package/package.json +49 -55
  24. package/render.d.ts +27 -0
  25. package/FONT-LICENSE-HAN-EXT-B.txt +0 -91
  26. package/FONT-LICENSE-KATEX.txt +0 -95
  27. package/FONT-LICENSE-LIBERATION.txt +0 -102
  28. package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +0 -93
  29. package/FONT-LICENSE-NOTO-SANS-SC.txt +0 -93
  30. package/FONT-LICENSE-NOTO.txt +0 -94
  31. package/FONT-LICENSE-SOURCE-CODE-PRO.txt +0 -94
  32. package/FONT-LICENSE-SOURCE-SERIF-4.txt +0 -93
  33. package/THIRD-PARTY-NOTICES.md +0 -3376
  34. package/assets/historyMaterializeWorker-B51R08XN.js +0 -612
  35. package/backend.d.ts +0 -161
  36. package/backend.js +0 -3
  37. package/chunks/AgentPageRenderer-CH8kSTJn.js +0 -1
  38. package/chunks/AgentPageRenderer-P23XVguo.js +0 -1
  39. package/chunks/AttachmentDocumentImporter-B1WOaa7d.js +0 -1
  40. package/chunks/AttachmentDocumentImporter-CT_PJp_e.js +0 -1
  41. package/chunks/BidiText-Swm5fl9J.js +0 -160
  42. package/chunks/ColorParserFull-BKH72fK8.js +0 -446
  43. package/chunks/DocumentMutator-btiDK57e.js +0 -31
  44. package/chunks/DocumentScrubber-CMPfm_HF.js +0 -18
  45. package/chunks/DocumentScrubber-Cm2kH8op.js +0 -1
  46. package/chunks/DocumentScrubber-bJoKijol.js +0 -1
  47. package/chunks/DocumentStylesheet-DreoD7sD.js +0 -7
  48. package/chunks/DocxConverter-BcVG-p5K.js +0 -13
  49. package/chunks/DocxConverter-D2bO5RE-.js +0 -1125
  50. package/chunks/DocxConverter-haCfRuWb.js +0 -13
  51. package/chunks/DocxGraft-BRKh4mHQ.js +0 -1
  52. package/chunks/DocxGraft-BxSQtl12.js +0 -7
  53. package/chunks/DocxGraft-C9MBQCnf.js +0 -1
  54. package/chunks/FileImporter-CszqRfVU.js +0 -1
  55. package/chunks/FileImporter-DObFoCCn.js +0 -1
  56. package/chunks/HorizontalRuleOrnaments-gmUZ3R7Q.js +0 -3
  57. package/chunks/HtmlConverter-DwXB4IDh.js +0 -267
  58. package/chunks/ListNumbering-Qlu6AuRZ.js +0 -23
  59. package/chunks/MarkdownConverter-CUC8GgsS.js +0 -57
  60. package/chunks/MathRenderer-DT6GyJXb.js +0 -68
  61. package/chunks/OdtConverter-7h9HHMpL.js +0 -125
  62. package/chunks/OdtConverter-Ct4qypJk.js +0 -6
  63. package/chunks/OdtConverter-DFl__sJc.js +0 -6
  64. package/chunks/OfficeImportShared-BY6FdZ8d.js +0 -1
  65. package/chunks/OfficeImportShared-BrZoDM0j.js +0 -30
  66. package/chunks/OfficeImportShared-Bvm-mOyj.js +0 -1
  67. package/chunks/ParagraphDiffAnalysis-DrmStvmz.js +0 -36
  68. package/chunks/PdfConverter-1wyvoT7X.js +0 -21
  69. package/chunks/PdfConverter-BAoEHILo.js +0 -21
  70. package/chunks/PdfConverter-CKEvFj11.js +0 -448
  71. package/chunks/PdfImportService-BhLPp5uG.js +0 -2
  72. package/chunks/PdfImportService-xbzrN__L.js +0 -2
  73. package/chunks/RtfConverter-Bxn-enp8.js +0 -15
  74. package/chunks/RtfConverter-LZPzBDSr.js +0 -15
  75. package/chunks/RtfConverter-_bacXqr1.js +0 -186
  76. package/chunks/TableBorders-CwnF3jvH.js +0 -30
  77. package/chunks/TableGrid-DbroRucl.js +0 -12
  78. package/chunks/TextFileDecoder--rsVs3NR.js +0 -9
  79. package/chunks/TxtConverter-C7FOwHpH.js +0 -14
  80. package/chunks/UnicodeUtils-CXtusU4g.js +0 -10
  81. package/chunks/XmlConverter-7oo8oeQB.js +0 -2
  82. package/chunks/XmlConverter-DGORHJcZ.js +0 -96
  83. package/chunks/XmlConverter-DeLHReK_.js +0 -2
  84. package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
  85. package/chunks/_commonjsHelpers-DaMA6jEr.js +0 -2
  86. package/chunks/_revise-sdk-lazy-harfbuzz-CDWdjF9f.js +0 -1
  87. package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +0 -1
  88. package/chunks/ar-ComXvtmh.js +0 -13
  89. package/chunks/backend-DecaBz-I.js +0 -490
  90. package/chunks/base64-sSPOzq-u.js +0 -198
  91. package/chunks/browser-module-CFmqfGkE.js +0 -1791
  92. package/chunks/browser-module-Dj5o3kuL.js +0 -3
  93. package/chunks/browser-module-UuM_O36W.js +0 -3
  94. package/chunks/bundle.min-DRpfgV69.js +0 -782
  95. package/chunks/capture-1btcWcPF.js +0 -9
  96. package/chunks/carrier-DQeng6yq.js +0 -6
  97. package/chunks/de-BkbpIKxx.js +0 -13
  98. package/chunks/es-CKkXujOF.js +0 -13
  99. package/chunks/fil-piIHMc8F.js +0 -13
  100. package/chunks/footnoteFlatten-DUQticYy.js +0 -6
  101. package/chunks/fr-DuA8qLje.js +0 -13
  102. package/chunks/graftExport-CYnStOdU.js +0 -82
  103. package/chunks/html2canvas.esm-CntiHiYW.js +0 -997
  104. package/chunks/index-2TBhRkX7.js +0 -387
  105. package/chunks/index-BWdRWxoH.js +0 -1807
  106. package/chunks/index-Bf14eTEW.js +0 -1096
  107. package/chunks/index-BwcX_r62.js +0 -387
  108. package/chunks/index.es-CI0QPo8w.js +0 -780
  109. package/chunks/index.es-CI7cDExj.js +0 -5
  110. package/chunks/index.es-DHpGt6Y5.js +0 -5
  111. package/chunks/ja-DgrSs555.js +0 -13
  112. package/chunks/jspdf.es.min--GshOuIm.js +0 -77
  113. package/chunks/jspdf.es.min-DU74zN8b.js +0 -1792
  114. package/chunks/jspdf.es.min-DurJZ1zW.js +0 -77
  115. package/chunks/jszip.min-CPW0h1Kx.js +0 -476
  116. package/chunks/katex-DWj8TvwO.js +0 -1462
  117. package/chunks/pdf-BLWDCiFF.js +0 -1828
  118. package/chunks/persistInlineDocumentImages-DQj2iaqg.js +0 -1
  119. package/chunks/pseudoLocale-BoYTjmiK.js +0 -1
  120. package/chunks/pseudoLocale-DG2NnZmz.js +0 -1
  121. package/chunks/purify.es-BwLardii.js +0 -107
  122. package/chunks/serverDocumentSession-CJ1EH3Tp.js +0 -15
  123. package/chunks/signatures-Bwt_OGik.js +0 -17
  124. package/chunks/suggestionAuthorship-B-IuLQlE.js +0 -1
  125. package/chunks/tree-sitter-D6zWWUMP.js +0 -4
  126. package/chunks/wasmInline.generated-CBYFkdSM.js +0 -1
  127. package/chunks/web-tree-sitter-BXGZGnNj.js +0 -2
  128. package/chunks/zh-9OF3SWWO.js +0 -13
  129. package/full.js +0 -1
  130. package/root.d.ts +0 -5
  131. package/root.js +0 -2
  132. package/serverToolContract.d.ts +0 -391
  133. package/serverToolInputs.generated.d.ts +0 -250
  134. package/style.css +0 -1
@@ -0,0 +1,1984 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:revise:cli-output:1",
4
+ "title": "revise --json output, schema 1",
5
+ "description": "One envelope per invocation. Fields may be added within schema 1; consumers ignore unknown fields.",
6
+ "type": "object",
7
+ "required": ["schema", "ok", "command", "meta", "data", "warnings", "error"],
8
+ "properties": {
9
+ "schema": {
10
+ "const": 1
11
+ },
12
+ "ok": {
13
+ "type": "boolean"
14
+ },
15
+ "command": {
16
+ "type": ["string", "null"],
17
+ "enum": [
18
+ "status",
19
+ "outline",
20
+ "read",
21
+ "grep",
22
+ "search",
23
+ "replace-text",
24
+ "call",
25
+ "tools",
26
+ "mode",
27
+ "changes",
28
+ "diff",
29
+ "accept",
30
+ "reject",
31
+ "history",
32
+ "undo",
33
+ "restore",
34
+ "render",
35
+ "export",
36
+ "new",
37
+ "compare",
38
+ "convert",
39
+ "xml ls",
40
+ "xml cat",
41
+ "xml patch",
42
+ "examples",
43
+ "skill",
44
+ "skill install",
45
+ "help",
46
+ "version",
47
+ null
48
+ ]
49
+ },
50
+ "meta": {
51
+ "type": "object",
52
+ "required": ["version", "build"],
53
+ "properties": {
54
+ "version": {
55
+ "type": "string"
56
+ },
57
+ "build": {
58
+ "type": ["string", "null"]
59
+ }
60
+ }
61
+ },
62
+ "data": {
63
+ "type": ["object", "null"]
64
+ },
65
+ "warnings": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "#/$defs/problem"
69
+ }
70
+ },
71
+ "error": {
72
+ "oneOf": [
73
+ {
74
+ "type": "null"
75
+ },
76
+ {
77
+ "$ref": "#/$defs/error"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ "allOf": [
83
+ {
84
+ "if": {
85
+ "properties": {
86
+ "ok": {
87
+ "const": true
88
+ }
89
+ }
90
+ },
91
+ "then": {
92
+ "properties": {
93
+ "error": {
94
+ "type": "null"
95
+ },
96
+ "data": {
97
+ "type": "object"
98
+ }
99
+ }
100
+ },
101
+ "else": {
102
+ "properties": {
103
+ "error": {
104
+ "type": "object"
105
+ }
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "if": {
111
+ "$ref": "#/$defs/is-status"
112
+ },
113
+ "then": {
114
+ "$ref": "#/$defs/dataOf-status"
115
+ }
116
+ },
117
+ {
118
+ "if": {
119
+ "$ref": "#/$defs/is-outline"
120
+ },
121
+ "then": {
122
+ "$ref": "#/$defs/dataOf-outline"
123
+ }
124
+ },
125
+ {
126
+ "if": {
127
+ "$ref": "#/$defs/is-grep"
128
+ },
129
+ "then": {
130
+ "$ref": "#/$defs/dataOf-grep"
131
+ }
132
+ },
133
+ {
134
+ "if": {
135
+ "$ref": "#/$defs/is-tool"
136
+ },
137
+ "then": {
138
+ "$ref": "#/$defs/dataOf-tool"
139
+ }
140
+ },
141
+ {
142
+ "if": {
143
+ "$ref": "#/$defs/is-call"
144
+ },
145
+ "then": {
146
+ "$ref": "#/$defs/dataOf-call"
147
+ }
148
+ },
149
+ {
150
+ "if": {
151
+ "$ref": "#/$defs/is-replace-text"
152
+ },
153
+ "then": {
154
+ "$ref": "#/$defs/dataOf-replace-text"
155
+ }
156
+ },
157
+ {
158
+ "if": {
159
+ "$ref": "#/$defs/is-tools"
160
+ },
161
+ "then": {
162
+ "$ref": "#/$defs/dataOf-tools"
163
+ }
164
+ },
165
+ {
166
+ "if": {
167
+ "$ref": "#/$defs/is-mode"
168
+ },
169
+ "then": {
170
+ "$ref": "#/$defs/dataOf-mode"
171
+ }
172
+ },
173
+ {
174
+ "if": {
175
+ "$ref": "#/$defs/is-changes"
176
+ },
177
+ "then": {
178
+ "$ref": "#/$defs/dataOf-changes"
179
+ }
180
+ },
181
+ {
182
+ "if": {
183
+ "$ref": "#/$defs/is-settle"
184
+ },
185
+ "then": {
186
+ "$ref": "#/$defs/dataOf-settle"
187
+ }
188
+ },
189
+ {
190
+ "if": {
191
+ "$ref": "#/$defs/is-diff"
192
+ },
193
+ "then": {
194
+ "$ref": "#/$defs/dataOf-diff"
195
+ }
196
+ },
197
+ {
198
+ "if": {
199
+ "$ref": "#/$defs/is-history"
200
+ },
201
+ "then": {
202
+ "$ref": "#/$defs/dataOf-history"
203
+ }
204
+ },
205
+ {
206
+ "if": {
207
+ "$ref": "#/$defs/is-undo"
208
+ },
209
+ "then": {
210
+ "$ref": "#/$defs/dataOf-undo"
211
+ }
212
+ },
213
+ {
214
+ "if": {
215
+ "$ref": "#/$defs/is-render"
216
+ },
217
+ "then": {
218
+ "$ref": "#/$defs/dataOf-render"
219
+ }
220
+ },
221
+ {
222
+ "if": {
223
+ "$ref": "#/$defs/is-export"
224
+ },
225
+ "then": {
226
+ "$ref": "#/$defs/dataOf-export"
227
+ }
228
+ },
229
+ {
230
+ "if": {
231
+ "$ref": "#/$defs/is-new"
232
+ },
233
+ "then": {
234
+ "$ref": "#/$defs/dataOf-new"
235
+ }
236
+ },
237
+ {
238
+ "if": {
239
+ "$ref": "#/$defs/is-compare"
240
+ },
241
+ "then": {
242
+ "$ref": "#/$defs/dataOf-compare"
243
+ }
244
+ },
245
+ {
246
+ "if": {
247
+ "$ref": "#/$defs/is-convert"
248
+ },
249
+ "then": {
250
+ "$ref": "#/$defs/dataOf-convert"
251
+ }
252
+ },
253
+ {
254
+ "if": {
255
+ "$ref": "#/$defs/is-xml-ls"
256
+ },
257
+ "then": {
258
+ "$ref": "#/$defs/dataOf-xml-ls"
259
+ }
260
+ },
261
+ {
262
+ "if": {
263
+ "$ref": "#/$defs/is-xml-cat"
264
+ },
265
+ "then": {
266
+ "$ref": "#/$defs/dataOf-xml-cat"
267
+ }
268
+ },
269
+ {
270
+ "if": {
271
+ "$ref": "#/$defs/is-xml-patch"
272
+ },
273
+ "then": {
274
+ "$ref": "#/$defs/dataOf-xml-patch"
275
+ }
276
+ },
277
+ {
278
+ "if": {
279
+ "$ref": "#/$defs/is-examples"
280
+ },
281
+ "then": {
282
+ "$ref": "#/$defs/dataOf-examples"
283
+ }
284
+ },
285
+ {
286
+ "if": {
287
+ "$ref": "#/$defs/is-skill"
288
+ },
289
+ "then": {
290
+ "$ref": "#/$defs/dataOf-skill"
291
+ }
292
+ },
293
+ {
294
+ "if": {
295
+ "$ref": "#/$defs/is-skill-install"
296
+ },
297
+ "then": {
298
+ "$ref": "#/$defs/dataOf-skill-install"
299
+ }
300
+ },
301
+ {
302
+ "if": {
303
+ "$ref": "#/$defs/is-help"
304
+ },
305
+ "then": {
306
+ "$ref": "#/$defs/dataOf-help"
307
+ }
308
+ },
309
+ {
310
+ "if": {
311
+ "$ref": "#/$defs/is-version"
312
+ },
313
+ "then": {
314
+ "$ref": "#/$defs/dataOf-version"
315
+ }
316
+ }
317
+ ],
318
+ "$defs": {
319
+ "path": {
320
+ "type": "string",
321
+ "description": "An absolute filesystem path."
322
+ },
323
+ "count": {
324
+ "type": "integer",
325
+ "minimum": 0
326
+ },
327
+ "strings": {
328
+ "type": "array",
329
+ "items": {
330
+ "type": "string"
331
+ }
332
+ },
333
+ "details": {
334
+ "type": ["object", "null"]
335
+ },
336
+ "problem": {
337
+ "type": "object",
338
+ "required": ["code", "message", "details"],
339
+ "properties": {
340
+ "code": {
341
+ "type": "string"
342
+ },
343
+ "message": {
344
+ "type": "string"
345
+ },
346
+ "details": {
347
+ "$ref": "#/$defs/details"
348
+ }
349
+ }
350
+ },
351
+ "error": {
352
+ "type": "object",
353
+ "required": ["code", "message", "hint", "details"],
354
+ "properties": {
355
+ "code": {
356
+ "type": "string"
357
+ },
358
+ "message": {
359
+ "type": "string"
360
+ },
361
+ "hint": {
362
+ "type": ["string", "null"]
363
+ },
364
+ "details": {
365
+ "$ref": "#/$defs/details"
366
+ }
367
+ }
368
+ },
369
+ "mode": {
370
+ "enum": ["suggest", "edit"]
371
+ },
372
+ "format": {
373
+ "enum": ["docx", "pdf", "md", "html", "txt"]
374
+ },
375
+ "summary": {
376
+ "type": "object",
377
+ "required": [
378
+ "pageCount",
379
+ "wordCount",
380
+ "pageSize",
381
+ "orientation",
382
+ "pageInches",
383
+ "marginsInches",
384
+ "title",
385
+ "headingCounts",
386
+ "lists",
387
+ "tables",
388
+ "imageCount",
389
+ "headersFooters",
390
+ "trackedChangeCount"
391
+ ],
392
+ "properties": {
393
+ "pageCount": {
394
+ "type": ["integer", "null"]
395
+ },
396
+ "wordCount": {
397
+ "$ref": "#/$defs/count"
398
+ },
399
+ "pageSize": {
400
+ "type": "string"
401
+ },
402
+ "orientation": {
403
+ "enum": ["portrait", "landscape"]
404
+ },
405
+ "pageInches": {
406
+ "type": "object",
407
+ "required": ["width", "height"],
408
+ "properties": {
409
+ "width": {
410
+ "type": "number"
411
+ },
412
+ "height": {
413
+ "type": "number"
414
+ }
415
+ }
416
+ },
417
+ "marginsInches": {
418
+ "type": "object",
419
+ "required": ["top", "right", "bottom", "left"],
420
+ "properties": {
421
+ "top": {
422
+ "type": "number"
423
+ },
424
+ "right": {
425
+ "type": "number"
426
+ },
427
+ "bottom": {
428
+ "type": "number"
429
+ },
430
+ "left": {
431
+ "type": "number"
432
+ }
433
+ }
434
+ },
435
+ "title": {
436
+ "type": ["string", "null"]
437
+ },
438
+ "headingCounts": {
439
+ "type": "object",
440
+ "description": "Headings per level: {\"H1\": 2, \"H2\": 5}.",
441
+ "additionalProperties": {
442
+ "$ref": "#/$defs/count"
443
+ }
444
+ },
445
+ "lists": {
446
+ "type": "array",
447
+ "items": {
448
+ "type": "object",
449
+ "required": ["itemCount"],
450
+ "properties": {
451
+ "itemCount": {
452
+ "$ref": "#/$defs/count"
453
+ }
454
+ }
455
+ }
456
+ },
457
+ "tables": {
458
+ "type": "array",
459
+ "items": {
460
+ "type": "object",
461
+ "required": ["rowCount", "columnCount"],
462
+ "properties": {
463
+ "rowCount": {
464
+ "$ref": "#/$defs/count"
465
+ },
466
+ "columnCount": {
467
+ "$ref": "#/$defs/count"
468
+ }
469
+ }
470
+ }
471
+ },
472
+ "imageCount": {
473
+ "$ref": "#/$defs/count"
474
+ },
475
+ "headersFooters": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "object",
479
+ "required": ["side", "slot", "text"],
480
+ "properties": {
481
+ "side": {
482
+ "enum": ["header", "footer"]
483
+ },
484
+ "slot": {
485
+ "type": "string"
486
+ },
487
+ "text": {
488
+ "type": "string"
489
+ }
490
+ }
491
+ }
492
+ },
493
+ "trackedChangeCount": {
494
+ "$ref": "#/$defs/count"
495
+ }
496
+ }
497
+ },
498
+ "option": {
499
+ "type": "object",
500
+ "required": ["flag", "description"],
501
+ "properties": {
502
+ "flag": {
503
+ "type": "string"
504
+ },
505
+ "description": {
506
+ "type": "string"
507
+ }
508
+ }
509
+ },
510
+ "commandHelp": {
511
+ "type": "object",
512
+ "required": ["name", "usage", "summary", "options"],
513
+ "properties": {
514
+ "name": {
515
+ "type": "string"
516
+ },
517
+ "usage": {
518
+ "type": "string"
519
+ },
520
+ "summary": {
521
+ "type": "string"
522
+ },
523
+ "options": {
524
+ "type": "array",
525
+ "items": {
526
+ "$ref": "#/$defs/option"
527
+ }
528
+ }
529
+ }
530
+ },
531
+ "is-status": {
532
+ "properties": {
533
+ "command": {
534
+ "const": "status"
535
+ },
536
+ "data": {
537
+ "type": "object"
538
+ }
539
+ },
540
+ "required": ["data"]
541
+ },
542
+ "is-outline": {
543
+ "properties": {
544
+ "command": {
545
+ "const": "outline"
546
+ },
547
+ "data": {
548
+ "type": "object"
549
+ }
550
+ },
551
+ "required": ["data"]
552
+ },
553
+ "is-grep": {
554
+ "properties": {
555
+ "command": {
556
+ "const": "grep"
557
+ },
558
+ "data": {
559
+ "type": "object"
560
+ }
561
+ },
562
+ "required": ["data"]
563
+ },
564
+ "is-tool": {
565
+ "properties": {
566
+ "command": {
567
+ "enum": ["read", "search"]
568
+ },
569
+ "data": {
570
+ "type": "object"
571
+ }
572
+ },
573
+ "required": ["data"]
574
+ },
575
+ "is-replace-text": {
576
+ "properties": {
577
+ "command": {
578
+ "const": "replace-text"
579
+ },
580
+ "data": {
581
+ "type": "object"
582
+ }
583
+ },
584
+ "required": ["data"]
585
+ },
586
+ "is-tools": {
587
+ "properties": {
588
+ "command": {
589
+ "const": "tools"
590
+ },
591
+ "data": {
592
+ "type": "object"
593
+ }
594
+ },
595
+ "required": ["data"]
596
+ },
597
+ "is-mode": {
598
+ "properties": {
599
+ "command": {
600
+ "const": "mode"
601
+ },
602
+ "data": {
603
+ "type": "object"
604
+ }
605
+ },
606
+ "required": ["data"]
607
+ },
608
+ "is-changes": {
609
+ "properties": {
610
+ "command": {
611
+ "const": "changes"
612
+ },
613
+ "data": {
614
+ "type": "object"
615
+ }
616
+ },
617
+ "required": ["data"]
618
+ },
619
+ "is-settle": {
620
+ "properties": {
621
+ "command": {
622
+ "enum": ["accept", "reject"]
623
+ },
624
+ "data": {
625
+ "type": "object"
626
+ }
627
+ },
628
+ "required": ["data"]
629
+ },
630
+ "is-diff": {
631
+ "properties": {
632
+ "command": {
633
+ "const": "diff"
634
+ },
635
+ "data": {
636
+ "type": "object"
637
+ }
638
+ },
639
+ "required": ["data"]
640
+ },
641
+ "is-history": {
642
+ "properties": {
643
+ "command": {
644
+ "const": "history"
645
+ },
646
+ "data": {
647
+ "type": "object"
648
+ }
649
+ },
650
+ "required": ["data"]
651
+ },
652
+ "is-undo": {
653
+ "properties": {
654
+ "command": {
655
+ "enum": ["undo", "restore"]
656
+ },
657
+ "data": {
658
+ "type": "object"
659
+ }
660
+ },
661
+ "required": ["data"]
662
+ },
663
+ "is-render": {
664
+ "properties": {
665
+ "command": {
666
+ "const": "render"
667
+ },
668
+ "data": {
669
+ "type": "object"
670
+ }
671
+ },
672
+ "required": ["data"]
673
+ },
674
+ "is-export": {
675
+ "properties": {
676
+ "command": {
677
+ "const": "export"
678
+ },
679
+ "data": {
680
+ "type": "object"
681
+ }
682
+ },
683
+ "required": ["data"]
684
+ },
685
+ "is-new": {
686
+ "properties": {
687
+ "command": {
688
+ "const": "new"
689
+ },
690
+ "data": {
691
+ "type": "object"
692
+ }
693
+ },
694
+ "required": ["data"]
695
+ },
696
+ "is-compare": {
697
+ "properties": {
698
+ "command": {
699
+ "const": "compare"
700
+ },
701
+ "data": {
702
+ "type": "object"
703
+ }
704
+ },
705
+ "required": ["data"]
706
+ },
707
+ "is-convert": {
708
+ "properties": {
709
+ "command": {
710
+ "const": "convert"
711
+ },
712
+ "data": {
713
+ "type": "object"
714
+ }
715
+ },
716
+ "required": ["data"]
717
+ },
718
+ "is-xml-ls": {
719
+ "properties": {
720
+ "command": {
721
+ "const": "xml ls"
722
+ },
723
+ "data": {
724
+ "type": "object"
725
+ }
726
+ },
727
+ "required": ["data"]
728
+ },
729
+ "is-xml-cat": {
730
+ "properties": {
731
+ "command": {
732
+ "const": "xml cat"
733
+ },
734
+ "data": {
735
+ "type": "object"
736
+ }
737
+ },
738
+ "required": ["data"]
739
+ },
740
+ "is-xml-patch": {
741
+ "properties": {
742
+ "command": {
743
+ "const": "xml patch"
744
+ },
745
+ "data": {
746
+ "type": "object"
747
+ }
748
+ },
749
+ "required": ["data"]
750
+ },
751
+ "is-skill": {
752
+ "properties": {
753
+ "command": {
754
+ "const": "skill"
755
+ },
756
+ "data": {
757
+ "type": "object"
758
+ }
759
+ },
760
+ "required": ["data"]
761
+ },
762
+ "is-help": {
763
+ "properties": {
764
+ "command": {
765
+ "const": "help"
766
+ },
767
+ "data": {
768
+ "type": "object"
769
+ }
770
+ },
771
+ "required": ["data"]
772
+ },
773
+ "is-version": {
774
+ "properties": {
775
+ "command": {
776
+ "const": "version"
777
+ },
778
+ "data": {
779
+ "type": "object"
780
+ }
781
+ },
782
+ "required": ["data"]
783
+ },
784
+ "is-skill-install": {
785
+ "properties": {
786
+ "command": {
787
+ "const": "skill install"
788
+ },
789
+ "data": {
790
+ "type": "object"
791
+ }
792
+ },
793
+ "required": ["data"]
794
+ },
795
+ "is-examples": {
796
+ "properties": {
797
+ "command": {
798
+ "const": "examples"
799
+ },
800
+ "data": {
801
+ "type": "object"
802
+ }
803
+ },
804
+ "required": ["data"]
805
+ },
806
+ "is-call": {
807
+ "properties": {
808
+ "command": {
809
+ "const": "call"
810
+ },
811
+ "data": {
812
+ "type": "object"
813
+ }
814
+ },
815
+ "required": ["data"]
816
+ },
817
+ "dataOf-status": {
818
+ "properties": {
819
+ "data": {
820
+ "type": "object",
821
+ "required": [
822
+ "file",
823
+ "format",
824
+ "mode",
825
+ "blockCount",
826
+ "wordCount",
827
+ "trackedChangeCount",
828
+ "checkpoint",
829
+ "sourceFidelity"
830
+ ],
831
+ "properties": {
832
+ "file": {
833
+ "$ref": "#/$defs/path"
834
+ },
835
+ "format": {
836
+ "type": "string"
837
+ },
838
+ "mode": {
839
+ "$ref": "#/$defs/mode"
840
+ },
841
+ "blockCount": {
842
+ "$ref": "#/$defs/count"
843
+ },
844
+ "wordCount": {
845
+ "$ref": "#/$defs/count"
846
+ },
847
+ "trackedChangeCount": {
848
+ "$ref": "#/$defs/count"
849
+ },
850
+ "checkpoint": {
851
+ "$ref": "#/$defs/count"
852
+ },
853
+ "sourceFidelity": {
854
+ "description": "How an export would relate to the .docx the document came from; null for other formats.",
855
+ "oneOf": [
856
+ {
857
+ "type": "null"
858
+ },
859
+ {
860
+ "type": "object",
861
+ "required": [
862
+ "fidelity",
863
+ "regeneratedBlockIds",
864
+ "changedDomains",
865
+ "convertedReason"
866
+ ],
867
+ "properties": {
868
+ "fidelity": {
869
+ "enum": ["exact", "grafted", "converted"]
870
+ },
871
+ "regeneratedBlockIds": {
872
+ "$ref": "#/$defs/strings"
873
+ },
874
+ "changedDomains": {
875
+ "$ref": "#/$defs/strings"
876
+ },
877
+ "convertedReason": {
878
+ "enum": [
879
+ "no-capture",
880
+ "no-carrier",
881
+ "carrier-hash-mismatch",
882
+ "unpaired-capture",
883
+ null
884
+ ]
885
+ }
886
+ }
887
+ }
888
+ ]
889
+ }
890
+ }
891
+ }
892
+ }
893
+ },
894
+ "dataOf-outline": {
895
+ "properties": {
896
+ "data": {
897
+ "type": "object",
898
+ "required": [
899
+ "file",
900
+ "blockCount",
901
+ "wordCount",
902
+ "sectionCount",
903
+ "sections",
904
+ "nextOffset"
905
+ ],
906
+ "properties": {
907
+ "file": {
908
+ "$ref": "#/$defs/path"
909
+ },
910
+ "blockCount": {
911
+ "$ref": "#/$defs/count"
912
+ },
913
+ "wordCount": {
914
+ "$ref": "#/$defs/count"
915
+ },
916
+ "sectionCount": {
917
+ "$ref": "#/$defs/count"
918
+ },
919
+ "sections": {
920
+ "type": "array",
921
+ "items": {
922
+ "type": "object",
923
+ "required": [
924
+ "title",
925
+ "level",
926
+ "startIndex",
927
+ "endIndex",
928
+ "startBlockId",
929
+ "endBlockId",
930
+ "blockCount",
931
+ "wordCount"
932
+ ],
933
+ "properties": {
934
+ "title": {
935
+ "type": "string"
936
+ },
937
+ "level": {
938
+ "enum": [1, 2, 3]
939
+ },
940
+ "startIndex": {
941
+ "$ref": "#/$defs/count"
942
+ },
943
+ "endIndex": {
944
+ "$ref": "#/$defs/count",
945
+ "description": "Inclusive."
946
+ },
947
+ "startBlockId": {
948
+ "type": "string"
949
+ },
950
+ "endBlockId": {
951
+ "type": "string"
952
+ },
953
+ "blockCount": {
954
+ "$ref": "#/$defs/count"
955
+ },
956
+ "wordCount": {
957
+ "$ref": "#/$defs/count"
958
+ }
959
+ }
960
+ }
961
+ },
962
+ "nextOffset": {
963
+ "type": ["integer", "null"]
964
+ }
965
+ }
966
+ }
967
+ }
968
+ },
969
+ "dataOf-grep": {
970
+ "properties": {
971
+ "data": {
972
+ "type": "object",
973
+ "required": [
974
+ "file",
975
+ "pattern",
976
+ "regex",
977
+ "ignoreCase",
978
+ "matchCount",
979
+ "blocks"
980
+ ],
981
+ "properties": {
982
+ "file": {
983
+ "$ref": "#/$defs/path"
984
+ },
985
+ "pattern": {
986
+ "type": "string"
987
+ },
988
+ "regex": {
989
+ "type": "boolean"
990
+ },
991
+ "ignoreCase": {
992
+ "type": "boolean"
993
+ },
994
+ "matchCount": {
995
+ "$ref": "#/$defs/count"
996
+ },
997
+ "blocks": {
998
+ "type": "array",
999
+ "items": {
1000
+ "type": "object",
1001
+ "required": ["blockId", "blockIndex", "matchCount", "text"],
1002
+ "properties": {
1003
+ "blockId": {
1004
+ "type": "string"
1005
+ },
1006
+ "blockIndex": {
1007
+ "$ref": "#/$defs/count"
1008
+ },
1009
+ "matchCount": {
1010
+ "$ref": "#/$defs/count"
1011
+ },
1012
+ "text": {
1013
+ "type": "string"
1014
+ }
1015
+ }
1016
+ }
1017
+ }
1018
+ }
1019
+ }
1020
+ }
1021
+ },
1022
+ "dataOf-tool": {
1023
+ "properties": {
1024
+ "data": {
1025
+ "type": "object",
1026
+ "required": [
1027
+ "file",
1028
+ "tool",
1029
+ "saved",
1030
+ "checkpoint",
1031
+ "message",
1032
+ "changeIds",
1033
+ "html",
1034
+ "result"
1035
+ ],
1036
+ "properties": {
1037
+ "file": {
1038
+ "$ref": "#/$defs/path"
1039
+ },
1040
+ "tool": {
1041
+ "type": "string"
1042
+ },
1043
+ "saved": {
1044
+ "type": "boolean"
1045
+ },
1046
+ "checkpoint": {
1047
+ "$ref": "#/$defs/count"
1048
+ },
1049
+ "message": {
1050
+ "type": ["string", "null"]
1051
+ },
1052
+ "changeIds": {
1053
+ "$ref": "#/$defs/strings"
1054
+ },
1055
+ "html": {
1056
+ "type": ["string", "null"]
1057
+ },
1058
+ "result": {
1059
+ "description": "The tool's own result; see revise tools <name>."
1060
+ }
1061
+ }
1062
+ }
1063
+ }
1064
+ },
1065
+ "dataOf-replace-text": {
1066
+ "properties": {
1067
+ "data": {
1068
+ "type": "object",
1069
+ "required": [
1070
+ "file",
1071
+ "find",
1072
+ "replace",
1073
+ "matchedBlockIds",
1074
+ "replacedOccurrences",
1075
+ "changeIds",
1076
+ "failures",
1077
+ "saved",
1078
+ "checkpoint",
1079
+ "copiedFrom"
1080
+ ],
1081
+ "properties": {
1082
+ "file": {
1083
+ "$ref": "#/$defs/path"
1084
+ },
1085
+ "find": {
1086
+ "type": "string"
1087
+ },
1088
+ "replace": {
1089
+ "type": "string"
1090
+ },
1091
+ "matchedBlockIds": {
1092
+ "$ref": "#/$defs/strings"
1093
+ },
1094
+ "replacedOccurrences": {
1095
+ "$ref": "#/$defs/count"
1096
+ },
1097
+ "changeIds": {
1098
+ "$ref": "#/$defs/strings"
1099
+ },
1100
+ "failures": {
1101
+ "type": "array",
1102
+ "items": {
1103
+ "type": "object",
1104
+ "required": ["blockId", "code", "message"],
1105
+ "properties": {
1106
+ "blockId": {
1107
+ "type": "string"
1108
+ },
1109
+ "code": {
1110
+ "type": "string"
1111
+ },
1112
+ "message": {
1113
+ "type": "string"
1114
+ }
1115
+ }
1116
+ }
1117
+ },
1118
+ "saved": {
1119
+ "type": "boolean"
1120
+ },
1121
+ "checkpoint": {
1122
+ "$ref": "#/$defs/count"
1123
+ },
1124
+ "copiedFrom": {
1125
+ "type": ["string", "null"],
1126
+ "description": "With --out: the original file the copy was made from (absolute path); the edit went to `file`. Otherwise null."
1127
+ }
1128
+ }
1129
+ }
1130
+ }
1131
+ },
1132
+ "dataOf-tools": {
1133
+ "properties": {
1134
+ "data": {
1135
+ "oneOf": [
1136
+ {
1137
+ "type": "object",
1138
+ "required": ["tools"],
1139
+ "properties": {
1140
+ "tools": {
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "object",
1144
+ "required": ["name", "summary"],
1145
+ "properties": {
1146
+ "name": {
1147
+ "type": "string"
1148
+ },
1149
+ "summary": {
1150
+ "type": "string"
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ },
1157
+ {
1158
+ "type": "object",
1159
+ "required": ["name", "description", "inputSchema"],
1160
+ "properties": {
1161
+ "name": {
1162
+ "type": "string"
1163
+ },
1164
+ "description": {
1165
+ "type": "string"
1166
+ },
1167
+ "inputSchema": {
1168
+ "type": "object"
1169
+ }
1170
+ }
1171
+ }
1172
+ ]
1173
+ }
1174
+ }
1175
+ },
1176
+ "dataOf-mode": {
1177
+ "properties": {
1178
+ "data": {
1179
+ "type": "object",
1180
+ "required": ["file", "mode", "changed"],
1181
+ "properties": {
1182
+ "file": {
1183
+ "$ref": "#/$defs/path"
1184
+ },
1185
+ "mode": {
1186
+ "$ref": "#/$defs/mode"
1187
+ },
1188
+ "changed": {
1189
+ "type": "boolean"
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1194
+ },
1195
+ "dataOf-changes": {
1196
+ "properties": {
1197
+ "data": {
1198
+ "type": "object",
1199
+ "required": ["file", "section", "trackedChangeCount", "changes"],
1200
+ "properties": {
1201
+ "file": {
1202
+ "$ref": "#/$defs/path"
1203
+ },
1204
+ "section": {
1205
+ "type": ["string", "null"]
1206
+ },
1207
+ "trackedChangeCount": {
1208
+ "$ref": "#/$defs/count"
1209
+ },
1210
+ "changes": {
1211
+ "type": "array",
1212
+ "items": {
1213
+ "type": "object",
1214
+ "required": [
1215
+ "changeId",
1216
+ "type",
1217
+ "author",
1218
+ "blockId",
1219
+ "blockIndex",
1220
+ "section",
1221
+ "deleted",
1222
+ "inserted"
1223
+ ],
1224
+ "properties": {
1225
+ "changeId": {
1226
+ "type": "string"
1227
+ },
1228
+ "type": {
1229
+ "type": "string"
1230
+ },
1231
+ "author": {
1232
+ "type": "string"
1233
+ },
1234
+ "blockId": {
1235
+ "type": ["string", "null"]
1236
+ },
1237
+ "blockIndex": {
1238
+ "type": ["integer", "null"]
1239
+ },
1240
+ "section": {
1241
+ "type": ["string", "null"]
1242
+ },
1243
+ "deleted": {
1244
+ "type": "string"
1245
+ },
1246
+ "inserted": {
1247
+ "type": "string"
1248
+ }
1249
+ }
1250
+ }
1251
+ }
1252
+ }
1253
+ }
1254
+ }
1255
+ },
1256
+ "dataOf-settle": {
1257
+ "properties": {
1258
+ "data": {
1259
+ "type": "object",
1260
+ "required": [
1261
+ "file",
1262
+ "action",
1263
+ "dryRun",
1264
+ "resolved",
1265
+ "wouldResolve",
1266
+ "notFound",
1267
+ "failed",
1268
+ "saved",
1269
+ "checkpoint",
1270
+ "copiedFrom"
1271
+ ],
1272
+ "properties": {
1273
+ "file": {
1274
+ "$ref": "#/$defs/path"
1275
+ },
1276
+ "action": {
1277
+ "enum": ["accept", "reject"]
1278
+ },
1279
+ "dryRun": {
1280
+ "type": "boolean"
1281
+ },
1282
+ "resolved": {
1283
+ "$ref": "#/$defs/strings"
1284
+ },
1285
+ "wouldResolve": {
1286
+ "$ref": "#/$defs/strings"
1287
+ },
1288
+ "notFound": {
1289
+ "$ref": "#/$defs/strings"
1290
+ },
1291
+ "failed": {
1292
+ "type": "array",
1293
+ "items": {
1294
+ "type": "object",
1295
+ "required": ["changeId", "code", "message"],
1296
+ "properties": {
1297
+ "changeId": {
1298
+ "type": "string"
1299
+ },
1300
+ "code": {
1301
+ "type": "string"
1302
+ },
1303
+ "message": {
1304
+ "type": "string"
1305
+ }
1306
+ }
1307
+ }
1308
+ },
1309
+ "saved": {
1310
+ "type": "boolean"
1311
+ },
1312
+ "checkpoint": {
1313
+ "$ref": "#/$defs/count"
1314
+ },
1315
+ "copiedFrom": {
1316
+ "type": ["string", "null"],
1317
+ "description": "With --out: the original file the copy was made from (absolute path); the edit went to `file`. Otherwise null."
1318
+ }
1319
+ }
1320
+ }
1321
+ }
1322
+ },
1323
+ "dataOf-diff": {
1324
+ "properties": {
1325
+ "data": {
1326
+ "type": "object",
1327
+ "required": ["file", "since", "changedParagraphCount", "text"],
1328
+ "properties": {
1329
+ "file": {
1330
+ "$ref": "#/$defs/path"
1331
+ },
1332
+ "since": {
1333
+ "type": ["integer", "null"]
1334
+ },
1335
+ "changedParagraphCount": {
1336
+ "$ref": "#/$defs/count"
1337
+ },
1338
+ "text": {
1339
+ "type": "string"
1340
+ }
1341
+ }
1342
+ }
1343
+ }
1344
+ },
1345
+ "dataOf-history": {
1346
+ "properties": {
1347
+ "data": {
1348
+ "type": "object",
1349
+ "required": ["file", "checkpoint", "checkpoints"],
1350
+ "properties": {
1351
+ "file": {
1352
+ "$ref": "#/$defs/path"
1353
+ },
1354
+ "checkpoint": {
1355
+ "$ref": "#/$defs/count"
1356
+ },
1357
+ "checkpoints": {
1358
+ "type": "array",
1359
+ "items": {
1360
+ "type": "object",
1361
+ "required": ["checkpoint", "at", "command", "summary"],
1362
+ "properties": {
1363
+ "checkpoint": {
1364
+ "$ref": "#/$defs/count"
1365
+ },
1366
+ "at": {
1367
+ "type": "string",
1368
+ "description": "ISO 8601, UTC."
1369
+ },
1370
+ "command": {
1371
+ "type": "string"
1372
+ },
1373
+ "summary": {
1374
+ "type": "string"
1375
+ }
1376
+ }
1377
+ }
1378
+ }
1379
+ }
1380
+ }
1381
+ }
1382
+ },
1383
+ "dataOf-undo": {
1384
+ "properties": {
1385
+ "data": {
1386
+ "type": "object",
1387
+ "required": ["file", "checkpoint", "from", "discarded", "saved"],
1388
+ "properties": {
1389
+ "file": {
1390
+ "$ref": "#/$defs/path"
1391
+ },
1392
+ "checkpoint": {
1393
+ "$ref": "#/$defs/count"
1394
+ },
1395
+ "from": {
1396
+ "$ref": "#/$defs/count"
1397
+ },
1398
+ "discarded": {
1399
+ "type": "array",
1400
+ "items": {
1401
+ "$ref": "#/$defs/count"
1402
+ }
1403
+ },
1404
+ "saved": {
1405
+ "type": "boolean"
1406
+ }
1407
+ }
1408
+ }
1409
+ }
1410
+ },
1411
+ "dataOf-render": {
1412
+ "properties": {
1413
+ "data": {
1414
+ "type": "object",
1415
+ "required": [
1416
+ "file",
1417
+ "output",
1418
+ "outputWritten",
1419
+ "mimeType",
1420
+ "width",
1421
+ "height",
1422
+ "pages",
1423
+ "totalPages",
1424
+ "view",
1425
+ "description",
1426
+ "placeholderImageCount",
1427
+ "failedImageCount"
1428
+ ],
1429
+ "properties": {
1430
+ "file": {
1431
+ "$ref": "#/$defs/path"
1432
+ },
1433
+ "output": {
1434
+ "$ref": "#/$defs/path"
1435
+ },
1436
+ "outputWritten": {
1437
+ "type": "boolean"
1438
+ },
1439
+ "mimeType": {
1440
+ "enum": ["image/png", "image/jpeg"]
1441
+ },
1442
+ "width": {
1443
+ "$ref": "#/$defs/count"
1444
+ },
1445
+ "height": {
1446
+ "$ref": "#/$defs/count"
1447
+ },
1448
+ "pages": {
1449
+ "type": "array",
1450
+ "items": {
1451
+ "type": "integer",
1452
+ "minimum": 1
1453
+ }
1454
+ },
1455
+ "totalPages": {
1456
+ "$ref": "#/$defs/count"
1457
+ },
1458
+ "view": {
1459
+ "enum": ["tracked", "accepted", "original"]
1460
+ },
1461
+ "description": {
1462
+ "type": "string"
1463
+ },
1464
+ "placeholderImageCount": {
1465
+ "$ref": "#/$defs/count"
1466
+ },
1467
+ "failedImageCount": {
1468
+ "$ref": "#/$defs/count"
1469
+ }
1470
+ }
1471
+ }
1472
+ }
1473
+ },
1474
+ "dataOf-export": {
1475
+ "properties": {
1476
+ "data": {
1477
+ "type": "object",
1478
+ "required": [
1479
+ "file",
1480
+ "output",
1481
+ "outputWritten",
1482
+ "format",
1483
+ "byteCount",
1484
+ "final",
1485
+ "trackedChangeCount",
1486
+ "docxExport",
1487
+ "summary"
1488
+ ],
1489
+ "properties": {
1490
+ "file": {
1491
+ "$ref": "#/$defs/path"
1492
+ },
1493
+ "output": {
1494
+ "$ref": "#/$defs/path"
1495
+ },
1496
+ "outputWritten": {
1497
+ "type": "boolean"
1498
+ },
1499
+ "format": {
1500
+ "$ref": "#/$defs/format"
1501
+ },
1502
+ "byteCount": {
1503
+ "$ref": "#/$defs/count"
1504
+ },
1505
+ "final": {
1506
+ "type": "boolean"
1507
+ },
1508
+ "trackedChangeCount": {
1509
+ "type": ["integer", "null"],
1510
+ "minimum": 0,
1511
+ "description": "Tracked changes in the written file, as revise reads it back; 0 for formats that can't hold them; null if a .docx could not be read back."
1512
+ },
1513
+ "docxExport": {
1514
+ "oneOf": [
1515
+ {
1516
+ "type": "null"
1517
+ },
1518
+ {
1519
+ "type": "object",
1520
+ "required": [
1521
+ "method",
1522
+ "exact",
1523
+ "regeneratedBlockCount",
1524
+ "fallbackCode"
1525
+ ],
1526
+ "properties": {
1527
+ "method": {
1528
+ "enum": ["graft", "regenerated"]
1529
+ },
1530
+ "exact": {
1531
+ "type": "boolean"
1532
+ },
1533
+ "regeneratedBlockCount": {
1534
+ "$ref": "#/$defs/count"
1535
+ },
1536
+ "fallbackCode": {
1537
+ "type": ["string", "null"]
1538
+ }
1539
+ }
1540
+ }
1541
+ ]
1542
+ },
1543
+ "summary": {
1544
+ "oneOf": [
1545
+ {
1546
+ "type": "null"
1547
+ },
1548
+ {
1549
+ "$ref": "#/$defs/summary"
1550
+ }
1551
+ ]
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ },
1557
+ "dataOf-new": {
1558
+ "properties": {
1559
+ "data": {
1560
+ "type": "object",
1561
+ "required": [
1562
+ "output",
1563
+ "outputWritten",
1564
+ "format",
1565
+ "mode",
1566
+ "checkpoint",
1567
+ "summary"
1568
+ ],
1569
+ "properties": {
1570
+ "output": {
1571
+ "$ref": "#/$defs/path"
1572
+ },
1573
+ "outputWritten": {
1574
+ "type": "boolean"
1575
+ },
1576
+ "format": {
1577
+ "$ref": "#/$defs/format"
1578
+ },
1579
+ "mode": {
1580
+ "$ref": "#/$defs/mode"
1581
+ },
1582
+ "checkpoint": {
1583
+ "type": ["integer", "null"],
1584
+ "minimum": 0,
1585
+ "description": "null when setting up the new file failed after it was written (exit 2)."
1586
+ },
1587
+ "summary": {
1588
+ "oneOf": [
1589
+ {
1590
+ "type": "null"
1591
+ },
1592
+ {
1593
+ "$ref": "#/$defs/summary"
1594
+ }
1595
+ ]
1596
+ }
1597
+ }
1598
+ }
1599
+ }
1600
+ },
1601
+ "dataOf-compare": {
1602
+ "properties": {
1603
+ "data": {
1604
+ "type": "object",
1605
+ "required": [
1606
+ "original",
1607
+ "revised",
1608
+ "output",
1609
+ "outputWritten",
1610
+ "author",
1611
+ "inlineChangeCount",
1612
+ "insertedBlockCount",
1613
+ "deletedBlockCount",
1614
+ "unmarkedBlockCount",
1615
+ "untrackedRegions",
1616
+ "verification"
1617
+ ],
1618
+ "properties": {
1619
+ "original": {
1620
+ "$ref": "#/$defs/path"
1621
+ },
1622
+ "revised": {
1623
+ "$ref": "#/$defs/path"
1624
+ },
1625
+ "output": {
1626
+ "$ref": "#/$defs/path"
1627
+ },
1628
+ "outputWritten": {
1629
+ "type": "boolean"
1630
+ },
1631
+ "author": {
1632
+ "type": "string"
1633
+ },
1634
+ "inlineChangeCount": {
1635
+ "$ref": "#/$defs/count"
1636
+ },
1637
+ "insertedBlockCount": {
1638
+ "$ref": "#/$defs/count"
1639
+ },
1640
+ "deletedBlockCount": {
1641
+ "$ref": "#/$defs/count"
1642
+ },
1643
+ "unmarkedBlockCount": {
1644
+ "$ref": "#/$defs/count"
1645
+ },
1646
+ "untrackedRegions": {
1647
+ "$ref": "#/$defs/strings"
1648
+ },
1649
+ "verification": {
1650
+ "type": "object",
1651
+ "required": [
1652
+ "scope",
1653
+ "acceptAllMatchesRevised",
1654
+ "rejectAllMatchesOriginal"
1655
+ ],
1656
+ "properties": {
1657
+ "scope": {
1658
+ "const": "normalized_text"
1659
+ },
1660
+ "acceptAllMatchesRevised": {
1661
+ "type": "boolean"
1662
+ },
1663
+ "rejectAllMatchesOriginal": {
1664
+ "type": "boolean"
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+ }
1670
+ }
1671
+ },
1672
+ "dataOf-convert": {
1673
+ "properties": {
1674
+ "data": {
1675
+ "type": "object",
1676
+ "required": [
1677
+ "input",
1678
+ "inputFormat",
1679
+ "output",
1680
+ "outputWritten",
1681
+ "format",
1682
+ "byteCount",
1683
+ "final"
1684
+ ],
1685
+ "properties": {
1686
+ "input": {
1687
+ "oneOf": [
1688
+ {
1689
+ "$ref": "#/$defs/path"
1690
+ },
1691
+ {
1692
+ "type": "null"
1693
+ }
1694
+ ],
1695
+ "description": "null when the document came from stdin (-)."
1696
+ },
1697
+ "inputFormat": {
1698
+ "oneOf": [
1699
+ {
1700
+ "enum": ["docx", "odt", "rtf", "html", "md", "txt"]
1701
+ },
1702
+ {
1703
+ "type": "null"
1704
+ }
1705
+ ],
1706
+ "description": "The format read: from --from, recognized from stdin's bytes, or from the input's extension."
1707
+ },
1708
+ "output": {
1709
+ "$ref": "#/$defs/path"
1710
+ },
1711
+ "outputWritten": {
1712
+ "type": "boolean"
1713
+ },
1714
+ "format": {
1715
+ "$ref": "#/$defs/format"
1716
+ },
1717
+ "byteCount": {
1718
+ "$ref": "#/$defs/count"
1719
+ },
1720
+ "final": {
1721
+ "type": "boolean"
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+ },
1727
+ "dataOf-xml-ls": {
1728
+ "properties": {
1729
+ "data": {
1730
+ "type": "object",
1731
+ "required": ["file", "parts"],
1732
+ "properties": {
1733
+ "file": {
1734
+ "$ref": "#/$defs/path"
1735
+ },
1736
+ "parts": {
1737
+ "type": "array",
1738
+ "items": {
1739
+ "type": "object",
1740
+ "required": ["path", "byteCount"],
1741
+ "properties": {
1742
+ "path": {
1743
+ "type": "string",
1744
+ "description": "Inside the package, e.g. word/document.xml."
1745
+ },
1746
+ "byteCount": {
1747
+ "$ref": "#/$defs/count"
1748
+ }
1749
+ }
1750
+ }
1751
+ }
1752
+ }
1753
+ }
1754
+ }
1755
+ },
1756
+ "dataOf-xml-cat": {
1757
+ "properties": {
1758
+ "data": {
1759
+ "type": "object",
1760
+ "required": ["file", "part", "match", "fragments", "truncated"],
1761
+ "properties": {
1762
+ "file": {
1763
+ "$ref": "#/$defs/path"
1764
+ },
1765
+ "part": {
1766
+ "type": "string"
1767
+ },
1768
+ "match": {
1769
+ "type": ["string", "null"]
1770
+ },
1771
+ "fragments": {
1772
+ "$ref": "#/$defs/strings"
1773
+ },
1774
+ "truncated": {
1775
+ "type": "boolean"
1776
+ }
1777
+ }
1778
+ }
1779
+ }
1780
+ },
1781
+ "dataOf-xml-patch": {
1782
+ "properties": {
1783
+ "data": {
1784
+ "type": "object",
1785
+ "required": [
1786
+ "file",
1787
+ "part",
1788
+ "replacementCount",
1789
+ "saved",
1790
+ "checkpoint",
1791
+ "copiedFrom"
1792
+ ],
1793
+ "properties": {
1794
+ "file": {
1795
+ "$ref": "#/$defs/path"
1796
+ },
1797
+ "part": {
1798
+ "type": "string"
1799
+ },
1800
+ "replacementCount": {
1801
+ "$ref": "#/$defs/count"
1802
+ },
1803
+ "saved": {
1804
+ "type": "boolean"
1805
+ },
1806
+ "checkpoint": {
1807
+ "$ref": "#/$defs/count"
1808
+ },
1809
+ "copiedFrom": {
1810
+ "type": ["string", "null"],
1811
+ "description": "With --out: the original file the copy was made from (absolute path); the edit went to `file`. Otherwise null."
1812
+ }
1813
+ }
1814
+ }
1815
+ }
1816
+ },
1817
+ "dataOf-skill": {
1818
+ "properties": {
1819
+ "data": {
1820
+ "type": "object",
1821
+ "required": ["reference", "markdown"],
1822
+ "properties": {
1823
+ "markdown": {
1824
+ "type": "string"
1825
+ },
1826
+ "reference": {
1827
+ "type": ["string", "null"],
1828
+ "description": "The reference file printed (--reference), or null for SKILL.md itself."
1829
+ }
1830
+ }
1831
+ }
1832
+ }
1833
+ },
1834
+ "dataOf-help": {
1835
+ "properties": {
1836
+ "data": {
1837
+ "oneOf": [
1838
+ {
1839
+ "type": "object",
1840
+ "required": ["commands", "globalOptions"],
1841
+ "properties": {
1842
+ "commands": {
1843
+ "type": "array",
1844
+ "items": {
1845
+ "$ref": "#/$defs/commandHelp"
1846
+ }
1847
+ },
1848
+ "globalOptions": {
1849
+ "type": "array",
1850
+ "items": {
1851
+ "$ref": "#/$defs/option"
1852
+ }
1853
+ }
1854
+ }
1855
+ },
1856
+ {
1857
+ "type": "object",
1858
+ "required": ["command"],
1859
+ "properties": {
1860
+ "command": {
1861
+ "$ref": "#/$defs/commandHelp"
1862
+ },
1863
+ "inputSchema": {
1864
+ "type": "object",
1865
+ "description": "For an editing tool's help (revise <tool> --help): its input's JSON Schema, as revise tools <tool> prints it."
1866
+ }
1867
+ }
1868
+ }
1869
+ ]
1870
+ }
1871
+ }
1872
+ },
1873
+ "dataOf-version": {
1874
+ "properties": {
1875
+ "data": {
1876
+ "type": "object",
1877
+ "required": ["version", "build"],
1878
+ "properties": {
1879
+ "version": {
1880
+ "type": "string"
1881
+ },
1882
+ "build": {
1883
+ "type": ["string", "null"]
1884
+ }
1885
+ }
1886
+ }
1887
+ }
1888
+ },
1889
+ "dataOf-skill-install": {
1890
+ "properties": {
1891
+ "data": {
1892
+ "type": "object",
1893
+ "required": ["output", "outputWritten"],
1894
+ "properties": {
1895
+ "output": {
1896
+ "$ref": "#/$defs/path"
1897
+ },
1898
+ "outputWritten": {
1899
+ "type": "boolean"
1900
+ }
1901
+ }
1902
+ }
1903
+ }
1904
+ },
1905
+ "dataOf-examples": {
1906
+ "properties": {
1907
+ "data": {
1908
+ "type": "object",
1909
+ "required": ["examples"],
1910
+ "properties": {
1911
+ "examples": {
1912
+ "type": "array",
1913
+ "items": {
1914
+ "type": "object",
1915
+ "required": ["description", "command"],
1916
+ "properties": {
1917
+ "description": {
1918
+ "type": "string"
1919
+ },
1920
+ "command": {
1921
+ "type": "string",
1922
+ "description": "A shell command line, runnable as written given the files it names."
1923
+ },
1924
+ "docs": {
1925
+ "type": "string",
1926
+ "description": "Where to read more, when there is a page for it."
1927
+ }
1928
+ }
1929
+ }
1930
+ }
1931
+ }
1932
+ }
1933
+ }
1934
+ },
1935
+ "dataOf-call": {
1936
+ "properties": {
1937
+ "data": {
1938
+ "type": "object",
1939
+ "required": [
1940
+ "file",
1941
+ "tool",
1942
+ "saved",
1943
+ "checkpoint",
1944
+ "message",
1945
+ "changeIds",
1946
+ "html",
1947
+ "result",
1948
+ "copiedFrom"
1949
+ ],
1950
+ "properties": {
1951
+ "file": {
1952
+ "$ref": "#/$defs/path"
1953
+ },
1954
+ "tool": {
1955
+ "type": "string"
1956
+ },
1957
+ "saved": {
1958
+ "type": "boolean"
1959
+ },
1960
+ "checkpoint": {
1961
+ "$ref": "#/$defs/count"
1962
+ },
1963
+ "message": {
1964
+ "type": ["string", "null"]
1965
+ },
1966
+ "changeIds": {
1967
+ "$ref": "#/$defs/strings"
1968
+ },
1969
+ "html": {
1970
+ "type": ["string", "null"]
1971
+ },
1972
+ "result": {
1973
+ "description": "The tool's own result; see revise tools <name>."
1974
+ },
1975
+ "copiedFrom": {
1976
+ "type": ["string", "null"],
1977
+ "description": "With --out: the original file the copy was made from (absolute path); the edit went to `file`. Otherwise null."
1978
+ }
1979
+ }
1980
+ }
1981
+ }
1982
+ }
1983
+ }
1984
+ }