@oneharness/sdk 0.6.13 → 0.6.15

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 (47) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/capabilities.d.ts +1010 -0
  3. package/dist/generated/capabilities.js +1162 -0
  4. package/dist/generated/config-options.d.ts +8 -0
  5. package/dist/generated/config-options.js +2 -0
  6. package/dist/generated/config-report.d.ts +283 -0
  7. package/dist/generated/config-report.js +2 -0
  8. package/dist/generated/detect-options.d.ts +19 -0
  9. package/dist/generated/detect-options.js +2 -0
  10. package/dist/generated/detection.d.ts +6 -0
  11. package/dist/generated/gate-options.d.ts +17 -0
  12. package/dist/generated/gate-options.js +2 -0
  13. package/dist/generated/history-clear-options.d.ts +15 -0
  14. package/dist/generated/history-clear-options.js +2 -0
  15. package/dist/generated/history-clear-report.d.ts +39 -0
  16. package/dist/generated/history-clear-report.js +2 -0
  17. package/dist/generated/history-list-options.d.ts +13 -0
  18. package/dist/generated/history-lookup.d.ts +26 -0
  19. package/dist/generated/history-migrate-options.d.ts +8 -0
  20. package/dist/generated/history-migrate-options.js +2 -0
  21. package/dist/generated/history-migrate-report.d.ts +31 -0
  22. package/dist/generated/history-migrate-report.js +2 -0
  23. package/dist/generated/history-watch-options.d.ts +13 -0
  24. package/dist/generated/init-options.d.ts +11 -0
  25. package/dist/generated/init-options.js +2 -0
  26. package/dist/generated/interrupt-options.d.ts +12 -0
  27. package/dist/generated/interrupt-options.js +2 -0
  28. package/dist/generated/interrupt-response.d.ts +40 -0
  29. package/dist/generated/interrupt-response.js +2 -0
  30. package/dist/generated/mock-options.d.ts +12 -0
  31. package/dist/generated/mock-options.js +2 -0
  32. package/dist/generated/options.d.ts +108 -0
  33. package/dist/generated/registry.d.ts +14 -4
  34. package/dist/generated/schemas.json +3245 -15
  35. package/dist/generated/sync-options.d.ts +14 -0
  36. package/dist/generated/sync-options.js +2 -0
  37. package/dist/generated/sync-report.d.ts +64 -0
  38. package/dist/generated/sync-report.js +2 -0
  39. package/dist/generated/usage-options.d.ts +15 -0
  40. package/dist/generated/usage-options.js +2 -0
  41. package/dist/generated/usage-report.d.ts +241 -0
  42. package/dist/generated/usage-report.js +2 -0
  43. package/dist/generated/zod.d.ts +70 -2
  44. package/dist/generated/zod.js +444 -0
  45. package/dist/index.d.ts +91 -1
  46. package/dist/index.js +271 -102
  47. package/package.json +2 -2
@@ -0,0 +1,1162 @@
1
+ export const CAPABILITIES = {
2
+ run: {
3
+ method: "run",
4
+ argv: ["run"],
5
+ options: "run_options",
6
+ output: "run_report",
7
+ stdout: "json",
8
+ stdin: false,
9
+ rust: "oneharness_core::io::run::run",
10
+ always: ["--compact", "--no-stream"],
11
+ bindings: [
12
+ {
13
+ option: "prompt",
14
+ flag: "--prompt",
15
+ kind: "value",
16
+ unless: null,
17
+ },
18
+ {
19
+ option: "batchPrompts",
20
+ flag: "--prompt",
21
+ kind: "repeated",
22
+ unless: null,
23
+ },
24
+ {
25
+ option: "promptFiles",
26
+ flag: "--prompt-file",
27
+ kind: "repeated",
28
+ unless: null,
29
+ },
30
+ {
31
+ option: "harnesses",
32
+ flag: "--harness",
33
+ kind: "repeated",
34
+ unless: null,
35
+ },
36
+ {
37
+ option: "mockHarnesses",
38
+ flag: "--mock-harness",
39
+ kind: "repeated",
40
+ unless: null,
41
+ },
42
+ {
43
+ option: "all",
44
+ flag: "--all",
45
+ kind: "switch",
46
+ unless: "harnesses",
47
+ },
48
+ {
49
+ option: "exclude",
50
+ flag: "--exclude",
51
+ kind: "repeated",
52
+ unless: null,
53
+ },
54
+ {
55
+ option: "models",
56
+ flag: "--model",
57
+ kind: "repeated",
58
+ unless: null,
59
+ },
60
+ {
61
+ option: "system",
62
+ flag: "--system",
63
+ kind: "value",
64
+ unless: null,
65
+ },
66
+ {
67
+ option: "systemFile",
68
+ flag: "--system-file",
69
+ kind: "value",
70
+ unless: "system",
71
+ },
72
+ {
73
+ option: "reasoning",
74
+ flag: "--reasoning",
75
+ kind: "value",
76
+ unless: null,
77
+ },
78
+ {
79
+ option: "resume",
80
+ flag: "--resume",
81
+ kind: "value",
82
+ unless: null,
83
+ },
84
+ {
85
+ option: "fork",
86
+ flag: "--fork",
87
+ kind: "switch",
88
+ unless: null,
89
+ },
90
+ {
91
+ option: "session",
92
+ flag: "--session",
93
+ kind: "value",
94
+ unless: null,
95
+ },
96
+ {
97
+ option: "sessionDir",
98
+ flag: "--session-dir",
99
+ kind: "value",
100
+ unless: null,
101
+ },
102
+ {
103
+ option: "control",
104
+ flag: "--control",
105
+ kind: "switch",
106
+ unless: null,
107
+ },
108
+ {
109
+ option: "outputFormat",
110
+ flag: "--output-format",
111
+ kind: "value",
112
+ unless: null,
113
+ },
114
+ {
115
+ option: "events",
116
+ flag: "--events",
117
+ kind: "switch",
118
+ unless: null,
119
+ },
120
+ {
121
+ option: "mockRules",
122
+ flag: "--mock-rules",
123
+ kind: "value",
124
+ unless: null,
125
+ },
126
+ {
127
+ option: "spyFile",
128
+ flag: "--spy-file",
129
+ kind: "value",
130
+ unless: null,
131
+ },
132
+ {
133
+ option: "schema",
134
+ flag: "--schema",
135
+ kind: "value",
136
+ unless: null,
137
+ },
138
+ {
139
+ option: "schemaMaxRetries",
140
+ flag: "--schema-max-retries",
141
+ kind: "value",
142
+ unless: null,
143
+ },
144
+ {
145
+ option: "outputDir",
146
+ flag: "--output-dir",
147
+ kind: "value",
148
+ unless: null,
149
+ },
150
+ {
151
+ option: "timeoutSeconds",
152
+ flag: "--timeout",
153
+ kind: "value",
154
+ unless: null,
155
+ },
156
+ {
157
+ option: "cwd",
158
+ flag: "--cwd",
159
+ kind: "value",
160
+ unless: null,
161
+ },
162
+ {
163
+ option: "env",
164
+ flag: "--env",
165
+ kind: "key-value",
166
+ unless: null,
167
+ },
168
+ {
169
+ option: "mode",
170
+ flag: "--mode",
171
+ kind: "value",
172
+ unless: null,
173
+ },
174
+ {
175
+ option: "permitPrompts",
176
+ flag: "--permit-prompts",
177
+ kind: "switch",
178
+ unless: null,
179
+ },
180
+ {
181
+ option: "config",
182
+ flag: "--config",
183
+ kind: "value",
184
+ unless: "noConfig",
185
+ },
186
+ {
187
+ option: "noConfig",
188
+ flag: "--no-config",
189
+ kind: "switch",
190
+ unless: null,
191
+ },
192
+ {
193
+ option: "maxParallel",
194
+ flag: "--max-parallel",
195
+ kind: "value",
196
+ unless: null,
197
+ },
198
+ {
199
+ option: "batchStrategy",
200
+ flag: "--batch-strategy",
201
+ kind: "value",
202
+ unless: null,
203
+ },
204
+ {
205
+ option: "runMode",
206
+ flag: "--run-mode",
207
+ kind: "value",
208
+ unless: null,
209
+ },
210
+ {
211
+ option: "printCommand",
212
+ flag: "--print-command",
213
+ kind: "switch",
214
+ unless: null,
215
+ },
216
+ {
217
+ option: "bins",
218
+ flag: "--bin",
219
+ kind: "key-value",
220
+ unless: null,
221
+ },
222
+ {
223
+ option: "requireAvailable",
224
+ flag: "--require-available",
225
+ kind: "switch",
226
+ unless: null,
227
+ },
228
+ {
229
+ option: "history",
230
+ flag: "--history",
231
+ kind: "switch",
232
+ unless: "noHistory",
233
+ },
234
+ {
235
+ option: "noHistory",
236
+ flag: "--no-history",
237
+ kind: "switch",
238
+ unless: null,
239
+ },
240
+ {
241
+ option: "historyDir",
242
+ flag: "--history-dir",
243
+ kind: "value",
244
+ unless: null,
245
+ },
246
+ {
247
+ option: "historyName",
248
+ flag: "--history-name",
249
+ kind: "value",
250
+ unless: null,
251
+ },
252
+ {
253
+ option: "historyLabels",
254
+ flag: "--history-label",
255
+ kind: "key-value",
256
+ unless: null,
257
+ },
258
+ {
259
+ option: "passthrough",
260
+ flag: "",
261
+ kind: "trailing",
262
+ unless: null,
263
+ },
264
+ ],
265
+ uncovered: [
266
+ {
267
+ flag: "--bypass",
268
+ reason: '`mode: "bypass"` is the same request',
269
+ },
270
+ {
271
+ flag: "--no-bypass",
272
+ reason: '`mode: "default"` is the same request',
273
+ },
274
+ {
275
+ flag: "--stream",
276
+ reason: "`runStream()` is the streaming method; this one returns one report",
277
+ },
278
+ ],
279
+ },
280
+ runStream: {
281
+ method: "runStream",
282
+ argv: ["run"],
283
+ options: "run_options",
284
+ output: "run_stream_envelope",
285
+ stdout: "jsonl",
286
+ stdin: false,
287
+ rust: "oneharness_core::io::run::run",
288
+ always: ["--compact", "--stream"],
289
+ bindings: [
290
+ {
291
+ option: "prompt",
292
+ flag: "--prompt",
293
+ kind: "value",
294
+ unless: null,
295
+ },
296
+ {
297
+ option: "batchPrompts",
298
+ flag: "--prompt",
299
+ kind: "repeated",
300
+ unless: null,
301
+ },
302
+ {
303
+ option: "promptFiles",
304
+ flag: "--prompt-file",
305
+ kind: "repeated",
306
+ unless: null,
307
+ },
308
+ {
309
+ option: "harnesses",
310
+ flag: "--harness",
311
+ kind: "repeated",
312
+ unless: null,
313
+ },
314
+ {
315
+ option: "mockHarnesses",
316
+ flag: "--mock-harness",
317
+ kind: "repeated",
318
+ unless: null,
319
+ },
320
+ {
321
+ option: "all",
322
+ flag: "--all",
323
+ kind: "switch",
324
+ unless: "harnesses",
325
+ },
326
+ {
327
+ option: "exclude",
328
+ flag: "--exclude",
329
+ kind: "repeated",
330
+ unless: null,
331
+ },
332
+ {
333
+ option: "models",
334
+ flag: "--model",
335
+ kind: "repeated",
336
+ unless: null,
337
+ },
338
+ {
339
+ option: "system",
340
+ flag: "--system",
341
+ kind: "value",
342
+ unless: null,
343
+ },
344
+ {
345
+ option: "systemFile",
346
+ flag: "--system-file",
347
+ kind: "value",
348
+ unless: "system",
349
+ },
350
+ {
351
+ option: "reasoning",
352
+ flag: "--reasoning",
353
+ kind: "value",
354
+ unless: null,
355
+ },
356
+ {
357
+ option: "resume",
358
+ flag: "--resume",
359
+ kind: "value",
360
+ unless: null,
361
+ },
362
+ {
363
+ option: "fork",
364
+ flag: "--fork",
365
+ kind: "switch",
366
+ unless: null,
367
+ },
368
+ {
369
+ option: "session",
370
+ flag: "--session",
371
+ kind: "value",
372
+ unless: null,
373
+ },
374
+ {
375
+ option: "sessionDir",
376
+ flag: "--session-dir",
377
+ kind: "value",
378
+ unless: null,
379
+ },
380
+ {
381
+ option: "control",
382
+ flag: "--control",
383
+ kind: "switch",
384
+ unless: null,
385
+ },
386
+ {
387
+ option: "outputFormat",
388
+ flag: "--output-format",
389
+ kind: "value",
390
+ unless: null,
391
+ },
392
+ {
393
+ option: "events",
394
+ flag: "--events",
395
+ kind: "switch",
396
+ unless: null,
397
+ },
398
+ {
399
+ option: "mockRules",
400
+ flag: "--mock-rules",
401
+ kind: "value",
402
+ unless: null,
403
+ },
404
+ {
405
+ option: "spyFile",
406
+ flag: "--spy-file",
407
+ kind: "value",
408
+ unless: null,
409
+ },
410
+ {
411
+ option: "schema",
412
+ flag: "--schema",
413
+ kind: "value",
414
+ unless: null,
415
+ },
416
+ {
417
+ option: "schemaMaxRetries",
418
+ flag: "--schema-max-retries",
419
+ kind: "value",
420
+ unless: null,
421
+ },
422
+ {
423
+ option: "outputDir",
424
+ flag: "--output-dir",
425
+ kind: "value",
426
+ unless: null,
427
+ },
428
+ {
429
+ option: "timeoutSeconds",
430
+ flag: "--timeout",
431
+ kind: "value",
432
+ unless: null,
433
+ },
434
+ {
435
+ option: "cwd",
436
+ flag: "--cwd",
437
+ kind: "value",
438
+ unless: null,
439
+ },
440
+ {
441
+ option: "env",
442
+ flag: "--env",
443
+ kind: "key-value",
444
+ unless: null,
445
+ },
446
+ {
447
+ option: "mode",
448
+ flag: "--mode",
449
+ kind: "value",
450
+ unless: null,
451
+ },
452
+ {
453
+ option: "permitPrompts",
454
+ flag: "--permit-prompts",
455
+ kind: "switch",
456
+ unless: null,
457
+ },
458
+ {
459
+ option: "config",
460
+ flag: "--config",
461
+ kind: "value",
462
+ unless: "noConfig",
463
+ },
464
+ {
465
+ option: "noConfig",
466
+ flag: "--no-config",
467
+ kind: "switch",
468
+ unless: null,
469
+ },
470
+ {
471
+ option: "maxParallel",
472
+ flag: "--max-parallel",
473
+ kind: "value",
474
+ unless: null,
475
+ },
476
+ {
477
+ option: "batchStrategy",
478
+ flag: "--batch-strategy",
479
+ kind: "value",
480
+ unless: null,
481
+ },
482
+ {
483
+ option: "runMode",
484
+ flag: "--run-mode",
485
+ kind: "value",
486
+ unless: null,
487
+ },
488
+ {
489
+ option: "printCommand",
490
+ flag: "--print-command",
491
+ kind: "switch",
492
+ unless: null,
493
+ },
494
+ {
495
+ option: "bins",
496
+ flag: "--bin",
497
+ kind: "key-value",
498
+ unless: null,
499
+ },
500
+ {
501
+ option: "requireAvailable",
502
+ flag: "--require-available",
503
+ kind: "switch",
504
+ unless: null,
505
+ },
506
+ {
507
+ option: "history",
508
+ flag: "--history",
509
+ kind: "switch",
510
+ unless: "noHistory",
511
+ },
512
+ {
513
+ option: "noHistory",
514
+ flag: "--no-history",
515
+ kind: "switch",
516
+ unless: null,
517
+ },
518
+ {
519
+ option: "historyDir",
520
+ flag: "--history-dir",
521
+ kind: "value",
522
+ unless: null,
523
+ },
524
+ {
525
+ option: "historyName",
526
+ flag: "--history-name",
527
+ kind: "value",
528
+ unless: null,
529
+ },
530
+ {
531
+ option: "historyLabels",
532
+ flag: "--history-label",
533
+ kind: "key-value",
534
+ unless: null,
535
+ },
536
+ {
537
+ option: "passthrough",
538
+ flag: "",
539
+ kind: "trailing",
540
+ unless: null,
541
+ },
542
+ ],
543
+ uncovered: [
544
+ {
545
+ flag: "--bypass",
546
+ reason: '`mode: "bypass"` is the same request',
547
+ },
548
+ {
549
+ flag: "--no-bypass",
550
+ reason: '`mode: "default"` is the same request',
551
+ },
552
+ {
553
+ flag: "--no-stream",
554
+ reason: "this method streams by definition, so the negative half cannot apply",
555
+ },
556
+ ],
557
+ },
558
+ list: {
559
+ method: "list",
560
+ argv: ["list"],
561
+ options: null,
562
+ output: "list_report",
563
+ stdout: "json",
564
+ stdin: false,
565
+ rust: "oneharness_core::io::registry::list",
566
+ always: ["--compact"],
567
+ bindings: [],
568
+ uncovered: [],
569
+ },
570
+ detect: {
571
+ method: "detect",
572
+ argv: ["detect"],
573
+ options: "detect_options",
574
+ output: "detect_report",
575
+ stdout: "json",
576
+ stdin: false,
577
+ rust: "oneharness_core::io::detect::detect",
578
+ always: ["--compact"],
579
+ bindings: [
580
+ {
581
+ option: "harnesses",
582
+ flag: "--harness",
583
+ kind: "repeated",
584
+ unless: null,
585
+ },
586
+ {
587
+ option: "all",
588
+ flag: "--all",
589
+ kind: "switch",
590
+ unless: "harnesses",
591
+ },
592
+ {
593
+ option: "exclude",
594
+ flag: "--exclude",
595
+ kind: "repeated",
596
+ unless: null,
597
+ },
598
+ {
599
+ option: "bins",
600
+ flag: "--bin",
601
+ kind: "key-value",
602
+ unless: null,
603
+ },
604
+ {
605
+ option: "config",
606
+ flag: "--config",
607
+ kind: "value",
608
+ unless: "noConfig",
609
+ },
610
+ {
611
+ option: "noConfig",
612
+ flag: "--no-config",
613
+ kind: "switch",
614
+ unless: null,
615
+ },
616
+ {
617
+ option: "requireAvailable",
618
+ flag: "--require-available",
619
+ kind: "switch",
620
+ unless: null,
621
+ },
622
+ ],
623
+ uncovered: [],
624
+ },
625
+ config: {
626
+ method: "config",
627
+ argv: ["config"],
628
+ options: "config_options",
629
+ output: "config_report",
630
+ stdout: "json",
631
+ stdin: false,
632
+ rust: "oneharness_core::domain::config::explain",
633
+ always: ["--compact"],
634
+ bindings: [
635
+ {
636
+ option: "cwd",
637
+ flag: "--cwd",
638
+ kind: "value",
639
+ unless: null,
640
+ },
641
+ {
642
+ option: "config",
643
+ flag: "--config",
644
+ kind: "value",
645
+ unless: "noConfig",
646
+ },
647
+ {
648
+ option: "noConfig",
649
+ flag: "--no-config",
650
+ kind: "switch",
651
+ unless: null,
652
+ },
653
+ ],
654
+ uncovered: [],
655
+ },
656
+ sync: {
657
+ method: "sync",
658
+ argv: ["sync"],
659
+ options: "sync_options",
660
+ output: "sync_report",
661
+ stdout: "json",
662
+ stdin: false,
663
+ rust: "oneharness_core::io::sync::sync",
664
+ always: ["--compact"],
665
+ bindings: [
666
+ {
667
+ option: "cwd",
668
+ flag: "--cwd",
669
+ kind: "value",
670
+ unless: null,
671
+ },
672
+ {
673
+ option: "harnesses",
674
+ flag: "--harness",
675
+ kind: "repeated",
676
+ unless: null,
677
+ },
678
+ {
679
+ option: "check",
680
+ flag: "--check",
681
+ kind: "switch",
682
+ unless: null,
683
+ },
684
+ {
685
+ option: "global",
686
+ flag: "--global",
687
+ kind: "switch",
688
+ unless: null,
689
+ },
690
+ {
691
+ option: "config",
692
+ flag: "--config",
693
+ kind: "value",
694
+ unless: "noConfig",
695
+ },
696
+ {
697
+ option: "noConfig",
698
+ flag: "--no-config",
699
+ kind: "switch",
700
+ unless: null,
701
+ },
702
+ ],
703
+ uncovered: [],
704
+ },
705
+ init: {
706
+ method: "init",
707
+ argv: ["init"],
708
+ options: "init_options",
709
+ output: null,
710
+ stdout: "text",
711
+ stdin: false,
712
+ rust: "oneharness_core::io::init::init",
713
+ always: [],
714
+ bindings: [
715
+ {
716
+ option: "path",
717
+ flag: "",
718
+ kind: "positional",
719
+ unless: null,
720
+ },
721
+ {
722
+ option: "force",
723
+ flag: "--force",
724
+ kind: "switch",
725
+ unless: null,
726
+ },
727
+ ],
728
+ uncovered: [],
729
+ },
730
+ usage: {
731
+ method: "usage",
732
+ argv: ["usage"],
733
+ options: "usage_options",
734
+ output: "usage_report",
735
+ stdout: "json",
736
+ stdin: false,
737
+ rust: "oneharness_core::io::usage::report",
738
+ always: ["--compact"],
739
+ bindings: [
740
+ {
741
+ option: "harnesses",
742
+ flag: "--harness",
743
+ kind: "repeated",
744
+ unless: null,
745
+ },
746
+ {
747
+ option: "all",
748
+ flag: "--all",
749
+ kind: "switch",
750
+ unless: "harnesses",
751
+ },
752
+ {
753
+ option: "exclude",
754
+ flag: "--exclude",
755
+ kind: "repeated",
756
+ unless: null,
757
+ },
758
+ {
759
+ option: "bins",
760
+ flag: "--bin",
761
+ kind: "key-value",
762
+ unless: null,
763
+ },
764
+ {
765
+ option: "cwd",
766
+ flag: "--cwd",
767
+ kind: "value",
768
+ unless: null,
769
+ },
770
+ {
771
+ option: "timeoutSeconds",
772
+ flag: "--timeout",
773
+ kind: "value",
774
+ unless: null,
775
+ },
776
+ {
777
+ option: "config",
778
+ flag: "--config",
779
+ kind: "value",
780
+ unless: "noConfig",
781
+ },
782
+ {
783
+ option: "noConfig",
784
+ flag: "--no-config",
785
+ kind: "switch",
786
+ unless: null,
787
+ },
788
+ ],
789
+ uncovered: [
790
+ {
791
+ flag: "--format",
792
+ reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
793
+ },
794
+ ],
795
+ },
796
+ gate: {
797
+ method: "gate",
798
+ argv: ["gate"],
799
+ options: "gate_options",
800
+ output: null,
801
+ stdout: "text",
802
+ stdin: true,
803
+ rust: "oneharness_core::domain::gate::render_deny",
804
+ always: [],
805
+ bindings: [
806
+ {
807
+ option: "harness",
808
+ flag: "",
809
+ kind: "positional",
810
+ unless: null,
811
+ },
812
+ {
813
+ option: "denyIfContains",
814
+ flag: "--deny-if-contains",
815
+ kind: "value",
816
+ unless: null,
817
+ },
818
+ {
819
+ option: "reason",
820
+ flag: "--reason",
821
+ kind: "value",
822
+ unless: null,
823
+ },
824
+ ],
825
+ uncovered: [],
826
+ },
827
+ mock: {
828
+ method: "mock",
829
+ argv: ["mock"],
830
+ options: "mock_options",
831
+ output: null,
832
+ stdout: "text",
833
+ stdin: true,
834
+ rust: "oneharness_core::domain::mock::decide",
835
+ always: [],
836
+ bindings: [
837
+ {
838
+ option: "harness",
839
+ flag: "",
840
+ kind: "positional",
841
+ unless: null,
842
+ },
843
+ {
844
+ option: "rules",
845
+ flag: "--rules",
846
+ kind: "value",
847
+ unless: null,
848
+ },
849
+ {
850
+ option: "spyFile",
851
+ flag: "--spy-file",
852
+ kind: "value",
853
+ unless: null,
854
+ },
855
+ ],
856
+ uncovered: [],
857
+ },
858
+ interrupt: {
859
+ method: "interrupt",
860
+ argv: ["interrupt"],
861
+ options: "interrupt_options",
862
+ output: "interrupt_response",
863
+ stdout: "json",
864
+ stdin: false,
865
+ rust: "oneharness_core::io::control::send",
866
+ always: ["--compact"],
867
+ bindings: [
868
+ {
869
+ option: "session",
870
+ flag: "--session",
871
+ kind: "value",
872
+ unless: null,
873
+ },
874
+ {
875
+ option: "input",
876
+ flag: "--input",
877
+ kind: "value",
878
+ unless: null,
879
+ },
880
+ {
881
+ option: "sessionDir",
882
+ flag: "--session-dir",
883
+ kind: "value",
884
+ unless: null,
885
+ },
886
+ {
887
+ option: "cwd",
888
+ flag: "--cwd",
889
+ kind: "value",
890
+ unless: null,
891
+ },
892
+ ],
893
+ uncovered: [],
894
+ },
895
+ history: {
896
+ method: "history",
897
+ argv: ["history", "show"],
898
+ options: "history_lookup",
899
+ output: "history_records",
900
+ stdout: "json",
901
+ stdin: false,
902
+ rust: "oneharness_core::io::history::read_session",
903
+ always: ["--compact"],
904
+ bindings: [
905
+ {
906
+ option: "session",
907
+ flag: "",
908
+ kind: "positional",
909
+ unless: "last",
910
+ },
911
+ {
912
+ option: "last",
913
+ flag: "--last",
914
+ kind: "switch",
915
+ unless: null,
916
+ },
917
+ {
918
+ option: "all",
919
+ flag: "--all",
920
+ kind: "switch",
921
+ unless: null,
922
+ },
923
+ {
924
+ option: "project",
925
+ flag: "--project",
926
+ kind: "value",
927
+ unless: "allProjects",
928
+ },
929
+ {
930
+ option: "allProjects",
931
+ flag: "--all-projects",
932
+ kind: "switch",
933
+ unless: null,
934
+ },
935
+ {
936
+ option: "historyDir",
937
+ flag: "--history-dir",
938
+ kind: "value",
939
+ unless: null,
940
+ },
941
+ {
942
+ option: "config",
943
+ flag: "--config",
944
+ kind: "value",
945
+ unless: "noConfig",
946
+ },
947
+ {
948
+ option: "noConfig",
949
+ flag: "--no-config",
950
+ kind: "switch",
951
+ unless: null,
952
+ },
953
+ ],
954
+ uncovered: [
955
+ {
956
+ flag: "--format",
957
+ reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
958
+ },
959
+ ],
960
+ },
961
+ historyList: {
962
+ method: "historyList",
963
+ argv: ["history", "list"],
964
+ options: "history_list_options",
965
+ output: "history_list",
966
+ stdout: "json",
967
+ stdin: false,
968
+ rust: "oneharness_core::io::history::list_sessions",
969
+ always: ["--compact"],
970
+ bindings: [
971
+ {
972
+ option: "variant",
973
+ flag: "--variant",
974
+ kind: "value",
975
+ unless: null,
976
+ },
977
+ {
978
+ option: "project",
979
+ flag: "--project",
980
+ kind: "value",
981
+ unless: "allProjects",
982
+ },
983
+ {
984
+ option: "allProjects",
985
+ flag: "--all-projects",
986
+ kind: "switch",
987
+ unless: null,
988
+ },
989
+ {
990
+ option: "historyDir",
991
+ flag: "--history-dir",
992
+ kind: "value",
993
+ unless: null,
994
+ },
995
+ {
996
+ option: "config",
997
+ flag: "--config",
998
+ kind: "value",
999
+ unless: "noConfig",
1000
+ },
1001
+ {
1002
+ option: "noConfig",
1003
+ flag: "--no-config",
1004
+ kind: "switch",
1005
+ unless: null,
1006
+ },
1007
+ ],
1008
+ uncovered: [
1009
+ {
1010
+ flag: "--format",
1011
+ reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
1012
+ },
1013
+ ],
1014
+ },
1015
+ historyWatch: {
1016
+ method: "historyWatch",
1017
+ argv: ["history", "watch"],
1018
+ options: "history_watch_options",
1019
+ output: "history_stream_envelope",
1020
+ stdout: "jsonl",
1021
+ stdin: false,
1022
+ rust: "oneharness_core::io::history::HistoryWatcher",
1023
+ always: ["--format", "jsonl"],
1024
+ bindings: [
1025
+ {
1026
+ option: "after",
1027
+ flag: "--after",
1028
+ kind: "value",
1029
+ unless: null,
1030
+ },
1031
+ {
1032
+ option: "labels",
1033
+ flag: "--label",
1034
+ kind: "key-value",
1035
+ unless: null,
1036
+ },
1037
+ {
1038
+ option: "variant",
1039
+ flag: "--variant",
1040
+ kind: "value",
1041
+ unless: null,
1042
+ },
1043
+ {
1044
+ option: "project",
1045
+ flag: "--project",
1046
+ kind: "value",
1047
+ unless: "allProjects",
1048
+ },
1049
+ {
1050
+ option: "allProjects",
1051
+ flag: "--all-projects",
1052
+ kind: "switch",
1053
+ unless: null,
1054
+ },
1055
+ {
1056
+ option: "historyDir",
1057
+ flag: "--history-dir",
1058
+ kind: "value",
1059
+ unless: null,
1060
+ },
1061
+ {
1062
+ option: "events",
1063
+ flag: "--events",
1064
+ kind: "switch",
1065
+ unless: null,
1066
+ },
1067
+ {
1068
+ option: "config",
1069
+ flag: "--config",
1070
+ kind: "value",
1071
+ unless: "noConfig",
1072
+ },
1073
+ {
1074
+ option: "noConfig",
1075
+ flag: "--no-config",
1076
+ kind: "switch",
1077
+ unless: null,
1078
+ },
1079
+ ],
1080
+ uncovered: [],
1081
+ },
1082
+ historyClear: {
1083
+ method: "historyClear",
1084
+ argv: ["history", "clear"],
1085
+ options: "history_clear_options",
1086
+ output: "history_clear_report",
1087
+ stdout: "json",
1088
+ stdin: false,
1089
+ rust: "oneharness_core::io::history::remove_sessions",
1090
+ always: ["--compact"],
1091
+ bindings: [
1092
+ {
1093
+ option: "project",
1094
+ flag: "--project",
1095
+ kind: "value",
1096
+ unless: "allProjects",
1097
+ },
1098
+ {
1099
+ option: "allProjects",
1100
+ flag: "--all-projects",
1101
+ kind: "switch",
1102
+ unless: null,
1103
+ },
1104
+ {
1105
+ option: "yes",
1106
+ flag: "--yes",
1107
+ kind: "switch",
1108
+ unless: null,
1109
+ },
1110
+ {
1111
+ option: "historyDir",
1112
+ flag: "--history-dir",
1113
+ kind: "value",
1114
+ unless: null,
1115
+ },
1116
+ {
1117
+ option: "config",
1118
+ flag: "--config",
1119
+ kind: "value",
1120
+ unless: "noConfig",
1121
+ },
1122
+ {
1123
+ option: "noConfig",
1124
+ flag: "--no-config",
1125
+ kind: "switch",
1126
+ unless: null,
1127
+ },
1128
+ ],
1129
+ uncovered: [],
1130
+ },
1131
+ historyMigrate: {
1132
+ method: "historyMigrate",
1133
+ argv: ["history", "migrate"],
1134
+ options: "history_migrate_options",
1135
+ output: "history_migrate_report",
1136
+ stdout: "json",
1137
+ stdin: false,
1138
+ rust: "oneharness_core::io::history::migrate",
1139
+ always: ["--compact"],
1140
+ bindings: [
1141
+ {
1142
+ option: "historyDir",
1143
+ flag: "--history-dir",
1144
+ kind: "value",
1145
+ unless: null,
1146
+ },
1147
+ {
1148
+ option: "config",
1149
+ flag: "--config",
1150
+ kind: "value",
1151
+ unless: "noConfig",
1152
+ },
1153
+ {
1154
+ option: "noConfig",
1155
+ flag: "--no-config",
1156
+ kind: "switch",
1157
+ unless: null,
1158
+ },
1159
+ ],
1160
+ uncovered: [],
1161
+ },
1162
+ };