revise 3.1.7 → 4.0.0

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