Skip to content

Commit 31cf7bf

Browse files
committed
feat: Add requireSudoAskpass and minSupportedCliVersion
1 parent 986081f commit 31cf7bf

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codifycli/schemas",
3-
"version": "1.1.0-beta4",
3+
"version": "1.1.0-beta6",
44
"description": "JSON Schemas and types that govern the message format and Codify config formats for Codify",
55
"type": "module",
66
"main": "dist/index.js",

src/messages/command-request-data-schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"stdin": {
3333
"type": "boolean",
3434
"description": "Whether or not this command requires stdin"
35+
},
36+
"requiresSudoAskpass": {
37+
"type": "boolean",
38+
"description": "Whether to use SUDO_ASKPASS instead of sudo -S for password delivery"
3539
}
3640
},
3741
"additionalProperties": true

src/messages/initialize-response-data-schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"description": "Initialize the plugin",
66
"type": "object",
77
"properties": {
8+
"minSupportedCliVersion": {
9+
"type": "string"
10+
},
811
"resourceDefinitions": {
912
"type": "array",
1013
"items": {

src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export interface InitializeRequestData {
196196

197197
export interface InitializeResponseData {
198198
resourceDefinitions: Array<ResourceDefinition>;
199+
minSupportedCliVersion?: string;
199200
}
200201

201202
export interface CommandRequestData {

0 commit comments

Comments
 (0)