@oneharness/sdk 0.17.1 → 0.18.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.
- package/dist/generated/capabilities.d.ts +11 -11
- package/dist/generated/capabilities.js +11 -11
- package/dist/generated/config-options.d.ts +9 -1
- package/dist/generated/detect-options.d.ts +9 -1
- package/dist/generated/history-clear-options.d.ts +9 -1
- package/dist/generated/history-list-options.d.ts +5 -4
- package/dist/generated/history-lookup.d.ts +10 -8
- package/dist/generated/history-migrate-options.d.ts +9 -1
- package/dist/generated/history-watch-options.d.ts +5 -4
- package/dist/generated/options.d.ts +9 -1
- package/dist/generated/schemas.json +77 -30
- package/dist/generated/sync-options.d.ts +9 -1
- package/dist/generated/usage-options.d.ts +9 -1
- package/dist/generated/zod.js +11 -11
- package/package.json +2 -2
|
@@ -202,7 +202,7 @@ export declare const CAPABILITIES: {
|
|
|
202
202
|
}, {
|
|
203
203
|
readonly option: "config";
|
|
204
204
|
readonly flag: "--config";
|
|
205
|
-
readonly kind: "
|
|
205
|
+
readonly kind: "repeated";
|
|
206
206
|
readonly unless: "noConfig";
|
|
207
207
|
readonly unless_resolution: "refuse";
|
|
208
208
|
}, {
|
|
@@ -447,7 +447,7 @@ export declare const CAPABILITIES: {
|
|
|
447
447
|
}, {
|
|
448
448
|
readonly option: "config";
|
|
449
449
|
readonly flag: "--config";
|
|
450
|
-
readonly kind: "
|
|
450
|
+
readonly kind: "repeated";
|
|
451
451
|
readonly unless: "noConfig";
|
|
452
452
|
readonly unless_resolution: "refuse";
|
|
453
453
|
}, {
|
|
@@ -581,7 +581,7 @@ export declare const CAPABILITIES: {
|
|
|
581
581
|
}, {
|
|
582
582
|
readonly option: "config";
|
|
583
583
|
readonly flag: "--config";
|
|
584
|
-
readonly kind: "
|
|
584
|
+
readonly kind: "repeated";
|
|
585
585
|
readonly unless: "noConfig";
|
|
586
586
|
readonly unless_resolution: "refuse";
|
|
587
587
|
}, {
|
|
@@ -614,7 +614,7 @@ export declare const CAPABILITIES: {
|
|
|
614
614
|
}, {
|
|
615
615
|
readonly option: "config";
|
|
616
616
|
readonly flag: "--config";
|
|
617
|
-
readonly kind: "
|
|
617
|
+
readonly kind: "repeated";
|
|
618
618
|
readonly unless: "noConfig";
|
|
619
619
|
readonly unless_resolution: "refuse";
|
|
620
620
|
}, {
|
|
@@ -662,7 +662,7 @@ export declare const CAPABILITIES: {
|
|
|
662
662
|
}, {
|
|
663
663
|
readonly option: "config";
|
|
664
664
|
readonly flag: "--config";
|
|
665
|
-
readonly kind: "
|
|
665
|
+
readonly kind: "repeated";
|
|
666
666
|
readonly unless: "noConfig";
|
|
667
667
|
readonly unless_resolution: "refuse";
|
|
668
668
|
}, {
|
|
@@ -738,7 +738,7 @@ export declare const CAPABILITIES: {
|
|
|
738
738
|
}, {
|
|
739
739
|
readonly option: "config";
|
|
740
740
|
readonly flag: "--config";
|
|
741
|
-
readonly kind: "
|
|
741
|
+
readonly kind: "repeated";
|
|
742
742
|
readonly unless: "noConfig";
|
|
743
743
|
readonly unless_resolution: "refuse";
|
|
744
744
|
}, {
|
|
@@ -879,7 +879,7 @@ export declare const CAPABILITIES: {
|
|
|
879
879
|
}, {
|
|
880
880
|
readonly option: "config";
|
|
881
881
|
readonly flag: "--config";
|
|
882
|
-
readonly kind: "
|
|
882
|
+
readonly kind: "repeated";
|
|
883
883
|
readonly unless: "noConfig";
|
|
884
884
|
readonly unless_resolution: "refuse";
|
|
885
885
|
}, {
|
|
@@ -923,7 +923,7 @@ export declare const CAPABILITIES: {
|
|
|
923
923
|
}, {
|
|
924
924
|
readonly option: "config";
|
|
925
925
|
readonly flag: "--config";
|
|
926
|
-
readonly kind: "
|
|
926
|
+
readonly kind: "repeated";
|
|
927
927
|
readonly unless: "noConfig";
|
|
928
928
|
readonly unless_resolution: "refuse";
|
|
929
929
|
}, {
|
|
@@ -982,7 +982,7 @@ export declare const CAPABILITIES: {
|
|
|
982
982
|
}, {
|
|
983
983
|
readonly option: "config";
|
|
984
984
|
readonly flag: "--config";
|
|
985
|
-
readonly kind: "
|
|
985
|
+
readonly kind: "repeated";
|
|
986
986
|
readonly unless: "noConfig";
|
|
987
987
|
readonly unless_resolution: "refuse";
|
|
988
988
|
}, {
|
|
@@ -1026,7 +1026,7 @@ export declare const CAPABILITIES: {
|
|
|
1026
1026
|
}, {
|
|
1027
1027
|
readonly option: "config";
|
|
1028
1028
|
readonly flag: "--config";
|
|
1029
|
-
readonly kind: "
|
|
1029
|
+
readonly kind: "repeated";
|
|
1030
1030
|
readonly unless: "noConfig";
|
|
1031
1031
|
readonly unless_resolution: "refuse";
|
|
1032
1032
|
}, {
|
|
@@ -1054,7 +1054,7 @@ export declare const CAPABILITIES: {
|
|
|
1054
1054
|
}, {
|
|
1055
1055
|
readonly option: "config";
|
|
1056
1056
|
readonly flag: "--config";
|
|
1057
|
-
readonly kind: "
|
|
1057
|
+
readonly kind: "repeated";
|
|
1058
1058
|
readonly unless: "noConfig";
|
|
1059
1059
|
readonly unless_resolution: "refuse";
|
|
1060
1060
|
}, {
|
|
@@ -194,7 +194,7 @@ export const CAPABILITIES = {
|
|
|
194
194
|
{
|
|
195
195
|
option: "config",
|
|
196
196
|
flag: "--config",
|
|
197
|
-
kind: "
|
|
197
|
+
kind: "repeated",
|
|
198
198
|
unless: "noConfig",
|
|
199
199
|
unless_resolution: "refuse",
|
|
200
200
|
},
|
|
@@ -488,7 +488,7 @@ export const CAPABILITIES = {
|
|
|
488
488
|
{
|
|
489
489
|
option: "config",
|
|
490
490
|
flag: "--config",
|
|
491
|
-
kind: "
|
|
491
|
+
kind: "repeated",
|
|
492
492
|
unless: "noConfig",
|
|
493
493
|
unless_resolution: "refuse",
|
|
494
494
|
},
|
|
@@ -647,7 +647,7 @@ export const CAPABILITIES = {
|
|
|
647
647
|
{
|
|
648
648
|
option: "config",
|
|
649
649
|
flag: "--config",
|
|
650
|
-
kind: "
|
|
650
|
+
kind: "repeated",
|
|
651
651
|
unless: "noConfig",
|
|
652
652
|
unless_resolution: "refuse",
|
|
653
653
|
},
|
|
@@ -685,7 +685,7 @@ export const CAPABILITIES = {
|
|
|
685
685
|
{
|
|
686
686
|
option: "config",
|
|
687
687
|
flag: "--config",
|
|
688
|
-
kind: "
|
|
688
|
+
kind: "repeated",
|
|
689
689
|
unless: "noConfig",
|
|
690
690
|
unless_resolution: "refuse",
|
|
691
691
|
},
|
|
@@ -741,7 +741,7 @@ export const CAPABILITIES = {
|
|
|
741
741
|
{
|
|
742
742
|
option: "config",
|
|
743
743
|
flag: "--config",
|
|
744
|
-
kind: "
|
|
744
|
+
kind: "repeated",
|
|
745
745
|
unless: "noConfig",
|
|
746
746
|
unless_resolution: "refuse",
|
|
747
747
|
},
|
|
@@ -829,7 +829,7 @@ export const CAPABILITIES = {
|
|
|
829
829
|
{
|
|
830
830
|
option: "config",
|
|
831
831
|
flag: "--config",
|
|
832
|
-
kind: "
|
|
832
|
+
kind: "repeated",
|
|
833
833
|
unless: "noConfig",
|
|
834
834
|
unless_resolution: "refuse",
|
|
835
835
|
},
|
|
@@ -992,7 +992,7 @@ export const CAPABILITIES = {
|
|
|
992
992
|
{
|
|
993
993
|
option: "config",
|
|
994
994
|
flag: "--config",
|
|
995
|
-
kind: "
|
|
995
|
+
kind: "repeated",
|
|
996
996
|
unless: "noConfig",
|
|
997
997
|
unless_resolution: "refuse",
|
|
998
998
|
},
|
|
@@ -1043,7 +1043,7 @@ export const CAPABILITIES = {
|
|
|
1043
1043
|
{
|
|
1044
1044
|
option: "config",
|
|
1045
1045
|
flag: "--config",
|
|
1046
|
-
kind: "
|
|
1046
|
+
kind: "repeated",
|
|
1047
1047
|
unless: "noConfig",
|
|
1048
1048
|
unless_resolution: "refuse",
|
|
1049
1049
|
},
|
|
@@ -1112,7 +1112,7 @@ export const CAPABILITIES = {
|
|
|
1112
1112
|
{
|
|
1113
1113
|
option: "config",
|
|
1114
1114
|
flag: "--config",
|
|
1115
|
-
kind: "
|
|
1115
|
+
kind: "repeated",
|
|
1116
1116
|
unless: "noConfig",
|
|
1117
1117
|
unless_resolution: "refuse",
|
|
1118
1118
|
},
|
|
@@ -1163,7 +1163,7 @@ export const CAPABILITIES = {
|
|
|
1163
1163
|
{
|
|
1164
1164
|
option: "config",
|
|
1165
1165
|
flag: "--config",
|
|
1166
|
-
kind: "
|
|
1166
|
+
kind: "repeated",
|
|
1167
1167
|
unless: "noConfig",
|
|
1168
1168
|
unless_resolution: "refuse",
|
|
1169
1169
|
},
|
|
@@ -1195,7 +1195,7 @@ export const CAPABILITIES = {
|
|
|
1195
1195
|
{
|
|
1196
1196
|
option: "config",
|
|
1197
1197
|
flag: "--config",
|
|
1198
|
-
kind: "
|
|
1198
|
+
kind: "repeated",
|
|
1199
1199
|
unless: "noConfig",
|
|
1200
1200
|
unless_resolution: "refuse",
|
|
1201
1201
|
},
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
* Options accepted by the language SDKs' `config()`.
|
|
3
3
|
*/
|
|
4
4
|
export interface ConfigOptions {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Load configuration from exactly these files, in order, skipping
|
|
7
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
8
|
+
*/
|
|
9
|
+
config?: string[] | undefined;
|
|
6
10
|
cwd?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
13
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
14
|
+
*/
|
|
7
15
|
noConfig?: boolean | undefined;
|
|
8
16
|
}
|
|
@@ -6,9 +6,17 @@ export interface DetectOptions {
|
|
|
6
6
|
bins?: {
|
|
7
7
|
[k: string]: string;
|
|
8
8
|
} | undefined;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Load configuration from exactly these files, in order, skipping
|
|
11
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
12
|
+
*/
|
|
13
|
+
config?: string[] | undefined;
|
|
10
14
|
exclude?: string[] | undefined;
|
|
11
15
|
harnesses?: string[] | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
18
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
19
|
+
*/
|
|
12
20
|
noConfig?: boolean | undefined;
|
|
13
21
|
/**
|
|
14
22
|
* Exit non-zero if any probed harness is not installed. The SDKs surface
|
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface HistoryClearOptions {
|
|
5
5
|
allProjects?: boolean | undefined;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Load configuration from exactly these files, in order, skipping
|
|
8
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
9
|
+
*/
|
|
10
|
+
config?: string[] | undefined;
|
|
7
11
|
historyDir?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
14
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
15
|
+
*/
|
|
8
16
|
noConfig?: boolean | undefined;
|
|
9
17
|
project?: string | undefined;
|
|
10
18
|
/**
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
export interface HistoryListOptions {
|
|
5
5
|
allProjects?: boolean | undefined;
|
|
6
6
|
/**
|
|
7
|
-
* Load configuration from exactly
|
|
8
|
-
* discovery.
|
|
7
|
+
* Load configuration from exactly these files, in order, skipping
|
|
8
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
9
9
|
*/
|
|
10
|
-
config?: string | undefined;
|
|
10
|
+
config?: string[] | undefined;
|
|
11
11
|
historyDir?: string | undefined;
|
|
12
12
|
/**
|
|
13
|
-
* Ignore every configuration file.
|
|
13
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
14
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
14
15
|
*/
|
|
15
16
|
noConfig?: boolean | undefined;
|
|
16
17
|
project?: string | undefined;
|
|
@@ -34,10 +34,10 @@ export interface HistoryLookupByLast {
|
|
|
34
34
|
all?: boolean | undefined;
|
|
35
35
|
allProjects?: boolean | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* Load configuration from exactly
|
|
38
|
-
* discovery.
|
|
37
|
+
* Load configuration from exactly these files, in order, skipping
|
|
38
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
39
39
|
*/
|
|
40
|
-
config?: string | undefined;
|
|
40
|
+
config?: string[] | undefined;
|
|
41
41
|
historyDir?: string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Select the most recent session. Only `true` selects, so this variant
|
|
@@ -45,7 +45,8 @@ export interface HistoryLookupByLast {
|
|
|
45
45
|
*/
|
|
46
46
|
last: true;
|
|
47
47
|
/**
|
|
48
|
-
* Ignore every configuration file.
|
|
48
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
49
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
49
50
|
*/
|
|
50
51
|
noConfig?: boolean | undefined;
|
|
51
52
|
project?: string | undefined;
|
|
@@ -67,10 +68,10 @@ export interface HistoryLookupBySession {
|
|
|
67
68
|
all?: boolean | undefined;
|
|
68
69
|
allProjects?: boolean | undefined;
|
|
69
70
|
/**
|
|
70
|
-
* Load configuration from exactly
|
|
71
|
-
* discovery.
|
|
71
|
+
* Load configuration from exactly these files, in order, skipping
|
|
72
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
72
73
|
*/
|
|
73
|
-
config?: string | undefined;
|
|
74
|
+
config?: string[] | undefined;
|
|
74
75
|
historyDir?: string | undefined;
|
|
75
76
|
/**
|
|
76
77
|
* Whether the most recent session was asked for instead. An ordinary
|
|
@@ -80,7 +81,8 @@ export interface HistoryLookupBySession {
|
|
|
80
81
|
*/
|
|
81
82
|
last?: boolean | undefined;
|
|
82
83
|
/**
|
|
83
|
-
* Ignore every configuration file.
|
|
84
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
85
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
84
86
|
*/
|
|
85
87
|
noConfig?: boolean | undefined;
|
|
86
88
|
project?: string | undefined;
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
* Options accepted by the language SDKs' `historyMigrate()`.
|
|
3
3
|
*/
|
|
4
4
|
export interface HistoryMigrateOptions {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Load configuration from exactly these files, in order, skipping
|
|
7
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
8
|
+
*/
|
|
9
|
+
config?: string[] | undefined;
|
|
6
10
|
historyDir?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
13
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
14
|
+
*/
|
|
7
15
|
noConfig?: boolean | undefined;
|
|
8
16
|
}
|
|
@@ -9,15 +9,16 @@ export interface HistoryWatchOptions {
|
|
|
9
9
|
after?: string | undefined;
|
|
10
10
|
allProjects?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* Load configuration from exactly
|
|
13
|
-
* discovery.
|
|
12
|
+
* Load configuration from exactly these files, in order, skipping
|
|
13
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
14
14
|
*/
|
|
15
|
-
config?: string | undefined;
|
|
15
|
+
config?: string[] | undefined;
|
|
16
16
|
events?: boolean | undefined;
|
|
17
17
|
historyDir?: string | undefined;
|
|
18
18
|
labels?: HistoryLabels | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Ignore every configuration file.
|
|
20
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
21
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
21
22
|
*/
|
|
22
23
|
noConfig?: boolean | undefined;
|
|
23
24
|
project?: string | undefined;
|
|
@@ -48,7 +48,11 @@ export interface RunOptions {
|
|
|
48
48
|
bins?: {
|
|
49
49
|
[k: string]: string;
|
|
50
50
|
} | undefined;
|
|
51
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Load configuration from exactly these files, in order, skipping
|
|
53
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
54
|
+
*/
|
|
55
|
+
config?: readonly string[] | undefined;
|
|
52
56
|
/**
|
|
53
57
|
* Open the out-of-band turn-control socket, so a separate `interrupt()`
|
|
54
58
|
* can abort the in-flight turn without killing this run.
|
|
@@ -92,6 +96,10 @@ export interface RunOptions {
|
|
|
92
96
|
mockRules?: string | undefined;
|
|
93
97
|
mode?: PermissionMode | undefined;
|
|
94
98
|
models?: readonly string[] | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
101
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
102
|
+
*/
|
|
95
103
|
noConfig?: boolean | undefined;
|
|
96
104
|
/**
|
|
97
105
|
* Do NOT record history for this run, overriding config or the
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
{
|
|
197
197
|
"option": "config",
|
|
198
198
|
"flag": "--config",
|
|
199
|
-
"kind": "
|
|
199
|
+
"kind": "repeated",
|
|
200
200
|
"unless": "noConfig",
|
|
201
201
|
"unless_resolution": "refuse"
|
|
202
202
|
},
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
{
|
|
496
496
|
"option": "config",
|
|
497
497
|
"flag": "--config",
|
|
498
|
-
"kind": "
|
|
498
|
+
"kind": "repeated",
|
|
499
499
|
"unless": "noConfig",
|
|
500
500
|
"unless_resolution": "refuse"
|
|
501
501
|
},
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
{
|
|
667
667
|
"option": "config",
|
|
668
668
|
"flag": "--config",
|
|
669
|
-
"kind": "
|
|
669
|
+
"kind": "repeated",
|
|
670
670
|
"unless": "noConfig",
|
|
671
671
|
"unless_resolution": "refuse"
|
|
672
672
|
},
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
{
|
|
711
711
|
"option": "config",
|
|
712
712
|
"flag": "--config",
|
|
713
|
-
"kind": "
|
|
713
|
+
"kind": "repeated",
|
|
714
714
|
"unless": "noConfig",
|
|
715
715
|
"unless_resolution": "refuse"
|
|
716
716
|
},
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
{
|
|
773
773
|
"option": "config",
|
|
774
774
|
"flag": "--config",
|
|
775
|
-
"kind": "
|
|
775
|
+
"kind": "repeated",
|
|
776
776
|
"unless": "noConfig",
|
|
777
777
|
"unless_resolution": "refuse"
|
|
778
778
|
},
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
{
|
|
869
869
|
"option": "config",
|
|
870
870
|
"flag": "--config",
|
|
871
|
-
"kind": "
|
|
871
|
+
"kind": "repeated",
|
|
872
872
|
"unless": "noConfig",
|
|
873
873
|
"unless_resolution": "refuse"
|
|
874
874
|
},
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
{
|
|
1049
1049
|
"option": "config",
|
|
1050
1050
|
"flag": "--config",
|
|
1051
|
-
"kind": "
|
|
1051
|
+
"kind": "repeated",
|
|
1052
1052
|
"unless": "noConfig",
|
|
1053
1053
|
"unless_resolution": "refuse"
|
|
1054
1054
|
},
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
{
|
|
1107
1107
|
"option": "config",
|
|
1108
1108
|
"flag": "--config",
|
|
1109
|
-
"kind": "
|
|
1109
|
+
"kind": "repeated",
|
|
1110
1110
|
"unless": "noConfig",
|
|
1111
1111
|
"unless_resolution": "refuse"
|
|
1112
1112
|
},
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
{
|
|
1182
1182
|
"option": "config",
|
|
1183
1183
|
"flag": "--config",
|
|
1184
|
-
"kind": "
|
|
1184
|
+
"kind": "repeated",
|
|
1185
1185
|
"unless": "noConfig",
|
|
1186
1186
|
"unless_resolution": "refuse"
|
|
1187
1187
|
},
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
{
|
|
1240
1240
|
"option": "config",
|
|
1241
1241
|
"flag": "--config",
|
|
1242
|
-
"kind": "
|
|
1242
|
+
"kind": "repeated",
|
|
1243
1243
|
"unless": "noConfig",
|
|
1244
1244
|
"unless_resolution": "refuse"
|
|
1245
1245
|
},
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
{
|
|
1279
1279
|
"option": "config",
|
|
1280
1280
|
"flag": "--config",
|
|
1281
|
-
"kind": "
|
|
1281
|
+
"kind": "repeated",
|
|
1282
1282
|
"unless": "noConfig",
|
|
1283
1283
|
"unless_resolution": "refuse"
|
|
1284
1284
|
},
|
|
@@ -3796,7 +3796,11 @@
|
|
|
3796
3796
|
}
|
|
3797
3797
|
},
|
|
3798
3798
|
"config": {
|
|
3799
|
-
"
|
|
3799
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
3800
|
+
"type": "array",
|
|
3801
|
+
"items": {
|
|
3802
|
+
"type": "string"
|
|
3803
|
+
}
|
|
3800
3804
|
},
|
|
3801
3805
|
"control": {
|
|
3802
3806
|
"description": "Open the out-of-band turn-control socket, so a separate `interrupt()`\ncan abort the in-flight turn without killing this run.",
|
|
@@ -3874,6 +3878,7 @@
|
|
|
3874
3878
|
}
|
|
3875
3879
|
},
|
|
3876
3880
|
"noConfig": {
|
|
3881
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
3877
3882
|
"type": "boolean"
|
|
3878
3883
|
},
|
|
3879
3884
|
"noHistory": {
|
|
@@ -4105,8 +4110,11 @@
|
|
|
4105
4110
|
"type": "boolean"
|
|
4106
4111
|
},
|
|
4107
4112
|
"config": {
|
|
4108
|
-
"description": "Load configuration from exactly
|
|
4109
|
-
"type": "
|
|
4113
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
4114
|
+
"type": "array",
|
|
4115
|
+
"items": {
|
|
4116
|
+
"type": "string"
|
|
4117
|
+
}
|
|
4110
4118
|
},
|
|
4111
4119
|
"historyDir": {
|
|
4112
4120
|
"type": "string"
|
|
@@ -4117,7 +4125,7 @@
|
|
|
4117
4125
|
"const": true
|
|
4118
4126
|
},
|
|
4119
4127
|
"noConfig": {
|
|
4120
|
-
"description": "Ignore every configuration file.",
|
|
4128
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
4121
4129
|
"type": "boolean"
|
|
4122
4130
|
},
|
|
4123
4131
|
"project": {
|
|
@@ -4145,8 +4153,11 @@
|
|
|
4145
4153
|
"type": "boolean"
|
|
4146
4154
|
},
|
|
4147
4155
|
"config": {
|
|
4148
|
-
"description": "Load configuration from exactly
|
|
4149
|
-
"type": "
|
|
4156
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
4157
|
+
"type": "array",
|
|
4158
|
+
"items": {
|
|
4159
|
+
"type": "string"
|
|
4160
|
+
}
|
|
4150
4161
|
},
|
|
4151
4162
|
"historyDir": {
|
|
4152
4163
|
"type": "string"
|
|
@@ -4156,7 +4167,7 @@
|
|
|
4156
4167
|
"type": "boolean"
|
|
4157
4168
|
},
|
|
4158
4169
|
"noConfig": {
|
|
4159
|
-
"description": "Ignore every configuration file.",
|
|
4170
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
4160
4171
|
"type": "boolean"
|
|
4161
4172
|
},
|
|
4162
4173
|
"project": {
|
|
@@ -4185,14 +4196,17 @@
|
|
|
4185
4196
|
"type": "boolean"
|
|
4186
4197
|
},
|
|
4187
4198
|
"config": {
|
|
4188
|
-
"description": "Load configuration from exactly
|
|
4189
|
-
"type": "
|
|
4199
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
4200
|
+
"type": "array",
|
|
4201
|
+
"items": {
|
|
4202
|
+
"type": "string"
|
|
4203
|
+
}
|
|
4190
4204
|
},
|
|
4191
4205
|
"historyDir": {
|
|
4192
4206
|
"type": "string"
|
|
4193
4207
|
},
|
|
4194
4208
|
"noConfig": {
|
|
4195
|
-
"description": "Ignore every configuration file.",
|
|
4209
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
4196
4210
|
"type": "boolean"
|
|
4197
4211
|
},
|
|
4198
4212
|
"project": {
|
|
@@ -4221,8 +4235,11 @@
|
|
|
4221
4235
|
"type": "boolean"
|
|
4222
4236
|
},
|
|
4223
4237
|
"config": {
|
|
4224
|
-
"description": "Load configuration from exactly
|
|
4225
|
-
"type": "
|
|
4238
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
4239
|
+
"type": "array",
|
|
4240
|
+
"items": {
|
|
4241
|
+
"type": "string"
|
|
4242
|
+
}
|
|
4226
4243
|
},
|
|
4227
4244
|
"events": {
|
|
4228
4245
|
"type": "boolean"
|
|
@@ -4234,7 +4251,7 @@
|
|
|
4234
4251
|
"$ref": "#/$defs/HistoryLabels"
|
|
4235
4252
|
},
|
|
4236
4253
|
"noConfig": {
|
|
4237
|
-
"description": "Ignore every configuration file.",
|
|
4254
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
4238
4255
|
"type": "boolean"
|
|
4239
4256
|
},
|
|
4240
4257
|
"project": {
|
|
@@ -15907,7 +15924,11 @@
|
|
|
15907
15924
|
}
|
|
15908
15925
|
},
|
|
15909
15926
|
"config": {
|
|
15910
|
-
"
|
|
15927
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
15928
|
+
"type": "array",
|
|
15929
|
+
"items": {
|
|
15930
|
+
"type": "string"
|
|
15931
|
+
}
|
|
15911
15932
|
},
|
|
15912
15933
|
"exclude": {
|
|
15913
15934
|
"type": "array",
|
|
@@ -15922,6 +15943,7 @@
|
|
|
15922
15943
|
}
|
|
15923
15944
|
},
|
|
15924
15945
|
"noConfig": {
|
|
15946
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
15925
15947
|
"type": "boolean"
|
|
15926
15948
|
},
|
|
15927
15949
|
"requireAvailable": {
|
|
@@ -15938,12 +15960,17 @@
|
|
|
15938
15960
|
"type": "object",
|
|
15939
15961
|
"properties": {
|
|
15940
15962
|
"config": {
|
|
15941
|
-
"
|
|
15963
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
15964
|
+
"type": "array",
|
|
15965
|
+
"items": {
|
|
15966
|
+
"type": "string"
|
|
15967
|
+
}
|
|
15942
15968
|
},
|
|
15943
15969
|
"cwd": {
|
|
15944
15970
|
"type": "string"
|
|
15945
15971
|
},
|
|
15946
15972
|
"noConfig": {
|
|
15973
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
15947
15974
|
"type": "boolean"
|
|
15948
15975
|
}
|
|
15949
15976
|
},
|
|
@@ -16593,7 +16620,11 @@
|
|
|
16593
16620
|
"type": "boolean"
|
|
16594
16621
|
},
|
|
16595
16622
|
"config": {
|
|
16596
|
-
"
|
|
16623
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
16624
|
+
"type": "array",
|
|
16625
|
+
"items": {
|
|
16626
|
+
"type": "string"
|
|
16627
|
+
}
|
|
16597
16628
|
},
|
|
16598
16629
|
"cwd": {
|
|
16599
16630
|
"type": "string"
|
|
@@ -16612,6 +16643,7 @@
|
|
|
16612
16643
|
}
|
|
16613
16644
|
},
|
|
16614
16645
|
"noConfig": {
|
|
16646
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
16615
16647
|
"type": "boolean"
|
|
16616
16648
|
}
|
|
16617
16649
|
},
|
|
@@ -16872,7 +16904,11 @@
|
|
|
16872
16904
|
}
|
|
16873
16905
|
},
|
|
16874
16906
|
"config": {
|
|
16875
|
-
"
|
|
16907
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
16908
|
+
"type": "array",
|
|
16909
|
+
"items": {
|
|
16910
|
+
"type": "string"
|
|
16911
|
+
}
|
|
16876
16912
|
},
|
|
16877
16913
|
"cwd": {
|
|
16878
16914
|
"type": "string"
|
|
@@ -16890,6 +16926,7 @@
|
|
|
16890
16926
|
}
|
|
16891
16927
|
},
|
|
16892
16928
|
"noConfig": {
|
|
16929
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
16893
16930
|
"type": "boolean"
|
|
16894
16931
|
},
|
|
16895
16932
|
"timeoutSeconds": {
|
|
@@ -17612,12 +17649,17 @@
|
|
|
17612
17649
|
"type": "boolean"
|
|
17613
17650
|
},
|
|
17614
17651
|
"config": {
|
|
17615
|
-
"
|
|
17652
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
17653
|
+
"type": "array",
|
|
17654
|
+
"items": {
|
|
17655
|
+
"type": "string"
|
|
17656
|
+
}
|
|
17616
17657
|
},
|
|
17617
17658
|
"historyDir": {
|
|
17618
17659
|
"type": "string"
|
|
17619
17660
|
},
|
|
17620
17661
|
"noConfig": {
|
|
17662
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
17621
17663
|
"type": "boolean"
|
|
17622
17664
|
},
|
|
17623
17665
|
"project": {
|
|
@@ -17710,12 +17752,17 @@
|
|
|
17710
17752
|
"type": "object",
|
|
17711
17753
|
"properties": {
|
|
17712
17754
|
"config": {
|
|
17713
|
-
"
|
|
17755
|
+
"description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
|
|
17756
|
+
"type": "array",
|
|
17757
|
+
"items": {
|
|
17758
|
+
"type": "string"
|
|
17759
|
+
}
|
|
17714
17760
|
},
|
|
17715
17761
|
"historyDir": {
|
|
17716
17762
|
"type": "string"
|
|
17717
17763
|
},
|
|
17718
17764
|
"noConfig": {
|
|
17765
|
+
"description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
|
|
17719
17766
|
"type": "boolean"
|
|
17720
17767
|
}
|
|
17721
17768
|
},
|
|
@@ -6,7 +6,11 @@ export interface SyncOptions {
|
|
|
6
6
|
* Report what would change and write nothing.
|
|
7
7
|
*/
|
|
8
8
|
check?: boolean | undefined;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Load configuration from exactly these files, in order, skipping
|
|
11
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
12
|
+
*/
|
|
13
|
+
config?: string[] | undefined;
|
|
10
14
|
cwd?: string | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* Hold each harness's allow/deny list to exactly the configured one:
|
|
@@ -16,5 +20,9 @@ export interface SyncOptions {
|
|
|
16
20
|
exact?: boolean | undefined;
|
|
17
21
|
global?: boolean | undefined;
|
|
18
22
|
harnesses?: string[] | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
25
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
26
|
+
*/
|
|
19
27
|
noConfig?: boolean | undefined;
|
|
20
28
|
}
|
|
@@ -6,10 +6,18 @@ export interface UsageOptions {
|
|
|
6
6
|
bins?: {
|
|
7
7
|
[k: string]: string;
|
|
8
8
|
} | undefined;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Load configuration from exactly these files, in order, skipping
|
|
11
|
+
* user/project discovery; each later file overrides the earlier ones.
|
|
12
|
+
*/
|
|
13
|
+
config?: string[] | undefined;
|
|
10
14
|
cwd?: string | undefined;
|
|
11
15
|
exclude?: string[] | undefined;
|
|
12
16
|
harnesses?: string[] | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Ignore every configuration file and `ONEHARNESS_*` override. `true`
|
|
19
|
+
* beside a non-empty `config` is refused before anything runs.
|
|
20
|
+
*/
|
|
13
21
|
noConfig?: boolean | undefined;
|
|
14
22
|
timeoutSeconds?: number | undefined;
|
|
15
23
|
}
|
package/dist/generated/zod.js
CHANGED
|
@@ -34,7 +34,7 @@ export const BatchReportSchema = z.looseObject({
|
|
|
34
34
|
});
|
|
35
35
|
export const BatchStrategySchema = z.union([z.literal("speed"), z.literal("min-tokens")]);
|
|
36
36
|
export const ConfigOptionsSchema = z.strictObject({
|
|
37
|
-
config: z.string().optional(),
|
|
37
|
+
config: z.array(z.string()).optional(),
|
|
38
38
|
cwd: z.string().optional(),
|
|
39
39
|
noConfig: z.boolean().optional(),
|
|
40
40
|
});
|
|
@@ -119,7 +119,7 @@ export const DetectInfoSchema = z.looseObject({
|
|
|
119
119
|
export const DetectOptionsSchema = z.strictObject({
|
|
120
120
|
all: z.boolean().optional(),
|
|
121
121
|
bins: z.record(z.string(), z.string()).optional(),
|
|
122
|
-
config: z.string().optional(),
|
|
122
|
+
config: z.array(z.string()).optional(),
|
|
123
123
|
exclude: z.array(z.string()).optional(),
|
|
124
124
|
harnesses: z.array(z.string()).optional(),
|
|
125
125
|
noConfig: z.boolean().optional(),
|
|
@@ -319,7 +319,7 @@ export const HistoryClearDryRunSchema = z.looseObject({
|
|
|
319
319
|
});
|
|
320
320
|
export const HistoryClearOptionsSchema = z.strictObject({
|
|
321
321
|
allProjects: z.boolean().optional(),
|
|
322
|
-
config: z.string().optional(),
|
|
322
|
+
config: z.array(z.string()).optional(),
|
|
323
323
|
historyDir: z.string().optional(),
|
|
324
324
|
noConfig: z.boolean().optional(),
|
|
325
325
|
project: z.string().optional(),
|
|
@@ -1090,7 +1090,7 @@ export const HistoryLineSchema = z.union([
|
|
|
1090
1090
|
export const HistoryListSchema = z.array(z.lazy(() => HistorySessionSummarySchema));
|
|
1091
1091
|
export const HistoryListOptionsSchema = z.strictObject({
|
|
1092
1092
|
allProjects: z.boolean().optional(),
|
|
1093
|
-
config: z.string().optional(),
|
|
1093
|
+
config: z.array(z.string()).optional(),
|
|
1094
1094
|
historyDir: z.string().optional(),
|
|
1095
1095
|
noConfig: z.boolean().optional(),
|
|
1096
1096
|
project: z.string().optional(),
|
|
@@ -1103,7 +1103,7 @@ export const HistoryLookupSchema = z.union([
|
|
|
1103
1103
|
export const HistoryLookupByLastSchema = z.strictObject({
|
|
1104
1104
|
all: z.boolean().optional(),
|
|
1105
1105
|
allProjects: z.boolean().optional(),
|
|
1106
|
-
config: z.string().optional(),
|
|
1106
|
+
config: z.array(z.string()).optional(),
|
|
1107
1107
|
historyDir: z.string().optional(),
|
|
1108
1108
|
last: z.literal(true).refine((value) => value !== undefined, { message: "Required" }),
|
|
1109
1109
|
noConfig: z.boolean().optional(),
|
|
@@ -1113,7 +1113,7 @@ export const HistoryLookupByLastSchema = z.strictObject({
|
|
|
1113
1113
|
export const HistoryLookupBySessionSchema = z.strictObject({
|
|
1114
1114
|
all: z.boolean().optional(),
|
|
1115
1115
|
allProjects: z.boolean().optional(),
|
|
1116
|
-
config: z.string().optional(),
|
|
1116
|
+
config: z.array(z.string()).optional(),
|
|
1117
1117
|
historyDir: z.string().optional(),
|
|
1118
1118
|
last: z.boolean().optional(),
|
|
1119
1119
|
noConfig: z.boolean().optional(),
|
|
@@ -1124,7 +1124,7 @@ export const HistoryLookupBySessionSchema = z.strictObject({
|
|
|
1124
1124
|
.refine((value) => value !== undefined, { message: "Required" }),
|
|
1125
1125
|
});
|
|
1126
1126
|
export const HistoryMigrateOptionsSchema = z.strictObject({
|
|
1127
|
-
config: z.string().optional(),
|
|
1127
|
+
config: z.array(z.string()).optional(),
|
|
1128
1128
|
historyDir: z.string().optional(),
|
|
1129
1129
|
noConfig: z.boolean().optional(),
|
|
1130
1130
|
});
|
|
@@ -2217,7 +2217,7 @@ export const HistoryWatchOptionsSchema = z.strictObject({
|
|
|
2217
2217
|
.refine((value) => [...value].length <= 36, { message: "Too long: expected at most 36 characters" })
|
|
2218
2218
|
.optional(),
|
|
2219
2219
|
allProjects: z.boolean().optional(),
|
|
2220
|
-
config: z.string().optional(),
|
|
2220
|
+
config: z.array(z.string()).optional(),
|
|
2221
2221
|
events: z.boolean().optional(),
|
|
2222
2222
|
historyDir: z.string().optional(),
|
|
2223
2223
|
labels: z.lazy(() => HistoryLabelsSchema).optional(),
|
|
@@ -2348,7 +2348,7 @@ export const RunOptionsSchema = z.strictObject({
|
|
|
2348
2348
|
batchPrompts: z.array(z.string()).optional(),
|
|
2349
2349
|
batchStrategy: z.lazy(() => BatchStrategySchema).optional(),
|
|
2350
2350
|
bins: z.record(z.string(), z.string()).optional(),
|
|
2351
|
-
config: z.string().optional(),
|
|
2351
|
+
config: z.array(z.string()).optional(),
|
|
2352
2352
|
control: z.boolean().optional(),
|
|
2353
2353
|
cwd: z.string().optional(),
|
|
2354
2354
|
env: z.record(z.string(), z.string()).optional(),
|
|
@@ -2495,7 +2495,7 @@ export const StatusSchema = z.union([
|
|
|
2495
2495
|
]);
|
|
2496
2496
|
export const SyncOptionsSchema = z.strictObject({
|
|
2497
2497
|
check: z.boolean().optional(),
|
|
2498
|
-
config: z.string().optional(),
|
|
2498
|
+
config: z.array(z.string()).optional(),
|
|
2499
2499
|
cwd: z.string().optional(),
|
|
2500
2500
|
exact: z.boolean().optional(),
|
|
2501
2501
|
global: z.boolean().optional(),
|
|
@@ -2596,7 +2596,7 @@ export const UsageIdentitySchema = z.looseObject({
|
|
|
2596
2596
|
export const UsageOptionsSchema = z.strictObject({
|
|
2597
2597
|
all: z.boolean().optional(),
|
|
2598
2598
|
bins: z.record(z.string(), z.string()).optional(),
|
|
2599
|
-
config: z.string().optional(),
|
|
2599
|
+
config: z.array(z.string()).optional(),
|
|
2600
2600
|
cwd: z.string().optional(),
|
|
2601
2601
|
exclude: z.array(z.string()).optional(),
|
|
2602
2602
|
harnesses: z.array(z.string()).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneharness/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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.
|
|
22
|
+
"oneharness-cli": "0.18.0",
|
|
23
23
|
"zod": "^4.4.3"
|
|
24
24
|
}
|
|
25
25
|
}
|