You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/openapi.yaml
+25-13Lines changed: 25 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -180,48 +180,59 @@ components:
180
180
version:
181
181
type: string
182
182
example: "1.0.2"
183
+
runtime_hint:
184
+
type: string
185
+
description: A hint to help clients determine the appropriate runtime for the package. This field should be provided when `runtime_arguments` are present.
186
+
examples: [npx, uvx]
183
187
runtime_arguments:
184
188
type: array
185
-
description: List of arguments passed to the package's runtime command (such as docker or npx).
189
+
description: A list of arguments to be passed to the package's runtime command (such as docker or npx). The `runtime_hint` field should be provided when `runtime_arguments` are present.
186
190
items:
187
191
$ref: '#/components/schemas/Argument'
188
192
package_arguments:
189
193
type: array
190
-
description: List of arguments passed to the package's binary.
194
+
description: A list of arguments to be passed to the package's binary.
191
195
items:
192
196
$ref: '#/components/schemas/Argument'
193
197
environment_variables:
194
198
type: array
199
+
description: A mapping of environment variables to be set when running the package.
195
200
items:
196
201
$ref: '#/components/schemas/KeyValueInput'
197
202
198
203
Input:
199
204
type: object
200
205
properties:
201
206
description:
202
-
description: A description of the input, which can be used by clients to provide context to the user.
207
+
description: A description of the input, which clients can use to provide context to the user.
203
208
type: string
204
209
is_required:
205
210
type: boolean
206
211
default: false
207
212
format:
208
213
type: string
209
-
description: Input format. Includes a variety of standardized formats, including `filepath`, which should be interpreted as a file on the user's filesystem.
214
+
description: |
215
+
Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.
216
+
217
+
When the input is converted to a string, booleans should be represented by the strings "true" and "false", and numbers should be represented as decimal values.
210
218
enum: [string, number, boolean, filepath]
211
219
default: string
212
220
value:
213
221
type: string
214
-
description: The default value for the input. If this is not set, the user will be asked to provide a value. If the `variables` property is provided, then values wrapped in `{curly_braces}` will be replaced with the corresponding variables.
222
+
description: |
223
+
The default value for the input. If this is not set, the user may be prompted to provide a value.
224
+
225
+
Identifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.
215
226
is_secret:
216
227
type: boolean
217
-
description: Whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
228
+
description: Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
218
229
default: false
219
230
default:
220
231
type: string
221
232
description: The default value for the input.
222
233
choices:
223
234
type: array
224
-
description: A list of possible values for the input. If given, the user must pick one of these values.
235
+
description: A list of possible values for the input. If provided, the user must select one of these values.
225
236
items:
226
237
type: string
227
238
example: []
@@ -233,7 +244,7 @@ components:
233
244
properties:
234
245
variables:
235
246
type: object
236
-
description: A map of variable names to their values. Keys in the input `value` wrapped in `{curly_braces}` will be replaced with the corresponding variables.
247
+
description: A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.
237
248
additionalProperties:
238
249
$ref: '#/components/schemas/Input'
239
250
@@ -244,19 +255,19 @@ components:
244
255
- type: object
245
256
required:
246
257
- type
247
-
- name_hint
258
+
- value_hint
248
259
properties:
249
260
type:
250
261
type: string
251
262
enum: [positional]
252
263
example: "positional"
253
-
name_hint:
264
+
value_hint:
254
265
type: string
255
-
description: Name of the positional argument. This is not part of the command line, but can be used for reference by client configuration and used to hint users.
266
+
description: An identifier-like hint for the value. This is not part of the command line, but can be used by client configuration and to provide hints to users.
256
267
example: file_path
257
268
is_repeated:
258
269
type: boolean
259
-
description: Whether the input can be repeated multiple times in the command line.
270
+
description: Whether the argument can be repeated multiple times in the command line.
260
271
default: false
261
272
262
273
NamedArgument:
@@ -274,10 +285,11 @@ components:
274
285
example: "named"
275
286
name:
276
287
type: string
288
+
description: The flag name, including any leading dashes.
277
289
example: "--port"
278
290
is_repeated:
279
291
type: boolean
280
-
description: Whether the argument can be repeated multiple times. Has no effect for environment variables.
292
+
description: Whether the argument can be repeated multiple times.
0 commit comments