export type JsonSchemaObject = Record; export declare const WEAVE_CONFIG_JSON_SCHEMA_RELATIVE_PATH = "schema/weave-config.schema.json"; export declare const WEAVE_CONFIG_JSON_SCHEMA_ID = "https://raw.githubusercontent.com/pgermishuys/opencode-weave/main/schema/weave-config.schema.json"; export declare const WEAVE_CONFIG_JSON_SCHEMA_DRAFT = "https://json-schema.org/draft/2020-12/schema"; export declare const WEAVE_CONFIG_JSON_SCHEMA_TITLE = "Weave Config"; export declare const WEAVE_CONFIG_JSON_SCHEMA_DESCRIPTION = "Configuration for the @opencode_weave/weave OpenCode plugin. Runtime loading accepts JSONC, while the generated schema artifact is plain JSON Schema."; export declare const WEAVE_CONFIG_JSON_SCHEMA_VERSION_KEY = "x-weave-version"; export declare const WEAVE_CONFIG_JSON_SCHEMA_ROOT_NAME = "WeaveConfig"; export declare const WEAVE_CONFIG_JSON_SCHEMA_DEFINITION_PATH = "$defs"; export declare const WEAVE_CONFIG_JSON_SCHEMA_REF_STRATEGY = "root"; export declare const WEAVE_CONFIG_JSON_SCHEMA_ZOD_TO_JSON_SCHEMA_TARGET = "jsonSchema2019-09"; export declare const WEAVE_CONFIG_JSON_SCHEMA_FALLBACK_TARGET = "draft-2020-12"; export declare const SAFE_RELATIVE_PATH_PATTERN = "^(?![\\\\/])(?![A-Za-z]:[\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"; export declare const SAFE_RELATIVE_PATH_DESCRIPTION = "Relative directory path only. Absolute paths, leading backslashes/UNC paths, and '..' traversal segments are rejected at runtime."; /** * Root-level metadata contract shared by the config schema generator, tests, * and docs. The artifact stays at one stable repository path; version * traceability is embedded as metadata instead of versioning filenames. */ export declare function getWeaveConfigJsonSchemaMetadata(version: string): { $schema: string; $id: string; title: string; description: string; "x-weave-version": string; }; export declare function getWeaveConfigJsonSchemaArtifactPath(rootDir: string): string; type GenerateWeaveConfigJsonSchemaOptions = { version: string; }; /** * Applies the repository's agreed root metadata contract to a generated * Weave config schema object. Pure so scripts and tests can share it. */ export declare function generateWeaveConfigJsonSchema({ version }: GenerateWeaveConfigJsonSchemaOptions): JsonSchemaObject; export declare function stringifyWeaveConfigJsonSchema(schema: JsonSchemaObject): string; export {};