Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +11 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/limit.d.ts +14 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/undefinedAsNull.d.ts +15 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/Range.d.ts +79 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/hints.d.ts +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/memorize.d.ts +7 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/absolutePath.js +87 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/limit.js +158 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/undefinedAsNull.js +36 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/Range.js +143 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/hints.js +85 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/memorize.js +29 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.d.ts +5 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.js +28 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.d.ts +5 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.js +23 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.d.ts +5 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.js +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.d.ts +4 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.js +19 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts +2 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.js +21 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts +4 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.js +10 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.js +54 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts +2 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.js +33 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts +7 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js +84 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts +4 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js +10 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.d.ts +6 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.js +44 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts +7 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.js +54 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.js.map +1 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts +4 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/oneRequired.js +10 -0
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default addAbsolutePathKeyword;
|
| 2 |
+
export type Ajv = import("ajv").default;
|
| 3 |
+
export type SchemaValidateFunction = import("ajv").SchemaValidateFunction;
|
| 4 |
+
export type AnySchemaObject = import("ajv").AnySchemaObject;
|
| 5 |
+
export type SchemaUtilErrorObject = import("../validate").SchemaUtilErrorObject;
|
| 6 |
+
/**
|
| 7 |
+
*
|
| 8 |
+
* @param {Ajv} ajv
|
| 9 |
+
* @returns {Ajv}
|
| 10 |
+
*/
|
| 11 |
+
declare function addAbsolutePathKeyword(ajv: Ajv): Ajv;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/limit.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default addLimitKeyword;
|
| 2 |
+
export type Ajv = import("ajv").default;
|
| 3 |
+
export type Code = import("ajv").Code;
|
| 4 |
+
export type Name = import("ajv").Name;
|
| 5 |
+
export type KeywordErrorDefinition = import("ajv").KeywordErrorDefinition;
|
| 6 |
+
/** @typedef {import("ajv").default} Ajv */
|
| 7 |
+
/** @typedef {import("ajv").Code} Code */
|
| 8 |
+
/** @typedef {import("ajv").Name} Name */
|
| 9 |
+
/** @typedef {import("ajv").KeywordErrorDefinition} KeywordErrorDefinition */
|
| 10 |
+
/**
|
| 11 |
+
* @param {Ajv} ajv
|
| 12 |
+
* @returns {Ajv}
|
| 13 |
+
*/
|
| 14 |
+
declare function addLimitKeyword(ajv: Ajv): Ajv;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/keywords/undefinedAsNull.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default addUndefinedAsNullKeyword;
|
| 2 |
+
export type Ajv = import("ajv").default;
|
| 3 |
+
export type SchemaValidateFunction = import("ajv").SchemaValidateFunction;
|
| 4 |
+
export type AnySchemaObject = import("ajv").AnySchemaObject;
|
| 5 |
+
export type ValidateFunction = import("ajv").ValidateFunction;
|
| 6 |
+
/** @typedef {import("ajv").default} Ajv */
|
| 7 |
+
/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */
|
| 8 |
+
/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */
|
| 9 |
+
/** @typedef {import("ajv").ValidateFunction} ValidateFunction */
|
| 10 |
+
/**
|
| 11 |
+
*
|
| 12 |
+
* @param {Ajv} ajv
|
| 13 |
+
* @returns {Ajv}
|
| 14 |
+
*/
|
| 15 |
+
declare function addUndefinedAsNullKeyword(ajv: Ajv): Ajv;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/Range.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export = Range;
|
| 2 |
+
/**
|
| 3 |
+
* @typedef {[number, boolean]} RangeValue
|
| 4 |
+
*/
|
| 5 |
+
/**
|
| 6 |
+
* @callback RangeValueCallback
|
| 7 |
+
* @param {RangeValue} rangeValue
|
| 8 |
+
* @returns {boolean}
|
| 9 |
+
*/
|
| 10 |
+
declare class Range {
|
| 11 |
+
/**
|
| 12 |
+
* @param {"left" | "right"} side
|
| 13 |
+
* @param {boolean} exclusive
|
| 14 |
+
* @returns {">" | ">=" | "<" | "<="}
|
| 15 |
+
*/
|
| 16 |
+
static getOperator(
|
| 17 |
+
side: "left" | "right",
|
| 18 |
+
exclusive: boolean
|
| 19 |
+
): ">" | ">=" | "<" | "<=";
|
| 20 |
+
/**
|
| 21 |
+
* @param {number} value
|
| 22 |
+
* @param {boolean} logic is not logic applied
|
| 23 |
+
* @param {boolean} exclusive is range exclusive
|
| 24 |
+
* @returns {string}
|
| 25 |
+
*/
|
| 26 |
+
static formatRight(value: number, logic: boolean, exclusive: boolean): string;
|
| 27 |
+
/**
|
| 28 |
+
* @param {number} value
|
| 29 |
+
* @param {boolean} logic is not logic applied
|
| 30 |
+
* @param {boolean} exclusive is range exclusive
|
| 31 |
+
* @returns {string}
|
| 32 |
+
*/
|
| 33 |
+
static formatLeft(value: number, logic: boolean, exclusive: boolean): string;
|
| 34 |
+
/**
|
| 35 |
+
* @param {number} start left side value
|
| 36 |
+
* @param {number} end right side value
|
| 37 |
+
* @param {boolean} startExclusive is range exclusive from left side
|
| 38 |
+
* @param {boolean} endExclusive is range exclusive from right side
|
| 39 |
+
* @param {boolean} logic is not logic applied
|
| 40 |
+
* @returns {string}
|
| 41 |
+
*/
|
| 42 |
+
static formatRange(
|
| 43 |
+
start: number,
|
| 44 |
+
end: number,
|
| 45 |
+
startExclusive: boolean,
|
| 46 |
+
endExclusive: boolean,
|
| 47 |
+
logic: boolean
|
| 48 |
+
): string;
|
| 49 |
+
/**
|
| 50 |
+
* @param {Array<RangeValue>} values
|
| 51 |
+
* @param {boolean} logic is not logic applied
|
| 52 |
+
* @return {RangeValue} computed value and it's exclusive flag
|
| 53 |
+
*/
|
| 54 |
+
static getRangeValue(values: Array<RangeValue>, logic: boolean): RangeValue;
|
| 55 |
+
/** @type {Array<RangeValue>} */
|
| 56 |
+
_left: Array<RangeValue>;
|
| 57 |
+
/** @type {Array<RangeValue>} */
|
| 58 |
+
_right: Array<RangeValue>;
|
| 59 |
+
/**
|
| 60 |
+
* @param {number} value
|
| 61 |
+
* @param {boolean=} exclusive
|
| 62 |
+
*/
|
| 63 |
+
left(value: number, exclusive?: boolean | undefined): void;
|
| 64 |
+
/**
|
| 65 |
+
* @param {number} value
|
| 66 |
+
* @param {boolean=} exclusive
|
| 67 |
+
*/
|
| 68 |
+
right(value: number, exclusive?: boolean | undefined): void;
|
| 69 |
+
/**
|
| 70 |
+
* @param {boolean} logic is not logic applied
|
| 71 |
+
* @return {string} "smart" range string representation
|
| 72 |
+
*/
|
| 73 |
+
format(logic?: boolean): string;
|
| 74 |
+
}
|
| 75 |
+
declare namespace Range {
|
| 76 |
+
export { RangeValue, RangeValueCallback };
|
| 77 |
+
}
|
| 78 |
+
type RangeValue = [number, boolean];
|
| 79 |
+
type RangeValueCallback = (rangeValue: RangeValue) => boolean;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/hints.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export function stringHints(schema: Schema, logic: boolean): string[];
|
| 2 |
+
export function numberHints(schema: Schema, logic: boolean): string[];
|
| 3 |
+
export type Schema = import("../validate").Schema;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/declarations/util/memorize.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default memoize;
|
| 2 |
+
/**
|
| 3 |
+
* @template T
|
| 4 |
+
* @param fn {(function(): any) | undefined}
|
| 5 |
+
* @returns {function(): T}
|
| 6 |
+
*/
|
| 7 |
+
declare function memoize<T>(fn: (() => any) | undefined): () => T;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/absolutePath.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
/** @typedef {import("ajv").default} Ajv */
|
| 8 |
+
/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */
|
| 9 |
+
/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */
|
| 10 |
+
/** @typedef {import("../validate").SchemaUtilErrorObject} SchemaUtilErrorObject */
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* @param {string} message
|
| 14 |
+
* @param {object} schema
|
| 15 |
+
* @param {string} data
|
| 16 |
+
* @returns {SchemaUtilErrorObject}
|
| 17 |
+
*/
|
| 18 |
+
function errorMessage(message, schema, data) {
|
| 19 |
+
return {
|
| 20 |
+
// @ts-ignore
|
| 21 |
+
// eslint-disable-next-line no-undefined
|
| 22 |
+
dataPath: undefined,
|
| 23 |
+
// @ts-ignore
|
| 24 |
+
// eslint-disable-next-line no-undefined
|
| 25 |
+
schemaPath: undefined,
|
| 26 |
+
keyword: "absolutePath",
|
| 27 |
+
params: {
|
| 28 |
+
absolutePath: data
|
| 29 |
+
},
|
| 30 |
+
message,
|
| 31 |
+
parentSchema: schema
|
| 32 |
+
};
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* @param {boolean} shouldBeAbsolute
|
| 37 |
+
* @param {object} schema
|
| 38 |
+
* @param {string} data
|
| 39 |
+
* @returns {SchemaUtilErrorObject}
|
| 40 |
+
*/
|
| 41 |
+
function getErrorFor(shouldBeAbsolute, schema, data) {
|
| 42 |
+
const message = shouldBeAbsolute ? `The provided value ${JSON.stringify(data)} is not an absolute path!` : `A relative path is expected. However, the provided value ${JSON.stringify(data)} is an absolute path!`;
|
| 43 |
+
return errorMessage(message, schema, data);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
*
|
| 48 |
+
* @param {Ajv} ajv
|
| 49 |
+
* @returns {Ajv}
|
| 50 |
+
*/
|
| 51 |
+
function addAbsolutePathKeyword(ajv) {
|
| 52 |
+
ajv.addKeyword({
|
| 53 |
+
keyword: "absolutePath",
|
| 54 |
+
type: "string",
|
| 55 |
+
errors: true,
|
| 56 |
+
/**
|
| 57 |
+
* @param {boolean} schema
|
| 58 |
+
* @param {AnySchemaObject} parentSchema
|
| 59 |
+
* @returns {SchemaValidateFunction}
|
| 60 |
+
*/
|
| 61 |
+
compile(schema, parentSchema) {
|
| 62 |
+
/** @type {SchemaValidateFunction} */
|
| 63 |
+
const callback = data => {
|
| 64 |
+
let passes = true;
|
| 65 |
+
const isExclamationMarkPresent = data.includes("!");
|
| 66 |
+
if (isExclamationMarkPresent) {
|
| 67 |
+
callback.errors = [errorMessage(`The provided value ${JSON.stringify(data)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`, parentSchema, data)];
|
| 68 |
+
passes = false;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
// ?:[A-Za-z]:\\ - Windows absolute path
|
| 72 |
+
// \\\\ - Windows network absolute path
|
| 73 |
+
// \/ - Unix-like OS absolute path
|
| 74 |
+
const isCorrectAbsolutePath = schema === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data);
|
| 75 |
+
if (!isCorrectAbsolutePath) {
|
| 76 |
+
callback.errors = [getErrorFor(schema, parentSchema, data)];
|
| 77 |
+
passes = false;
|
| 78 |
+
}
|
| 79 |
+
return passes;
|
| 80 |
+
};
|
| 81 |
+
callback.errors = [];
|
| 82 |
+
return callback;
|
| 83 |
+
}
|
| 84 |
+
});
|
| 85 |
+
return ajv;
|
| 86 |
+
}
|
| 87 |
+
var _default = exports.default = addAbsolutePathKeyword;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/limit.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
/** @typedef {import("ajv").default} Ajv */
|
| 8 |
+
/** @typedef {import("ajv").Code} Code */
|
| 9 |
+
/** @typedef {import("ajv").Name} Name */
|
| 10 |
+
/** @typedef {import("ajv").KeywordErrorDefinition} KeywordErrorDefinition */
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
* @param {Ajv} ajv
|
| 14 |
+
* @returns {Ajv}
|
| 15 |
+
*/
|
| 16 |
+
function addLimitKeyword(ajv) {
|
| 17 |
+
// eslint-disable-next-line global-require
|
| 18 |
+
const {
|
| 19 |
+
_,
|
| 20 |
+
str,
|
| 21 |
+
KeywordCxt,
|
| 22 |
+
nil,
|
| 23 |
+
Name
|
| 24 |
+
} = require("ajv");
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* @param {Code | Name} x
|
| 28 |
+
* @returns {Code | Name}
|
| 29 |
+
*/
|
| 30 |
+
function par(x) {
|
| 31 |
+
return x instanceof Name ? x : _`(${x})`;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* @param {Code} op
|
| 36 |
+
* @returns {function(Code, Code): Code}
|
| 37 |
+
*/
|
| 38 |
+
function mappend(op) {
|
| 39 |
+
return (x, y) => x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`;
|
| 40 |
+
}
|
| 41 |
+
const orCode = mappend(_`||`);
|
| 42 |
+
|
| 43 |
+
// boolean OR (||) expression with the passed arguments
|
| 44 |
+
/**
|
| 45 |
+
* @param {...Code} args
|
| 46 |
+
* @returns {Code}
|
| 47 |
+
*/
|
| 48 |
+
function or(...args) {
|
| 49 |
+
return args.reduce(orCode);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* @param {string | number} key
|
| 54 |
+
* @returns {Code}
|
| 55 |
+
*/
|
| 56 |
+
function getProperty(key) {
|
| 57 |
+
return _`[${key}]`;
|
| 58 |
+
}
|
| 59 |
+
const keywords = {
|
| 60 |
+
formatMaximum: {
|
| 61 |
+
okStr: "<=",
|
| 62 |
+
ok: _`<=`,
|
| 63 |
+
fail: _`>`
|
| 64 |
+
},
|
| 65 |
+
formatMinimum: {
|
| 66 |
+
okStr: ">=",
|
| 67 |
+
ok: _`>=`,
|
| 68 |
+
fail: _`<`
|
| 69 |
+
},
|
| 70 |
+
formatExclusiveMaximum: {
|
| 71 |
+
okStr: "<",
|
| 72 |
+
ok: _`<`,
|
| 73 |
+
fail: _`>=`
|
| 74 |
+
},
|
| 75 |
+
formatExclusiveMinimum: {
|
| 76 |
+
okStr: ">",
|
| 77 |
+
ok: _`>`,
|
| 78 |
+
fail: _`<=`
|
| 79 |
+
}
|
| 80 |
+
};
|
| 81 |
+
|
| 82 |
+
/** @type {KeywordErrorDefinition} */
|
| 83 |
+
const error = {
|
| 84 |
+
message: ({
|
| 85 |
+
keyword,
|
| 86 |
+
schemaCode
|
| 87 |
+
}) => str`should be ${keywords[(/** @type {keyof typeof keywords} */keyword)].okStr} ${schemaCode}`,
|
| 88 |
+
params: ({
|
| 89 |
+
keyword,
|
| 90 |
+
schemaCode
|
| 91 |
+
}) => _`{comparison: ${keywords[(/** @type {keyof typeof keywords} */keyword)].okStr}, limit: ${schemaCode}}`
|
| 92 |
+
};
|
| 93 |
+
for (const keyword of Object.keys(keywords)) {
|
| 94 |
+
ajv.addKeyword({
|
| 95 |
+
keyword,
|
| 96 |
+
type: "string",
|
| 97 |
+
schemaType: keyword.startsWith("formatExclusive") ? ["string", "boolean"] : ["string", "number"],
|
| 98 |
+
$data: true,
|
| 99 |
+
error,
|
| 100 |
+
code(cxt) {
|
| 101 |
+
const {
|
| 102 |
+
gen,
|
| 103 |
+
data,
|
| 104 |
+
schemaCode,
|
| 105 |
+
keyword,
|
| 106 |
+
it
|
| 107 |
+
} = cxt;
|
| 108 |
+
const {
|
| 109 |
+
opts,
|
| 110 |
+
self
|
| 111 |
+
} = it;
|
| 112 |
+
if (!opts.validateFormats) return;
|
| 113 |
+
const fCxt = new KeywordCxt(it, /** @type {any} */
|
| 114 |
+
self.RULES.all.format.definition, "format");
|
| 115 |
+
|
| 116 |
+
/**
|
| 117 |
+
* @param {Name} fmt
|
| 118 |
+
* @returns {Code}
|
| 119 |
+
*/
|
| 120 |
+
function compareCode(fmt) {
|
| 121 |
+
return _`${fmt}.compare(${data}, ${schemaCode}) ${keywords[(/** @type {keyof typeof keywords} */keyword)].fail} 0`;
|
| 122 |
+
}
|
| 123 |
+
function validate$DataFormat() {
|
| 124 |
+
const fmts = gen.scopeValue("formats", {
|
| 125 |
+
ref: self.formats,
|
| 126 |
+
code: opts.code.formats
|
| 127 |
+
});
|
| 128 |
+
const fmt = gen.const("fmt", _`${fmts}[${fCxt.schemaCode}]`);
|
| 129 |
+
cxt.fail$data(or(_`typeof ${fmt} != "object"`, _`${fmt} instanceof RegExp`, _`typeof ${fmt}.compare != "function"`, compareCode(fmt)));
|
| 130 |
+
}
|
| 131 |
+
function validateFormat() {
|
| 132 |
+
const format = fCxt.schema;
|
| 133 |
+
const fmtDef = self.formats[format];
|
| 134 |
+
if (!fmtDef || fmtDef === true) {
|
| 135 |
+
return;
|
| 136 |
+
}
|
| 137 |
+
if (typeof fmtDef !== "object" || fmtDef instanceof RegExp || typeof fmtDef.compare !== "function") {
|
| 138 |
+
throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
|
| 139 |
+
}
|
| 140 |
+
const fmt = gen.scopeValue("formats", {
|
| 141 |
+
key: format,
|
| 142 |
+
ref: fmtDef,
|
| 143 |
+
code: opts.code.formats ? _`${opts.code.formats}${getProperty(format)}` : undefined
|
| 144 |
+
});
|
| 145 |
+
cxt.fail$data(compareCode(fmt));
|
| 146 |
+
}
|
| 147 |
+
if (fCxt.$data) {
|
| 148 |
+
validate$DataFormat();
|
| 149 |
+
} else {
|
| 150 |
+
validateFormat();
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
dependencies: ["format"]
|
| 154 |
+
});
|
| 155 |
+
}
|
| 156 |
+
return ajv;
|
| 157 |
+
}
|
| 158 |
+
var _default = exports.default = addLimitKeyword;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/keywords/undefinedAsNull.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
/** @typedef {import("ajv").default} Ajv */
|
| 8 |
+
/** @typedef {import("ajv").SchemaValidateFunction} SchemaValidateFunction */
|
| 9 |
+
/** @typedef {import("ajv").AnySchemaObject} AnySchemaObject */
|
| 10 |
+
/** @typedef {import("ajv").ValidateFunction} ValidateFunction */
|
| 11 |
+
|
| 12 |
+
/**
|
| 13 |
+
*
|
| 14 |
+
* @param {Ajv} ajv
|
| 15 |
+
* @returns {Ajv}
|
| 16 |
+
*/
|
| 17 |
+
function addUndefinedAsNullKeyword(ajv) {
|
| 18 |
+
ajv.addKeyword({
|
| 19 |
+
keyword: "undefinedAsNull",
|
| 20 |
+
before: "enum",
|
| 21 |
+
modifying: true,
|
| 22 |
+
/** @type {SchemaValidateFunction} */
|
| 23 |
+
validate(kwVal, data, metadata, dataCxt) {
|
| 24 |
+
if (kwVal && dataCxt && metadata && typeof metadata.enum !== "undefined") {
|
| 25 |
+
const idx = dataCxt.parentDataProperty;
|
| 26 |
+
if (typeof dataCxt.parentData[idx] === "undefined") {
|
| 27 |
+
// eslint-disable-next-line no-param-reassign
|
| 28 |
+
dataCxt.parentData[dataCxt.parentDataProperty] = null;
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
return true;
|
| 32 |
+
}
|
| 33 |
+
});
|
| 34 |
+
return ajv;
|
| 35 |
+
}
|
| 36 |
+
var _default = exports.default = addUndefinedAsNullKeyword;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/Range.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* @typedef {[number, boolean]} RangeValue
|
| 5 |
+
*/
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* @callback RangeValueCallback
|
| 9 |
+
* @param {RangeValue} rangeValue
|
| 10 |
+
* @returns {boolean}
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
class Range {
|
| 14 |
+
/**
|
| 15 |
+
* @param {"left" | "right"} side
|
| 16 |
+
* @param {boolean} exclusive
|
| 17 |
+
* @returns {">" | ">=" | "<" | "<="}
|
| 18 |
+
*/
|
| 19 |
+
static getOperator(side, exclusive) {
|
| 20 |
+
if (side === "left") {
|
| 21 |
+
return exclusive ? ">" : ">=";
|
| 22 |
+
}
|
| 23 |
+
return exclusive ? "<" : "<=";
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* @param {number} value
|
| 28 |
+
* @param {boolean} logic is not logic applied
|
| 29 |
+
* @param {boolean} exclusive is range exclusive
|
| 30 |
+
* @returns {string}
|
| 31 |
+
*/
|
| 32 |
+
static formatRight(value, logic, exclusive) {
|
| 33 |
+
if (logic === false) {
|
| 34 |
+
return Range.formatLeft(value, !logic, !exclusive);
|
| 35 |
+
}
|
| 36 |
+
return `should be ${Range.getOperator("right", exclusive)} ${value}`;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* @param {number} value
|
| 41 |
+
* @param {boolean} logic is not logic applied
|
| 42 |
+
* @param {boolean} exclusive is range exclusive
|
| 43 |
+
* @returns {string}
|
| 44 |
+
*/
|
| 45 |
+
static formatLeft(value, logic, exclusive) {
|
| 46 |
+
if (logic === false) {
|
| 47 |
+
return Range.formatRight(value, !logic, !exclusive);
|
| 48 |
+
}
|
| 49 |
+
return `should be ${Range.getOperator("left", exclusive)} ${value}`;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/**
|
| 53 |
+
* @param {number} start left side value
|
| 54 |
+
* @param {number} end right side value
|
| 55 |
+
* @param {boolean} startExclusive is range exclusive from left side
|
| 56 |
+
* @param {boolean} endExclusive is range exclusive from right side
|
| 57 |
+
* @param {boolean} logic is not logic applied
|
| 58 |
+
* @returns {string}
|
| 59 |
+
*/
|
| 60 |
+
static formatRange(start, end, startExclusive, endExclusive, logic) {
|
| 61 |
+
let result = "should be";
|
| 62 |
+
result += ` ${Range.getOperator(logic ? "left" : "right", logic ? startExclusive : !startExclusive)} ${start} `;
|
| 63 |
+
result += logic ? "and" : "or";
|
| 64 |
+
result += ` ${Range.getOperator(logic ? "right" : "left", logic ? endExclusive : !endExclusive)} ${end}`;
|
| 65 |
+
return result;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* @param {Array<RangeValue>} values
|
| 70 |
+
* @param {boolean} logic is not logic applied
|
| 71 |
+
* @return {RangeValue} computed value and it's exclusive flag
|
| 72 |
+
*/
|
| 73 |
+
static getRangeValue(values, logic) {
|
| 74 |
+
let minMax = logic ? Infinity : -Infinity;
|
| 75 |
+
let j = -1;
|
| 76 |
+
const predicate = logic ? /** @type {RangeValueCallback} */
|
| 77 |
+
([value]) => value <= minMax : /** @type {RangeValueCallback} */
|
| 78 |
+
([value]) => value >= minMax;
|
| 79 |
+
for (let i = 0; i < values.length; i++) {
|
| 80 |
+
if (predicate(values[i])) {
|
| 81 |
+
[minMax] = values[i];
|
| 82 |
+
j = i;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
if (j > -1) {
|
| 86 |
+
return values[j];
|
| 87 |
+
}
|
| 88 |
+
return [Infinity, true];
|
| 89 |
+
}
|
| 90 |
+
constructor() {
|
| 91 |
+
/** @type {Array<RangeValue>} */
|
| 92 |
+
this._left = [];
|
| 93 |
+
/** @type {Array<RangeValue>} */
|
| 94 |
+
this._right = [];
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* @param {number} value
|
| 99 |
+
* @param {boolean=} exclusive
|
| 100 |
+
*/
|
| 101 |
+
left(value, exclusive = false) {
|
| 102 |
+
this._left.push([value, exclusive]);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
/**
|
| 106 |
+
* @param {number} value
|
| 107 |
+
* @param {boolean=} exclusive
|
| 108 |
+
*/
|
| 109 |
+
right(value, exclusive = false) {
|
| 110 |
+
this._right.push([value, exclusive]);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
* @param {boolean} logic is not logic applied
|
| 115 |
+
* @return {string} "smart" range string representation
|
| 116 |
+
*/
|
| 117 |
+
format(logic = true) {
|
| 118 |
+
const [start, leftExclusive] = Range.getRangeValue(this._left, logic);
|
| 119 |
+
const [end, rightExclusive] = Range.getRangeValue(this._right, !logic);
|
| 120 |
+
if (!Number.isFinite(start) && !Number.isFinite(end)) {
|
| 121 |
+
return "";
|
| 122 |
+
}
|
| 123 |
+
const realStart = leftExclusive ? start + 1 : start;
|
| 124 |
+
const realEnd = rightExclusive ? end - 1 : end;
|
| 125 |
+
|
| 126 |
+
// e.g. 5 < x < 7, 5 < x <= 6, 6 <= x <= 6
|
| 127 |
+
if (realStart === realEnd) {
|
| 128 |
+
return `should be ${logic ? "" : "!"}= ${realStart}`;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
// e.g. 4 < x < ∞
|
| 132 |
+
if (Number.isFinite(start) && !Number.isFinite(end)) {
|
| 133 |
+
return Range.formatLeft(start, logic, leftExclusive);
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
// e.g. ∞ < x < 4
|
| 137 |
+
if (!Number.isFinite(start) && Number.isFinite(end)) {
|
| 138 |
+
return Range.formatRight(end, logic, rightExclusive);
|
| 139 |
+
}
|
| 140 |
+
return Range.formatRange(start, end, leftExclusive, rightExclusive, logic);
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
module.exports = Range;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/hints.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
const Range = require("./Range");
|
| 4 |
+
|
| 5 |
+
/** @typedef {import("../validate").Schema} Schema */
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* @param {Schema} schema
|
| 9 |
+
* @param {boolean} logic
|
| 10 |
+
* @return {string[]}
|
| 11 |
+
*/
|
| 12 |
+
module.exports.stringHints = function stringHints(schema, logic) {
|
| 13 |
+
const hints = [];
|
| 14 |
+
let type = "string";
|
| 15 |
+
const currentSchema = {
|
| 16 |
+
...schema
|
| 17 |
+
};
|
| 18 |
+
if (!logic) {
|
| 19 |
+
const tmpLength = currentSchema.minLength;
|
| 20 |
+
const tmpFormat = currentSchema.formatMinimum;
|
| 21 |
+
currentSchema.minLength = currentSchema.maxLength;
|
| 22 |
+
currentSchema.maxLength = tmpLength;
|
| 23 |
+
currentSchema.formatMinimum = currentSchema.formatMaximum;
|
| 24 |
+
currentSchema.formatMaximum = tmpFormat;
|
| 25 |
+
}
|
| 26 |
+
if (typeof currentSchema.minLength === "number") {
|
| 27 |
+
if (currentSchema.minLength === 1) {
|
| 28 |
+
type = "non-empty string";
|
| 29 |
+
} else {
|
| 30 |
+
const length = Math.max(currentSchema.minLength - 1, 0);
|
| 31 |
+
hints.push(`should be longer than ${length} character${length > 1 ? "s" : ""}`);
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
if (typeof currentSchema.maxLength === "number") {
|
| 35 |
+
if (currentSchema.maxLength === 0) {
|
| 36 |
+
type = "empty string";
|
| 37 |
+
} else {
|
| 38 |
+
const length = currentSchema.maxLength + 1;
|
| 39 |
+
hints.push(`should be shorter than ${length} character${length > 1 ? "s" : ""}`);
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
if (currentSchema.pattern) {
|
| 43 |
+
hints.push(`should${logic ? "" : " not"} match pattern ${JSON.stringify(currentSchema.pattern)}`);
|
| 44 |
+
}
|
| 45 |
+
if (currentSchema.format) {
|
| 46 |
+
hints.push(`should${logic ? "" : " not"} match format ${JSON.stringify(currentSchema.format)}`);
|
| 47 |
+
}
|
| 48 |
+
if (currentSchema.formatMinimum) {
|
| 49 |
+
hints.push(`should be ${currentSchema.formatExclusiveMinimum ? ">" : ">="} ${JSON.stringify(currentSchema.formatMinimum)}`);
|
| 50 |
+
}
|
| 51 |
+
if (currentSchema.formatMaximum) {
|
| 52 |
+
hints.push(`should be ${currentSchema.formatExclusiveMaximum ? "<" : "<="} ${JSON.stringify(currentSchema.formatMaximum)}`);
|
| 53 |
+
}
|
| 54 |
+
return [type].concat(hints);
|
| 55 |
+
};
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* @param {Schema} schema
|
| 59 |
+
* @param {boolean} logic
|
| 60 |
+
* @return {string[]}
|
| 61 |
+
*/
|
| 62 |
+
module.exports.numberHints = function numberHints(schema, logic) {
|
| 63 |
+
const hints = [schema.type === "integer" ? "integer" : "number"];
|
| 64 |
+
const range = new Range();
|
| 65 |
+
if (typeof schema.minimum === "number") {
|
| 66 |
+
range.left(schema.minimum);
|
| 67 |
+
}
|
| 68 |
+
if (typeof schema.exclusiveMinimum === "number") {
|
| 69 |
+
range.left(schema.exclusiveMinimum, true);
|
| 70 |
+
}
|
| 71 |
+
if (typeof schema.maximum === "number") {
|
| 72 |
+
range.right(schema.maximum);
|
| 73 |
+
}
|
| 74 |
+
if (typeof schema.exclusiveMaximum === "number") {
|
| 75 |
+
range.right(schema.exclusiveMaximum, true);
|
| 76 |
+
}
|
| 77 |
+
const rangeFormat = range.format(logic);
|
| 78 |
+
if (rangeFormat) {
|
| 79 |
+
hints.push(rangeFormat);
|
| 80 |
+
}
|
| 81 |
+
if (typeof schema.multipleOf === "number") {
|
| 82 |
+
hints.push(`should${logic ? "" : " not"} be multiple of ${schema.multipleOf}`);
|
| 83 |
+
}
|
| 84 |
+
return hints;
|
| 85 |
+
};
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/dist/util/memorize.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, "__esModule", {
|
| 4 |
+
value: true
|
| 5 |
+
});
|
| 6 |
+
exports.default = void 0;
|
| 7 |
+
/**
|
| 8 |
+
* @template T
|
| 9 |
+
* @param fn {(function(): any) | undefined}
|
| 10 |
+
* @returns {function(): T}
|
| 11 |
+
*/
|
| 12 |
+
const memoize = fn => {
|
| 13 |
+
let cache = false;
|
| 14 |
+
/** @type {T} */
|
| 15 |
+
let result;
|
| 16 |
+
return () => {
|
| 17 |
+
if (cache) {
|
| 18 |
+
return result;
|
| 19 |
+
}
|
| 20 |
+
result = /** @type {function(): any} */fn();
|
| 21 |
+
cache = true;
|
| 22 |
+
// Allow to clean up memory for fn
|
| 23 |
+
// and all dependent resources
|
| 24 |
+
// eslint-disable-next-line no-undefined, no-param-reassign
|
| 25 |
+
fn = undefined;
|
| 26 |
+
return result;
|
| 27 |
+
};
|
| 28 |
+
};
|
| 29 |
+
var _default = exports.default = memoize;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { GetDefinition } from "./_types";
|
| 3 |
+
declare type RangeKwd = "range" | "exclusiveRange";
|
| 4 |
+
export default function getRangeDef(keyword: RangeKwd): GetDefinition<MacroKeywordDefinition>;
|
| 5 |
+
export {};
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
function getRangeDef(keyword) {
|
| 4 |
+
return () => ({
|
| 5 |
+
keyword,
|
| 6 |
+
type: "number",
|
| 7 |
+
schemaType: "array",
|
| 8 |
+
macro: function ([min, max]) {
|
| 9 |
+
validateRangeSchema(min, max);
|
| 10 |
+
return keyword === "range"
|
| 11 |
+
? { minimum: min, maximum: max }
|
| 12 |
+
: { exclusiveMinimum: min, exclusiveMaximum: max };
|
| 13 |
+
},
|
| 14 |
+
metaSchema: {
|
| 15 |
+
type: "array",
|
| 16 |
+
minItems: 2,
|
| 17 |
+
maxItems: 2,
|
| 18 |
+
items: { type: "number" },
|
| 19 |
+
},
|
| 20 |
+
});
|
| 21 |
+
function validateRangeSchema(min, max) {
|
| 22 |
+
if (min > max || (keyword === "exclusiveRange" && min === max)) {
|
| 23 |
+
throw new Error("There are no numbers in range");
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
exports.default = getRangeDef;
|
| 28 |
+
//# sourceMappingURL=_range.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_range.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"_range.js","sourceRoot":"","sources":["../../src/definitions/_range.ts"],"names":[],"mappings":";;AAKA,SAAwB,WAAW,CAAC,OAAiB;IACnD,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAAmB;YAC3C,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAC7B,OAAO,OAAO,KAAK,OAAO;gBACxB,CAAC,CAAC,EAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC;gBAC9B,CAAC,CAAC,EAAC,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAC,CAAA;QACpD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;IAEF,SAAS,mBAAmB,CAAC,GAAW,EAAE,GAAW;QACnD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,KAAK,gBAAgB,IAAI,GAAG,KAAK,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;SACjD;IACH,CAAC;AACH,CAAC;AAxBD,8BAwBC"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { GetDefinition } from "./_types";
|
| 3 |
+
declare type RequiredKwd = "anyRequired" | "oneRequired";
|
| 4 |
+
export default function getRequiredDef(keyword: RequiredKwd): GetDefinition<MacroKeywordDefinition>;
|
| 5 |
+
export {};
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
function getRequiredDef(keyword) {
|
| 4 |
+
return () => ({
|
| 5 |
+
keyword,
|
| 6 |
+
type: "object",
|
| 7 |
+
schemaType: "array",
|
| 8 |
+
macro(schema) {
|
| 9 |
+
if (schema.length === 0)
|
| 10 |
+
return true;
|
| 11 |
+
if (schema.length === 1)
|
| 12 |
+
return { required: schema };
|
| 13 |
+
const comb = keyword === "anyRequired" ? "anyOf" : "oneOf";
|
| 14 |
+
return { [comb]: schema.map((p) => ({ required: [p] })) };
|
| 15 |
+
},
|
| 16 |
+
metaSchema: {
|
| 17 |
+
type: "array",
|
| 18 |
+
items: { type: "string" },
|
| 19 |
+
},
|
| 20 |
+
});
|
| 21 |
+
}
|
| 22 |
+
exports.default = getRequiredDef;
|
| 23 |
+
//# sourceMappingURL=_required.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_required.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"_required.js","sourceRoot":"","sources":["../../src/definitions/_required.ts"],"names":[],"mappings":";;AAKA,SAAwB,cAAc,CACpC,OAAoB;IAEpB,OAAO,GAAG,EAAE,CAAC,CAAC;QACZ,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,KAAK,CAAC,MAAgB;YACpB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAA;YAClD,MAAM,IAAI,GAAG,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;YAC1D,OAAO,EAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,CAAA;QACvD,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;SACxB;KACF,CAAC,CAAA;AACJ,CAAC;AAlBD,iCAkBC"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { KeywordDefinition } from "ajv";
|
| 2 |
+
export interface DefinitionOptions {
|
| 3 |
+
defaultMeta?: string | boolean;
|
| 4 |
+
}
|
| 5 |
+
export declare type GetDefinition<T extends KeywordDefinition> = (opts?: DefinitionOptions) => T;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
//# sourceMappingURL=_types.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../src/definitions/_types.ts"],"names":[],"mappings":""}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { DefinitionOptions } from "./_types";
|
| 2 |
+
import type { SchemaObject, KeywordCxt, Name } from "ajv";
|
| 3 |
+
export declare function metaSchemaRef({ defaultMeta }?: DefinitionOptions): SchemaObject;
|
| 4 |
+
export declare function usePattern({ gen, it: { opts } }: KeywordCxt, pattern: string, flags?: string): Name;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.usePattern = exports.metaSchemaRef = void 0;
|
| 4 |
+
const codegen_1 = require("ajv/dist/compile/codegen");
|
| 5 |
+
const META_SCHEMA_ID = "http://json-schema.org/schema";
|
| 6 |
+
function metaSchemaRef({ defaultMeta } = {}) {
|
| 7 |
+
return defaultMeta === false ? {} : { $ref: defaultMeta || META_SCHEMA_ID };
|
| 8 |
+
}
|
| 9 |
+
exports.metaSchemaRef = metaSchemaRef;
|
| 10 |
+
function usePattern({ gen, it: { opts } }, pattern, flags = opts.unicodeRegExp ? "u" : "") {
|
| 11 |
+
const rx = new RegExp(pattern, flags);
|
| 12 |
+
return gen.scopeValue("pattern", {
|
| 13 |
+
key: rx.toString(),
|
| 14 |
+
ref: rx,
|
| 15 |
+
code: (0, codegen_1._) `new RegExp(${pattern}, ${flags})`,
|
| 16 |
+
});
|
| 17 |
+
}
|
| 18 |
+
exports.usePattern = usePattern;
|
| 19 |
+
//# sourceMappingURL=_util.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/_util.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"_util.js","sourceRoot":"","sources":["../../src/definitions/_util.ts"],"names":[],"mappings":";;;AAEA,sDAA0C;AAE1C,MAAM,cAAc,GAAG,+BAA+B,CAAA;AAEtD,SAAgB,aAAa,CAAC,EAAC,WAAW,KAAuB,EAAE;IACjE,OAAO,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,WAAW,IAAI,cAAc,EAAC,CAAA;AAC3E,CAAC;AAFD,sCAEC;AAED,SAAgB,UAAU,CACxB,EAAC,GAAG,EAAE,EAAE,EAAE,EAAC,IAAI,EAAC,EAAa,EAC7B,OAAe,EACf,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;IAErC,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrC,OAAO,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE;QAC/B,GAAG,EAAE,EAAE,CAAC,QAAQ,EAAE;QAClB,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,IAAA,WAAC,EAAA,cAAc,OAAO,KAAK,KAAK,GAAG;KAC1C,CAAC,CAAA;AACJ,CAAC;AAXD,gCAWC"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
export default function getDef(): MacroKeywordDefinition;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
function getDef() {
|
| 4 |
+
return {
|
| 5 |
+
keyword: "allRequired",
|
| 6 |
+
type: "object",
|
| 7 |
+
schemaType: "boolean",
|
| 8 |
+
macro(schema, parentSchema) {
|
| 9 |
+
if (!schema)
|
| 10 |
+
return true;
|
| 11 |
+
const required = Object.keys(parentSchema.properties);
|
| 12 |
+
if (required.length === 0)
|
| 13 |
+
return true;
|
| 14 |
+
return { required };
|
| 15 |
+
},
|
| 16 |
+
dependencies: ["properties"],
|
| 17 |
+
};
|
| 18 |
+
}
|
| 19 |
+
exports.default = getDef;
|
| 20 |
+
module.exports = getDef;
|
| 21 |
+
//# sourceMappingURL=allRequired.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/allRequired.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"allRequired.js","sourceRoot":"","sources":["../../src/definitions/allRequired.ts"],"names":[],"mappings":";;AAEA,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,SAAS;QACrB,KAAK,CAAC,MAAe,EAAE,YAAY;YACjC,IAAI,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAA;YACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YACrD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAA;YACtC,OAAO,EAAC,QAAQ,EAAC,CAAA;QACnB,CAAC;QACD,YAAY,EAAE,CAAC,YAAY,CAAC;KAC7B,CAAA;AACH,CAAC;AAbD,yBAaC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { GetDefinition } from "./_types";
|
| 3 |
+
declare const getDef: GetDefinition<MacroKeywordDefinition>;
|
| 4 |
+
export default getDef;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
| 3 |
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
| 4 |
+
};
|
| 5 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 6 |
+
const _required_1 = __importDefault(require("./_required"));
|
| 7 |
+
const getDef = (0, _required_1.default)("anyRequired");
|
| 8 |
+
exports.default = getDef;
|
| 9 |
+
module.exports = getDef;
|
| 10 |
+
//# sourceMappingURL=anyRequired.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/anyRequired.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"anyRequired.js","sourceRoot":"","sources":["../../src/definitions/anyRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { DefinitionOptions } from "./_types";
|
| 3 |
+
export default function getDef(opts?: DefinitionOptions): MacroKeywordDefinition;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
const _util_1 = require("./_util");
|
| 4 |
+
function getDef(opts) {
|
| 5 |
+
return {
|
| 6 |
+
keyword: "deepProperties",
|
| 7 |
+
type: "object",
|
| 8 |
+
schemaType: "object",
|
| 9 |
+
macro: function (schema) {
|
| 10 |
+
const allOf = [];
|
| 11 |
+
for (const pointer in schema)
|
| 12 |
+
allOf.push(getSchema(pointer, schema[pointer]));
|
| 13 |
+
return { allOf };
|
| 14 |
+
},
|
| 15 |
+
metaSchema: {
|
| 16 |
+
type: "object",
|
| 17 |
+
propertyNames: { type: "string", format: "json-pointer" },
|
| 18 |
+
additionalProperties: (0, _util_1.metaSchemaRef)(opts),
|
| 19 |
+
},
|
| 20 |
+
};
|
| 21 |
+
}
|
| 22 |
+
exports.default = getDef;
|
| 23 |
+
function getSchema(jsonPointer, schema) {
|
| 24 |
+
const segments = jsonPointer.split("/");
|
| 25 |
+
const rootSchema = {};
|
| 26 |
+
let pointerSchema = rootSchema;
|
| 27 |
+
for (let i = 1; i < segments.length; i++) {
|
| 28 |
+
let segment = segments[i];
|
| 29 |
+
const isLast = i === segments.length - 1;
|
| 30 |
+
segment = unescapeJsonPointer(segment);
|
| 31 |
+
const properties = (pointerSchema.properties = {});
|
| 32 |
+
let items;
|
| 33 |
+
if (/[0-9]+/.test(segment)) {
|
| 34 |
+
let count = +segment;
|
| 35 |
+
items = pointerSchema.items = [];
|
| 36 |
+
pointerSchema.type = ["object", "array"];
|
| 37 |
+
while (count--)
|
| 38 |
+
items.push({});
|
| 39 |
+
}
|
| 40 |
+
else {
|
| 41 |
+
pointerSchema.type = "object";
|
| 42 |
+
}
|
| 43 |
+
pointerSchema = isLast ? schema : {};
|
| 44 |
+
properties[segment] = pointerSchema;
|
| 45 |
+
if (items)
|
| 46 |
+
items.push(pointerSchema);
|
| 47 |
+
}
|
| 48 |
+
return rootSchema;
|
| 49 |
+
}
|
| 50 |
+
function unescapeJsonPointer(str) {
|
| 51 |
+
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
| 52 |
+
}
|
| 53 |
+
module.exports = getDef;
|
| 54 |
+
//# sourceMappingURL=deepProperties.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepProperties.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"deepProperties.js","sourceRoot":"","sources":["../../src/definitions/deepProperties.ts"],"names":[],"mappings":";;AAEA,mCAAqC;AAErC,SAAwB,MAAM,CAAC,IAAwB;IACrD,OAAO;QACL,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAU,MAAoC;YACnD,MAAM,KAAK,GAAG,EAAE,CAAA;YAChB,KAAK,MAAM,OAAO,IAAI,MAAM;gBAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;YAC7E,OAAO,EAAC,KAAK,EAAC,CAAA;QAChB,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC;YACvD,oBAAoB,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC;SAC1C;KACF,CAAA;AACH,CAAC;AAhBD,yBAgBC;AAED,SAAS,SAAS,CAAC,WAAmB,EAAE,MAAoB;IAC1D,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvC,MAAM,UAAU,GAAiB,EAAE,CAAA;IACnC,IAAI,aAAa,GAAiB,UAAU,CAAA;IAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,OAAO,GAAW,QAAQ,CAAC,CAAC,CAAC,CAAA;QACjC,MAAM,MAAM,GAAG,CAAC,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAA;QACxC,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;QACtC,MAAM,UAAU,GAA2B,CAAC,aAAa,CAAC,UAAU,GAAG,EAAE,CAAC,CAAA;QAC1E,IAAI,KAAiC,CAAA;QACrC,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;YAC1B,IAAI,KAAK,GAAG,CAAC,OAAO,CAAA;YACpB,KAAK,GAAG,aAAa,CAAC,KAAK,GAAG,EAAE,CAAA;YAChC,aAAa,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;YACxC,OAAO,KAAK,EAAE;gBAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;SAC/B;aAAM;YACL,aAAa,CAAC,IAAI,GAAG,QAAQ,CAAA;SAC9B;QACD,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;QACpC,UAAU,CAAC,OAAO,CAAC,GAAG,aAAa,CAAA;QACnC,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;KACrC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAW;IACtC,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { CodeKeywordDefinition } from "ajv";
|
| 2 |
+
export default function getDef(): CodeKeywordDefinition;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
const codegen_1 = require("ajv/dist/compile/codegen");
|
| 4 |
+
function getDef() {
|
| 5 |
+
return {
|
| 6 |
+
keyword: "deepRequired",
|
| 7 |
+
type: "object",
|
| 8 |
+
schemaType: "array",
|
| 9 |
+
code(ctx) {
|
| 10 |
+
const { schema, data } = ctx;
|
| 11 |
+
const props = schema.map((jp) => (0, codegen_1._) `(${getData(jp)}) === undefined`);
|
| 12 |
+
ctx.fail((0, codegen_1.or)(...props));
|
| 13 |
+
function getData(jsonPointer) {
|
| 14 |
+
if (jsonPointer === "")
|
| 15 |
+
throw new Error("empty JSON pointer not allowed");
|
| 16 |
+
const segments = jsonPointer.split("/");
|
| 17 |
+
let x = data;
|
| 18 |
+
const xs = segments.map((s, i) => i ? (x = (0, codegen_1._) `${x}${(0, codegen_1.getProperty)(unescapeJPSegment(s))}`) : x);
|
| 19 |
+
return (0, codegen_1.and)(...xs);
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
metaSchema: {
|
| 23 |
+
type: "array",
|
| 24 |
+
items: { type: "string", format: "json-pointer" },
|
| 25 |
+
},
|
| 26 |
+
};
|
| 27 |
+
}
|
| 28 |
+
exports.default = getDef;
|
| 29 |
+
function unescapeJPSegment(s) {
|
| 30 |
+
return s.replace(/~1/g, "/").replace(/~0/g, "~");
|
| 31 |
+
}
|
| 32 |
+
module.exports = getDef;
|
| 33 |
+
//# sourceMappingURL=deepRequired.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/deepRequired.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"deepRequired.js","sourceRoot":"","sources":["../../src/definitions/deepRequired.ts"],"names":[],"mappings":";;AACA,sDAAsE;AAEtE,SAAwB,MAAM;IAC5B,OAAO;QACL,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;QACnB,IAAI,CAAC,GAAe;YAClB,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,CAAA;YAC1B,MAAM,KAAK,GAAI,MAAmB,CAAC,GAAG,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,IAAI,OAAO,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAA;YACzF,GAAG,CAAC,IAAI,CAAC,IAAA,YAAE,EAAC,GAAG,KAAK,CAAC,CAAC,CAAA;YAEtB,SAAS,OAAO,CAAC,WAAmB;gBAClC,IAAI,WAAW,KAAK,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;gBACzE,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;gBACvC,IAAI,CAAC,GAAS,IAAI,CAAA;gBAClB,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAC/B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAA,WAAC,EAAA,GAAG,CAAC,GAAG,IAAA,qBAAW,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1D,CAAA;gBACD,OAAO,IAAA,aAAG,EAAC,GAAG,EAAE,CAAC,CAAA;YACnB,CAAC;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC;SAChD;KACF,CAAA;AACH,CAAC;AAzBD,yBAyBC;AAED,SAAS,iBAAiB,CAAC,CAAS;IAClC,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { FuncKeywordDefinition } from "ajv";
|
| 2 |
+
export declare type DynamicDefaultFunc = (args?: Record<string, any>) => () => any;
|
| 3 |
+
declare const DEFAULTS: Record<string, DynamicDefaultFunc | undefined>;
|
| 4 |
+
declare const getDef: (() => FuncKeywordDefinition) & {
|
| 5 |
+
DEFAULTS: typeof DEFAULTS;
|
| 6 |
+
};
|
| 7 |
+
export default getDef;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
const sequences = {};
|
| 4 |
+
const DEFAULTS = {
|
| 5 |
+
timestamp: () => () => Date.now(),
|
| 6 |
+
datetime: () => () => new Date().toISOString(),
|
| 7 |
+
date: () => () => new Date().toISOString().slice(0, 10),
|
| 8 |
+
time: () => () => new Date().toISOString().slice(11),
|
| 9 |
+
random: () => () => Math.random(),
|
| 10 |
+
randomint: (args) => {
|
| 11 |
+
var _a;
|
| 12 |
+
const max = (_a = args === null || args === void 0 ? void 0 : args.max) !== null && _a !== void 0 ? _a : 2;
|
| 13 |
+
return () => Math.floor(Math.random() * max);
|
| 14 |
+
},
|
| 15 |
+
seq: (args) => {
|
| 16 |
+
var _a;
|
| 17 |
+
const name = (_a = args === null || args === void 0 ? void 0 : args.name) !== null && _a !== void 0 ? _a : "";
|
| 18 |
+
sequences[name] || (sequences[name] = 0);
|
| 19 |
+
return () => sequences[name]++;
|
| 20 |
+
},
|
| 21 |
+
};
|
| 22 |
+
const getDef = Object.assign(_getDef, { DEFAULTS });
|
| 23 |
+
function _getDef() {
|
| 24 |
+
return {
|
| 25 |
+
keyword: "dynamicDefaults",
|
| 26 |
+
type: "object",
|
| 27 |
+
schemaType: ["string", "object"],
|
| 28 |
+
modifying: true,
|
| 29 |
+
valid: true,
|
| 30 |
+
compile(schema, _parentSchema, it) {
|
| 31 |
+
if (!it.opts.useDefaults || it.compositeRule)
|
| 32 |
+
return () => true;
|
| 33 |
+
const fs = {};
|
| 34 |
+
for (const key in schema)
|
| 35 |
+
fs[key] = getDefault(schema[key]);
|
| 36 |
+
const empty = it.opts.useDefaults === "empty";
|
| 37 |
+
return (data) => {
|
| 38 |
+
for (const prop in schema) {
|
| 39 |
+
if (data[prop] === undefined || (empty && (data[prop] === null || data[prop] === ""))) {
|
| 40 |
+
data[prop] = fs[prop]();
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
return true;
|
| 44 |
+
};
|
| 45 |
+
},
|
| 46 |
+
metaSchema: {
|
| 47 |
+
type: "object",
|
| 48 |
+
additionalProperties: {
|
| 49 |
+
anyOf: [
|
| 50 |
+
{ type: "string" },
|
| 51 |
+
{
|
| 52 |
+
type: "object",
|
| 53 |
+
additionalProperties: false,
|
| 54 |
+
required: ["func", "args"],
|
| 55 |
+
properties: {
|
| 56 |
+
func: { type: "string" },
|
| 57 |
+
args: { type: "object" },
|
| 58 |
+
},
|
| 59 |
+
},
|
| 60 |
+
],
|
| 61 |
+
},
|
| 62 |
+
},
|
| 63 |
+
};
|
| 64 |
+
}
|
| 65 |
+
function getDefault(d) {
|
| 66 |
+
return typeof d == "object" ? getObjDefault(d) : getStrDefault(d);
|
| 67 |
+
}
|
| 68 |
+
function getObjDefault({ func, args }) {
|
| 69 |
+
const def = DEFAULTS[func];
|
| 70 |
+
assertDefined(func, def);
|
| 71 |
+
return def(args);
|
| 72 |
+
}
|
| 73 |
+
function getStrDefault(d = "") {
|
| 74 |
+
const def = DEFAULTS[d];
|
| 75 |
+
assertDefined(d, def);
|
| 76 |
+
return def();
|
| 77 |
+
}
|
| 78 |
+
function assertDefined(name, def) {
|
| 79 |
+
if (!def)
|
| 80 |
+
throw new Error(`invalid "dynamicDefaults" keyword property value: ${name}`);
|
| 81 |
+
}
|
| 82 |
+
exports.default = getDef;
|
| 83 |
+
module.exports = getDef;
|
| 84 |
+
//# sourceMappingURL=dynamicDefaults.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/dynamicDefaults.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"dynamicDefaults.js","sourceRoot":"","sources":["../../src/definitions/dynamicDefaults.ts"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAuC,EAAE,CAAA;AAIxD,MAAM,QAAQ,GAAmD;IAC/D,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;IACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IAC9C,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;IACvD,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;IACjC,SAAS,EAAE,CAAC,IAAqB,EAAE,EAAE;;QACnC,MAAM,GAAG,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,mCAAI,CAAC,CAAA;QAC1B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAA;IAC9C,CAAC;IACD,GAAG,EAAE,CAAC,IAAsB,EAAE,EAAE;;QAC9B,MAAM,IAAI,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,mCAAI,EAAE,CAAA;QAC7B,SAAS,CAAC,IAAI,MAAd,SAAS,CAAC,IAAI,IAAM,CAAC,EAAA;QACrB,OAAO,GAAG,EAAE,CAAE,SAAS,CAAC,IAAI,CAAY,EAAE,CAAA;IAC5C,CAAC;CACF,CAAA;AASD,MAAM,MAAM,GAER,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAC,CAAC,CAAA;AAEtC,SAAS,OAAO;IACd,OAAO;QACL,OAAO,EAAE,iBAAiB;QAC1B,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAChC,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,OAAO,CAAC,MAAqB,EAAE,aAAa,EAAE,EAAa;YACzD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,aAAa;gBAAE,OAAO,GAAG,EAAE,CAAC,IAAI,CAAA;YAC/D,MAAM,EAAE,GAA8B,EAAE,CAAA;YACxC,KAAK,MAAM,GAAG,IAAI,MAAM;gBAAE,EAAE,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;YAC3D,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,KAAK,OAAO,CAAA;YAE7C,OAAO,CAAC,IAAyB,EAAE,EAAE;gBACnC,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE;oBACzB,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE;wBACrF,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAA;qBACxB;iBACF;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBACpB,KAAK,EAAE;oBACL,EAAC,IAAI,EAAE,QAAQ,EAAC;oBAChB;wBACE,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,KAAK;wBAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;wBAC1B,UAAU,EAAE;4BACV,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;4BACtB,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;yBACvB;qBACF;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAA6C;IAC/D,OAAO,OAAO,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;AACnE,CAAC;AAED,SAAS,aAAa,CAAC,EAAC,IAAI,EAAE,IAAI,EAAwB;IACxD,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC1B,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IACxB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAA;AAClB,CAAC;AAED,SAAS,aAAa,CAAC,CAAC,GAAG,EAAE;IAC3B,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;IACvB,aAAa,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACrB,OAAO,GAAG,EAAE,CAAA;AACd,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,GAAwB;IAC3D,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,IAAI,EAAE,CAAC,CAAA;AACxF,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { GetDefinition } from "./_types";
|
| 3 |
+
declare const getDef: GetDefinition<MacroKeywordDefinition>;
|
| 4 |
+
export default getDef;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
| 3 |
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
| 4 |
+
};
|
| 5 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 6 |
+
const _range_1 = __importDefault(require("./_range"));
|
| 7 |
+
const getDef = (0, _range_1.default)("exclusiveRange");
|
| 8 |
+
exports.default = getDef;
|
| 9 |
+
module.exports = getDef;
|
| 10 |
+
//# sourceMappingURL=exclusiveRange.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/exclusiveRange.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"exclusiveRange.js","sourceRoot":"","sources":["../../src/definitions/exclusiveRange.ts"],"names":[],"mappings":";;;;;AAEA,sDAAkC;AAElC,MAAM,MAAM,GAA0C,IAAA,gBAAW,EAAC,gBAAgB,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { Vocabulary, ErrorNoParams } from "ajv";
|
| 2 |
+
import type { DefinitionOptions } from "./_types";
|
| 3 |
+
import { PatternRequiredError } from "./patternRequired";
|
| 4 |
+
import { SelectError } from "./select";
|
| 5 |
+
export default function ajvKeywords(opts?: DefinitionOptions): Vocabulary;
|
| 6 |
+
export declare type AjvKeywordsError = PatternRequiredError | SelectError | ErrorNoParams<"range" | "exclusiveRange" | "anyRequired" | "oneRequired" | "allRequired" | "deepProperties" | "deepRequired" | "dynamicDefaults" | "instanceof" | "prohibited" | "regexp" | "transform" | "uniqueItemProperties">;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
| 3 |
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
| 4 |
+
};
|
| 5 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 6 |
+
const typeof_1 = __importDefault(require("./typeof"));
|
| 7 |
+
const instanceof_1 = __importDefault(require("./instanceof"));
|
| 8 |
+
const range_1 = __importDefault(require("./range"));
|
| 9 |
+
const exclusiveRange_1 = __importDefault(require("./exclusiveRange"));
|
| 10 |
+
const regexp_1 = __importDefault(require("./regexp"));
|
| 11 |
+
const transform_1 = __importDefault(require("./transform"));
|
| 12 |
+
const uniqueItemProperties_1 = __importDefault(require("./uniqueItemProperties"));
|
| 13 |
+
const allRequired_1 = __importDefault(require("./allRequired"));
|
| 14 |
+
const anyRequired_1 = __importDefault(require("./anyRequired"));
|
| 15 |
+
const oneRequired_1 = __importDefault(require("./oneRequired"));
|
| 16 |
+
const patternRequired_1 = __importDefault(require("./patternRequired"));
|
| 17 |
+
const prohibited_1 = __importDefault(require("./prohibited"));
|
| 18 |
+
const deepProperties_1 = __importDefault(require("./deepProperties"));
|
| 19 |
+
const deepRequired_1 = __importDefault(require("./deepRequired"));
|
| 20 |
+
const dynamicDefaults_1 = __importDefault(require("./dynamicDefaults"));
|
| 21 |
+
const select_1 = __importDefault(require("./select"));
|
| 22 |
+
const definitions = [
|
| 23 |
+
typeof_1.default,
|
| 24 |
+
instanceof_1.default,
|
| 25 |
+
range_1.default,
|
| 26 |
+
exclusiveRange_1.default,
|
| 27 |
+
regexp_1.default,
|
| 28 |
+
transform_1.default,
|
| 29 |
+
uniqueItemProperties_1.default,
|
| 30 |
+
allRequired_1.default,
|
| 31 |
+
anyRequired_1.default,
|
| 32 |
+
oneRequired_1.default,
|
| 33 |
+
patternRequired_1.default,
|
| 34 |
+
prohibited_1.default,
|
| 35 |
+
deepProperties_1.default,
|
| 36 |
+
deepRequired_1.default,
|
| 37 |
+
dynamicDefaults_1.default,
|
| 38 |
+
];
|
| 39 |
+
function ajvKeywords(opts) {
|
| 40 |
+
return definitions.map((d) => d(opts)).concat((0, select_1.default)(opts));
|
| 41 |
+
}
|
| 42 |
+
exports.default = ajvKeywords;
|
| 43 |
+
module.exports = ajvKeywords;
|
| 44 |
+
//# sourceMappingURL=index.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;AAEA,sDAAgC;AAChC,8DAAwC;AACxC,oDAA2B;AAC3B,sEAA6C;AAC7C,sDAA6B;AAC7B,4DAAmC;AACnC,kFAAyD;AACzD,gEAAuC;AACvC,gEAAuC;AACvC,gEAAuC;AACvC,wEAAuE;AACvE,8DAAqC;AACrC,sEAA6C;AAC7C,kEAAyC;AACzC,wEAA+C;AAC/C,sDAA+C;AAE/C,MAAM,WAAW,GAAuC;IACtD,gBAAS;IACT,oBAAa;IACb,eAAK;IACL,wBAAc;IACd,gBAAM;IACN,mBAAS;IACT,8BAAoB;IACpB,qBAAW;IACX,qBAAW;IACX,qBAAW;IACX,yBAAe;IACf,oBAAU;IACV,wBAAc;IACd,sBAAY;IACZ,yBAAe;CAChB,CAAA;AAED,SAAwB,WAAW,CAAC,IAAwB;IAC1D,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,8BAEC;AAqBD,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { FuncKeywordDefinition } from "ajv";
|
| 2 |
+
declare type Constructor = new (...args: any[]) => any;
|
| 3 |
+
declare const CONSTRUCTORS: Record<string, Constructor | undefined>;
|
| 4 |
+
declare const getDef: (() => FuncKeywordDefinition) & {
|
| 5 |
+
CONSTRUCTORS: typeof CONSTRUCTORS;
|
| 6 |
+
};
|
| 7 |
+
export default getDef;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
const CONSTRUCTORS = {
|
| 4 |
+
Object,
|
| 5 |
+
Array,
|
| 6 |
+
Function,
|
| 7 |
+
Number,
|
| 8 |
+
String,
|
| 9 |
+
Date,
|
| 10 |
+
RegExp,
|
| 11 |
+
};
|
| 12 |
+
/* istanbul ignore else */
|
| 13 |
+
if (typeof Buffer != "undefined")
|
| 14 |
+
CONSTRUCTORS.Buffer = Buffer;
|
| 15 |
+
/* istanbul ignore else */
|
| 16 |
+
if (typeof Promise != "undefined")
|
| 17 |
+
CONSTRUCTORS.Promise = Promise;
|
| 18 |
+
const getDef = Object.assign(_getDef, { CONSTRUCTORS });
|
| 19 |
+
function _getDef() {
|
| 20 |
+
return {
|
| 21 |
+
keyword: "instanceof",
|
| 22 |
+
schemaType: ["string", "array"],
|
| 23 |
+
compile(schema) {
|
| 24 |
+
if (typeof schema == "string") {
|
| 25 |
+
const C = getConstructor(schema);
|
| 26 |
+
return (data) => data instanceof C;
|
| 27 |
+
}
|
| 28 |
+
if (Array.isArray(schema)) {
|
| 29 |
+
const constructors = schema.map(getConstructor);
|
| 30 |
+
return (data) => {
|
| 31 |
+
for (const C of constructors) {
|
| 32 |
+
if (data instanceof C)
|
| 33 |
+
return true;
|
| 34 |
+
}
|
| 35 |
+
return false;
|
| 36 |
+
};
|
| 37 |
+
}
|
| 38 |
+
/* istanbul ignore next */
|
| 39 |
+
throw new Error("ajv implementation error");
|
| 40 |
+
},
|
| 41 |
+
metaSchema: {
|
| 42 |
+
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
| 43 |
+
},
|
| 44 |
+
};
|
| 45 |
+
}
|
| 46 |
+
function getConstructor(c) {
|
| 47 |
+
const C = CONSTRUCTORS[c];
|
| 48 |
+
if (C)
|
| 49 |
+
return C;
|
| 50 |
+
throw new Error(`invalid "instanceof" keyword value ${c}`);
|
| 51 |
+
}
|
| 52 |
+
exports.default = getDef;
|
| 53 |
+
module.exports = getDef;
|
| 54 |
+
//# sourceMappingURL=instanceof.js.map
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/instanceof.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"instanceof.js","sourceRoot":"","sources":["../../src/definitions/instanceof.ts"],"names":[],"mappings":";;AAIA,MAAM,YAAY,GAA4C;IAC5D,MAAM;IACN,KAAK;IACL,QAAQ;IACR,MAAM;IACN,MAAM;IACN,IAAI;IACJ,MAAM;CACP,CAAA;AAED,0BAA0B;AAC1B,IAAI,OAAO,MAAM,IAAI,WAAW;IAAE,YAAY,CAAC,MAAM,GAAG,MAAM,CAAA;AAE9D,0BAA0B;AAC1B,IAAI,OAAO,OAAO,IAAI,WAAW;IAAE,YAAY,CAAC,OAAO,GAAG,OAAO,CAAA;AAEjE,MAAM,MAAM,GAER,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,YAAY,EAAC,CAAC,CAAA;AAE1C,SAAS,OAAO;IACd,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/B,OAAO,CAAC,MAAyB;YAC/B,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;gBAC7B,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;gBAChC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,CAAA;aACnC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACzB,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;gBAC/C,OAAO,CAAC,IAAI,EAAE,EAAE;oBACd,KAAK,MAAM,CAAC,IAAI,YAAY,EAAE;wBAC5B,IAAI,IAAI,YAAY,CAAC;4BAAE,OAAO,IAAI,CAAA;qBACnC;oBACD,OAAO,KAAK,CAAA;gBACd,CAAC,CAAA;aACF;YAED,0BAA0B;YAC1B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC7C,CAAC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAC,CAAC;SACpE;KACF,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,CAAS;IAC/B,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;IACzB,IAAI,CAAC;QAAE,OAAO,CAAC,CAAA;IACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,EAAE,CAAC,CAAA;AAC5D,CAAC;AAED,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/oneRequired.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { MacroKeywordDefinition } from "ajv";
|
| 2 |
+
import type { GetDefinition } from "./_types";
|
| 3 |
+
declare const getDef: GetDefinition<MacroKeywordDefinition>;
|
| 4 |
+
export default getDef;
|
novas/novacore-zephyr/groq-code-cli/node_modules/schema-utils/node_modules/ajv-keywords/dist/definitions/oneRequired.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
| 3 |
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
| 4 |
+
};
|
| 5 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 6 |
+
const _required_1 = __importDefault(require("./_required"));
|
| 7 |
+
const getDef = (0, _required_1.default)("oneRequired");
|
| 8 |
+
exports.default = getDef;
|
| 9 |
+
module.exports = getDef;
|
| 10 |
+
//# sourceMappingURL=oneRequired.js.map
|