@oneharness/sdk 0.13.1 → 0.14.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.
@@ -45,7 +45,7 @@ export declare const CAPABILITIES: {
45
45
  readonly stdout: "json";
46
46
  readonly stdin: false;
47
47
  readonly rust: "oneharness_core::io::run::run";
48
- readonly always: readonly ["--compact", "--no-stream"];
48
+ readonly always: readonly ["--compact", "--format", "json", "--no-stream"];
49
49
  readonly bindings: readonly [{
50
50
  readonly option: "prompt";
51
51
  readonly flag: "--prompt";
@@ -515,6 +515,9 @@ export declare const CAPABILITIES: {
515
515
  }, {
516
516
  readonly flag: "--no-stream";
517
517
  readonly reason: "this method streams by definition, so the negative half cannot apply";
518
+ }, {
519
+ readonly flag: "--format";
520
+ readonly reason: "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes";
518
521
  }];
519
522
  };
520
523
  readonly list: {
@@ -525,7 +528,7 @@ export declare const CAPABILITIES: {
525
528
  readonly stdout: "json";
526
529
  readonly stdin: false;
527
530
  readonly rust: "oneharness_core::io::registry::list";
528
- readonly always: readonly ["--compact"];
531
+ readonly always: readonly ["--compact", "--format", "json"];
529
532
  readonly bindings: readonly [];
530
533
  readonly uncovered: readonly [];
531
534
  };
@@ -537,7 +540,7 @@ export declare const CAPABILITIES: {
537
540
  readonly stdout: "json";
538
541
  readonly stdin: false;
539
542
  readonly rust: "oneharness_core::io::detect::detect";
540
- readonly always: readonly ["--compact"];
543
+ readonly always: readonly ["--compact", "--format", "json"];
541
544
  readonly bindings: readonly [{
542
545
  readonly option: "harnesses";
543
546
  readonly flag: "--harness";
@@ -586,7 +589,7 @@ export declare const CAPABILITIES: {
586
589
  readonly stdout: "json";
587
590
  readonly stdin: false;
588
591
  readonly rust: "oneharness_core::domain::config::explain";
589
- readonly always: readonly ["--compact"];
592
+ readonly always: readonly ["--compact", "--format", "json"];
590
593
  readonly bindings: readonly [{
591
594
  readonly option: "cwd";
592
595
  readonly flag: "--cwd";
@@ -614,7 +617,7 @@ export declare const CAPABILITIES: {
614
617
  readonly stdout: "json";
615
618
  readonly stdin: false;
616
619
  readonly rust: "oneharness_core::io::sync::sync";
617
- readonly always: readonly ["--compact"];
620
+ readonly always: readonly ["--compact", "--format", "json"];
618
621
  readonly bindings: readonly [{
619
622
  readonly option: "cwd";
620
623
  readonly flag: "--cwd";
@@ -679,7 +682,7 @@ export declare const CAPABILITIES: {
679
682
  readonly stdout: "json";
680
683
  readonly stdin: false;
681
684
  readonly rust: "oneharness_core::io::usage::report";
682
- readonly always: readonly ["--compact"];
685
+ readonly always: readonly ["--compact", "--format", "json"];
683
686
  readonly bindings: readonly [{
684
687
  readonly option: "harnesses";
685
688
  readonly flag: "--harness";
@@ -723,10 +726,7 @@ export declare const CAPABILITIES: {
723
726
  readonly kind: "switch";
724
727
  readonly unless: null;
725
728
  }];
726
- readonly uncovered: readonly [{
727
- readonly flag: "--format";
728
- readonly reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not";
729
- }];
729
+ readonly uncovered: readonly [];
730
730
  };
731
731
  readonly gate: {
732
732
  readonly method: "gate";
@@ -790,7 +790,7 @@ export declare const CAPABILITIES: {
790
790
  readonly stdout: "json";
791
791
  readonly stdin: false;
792
792
  readonly rust: "oneharness_core::io::control::send";
793
- readonly always: readonly ["--compact"];
793
+ readonly always: readonly ["--compact", "--format", "json"];
794
794
  readonly bindings: readonly [{
795
795
  readonly option: "session";
796
796
  readonly flag: "--session";
@@ -822,7 +822,7 @@ export declare const CAPABILITIES: {
822
822
  readonly stdout: "json";
823
823
  readonly stdin: false;
824
824
  readonly rust: "oneharness_core::io::history::read_session";
825
- readonly always: readonly ["--compact"];
825
+ readonly always: readonly ["--compact", "--format", "json"];
826
826
  readonly bindings: readonly [{
827
827
  readonly option: "session";
828
828
  readonly flag: "";
@@ -867,10 +867,7 @@ export declare const CAPABILITIES: {
867
867
  readonly kind: "switch";
868
868
  readonly unless: null;
869
869
  }];
870
- readonly uncovered: readonly [{
871
- readonly flag: "--format";
872
- readonly reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not";
873
- }];
870
+ readonly uncovered: readonly [];
874
871
  };
875
872
  readonly historyList: {
876
873
  readonly method: "historyList";
@@ -880,7 +877,7 @@ export declare const CAPABILITIES: {
880
877
  readonly stdout: "json";
881
878
  readonly stdin: false;
882
879
  readonly rust: "oneharness_core::io::history::list_sessions";
883
- readonly always: readonly ["--compact"];
880
+ readonly always: readonly ["--compact", "--format", "json"];
884
881
  readonly bindings: readonly [{
885
882
  readonly option: "variant";
886
883
  readonly flag: "--variant";
@@ -914,10 +911,7 @@ export declare const CAPABILITIES: {
914
911
  readonly kind: "switch";
915
912
  readonly unless: null;
916
913
  }];
917
- readonly uncovered: readonly [{
918
- readonly flag: "--format";
919
- readonly reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not";
920
- }];
914
+ readonly uncovered: readonly [];
921
915
  };
922
916
  readonly historyWatch: {
923
917
  readonly method: "historyWatch";
@@ -986,7 +980,7 @@ export declare const CAPABILITIES: {
986
980
  readonly stdout: "json";
987
981
  readonly stdin: false;
988
982
  readonly rust: "oneharness_core::io::history::remove_sessions";
989
- readonly always: readonly ["--compact"];
983
+ readonly always: readonly ["--compact", "--format", "json"];
990
984
  readonly bindings: readonly [{
991
985
  readonly option: "project";
992
986
  readonly flag: "--project";
@@ -1030,7 +1024,7 @@ export declare const CAPABILITIES: {
1030
1024
  readonly stdout: "json";
1031
1025
  readonly stdin: false;
1032
1026
  readonly rust: "oneharness_core::io::history::migrate";
1033
- readonly always: readonly ["--compact"];
1027
+ readonly always: readonly ["--compact", "--format", "json"];
1034
1028
  readonly bindings: readonly [{
1035
1029
  readonly option: "historyDir";
1036
1030
  readonly flag: "--history-dir";
@@ -7,7 +7,7 @@ export const CAPABILITIES = {
7
7
  stdout: "json",
8
8
  stdin: false,
9
9
  rust: "oneharness_core::io::run::run",
10
- always: ["--compact", "--no-stream"],
10
+ always: ["--compact", "--format", "json", "--no-stream"],
11
11
  bindings: [
12
12
  {
13
13
  option: "prompt",
@@ -573,6 +573,10 @@ export const CAPABILITIES = {
573
573
  flag: "--no-stream",
574
574
  reason: "this method streams by definition, so the negative half cannot apply",
575
575
  },
576
+ {
577
+ flag: "--format",
578
+ reason: "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes",
579
+ },
576
580
  ],
577
581
  },
578
582
  list: {
@@ -583,7 +587,7 @@ export const CAPABILITIES = {
583
587
  stdout: "json",
584
588
  stdin: false,
585
589
  rust: "oneharness_core::io::registry::list",
586
- always: ["--compact"],
590
+ always: ["--compact", "--format", "json"],
587
591
  bindings: [],
588
592
  uncovered: [],
589
593
  },
@@ -595,7 +599,7 @@ export const CAPABILITIES = {
595
599
  stdout: "json",
596
600
  stdin: false,
597
601
  rust: "oneharness_core::io::detect::detect",
598
- always: ["--compact"],
602
+ always: ["--compact", "--format", "json"],
599
603
  bindings: [
600
604
  {
601
605
  option: "harnesses",
@@ -652,7 +656,7 @@ export const CAPABILITIES = {
652
656
  stdout: "json",
653
657
  stdin: false,
654
658
  rust: "oneharness_core::domain::config::explain",
655
- always: ["--compact"],
659
+ always: ["--compact", "--format", "json"],
656
660
  bindings: [
657
661
  {
658
662
  option: "cwd",
@@ -684,7 +688,7 @@ export const CAPABILITIES = {
684
688
  stdout: "json",
685
689
  stdin: false,
686
690
  rust: "oneharness_core::io::sync::sync",
687
- always: ["--compact"],
691
+ always: ["--compact", "--format", "json"],
688
692
  bindings: [
689
693
  {
690
694
  option: "cwd",
@@ -759,7 +763,7 @@ export const CAPABILITIES = {
759
763
  stdout: "json",
760
764
  stdin: false,
761
765
  rust: "oneharness_core::io::usage::report",
762
- always: ["--compact"],
766
+ always: ["--compact", "--format", "json"],
763
767
  bindings: [
764
768
  {
765
769
  option: "harnesses",
@@ -812,12 +816,7 @@ export const CAPABILITIES = {
812
816
  unless: null,
813
817
  },
814
818
  ],
815
- uncovered: [
816
- {
817
- flag: "--format",
818
- reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
819
- },
820
- ],
819
+ uncovered: [],
821
820
  },
822
821
  gate: {
823
822
  method: "gate",
@@ -889,7 +888,7 @@ export const CAPABILITIES = {
889
888
  stdout: "json",
890
889
  stdin: false,
891
890
  rust: "oneharness_core::io::control::send",
892
- always: ["--compact"],
891
+ always: ["--compact", "--format", "json"],
893
892
  bindings: [
894
893
  {
895
894
  option: "session",
@@ -926,7 +925,7 @@ export const CAPABILITIES = {
926
925
  stdout: "json",
927
926
  stdin: false,
928
927
  rust: "oneharness_core::io::history::read_session",
929
- always: ["--compact"],
928
+ always: ["--compact", "--format", "json"],
930
929
  bindings: [
931
930
  {
932
931
  option: "session",
@@ -980,12 +979,7 @@ export const CAPABILITIES = {
980
979
  unless: null,
981
980
  },
982
981
  ],
983
- uncovered: [
984
- {
985
- flag: "--format",
986
- reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
987
- },
988
- ],
982
+ uncovered: [],
989
983
  },
990
984
  historyList: {
991
985
  method: "historyList",
@@ -995,7 +989,7 @@ export const CAPABILITIES = {
995
989
  stdout: "json",
996
990
  stdin: false,
997
991
  rust: "oneharness_core::io::history::list_sessions",
998
- always: ["--compact"],
992
+ always: ["--compact", "--format", "json"],
999
993
  bindings: [
1000
994
  {
1001
995
  option: "variant",
@@ -1036,12 +1030,7 @@ export const CAPABILITIES = {
1036
1030
  unless: null,
1037
1031
  },
1038
1032
  ],
1039
- uncovered: [
1040
- {
1041
- flag: "--format",
1042
- reason: "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not",
1043
- },
1044
- ],
1033
+ uncovered: [],
1045
1034
  },
1046
1035
  historyWatch: {
1047
1036
  method: "historyWatch",
@@ -1120,7 +1109,7 @@ export const CAPABILITIES = {
1120
1109
  stdout: "json",
1121
1110
  stdin: false,
1122
1111
  rust: "oneharness_core::io::history::remove_sessions",
1123
- always: ["--compact"],
1112
+ always: ["--compact", "--format", "json"],
1124
1113
  bindings: [
1125
1114
  {
1126
1115
  option: "project",
@@ -1171,7 +1160,7 @@ export const CAPABILITIES = {
1171
1160
  stdout: "json",
1172
1161
  stdin: false,
1173
1162
  rust: "oneharness_core::io::history::migrate",
1174
- always: ["--compact"],
1163
+ always: ["--compact", "--format", "json"],
1175
1164
  bindings: [
1176
1165
  {
1177
1166
  option: "historyDir",
@@ -12,6 +12,8 @@
12
12
  "rust": "oneharness_core::io::run::run",
13
13
  "always": [
14
14
  "--compact",
15
+ "--format",
16
+ "json",
15
17
  "--no-stream"
16
18
  ],
17
19
  "bindings": [
@@ -583,6 +585,10 @@
583
585
  {
584
586
  "flag": "--no-stream",
585
587
  "reason": "this method streams by definition, so the negative half cannot apply"
588
+ },
589
+ {
590
+ "flag": "--format",
591
+ "reason": "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes"
586
592
  }
587
593
  ]
588
594
  },
@@ -597,7 +603,9 @@
597
603
  "stdin": false,
598
604
  "rust": "oneharness_core::io::registry::list",
599
605
  "always": [
600
- "--compact"
606
+ "--compact",
607
+ "--format",
608
+ "json"
601
609
  ],
602
610
  "bindings": [],
603
611
  "uncovered": []
@@ -613,7 +621,9 @@
613
621
  "stdin": false,
614
622
  "rust": "oneharness_core::io::detect::detect",
615
623
  "always": [
616
- "--compact"
624
+ "--compact",
625
+ "--format",
626
+ "json"
617
627
  ],
618
628
  "bindings": [
619
629
  {
@@ -674,7 +684,9 @@
674
684
  "stdin": false,
675
685
  "rust": "oneharness_core::domain::config::explain",
676
686
  "always": [
677
- "--compact"
687
+ "--compact",
688
+ "--format",
689
+ "json"
678
690
  ],
679
691
  "bindings": [
680
692
  {
@@ -710,7 +722,9 @@
710
722
  "stdin": false,
711
723
  "rust": "oneharness_core::io::sync::sync",
712
724
  "always": [
713
- "--compact"
725
+ "--compact",
726
+ "--format",
727
+ "json"
714
728
  ],
715
729
  "bindings": [
716
730
  {
@@ -791,7 +805,9 @@
791
805
  "stdin": false,
792
806
  "rust": "oneharness_core::io::usage::report",
793
807
  "always": [
794
- "--compact"
808
+ "--compact",
809
+ "--format",
810
+ "json"
795
811
  ],
796
812
  "bindings": [
797
813
  {
@@ -845,12 +861,7 @@
845
861
  "unless": null
846
862
  }
847
863
  ],
848
- "uncovered": [
849
- {
850
- "flag": "--format",
851
- "reason": "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not"
852
- }
853
- ]
864
+ "uncovered": []
854
865
  },
855
866
  {
856
867
  "method": "gate",
@@ -929,7 +940,9 @@
929
940
  "stdin": false,
930
941
  "rust": "oneharness_core::io::control::send",
931
942
  "always": [
932
- "--compact"
943
+ "--compact",
944
+ "--format",
945
+ "json"
933
946
  ],
934
947
  "bindings": [
935
948
  {
@@ -971,7 +984,9 @@
971
984
  "stdin": false,
972
985
  "rust": "oneharness_core::io::history::read_session",
973
986
  "always": [
974
- "--compact"
987
+ "--compact",
988
+ "--format",
989
+ "json"
975
990
  ],
976
991
  "bindings": [
977
992
  {
@@ -1026,12 +1041,7 @@
1026
1041
  "unless": null
1027
1042
  }
1028
1043
  ],
1029
- "uncovered": [
1030
- {
1031
- "flag": "--format",
1032
- "reason": "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not"
1033
- }
1034
- ]
1044
+ "uncovered": []
1035
1045
  },
1036
1046
  {
1037
1047
  "method": "historyList",
@@ -1045,7 +1055,9 @@
1045
1055
  "stdin": false,
1046
1056
  "rust": "oneharness_core::io::history::list_sessions",
1047
1057
  "always": [
1048
- "--compact"
1058
+ "--compact",
1059
+ "--format",
1060
+ "json"
1049
1061
  ],
1050
1062
  "bindings": [
1051
1063
  {
@@ -1087,12 +1099,7 @@
1087
1099
  "unless": null
1088
1100
  }
1089
1101
  ],
1090
- "uncovered": [
1091
- {
1092
- "flag": "--format",
1093
- "reason": "the SDKs consume the JSON contract; `--format text` is the human-readable view of the same data, carrying nothing the JSON does not"
1094
- }
1095
- ]
1102
+ "uncovered": []
1096
1103
  },
1097
1104
  {
1098
1105
  "method": "historyWatch",
@@ -1181,7 +1188,9 @@
1181
1188
  "stdin": false,
1182
1189
  "rust": "oneharness_core::io::history::remove_sessions",
1183
1190
  "always": [
1184
- "--compact"
1191
+ "--compact",
1192
+ "--format",
1193
+ "json"
1185
1194
  ],
1186
1195
  "bindings": [
1187
1196
  {
@@ -1237,7 +1246,9 @@
1237
1246
  "stdin": false,
1238
1247
  "rust": "oneharness_core::io::history::migrate",
1239
1248
  "always": [
1240
- "--compact"
1249
+ "--compact",
1250
+ "--format",
1251
+ "json"
1241
1252
  ],
1242
1253
  "bindings": [
1243
1254
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneharness/sdk",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Typed Node.js SDK for oneharness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "node": ">=20"
20
20
  },
21
21
  "dependencies": {
22
- "oneharness-cli": "0.13.1",
22
+ "oneharness-cli": "0.14.0",
23
23
  "zod": "^4.4.3"
24
24
  }
25
25
  }