codify-schemas 1.0.86-beta7 → 1.0.86-beta9
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/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/messages/empty-response-data-schema.json +9 -0
- package/dist/messages/set-verbosity-request-data-schema.json +14 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/messages/empty-response-data-schema.json +9 -0
- package/src/messages/empty-response-data-schema.test.ts +18 -0
- package/src/messages/set-verbosity-request-data-schema.json +14 -0
- package/src/messages/set-verbosity-request-data-schema.test.ts +20 -0
- package/src/types/index.ts +8 -2
- package/tsconfig.json +1 -0
- package/dist/messages/sudo-request-data-schema.json +0 -30
- package/dist/messages/sudo-response-data-schema.json +0 -19
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import CommandRequestDataSchema from './messages/command-request-data-schema.jso
|
|
|
22
22
|
import CommandRequestResponseDataSchema from './messages/command-response-data-schema.json';
|
|
23
23
|
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json';
|
|
24
24
|
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json';
|
|
25
|
-
|
|
25
|
+
import SetVerbosityRequestDataSchema from './messages/set-verbosity-request-data-schema.json';
|
|
26
|
+
import EmptyResponseDataSchema from './messages/empty-response-data-schema.json';
|
|
27
|
+
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, MatchRequestDataSchema, MatchResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, CommandRequestDataSchema, CommandRequestResponseDataSchema, PressKeyToContinueRequestDataSchema, PressKeyToContinueResponseDataSchema, SetVerbosityRequestDataSchema, EmptyResponseDataSchema, };
|
|
26
28
|
export * from './types/index.js';
|
|
27
29
|
export * from './messages/commands.js';
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,9 @@ import CommandRequestDataSchema from './messages/command-request-data-schema.jso
|
|
|
22
22
|
import CommandRequestResponseDataSchema from './messages/command-response-data-schema.json' with { type: 'json' };
|
|
23
23
|
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json' with { type: 'json' };
|
|
24
24
|
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json' with { type: 'json' };
|
|
25
|
-
|
|
25
|
+
import SetVerbosityRequestDataSchema from './messages/set-verbosity-request-data-schema.json' with { type: 'json' };
|
|
26
|
+
import EmptyResponseDataSchema from './messages/empty-response-data-schema.json' with { type: 'json' };
|
|
27
|
+
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, MatchRequestDataSchema, MatchResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, CommandRequestDataSchema, CommandRequestResponseDataSchema, PressKeyToContinueRequestDataSchema, PressKeyToContinueResponseDataSchema, SetVerbosityRequestDataSchema, EmptyResponseDataSchema, };
|
|
26
28
|
export * from './types/index.js';
|
|
27
29
|
export * from './messages/commands.js';
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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ChI,OAAO,oCAAoC,MAAM,4DAA4D,CAAC,OAAM,IAAI,EAAE,MAAM,EAAC,CAAC;AAClI,OAAO,6BAA6B,MAAM,mDAAmD,CAAC,OAAM,IAAI,EAAE,MAAM,EAAC,CAAC;AAClH,OAAO,uBAAuB,MAAM,4CAA4C,CAAC,OAAM,IAAI,EAAE,MAAM,EAAC,CAAC;AAErG,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,6BAA6B,EAC7B,uBAAuB,GACxB,CAAA;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/empty-response-data-schema.json",
|
|
4
|
+
"title": "Empty Response Schema Data",
|
|
5
|
+
"description": "An empty response",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {},
|
|
8
|
+
"additionalProperties": false
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/set-verbosity-request.json",
|
|
4
|
+
"title": "Set Verbosity Request",
|
|
5
|
+
"description": "Request the plugin to set its verbosity level",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"verbosityLevel": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"description": "The verbosity level to set for the plugin"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SpawnOptions } from "node:child_process";
|
|
2
|
-
import { ErrorObject } from "ajv";
|
|
1
|
+
import type { SpawnOptions } from "node:child_process";
|
|
2
|
+
import type { ErrorObject } from "ajv";
|
|
3
3
|
export interface StringIndexedObject {
|
|
4
4
|
[x: string]: unknown;
|
|
5
5
|
}
|
|
@@ -183,6 +183,11 @@ export interface PressKeyToContinueRequestData {
|
|
|
183
183
|
}
|
|
184
184
|
export interface PressKeyToContinueResponseData {
|
|
185
185
|
}
|
|
186
|
+
export interface SetVerbosityRequestData {
|
|
187
|
+
verbosityLevel: number;
|
|
188
|
+
}
|
|
189
|
+
export interface EmptyResponseData {
|
|
190
|
+
}
|
|
186
191
|
export declare enum SpawnStatus {
|
|
187
192
|
SUCCESS = "success",
|
|
188
193
|
ERROR = "error"
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,iCAAmB,CAAA;AACrB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAQD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,iCAAmB,CAAA;AACrB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAQD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAkID,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,CAAN,IAAY,EAIX;AAJD,WAAY,EAAE;IACZ,uBAAiB,CAAA;IACjB,qBAAe,CAAA;IACf,4BAAsB,CAAA;AACxB,CAAC,EAJW,EAAE,KAAF,EAAE,QAIb"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -22,6 +22,8 @@ import CommandRequestDataSchema from './messages/command-request-data-schema.jso
|
|
|
22
22
|
import CommandRequestResponseDataSchema from './messages/command-response-data-schema.json' with {type: 'json'};
|
|
23
23
|
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json' with {type: 'json'};
|
|
24
24
|
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json' with {type: 'json'};
|
|
25
|
+
import SetVerbosityRequestDataSchema from './messages/set-verbosity-request-data-schema.json' with {type: 'json'};
|
|
26
|
+
import EmptyResponseDataSchema from './messages/empty-response-data-schema.json' with {type: 'json'};
|
|
25
27
|
|
|
26
28
|
export {
|
|
27
29
|
ConfigFileSchema,
|
|
@@ -48,6 +50,8 @@ export {
|
|
|
48
50
|
CommandRequestResponseDataSchema,
|
|
49
51
|
PressKeyToContinueRequestDataSchema,
|
|
50
52
|
PressKeyToContinueResponseDataSchema,
|
|
53
|
+
SetVerbosityRequestDataSchema,
|
|
54
|
+
EmptyResponseDataSchema,
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
export * from './types/index.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/empty-response-data-schema.json",
|
|
4
|
+
"title": "Empty Response Schema Data",
|
|
5
|
+
"description": "An empty response",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {},
|
|
8
|
+
"additionalProperties": false
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import schema from './set-verbosity-request-data-schema.json';
|
|
2
|
+
import {describe, expect, it} from 'vitest'
|
|
3
|
+
import Ajv from 'ajv'
|
|
4
|
+
|
|
5
|
+
const ajv = new Ajv({
|
|
6
|
+
strict: true,
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
describe('Empty Response Data Schema', () => {
|
|
10
|
+
it('compiles', () => {
|
|
11
|
+
ajv.compile(schema);
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
it("Only empty object", () => {
|
|
15
|
+
const validate = ajv.compile(schema);
|
|
16
|
+
expect(validate({})).to.be.true;
|
|
17
|
+
})
|
|
18
|
+
})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/set-verbosity-request.json",
|
|
4
|
+
"title": "Set Verbosity Request",
|
|
5
|
+
"description": "Request the plugin to set its verbosity level",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"verbosityLevel": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"description": "The verbosity level to set for the plugin"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import schema from './set-verbosity-request-data-schema.json';
|
|
2
|
+
import {describe, expect, it} from 'vitest'
|
|
3
|
+
import Ajv from 'ajv'
|
|
4
|
+
|
|
5
|
+
const ajv = new Ajv({
|
|
6
|
+
strict: true,
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
describe('Set Verbosity Request Data Schema', () => {
|
|
10
|
+
it('compiles', () => {
|
|
11
|
+
ajv.compile(schema);
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
it("Sets a verbosity level", () => {
|
|
15
|
+
const validate = ajv.compile(schema);
|
|
16
|
+
expect(validate({
|
|
17
|
+
verbosityLevel: 2,
|
|
18
|
+
})).to.be.true;
|
|
19
|
+
})
|
|
20
|
+
})
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type {SpawnOptions} from "node:child_process";
|
|
2
|
+
import type {ErrorObject} from "ajv";
|
|
3
3
|
|
|
4
4
|
export interface StringIndexedObject {
|
|
5
5
|
[x: string]: unknown;
|
|
@@ -212,6 +212,12 @@ export interface PressKeyToContinueRequestData {
|
|
|
212
212
|
|
|
213
213
|
export interface PressKeyToContinueResponseData {}
|
|
214
214
|
|
|
215
|
+
export interface SetVerbosityRequestData {
|
|
216
|
+
verbosityLevel: number;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface EmptyResponseData {}
|
|
220
|
+
|
|
215
221
|
export enum SpawnStatus {
|
|
216
222
|
SUCCESS = 'success',
|
|
217
223
|
ERROR = 'error',
|
package/tsconfig.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "https://www.codifycli.com/sudo-request.json",
|
|
4
|
-
"title": "Sudo request",
|
|
5
|
-
"description": "Request sudo from the core CLI",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"command": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The command that is requesting sudo"
|
|
11
|
-
},
|
|
12
|
-
"options": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"description": "The options for codifySpawn that is needed to run the command",
|
|
15
|
-
"properties": {
|
|
16
|
-
"cwd": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Current working directory to run codifySpawn in"
|
|
19
|
-
},
|
|
20
|
-
"argv0": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Arguments to pass in"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": ["command"],
|
|
29
|
-
"additionalProperties": false
|
|
30
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "https://www.codifycli.com/sudo-request-response.json",
|
|
4
|
-
"title": "Sudo request response",
|
|
5
|
-
"description": "Response for a sudo request",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"status": {
|
|
9
|
-
"enum": ["success", "error"],
|
|
10
|
-
"description": "Reports if the operation was successful"
|
|
11
|
-
},
|
|
12
|
-
"data": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Data returned by the operation"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"required": ["status", "data"],
|
|
18
|
-
"additionalProperties": false
|
|
19
|
-
}
|