@lesliechan721/aw-plugin-core 0.1.0-beta.58 → 0.1.0-beta.60

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.
@@ -33,11 +33,144 @@
33
33
  "extensions": { "$ref": "#/$defs/extensions" },
34
34
  "artifacts": { "$ref": "#/$defs/artifacts" },
35
35
  "managedCommands": { "$ref": "#/$defs/managedCommands" },
36
+ "nativeTools": { "$ref": "#/$defs/nativeTools" },
36
37
  "buildConfig": { "$ref": "#/$defs/buildConfig" },
37
38
  "scripts": { "$ref": "#/$defs/scripts" },
38
39
  "config": { "$ref": "#/$defs/config" }
39
40
  },
40
41
  "$defs": {
42
+ "nativeToolBinding": {
43
+ "oneOf": [
44
+ {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "required": [
48
+ "key",
49
+ "platforms",
50
+ "policy"
51
+ ],
52
+ "properties": {
53
+ "key": {
54
+ "$ref": "#/$defs/commandName"
55
+ },
56
+ "platforms": {
57
+ "type": "array",
58
+ "minItems": 1,
59
+ "maxItems": 1,
60
+ "uniqueItems": true,
61
+ "items": {
62
+ "const": "win32"
63
+ }
64
+ },
65
+ "policy": {
66
+ "const": "required"
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "key",
75
+ "platforms",
76
+ "policy",
77
+ "fallback"
78
+ ],
79
+ "properties": {
80
+ "key": {
81
+ "$ref": "#/$defs/commandName"
82
+ },
83
+ "platforms": {
84
+ "type": "array",
85
+ "minItems": 1,
86
+ "maxItems": 1,
87
+ "uniqueItems": true,
88
+ "items": {
89
+ "const": "win32"
90
+ }
91
+ },
92
+ "policy": {
93
+ "const": "preferred"
94
+ },
95
+ "fallback": {
96
+ "$ref": "#/$defs/commandName"
97
+ }
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ "nativeToolConsumer": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "kind",
107
+ "key",
108
+ "tools"
109
+ ],
110
+ "properties": {
111
+ "kind": {
112
+ "enum": [
113
+ "managed-command-set",
114
+ "plugin-test"
115
+ ]
116
+ },
117
+ "key": {
118
+ "$ref": "#/$defs/commandName"
119
+ },
120
+ "tools": {
121
+ "type": "array",
122
+ "minItems": 1,
123
+ "maxItems": 32,
124
+ "items": {
125
+ "$ref": "#/$defs/nativeToolBinding"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "nativeTools": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "definitions",
135
+ "consumers"
136
+ ],
137
+ "properties": {
138
+ "reader": {
139
+ "$ref": "#/$defs/pluginPath"
140
+ },
141
+ "definitions": {
142
+ "type": "array",
143
+ "minItems": 1,
144
+ "maxItems": 32,
145
+ "items": {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "key",
150
+ "protocol"
151
+ ],
152
+ "properties": {
153
+ "key": {
154
+ "$ref": "#/$defs/commandName"
155
+ },
156
+ "protocol": {
157
+ "type": "string",
158
+ "maxLength": 128,
159
+ "pattern": "^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)+$"
160
+ }
161
+ }
162
+ }
163
+ },
164
+ "consumers": {
165
+ "type": "array",
166
+ "minItems": 1,
167
+ "maxItems": 128,
168
+ "items": {
169
+ "$ref": "#/$defs/nativeToolConsumer"
170
+ }
171
+ }
172
+ }
173
+ },
41
174
  "commandName": {
42
175
  "type": "string",
43
176
  "pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,63}$"