@harness-control/protocol 0.4.7 → 0.4.9
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/bin/conformance.js +0 -0
- package/dist/index.d.ts +24 -24
- package/package.json +2 -2
- package/schemas/mcp-review.json +155 -0
package/dist/bin/conformance.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -716,8 +716,8 @@ export declare const hcpHostHeartbeatPayloadSchema: z.ZodObject<{
|
|
|
716
716
|
export declare const localCapabilitySnapshotSchema: z.ZodObject<{
|
|
717
717
|
id: z.ZodString;
|
|
718
718
|
status: z.ZodEnum<{
|
|
719
|
-
unknown: "unknown";
|
|
720
719
|
available: "available";
|
|
720
|
+
unknown: "unknown";
|
|
721
721
|
unavailable: "unavailable";
|
|
722
722
|
disabled: "disabled";
|
|
723
723
|
}>;
|
|
@@ -728,8 +728,8 @@ export declare const localCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
728
728
|
export declare const providerAuthSnapshotSchema: z.ZodObject<{
|
|
729
729
|
status: z.ZodEnum<{
|
|
730
730
|
unknown: "unknown";
|
|
731
|
-
authenticated: "authenticated";
|
|
732
731
|
unauthenticated: "unauthenticated";
|
|
732
|
+
authenticated: "authenticated";
|
|
733
733
|
}>;
|
|
734
734
|
type: z.ZodOptional<z.ZodString>;
|
|
735
735
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -817,8 +817,8 @@ export declare const harnessProviderSnapshotSchema: z.ZodObject<{
|
|
|
817
817
|
auth: z.ZodOptional<z.ZodObject<{
|
|
818
818
|
status: z.ZodEnum<{
|
|
819
819
|
unknown: "unknown";
|
|
820
|
-
authenticated: "authenticated";
|
|
821
820
|
unauthenticated: "unauthenticated";
|
|
821
|
+
authenticated: "authenticated";
|
|
822
822
|
}>;
|
|
823
823
|
type: z.ZodOptional<z.ZodString>;
|
|
824
824
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -998,8 +998,8 @@ export declare const hcpHostCapabilitiesUpdatedPayloadSchema: z.ZodObject<{
|
|
|
998
998
|
auth: z.ZodOptional<z.ZodObject<{
|
|
999
999
|
status: z.ZodEnum<{
|
|
1000
1000
|
unknown: "unknown";
|
|
1001
|
-
authenticated: "authenticated";
|
|
1002
1001
|
unauthenticated: "unauthenticated";
|
|
1002
|
+
authenticated: "authenticated";
|
|
1003
1003
|
}>;
|
|
1004
1004
|
type: z.ZodOptional<z.ZodString>;
|
|
1005
1005
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1050,8 +1050,8 @@ export declare const hcpHostCapabilitiesUpdatedPayloadSchema: z.ZodObject<{
|
|
|
1050
1050
|
local_capabilities: z.ZodArray<z.ZodObject<{
|
|
1051
1051
|
id: z.ZodString;
|
|
1052
1052
|
status: z.ZodEnum<{
|
|
1053
|
-
unknown: "unknown";
|
|
1054
1053
|
available: "available";
|
|
1054
|
+
unknown: "unknown";
|
|
1055
1055
|
unavailable: "unavailable";
|
|
1056
1056
|
disabled: "disabled";
|
|
1057
1057
|
}>;
|
|
@@ -1418,8 +1418,8 @@ export declare const localFilesystemReadRequestPayloadSchema: z.ZodObject<{
|
|
|
1418
1418
|
input: z.ZodObject<{
|
|
1419
1419
|
path: z.ZodString;
|
|
1420
1420
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
1421
|
-
utf8: "utf8";
|
|
1422
1421
|
base64: "base64";
|
|
1422
|
+
utf8: "utf8";
|
|
1423
1423
|
}>>;
|
|
1424
1424
|
range: z.ZodOptional<z.ZodObject<{
|
|
1425
1425
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1552,8 +1552,8 @@ export declare const localFilesystemWriteRequestPayloadSchema: z.ZodObject<{
|
|
|
1552
1552
|
path: z.ZodString;
|
|
1553
1553
|
content: z.ZodString;
|
|
1554
1554
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
1555
|
-
utf8: "utf8";
|
|
1556
1555
|
base64: "base64";
|
|
1556
|
+
utf8: "utf8";
|
|
1557
1557
|
}>>;
|
|
1558
1558
|
mode: z.ZodEnum<{
|
|
1559
1559
|
create: "create";
|
|
@@ -2057,8 +2057,8 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2057
2057
|
input: z.ZodObject<{
|
|
2058
2058
|
path: z.ZodString;
|
|
2059
2059
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2060
|
-
utf8: "utf8";
|
|
2061
2060
|
base64: "base64";
|
|
2061
|
+
utf8: "utf8";
|
|
2062
2062
|
}>>;
|
|
2063
2063
|
range: z.ZodOptional<z.ZodObject<{
|
|
2064
2064
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2189,8 +2189,8 @@ export declare const localActionRequestPayloadSchema: z.ZodDiscriminatedUnion<[z
|
|
|
2189
2189
|
path: z.ZodString;
|
|
2190
2190
|
content: z.ZodString;
|
|
2191
2191
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
2192
|
-
utf8: "utf8";
|
|
2193
2192
|
base64: "base64";
|
|
2193
|
+
utf8: "utf8";
|
|
2194
2194
|
}>>;
|
|
2195
2195
|
mode: z.ZodEnum<{
|
|
2196
2196
|
create: "create";
|
|
@@ -2681,8 +2681,8 @@ export declare const localActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[
|
|
|
2681
2681
|
path: z.ZodString;
|
|
2682
2682
|
content: z.ZodString;
|
|
2683
2683
|
encoding: z.ZodEnum<{
|
|
2684
|
-
utf8: "utf8";
|
|
2685
2684
|
base64: "base64";
|
|
2685
|
+
utf8: "utf8";
|
|
2686
2686
|
}>;
|
|
2687
2687
|
hash: z.ZodString;
|
|
2688
2688
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3433,8 +3433,8 @@ export declare const hcpHostCapabilitiesUpdatedMessageSchema: z.ZodObject<{
|
|
|
3433
3433
|
auth: z.ZodOptional<z.ZodObject<{
|
|
3434
3434
|
status: z.ZodEnum<{
|
|
3435
3435
|
unknown: "unknown";
|
|
3436
|
-
authenticated: "authenticated";
|
|
3437
3436
|
unauthenticated: "unauthenticated";
|
|
3437
|
+
authenticated: "authenticated";
|
|
3438
3438
|
}>;
|
|
3439
3439
|
type: z.ZodOptional<z.ZodString>;
|
|
3440
3440
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3485,8 +3485,8 @@ export declare const hcpHostCapabilitiesUpdatedMessageSchema: z.ZodObject<{
|
|
|
3485
3485
|
local_capabilities: z.ZodArray<z.ZodObject<{
|
|
3486
3486
|
id: z.ZodString;
|
|
3487
3487
|
status: z.ZodEnum<{
|
|
3488
|
-
unknown: "unknown";
|
|
3489
3488
|
available: "available";
|
|
3489
|
+
unknown: "unknown";
|
|
3490
3490
|
unavailable: "unavailable";
|
|
3491
3491
|
disabled: "disabled";
|
|
3492
3492
|
}>;
|
|
@@ -3829,8 +3829,8 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3829
3829
|
input: z.ZodObject<{
|
|
3830
3830
|
path: z.ZodString;
|
|
3831
3831
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3832
|
-
utf8: "utf8";
|
|
3833
3832
|
base64: "base64";
|
|
3833
|
+
utf8: "utf8";
|
|
3834
3834
|
}>>;
|
|
3835
3835
|
range: z.ZodOptional<z.ZodObject<{
|
|
3836
3836
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3961,8 +3961,8 @@ export declare const localActionRequestMessageSchema: z.ZodObject<{
|
|
|
3961
3961
|
path: z.ZodString;
|
|
3962
3962
|
content: z.ZodString;
|
|
3963
3963
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
3964
|
-
utf8: "utf8";
|
|
3965
3964
|
base64: "base64";
|
|
3965
|
+
utf8: "utf8";
|
|
3966
3966
|
}>>;
|
|
3967
3967
|
mode: z.ZodEnum<{
|
|
3968
3968
|
create: "create";
|
|
@@ -4460,8 +4460,8 @@ export declare const localActionResponseMessageSchema: z.ZodObject<{
|
|
|
4460
4460
|
path: z.ZodString;
|
|
4461
4461
|
content: z.ZodString;
|
|
4462
4462
|
encoding: z.ZodEnum<{
|
|
4463
|
-
utf8: "utf8";
|
|
4464
4463
|
base64: "base64";
|
|
4464
|
+
utf8: "utf8";
|
|
4465
4465
|
}>;
|
|
4466
4466
|
hash: z.ZodString;
|
|
4467
4467
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4988,9 +4988,9 @@ export declare const hcpAccountsSnapshotMessageSchema: z.ZodObject<{
|
|
|
4988
4988
|
key: z.ZodString;
|
|
4989
4989
|
provider: z.ZodString;
|
|
4990
4990
|
scope_source: z.ZodEnum<{
|
|
4991
|
+
local: "local";
|
|
4991
4992
|
provider: "provider";
|
|
4992
4993
|
operator: "operator";
|
|
4993
|
-
local: "local";
|
|
4994
4994
|
}>;
|
|
4995
4995
|
label: z.ZodString;
|
|
4996
4996
|
}, z.core.$strict>;
|
|
@@ -5015,8 +5015,8 @@ export declare const hcpAccountsSnapshotMessageSchema: z.ZodObject<{
|
|
|
5015
5015
|
observed_at: z.ZodISODateTime;
|
|
5016
5016
|
reason: z.ZodEnum<{
|
|
5017
5017
|
disabled: "disabled";
|
|
5018
|
-
unauthenticated: "unauthenticated";
|
|
5019
5018
|
unsupported: "unsupported";
|
|
5019
|
+
unauthenticated: "unauthenticated";
|
|
5020
5020
|
not_applicable: "not_applicable";
|
|
5021
5021
|
timeout: "timeout";
|
|
5022
5022
|
provider_error: "provider_error";
|
|
@@ -5054,9 +5054,9 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5054
5054
|
key: z.ZodString;
|
|
5055
5055
|
provider: z.ZodString;
|
|
5056
5056
|
scope_source: z.ZodEnum<{
|
|
5057
|
+
local: "local";
|
|
5057
5058
|
provider: "provider";
|
|
5058
5059
|
operator: "operator";
|
|
5059
|
-
local: "local";
|
|
5060
5060
|
}>;
|
|
5061
5061
|
label: z.ZodString;
|
|
5062
5062
|
}, z.core.$strict>;
|
|
@@ -5081,8 +5081,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5081
5081
|
observed_at: z.ZodISODateTime;
|
|
5082
5082
|
reason: z.ZodEnum<{
|
|
5083
5083
|
disabled: "disabled";
|
|
5084
|
-
unauthenticated: "unauthenticated";
|
|
5085
5084
|
unsupported: "unsupported";
|
|
5085
|
+
unauthenticated: "unauthenticated";
|
|
5086
5086
|
not_applicable: "not_applicable";
|
|
5087
5087
|
timeout: "timeout";
|
|
5088
5088
|
provider_error: "provider_error";
|
|
@@ -5291,8 +5291,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5291
5291
|
auth: z.ZodOptional<z.ZodObject<{
|
|
5292
5292
|
status: z.ZodEnum<{
|
|
5293
5293
|
unknown: "unknown";
|
|
5294
|
-
authenticated: "authenticated";
|
|
5295
5294
|
unauthenticated: "unauthenticated";
|
|
5295
|
+
authenticated: "authenticated";
|
|
5296
5296
|
}>;
|
|
5297
5297
|
type: z.ZodOptional<z.ZodString>;
|
|
5298
5298
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -5343,8 +5343,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5343
5343
|
local_capabilities: z.ZodArray<z.ZodObject<{
|
|
5344
5344
|
id: z.ZodString;
|
|
5345
5345
|
status: z.ZodEnum<{
|
|
5346
|
-
unknown: "unknown";
|
|
5347
5346
|
available: "available";
|
|
5347
|
+
unknown: "unknown";
|
|
5348
5348
|
unavailable: "unavailable";
|
|
5349
5349
|
disabled: "disabled";
|
|
5350
5350
|
}>;
|
|
@@ -5676,8 +5676,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5676
5676
|
input: z.ZodObject<{
|
|
5677
5677
|
path: z.ZodString;
|
|
5678
5678
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
5679
|
-
utf8: "utf8";
|
|
5680
5679
|
base64: "base64";
|
|
5680
|
+
utf8: "utf8";
|
|
5681
5681
|
}>>;
|
|
5682
5682
|
range: z.ZodOptional<z.ZodObject<{
|
|
5683
5683
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5808,8 +5808,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5808
5808
|
path: z.ZodString;
|
|
5809
5809
|
content: z.ZodString;
|
|
5810
5810
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
5811
|
-
utf8: "utf8";
|
|
5812
5811
|
base64: "base64";
|
|
5812
|
+
utf8: "utf8";
|
|
5813
5813
|
}>>;
|
|
5814
5814
|
mode: z.ZodEnum<{
|
|
5815
5815
|
create: "create";
|
|
@@ -6306,8 +6306,8 @@ export declare const hcpMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6306
6306
|
path: z.ZodString;
|
|
6307
6307
|
content: z.ZodString;
|
|
6308
6308
|
encoding: z.ZodEnum<{
|
|
6309
|
-
utf8: "utf8";
|
|
6310
6309
|
base64: "base64";
|
|
6310
|
+
utf8: "utf8";
|
|
6311
6311
|
}>;
|
|
6312
6312
|
hash: z.ZodString;
|
|
6313
6313
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-control/protocol",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test": "tsx --test src/**/*.test.ts test/**/*.test.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"zod": "
|
|
43
|
+
"zod": "4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"description": "Types, validation, JSON Schema and reducers for Harness Control Protocol",
|
|
46
46
|
"engines": {
|
package/schemas/mcp-review.json
CHANGED
|
@@ -28,6 +28,41 @@
|
|
|
28
28
|
"additionalProperties": {
|
|
29
29
|
"$ref": "#/$defs/__schema0"
|
|
30
30
|
}
|
|
31
|
+
},
|
|
32
|
+
"delegated_subject": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"operation_id": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1,
|
|
38
|
+
"maxLength": 256
|
|
39
|
+
},
|
|
40
|
+
"tool_name": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
},
|
|
44
|
+
"arguments": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"propertyNames": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": {
|
|
50
|
+
"$ref": "#/$defs/__schema1"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"binding": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"maxLength": 65536
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"operation_id",
|
|
61
|
+
"tool_name",
|
|
62
|
+
"arguments",
|
|
63
|
+
"binding"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false
|
|
31
66
|
}
|
|
32
67
|
},
|
|
33
68
|
"required": [
|
|
@@ -68,6 +103,37 @@
|
|
|
68
103
|
}
|
|
69
104
|
}
|
|
70
105
|
]
|
|
106
|
+
},
|
|
107
|
+
"__schema1": {
|
|
108
|
+
"anyOf": [
|
|
109
|
+
{
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "number"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "null"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"$ref": "#/$defs/__schema1"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"propertyNames": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"additionalProperties": {
|
|
133
|
+
"$ref": "#/$defs/__schema1"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
71
137
|
}
|
|
72
138
|
}
|
|
73
139
|
},
|
|
@@ -136,6 +202,95 @@
|
|
|
136
202
|
"additionalProperties": false
|
|
137
203
|
}
|
|
138
204
|
]
|
|
205
|
+
},
|
|
206
|
+
"delegated_request": {
|
|
207
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"kind": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"const": "delegated"
|
|
213
|
+
},
|
|
214
|
+
"input_request_id": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 1,
|
|
217
|
+
"maxLength": 256
|
|
218
|
+
},
|
|
219
|
+
"subject": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"operation_id": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 256
|
|
226
|
+
},
|
|
227
|
+
"tool_name": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1
|
|
230
|
+
},
|
|
231
|
+
"arguments": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"propertyNames": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": {
|
|
237
|
+
"$ref": "#/$defs/__schema0"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"binding": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"minLength": 1,
|
|
243
|
+
"maxLength": 65536
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": [
|
|
247
|
+
"operation_id",
|
|
248
|
+
"tool_name",
|
|
249
|
+
"arguments",
|
|
250
|
+
"binding"
|
|
251
|
+
],
|
|
252
|
+
"additionalProperties": false
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"kind",
|
|
257
|
+
"input_request_id",
|
|
258
|
+
"subject"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false,
|
|
261
|
+
"$defs": {
|
|
262
|
+
"__schema0": {
|
|
263
|
+
"anyOf": [
|
|
264
|
+
{
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"type": "number"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "boolean"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "null"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"$ref": "#/$defs/__schema0"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "object",
|
|
284
|
+
"propertyNames": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"additionalProperties": {
|
|
288
|
+
"$ref": "#/$defs/__schema0"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
}
|
|
139
294
|
}
|
|
140
295
|
}
|
|
141
296
|
}
|