vize 0.626.0 → 0.628.0
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/{config-DnoTxb9W.d.mts → config-DJT3lOOg.d.mts} +10 -3
- package/dist/config-DJT3lOOg.d.mts.map +1 -0
- package/dist/{config-DxTx8DBq.mjs → config-DyzIXrfZ.mjs} +59 -47
- package/dist/config-DyzIXrfZ.mjs.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/pkl/LinterConfig.pkl +13 -2
- package/pkl/jsonschema/LintRuleOptionsSchemaDefinitions.pkl +48 -2
- package/pkl/vize.pkl +12 -2
- package/schemas/vize.config.schema.json +56 -4
- package/src/types/generated.ts +13 -2
- package/dist/config-DnoTxb9W.d.mts.map +0 -1
- package/dist/config-DxTx8DBq.mjs.map +0 -1
|
@@ -293,7 +293,11 @@ interface LintRuleOptions {
|
|
|
293
293
|
avoidEscape?: boolean;
|
|
294
294
|
};
|
|
295
295
|
"vue/mustache-interpolation-spacing"?: "always" | "never";
|
|
296
|
-
"vue/v-on-event-hyphenation"?: "always" | "never"
|
|
296
|
+
"vue/v-on-event-hyphenation"?: ("always" | "never") | {
|
|
297
|
+
style?: "always" | "never";
|
|
298
|
+
ignore?: string[];
|
|
299
|
+
autofix?: boolean;
|
|
300
|
+
};
|
|
297
301
|
"vue/v-bind-style"?: "shorthand" | "longform";
|
|
298
302
|
"vue/v-on-style"?: "shorthand" | "longform";
|
|
299
303
|
"vue/v-slot-style"?: ("shorthand" | "longform") | {
|
|
@@ -301,7 +305,10 @@ interface LintRuleOptions {
|
|
|
301
305
|
default?: "shorthand" | "longform" | "v-slot";
|
|
302
306
|
named?: "shorthand" | "longform";
|
|
303
307
|
};
|
|
304
|
-
"vue/attribute-hyphenation"?: "always" | "never"
|
|
308
|
+
"vue/attribute-hyphenation"?: ("always" | "never") | {
|
|
309
|
+
style?: "always" | "never";
|
|
310
|
+
ignore?: string[];
|
|
311
|
+
};
|
|
305
312
|
"vue/valid-v-on"?: {
|
|
306
313
|
modifiers?: string[];
|
|
307
314
|
};
|
|
@@ -985,4 +992,4 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
|
|
|
985
992
|
declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
|
|
986
993
|
//#endregion
|
|
987
994
|
export { LibConfig as A, VitePluginConfig as B, LintRulesConfig as C, GlobalTypeDeclaration as D, FormatterConfig as E, MuseaConfig as F, VizeConfigEntry as H, MuseaVrtConfig as I, RuleCategory as L, LinterConfig as M, MuseaA11yConfig as N, GlobalTypesConfig as O, MuseaAutogenConfig as P, RuleSeverity as R, LintRuleName as S, CompilerConfig as T, VueVersion as U, VizeConfig as V, UserConfigExport as _, loadConfig as a, VueOptions as b, resolveViteConfigExport as c, ConfigEnv as d, LoadConfigOptions as f, UserConfigEntry as g, UserConfig as h, defineConfig as i, LintPreset as j, LanguageServerConfig as k, VITE_CONFIG_FILE_NAMES as l, ResolvedVizeConfig as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, MaybePromise as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LspConfig as u, UserConfigInput as v, CompilerCompatibilityConfig as w, VueOptionsEntry as x, VueConfig as y, TypeCheckerConfig as z };
|
|
988
|
-
//# sourceMappingURL=config-
|
|
995
|
+
//# sourceMappingURL=config-DJT3lOOg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DJT3lOOg.d.mts","names":["mode","command","isSsrBuild","isPreview","filePath","typeChecker","jsxTypecheck","T","vue","source","base","own","ConfigEnv","env","configDir","Promise","exported"],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../../../crates/vize_carton/src/config/lo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MAAA,SAAe,qBAAA"}
|
|
@@ -457,8 +457,61 @@ async function importConfigModuleWithDependencies(configPath, registerModuleHook
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
460
|
+
//#region ../../crates/vize_carton/src/config/loader/vite-runtime-validation.js
|
|
461
|
+
function createVueOptionValidator(definitions, object, attributePolicy) {
|
|
462
|
+
function validateVueOption(value, schema, label) {
|
|
463
|
+
if (schema === attributePolicy && typeof value === "string") return validateVueOption(value, schema.oneOf[0], label);
|
|
464
|
+
const refuse = (reason) => {
|
|
465
|
+
throw new TypeError(`${label}: ${reason}`);
|
|
466
|
+
};
|
|
467
|
+
if (schema.$ref) return validateVueOption(value, definitions[schema.$ref.split("/").at(-1)], label);
|
|
468
|
+
if (schema.oneOf) {
|
|
469
|
+
if (schema.oneOf.filter((candidate) => {
|
|
470
|
+
try {
|
|
471
|
+
validateVueOption(value, candidate, label);
|
|
472
|
+
return true;
|
|
473
|
+
} catch (error) {
|
|
474
|
+
if (!(error instanceof TypeError)) throw error;
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
}).length !== 1) refuse("must match one documented native option type");
|
|
478
|
+
return;
|
|
479
|
+
}
|
|
480
|
+
if (schema.enum && !schema.enum.includes(value)) refuse("unsupported native option value");
|
|
481
|
+
const valid = {
|
|
482
|
+
object: object(value),
|
|
483
|
+
array: Array.isArray(value),
|
|
484
|
+
string: typeof value === "string",
|
|
485
|
+
boolean: typeof value === "boolean",
|
|
486
|
+
integer: Number.isInteger(value),
|
|
487
|
+
number: typeof value === "number" && Number.isFinite(value),
|
|
488
|
+
null: value === null
|
|
489
|
+
};
|
|
490
|
+
if (schema.type && !valid[schema.type]) refuse(`must be ${schema.type}`);
|
|
491
|
+
if (schema.minimum !== void 0 && value < schema.minimum) refuse(`must be >= ${schema.minimum}`);
|
|
492
|
+
if (schema.maximum !== void 0 && value > schema.maximum) refuse(`must be <= ${schema.maximum}`);
|
|
493
|
+
if (typeof value === "string" && schema.pattern && !new RegExp(schema.pattern).test(value)) refuse(`must match ${schema.pattern}`);
|
|
494
|
+
if (Array.isArray(value) && schema.items) for (let index = 0; index < value.length; index++) validateVueOption(value[index], schema.items, `${label}[${index}]`);
|
|
495
|
+
if (Array.isArray(value) && schema.uniqueItems) {
|
|
496
|
+
const keys = value.map((item) => JSON.stringify(item, (_key, entry) => object(entry) ? Object.fromEntries(Object.entries(entry).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)) : entry));
|
|
497
|
+
if (new Set(keys).size !== keys.length) refuse("must contain unique items");
|
|
498
|
+
}
|
|
499
|
+
if (object(value)) {
|
|
500
|
+
for (const required of schema.required ?? []) if (!Object.hasOwn(value, required) || value[required] === void 0) refuse(`missing ${required}`);
|
|
501
|
+
for (const [key, item] of Object.entries(value)) {
|
|
502
|
+
const documented = Object.hasOwn(schema.properties ?? {}, key);
|
|
503
|
+
if (!documented && schema.additionalProperties === false) refuse(`unknown option "${key}"`);
|
|
504
|
+
if (schema.propertyNames?.pattern && !new RegExp(schema.propertyNames.pattern).test(key)) refuse(`invalid native option name ${key}`);
|
|
505
|
+
const rule = documented ? schema.properties[key] : schema.additionalProperties;
|
|
506
|
+
if (item !== void 0 && object(rule)) validateVueOption(item, rule, `${label}.${key}`);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return validateVueOption;
|
|
511
|
+
}
|
|
512
|
+
//#endregion
|
|
460
513
|
//#region ../../crates/vize_carton/src/config/loader/vite-runtime.mjs
|
|
461
|
-
const vueOptionSchema = JSON.parse("{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"experimentals\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"object\",\"additionalProperties\":true},{\"type\":\"null\"}]}},\"dialect\":{\"type\":\"string\",\"enum\":[\"vue\",\"petite-vue\"]},\"vite\":{\"$ref\":\"#/definitions/VitePluginConfig\"},\"musea\":{\"$ref\":\"#/definitions/MuseaConfig\"},\"typeChecker\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"},\"formatter\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"languageServer\":{\"$ref\":\"#/definitions/LanguageServerConfig\"},\"globalTypes\":{\"$ref\":\"#/definitions/GlobalTypesConfig\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"lib\":{\"$ref\":\"#/definitions/LibConfig\"},\"compile\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"typeCheck\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"fmt\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"lint\":{\"type\":\"object\",\"required\":[\"jsPlugins\",\"plugins\",\"rules\",\"settings\"],\"properties\":{\"jsPlugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"plugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"rules\":{\"type\":\"object\",\"additionalProperties\":true},\"settings\":{\"type\":\"object\",\"additionalProperties\":true},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"overrides\":{\"type\":\"array\"}},\"additionalProperties\":true},\"version\":{\"$ref\":\"#/definitions/VueVersion\"},\"entries\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"basePath\":{\"type\":\"string\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"}},\"additionalProperties\":false}}},\"additionalProperties\":false,\"definitions\":{\"CompilerConfig\":{\"type\":\"object\",\"properties\":{\"mode\":{\"type\":\"string\",\"enum\":[\"module\",\"function\"]},\"vapor\":{\"type\":\"boolean\"},\"jsxMode\":{\"type\":\"string\",\"enum\":[\"vdom\",\"vapor\"]},\"jsxCompat\":{\"type\":\"string\",\"enum\":[\"native\",\"babel\"]},\"customRenderer\":{\"type\":\"boolean\"},\"customElements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ssr\":{\"type\":\"boolean\"},\"templateSyntax\":{\"type\":\"string\",\"enum\":[\"standard\",\"strict\",\"quirks\"]},\"whitespace\":{\"type\":\"string\",\"enum\":[\"condense\",\"preserve\",\"vue2-line-breaks\",\"vue2-preserve\"]},\"sourceMap\":{\"type\":\"boolean\"},\"prefixIdentifiers\":{\"type\":\"boolean\"},\"hoistStatic\":{\"type\":\"boolean\"},\"cacheHandlers\":{\"type\":\"boolean\"},\"comments\":{\"type\":\"boolean\"},\"isTs\":{\"type\":\"boolean\"},\"scriptExt\":{\"type\":\"string\",\"enum\":[\"ts\",\"js\"]},\"runtimeModuleName\":{\"type\":\"string\"},\"runtimeGlobalName\":{\"type\":\"string\"},\"compatibility\":{\"$ref\":\"#/definitions/CompilerCompatibilityConfig\"}},\"additionalProperties\":false},\"CompilerCompatibilityConfig\":{\"type\":\"object\",\"properties\":{\"vueVersion\":{\"$ref\":\"#/definitions/VueVersion\"},\"hostCompiler\":{\"type\":\"boolean\"},\"scriptSetupInStandalone\":{\"type\":\"boolean\"},\"optionsApiVapor\":{\"type\":\"boolean\"},\"nuxtVersion\":{\"type\":\"integer\",\"enum\":[2,3,4]},\"webpackVersion\":{\"type\":\"integer\",\"enum\":[4,5]}},\"additionalProperties\":false},\"VueVersion\":{\"type\":\"string\",\"enum\":[\"3\",\"2.7\",\"2\",\"1\",\"0.11\",\"0.10\"]},\"VitePluginConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"exclude\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"scanPatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"MuseaConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"exclude\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"storybookCompat\":{\"type\":\"boolean\"},\"inlineArt\":{\"type\":\"boolean\"},\"vrt\":{\"$ref\":\"#/definitions/MuseaVrtConfig\"},\"a11y\":{\"$ref\":\"#/definitions/MuseaA11yConfig\"},\"autogen\":{\"$ref\":\"#/definitions/MuseaAutogenConfig\"}},\"additionalProperties\":false},\"MuseaVrtConfig\":{\"type\":\"object\",\"properties\":{\"threshold\":{\"type\":\"number\"},\"outDir\":{\"type\":\"string\"},\"viewports\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaViewport\"}}},\"additionalProperties\":false},\"MuseaViewport\":{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"integer\"},\"height\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"width\",\"height\"]},\"MuseaA11yConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"boolean\"}}},\"additionalProperties\":false},\"MuseaAutogenConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"maxVariants\":{\"type\":\"integer\"}},\"additionalProperties\":false},\"TypeCheckerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"strict\":{\"type\":\"boolean\"},\"checkProps\":{\"type\":\"boolean\"},\"checkEmits\":{\"type\":\"boolean\"},\"checkTemplateBindings\":{\"type\":\"boolean\"},\"checkReactivity\":{\"type\":\"boolean\"},\"checkSetupContext\":{\"type\":\"boolean\"},\"checkInvalidExports\":{\"type\":\"boolean\"},\"checkFallthroughAttrs\":{\"type\":\"boolean\"},\"optionsApi\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"jsxTypecheck\":{\"type\":\"boolean\"},\"tsconfig\":{\"type\":\"string\"},\"corsaPath\":{\"type\":\"string\"},\"tsgoPath\":{\"type\":\"string\"},\"tsrsPath\":{\"type\":\"string\"},\"globalsFile\":{\"type\":\"string\"},\"servers\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":32},\"lspRequestTimeoutMs\":{\"type\":\"integer\",\"minimum\":1}},\"additionalProperties\":false},\"LinterConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"type\":\"string\",\"enum\":[\"general-recommended\",\"general_recommended\",\"generalRecommended\",\"happy-path\",\"happy_path\",\"happy\",\"default\",\"recommended\",\"opinionated\",\"strict\",\"all\",\"essential\",\"incremental\",\"ecosystem\",\"nuxt\"]},\"typeAware\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"crossFileTree\":{\"type\":\"boolean\"},\"crossFileComplexity\":{\"type\":\"boolean\"},\"strictReactivity\":{\"type\":\"boolean\"},\"maxWarnings\":{\"type\":\"integer\",\"minimum\":0},\"reportUnusedDisableDirectives\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"ruleOptions\":{\"$ref\":\"#/definitions/LintRuleOptions\"},\"categories\":{\"type\":\"object\",\"properties\":{\"correctness\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"suspicious\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"style\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"perf\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"a11y\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"security\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"additionalProperties\":false}},\"additionalProperties\":false},\"LintRuleOptions\":{\"type\":\"object\",\"properties\":{\"script/define-macros-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true},\"defineExposeLast\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/define-props-destructuring\":{\"type\":\"object\",\"properties\":{\"destructure\":{\"type\":\"string\",\"enum\":[\"only-when-assigned\",\"always\",\"never\"]}},\"additionalProperties\":false},\"html/no-empty-palpable-content\":{\"type\":\"object\",\"properties\":{\"contentDirectives\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"type/strict-boolean-expressions\":{\"type\":\"object\",\"properties\":{\"allowString\":{\"type\":\"boolean\"},\"allowNumber\":{\"type\":\"boolean\"},\"allowNullableObject\":{\"type\":\"boolean\"},\"allowNullableBoolean\":{\"type\":\"boolean\"},\"allowNullableString\":{\"type\":\"boolean\"},\"allowNullableNumber\":{\"type\":\"boolean\"},\"allowNullableEnum\":{\"type\":\"boolean\"},\"allowAny\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/no-restricted-globals\":{\"$ref\":\"#/definitions/NoRestrictedGlobalsOptions\"},\"script/no-restricted-members\":{\"$ref\":\"#/definitions/NoRestrictedMembersOptions\"},\"vue/component-name-in-template-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"PascalCase\",\"kebab-case\"]},\"registeredComponentsOnly\":{\"type\":\"boolean\"},\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"script/custom-event-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"kebab-case\"]}},\"additionalProperties\":false},\"vue/prop-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"snake_case\"]}},\"additionalProperties\":false},\"vue/no-mutating-props\":{\"type\":\"object\",\"properties\":{\"shallowOnly\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"vue/require-component-registration\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/sfc-element-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]}}},\"additionalProperties\":false},\"vue/html-self-closing\":{\"type\":\"object\",\"properties\":{\"html\":{\"type\":\"object\",\"properties\":{\"void\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"normal\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"component\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"svg\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"math\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"vue/html-quotes\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},\"avoidEscape\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/mustache-interpolation-spacing\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-on-event-hyphenation\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-bind-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-on-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-slot-style\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},{\"type\":\"object\",\"properties\":{\"atComponent\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"default\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"named\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]}},\"additionalProperties\":false}]},\"vue/attribute-hyphenation\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/valid-v-on\":{\"type\":\"object\",\"properties\":{\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/valid-v-slot\":{\"type\":\"object\",\"properties\":{\"allowModifiers\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"musea/prefer-design-tokens\":{\"$ref\":\"#/definitions/MuseaPreferDesignTokensOptions\"}},\"additionalProperties\":false},\"NoRestrictedGlobalsOptions\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedGlobal\"}}},\"additionalProperties\":false},\"RestrictedGlobal\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"name\"]},\"NoRestrictedMembersOptions\":{\"type\":\"object\",\"properties\":{\"members\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedMember\"}}},\"additionalProperties\":false},\"RestrictedMember\":{\"type\":\"object\",\"properties\":{\"object\":{\"type\":\"string\"},\"property\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"object\",\"property\"]},\"MuseaPreferDesignTokensOptions\":{\"type\":\"object\",\"properties\":{\"tokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaDesignToken\"}}},\"additionalProperties\":false},\"MuseaDesignToken\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"tier\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"path\",\"value\"]},\"FormatterConfig\":{\"type\":\"object\",\"properties\":{\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"preset\":{\"type\":\"string\",\"enum\":[\"vize\",\"prettier\",\"compact\",\"documentation\"]},\"sortImports\":{\"oneOf\":[{\"type\":\"boolean\",\"enum\":[false]},{\"$ref\":\"#/definitions/SortImportsConfig\"}]},\"printWidth\":{\"type\":\"integer\"},\"tabWidth\":{\"type\":\"integer\"},\"useTabs\":{\"type\":\"boolean\"},\"semi\":{\"type\":\"boolean\"},\"singleQuote\":{\"type\":\"boolean\"},\"jsxSingleQuote\":{\"type\":\"boolean\"},\"trailingComma\":{\"type\":\"string\",\"enum\":[\"all\",\"none\",\"es5\"]},\"bracketSpacing\":{\"type\":\"boolean\"},\"bracketSameLine\":{\"type\":\"boolean\"},\"arrowParens\":{\"type\":\"string\",\"enum\":[\"always\",\"avoid\"]},\"endOfLine\":{\"type\":\"string\",\"enum\":[\"lf\",\"crlf\",\"cr\",\"auto\"]},\"quoteProps\":{\"type\":\"string\",\"enum\":[\"as-needed\",\"consistent\",\"preserve\"]},\"singleAttributePerLine\":{\"type\":\"boolean\"},\"vueIndentScriptAndStyle\":{\"type\":\"boolean\"},\"sortAttributes\":{\"type\":\"boolean\"},\"attributeSortOrder\":{\"type\":\"string\",\"enum\":[\"alphabetical\",\"as-written\"]},\"mergeBindAndNonBindAttrs\":{\"type\":\"boolean\"},\"maxAttributesPerLine\":{\"type\":\"integer\"},\"attributeGroups\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"normalizeDirectiveShorthands\":{\"type\":\"boolean\"},\"sortBlocks\":{\"type\":\"boolean\"},\"normalizeCssQuotes\":{\"type\":\"boolean\"},\"normalizeInlineStyles\":{\"type\":\"boolean\"},\"normalizeVForParens\":{\"type\":\"boolean\"},\"selfCloseVoidElements\":{\"type\":\"boolean\"},\"reindentPreprocessorStyles\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"SortImportsConfig\":{\"type\":\"object\",\"properties\":{\"partitionByNewline\":{\"type\":\"boolean\"},\"partitionByComment\":{\"type\":\"boolean\"},\"sortSideEffects\":{\"type\":\"boolean\"},\"order\":{\"type\":\"string\",\"enum\":[\"asc\",\"desc\"]},\"ignoreCase\":{\"type\":\"boolean\"},\"newlinesBetween\":{\"type\":\"boolean\"},\"internalPattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"groups\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}},{\"type\":\"object\",\"properties\":{\"newlinesBetween\":{\"type\":\"boolean\"}},\"additionalProperties\":false,\"required\":[\"newlinesBetween\"]}]}},\"customGroups\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ImportSortCustomGroup\"}}},\"additionalProperties\":false},\"ImportSortCustomGroup\":{\"type\":\"object\",\"properties\":{\"groupName\":{\"type\":\"string\"},\"elementNamePattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"selector\":{\"type\":\"string\"},\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false,\"required\":[\"groupName\"]},\"LanguageServerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"lint\":{\"type\":\"boolean\"},\"diagnostics\":{\"type\":\"boolean\"},\"typecheck\":{\"type\":\"boolean\"},\"editor\":{\"type\":\"boolean\"},\"ecosystem\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"completion\":{\"type\":\"boolean\"},\"signatureHelp\":{\"type\":\"boolean\"},\"hover\":{\"type\":\"boolean\"},\"definition\":{\"type\":\"boolean\"},\"references\":{\"type\":\"boolean\"},\"documentSymbols\":{\"type\":\"boolean\"},\"workspaceSymbols\":{\"type\":\"boolean\"},\"formatting\":{\"type\":\"boolean\"},\"codeActions\":{\"type\":\"boolean\"},\"rename\":{\"type\":\"boolean\"},\"codeLens\":{\"type\":\"boolean\"},\"semanticTokens\":{\"type\":\"boolean\"},\"documentLinks\":{\"type\":\"boolean\"},\"foldingRanges\":{\"type\":\"boolean\"},\"inlayHints\":{\"type\":\"boolean\"},\"fileRename\":{\"type\":\"boolean\"},\"corsa\":{\"type\":\"boolean\"},\"tsgo\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"GlobalTypesConfig\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/definitions/GlobalTypeDeclaration\"}]}},\"GlobalTypeDeclaration\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\"},\"defaultValue\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"type\"]},\"LibConfig\":{\"type\":\"object\",\"properties\":{\"dir\":{\"type\":\"string\"},\"uiDir\":{\"type\":\"string\"},\"composableDir\":{\"type\":\"string\"},\"lockfile\":{\"type\":\"string\"},\"registries\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"dir\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"source\"]}]},\"propertyNames\":{\"pattern\":\"^@[a-z0-9][a-z0-9._-]*$\"}}},\"additionalProperties\":false}}}");
|
|
514
|
+
const vueOptionSchema = JSON.parse("{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"experimentals\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"object\",\"additionalProperties\":true},{\"type\":\"null\"}]}},\"dialect\":{\"type\":\"string\",\"enum\":[\"vue\",\"petite-vue\"]},\"vite\":{\"$ref\":\"#/definitions/VitePluginConfig\"},\"musea\":{\"$ref\":\"#/definitions/MuseaConfig\"},\"typeChecker\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"},\"formatter\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"languageServer\":{\"$ref\":\"#/definitions/LanguageServerConfig\"},\"globalTypes\":{\"$ref\":\"#/definitions/GlobalTypesConfig\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"lib\":{\"$ref\":\"#/definitions/LibConfig\"},\"compile\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"typeCheck\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"fmt\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"lint\":{\"type\":\"object\",\"required\":[\"jsPlugins\",\"plugins\",\"rules\",\"settings\"],\"properties\":{\"jsPlugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"plugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"rules\":{\"type\":\"object\",\"additionalProperties\":true},\"settings\":{\"type\":\"object\",\"additionalProperties\":true},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"overrides\":{\"type\":\"array\"}},\"additionalProperties\":true},\"version\":{\"$ref\":\"#/definitions/VueVersion\"},\"entries\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"basePath\":{\"type\":\"string\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"}},\"additionalProperties\":false}}},\"additionalProperties\":false,\"definitions\":{\"CompilerConfig\":{\"type\":\"object\",\"properties\":{\"mode\":{\"type\":\"string\",\"enum\":[\"module\",\"function\"]},\"vapor\":{\"type\":\"boolean\"},\"jsxMode\":{\"type\":\"string\",\"enum\":[\"vdom\",\"vapor\"]},\"jsxCompat\":{\"type\":\"string\",\"enum\":[\"native\",\"babel\"]},\"customRenderer\":{\"type\":\"boolean\"},\"customElements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ssr\":{\"type\":\"boolean\"},\"templateSyntax\":{\"type\":\"string\",\"enum\":[\"standard\",\"strict\",\"quirks\"]},\"whitespace\":{\"type\":\"string\",\"enum\":[\"condense\",\"preserve\",\"vue2-line-breaks\",\"vue2-preserve\"]},\"sourceMap\":{\"type\":\"boolean\"},\"prefixIdentifiers\":{\"type\":\"boolean\"},\"hoistStatic\":{\"type\":\"boolean\"},\"cacheHandlers\":{\"type\":\"boolean\"},\"comments\":{\"type\":\"boolean\"},\"isTs\":{\"type\":\"boolean\"},\"scriptExt\":{\"type\":\"string\",\"enum\":[\"ts\",\"js\"]},\"runtimeModuleName\":{\"type\":\"string\"},\"runtimeGlobalName\":{\"type\":\"string\"},\"compatibility\":{\"$ref\":\"#/definitions/CompilerCompatibilityConfig\"}},\"additionalProperties\":false},\"CompilerCompatibilityConfig\":{\"type\":\"object\",\"properties\":{\"vueVersion\":{\"$ref\":\"#/definitions/VueVersion\"},\"hostCompiler\":{\"type\":\"boolean\"},\"scriptSetupInStandalone\":{\"type\":\"boolean\"},\"optionsApiVapor\":{\"type\":\"boolean\"},\"nuxtVersion\":{\"type\":\"integer\",\"enum\":[2,3,4]},\"webpackVersion\":{\"type\":\"integer\",\"enum\":[4,5]}},\"additionalProperties\":false},\"VueVersion\":{\"type\":\"string\",\"enum\":[\"3\",\"2.7\",\"2\",\"1\",\"0.11\",\"0.10\"]},\"VitePluginConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"exclude\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"scanPatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"MuseaConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"exclude\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"storybookCompat\":{\"type\":\"boolean\"},\"inlineArt\":{\"type\":\"boolean\"},\"vrt\":{\"$ref\":\"#/definitions/MuseaVrtConfig\"},\"a11y\":{\"$ref\":\"#/definitions/MuseaA11yConfig\"},\"autogen\":{\"$ref\":\"#/definitions/MuseaAutogenConfig\"}},\"additionalProperties\":false},\"MuseaVrtConfig\":{\"type\":\"object\",\"properties\":{\"threshold\":{\"type\":\"number\"},\"outDir\":{\"type\":\"string\"},\"viewports\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaViewport\"}}},\"additionalProperties\":false},\"MuseaViewport\":{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"integer\"},\"height\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"width\",\"height\"]},\"MuseaA11yConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"boolean\"}}},\"additionalProperties\":false},\"MuseaAutogenConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"maxVariants\":{\"type\":\"integer\"}},\"additionalProperties\":false},\"TypeCheckerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"strict\":{\"type\":\"boolean\"},\"checkProps\":{\"type\":\"boolean\"},\"checkEmits\":{\"type\":\"boolean\"},\"checkTemplateBindings\":{\"type\":\"boolean\"},\"checkReactivity\":{\"type\":\"boolean\"},\"checkSetupContext\":{\"type\":\"boolean\"},\"checkInvalidExports\":{\"type\":\"boolean\"},\"checkFallthroughAttrs\":{\"type\":\"boolean\"},\"optionsApi\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"jsxTypecheck\":{\"type\":\"boolean\"},\"tsconfig\":{\"type\":\"string\"},\"corsaPath\":{\"type\":\"string\"},\"tsgoPath\":{\"type\":\"string\"},\"tsrsPath\":{\"type\":\"string\"},\"globalsFile\":{\"type\":\"string\"},\"servers\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":32},\"lspRequestTimeoutMs\":{\"type\":\"integer\",\"minimum\":1}},\"additionalProperties\":false},\"LinterConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"type\":\"string\",\"enum\":[\"general-recommended\",\"general_recommended\",\"generalRecommended\",\"happy-path\",\"happy_path\",\"happy\",\"default\",\"recommended\",\"opinionated\",\"strict\",\"all\",\"essential\",\"incremental\",\"ecosystem\",\"nuxt\"]},\"typeAware\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"crossFileTree\":{\"type\":\"boolean\"},\"crossFileComplexity\":{\"type\":\"boolean\"},\"strictReactivity\":{\"type\":\"boolean\"},\"maxWarnings\":{\"type\":\"integer\",\"minimum\":0},\"reportUnusedDisableDirectives\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"ruleOptions\":{\"$ref\":\"#/definitions/LintRuleOptions\"},\"categories\":{\"type\":\"object\",\"properties\":{\"correctness\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"suspicious\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"style\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"perf\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"a11y\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"security\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"additionalProperties\":false}},\"additionalProperties\":false},\"LintRuleOptions\":{\"type\":\"object\",\"properties\":{\"script/define-macros-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true},\"defineExposeLast\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/define-props-destructuring\":{\"type\":\"object\",\"properties\":{\"destructure\":{\"type\":\"string\",\"enum\":[\"only-when-assigned\",\"always\",\"never\"]}},\"additionalProperties\":false},\"html/no-empty-palpable-content\":{\"type\":\"object\",\"properties\":{\"contentDirectives\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"type/strict-boolean-expressions\":{\"type\":\"object\",\"properties\":{\"allowString\":{\"type\":\"boolean\"},\"allowNumber\":{\"type\":\"boolean\"},\"allowNullableObject\":{\"type\":\"boolean\"},\"allowNullableBoolean\":{\"type\":\"boolean\"},\"allowNullableString\":{\"type\":\"boolean\"},\"allowNullableNumber\":{\"type\":\"boolean\"},\"allowNullableEnum\":{\"type\":\"boolean\"},\"allowAny\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/no-restricted-globals\":{\"$ref\":\"#/definitions/NoRestrictedGlobalsOptions\"},\"script/no-restricted-members\":{\"$ref\":\"#/definitions/NoRestrictedMembersOptions\"},\"vue/component-name-in-template-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"PascalCase\",\"kebab-case\"]},\"registeredComponentsOnly\":{\"type\":\"boolean\"},\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"script/custom-event-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"kebab-case\"]}},\"additionalProperties\":false},\"vue/prop-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"snake_case\"]}},\"additionalProperties\":false},\"vue/no-mutating-props\":{\"type\":\"object\",\"properties\":{\"shallowOnly\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"vue/require-component-registration\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/sfc-element-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]}}},\"additionalProperties\":false},\"vue/html-self-closing\":{\"type\":\"object\",\"properties\":{\"html\":{\"type\":\"object\",\"properties\":{\"void\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"normal\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"component\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"svg\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"math\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"vue/html-quotes\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},\"avoidEscape\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/mustache-interpolation-spacing\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-on-event-hyphenation\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"ignore\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"pattern\":\"^(?!\\\\s*$)(?![\\\\s\\\\S]*:exit$)\"},\"uniqueItems\":true},\"autofix\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/v-bind-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-on-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-slot-style\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},{\"type\":\"object\",\"properties\":{\"atComponent\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"default\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"named\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]}},\"additionalProperties\":false}]},\"vue/attribute-hyphenation\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"ignore\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"pattern\":\"^(?!\\\\s*$)(?![\\\\s\\\\S]*:exit$)\"},\"uniqueItems\":true}},\"additionalProperties\":false}]},\"vue/valid-v-on\":{\"type\":\"object\",\"properties\":{\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/valid-v-slot\":{\"type\":\"object\",\"properties\":{\"allowModifiers\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"musea/prefer-design-tokens\":{\"$ref\":\"#/definitions/MuseaPreferDesignTokensOptions\"}},\"additionalProperties\":false},\"NoRestrictedGlobalsOptions\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedGlobal\"}}},\"additionalProperties\":false},\"RestrictedGlobal\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"name\"]},\"NoRestrictedMembersOptions\":{\"type\":\"object\",\"properties\":{\"members\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedMember\"}}},\"additionalProperties\":false},\"RestrictedMember\":{\"type\":\"object\",\"properties\":{\"object\":{\"type\":\"string\"},\"property\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"object\",\"property\"]},\"MuseaPreferDesignTokensOptions\":{\"type\":\"object\",\"properties\":{\"tokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaDesignToken\"}}},\"additionalProperties\":false},\"MuseaDesignToken\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"tier\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"path\",\"value\"]},\"FormatterConfig\":{\"type\":\"object\",\"properties\":{\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"preset\":{\"type\":\"string\",\"enum\":[\"vize\",\"prettier\",\"compact\",\"documentation\"]},\"sortImports\":{\"oneOf\":[{\"type\":\"boolean\",\"enum\":[false]},{\"$ref\":\"#/definitions/SortImportsConfig\"}]},\"printWidth\":{\"type\":\"integer\"},\"tabWidth\":{\"type\":\"integer\"},\"useTabs\":{\"type\":\"boolean\"},\"semi\":{\"type\":\"boolean\"},\"singleQuote\":{\"type\":\"boolean\"},\"jsxSingleQuote\":{\"type\":\"boolean\"},\"trailingComma\":{\"type\":\"string\",\"enum\":[\"all\",\"none\",\"es5\"]},\"bracketSpacing\":{\"type\":\"boolean\"},\"bracketSameLine\":{\"type\":\"boolean\"},\"arrowParens\":{\"type\":\"string\",\"enum\":[\"always\",\"avoid\"]},\"endOfLine\":{\"type\":\"string\",\"enum\":[\"lf\",\"crlf\",\"cr\",\"auto\"]},\"quoteProps\":{\"type\":\"string\",\"enum\":[\"as-needed\",\"consistent\",\"preserve\"]},\"singleAttributePerLine\":{\"type\":\"boolean\"},\"vueIndentScriptAndStyle\":{\"type\":\"boolean\"},\"sortAttributes\":{\"type\":\"boolean\"},\"attributeSortOrder\":{\"type\":\"string\",\"enum\":[\"alphabetical\",\"as-written\"]},\"mergeBindAndNonBindAttrs\":{\"type\":\"boolean\"},\"maxAttributesPerLine\":{\"type\":\"integer\"},\"attributeGroups\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"normalizeDirectiveShorthands\":{\"type\":\"boolean\"},\"sortBlocks\":{\"type\":\"boolean\"},\"normalizeCssQuotes\":{\"type\":\"boolean\"},\"normalizeInlineStyles\":{\"type\":\"boolean\"},\"normalizeVForParens\":{\"type\":\"boolean\"},\"selfCloseVoidElements\":{\"type\":\"boolean\"},\"reindentPreprocessorStyles\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"SortImportsConfig\":{\"type\":\"object\",\"properties\":{\"partitionByNewline\":{\"type\":\"boolean\"},\"partitionByComment\":{\"type\":\"boolean\"},\"sortSideEffects\":{\"type\":\"boolean\"},\"order\":{\"type\":\"string\",\"enum\":[\"asc\",\"desc\"]},\"ignoreCase\":{\"type\":\"boolean\"},\"newlinesBetween\":{\"type\":\"boolean\"},\"internalPattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"groups\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}},{\"type\":\"object\",\"properties\":{\"newlinesBetween\":{\"type\":\"boolean\"}},\"additionalProperties\":false,\"required\":[\"newlinesBetween\"]}]}},\"customGroups\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ImportSortCustomGroup\"}}},\"additionalProperties\":false},\"ImportSortCustomGroup\":{\"type\":\"object\",\"properties\":{\"groupName\":{\"type\":\"string\"},\"elementNamePattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"selector\":{\"type\":\"string\"},\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false,\"required\":[\"groupName\"]},\"LanguageServerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"lint\":{\"type\":\"boolean\"},\"diagnostics\":{\"type\":\"boolean\"},\"typecheck\":{\"type\":\"boolean\"},\"editor\":{\"type\":\"boolean\"},\"ecosystem\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"completion\":{\"type\":\"boolean\"},\"signatureHelp\":{\"type\":\"boolean\"},\"hover\":{\"type\":\"boolean\"},\"definition\":{\"type\":\"boolean\"},\"references\":{\"type\":\"boolean\"},\"documentSymbols\":{\"type\":\"boolean\"},\"workspaceSymbols\":{\"type\":\"boolean\"},\"formatting\":{\"type\":\"boolean\"},\"codeActions\":{\"type\":\"boolean\"},\"rename\":{\"type\":\"boolean\"},\"codeLens\":{\"type\":\"boolean\"},\"semanticTokens\":{\"type\":\"boolean\"},\"documentLinks\":{\"type\":\"boolean\"},\"foldingRanges\":{\"type\":\"boolean\"},\"inlayHints\":{\"type\":\"boolean\"},\"fileRename\":{\"type\":\"boolean\"},\"corsa\":{\"type\":\"boolean\"},\"tsgo\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"GlobalTypesConfig\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/definitions/GlobalTypeDeclaration\"}]}},\"GlobalTypeDeclaration\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\"},\"defaultValue\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"type\"]},\"LibConfig\":{\"type\":\"object\",\"properties\":{\"dir\":{\"type\":\"string\"},\"uiDir\":{\"type\":\"string\"},\"composableDir\":{\"type\":\"string\"},\"lockfile\":{\"type\":\"string\"},\"registries\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"dir\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"source\"]}]},\"propertyNames\":{\"pattern\":\"^@[a-z0-9][a-z0-9._-]*$\"}}},\"additionalProperties\":false}}}");
|
|
462
515
|
const sourceConfigKey = Symbol.for("@vizejs/vite-plugin/vite-plus/source");
|
|
463
516
|
function object(value) {
|
|
464
517
|
if (value === null || typeof value !== "object") return false;
|
|
@@ -563,7 +616,7 @@ async function projectViteConfigSource(source, env, configDir) {
|
|
|
563
616
|
if (typeof lint === "boolean") overrides.linter = overlayVueOptions(overrides.linter ?? {}, { enabled: lint });
|
|
564
617
|
else if (object(lint)) {
|
|
565
618
|
const { typecheck: _typecheck, locale: _locale, helpLevel: _helpLevel, ...native } = lint;
|
|
566
|
-
overrides.linter = overlayVueOptions(overrides.linter ?? {}, native);
|
|
619
|
+
overrides.linter = overlayVueOptions(overrides.linter ?? {}, native, "linter");
|
|
567
620
|
}
|
|
568
621
|
if (object(source.fmt)) {
|
|
569
622
|
const keys = vueOptionSchema.definitions.FormatterConfig.properties;
|
|
@@ -676,13 +729,13 @@ function flatVueOptions(selected) {
|
|
|
676
729
|
...entries === void 0 ? {} : { entries: entries.map(flatVueOptions) }
|
|
677
730
|
};
|
|
678
731
|
}
|
|
679
|
-
function overlayVueOptions(base, own) {
|
|
732
|
+
function overlayVueOptions(base, own, path = "") {
|
|
680
733
|
const result = { ...base };
|
|
681
734
|
for (const [key, value] of Object.entries(own)) {
|
|
682
735
|
if (value === void 0) continue;
|
|
683
736
|
const previous = Object.hasOwn(result, key) ? result[key] : void 0;
|
|
684
737
|
Object.defineProperty(result, key, {
|
|
685
|
-
value: object(value) && object(previous) ? overlayVueOptions(previous, value) : value,
|
|
738
|
+
value: path !== "linter.ruleOptions" && object(value) && object(previous) ? overlayVueOptions(previous, value, path ? `${path}.${key}` : key) : value,
|
|
686
739
|
enumerable: true,
|
|
687
740
|
configurable: true,
|
|
688
741
|
writable: true
|
|
@@ -690,48 +743,7 @@ function overlayVueOptions(base, own) {
|
|
|
690
743
|
}
|
|
691
744
|
return result;
|
|
692
745
|
}
|
|
693
|
-
|
|
694
|
-
const refuse = (reason) => {
|
|
695
|
-
throw new TypeError(`${label}: ${reason}`);
|
|
696
|
-
};
|
|
697
|
-
if (schema.$ref) return validateVueOption(value, vueOptionSchema.definitions[schema.$ref.split("/").at(-1)], label);
|
|
698
|
-
if (schema.oneOf) {
|
|
699
|
-
if (schema.oneOf.filter((candidate) => {
|
|
700
|
-
try {
|
|
701
|
-
validateVueOption(value, candidate, label);
|
|
702
|
-
return true;
|
|
703
|
-
} catch (error) {
|
|
704
|
-
if (!(error instanceof TypeError)) throw error;
|
|
705
|
-
return false;
|
|
706
|
-
}
|
|
707
|
-
}).length !== 1) refuse("must match one documented native option type");
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
if (schema.enum && !schema.enum.includes(value)) refuse("unsupported native option value");
|
|
711
|
-
const valid = {
|
|
712
|
-
object: object(value),
|
|
713
|
-
array: Array.isArray(value),
|
|
714
|
-
string: typeof value === "string",
|
|
715
|
-
boolean: typeof value === "boolean",
|
|
716
|
-
integer: Number.isInteger(value),
|
|
717
|
-
number: typeof value === "number" && Number.isFinite(value),
|
|
718
|
-
null: value === null
|
|
719
|
-
};
|
|
720
|
-
if (schema.type && !valid[schema.type]) refuse(`must be ${schema.type}`);
|
|
721
|
-
if (schema.minimum !== void 0 && value < schema.minimum) refuse(`must be >= ${schema.minimum}`);
|
|
722
|
-
if (schema.maximum !== void 0 && value > schema.maximum) refuse(`must be <= ${schema.maximum}`);
|
|
723
|
-
if (Array.isArray(value) && schema.items) for (let index = 0; index < value.length; index++) validateVueOption(value[index], schema.items, `${label}[${index}]`);
|
|
724
|
-
if (object(value)) {
|
|
725
|
-
for (const required of schema.required ?? []) if (!Object.hasOwn(value, required) || value[required] === void 0) refuse(`missing ${required}`);
|
|
726
|
-
for (const [key, item] of Object.entries(value)) {
|
|
727
|
-
const documented = Object.hasOwn(schema.properties ?? {}, key);
|
|
728
|
-
if (!documented && schema.additionalProperties === false) refuse(`unknown option "${key}"`);
|
|
729
|
-
if (schema.propertyNames?.pattern && !new RegExp(schema.propertyNames.pattern).test(key)) refuse(`invalid native option name ${key}`);
|
|
730
|
-
const rule = documented ? schema.properties[key] : schema.additionalProperties;
|
|
731
|
-
if (item !== void 0 && object(rule)) validateVueOption(item, rule, `${label}.${key}`);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
746
|
+
const validateVueOption = createVueOptionValidator(vueOptionSchema.definitions, object, vueOptionSchema.definitions.LintRuleOptions.properties["vue/attribute-hyphenation"]);
|
|
735
747
|
function projectPaths(config, root, entry) {
|
|
736
748
|
if (!root || !object(config)) return config;
|
|
737
749
|
const result = { ...config };
|
|
@@ -905,4 +917,4 @@ function normalizeGlobalTypes(config) {
|
|
|
905
917
|
//#endregion
|
|
906
918
|
export { loadConfig as a, resolveViteConfigExport as c, defineConfig as i, VITE_CONFIG_FILE_NAMES as l, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t };
|
|
907
919
|
|
|
908
|
-
//# sourceMappingURL=config-
|
|
920
|
+
//# sourceMappingURL=config-DyzIXrfZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DyzIXrfZ.mjs","names":["PACKAGE_ROOT","path","getErrorMessage","fs","moduleConfigDirectory","resolveViteConfigExport","path","projectViteConfigExport","fs"],"sources":["../src/config/pkl.js","../../../crates/vize_carton/src/config/loader/module-runtime.mjs","../../../crates/vize_carton/src/config/loader/vite-runtime-validation.js","../../../crates/vize_carton/src/config/loader/vite-runtime.mjs","../src/config.ts"],"sourcesContent":["import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { execFileSync } from \"node:child_process\";\nimport { randomUUID } from \"node:crypto\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\nconst PACKAGE_ROOT = path.resolve(fileURLToPath(new URL(\".\", import.meta.url)), \"../..\");\n\nconst DOCUMENTED_PKL_SCHEMA_IMPORT_RE =\n /^(\\s*(?:amends|import)\\s+)([\"'])node_modules\\/vize\\/pkl\\/(VizeConfig\\.pkl|vize\\.pkl)\\2/gm;\n\n/**\n * Evaluate a `vize.config.pkl` file and return its JSON representation.\n *\n * The npm-facing loader keeps PKL execution in Node because it needs package\n * resolution for `@pkl-community/pkl`, but all structural config normalization\n * happens in Rust after this function returns. A missing PKL runtime returns\n * `null` so config discovery can fall through to lower-priority formats; an\n * evaluation failure throws because a present PKL config should not silently be\n * ignored.\n */\nexport function loadPklConfigJson(filePath) {\n const pklBin = findPklBinary();\n if (!pklBin) {\n console.warn(\n \"[vize] pkl CLI not found. Install @pkl-community/pkl or add pkl to PATH. \" +\n \"Falling back to the next config format.\",\n );\n return null;\n }\n\n const patchedFilePath = createPklConfigWithBundledSchemaImports(filePath);\n const evalFilePath = patchedFilePath ?? filePath;\n try {\n return execFileSync(pklBin, [\"eval\", \"-f\", \"json\", evalFilePath], {\n cwd: path.dirname(filePath),\n encoding: \"utf-8\",\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n timeout: 30_000,\n });\n } catch (error) {\n throw new Error(`Failed to evaluate vize PKL config at ${filePath}: ${getErrorMessage(error)}`);\n } finally {\n if (patchedFilePath) {\n fs.rmSync(patchedFilePath, { force: true });\n }\n }\n}\n\nfunction findPklBinary() {\n try {\n const pklPkgPath = import.meta.resolve?.(\"@pkl-community/pkl\");\n if (pklPkgPath) {\n const pklLibDir = path.dirname(fileURLToPath(pklPkgPath));\n const pklPackageDir = path.dirname(pklLibDir);\n const candidates = [\n path.join(pklLibDir, \"main.js\"),\n path.join(pklPackageDir, \"pkl\"),\n path.join(pklPackageDir, \"pkl.exe\"),\n ];\n\n for (const candidate of candidates) {\n if (fs.existsSync(candidate)) {\n try {\n execFileSync(candidate, [\"--version\"], { stdio: \"ignore\" });\n return candidate;\n } catch {\n // Keep looking: the shim can exist when its runtime is unavailable.\n }\n }\n }\n }\n } catch {\n // Fall back to PATH below.\n }\n\n try {\n execFileSync(\"pkl\", [\"--version\"], { stdio: \"ignore\" });\n return \"pkl\";\n } catch {\n return null;\n }\n}\n\nfunction createPklConfigWithBundledSchemaImports(filePath) {\n const configDir = path.dirname(filePath);\n const source = fs.readFileSync(filePath, \"utf-8\");\n let patched = false;\n\n const content = source.replace(\n DOCUMENTED_PKL_SCHEMA_IMPORT_RE,\n (match, prefix, quote, schemaFile) => {\n const projectSchemaPath = path.join(configDir, \"node_modules\", \"vize\", \"pkl\", schemaFile);\n if (fs.existsSync(projectSchemaPath)) {\n return match;\n }\n\n const bundledSchemaPath = path.join(PACKAGE_ROOT, \"pkl\", schemaFile);\n if (!fs.existsSync(bundledSchemaPath)) {\n return match;\n }\n\n patched = true;\n return `${prefix}${quote}${pathToFileURL(bundledSchemaPath).href}${quote}`;\n },\n );\n\n if (!patched) {\n return null;\n }\n\n const tempFile = path.join(\n configDir,\n `.vize-config-${process.pid}-${Date.now()}-${randomUUID()}.pkl`,\n );\n fs.writeFileSync(tempFile, content, { flag: \"wx\", mode: 0o600 });\n return tempFile;\n}\n\nfunction getErrorMessage(error) {\n if (error instanceof Error) {\n return error.message;\n }\n\n return String(error);\n}\n","// Embedded by the native loader. The nearest installed project Vite owns loading.\nimport { lstatSync, readFileSync, realpathSync } from \"node:fs\";\nimport { mkdtemp, realpath, rm, writeFile } from \"node:fs/promises\";\nimport { createRequire, globalPaths } from \"node:module\";\nimport * as nodeModule from \"node:module\";\nimport { tmpdir } from \"node:os\";\nimport {\n dirname as moduleConfigDirectory,\n extname,\n isAbsolute,\n join,\n relative,\n sep,\n} from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\n// A declaration-only package cannot own loading. Broken/runtime packages still do.\nasync function isTypesOnlyEngine(directory, engineName, beforeRead, watchInputs) {\n let manifest;\n try {\n manifest = JSON.parse(readFileSync(join(directory, \"package.json\"), \"utf8\"));\n } catch {\n return false;\n }\n if (\n manifest?.name !== engineName ||\n typeof (manifest.types ?? manifest.typings) !== \"string\" ||\n (manifest.types ?? manifest.typings).length === 0 ||\n [\"main\", \"exports\", \"module\", \"browser\", \"bin\"].some((key) => Object.hasOwn(manifest, key))\n )\n return false;\n const defaults = [\"index.js\", \"index.json\", \"index.node\"].map((name) => join(directory, name));\n for (const path of defaults) watchInputs.add(path);\n await beforeRead?.(defaults);\n return defaults.every((path) => lstatSync(path, { throwIfNoEntry: false }) === undefined);\n}\n\n// Optional compiled artifacts only; no imported namespace or evaluated config is retained.\nexport function enableConfigCompileCache(directory) {\n if (!directory || typeof nodeModule.enableCompileCache !== \"function\") return;\n if (\n [\n \"NODE_COMPILE_CACHE\",\n \"NODE_DISABLE_COMPILE_CACHE\",\n \"NODE_COMPILE_CACHE_PORTABLE\",\n \"NODE_V8_COVERAGE\",\n ].some((name) => Object.hasOwn(process.env, name)) ||\n process.env.NODE_OPTIONS?.includes(\"coverage\")\n )\n return;\n // The parent owns this private directory until every fresh child has exited.\n // Uses Node's standard source-checksum/version contract, not Canon input identity.\n // Normal process exit flushes compiled code before the parent releases its lease.\n return nodeModule.enableCompileCache(directory);\n}\n\n// Failure identity is host metadata; never attach it to authored exports/errors.\nconst configFailureArtifacts = new WeakMap();\nconst configEvaluationTimings = new WeakMap();\n\n// Private host diagnostics, never attached to authored values or exceptions.\nexport function configModuleEvaluationTimings(value) {\n return configEvaluationTimings.get(value)?.map((row) => ({ ...row }));\n}\n\nfunction beginConfigTiming(rows, phase, boundary) {\n const start = rows ? performance.now() : undefined;\n let finished = false;\n if (boundary) boundary.active = true;\n return () => {\n if (start !== undefined && !finished) {\n const end = performance.now();\n rows.push({ phase, elapsedMs: end - start, processId: process.pid });\n if (boundary) {\n boundary.active = false;\n // No observed resolution means UNKNOWN: never fabricate zero or guess\n // an SDK-generated path outside our already-owned private directory.\n if (boundary.resolvedAt !== undefined) {\n rows.push({\n phase: \"public_load_until_owned_resolve\",\n elapsedMs: boundary.resolvedAt - start,\n processId: process.pid,\n });\n rows.push({\n phase: \"public_load_after_owned_resolve\",\n elapsedMs: end - boundary.resolvedAt,\n processId: process.pid,\n });\n }\n }\n finished = true;\n }\n };\n}\n\n// Diagnostic only: retain the complete sampling packet, never an evaluated value.\n// Setup/stop costs are separate; samples also include the adjacent host call edges.\nasync function beginPublicLoadProfile() {\n const started = performance.now();\n let session;\n const close = () => {\n try {\n session?.disconnect();\n } catch {}\n };\n try {\n const { Session } = await import(\"node:inspector/promises\");\n session = new Session();\n session.connect();\n await session.post(\"Profiler.enable\");\n await session.post(\"Profiler.start\");\n const setupMs = performance.now() - started;\n return async () => {\n const stopping = performance.now();\n try {\n const { profile } = await session.post(\"Profiler.stop\");\n return { status: \"recorded\", setupMs, stopMs: performance.now() - stopping, profile };\n } catch (error) {\n return { status: \"unavailable\", setupMs, reason: String(error) };\n } finally {\n close();\n }\n };\n } catch (error) {\n close();\n return async () => ({ status: \"unavailable\", reason: String(error) });\n }\n}\n\nexport function configModuleFailureArtifacts(error) {\n return configFailureArtifacts.get(error)?.map(([owned, source]) => [owned, source]) ?? [];\n}\n\nexport function configModuleImportPath(configURL, windows = process.platform === \"win32\") {\n return fileURLToPath(configURL, { windows });\n}\n\nexport async function importConfigModule(configPath, withoutVite) {\n return (\n await importConfigModuleWithDependencies(configPath, nodeModule.registerHooks, withoutVite)\n ).namespace;\n}\n\n/** Observe real failed requests, without choosing a replacement resolution. */\nexport function failedConfigModuleRequests(error) {\n return failedConfigModuleObservation(error).paths;\n}\n\nfunction failedConfigModuleObservation(error) {\n const paths = new Set();\n let complete = false;\n if (error?.code === \"ERR_MODULE_NOT_FOUND\" && typeof error.url === \"string\") {\n try {\n const url = new URL(error.url);\n if (url.protocol === \"file:\") {\n paths.add(fileURLToPath(url));\n complete = true;\n }\n } catch {}\n }\n const diagnostics = Array.isArray(error?.errors) ? error.errors : [];\n if (diagnostics.length) complete = true;\n for (const diagnostic of diagnostics) {\n let requested = false;\n if (\n diagnostic?.code !== \"UNRESOLVED_IMPORT\" ||\n typeof diagnostic.id !== \"string\" ||\n !isAbsolute(diagnostic.id) ||\n typeof diagnostic.exporter !== \"string\"\n ) {\n complete = false;\n continue;\n }\n paths.add(diagnostic.id);\n const request = diagnostic.exporter;\n // Public bundle diagnostics expose the requested importer/specifier, not\n // extension or package search candidates. Observe only explicit file paths.\n if (!(isAbsolute(request) || request.startsWith(\"./\") || request.startsWith(\"../\"))) {\n complete = false;\n continue;\n }\n // Bundle specifiers may treat these characters as literal filenames or URL\n // syntax. Its diagnostic does not expose which interpretation won.\n if (/[%#?]/.test(request)) {\n complete = false;\n continue;\n }\n try {\n const url = isAbsolute(request)\n ? pathToFileURL(request)\n : new URL(request, pathToFileURL(diagnostic.id));\n if (url.protocol === \"file:\" && extname(url.pathname)) {\n paths.add(fileURLToPath(url));\n requested = true;\n }\n } catch {}\n complete &&= requested;\n }\n return { paths: [...paths], complete };\n}\n\n/** Keep runtime imports observable until the optional export evaluator settles. */\nasync function captureConfigEvaluation(\n load,\n configPath,\n registerModuleHooks,\n evaluate,\n privateDirectory,\n observeDependencies,\n ownedAdapter,\n timings,\n boundary,\n) {\n const files = new Set([configPath]);\n const requestedFiles = new Set();\n let complete = true;\n let moduleGraphLoaded = false;\n const owners = new Set([pathToFileURL(configPath).href]);\n const isPrivate = (path) => {\n if (!privateDirectory) return false;\n const inside = relative(privateDirectory, path);\n return inside !== \"..\" && !inside.startsWith(`..${sep}`) && !isAbsolute(inside);\n };\n const hooks =\n typeof registerModuleHooks === \"function\"\n ? registerModuleHooks({\n resolve(specifier, context, nextResolve) {\n const result = nextResolve(specifier, context);\n if (result.url.startsWith(\"file:\")) {\n const path = fileURLToPath(result.url);\n if (boundary?.active && boundary.resolvedAt === undefined && isPrivate(path)) {\n // Diagnostic only, after the same successful nextResolve. No\n // extra resolution/read and no change to dependency ownership.\n boundary.resolvedAt = performance.now();\n }\n // Vite's generated module owns config execution, but its build engine\n // and private adapters are not authored configuration dependencies.\n if (owners.has(result.url) || owners.has(context.parentURL) || isPrivate(path)) {\n owners.add(result.url);\n if (!isPrivate(path)) files.add(path);\n // Node reports the real target, but the actual explicit request\n // also owns a symlink route whose retargeting must be observed.\n // Keep this watch-only: it does not replace Node's resolution.\n if (\n owners.has(context.parentURL) &&\n (specifier.startsWith(\"./\") ||\n specifier.startsWith(\"../\") ||\n specifier.startsWith(\"/\") ||\n specifier.startsWith(\"file:\"))\n ) {\n try {\n const requested = new URL(specifier, context.parentURL);\n if (requested.protocol === \"file:\") {\n const requestedPath = fileURLToPath(requested);\n if (extname(requestedPath) && !isPrivate(requestedPath)) {\n requestedFiles.add(requestedPath);\n }\n }\n } catch {}\n }\n }\n }\n return result;\n },\n })\n : undefined;\n try {\n const { namespace, dependencies = [] } = await load();\n for (const path of dependencies) if (!isPrivate(path)) files.add(path);\n moduleGraphLoaded = true;\n const finish = beginConfigTiming(timings, \"export_evaluation\");\n let value;\n try {\n value = evaluate ? await evaluate(namespace) : namespace;\n } finally {\n finish();\n }\n return { namespace, value, dependencies: [...files] };\n } catch (error) {\n if (\n ownedAdapter &&\n error !== null &&\n (typeof error === \"object\" || typeof error === \"function\")\n ) {\n configFailureArtifacts.set(error, [\n [ownedAdapter, configPath],\n [pathToFileURL(ownedAdapter).href, pathToFileURL(configPath).href],\n [\n relative(moduleConfigDirectory(configPath), ownedAdapter),\n relative(moduleConfigDirectory(configPath), configPath),\n ],\n ]);\n }\n complete = false;\n // User code may throw arbitrary objects, including getters that throw.\n // Observation must never replace the loader's original exception.\n try {\n const observed = failedConfigModuleObservation(error);\n // A failed bundle reports its failing importer/request, but can omit\n // intermediate modules read by the build engine. Keep useful targets\n // without treating that partial graph as enough to suppress repair.\n complete = observed.complete && (privateDirectory === undefined || moduleGraphLoaded);\n for (const path of observed.paths) if (!isPrivate(path)) files.add(path);\n } catch {}\n throw error;\n } finally {\n hooks?.deregister();\n observeDependencies?.([...files, ...requestedFiles], complete);\n }\n}\n\n/** Await evaluate(namespace) once before sealing its graph; retain the namespace unchanged. */\nexport async function importConfigModuleWithDependencies(\n configPath,\n registerModuleHooks = nodeModule.registerHooks,\n withoutVite,\n evaluate,\n observeDependencies,\n beforeRead,\n) {\n const timings = process.env.VIZE_TRACE_EDITOR_PREPARATION === \"1\" ? [] : undefined;\n const boundary = timings ? { active: false, resolvedAt: undefined } : undefined;\n const finishTotal = beginConfigTiming(timings, \"module_total\");\n const finishSelection = beginConfigTiming(timings, \"engine_selection_with_ack\");\n let selectionFinished = false;\n let result;\n const watchInputs = new Set([configPath]);\n let complete = false;\n const observe = (paths, observedComplete) => {\n for (const path of paths) watchInputs.add(path);\n complete = observedComplete;\n };\n try {\n const configURL = pathToFileURL(configPath);\n const require = createRequire(configURL);\n const engineNames = [\"vite\", \"vite-plus\"];\n let candidate;\n for (const engineName of engineNames) {\n const searchPaths = require.resolve.paths(engineName) ?? [];\n for (const directory of searchPaths.filter((path) => !globalPaths.includes(path))) {\n const requested = join(directory, engineName);\n watchInputs.add(requested);\n await beforeRead?.([requested]);\n if (lstatSync(requested, { throwIfNoEntry: false }) !== undefined) {\n const engineDirectory = realpathSync(requested);\n const manifests = [requested, engineDirectory].map((path) => join(path, \"package.json\"));\n for (const path of manifests) watchInputs.add(path);\n await beforeRead?.(manifests);\n if (await isTypesOnlyEngine(engineDirectory, engineName, beforeRead, watchInputs))\n continue;\n candidate = { engineName, directory: requested, engineDirectory };\n break;\n }\n }\n if (candidate !== undefined) break;\n }\n // The public CLI can retain its explicit TypeScript transform fallback. Native\n // editor snapshots always request the complete real import graph instead.\n if (typeof registerModuleHooks !== \"function\") {\n if (evaluate) {\n throw new Error(\n \"Tracking imports while evaluating a Vite config requires Node.js 22.15 or newer. Upgrade Node.js; an installed config bundler alone cannot track runtime imports.\",\n );\n }\n if (candidate === undefined && !withoutVite) {\n throw new Error(\n \"Loading a Vite config without project Vite or Vite+ requires Node.js 22.15 or newer to track imported configuration files. Upgrade Node.js or install Vite or Vite+ in the project.\",\n );\n }\n }\n if (candidate === undefined) {\n finishSelection();\n selectionFinished = true;\n await beforeRead?.([configPath]);\n result = await captureConfigEvaluation(\n async () => ({\n namespace: await (withoutVite ? withoutVite(configURL) : import(configURL.href)),\n }),\n configPath,\n registerModuleHooks,\n evaluate,\n undefined,\n observe,\n undefined,\n timings,\n );\n return result;\n }\n const { engineDirectory } = candidate;\n const resolvedEntry = require.resolve(candidate.engineName);\n watchInputs.add(resolvedEntry);\n const engineEntry = realpathSync(resolvedEntry);\n watchInputs.add(engineEntry);\n const entryPath = relative(engineDirectory, engineEntry);\n if (entryPath === \"..\" || entryPath.startsWith(`..${sep}`) || isAbsolute(entryPath)) {\n const engineLabel = candidate.engineName === \"vite\" ? \"Vite\" : \"Vite+\";\n throw new Error(\n `Resolved loader escapes selected project ${engineLabel}: ${candidate.directory} -> ${engineEntry}`,\n );\n }\n await beforeRead?.([resolvedEntry, engineEntry]);\n finishSelection();\n selectionFinished = true;\n const finishImport = beginConfigTiming(timings, \"engine_import\");\n let loadConfigFromFile;\n try {\n const engine = await import(pathToFileURL(engineEntry).href);\n loadConfigFromFile = engine.loadConfigFromFile ?? engine.default?.loadConfigFromFile;\n if (typeof loadConfigFromFile !== \"function\") {\n throw new Error(`${candidate.engineName} does not export loadConfigFromFile`);\n }\n } finally {\n finishImport();\n }\n const finishAdapter = beginConfigTiming(timings, \"adapter_prepare\");\n let temporary;\n try {\n temporary = await realpath(await mkdtemp(join(tmpdir(), \"vize-config-module-\")));\n } catch (error) {\n finishAdapter();\n throw error;\n }\n try {\n const adapter = join(temporary, \"config.mjs\");\n await writeFile(\n adapter,\n `import * as original from ${JSON.stringify(configModuleImportPath(configURL))};\\nexport default { namespace: original };\\n`,\n { flag: \"wx\", mode: 0o600 },\n );\n finishAdapter();\n result = await captureConfigEvaluation(\n async () => {\n const finishAck = beginConfigTiming(timings, \"selected_before_read_ack\");\n try {\n await beforeRead?.([configPath]);\n } finally {\n finishAck();\n }\n const finishProfile = timings ? await beginPublicLoadProfile() : undefined;\n const finishLoad = beginConfigTiming(timings, \"public_load\", boundary);\n let loaded;\n try {\n loaded = await loadConfigFromFile(\n { mode: \"development\", command: \"serve\" },\n adapter,\n moduleConfigDirectory(configPath),\n \"silent\",\n undefined,\n \"bundle\",\n );\n } finally {\n finishLoad();\n if (finishProfile) {\n timings.find((row) => row.phase === \"public_load\").cpuProfile = await finishProfile();\n }\n }\n if (!loaded) {\n throw new Error(\n `${candidate.engineName} did not load the selected config: ${configPath}`,\n );\n }\n return {\n namespace: loaded.config.namespace,\n dependencies: loaded.dependencies,\n };\n },\n configPath,\n registerModuleHooks,\n evaluate,\n temporary,\n observe,\n adapter,\n timings,\n boundary,\n );\n return result;\n } catch (error) {\n finishAdapter();\n throw error;\n } finally {\n const finishCleanup = beginConfigTiming(timings, \"adapter_cleanup\");\n try {\n await rm(temporary, { recursive: true, force: true });\n } finally {\n finishCleanup();\n }\n }\n } catch (error) {\n if (timings && error !== null && (typeof error === \"object\" || typeof error === \"function\")) {\n configEvaluationTimings.set(error, timings);\n }\n throw error;\n } finally {\n if (!selectionFinished) finishSelection();\n finishTotal();\n if (timings && result) configEvaluationTimings.set(result, timings);\n observeDependencies?.([...watchInputs], complete);\n }\n}\n","// Product config runtime: plain ESM syntax also embeds unchanged in Node^22 modules.\nexport function createVueOptionValidator(definitions, object, attributePolicy) {\n function validateVueOption(value, schema, label) {\n if (schema === attributePolicy && typeof value === \"string\") {\n return validateVueOption(value, schema.oneOf[0], label);\n }\n const refuse = (reason) => {\n throw new TypeError(`${label}: ${reason}`);\n };\n if (schema.$ref) {\n return validateVueOption(value, definitions[schema.$ref.split(\"/\").at(-1)], label);\n }\n if (schema.oneOf) {\n const matches = schema.oneOf.filter((candidate) => {\n try {\n validateVueOption(value, candidate, label);\n return true;\n } catch (error) {\n if (!(error instanceof TypeError)) throw error;\n return false;\n }\n });\n if (matches.length !== 1) refuse(\"must match one documented native option type\");\n return;\n }\n if (schema.enum && !schema.enum.includes(value)) refuse(\"unsupported native option value\");\n const valid = {\n object: object(value),\n array: Array.isArray(value),\n string: typeof value === \"string\",\n boolean: typeof value === \"boolean\",\n integer: Number.isInteger(value),\n number: typeof value === \"number\" && Number.isFinite(value),\n null: value === null,\n };\n if (schema.type && !valid[schema.type]) refuse(`must be ${schema.type}`);\n if (schema.minimum !== undefined && value < schema.minimum)\n refuse(`must be >= ${schema.minimum}`);\n if (schema.maximum !== undefined && value > schema.maximum)\n refuse(`must be <= ${schema.maximum}`);\n if (typeof value === \"string\" && schema.pattern && !new RegExp(schema.pattern).test(value))\n refuse(`must match ${schema.pattern}`);\n if (Array.isArray(value) && schema.items) {\n for (let index = 0; index < value.length; index++) {\n validateVueOption(value[index], schema.items, `${label}[${index}]`);\n }\n }\n if (Array.isArray(value) && schema.uniqueItems) {\n const keys = value.map((item) =>\n JSON.stringify(item, (_key, entry) =>\n object(entry)\n ? Object.fromEntries(\n Object.entries(entry).sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)),\n )\n : entry,\n ),\n );\n if (new Set(keys).size !== keys.length) refuse(\"must contain unique items\");\n }\n if (object(value)) {\n for (const required of schema.required ?? []) {\n if (!Object.hasOwn(value, required) || value[required] === undefined)\n refuse(`missing ${required}`);\n }\n for (const [key, item] of Object.entries(value)) {\n const documented = Object.hasOwn(schema.properties ?? {}, key);\n if (!documented && schema.additionalProperties === false) refuse(`unknown option \"${key}\"`);\n if (schema.propertyNames?.pattern && !new RegExp(schema.propertyNames.pattern).test(key)) {\n refuse(`invalid native option name ${key}`);\n }\n const rule = documented ? schema.properties[key] : schema.additionalProperties;\n if (item !== undefined && object(rule)) validateVueOption(item, rule, `${label}.${key}`);\n }\n }\n }\n return validateVueOption;\n}\n","// This dependency-free projection is also embedded by the native config loader.\nimport { resolve } from \"node:path\";\nimport { createVueOptionValidator } from \"./vite-runtime-validation.js\";\n\n// Generated validation subset of npm/cli/schemas/vize.config.schema.json.\n// The canonical Vue options reuse every existing native section except retired config inheritance.\n// The source law compares every retained schema rule with the authoritative native schema.\nconst vueOptionSchema = JSON.parse(\n '{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"experimentals\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"object\",\"additionalProperties\":true},{\"type\":\"null\"}]}},\"dialect\":{\"type\":\"string\",\"enum\":[\"vue\",\"petite-vue\"]},\"vite\":{\"$ref\":\"#/definitions/VitePluginConfig\"},\"musea\":{\"$ref\":\"#/definitions/MuseaConfig\"},\"typeChecker\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"},\"formatter\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"languageServer\":{\"$ref\":\"#/definitions/LanguageServerConfig\"},\"globalTypes\":{\"$ref\":\"#/definitions/GlobalTypesConfig\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"lib\":{\"$ref\":\"#/definitions/LibConfig\"},\"compile\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"typeCheck\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"fmt\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"lint\":{\"type\":\"object\",\"required\":[\"jsPlugins\",\"plugins\",\"rules\",\"settings\"],\"properties\":{\"jsPlugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"plugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"rules\":{\"type\":\"object\",\"additionalProperties\":true},\"settings\":{\"type\":\"object\",\"additionalProperties\":true},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"overrides\":{\"type\":\"array\"}},\"additionalProperties\":true},\"version\":{\"$ref\":\"#/definitions/VueVersion\"},\"entries\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"basePath\":{\"type\":\"string\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"}},\"additionalProperties\":false}}},\"additionalProperties\":false,\"definitions\":{\"CompilerConfig\":{\"type\":\"object\",\"properties\":{\"mode\":{\"type\":\"string\",\"enum\":[\"module\",\"function\"]},\"vapor\":{\"type\":\"boolean\"},\"jsxMode\":{\"type\":\"string\",\"enum\":[\"vdom\",\"vapor\"]},\"jsxCompat\":{\"type\":\"string\",\"enum\":[\"native\",\"babel\"]},\"customRenderer\":{\"type\":\"boolean\"},\"customElements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ssr\":{\"type\":\"boolean\"},\"templateSyntax\":{\"type\":\"string\",\"enum\":[\"standard\",\"strict\",\"quirks\"]},\"whitespace\":{\"type\":\"string\",\"enum\":[\"condense\",\"preserve\",\"vue2-line-breaks\",\"vue2-preserve\"]},\"sourceMap\":{\"type\":\"boolean\"},\"prefixIdentifiers\":{\"type\":\"boolean\"},\"hoistStatic\":{\"type\":\"boolean\"},\"cacheHandlers\":{\"type\":\"boolean\"},\"comments\":{\"type\":\"boolean\"},\"isTs\":{\"type\":\"boolean\"},\"scriptExt\":{\"type\":\"string\",\"enum\":[\"ts\",\"js\"]},\"runtimeModuleName\":{\"type\":\"string\"},\"runtimeGlobalName\":{\"type\":\"string\"},\"compatibility\":{\"$ref\":\"#/definitions/CompilerCompatibilityConfig\"}},\"additionalProperties\":false},\"CompilerCompatibilityConfig\":{\"type\":\"object\",\"properties\":{\"vueVersion\":{\"$ref\":\"#/definitions/VueVersion\"},\"hostCompiler\":{\"type\":\"boolean\"},\"scriptSetupInStandalone\":{\"type\":\"boolean\"},\"optionsApiVapor\":{\"type\":\"boolean\"},\"nuxtVersion\":{\"type\":\"integer\",\"enum\":[2,3,4]},\"webpackVersion\":{\"type\":\"integer\",\"enum\":[4,5]}},\"additionalProperties\":false},\"VueVersion\":{\"type\":\"string\",\"enum\":[\"3\",\"2.7\",\"2\",\"1\",\"0.11\",\"0.10\"]},\"VitePluginConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"exclude\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"scanPatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"MuseaConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"exclude\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"storybookCompat\":{\"type\":\"boolean\"},\"inlineArt\":{\"type\":\"boolean\"},\"vrt\":{\"$ref\":\"#/definitions/MuseaVrtConfig\"},\"a11y\":{\"$ref\":\"#/definitions/MuseaA11yConfig\"},\"autogen\":{\"$ref\":\"#/definitions/MuseaAutogenConfig\"}},\"additionalProperties\":false},\"MuseaVrtConfig\":{\"type\":\"object\",\"properties\":{\"threshold\":{\"type\":\"number\"},\"outDir\":{\"type\":\"string\"},\"viewports\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaViewport\"}}},\"additionalProperties\":false},\"MuseaViewport\":{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"integer\"},\"height\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"width\",\"height\"]},\"MuseaA11yConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"boolean\"}}},\"additionalProperties\":false},\"MuseaAutogenConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"maxVariants\":{\"type\":\"integer\"}},\"additionalProperties\":false},\"TypeCheckerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"strict\":{\"type\":\"boolean\"},\"checkProps\":{\"type\":\"boolean\"},\"checkEmits\":{\"type\":\"boolean\"},\"checkTemplateBindings\":{\"type\":\"boolean\"},\"checkReactivity\":{\"type\":\"boolean\"},\"checkSetupContext\":{\"type\":\"boolean\"},\"checkInvalidExports\":{\"type\":\"boolean\"},\"checkFallthroughAttrs\":{\"type\":\"boolean\"},\"optionsApi\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"jsxTypecheck\":{\"type\":\"boolean\"},\"tsconfig\":{\"type\":\"string\"},\"corsaPath\":{\"type\":\"string\"},\"tsgoPath\":{\"type\":\"string\"},\"tsrsPath\":{\"type\":\"string\"},\"globalsFile\":{\"type\":\"string\"},\"servers\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":32},\"lspRequestTimeoutMs\":{\"type\":\"integer\",\"minimum\":1}},\"additionalProperties\":false},\"LinterConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"type\":\"string\",\"enum\":[\"general-recommended\",\"general_recommended\",\"generalRecommended\",\"happy-path\",\"happy_path\",\"happy\",\"default\",\"recommended\",\"opinionated\",\"strict\",\"all\",\"essential\",\"incremental\",\"ecosystem\",\"nuxt\"]},\"typeAware\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"crossFileTree\":{\"type\":\"boolean\"},\"crossFileComplexity\":{\"type\":\"boolean\"},\"strictReactivity\":{\"type\":\"boolean\"},\"maxWarnings\":{\"type\":\"integer\",\"minimum\":0},\"reportUnusedDisableDirectives\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"ruleOptions\":{\"$ref\":\"#/definitions/LintRuleOptions\"},\"categories\":{\"type\":\"object\",\"properties\":{\"correctness\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"suspicious\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"style\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"perf\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"a11y\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"security\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"additionalProperties\":false}},\"additionalProperties\":false},\"LintRuleOptions\":{\"type\":\"object\",\"properties\":{\"script/define-macros-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true},\"defineExposeLast\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/define-props-destructuring\":{\"type\":\"object\",\"properties\":{\"destructure\":{\"type\":\"string\",\"enum\":[\"only-when-assigned\",\"always\",\"never\"]}},\"additionalProperties\":false},\"html/no-empty-palpable-content\":{\"type\":\"object\",\"properties\":{\"contentDirectives\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"type/strict-boolean-expressions\":{\"type\":\"object\",\"properties\":{\"allowString\":{\"type\":\"boolean\"},\"allowNumber\":{\"type\":\"boolean\"},\"allowNullableObject\":{\"type\":\"boolean\"},\"allowNullableBoolean\":{\"type\":\"boolean\"},\"allowNullableString\":{\"type\":\"boolean\"},\"allowNullableNumber\":{\"type\":\"boolean\"},\"allowNullableEnum\":{\"type\":\"boolean\"},\"allowAny\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/no-restricted-globals\":{\"$ref\":\"#/definitions/NoRestrictedGlobalsOptions\"},\"script/no-restricted-members\":{\"$ref\":\"#/definitions/NoRestrictedMembersOptions\"},\"vue/component-name-in-template-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"PascalCase\",\"kebab-case\"]},\"registeredComponentsOnly\":{\"type\":\"boolean\"},\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"script/custom-event-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"kebab-case\"]}},\"additionalProperties\":false},\"vue/prop-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"snake_case\"]}},\"additionalProperties\":false},\"vue/no-mutating-props\":{\"type\":\"object\",\"properties\":{\"shallowOnly\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"vue/require-component-registration\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/sfc-element-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]}}},\"additionalProperties\":false},\"vue/html-self-closing\":{\"type\":\"object\",\"properties\":{\"html\":{\"type\":\"object\",\"properties\":{\"void\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"normal\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"component\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"svg\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"math\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"vue/html-quotes\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},\"avoidEscape\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/mustache-interpolation-spacing\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-on-event-hyphenation\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"ignore\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"pattern\":\"^(?!\\\\\\\\s*$)(?![\\\\\\\\s\\\\\\\\S]*:exit$)\"},\"uniqueItems\":true},\"autofix\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/v-bind-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-on-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-slot-style\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},{\"type\":\"object\",\"properties\":{\"atComponent\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"default\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"named\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]}},\"additionalProperties\":false}]},\"vue/attribute-hyphenation\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"ignore\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"pattern\":\"^(?!\\\\\\\\s*$)(?![\\\\\\\\s\\\\\\\\S]*:exit$)\"},\"uniqueItems\":true}},\"additionalProperties\":false}]},\"vue/valid-v-on\":{\"type\":\"object\",\"properties\":{\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/valid-v-slot\":{\"type\":\"object\",\"properties\":{\"allowModifiers\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"musea/prefer-design-tokens\":{\"$ref\":\"#/definitions/MuseaPreferDesignTokensOptions\"}},\"additionalProperties\":false},\"NoRestrictedGlobalsOptions\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedGlobal\"}}},\"additionalProperties\":false},\"RestrictedGlobal\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"name\"]},\"NoRestrictedMembersOptions\":{\"type\":\"object\",\"properties\":{\"members\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedMember\"}}},\"additionalProperties\":false},\"RestrictedMember\":{\"type\":\"object\",\"properties\":{\"object\":{\"type\":\"string\"},\"property\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"object\",\"property\"]},\"MuseaPreferDesignTokensOptions\":{\"type\":\"object\",\"properties\":{\"tokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaDesignToken\"}}},\"additionalProperties\":false},\"MuseaDesignToken\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"tier\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"path\",\"value\"]},\"FormatterConfig\":{\"type\":\"object\",\"properties\":{\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"preset\":{\"type\":\"string\",\"enum\":[\"vize\",\"prettier\",\"compact\",\"documentation\"]},\"sortImports\":{\"oneOf\":[{\"type\":\"boolean\",\"enum\":[false]},{\"$ref\":\"#/definitions/SortImportsConfig\"}]},\"printWidth\":{\"type\":\"integer\"},\"tabWidth\":{\"type\":\"integer\"},\"useTabs\":{\"type\":\"boolean\"},\"semi\":{\"type\":\"boolean\"},\"singleQuote\":{\"type\":\"boolean\"},\"jsxSingleQuote\":{\"type\":\"boolean\"},\"trailingComma\":{\"type\":\"string\",\"enum\":[\"all\",\"none\",\"es5\"]},\"bracketSpacing\":{\"type\":\"boolean\"},\"bracketSameLine\":{\"type\":\"boolean\"},\"arrowParens\":{\"type\":\"string\",\"enum\":[\"always\",\"avoid\"]},\"endOfLine\":{\"type\":\"string\",\"enum\":[\"lf\",\"crlf\",\"cr\",\"auto\"]},\"quoteProps\":{\"type\":\"string\",\"enum\":[\"as-needed\",\"consistent\",\"preserve\"]},\"singleAttributePerLine\":{\"type\":\"boolean\"},\"vueIndentScriptAndStyle\":{\"type\":\"boolean\"},\"sortAttributes\":{\"type\":\"boolean\"},\"attributeSortOrder\":{\"type\":\"string\",\"enum\":[\"alphabetical\",\"as-written\"]},\"mergeBindAndNonBindAttrs\":{\"type\":\"boolean\"},\"maxAttributesPerLine\":{\"type\":\"integer\"},\"attributeGroups\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"normalizeDirectiveShorthands\":{\"type\":\"boolean\"},\"sortBlocks\":{\"type\":\"boolean\"},\"normalizeCssQuotes\":{\"type\":\"boolean\"},\"normalizeInlineStyles\":{\"type\":\"boolean\"},\"normalizeVForParens\":{\"type\":\"boolean\"},\"selfCloseVoidElements\":{\"type\":\"boolean\"},\"reindentPreprocessorStyles\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"SortImportsConfig\":{\"type\":\"object\",\"properties\":{\"partitionByNewline\":{\"type\":\"boolean\"},\"partitionByComment\":{\"type\":\"boolean\"},\"sortSideEffects\":{\"type\":\"boolean\"},\"order\":{\"type\":\"string\",\"enum\":[\"asc\",\"desc\"]},\"ignoreCase\":{\"type\":\"boolean\"},\"newlinesBetween\":{\"type\":\"boolean\"},\"internalPattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"groups\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}},{\"type\":\"object\",\"properties\":{\"newlinesBetween\":{\"type\":\"boolean\"}},\"additionalProperties\":false,\"required\":[\"newlinesBetween\"]}]}},\"customGroups\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ImportSortCustomGroup\"}}},\"additionalProperties\":false},\"ImportSortCustomGroup\":{\"type\":\"object\",\"properties\":{\"groupName\":{\"type\":\"string\"},\"elementNamePattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"selector\":{\"type\":\"string\"},\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false,\"required\":[\"groupName\"]},\"LanguageServerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"lint\":{\"type\":\"boolean\"},\"diagnostics\":{\"type\":\"boolean\"},\"typecheck\":{\"type\":\"boolean\"},\"editor\":{\"type\":\"boolean\"},\"ecosystem\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"completion\":{\"type\":\"boolean\"},\"signatureHelp\":{\"type\":\"boolean\"},\"hover\":{\"type\":\"boolean\"},\"definition\":{\"type\":\"boolean\"},\"references\":{\"type\":\"boolean\"},\"documentSymbols\":{\"type\":\"boolean\"},\"workspaceSymbols\":{\"type\":\"boolean\"},\"formatting\":{\"type\":\"boolean\"},\"codeActions\":{\"type\":\"boolean\"},\"rename\":{\"type\":\"boolean\"},\"codeLens\":{\"type\":\"boolean\"},\"semanticTokens\":{\"type\":\"boolean\"},\"documentLinks\":{\"type\":\"boolean\"},\"foldingRanges\":{\"type\":\"boolean\"},\"inlayHints\":{\"type\":\"boolean\"},\"fileRename\":{\"type\":\"boolean\"},\"corsa\":{\"type\":\"boolean\"},\"tsgo\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"GlobalTypesConfig\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/definitions/GlobalTypeDeclaration\"}]}},\"GlobalTypeDeclaration\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\"},\"defaultValue\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"type\"]},\"LibConfig\":{\"type\":\"object\",\"properties\":{\"dir\":{\"type\":\"string\"},\"uiDir\":{\"type\":\"string\"},\"composableDir\":{\"type\":\"string\"},\"lockfile\":{\"type\":\"string\"},\"registries\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"dir\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"source\"]}]},\"propertyNames\":{\"pattern\":\"^@[a-z0-9][a-z0-9._-]*$\"}}},\"additionalProperties\":false}}}',\n);\n\n// Read the source of our Vite+ factory without starting Vite, plugins or tasks.\nconst sourceConfigKey = Symbol.for(\"@vizejs/vite-plugin/vite-plus/source\");\n\nfunction object(value) {\n if (value === null || typeof value !== \"object\") return false;\n const prototype = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n}\n\nfunction merge(base, own) {\n const result = { ...base };\n for (const [key, value] of Object.entries(own)) {\n result[key] = object(value) && object(result[key]) ? merge(result[key], value) : value;\n }\n return result;\n}\n\nasync function resolveSource(value, env, parents = new Set()) {\n value = await value;\n if (parents.has(value)) throw new Error(\"Circular Vue configuration source\");\n parents.add(value);\n try {\n if ((typeof value === \"function\" || object(value)) && sourceConfigKey in value) {\n return await resolveSource(value[sourceConfigKey], env, parents);\n }\n const config = await (typeof value === \"function\" ? value(env) : value);\n if (!object(config)) throw new Error(\"Vite config must export an object or a config function\");\n rejectLegacyConfig(config);\n return config;\n } finally {\n parents.delete(value);\n }\n}\n\nfunction rejectLegacyConfig(source) {\n // Vitest owns boolean `extends` on inline project configs. It may retain\n // that field on the Vite config passed to configResolved. Native config\n // exports still reject extends in their own normalizer, and vue: remains\n // independently schema-validated below.\n if (Object.hasOwn(source, \"extends\") && typeof source.extends !== \"boolean\") {\n throw new Error(\n \"Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig)\",\n );\n }\n if (Object.hasOwn(source, \"vize\")) {\n throw new Error(\n \"vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*\",\n );\n }\n for (const key of [\"lint\", \"fmt\", \"pack\"]) {\n const values = Array.isArray(source[key]) ? source[key] : [source[key]];\n if (values.some((value) => object(value) && Object.hasOwn(value, \"vize\"))) {\n throw new Error(\n key === \"lint\"\n ? \"lint.vize is no longer supported; pass { lint: false } as defineConfig's integration options to disable the Vite+ native lint task while keeping CLI lint enabled, and put shared lint settings in vue.linter\"\n : `${key}.vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*`,\n );\n }\n }\n}\n\nexport const VITE_CONFIG_FILE_NAMES = [\n \"vite.config.ts\",\n \"vite.config.js\",\n \"vite.config.mjs\",\n \"vite.config.cjs\",\n \"vite.config.mts\",\n \"vite.config.cts\",\n];\n\nexport function isViteConfigFile(filePath) {\n return /(?:^|[/\\\\])vite\\.config\\.(?:[cm]?[jt]s)$/.test(filePath);\n}\n\n/** Project workflows support JSX without an extra feature flag. Legacy config stays unchanged. */\nexport function projectConfigDefaults() {\n return { typeChecker: { jsxTypecheck: true } };\n}\n\n/** Resolve just the native settings from an ordinary Vite or Vite+ export. */\nexport async function resolveViteConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n // Dedicated Vize workflows also use commands such as lint and check. A Vite\n // function receives only Vite's serve/build discriminator, without mutation.\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n return projectViteConfigSource(source, env, configDir);\n}\n\n/** Resolve an authored Vite export without projecting away Vite-owned task settings. */\nexport async function resolveViteConfigSource(exported, env) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n return resolveSource(exported, env);\n}\n\n/** Resolve an explicitly selected CLI config as Vite config independent of its basename. */\nexport async function resolveExplicitViteConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n return projectExplicitViteConfigSource(source, env, configDir);\n}\n\n/** Preserve an archived native export only when its shape proves that role. */\nexport async function resolveExplicitSerializedConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n if (\n [\n \"compiler\",\n \"typeChecker\",\n \"linter\",\n \"formatter\",\n \"languageServer\",\n \"globalTypes\",\n \"files\",\n \"ignores\",\n \"entries\",\n ].some((key) => Object.hasOwn(source, key))\n ) {\n return source;\n }\n return projectExplicitViteConfigSource(source, env, configDir);\n}\n\nfunction projectExplicitViteConfigSource(source, env, configDir) {\n if (\n [\"linter\", \"formatter\", \"languageServer\", \"globalTypes\", \"files\", \"ignores\", \"entries\"].some(\n (key) => Object.hasOwn(source, key),\n )\n ) {\n throw new Error(\n \"vize.config.* is no longer supported; move Vue settings to vue: in vite.config.* and TypeScript settings to tsconfig.json\",\n );\n }\n return projectViteConfigSource(source, env, configDir);\n}\n\n/** Project already evaluated settings; the owning adapter evaluates its Vite export once. */\nexport async function projectViteConfigSource(source, env, configDir) {\n if (!object(source)) throw new TypeError(\"Vite config source must be an object\");\n env ??= { mode: \"development\", command: \"serve\" };\n // Adapters may pass a native task environment after evaluating the Vite source.\n // Its legacy native callback shares the same idempotent Vite command mapping.\n if (env.command !== \"build\" && env.command !== \"serve\") env = { ...env, command: \"serve\" };\n rejectLegacyConfig(source);\n const selected = normalizeVueConfigOptions(source);\n const canonical = selected === undefined ? {} : flatVueOptions(selected);\n const overrides = {};\n if (object(source.compiler)) {\n const { vueVersion, ...compiler } = source.compiler;\n const version = vueVersion ?? compiler.compatibility?.vueVersion;\n overrides.compiler = merge(\n compiler,\n version === undefined\n ? {}\n : {\n // Numeric 0.1 is the newly public spelling of Vue 0.10.\n compatibility: {\n vueVersion: String(version === 0.1 ? \"0.10\" : version === \"legacy\" ? 2 : version),\n },\n },\n );\n }\n if (typeof source.typecheck === \"boolean\") overrides.typeChecker = { enabled: source.typecheck };\n else if (object(source.typecheck)) overrides.typeChecker = source.typecheck;\n if (object(source.lint)) {\n const linter = projectVitePlusLintConfig(source.lint);\n validateVueOption(linter, { $ref: \"#/definitions/LinterConfig\" }, \"lint\");\n if (Object.keys(linter).length !== 0) overrides.linter = linter;\n // Host overrides stay on the untouched Vite source. Their lint-only\n // excludeFiles scopes cannot use shared entries without changing other\n // commands' file selection. Only the global controls are projected here.\n }\n const lint = source.lint?.vue;\n if (typeof lint === \"boolean\") {\n overrides.linter = overlayVueOptions(overrides.linter ?? {}, { enabled: lint });\n } else if (object(lint)) {\n const { typecheck: _typecheck, locale: _locale, helpLevel: _helpLevel, ...native } = lint;\n overrides.linter = overlayVueOptions(overrides.linter ?? {}, native, \"linter\");\n }\n if (object(source.fmt)) {\n // Share supported formatter controls without forwarding host-owned tasks,\n // language switches, or options that the native formatter does not expose.\n const keys = vueOptionSchema.definitions.FormatterConfig.properties;\n const common = Object.fromEntries(\n Object.entries(source.fmt).filter(([key]) => Object.hasOwn(keys, key)),\n );\n // Excluding every Vue file from Oxfmt hands `.vue` to Vize, like the\n // integration's own `**/*.vue` entry; it never excludes them from Vize.\n if (Array.isArray(common.ignorePatterns)) {\n common.ignorePatterns = common.ignorePatterns.filter(\n (pattern) => !excludesEveryVueFile(pattern),\n );\n }\n overrides.formatter = overlayVueOptions(common, object(source.fmt.vue) ? source.fmt.vue : {});\n validateVueOption(overrides.formatter, { $ref: \"#/definitions/FormatterConfig\" }, \"fmt\");\n }\n const root = typeof source.root === \"string\" ? resolve(configDir ?? \".\", source.root) : configDir;\n const config = overlayVueOptions(merge(projectConfigDefaults(), overrides), canonical);\n return root ? { ...projectPaths(config, root, false), __vizeProjectRoot: root } : config;\n}\n\n// `*.vue` and `**/*.vue` match Vue files at every depth.\nfunction excludesEveryVueFile(pattern) {\n if (typeof pattern !== \"string\") return false;\n let rest = pattern;\n while (rest.startsWith(\"**/\")) rest = rest.slice(3);\n return rest === \"*.vue\";\n}\n\n/** Validate only canonical settings; selecting them never evaluates a legacy callback. */\nexport function vueConfigOptions(source) {\n const selected = source.vue;\n if (selected !== undefined) {\n validateVueOption(selected, vueOptionSchema, \"vue\");\n assertVueActionAliases(selected, \"vue\");\n }\n return selected;\n}\n\n/** Resolve preferred action names to the native section names without mutating authored input. */\nfunction normalizeVueConfigOptions(source) {\n const selected = vueConfigOptions(source);\n return selected === undefined ? undefined : normalizeVueActionAliases(selected, \"vue\");\n}\n\n/** Share canonical composition with adapters while their other Vite fields keep Vite merging. */\nexport function mergeVueConfigOptions(base, own) {\n vueConfigOptions({ vue: base });\n vueConfigOptions({ vue: own });\n if (base === undefined) return own;\n if (own === undefined) return base;\n const result = overlayVueOptions(base, own);\n vueConfigOptions({ vue: result });\n return result;\n}\n\nconst vueActionAliases = [\n [\"compile\", \"compiler\"],\n [\"typeCheck\", \"typeChecker\"],\n [\"fmt\", \"formatter\"],\n];\n\nfunction assertVueActionAliases(value, label) {\n for (const [action, compatibility] of vueActionAliases) {\n if (value[action] !== undefined && value[compatibility] !== undefined) {\n throw new TypeError(\n `${label}.${action}: conflicts with compatibility alias ${label}.${compatibility}; remove ${label}.${compatibility} and use ${label}.${action}`,\n );\n }\n }\n if (value.lint !== undefined && value.linter !== undefined) {\n throw new TypeError(\n `${label}.lint: conflicts with compatibility alias ${label}.linter; remove ${label}.linter and use ${label}.lint, with native rules under settings.vize`,\n );\n }\n for (let index = 0; index < (value.entries?.length ?? 0); index++) {\n assertVueActionAliases(value.entries[index], `${label}.entries[${index}]`);\n }\n}\n\nfunction normalizeVueActionAliases(value, label) {\n assertVueActionAliases(value, label);\n const result = { ...value };\n for (const [action, compatibility] of vueActionAliases) {\n if (result[action] === undefined) continue;\n result[compatibility] = result[action];\n delete result[action];\n }\n if (result.lint !== undefined) {\n const lint = result.lint;\n const linter = projectVitePlusLintConfig(lint);\n validateVueOption(linter, { $ref: \"#/definitions/LinterConfig\" }, `${label}.lint`);\n result.linter = linter;\n delete result.lint;\n const projectedEntries = projectVitePlusLintOverrides(lint, `${label}.lint`);\n if (projectedEntries.length !== 0) {\n result.entries = [...projectedEntries, ...(result.entries ?? [])];\n }\n }\n if (Array.isArray(result.entries)) {\n result.entries = result.entries.map((entry, index) =>\n normalizeVueActionAliases(entry, `${label}.entries[${index}]`),\n );\n }\n return result;\n}\n\nfunction projectVitePlusLintConfig(lint) {\n const settings = object(lint.settings?.vize) ? lint.settings.vize : {};\n const linter = {};\n for (const key of [\"preset\", \"typeAware\"]) {\n if (settings[key] !== undefined) linter[key] = settings[key];\n }\n const rules = {};\n const ruleOptions = {};\n for (const [id, entry] of Object.entries(object(lint.rules) ? lint.rules : {})) {\n if (!id.startsWith(\"vize/\")) continue;\n const name = id.slice(\"vize/\".length);\n const rawSeverity = Array.isArray(entry) ? entry[0] : entry;\n const severity =\n rawSeverity === 0\n ? \"off\"\n : rawSeverity === 1\n ? \"warn\"\n : rawSeverity === 2\n ? \"error\"\n : rawSeverity;\n if (severity === \"off\" || severity === \"warn\" || severity === \"error\") {\n rules[name] = severity;\n } else {\n throw new TypeError(`lint.rules.${id}: unsupported rule severity`);\n }\n if (Array.isArray(entry) && entry[1] !== undefined) {\n ruleOptions[name] = entry[1];\n }\n }\n if (Object.keys(rules).length !== 0) linter.rules = rules;\n if (Object.keys(ruleOptions).length !== 0) linter.ruleOptions = ruleOptions;\n return linter;\n}\n\nfunction projectVitePlusLintOverrides(lint, label) {\n if (!Array.isArray(lint.overrides)) return [];\n return lint.overrides.flatMap((override, index) => {\n if (!object(override)) return [];\n const linter = projectVitePlusLintConfig(override);\n if (linter.rules === undefined && linter.ruleOptions === undefined) return [];\n validateVueOption(\n linter,\n { $ref: \"#/definitions/LinterConfig\" },\n `${label}.overrides[${index}]`,\n );\n const files = stringArray(override.files, `${label}.overrides[${index}].files`);\n const ignores =\n override.excludeFiles === undefined\n ? undefined\n : stringArray(override.excludeFiles, `${label}.overrides[${index}].excludeFiles`);\n return [{ files, ...(ignores === undefined ? {} : { ignores }), linter }];\n });\n}\n\nfunction stringArray(value, label) {\n if (!Array.isArray(value) || !value.every((entry) => typeof entry === \"string\")) {\n throw new TypeError(`${label}: must be an array of strings to project vize/* rules`);\n }\n return [...value];\n}\n\nfunction flatVueOptions(selected) {\n const { version, entries, ...sections } = selected;\n return {\n ...sections,\n ...(version === undefined ? {} : { vue: { version } }),\n ...(entries === undefined ? {} : { entries: entries.map(flatVueOptions) }),\n };\n}\n\n// Native arrays and whole rule policies replace; undefined remains absent.\nfunction overlayVueOptions(base, own, path = \"\") {\n const result = { ...base };\n for (const [key, value] of Object.entries(own)) {\n if (value === undefined) continue;\n const previous = Object.hasOwn(result, key) ? result[key] : undefined;\n Object.defineProperty(result, key, {\n value:\n path !== \"linter.ruleOptions\" && object(value) && object(previous)\n ? overlayVueOptions(previous, value, path ? `${path}.${key}` : key)\n : value,\n enumerable: true,\n configurable: true,\n writable: true,\n });\n }\n return result;\n}\n\nconst validateVueOption = createVueOptionValidator(\n vueOptionSchema.definitions,\n object,\n vueOptionSchema.definitions.LintRuleOptions.properties[\"vue/attribute-hyphenation\"],\n);\n\n// Vite-owned settings use its root. Dedicated Vize files keep their established\n// config-directory path contract, and CLI arguments never pass through here.\nfunction projectPaths(config, root, entry) {\n if (!root || !object(config)) return config;\n const result = { ...config };\n if (\n typeof config.basePath === \"string\" ||\n config.files !== undefined ||\n (entry && config.ignores !== undefined)\n ) {\n result.basePath = resolve(root, config.basePath ?? \".\");\n }\n if (Array.isArray(config.entries)) {\n result.entries = config.entries.map((value) => projectPaths(value, root, true));\n }\n if (object(config.typeChecker)) {\n result.typeChecker = { ...config.typeChecker };\n for (const key of [\"tsconfig\", \"corsaPath\", \"tsgoPath\", \"tsrsPath\", \"globalsFile\"]) {\n if (typeof config.typeChecker[key] === \"string\") {\n result.typeChecker[key] = resolve(root, config.typeChecker[key]);\n }\n }\n }\n return result;\n}\n","import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { randomUUID } from \"node:crypto\";\nimport { createRequire } from \"node:module\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport type {\n ResolvedVizeConfig,\n LoadConfigOptions,\n UserConfigExport,\n ConfigEnv,\n GlobalTypesConfig,\n GlobalTypeDeclaration,\n} from \"./types/index.js\";\nimport { loadPklConfigJson } from \"./config/pkl.js\";\nimport { importConfigModule } from \"./config/module-runtime.mjs\";\nimport {\n VITE_CONFIG_FILE_NAMES,\n isViteConfigFile,\n resolveViteConfigExport as projectViteConfigExport,\n} from \"./config/vite-runtime.mjs\";\n\nexport { VITE_CONFIG_FILE_NAMES } from \"./config/vite-runtime.mjs\";\n\ntype NativeConfigHelpers = {\n normalizeVizeConfig(value: unknown): unknown;\n};\n\nconst require = createRequire(import.meta.url);\n\nexport const CONFIG_FILE_NAMES = VITE_CONFIG_FILE_NAMES;\nconst RETIRED_CONFIG = /^vize\\.config\\.(?:pkl|[cm]?[jt]s|json)$/;\nconst CONFIG_MIGRATION =\n \"vize.config.* is no longer supported; move Vue settings to vue: in vite.config.* and TypeScript settings to tsconfig.json\";\n\nconst DEFAULT_CONFIG_ENV: ConfigEnv = {\n mode: \"development\",\n command: \"serve\",\n};\n\nconst PACKAGE_ROOT = path.resolve(fileURLToPath(new URL(\".\", import.meta.url)), \"..\");\n\nexport const VIZE_CONFIG_JSON_SCHEMA_PATH = path.join(\n PACKAGE_ROOT,\n \"schemas\",\n \"vize.config.schema.json\",\n);\n\nexport const VIZE_CONFIG_PKL_SCHEMA_PATH = path.join(PACKAGE_ROOT, \"pkl\", \"vize.pkl\");\n\n/**\n * Define a Vize configuration with type checking.\n * Accepts a plain object or a function that receives ConfigEnv.\n */\nexport function defineConfig(config: UserConfigExport): UserConfigExport {\n return config;\n}\n\n/** Resolve native settings from an already loaded Vite/Vite+ export, without starting its plugins. */\nexport async function resolveViteConfigExport(\n exported: unknown,\n env?: ConfigEnv,\n configDir?: string,\n): Promise<ResolvedVizeConfig> {\n return normalizeLoadedConfig(await projectViteConfigExport(exported, env, configDir));\n}\n\n/**\n * Load project settings from `vite.config.*`; TypeScript settings stay in tsconfig.json.\n */\nexport async function loadConfig(\n root: string,\n options: LoadConfigOptions = {},\n): Promise<ResolvedVizeConfig | null> {\n const { mode = \"root\", configFile, env, viteConfig = true } = options;\n\n if (mode === \"none\") {\n return null;\n }\n\n if (configFile) {\n const absolutePath = path.isAbsolute(configFile) ? configFile : path.resolve(root, configFile);\n if (fs.existsSync(absolutePath)) {\n return loadConfigFile(absolutePath, env);\n }\n return null;\n }\n\n if (mode === \"auto\") {\n return loadConfigFromDirAuto(root, env, viteConfig);\n }\n\n return loadConfigFromDir(root, env, viteConfig);\n}\n\nasync function loadConfigFromDir(\n dir: string,\n env?: ConfigEnv,\n viteConfig = true,\n): Promise<ResolvedVizeConfig | null> {\n // Reject before reading Vite. A leftover dedicated file is an error, not an override.\n if (\n viteConfig &&\n fs.existsSync(dir) &&\n fs.readdirSync(dir).some((name) => RETIRED_CONFIG.test(name))\n ) {\n throw new Error(CONFIG_MIGRATION);\n }\n for (const name of viteConfig ? CONFIG_FILE_NAMES : []) {\n const filePath = path.join(dir, name);\n if (!fs.existsSync(filePath)) {\n continue;\n }\n\n const config = await loadConfigFile(filePath, env);\n if (config !== null) {\n return config;\n }\n }\n return null;\n}\n\nasync function loadConfigFromDirAuto(\n startDir: string,\n env?: ConfigEnv,\n viteConfig = true,\n): Promise<ResolvedVizeConfig | null> {\n let currentDir = path.resolve(startDir);\n\n while (true) {\n const config = await loadConfigFromDir(currentDir, env, viteConfig);\n if (config !== null) {\n return config;\n }\n\n if (\n [\"package.json\", \"tsconfig.json\", \"jsconfig.json\"].some((name) =>\n fs.existsSync(path.join(currentDir, name)),\n )\n ) {\n return null;\n }\n const parentDir = path.dirname(currentDir);\n if (parentDir === currentDir) {\n return null;\n }\n\n currentDir = parentDir;\n }\n}\n\nasync function loadConfigFile(\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig | null> {\n const absolutePath = path.resolve(filePath);\n if (RETIRED_CONFIG.test(path.basename(absolutePath))) throw new Error(CONFIG_MIGRATION);\n if (!fs.existsSync(absolutePath)) {\n return null;\n }\n\n const ext = path.extname(absolutePath);\n\n if (isViteConfigFile(absolutePath)) {\n // A project's installed Vite owns its module graph. Without Vite, retain\n // the existing TypeScript transform and fresh native import below.\n const module = await importConfigModule(absolutePath, () => null);\n if (module !== null) {\n return resolveFileExport((module.default ?? module) as UserConfigExport, absolutePath, env);\n }\n }\n\n if (ext === \".pkl\") {\n return loadPklConfig(absolutePath);\n }\n\n if (ext === \".json\") {\n const content = fs.readFileSync(absolutePath, \"utf-8\");\n return parseJsonConfig(content, absolutePath);\n }\n\n if (ext === \".ts\" || ext === \".mts\") {\n return loadTypeScriptConfig(absolutePath, env);\n }\n\n return loadESMConfig(absolutePath, env);\n}\n\nfunction loadPklConfig(filePath: string): ResolvedVizeConfig | null {\n const output = loadPklConfigJson(filePath);\n return output === null ? null : parseJsonConfig(output, filePath);\n}\n\nexport async function resolveConfigExport(\n exported: UserConfigExport,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n if (typeof exported === \"function\") {\n return normalizeLoadedConfig(await exported(env ?? DEFAULT_CONFIG_ENV));\n }\n\n return normalizeLoadedConfig(exported);\n}\n\nasync function loadTypeScriptConfig(\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n const source = fs.readFileSync(filePath, \"utf-8\");\n const oxcTransform = await import(\"oxc-transform\");\n const result = await oxcTransform.transform(filePath, source, {\n typescript: {\n onlyRemoveTypeImports: true,\n },\n });\n const code = rewriteSelfConfigImports(result.code);\n\n const tempFile = path.join(\n path.dirname(filePath),\n `.vize-config-${process.pid}-${Date.now()}-${randomUUID()}.mjs`,\n );\n fs.writeFileSync(tempFile, code, { flag: \"wx\", mode: 0o600 });\n\n try {\n const module = await importFresh(tempFile);\n const exported: UserConfigExport = module.default || module;\n return resolveFileExport(exported, filePath, env);\n } finally {\n fs.rmSync(tempFile, { force: true });\n }\n}\n\nasync function loadESMConfig(filePath: string, env?: ConfigEnv): Promise<ResolvedVizeConfig> {\n const module = await importFresh(filePath);\n const exported: UserConfigExport = module.default || module;\n return resolveFileExport(exported, filePath, env);\n}\n\nasync function resolveFileExport(\n exported: UserConfigExport,\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n return isViteConfigFile(filePath)\n ? resolveViteConfigExport(exported, env, path.dirname(filePath))\n : resolveConfigExport(exported, env);\n}\n\nasync function importFresh(filePath: string): Promise<Record<string, unknown>> {\n const fileUrl = pathToFileURL(filePath);\n fileUrl.searchParams.set(\"t\", String(fs.statSync(filePath).mtimeMs));\n return import(fileUrl.href);\n}\n\nfunction rewriteSelfConfigImports(code: string): string {\n return code\n .replace(/\\bfrom\\s+([\"'])(vize(?:\\/config)?)\\1/gu, (_match, quote, specifier) => {\n return `from ${quote}${resolveSelfConfigImportUrl(specifier)}${quote}`;\n })\n .replace(/\\bimport\\s+([\"'])(vize(?:\\/config)?)\\1/gu, (_match, quote, specifier) => {\n return `import ${quote}${resolveSelfConfigImportUrl(specifier)}${quote}`;\n })\n .replace(/\\bimport\\s*\\(\\s*([\"'])(vize(?:\\/config)?)\\1\\s*\\)/gu, (_match, quote, specifier) => {\n return `import(${quote}${resolveSelfConfigImportUrl(specifier)}${quote})`;\n });\n}\n\nfunction resolveSelfConfigImportUrl(specifier: string): string {\n const distTarget =\n specifier === \"vize\"\n ? path.join(PACKAGE_ROOT, \"dist\", \"index.mjs\")\n : path.join(PACKAGE_ROOT, \"dist\", \"config.mjs\");\n const sourceTarget = path.join(PACKAGE_ROOT, \"src\", \"config.ts\");\n return pathToFileURL(fs.existsSync(distTarget) ? distTarget : sourceTarget).href;\n}\n\nfunction parseJsonConfig(content: string, filePath: string): ResolvedVizeConfig {\n try {\n return normalizeLoadedConfig(JSON.parse(content));\n } catch (error) {\n throw new Error(`Failed to parse vize config JSON at ${filePath}: ${getErrorMessage(error)}`);\n }\n}\n\nfunction normalizeLoadedConfig(config: unknown): ResolvedVizeConfig {\n const hasExtends = (value: unknown) =>\n value !== null && typeof value === \"object\" && Object.hasOwn(value, \"extends\");\n const entries = Array.isArray(config)\n ? config\n : config && typeof config === \"object\" && \"entries\" in config\n ? (config as { entries?: unknown }).entries\n : undefined;\n if (hasExtends(config) || (Array.isArray(entries) && entries.some(hasExtends))) {\n throw new Error(\n \"Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig); standard tsconfig extends remains supported\",\n );\n }\n const native = require(\"@vizejs/native\") as NativeConfigHelpers;\n return native.normalizeVizeConfig(config ?? null) as ResolvedVizeConfig;\n}\n\nfunction getErrorMessage(error: unknown): string {\n if (error instanceof Error) {\n return error.message;\n }\n\n return String(error);\n}\n\n/**\n * Normalize GlobalTypesConfig shorthand strings to GlobalTypeDeclaration objects\n */\nexport function normalizeGlobalTypes(\n config: GlobalTypesConfig,\n): Record<string, GlobalTypeDeclaration> {\n const resolvedConfig =\n \"types\" in config &&\n typeof config.types === \"object\" &&\n config.types !== null &&\n !Array.isArray(config.types)\n ? config.types\n : config;\n\n const result: Record<string, GlobalTypeDeclaration> = {};\n for (const [key, value] of Object.entries(resolvedConfig)) {\n if (typeof value === \"string\") {\n result[key] = { type: value };\n } else {\n result[key] = value;\n }\n }\n return result;\n}\n"],"mappings":";;;;;;;;;;;;AAMA,MAAMA,iBAAeC,OAAK,QAAQ,cAAc,IAAI,IAAI,KAAK,OAAO,KAAK,GAAG,CAAC,GAAG,OAAO;AAEvF,MAAM,kCACJ;;;;;;;;;;;AAYF,SAAgB,kBAAkB,UAAU;CAC1C,MAAM,SAAS,cAAc;CAC7B,IAAI,CAAC,QAAQ;EACX,QAAQ,KACN,kHAEF;EACA,OAAO;CACT;CAEA,MAAM,kBAAkB,wCAAwC,QAAQ;CACxE,MAAM,eAAe,mBAAmB;CACxC,IAAI;EACF,OAAO,aAAa,QAAQ;GAAC;GAAQ;GAAM;GAAQ;EAAY,GAAG;GAChE,KAAKA,OAAK,QAAQ,QAAQ;GAC1B,UAAU;GACV,OAAO;IAAC;IAAU;IAAQ;GAAM;GAChC,SAAS;EACX,CAAC;CACH,SAAS,OAAO;EACd,M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K,QAAQ,KAAK,UAAU,GAC1E,MAAM,IAAI,MACR,0IACF;CAGF,OADe,QAAQ,gBACX,EAAE,oBAAoB,UAAU,IAAI;AAClD;AAEA,SAAS,gBAAgB,OAAwB;CAC/C,IAAI,iBAAiB,OACnB,OAAO,MAAM;CAGf,OAAO,OAAO,KAAK;AACrB;;;;AAKA,SAAgB,qBACd,QACuC;CACvC,MAAM,iBACJ,WAAW,UACX,OAAO,OAAO,UAAU,YACxB,OAAO,UAAU,QACjB,CAAC,MAAM,QAAQ,OAAO,KAAK,IACvB,OAAO,QACP;CAEN,MAAM,SAAgD,CAAC;CACvD,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,cAAc,GACtD,IAAI,OAAO,UAAU,UACnB,OAAO,OAAO,EAAE,MAAM,MAAM;MAE5B,OAAO,OAAO;CAGlB,OAAO;AACT"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-DJT3lOOg.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-DyzIXrfZ.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-
|
|
1
|
+
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-DJT3lOOg.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LibConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfig, type UserConfigEntry, type UserConfigExport, type UserConfigInput, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueConfig, type VueOptions, type VueOptionsEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-DyzIXrfZ.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.628.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@vizejs/native": "0.
|
|
84
|
+
"@vizejs/native": "0.628.0",
|
|
85
85
|
"oxc-transform": "0.144.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
package/pkl/LinterConfig.pkl
CHANGED
|
@@ -152,6 +152,17 @@ class DefineMacrosOrderOptions {
|
|
|
152
152
|
defineExposeLast: Boolean = false
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
class VOnEventHyphenationOptions {
|
|
156
|
+
style: HyphenationStyle = "always"
|
|
157
|
+
ignore: Listing<String> = new Listing {}
|
|
158
|
+
autofix: Boolean = false
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
class AttributeHyphenationOptions {
|
|
162
|
+
style: HyphenationStyle = "always"
|
|
163
|
+
ignore: Listing<String> = new Listing {}
|
|
164
|
+
}
|
|
165
|
+
|
|
155
166
|
class ValidVOnOptions {
|
|
156
167
|
modifiers: Listing<String> = new Listing {}
|
|
157
168
|
}
|
|
@@ -175,11 +186,11 @@ class LintRuleOptions {
|
|
|
175
186
|
`vue/html-self-closing`: HtmlSelfClosingOptions? = null
|
|
176
187
|
`vue/html-quotes`: (HtmlQuoteStyle|HtmlQuotesOptions)? = null
|
|
177
188
|
`vue/mustache-interpolation-spacing`: MustacheInterpolationSpacingStyle? = null
|
|
178
|
-
`vue/v-on-event-hyphenation`: HyphenationStyle? = null
|
|
189
|
+
`vue/v-on-event-hyphenation`: (HyphenationStyle|VOnEventHyphenationOptions)? = null
|
|
179
190
|
`vue/v-bind-style`: VBindStyle? = null
|
|
180
191
|
`vue/v-on-style`: VOnStyle? = null
|
|
181
192
|
`vue/v-slot-style`: (VSlotUniformStyle|VSlotStyleOptions)? = null
|
|
182
|
-
`vue/attribute-hyphenation`: HyphenationStyle? = null
|
|
193
|
+
`vue/attribute-hyphenation`: (HyphenationStyle|AttributeHyphenationOptions)? = null
|
|
183
194
|
`vue/valid-v-on`: ValidVOnOptions? = null
|
|
184
195
|
`vue/valid-v-slot`: ValidVSlotOptions? = null
|
|
185
196
|
`musea/prefer-design-tokens`: MuseaPreferDesignTokensOptions? = null
|
|
@@ -98,7 +98,32 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
|
98
98
|
type = "string"
|
|
99
99
|
enum = new Listing { "always"; "never" }
|
|
100
100
|
}
|
|
101
|
-
["vue/v-on-event-hyphenation"] =
|
|
101
|
+
["vue/v-on-event-hyphenation"] = new JsonSchema {
|
|
102
|
+
oneOf = new Listing {
|
|
103
|
+
ConfigArtifactDefinitions.hyphenationStyleDef
|
|
104
|
+
new JsonSchema {
|
|
105
|
+
type = "object"
|
|
106
|
+
properties {
|
|
107
|
+
["style"] = new JsonSchema {
|
|
108
|
+
type = "string"
|
|
109
|
+
enum = new Listing { "always"; "never" }
|
|
110
|
+
default = "always"
|
|
111
|
+
}
|
|
112
|
+
["ignore"] = new JsonSchema {
|
|
113
|
+
type = "array"
|
|
114
|
+
items = new JsonSchema { type = "string"; pattern = #"^(?!\s*$)(?![\s\S]*:exit$)"# }
|
|
115
|
+
uniqueItems = true
|
|
116
|
+
default = new Listing {}
|
|
117
|
+
}
|
|
118
|
+
["autofix"] = new JsonSchema {
|
|
119
|
+
type = "boolean"
|
|
120
|
+
default = false
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
additionalProperties = false
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
102
127
|
["vue/v-bind-style"] = new JsonSchema {
|
|
103
128
|
type = "string"
|
|
104
129
|
enum = new Listing { "shorthand"; "longform" }
|
|
@@ -136,7 +161,28 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
|
136
161
|
}
|
|
137
162
|
}
|
|
138
163
|
}
|
|
139
|
-
["vue/attribute-hyphenation"] =
|
|
164
|
+
["vue/attribute-hyphenation"] = new JsonSchema {
|
|
165
|
+
oneOf = new Listing {
|
|
166
|
+
ConfigArtifactDefinitions.hyphenationStyleDef
|
|
167
|
+
new JsonSchema {
|
|
168
|
+
type = "object"
|
|
169
|
+
properties {
|
|
170
|
+
["style"] = new JsonSchema {
|
|
171
|
+
type = "string"
|
|
172
|
+
enum = new Listing { "always"; "never" }
|
|
173
|
+
default = "always"
|
|
174
|
+
}
|
|
175
|
+
["ignore"] = new JsonSchema {
|
|
176
|
+
type = "array"
|
|
177
|
+
items = new JsonSchema { type = "string"; pattern = #"^(?!\s*$)(?![\s\S]*:exit$)"# }
|
|
178
|
+
uniqueItems = true
|
|
179
|
+
default = new Listing {}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
additionalProperties = false
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
140
186
|
["vue/valid-v-on"] = new JsonSchema {
|
|
141
187
|
type = "object"
|
|
142
188
|
properties {
|
package/pkl/vize.pkl
CHANGED
|
@@ -182,6 +182,16 @@ class DefineMacrosOrderOptions {
|
|
|
182
182
|
defineExposeLast: Boolean = false
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
class VOnEventHyphenationOptions {
|
|
186
|
+
style: HyphenationStyle = "always"
|
|
187
|
+
ignore: Listing<String> = new Listing {}
|
|
188
|
+
autofix: Boolean = false
|
|
189
|
+
}
|
|
190
|
+
class AttributeHyphenationOptions {
|
|
191
|
+
style: HyphenationStyle = "always"
|
|
192
|
+
ignore: Listing<String> = new Listing {}
|
|
193
|
+
}
|
|
194
|
+
|
|
185
195
|
class LintRuleOptions {
|
|
186
196
|
`script/define-macros-order`: DefineMacrosOrderOptions? = null
|
|
187
197
|
`script/define-props-destructuring`: DefinePropsDestructuringOptions? = null
|
|
@@ -198,11 +208,11 @@ class LintRuleOptions {
|
|
|
198
208
|
`vue/html-self-closing`: HtmlSelfClosingOptions? = null
|
|
199
209
|
`vue/html-quotes`: (HtmlQuoteStyle|HtmlQuotesOptions)? = null
|
|
200
210
|
`vue/mustache-interpolation-spacing`: MustacheInterpolationSpacingStyle? = null
|
|
201
|
-
`vue/v-on-event-hyphenation`: HyphenationStyle? = null
|
|
211
|
+
`vue/v-on-event-hyphenation`: (HyphenationStyle|VOnEventHyphenationOptions)? = null
|
|
202
212
|
`vue/v-bind-style`: VBindStyle? = null
|
|
203
213
|
`vue/v-on-style`: VOnStyle? = null
|
|
204
214
|
`vue/v-slot-style`: (VSlotUniformStyle|VSlotStyleOptions)? = null
|
|
205
|
-
`vue/attribute-hyphenation`: HyphenationStyle? = null
|
|
215
|
+
`vue/attribute-hyphenation`: (HyphenationStyle|AttributeHyphenationOptions)? = null
|
|
206
216
|
`vue/valid-v-on`: LintRuleOptionTypes.ValidVOnOptions? = null
|
|
207
217
|
`vue/valid-v-slot`: LintRuleOptionTypes.ValidVSlotOptions? = null
|
|
208
218
|
`musea/prefer-design-tokens`: MuseaPreferDesignTokensOptions? = null
|
|
@@ -714,8 +714,36 @@
|
|
|
714
714
|
"enum": ["always", "never"]
|
|
715
715
|
},
|
|
716
716
|
"vue/v-on-event-hyphenation": {
|
|
717
|
-
"
|
|
718
|
-
|
|
717
|
+
"oneOf": [
|
|
718
|
+
{
|
|
719
|
+
"type": "string",
|
|
720
|
+
"enum": ["always", "never"]
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"type": "object",
|
|
724
|
+
"properties": {
|
|
725
|
+
"style": {
|
|
726
|
+
"default": "always",
|
|
727
|
+
"type": "string",
|
|
728
|
+
"enum": ["always", "never"]
|
|
729
|
+
},
|
|
730
|
+
"ignore": {
|
|
731
|
+
"default": [],
|
|
732
|
+
"type": "array",
|
|
733
|
+
"items": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"pattern": "^(?!\\s*$)(?![\\s\\S]*:exit$)"
|
|
736
|
+
},
|
|
737
|
+
"uniqueItems": true
|
|
738
|
+
},
|
|
739
|
+
"autofix": {
|
|
740
|
+
"default": false,
|
|
741
|
+
"type": "boolean"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"additionalProperties": false
|
|
745
|
+
}
|
|
746
|
+
]
|
|
719
747
|
},
|
|
720
748
|
"vue/v-bind-style": {
|
|
721
749
|
"type": "string",
|
|
@@ -755,8 +783,32 @@
|
|
|
755
783
|
]
|
|
756
784
|
},
|
|
757
785
|
"vue/attribute-hyphenation": {
|
|
758
|
-
"
|
|
759
|
-
|
|
786
|
+
"oneOf": [
|
|
787
|
+
{
|
|
788
|
+
"type": "string",
|
|
789
|
+
"enum": ["always", "never"]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"type": "object",
|
|
793
|
+
"properties": {
|
|
794
|
+
"style": {
|
|
795
|
+
"default": "always",
|
|
796
|
+
"type": "string",
|
|
797
|
+
"enum": ["always", "never"]
|
|
798
|
+
},
|
|
799
|
+
"ignore": {
|
|
800
|
+
"default": [],
|
|
801
|
+
"type": "array",
|
|
802
|
+
"items": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"pattern": "^(?!\\s*$)(?![\\s\\S]*:exit$)"
|
|
805
|
+
},
|
|
806
|
+
"uniqueItems": true
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"additionalProperties": false
|
|
810
|
+
}
|
|
811
|
+
]
|
|
760
812
|
},
|
|
761
813
|
"vue/valid-v-on": {
|
|
762
814
|
"type": "object",
|
package/src/types/generated.ts
CHANGED
|
@@ -318,7 +318,13 @@ export interface LintRuleOptions {
|
|
|
318
318
|
avoidEscape?: boolean;
|
|
319
319
|
};
|
|
320
320
|
"vue/mustache-interpolation-spacing"?: "always" | "never";
|
|
321
|
-
"vue/v-on-event-hyphenation"?:
|
|
321
|
+
"vue/v-on-event-hyphenation"?:
|
|
322
|
+
| ("always" | "never")
|
|
323
|
+
| {
|
|
324
|
+
style?: "always" | "never";
|
|
325
|
+
ignore?: string[];
|
|
326
|
+
autofix?: boolean;
|
|
327
|
+
};
|
|
322
328
|
"vue/v-bind-style"?: "shorthand" | "longform";
|
|
323
329
|
"vue/v-on-style"?: "shorthand" | "longform";
|
|
324
330
|
"vue/v-slot-style"?:
|
|
@@ -328,7 +334,12 @@ export interface LintRuleOptions {
|
|
|
328
334
|
default?: "shorthand" | "longform" | "v-slot";
|
|
329
335
|
named?: "shorthand" | "longform";
|
|
330
336
|
};
|
|
331
|
-
"vue/attribute-hyphenation"?:
|
|
337
|
+
"vue/attribute-hyphenation"?:
|
|
338
|
+
| ("always" | "never")
|
|
339
|
+
| {
|
|
340
|
+
style?: "always" | "never";
|
|
341
|
+
ignore?: string[];
|
|
342
|
+
};
|
|
332
343
|
"vue/valid-v-on"?: {
|
|
333
344
|
modifiers?: string[];
|
|
334
345
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-DnoTxb9W.d.mts","names":["mode","command","isSsrBuild","isPreview","filePath","typeChecker","jsxTypecheck","T","vue","source","base","own","ConfigEnv","env","configDir","Promise","exported"],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../../../crates/vize_carton/src/config/loader/vite-runtime.d.mts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA,GAAa,WAAW,CAAC,YAAA;AAAA,KAEzB,YAAA;AAAA,KAEA,YAAA;;;AAFY;KAOZ,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAaW;;;EATX,KAAA;EAqBY;;;EAjBZ,OAAA;EAqBc;;;EAjBd,OAAA;EACA,QAAA,GAAW,cAAA;EACX,aAAA;IAAA,CACG,CAAA;MAAA,CAGM,CAAA;IAAA;EAAA;EAIT,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EACd,GAAA,GAAM,SAAA;EANN;;;EAUA,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EAXP;;;EAeR,IAAA;EAbM;;;EAiBN,KAAA;EAbyB;AAK3B;;EAYE,OAAA;EA6D2C;;;EAzD3C,SAAA;EAAA;;;EAIA,cAAA;EAYA;;;EARA,cAAA;EAwBA;;;EApBA,GAAA;EAoCA;;;EAhCA,cAAA;EAyCgB;;AAA2B;EArC3C,UAAA;EA0C0C;;;EAtC1C,SAAA;EAuCa;;;EAnCb,iBAAA;EAmDA;;;EA/CA,WAAA;EAqDe;;;EAjDf,aAAA;EAqDsC;;;EAjDtC,QAAA;EAqD4C;;;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A,CAAQ,kBAAA;AAAA,iBAwHW,mBAAA,CACpB,QAAA,EAAU,gBAAA,EACV,GAAA,GAAM,SAAA,GACL,OAAA,CAAQ,kBAAA;;;;iBAoHK,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-DxTx8DBq.mjs","names":["PACKAGE_ROOT","path","getErrorMessage","fs","moduleConfigDirectory","resolveViteConfigExport","path","projectViteConfigExport","fs"],"sources":["../src/config/pkl.js","../../../crates/vize_carton/src/config/loader/module-runtime.mjs","../../../crates/vize_carton/src/config/loader/vite-runtime.mjs","../src/config.ts"],"sourcesContent":["import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { execFileSync } from \"node:child_process\";\nimport { randomUUID } from \"node:crypto\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\nconst PACKAGE_ROOT = path.resolve(fileURLToPath(new URL(\".\", import.meta.url)), \"../..\");\n\nconst DOCUMENTED_PKL_SCHEMA_IMPORT_RE =\n /^(\\s*(?:amends|import)\\s+)([\"'])node_modules\\/vize\\/pkl\\/(VizeConfig\\.pkl|vize\\.pkl)\\2/gm;\n\n/**\n * Evaluate a `vize.config.pkl` file and return its JSON representation.\n *\n * The npm-facing loader keeps PKL execution in Node because it needs package\n * resolution for `@pkl-community/pkl`, but all structural config normalization\n * happens in Rust after this function returns. A missing PKL runtime returns\n * `null` so config discovery can fall through to lower-priority formats; an\n * evaluation failure throws because a present PKL config should not silently be\n * ignored.\n */\nexport function loadPklConfigJson(filePath) {\n const pklBin = findPklBinary();\n if (!pklBin) {\n console.warn(\n \"[vize] pkl CLI not found. Install @pkl-community/pkl or add pkl to PATH. \" +\n \"Falling back to the next config format.\",\n );\n return null;\n }\n\n const patchedFilePath = createPklConfigWithBundledSchemaImports(filePath);\n const evalFilePath = patchedFilePath ?? filePath;\n try {\n return execFileSync(pklBin, [\"eval\", \"-f\", \"json\", evalFilePath], {\n cwd: path.dirname(filePath),\n encoding: \"utf-8\",\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n timeout: 30_000,\n });\n } catch (error) {\n throw new Error(`Failed to evaluate vize PKL config at ${filePath}: ${getErrorMessage(error)}`);\n } finally {\n if (patchedFilePath) {\n fs.rmSync(patchedFilePath, { force: true });\n }\n }\n}\n\nfunction findPklBinary() {\n try {\n const pklPkgPath = import.meta.resolve?.(\"@pkl-community/pkl\");\n if (pklPkgPath) {\n const pklLibDir = path.dirname(fileURLToPath(pklPkgPath));\n const pklPackageDir = path.dirname(pklLibDir);\n const candidates = [\n path.join(pklLibDir, \"main.js\"),\n path.join(pklPackageDir, \"pkl\"),\n path.join(pklPackageDir, \"pkl.exe\"),\n ];\n\n for (const candidate of candidates) {\n if (fs.existsSync(candidate)) {\n try {\n execFileSync(candidate, [\"--version\"], { stdio: \"ignore\" });\n return candidate;\n } catch {\n // Keep looking: the shim can exist when its runtime is unavailable.\n }\n }\n }\n }\n } catch {\n // Fall back to PATH below.\n }\n\n try {\n execFileSync(\"pkl\", [\"--version\"], { stdio: \"ignore\" });\n return \"pkl\";\n } catch {\n return null;\n }\n}\n\nfunction createPklConfigWithBundledSchemaImports(filePath) {\n const configDir = path.dirname(filePath);\n const source = fs.readFileSync(filePath, \"utf-8\");\n let patched = false;\n\n const content = source.replace(\n DOCUMENTED_PKL_SCHEMA_IMPORT_RE,\n (match, prefix, quote, schemaFile) => {\n const projectSchemaPath = path.join(configDir, \"node_modules\", \"vize\", \"pkl\", schemaFile);\n if (fs.existsSync(projectSchemaPath)) {\n return match;\n }\n\n const bundledSchemaPath = path.join(PACKAGE_ROOT, \"pkl\", schemaFile);\n if (!fs.existsSync(bundledSchemaPath)) {\n return match;\n }\n\n patched = true;\n return `${prefix}${quote}${pathToFileURL(bundledSchemaPath).href}${quote}`;\n },\n );\n\n if (!patched) {\n return null;\n }\n\n const tempFile = path.join(\n configDir,\n `.vize-config-${process.pid}-${Date.now()}-${randomUUID()}.pkl`,\n );\n fs.writeFileSync(tempFile, content, { flag: \"wx\", mode: 0o600 });\n return tempFile;\n}\n\nfunction getErrorMessage(error) {\n if (error instanceof Error) {\n return error.message;\n }\n\n return String(error);\n}\n","// Embedded by the native loader. The nearest installed project Vite owns loading.\nimport { lstatSync, readFileSync, realpathSync } from \"node:fs\";\nimport { mkdtemp, realpath, rm, writeFile } from \"node:fs/promises\";\nimport { createRequire, globalPaths } from \"node:module\";\nimport * as nodeModule from \"node:module\";\nimport { tmpdir } from \"node:os\";\nimport {\n dirname as moduleConfigDirectory,\n extname,\n isAbsolute,\n join,\n relative,\n sep,\n} from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\n// A declaration-only package cannot own loading. Broken/runtime packages still do.\nasync function isTypesOnlyEngine(directory, engineName, beforeRead, watchInputs) {\n let manifest;\n try {\n manifest = JSON.parse(readFileSync(join(directory, \"package.json\"), \"utf8\"));\n } catch {\n return false;\n }\n if (\n manifest?.name !== engineName ||\n typeof (manifest.types ?? manifest.typings) !== \"string\" ||\n (manifest.types ?? manifest.typings).length === 0 ||\n [\"main\", \"exports\", \"module\", \"browser\", \"bin\"].some((key) => Object.hasOwn(manifest, key))\n )\n return false;\n const defaults = [\"index.js\", \"index.json\", \"index.node\"].map((name) => join(directory, name));\n for (const path of defaults) watchInputs.add(path);\n await beforeRead?.(defaults);\n return defaults.every((path) => lstatSync(path, { throwIfNoEntry: false }) === undefined);\n}\n\n// Optional compiled artifacts only; no imported namespace or evaluated config is retained.\nexport function enableConfigCompileCache(directory) {\n if (!directory || typeof nodeModule.enableCompileCache !== \"function\") return;\n if (\n [\n \"NODE_COMPILE_CACHE\",\n \"NODE_DISABLE_COMPILE_CACHE\",\n \"NODE_COMPILE_CACHE_PORTABLE\",\n \"NODE_V8_COVERAGE\",\n ].some((name) => Object.hasOwn(process.env, name)) ||\n process.env.NODE_OPTIONS?.includes(\"coverage\")\n )\n return;\n // The parent owns this private directory until every fresh child has exited.\n // Uses Node's standard source-checksum/version contract, not Canon input identity.\n // Normal process exit flushes compiled code before the parent releases its lease.\n return nodeModule.enableCompileCache(directory);\n}\n\n// Failure identity is host metadata; never attach it to authored exports/errors.\nconst configFailureArtifacts = new WeakMap();\nconst configEvaluationTimings = new WeakMap();\n\n// Private host diagnostics, never attached to authored values or exceptions.\nexport function configModuleEvaluationTimings(value) {\n return configEvaluationTimings.get(value)?.map((row) => ({ ...row }));\n}\n\nfunction beginConfigTiming(rows, phase, boundary) {\n const start = rows ? performance.now() : undefined;\n let finished = false;\n if (boundary) boundary.active = true;\n return () => {\n if (start !== undefined && !finished) {\n const end = performance.now();\n rows.push({ phase, elapsedMs: end - start, processId: process.pid });\n if (boundary) {\n boundary.active = false;\n // No observed resolution means UNKNOWN: never fabricate zero or guess\n // an SDK-generated path outside our already-owned private directory.\n if (boundary.resolvedAt !== undefined) {\n rows.push({\n phase: \"public_load_until_owned_resolve\",\n elapsedMs: boundary.resolvedAt - start,\n processId: process.pid,\n });\n rows.push({\n phase: \"public_load_after_owned_resolve\",\n elapsedMs: end - boundary.resolvedAt,\n processId: process.pid,\n });\n }\n }\n finished = true;\n }\n };\n}\n\n// Diagnostic only: retain the complete sampling packet, never an evaluated value.\n// Setup/stop costs are separate; samples also include the adjacent host call edges.\nasync function beginPublicLoadProfile() {\n const started = performance.now();\n let session;\n const close = () => {\n try {\n session?.disconnect();\n } catch {}\n };\n try {\n const { Session } = await import(\"node:inspector/promises\");\n session = new Session();\n session.connect();\n await session.post(\"Profiler.enable\");\n await session.post(\"Profiler.start\");\n const setupMs = performance.now() - started;\n return async () => {\n const stopping = performance.now();\n try {\n const { profile } = await session.post(\"Profiler.stop\");\n return { status: \"recorded\", setupMs, stopMs: performance.now() - stopping, profile };\n } catch (error) {\n return { status: \"unavailable\", setupMs, reason: String(error) };\n } finally {\n close();\n }\n };\n } catch (error) {\n close();\n return async () => ({ status: \"unavailable\", reason: String(error) });\n }\n}\n\nexport function configModuleFailureArtifacts(error) {\n return configFailureArtifacts.get(error)?.map(([owned, source]) => [owned, source]) ?? [];\n}\n\nexport function configModuleImportPath(configURL, windows = process.platform === \"win32\") {\n return fileURLToPath(configURL, { windows });\n}\n\nexport async function importConfigModule(configPath, withoutVite) {\n return (\n await importConfigModuleWithDependencies(configPath, nodeModule.registerHooks, withoutVite)\n ).namespace;\n}\n\n/** Observe real failed requests, without choosing a replacement resolution. */\nexport function failedConfigModuleRequests(error) {\n return failedConfigModuleObservation(error).paths;\n}\n\nfunction failedConfigModuleObservation(error) {\n const paths = new Set();\n let complete = false;\n if (error?.code === \"ERR_MODULE_NOT_FOUND\" && typeof error.url === \"string\") {\n try {\n const url = new URL(error.url);\n if (url.protocol === \"file:\") {\n paths.add(fileURLToPath(url));\n complete = true;\n }\n } catch {}\n }\n const diagnostics = Array.isArray(error?.errors) ? error.errors : [];\n if (diagnostics.length) complete = true;\n for (const diagnostic of diagnostics) {\n let requested = false;\n if (\n diagnostic?.code !== \"UNRESOLVED_IMPORT\" ||\n typeof diagnostic.id !== \"string\" ||\n !isAbsolute(diagnostic.id) ||\n typeof diagnostic.exporter !== \"string\"\n ) {\n complete = false;\n continue;\n }\n paths.add(diagnostic.id);\n const request = diagnostic.exporter;\n // Public bundle diagnostics expose the requested importer/specifier, not\n // extension or package search candidates. Observe only explicit file paths.\n if (!(isAbsolute(request) || request.startsWith(\"./\") || request.startsWith(\"../\"))) {\n complete = false;\n continue;\n }\n // Bundle specifiers may treat these characters as literal filenames or URL\n // syntax. Its diagnostic does not expose which interpretation won.\n if (/[%#?]/.test(request)) {\n complete = false;\n continue;\n }\n try {\n const url = isAbsolute(request)\n ? pathToFileURL(request)\n : new URL(request, pathToFileURL(diagnostic.id));\n if (url.protocol === \"file:\" && extname(url.pathname)) {\n paths.add(fileURLToPath(url));\n requested = true;\n }\n } catch {}\n complete &&= requested;\n }\n return { paths: [...paths], complete };\n}\n\n/** Keep runtime imports observable until the optional export evaluator settles. */\nasync function captureConfigEvaluation(\n load,\n configPath,\n registerModuleHooks,\n evaluate,\n privateDirectory,\n observeDependencies,\n ownedAdapter,\n timings,\n boundary,\n) {\n const files = new Set([configPath]);\n const requestedFiles = new Set();\n let complete = true;\n let moduleGraphLoaded = false;\n const owners = new Set([pathToFileURL(configPath).href]);\n const isPrivate = (path) => {\n if (!privateDirectory) return false;\n const inside = relative(privateDirectory, path);\n return inside !== \"..\" && !inside.startsWith(`..${sep}`) && !isAbsolute(inside);\n };\n const hooks =\n typeof registerModuleHooks === \"function\"\n ? registerModuleHooks({\n resolve(specifier, context, nextResolve) {\n const result = nextResolve(specifier, context);\n if (result.url.startsWith(\"file:\")) {\n const path = fileURLToPath(result.url);\n if (boundary?.active && boundary.resolvedAt === undefined && isPrivate(path)) {\n // Diagnostic only, after the same successful nextResolve. No\n // extra resolution/read and no change to dependency ownership.\n boundary.resolvedAt = performance.now();\n }\n // Vite's generated module owns config execution, but its build engine\n // and private adapters are not authored configuration dependencies.\n if (owners.has(result.url) || owners.has(context.parentURL) || isPrivate(path)) {\n owners.add(result.url);\n if (!isPrivate(path)) files.add(path);\n // Node reports the real target, but the actual explicit request\n // also owns a symlink route whose retargeting must be observed.\n // Keep this watch-only: it does not replace Node's resolution.\n if (\n owners.has(context.parentURL) &&\n (specifier.startsWith(\"./\") ||\n specifier.startsWith(\"../\") ||\n specifier.startsWith(\"/\") ||\n specifier.startsWith(\"file:\"))\n ) {\n try {\n const requested = new URL(specifier, context.parentURL);\n if (requested.protocol === \"file:\") {\n const requestedPath = fileURLToPath(requested);\n if (extname(requestedPath) && !isPrivate(requestedPath)) {\n requestedFiles.add(requestedPath);\n }\n }\n } catch {}\n }\n }\n }\n return result;\n },\n })\n : undefined;\n try {\n const { namespace, dependencies = [] } = await load();\n for (const path of dependencies) if (!isPrivate(path)) files.add(path);\n moduleGraphLoaded = true;\n const finish = beginConfigTiming(timings, \"export_evaluation\");\n let value;\n try {\n value = evaluate ? await evaluate(namespace) : namespace;\n } finally {\n finish();\n }\n return { namespace, value, dependencies: [...files] };\n } catch (error) {\n if (\n ownedAdapter &&\n error !== null &&\n (typeof error === \"object\" || typeof error === \"function\")\n ) {\n configFailureArtifacts.set(error, [\n [ownedAdapter, configPath],\n [pathToFileURL(ownedAdapter).href, pathToFileURL(configPath).href],\n [\n relative(moduleConfigDirectory(configPath), ownedAdapter),\n relative(moduleConfigDirectory(configPath), configPath),\n ],\n ]);\n }\n complete = false;\n // User code may throw arbitrary objects, including getters that throw.\n // Observation must never replace the loader's original exception.\n try {\n const observed = failedConfigModuleObservation(error);\n // A failed bundle reports its failing importer/request, but can omit\n // intermediate modules read by the build engine. Keep useful targets\n // without treating that partial graph as enough to suppress repair.\n complete = observed.complete && (privateDirectory === undefined || moduleGraphLoaded);\n for (const path of observed.paths) if (!isPrivate(path)) files.add(path);\n } catch {}\n throw error;\n } finally {\n hooks?.deregister();\n observeDependencies?.([...files, ...requestedFiles], complete);\n }\n}\n\n/** Await evaluate(namespace) once before sealing its graph; retain the namespace unchanged. */\nexport async function importConfigModuleWithDependencies(\n configPath,\n registerModuleHooks = nodeModule.registerHooks,\n withoutVite,\n evaluate,\n observeDependencies,\n beforeRead,\n) {\n const timings = process.env.VIZE_TRACE_EDITOR_PREPARATION === \"1\" ? [] : undefined;\n const boundary = timings ? { active: false, resolvedAt: undefined } : undefined;\n const finishTotal = beginConfigTiming(timings, \"module_total\");\n const finishSelection = beginConfigTiming(timings, \"engine_selection_with_ack\");\n let selectionFinished = false;\n let result;\n const watchInputs = new Set([configPath]);\n let complete = false;\n const observe = (paths, observedComplete) => {\n for (const path of paths) watchInputs.add(path);\n complete = observedComplete;\n };\n try {\n const configURL = pathToFileURL(configPath);\n const require = createRequire(configURL);\n const engineNames = [\"vite\", \"vite-plus\"];\n let candidate;\n for (const engineName of engineNames) {\n const searchPaths = require.resolve.paths(engineName) ?? [];\n for (const directory of searchPaths.filter((path) => !globalPaths.includes(path))) {\n const requested = join(directory, engineName);\n watchInputs.add(requested);\n await beforeRead?.([requested]);\n if (lstatSync(requested, { throwIfNoEntry: false }) !== undefined) {\n const engineDirectory = realpathSync(requested);\n const manifests = [requested, engineDirectory].map((path) => join(path, \"package.json\"));\n for (const path of manifests) watchInputs.add(path);\n await beforeRead?.(manifests);\n if (await isTypesOnlyEngine(engineDirectory, engineName, beforeRead, watchInputs))\n continue;\n candidate = { engineName, directory: requested, engineDirectory };\n break;\n }\n }\n if (candidate !== undefined) break;\n }\n // The public CLI can retain its explicit TypeScript transform fallback. Native\n // editor snapshots always request the complete real import graph instead.\n if (typeof registerModuleHooks !== \"function\") {\n if (evaluate) {\n throw new Error(\n \"Tracking imports while evaluating a Vite config requires Node.js 22.15 or newer. Upgrade Node.js; an installed config bundler alone cannot track runtime imports.\",\n );\n }\n if (candidate === undefined && !withoutVite) {\n throw new Error(\n \"Loading a Vite config without project Vite or Vite+ requires Node.js 22.15 or newer to track imported configuration files. Upgrade Node.js or install Vite or Vite+ in the project.\",\n );\n }\n }\n if (candidate === undefined) {\n finishSelection();\n selectionFinished = true;\n await beforeRead?.([configPath]);\n result = await captureConfigEvaluation(\n async () => ({\n namespace: await (withoutVite ? withoutVite(configURL) : import(configURL.href)),\n }),\n configPath,\n registerModuleHooks,\n evaluate,\n undefined,\n observe,\n undefined,\n timings,\n );\n return result;\n }\n const { engineDirectory } = candidate;\n const resolvedEntry = require.resolve(candidate.engineName);\n watchInputs.add(resolvedEntry);\n const engineEntry = realpathSync(resolvedEntry);\n watchInputs.add(engineEntry);\n const entryPath = relative(engineDirectory, engineEntry);\n if (entryPath === \"..\" || entryPath.startsWith(`..${sep}`) || isAbsolute(entryPath)) {\n const engineLabel = candidate.engineName === \"vite\" ? \"Vite\" : \"Vite+\";\n throw new Error(\n `Resolved loader escapes selected project ${engineLabel}: ${candidate.directory} -> ${engineEntry}`,\n );\n }\n await beforeRead?.([resolvedEntry, engineEntry]);\n finishSelection();\n selectionFinished = true;\n const finishImport = beginConfigTiming(timings, \"engine_import\");\n let loadConfigFromFile;\n try {\n const engine = await import(pathToFileURL(engineEntry).href);\n loadConfigFromFile = engine.loadConfigFromFile ?? engine.default?.loadConfigFromFile;\n if (typeof loadConfigFromFile !== \"function\") {\n throw new Error(`${candidate.engineName} does not export loadConfigFromFile`);\n }\n } finally {\n finishImport();\n }\n const finishAdapter = beginConfigTiming(timings, \"adapter_prepare\");\n let temporary;\n try {\n temporary = await realpath(await mkdtemp(join(tmpdir(), \"vize-config-module-\")));\n } catch (error) {\n finishAdapter();\n throw error;\n }\n try {\n const adapter = join(temporary, \"config.mjs\");\n await writeFile(\n adapter,\n `import * as original from ${JSON.stringify(configModuleImportPath(configURL))};\\nexport default { namespace: original };\\n`,\n { flag: \"wx\", mode: 0o600 },\n );\n finishAdapter();\n result = await captureConfigEvaluation(\n async () => {\n const finishAck = beginConfigTiming(timings, \"selected_before_read_ack\");\n try {\n await beforeRead?.([configPath]);\n } finally {\n finishAck();\n }\n const finishProfile = timings ? await beginPublicLoadProfile() : undefined;\n const finishLoad = beginConfigTiming(timings, \"public_load\", boundary);\n let loaded;\n try {\n loaded = await loadConfigFromFile(\n { mode: \"development\", command: \"serve\" },\n adapter,\n moduleConfigDirectory(configPath),\n \"silent\",\n undefined,\n \"bundle\",\n );\n } finally {\n finishLoad();\n if (finishProfile) {\n timings.find((row) => row.phase === \"public_load\").cpuProfile = await finishProfile();\n }\n }\n if (!loaded) {\n throw new Error(\n `${candidate.engineName} did not load the selected config: ${configPath}`,\n );\n }\n return {\n namespace: loaded.config.namespace,\n dependencies: loaded.dependencies,\n };\n },\n configPath,\n registerModuleHooks,\n evaluate,\n temporary,\n observe,\n adapter,\n timings,\n boundary,\n );\n return result;\n } catch (error) {\n finishAdapter();\n throw error;\n } finally {\n const finishCleanup = beginConfigTiming(timings, \"adapter_cleanup\");\n try {\n await rm(temporary, { recursive: true, force: true });\n } finally {\n finishCleanup();\n }\n }\n } catch (error) {\n if (timings && error !== null && (typeof error === \"object\" || typeof error === \"function\")) {\n configEvaluationTimings.set(error, timings);\n }\n throw error;\n } finally {\n if (!selectionFinished) finishSelection();\n finishTotal();\n if (timings && result) configEvaluationTimings.set(result, timings);\n observeDependencies?.([...watchInputs], complete);\n }\n}\n","// This dependency-free projection is also embedded by the native config loader.\nimport { resolve } from \"node:path\";\n\n// Generated validation subset of npm/cli/schemas/vize.config.schema.json.\n// The canonical Vue options reuse every existing native section except retired config inheritance.\n// The source law compares every retained schema rule with the authoritative native schema.\nconst vueOptionSchema = JSON.parse(\n '{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"experimentals\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"object\",\"additionalProperties\":true},{\"type\":\"null\"}]}},\"dialect\":{\"type\":\"string\",\"enum\":[\"vue\",\"petite-vue\"]},\"vite\":{\"$ref\":\"#/definitions/VitePluginConfig\"},\"musea\":{\"$ref\":\"#/definitions/MuseaConfig\"},\"typeChecker\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"},\"formatter\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"languageServer\":{\"$ref\":\"#/definitions/LanguageServerConfig\"},\"globalTypes\":{\"$ref\":\"#/definitions/GlobalTypesConfig\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"lib\":{\"$ref\":\"#/definitions/LibConfig\"},\"compile\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"typeCheck\":{\"$ref\":\"#/definitions/TypeCheckerConfig\"},\"fmt\":{\"$ref\":\"#/definitions/FormatterConfig\"},\"lint\":{\"type\":\"object\",\"required\":[\"jsPlugins\",\"plugins\",\"rules\",\"settings\"],\"properties\":{\"jsPlugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"plugins\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"rules\":{\"type\":\"object\",\"additionalProperties\":true},\"settings\":{\"type\":\"object\",\"additionalProperties\":true},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"overrides\":{\"type\":\"array\"}},\"additionalProperties\":true},\"version\":{\"$ref\":\"#/definitions/VueVersion\"},\"entries\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"basePath\":{\"type\":\"string\"},\"files\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignores\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"compiler\":{\"$ref\":\"#/definitions/CompilerConfig\"},\"linter\":{\"$ref\":\"#/definitions/LinterConfig\"}},\"additionalProperties\":false}}},\"additionalProperties\":false,\"definitions\":{\"CompilerConfig\":{\"type\":\"object\",\"properties\":{\"mode\":{\"type\":\"string\",\"enum\":[\"module\",\"function\"]},\"vapor\":{\"type\":\"boolean\"},\"jsxMode\":{\"type\":\"string\",\"enum\":[\"vdom\",\"vapor\"]},\"jsxCompat\":{\"type\":\"string\",\"enum\":[\"native\",\"babel\"]},\"customRenderer\":{\"type\":\"boolean\"},\"customElements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ssr\":{\"type\":\"boolean\"},\"templateSyntax\":{\"type\":\"string\",\"enum\":[\"standard\",\"strict\",\"quirks\"]},\"whitespace\":{\"type\":\"string\",\"enum\":[\"condense\",\"preserve\",\"vue2-line-breaks\",\"vue2-preserve\"]},\"sourceMap\":{\"type\":\"boolean\"},\"prefixIdentifiers\":{\"type\":\"boolean\"},\"hoistStatic\":{\"type\":\"boolean\"},\"cacheHandlers\":{\"type\":\"boolean\"},\"comments\":{\"type\":\"boolean\"},\"isTs\":{\"type\":\"boolean\"},\"scriptExt\":{\"type\":\"string\",\"enum\":[\"ts\",\"js\"]},\"runtimeModuleName\":{\"type\":\"string\"},\"runtimeGlobalName\":{\"type\":\"string\"},\"compatibility\":{\"$ref\":\"#/definitions/CompilerCompatibilityConfig\"}},\"additionalProperties\":false},\"CompilerCompatibilityConfig\":{\"type\":\"object\",\"properties\":{\"vueVersion\":{\"$ref\":\"#/definitions/VueVersion\"},\"hostCompiler\":{\"type\":\"boolean\"},\"scriptSetupInStandalone\":{\"type\":\"boolean\"},\"optionsApiVapor\":{\"type\":\"boolean\"},\"nuxtVersion\":{\"type\":\"integer\",\"enum\":[2,3,4]},\"webpackVersion\":{\"type\":\"integer\",\"enum\":[4,5]}},\"additionalProperties\":false},\"VueVersion\":{\"type\":\"string\",\"enum\":[\"3\",\"2.7\",\"2\",\"1\",\"0.11\",\"0.10\"]},\"VitePluginConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"exclude\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"scanPatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"MuseaConfig\":{\"type\":\"object\",\"properties\":{\"include\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"exclude\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"basePath\":{\"type\":\"string\"},\"storybookCompat\":{\"type\":\"boolean\"},\"inlineArt\":{\"type\":\"boolean\"},\"vrt\":{\"$ref\":\"#/definitions/MuseaVrtConfig\"},\"a11y\":{\"$ref\":\"#/definitions/MuseaA11yConfig\"},\"autogen\":{\"$ref\":\"#/definitions/MuseaAutogenConfig\"}},\"additionalProperties\":false},\"MuseaVrtConfig\":{\"type\":\"object\",\"properties\":{\"threshold\":{\"type\":\"number\"},\"outDir\":{\"type\":\"string\"},\"viewports\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaViewport\"}}},\"additionalProperties\":false},\"MuseaViewport\":{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"integer\"},\"height\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"width\",\"height\"]},\"MuseaA11yConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"boolean\"}}},\"additionalProperties\":false},\"MuseaAutogenConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"maxVariants\":{\"type\":\"integer\"}},\"additionalProperties\":false},\"TypeCheckerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"strict\":{\"type\":\"boolean\"},\"checkProps\":{\"type\":\"boolean\"},\"checkEmits\":{\"type\":\"boolean\"},\"checkTemplateBindings\":{\"type\":\"boolean\"},\"checkReactivity\":{\"type\":\"boolean\"},\"checkSetupContext\":{\"type\":\"boolean\"},\"checkInvalidExports\":{\"type\":\"boolean\"},\"checkFallthroughAttrs\":{\"type\":\"boolean\"},\"optionsApi\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"jsxTypecheck\":{\"type\":\"boolean\"},\"tsconfig\":{\"type\":\"string\"},\"corsaPath\":{\"type\":\"string\"},\"tsgoPath\":{\"type\":\"string\"},\"tsrsPath\":{\"type\":\"string\"},\"globalsFile\":{\"type\":\"string\"},\"servers\":{\"type\":\"integer\",\"minimum\":1,\"maximum\":32},\"lspRequestTimeoutMs\":{\"type\":\"integer\",\"minimum\":1}},\"additionalProperties\":false},\"LinterConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"type\":\"string\",\"enum\":[\"general-recommended\",\"general_recommended\",\"generalRecommended\",\"happy-path\",\"happy_path\",\"happy\",\"default\",\"recommended\",\"opinionated\",\"strict\",\"all\",\"essential\",\"incremental\",\"ecosystem\",\"nuxt\"]},\"typeAware\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"crossFileTree\":{\"type\":\"boolean\"},\"crossFileComplexity\":{\"type\":\"boolean\"},\"strictReactivity\":{\"type\":\"boolean\"},\"maxWarnings\":{\"type\":\"integer\",\"minimum\":0},\"reportUnusedDisableDirectives\":{\"type\":\"boolean\"},\"rules\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"ruleOptions\":{\"$ref\":\"#/definitions/LintRuleOptions\"},\"categories\":{\"type\":\"object\",\"properties\":{\"correctness\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"suspicious\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"style\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"perf\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"a11y\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]},\"security\":{\"type\":\"string\",\"enum\":[\"off\",\"warn\",\"error\"]}},\"additionalProperties\":false}},\"additionalProperties\":false},\"LintRuleOptions\":{\"type\":\"object\",\"properties\":{\"script/define-macros-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1},\"uniqueItems\":true},\"defineExposeLast\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/define-props-destructuring\":{\"type\":\"object\",\"properties\":{\"destructure\":{\"type\":\"string\",\"enum\":[\"only-when-assigned\",\"always\",\"never\"]}},\"additionalProperties\":false},\"html/no-empty-palpable-content\":{\"type\":\"object\",\"properties\":{\"contentDirectives\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"type/strict-boolean-expressions\":{\"type\":\"object\",\"properties\":{\"allowString\":{\"type\":\"boolean\"},\"allowNumber\":{\"type\":\"boolean\"},\"allowNullableObject\":{\"type\":\"boolean\"},\"allowNullableBoolean\":{\"type\":\"boolean\"},\"allowNullableString\":{\"type\":\"boolean\"},\"allowNullableNumber\":{\"type\":\"boolean\"},\"allowNullableEnum\":{\"type\":\"boolean\"},\"allowAny\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"script/no-restricted-globals\":{\"$ref\":\"#/definitions/NoRestrictedGlobalsOptions\"},\"script/no-restricted-members\":{\"$ref\":\"#/definitions/NoRestrictedMembersOptions\"},\"vue/component-name-in-template-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"PascalCase\",\"kebab-case\"]},\"registeredComponentsOnly\":{\"type\":\"boolean\"},\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"script/custom-event-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"kebab-case\"]}},\"additionalProperties\":false},\"vue/prop-name-casing\":{\"type\":\"object\",\"properties\":{\"casing\":{\"type\":\"string\",\"enum\":[\"camelCase\",\"snake_case\"]}},\"additionalProperties\":false},\"vue/no-mutating-props\":{\"type\":\"object\",\"properties\":{\"shallowOnly\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"vue/require-component-registration\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/sfc-element-order\":{\"type\":\"object\",\"properties\":{\"order\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]}}},\"additionalProperties\":false},\"vue/html-self-closing\":{\"type\":\"object\",\"properties\":{\"html\":{\"type\":\"object\",\"properties\":{\"void\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"normal\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"component\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"svg\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]},\"math\":{\"type\":\"string\",\"enum\":[\"always\",\"never\",\"any\"]}},\"additionalProperties\":false},\"vue/html-quotes\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},{\"type\":\"object\",\"properties\":{\"style\":{\"type\":\"string\",\"enum\":[\"double\",\"single\"]},\"avoidEscape\":{\"type\":\"boolean\"}},\"additionalProperties\":false}]},\"vue/mustache-interpolation-spacing\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-on-event-hyphenation\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/v-bind-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-on-style\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},\"vue/v-slot-style\":{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]},{\"type\":\"object\",\"properties\":{\"atComponent\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"default\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\",\"v-slot\"]},\"named\":{\"type\":\"string\",\"enum\":[\"shorthand\",\"longform\"]}},\"additionalProperties\":false}]},\"vue/attribute-hyphenation\":{\"type\":\"string\",\"enum\":[\"always\",\"never\"]},\"vue/valid-v-on\":{\"type\":\"object\",\"properties\":{\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"vue/valid-v-slot\":{\"type\":\"object\",\"properties\":{\"allowModifiers\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"musea/prefer-design-tokens\":{\"$ref\":\"#/definitions/MuseaPreferDesignTokensOptions\"}},\"additionalProperties\":false},\"NoRestrictedGlobalsOptions\":{\"type\":\"object\",\"properties\":{\"globals\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedGlobal\"}}},\"additionalProperties\":false},\"RestrictedGlobal\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"name\"]},\"NoRestrictedMembersOptions\":{\"type\":\"object\",\"properties\":{\"members\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RestrictedMember\"}}},\"additionalProperties\":false},\"RestrictedMember\":{\"type\":\"object\",\"properties\":{\"object\":{\"type\":\"string\"},\"property\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"object\",\"property\"]},\"MuseaPreferDesignTokensOptions\":{\"type\":\"object\",\"properties\":{\"tokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MuseaDesignToken\"}}},\"additionalProperties\":false},\"MuseaDesignToken\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"tier\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"path\",\"value\"]},\"FormatterConfig\":{\"type\":\"object\",\"properties\":{\"ignorePatterns\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"preset\":{\"type\":\"string\",\"enum\":[\"vize\",\"prettier\",\"compact\",\"documentation\"]},\"sortImports\":{\"oneOf\":[{\"type\":\"boolean\",\"enum\":[false]},{\"$ref\":\"#/definitions/SortImportsConfig\"}]},\"printWidth\":{\"type\":\"integer\"},\"tabWidth\":{\"type\":\"integer\"},\"useTabs\":{\"type\":\"boolean\"},\"semi\":{\"type\":\"boolean\"},\"singleQuote\":{\"type\":\"boolean\"},\"jsxSingleQuote\":{\"type\":\"boolean\"},\"trailingComma\":{\"type\":\"string\",\"enum\":[\"all\",\"none\",\"es5\"]},\"bracketSpacing\":{\"type\":\"boolean\"},\"bracketSameLine\":{\"type\":\"boolean\"},\"arrowParens\":{\"type\":\"string\",\"enum\":[\"always\",\"avoid\"]},\"endOfLine\":{\"type\":\"string\",\"enum\":[\"lf\",\"crlf\",\"cr\",\"auto\"]},\"quoteProps\":{\"type\":\"string\",\"enum\":[\"as-needed\",\"consistent\",\"preserve\"]},\"singleAttributePerLine\":{\"type\":\"boolean\"},\"vueIndentScriptAndStyle\":{\"type\":\"boolean\"},\"sortAttributes\":{\"type\":\"boolean\"},\"attributeSortOrder\":{\"type\":\"string\",\"enum\":[\"alphabetical\",\"as-written\"]},\"mergeBindAndNonBindAttrs\":{\"type\":\"boolean\"},\"maxAttributesPerLine\":{\"type\":\"integer\"},\"attributeGroups\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"normalizeDirectiveShorthands\":{\"type\":\"boolean\"},\"sortBlocks\":{\"type\":\"boolean\"},\"normalizeCssQuotes\":{\"type\":\"boolean\"},\"normalizeInlineStyles\":{\"type\":\"boolean\"},\"normalizeVForParens\":{\"type\":\"boolean\"},\"selfCloseVoidElements\":{\"type\":\"boolean\"},\"reindentPreprocessorStyles\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"SortImportsConfig\":{\"type\":\"object\",\"properties\":{\"partitionByNewline\":{\"type\":\"boolean\"},\"partitionByComment\":{\"type\":\"boolean\"},\"sortSideEffects\":{\"type\":\"boolean\"},\"order\":{\"type\":\"string\",\"enum\":[\"asc\",\"desc\"]},\"ignoreCase\":{\"type\":\"boolean\"},\"newlinesBetween\":{\"type\":\"boolean\"},\"internalPattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"groups\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}},{\"type\":\"object\",\"properties\":{\"newlinesBetween\":{\"type\":\"boolean\"}},\"additionalProperties\":false,\"required\":[\"newlinesBetween\"]}]}},\"customGroups\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ImportSortCustomGroup\"}}},\"additionalProperties\":false},\"ImportSortCustomGroup\":{\"type\":\"object\",\"properties\":{\"groupName\":{\"type\":\"string\"},\"elementNamePattern\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"selector\":{\"type\":\"string\"},\"modifiers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false,\"required\":[\"groupName\"]},\"LanguageServerConfig\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"lint\":{\"type\":\"boolean\"},\"diagnostics\":{\"type\":\"boolean\"},\"typecheck\":{\"type\":\"boolean\"},\"editor\":{\"type\":\"boolean\"},\"ecosystem\":{\"type\":\"boolean\"},\"crossFile\":{\"type\":\"boolean\"},\"legacyVue2\":{\"type\":\"boolean\"},\"completion\":{\"type\":\"boolean\"},\"signatureHelp\":{\"type\":\"boolean\"},\"hover\":{\"type\":\"boolean\"},\"definition\":{\"type\":\"boolean\"},\"references\":{\"type\":\"boolean\"},\"documentSymbols\":{\"type\":\"boolean\"},\"workspaceSymbols\":{\"type\":\"boolean\"},\"formatting\":{\"type\":\"boolean\"},\"codeActions\":{\"type\":\"boolean\"},\"rename\":{\"type\":\"boolean\"},\"codeLens\":{\"type\":\"boolean\"},\"semanticTokens\":{\"type\":\"boolean\"},\"documentLinks\":{\"type\":\"boolean\"},\"foldingRanges\":{\"type\":\"boolean\"},\"inlayHints\":{\"type\":\"boolean\"},\"fileRename\":{\"type\":\"boolean\"},\"corsa\":{\"type\":\"boolean\"},\"tsgo\":{\"type\":\"boolean\"}},\"additionalProperties\":false},\"GlobalTypesConfig\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/definitions/GlobalTypeDeclaration\"}]}},\"GlobalTypeDeclaration\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"string\"},\"defaultValue\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"type\"]},\"LibConfig\":{\"type\":\"object\",\"properties\":{\"dir\":{\"type\":\"string\"},\"uiDir\":{\"type\":\"string\"},\"composableDir\":{\"type\":\"string\"},\"lockfile\":{\"type\":\"string\"},\"registries\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"properties\":{\"source\":{\"type\":\"string\"},\"dir\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"source\"]}]},\"propertyNames\":{\"pattern\":\"^@[a-z0-9][a-z0-9._-]*$\"}}},\"additionalProperties\":false}}}',\n);\n\n// Read the source of our Vite+ factory without starting Vite, plugins or tasks.\nconst sourceConfigKey = Symbol.for(\"@vizejs/vite-plugin/vite-plus/source\");\n\nfunction object(value) {\n if (value === null || typeof value !== \"object\") return false;\n const prototype = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n}\n\nfunction merge(base, own) {\n const result = { ...base };\n for (const [key, value] of Object.entries(own)) {\n result[key] = object(value) && object(result[key]) ? merge(result[key], value) : value;\n }\n return result;\n}\n\nasync function resolveSource(value, env, parents = new Set()) {\n value = await value;\n if (parents.has(value)) throw new Error(\"Circular Vue configuration source\");\n parents.add(value);\n try {\n if ((typeof value === \"function\" || object(value)) && sourceConfigKey in value) {\n return await resolveSource(value[sourceConfigKey], env, parents);\n }\n const config = await (typeof value === \"function\" ? value(env) : value);\n if (!object(config)) throw new Error(\"Vite config must export an object or a config function\");\n rejectLegacyConfig(config);\n return config;\n } finally {\n parents.delete(value);\n }\n}\n\nfunction rejectLegacyConfig(source) {\n // Vitest owns boolean `extends` on inline project configs. It may retain\n // that field on the Vite config passed to configResolved. Native config\n // exports still reject extends in their own normalizer, and vue: remains\n // independently schema-validated below.\n if (Object.hasOwn(source, \"extends\") && typeof source.extends !== \"boolean\") {\n throw new Error(\n \"Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig)\",\n );\n }\n if (Object.hasOwn(source, \"vize\")) {\n throw new Error(\n \"vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*\",\n );\n }\n for (const key of [\"lint\", \"fmt\", \"pack\"]) {\n const values = Array.isArray(source[key]) ? source[key] : [source[key]];\n if (values.some((value) => object(value) && Object.hasOwn(value, \"vize\"))) {\n throw new Error(\n key === \"lint\"\n ? \"lint.vize is no longer supported; pass { lint: false } as defineConfig's integration options to disable the Vite+ native lint task while keeping CLI lint enabled, and put shared lint settings in vue.linter\"\n : `${key}.vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*`,\n );\n }\n }\n}\n\nexport const VITE_CONFIG_FILE_NAMES = [\n \"vite.config.ts\",\n \"vite.config.js\",\n \"vite.config.mjs\",\n \"vite.config.cjs\",\n \"vite.config.mts\",\n \"vite.config.cts\",\n];\n\nexport function isViteConfigFile(filePath) {\n return /(?:^|[/\\\\])vite\\.config\\.(?:[cm]?[jt]s)$/.test(filePath);\n}\n\n/** Project workflows support JSX without an extra feature flag. Legacy config stays unchanged. */\nexport function projectConfigDefaults() {\n return { typeChecker: { jsxTypecheck: true } };\n}\n\n/** Resolve just the native settings from an ordinary Vite or Vite+ export. */\nexport async function resolveViteConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n // Dedicated Vize workflows also use commands such as lint and check. A Vite\n // function receives only Vite's serve/build discriminator, without mutation.\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n return projectViteConfigSource(source, env, configDir);\n}\n\n/** Resolve an authored Vite export without projecting away Vite-owned task settings. */\nexport async function resolveViteConfigSource(exported, env) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n return resolveSource(exported, env);\n}\n\n/** Resolve an explicitly selected CLI config as Vite config independent of its basename. */\nexport async function resolveExplicitViteConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n return projectExplicitViteConfigSource(source, env, configDir);\n}\n\n/** Preserve an archived native export only when its shape proves that role. */\nexport async function resolveExplicitSerializedConfigExport(exported, env, configDir) {\n env ??= { mode: \"development\", command: \"serve\" };\n if (env.command !== \"build\" && env.command !== \"serve\") {\n env = { ...env, command: \"serve\" };\n }\n const source = await resolveViteConfigSource(exported, env);\n if (\n [\n \"compiler\",\n \"typeChecker\",\n \"linter\",\n \"formatter\",\n \"languageServer\",\n \"globalTypes\",\n \"files\",\n \"ignores\",\n \"entries\",\n ].some((key) => Object.hasOwn(source, key))\n ) {\n return source;\n }\n return projectExplicitViteConfigSource(source, env, configDir);\n}\n\nfunction projectExplicitViteConfigSource(source, env, configDir) {\n if (\n [\"linter\", \"formatter\", \"languageServer\", \"globalTypes\", \"files\", \"ignores\", \"entries\"].some(\n (key) => Object.hasOwn(source, key),\n )\n ) {\n throw new Error(\n \"vize.config.* is no longer supported; move Vue settings to vue: in vite.config.* and TypeScript settings to tsconfig.json\",\n );\n }\n return projectViteConfigSource(source, env, configDir);\n}\n\n/** Project already evaluated settings; the owning adapter evaluates its Vite export once. */\nexport async function projectViteConfigSource(source, env, configDir) {\n if (!object(source)) throw new TypeError(\"Vite config source must be an object\");\n env ??= { mode: \"development\", command: \"serve\" };\n // Adapters may pass a native task environment after evaluating the Vite source.\n // Its legacy native callback shares the same idempotent Vite command mapping.\n if (env.command !== \"build\" && env.command !== \"serve\") env = { ...env, command: \"serve\" };\n rejectLegacyConfig(source);\n const selected = normalizeVueConfigOptions(source);\n const canonical = selected === undefined ? {} : flatVueOptions(selected);\n const overrides = {};\n if (object(source.compiler)) {\n const { vueVersion, ...compiler } = source.compiler;\n const version = vueVersion ?? compiler.compatibility?.vueVersion;\n overrides.compiler = merge(\n compiler,\n version === undefined\n ? {}\n : {\n // Numeric 0.1 is the newly public spelling of Vue 0.10.\n compatibility: {\n vueVersion: String(version === 0.1 ? \"0.10\" : version === \"legacy\" ? 2 : version),\n },\n },\n );\n }\n if (typeof source.typecheck === \"boolean\") overrides.typeChecker = { enabled: source.typecheck };\n else if (object(source.typecheck)) overrides.typeChecker = source.typecheck;\n if (object(source.lint)) {\n const linter = projectVitePlusLintConfig(source.lint);\n validateVueOption(linter, { $ref: \"#/definitions/LinterConfig\" }, \"lint\");\n if (Object.keys(linter).length !== 0) overrides.linter = linter;\n // Host overrides stay on the untouched Vite source. Their lint-only\n // excludeFiles scopes cannot use shared entries without changing other\n // commands' file selection. Only the global controls are projected here.\n }\n const lint = source.lint?.vue;\n if (typeof lint === \"boolean\") {\n overrides.linter = overlayVueOptions(overrides.linter ?? {}, { enabled: lint });\n } else if (object(lint)) {\n const { typecheck: _typecheck, locale: _locale, helpLevel: _helpLevel, ...native } = lint;\n overrides.linter = overlayVueOptions(overrides.linter ?? {}, native);\n }\n if (object(source.fmt)) {\n // Share supported formatter controls without forwarding host-owned tasks,\n // language switches, or options that the native formatter does not expose.\n const keys = vueOptionSchema.definitions.FormatterConfig.properties;\n const common = Object.fromEntries(\n Object.entries(source.fmt).filter(([key]) => Object.hasOwn(keys, key)),\n );\n // Excluding every Vue file from Oxfmt hands `.vue` to Vize, like the\n // integration's own `**/*.vue` entry; it never excludes them from Vize.\n if (Array.isArray(common.ignorePatterns)) {\n common.ignorePatterns = common.ignorePatterns.filter(\n (pattern) => !excludesEveryVueFile(pattern),\n );\n }\n overrides.formatter = overlayVueOptions(common, object(source.fmt.vue) ? source.fmt.vue : {});\n validateVueOption(overrides.formatter, { $ref: \"#/definitions/FormatterConfig\" }, \"fmt\");\n }\n const root = typeof source.root === \"string\" ? resolve(configDir ?? \".\", source.root) : configDir;\n const config = overlayVueOptions(merge(projectConfigDefaults(), overrides), canonical);\n return root ? { ...projectPaths(config, root, false), __vizeProjectRoot: root } : config;\n}\n\n// `*.vue` and `**/*.vue` match Vue files at every depth.\nfunction excludesEveryVueFile(pattern) {\n if (typeof pattern !== \"string\") return false;\n let rest = pattern;\n while (rest.startsWith(\"**/\")) rest = rest.slice(3);\n return rest === \"*.vue\";\n}\n\n/** Validate only canonical settings; selecting them never evaluates a legacy callback. */\nexport function vueConfigOptions(source) {\n const selected = source.vue;\n if (selected !== undefined) {\n validateVueOption(selected, vueOptionSchema, \"vue\");\n assertVueActionAliases(selected, \"vue\");\n }\n return selected;\n}\n\n/** Resolve preferred action names to the native section names without mutating authored input. */\nfunction normalizeVueConfigOptions(source) {\n const selected = vueConfigOptions(source);\n return selected === undefined ? undefined : normalizeVueActionAliases(selected, \"vue\");\n}\n\n/** Share canonical composition with adapters while their other Vite fields keep Vite merging. */\nexport function mergeVueConfigOptions(base, own) {\n vueConfigOptions({ vue: base });\n vueConfigOptions({ vue: own });\n if (base === undefined) return own;\n if (own === undefined) return base;\n const result = overlayVueOptions(base, own);\n vueConfigOptions({ vue: result });\n return result;\n}\n\nconst vueActionAliases = [\n [\"compile\", \"compiler\"],\n [\"typeCheck\", \"typeChecker\"],\n [\"fmt\", \"formatter\"],\n];\n\nfunction assertVueActionAliases(value, label) {\n for (const [action, compatibility] of vueActionAliases) {\n if (value[action] !== undefined && value[compatibility] !== undefined) {\n throw new TypeError(\n `${label}.${action}: conflicts with compatibility alias ${label}.${compatibility}; remove ${label}.${compatibility} and use ${label}.${action}`,\n );\n }\n }\n if (value.lint !== undefined && value.linter !== undefined) {\n throw new TypeError(\n `${label}.lint: conflicts with compatibility alias ${label}.linter; remove ${label}.linter and use ${label}.lint, with native rules under settings.vize`,\n );\n }\n for (let index = 0; index < (value.entries?.length ?? 0); index++) {\n assertVueActionAliases(value.entries[index], `${label}.entries[${index}]`);\n }\n}\n\nfunction normalizeVueActionAliases(value, label) {\n assertVueActionAliases(value, label);\n const result = { ...value };\n for (const [action, compatibility] of vueActionAliases) {\n if (result[action] === undefined) continue;\n result[compatibility] = result[action];\n delete result[action];\n }\n if (result.lint !== undefined) {\n const lint = result.lint;\n const linter = projectVitePlusLintConfig(lint);\n validateVueOption(linter, { $ref: \"#/definitions/LinterConfig\" }, `${label}.lint`);\n result.linter = linter;\n delete result.lint;\n const projectedEntries = projectVitePlusLintOverrides(lint, `${label}.lint`);\n if (projectedEntries.length !== 0) {\n result.entries = [...projectedEntries, ...(result.entries ?? [])];\n }\n }\n if (Array.isArray(result.entries)) {\n result.entries = result.entries.map((entry, index) =>\n normalizeVueActionAliases(entry, `${label}.entries[${index}]`),\n );\n }\n return result;\n}\n\nfunction projectVitePlusLintConfig(lint) {\n const settings = object(lint.settings?.vize) ? lint.settings.vize : {};\n const linter = {};\n for (const key of [\"preset\", \"typeAware\"]) {\n if (settings[key] !== undefined) linter[key] = settings[key];\n }\n const rules = {};\n const ruleOptions = {};\n for (const [id, entry] of Object.entries(object(lint.rules) ? lint.rules : {})) {\n if (!id.startsWith(\"vize/\")) continue;\n const name = id.slice(\"vize/\".length);\n const rawSeverity = Array.isArray(entry) ? entry[0] : entry;\n const severity =\n rawSeverity === 0\n ? \"off\"\n : rawSeverity === 1\n ? \"warn\"\n : rawSeverity === 2\n ? \"error\"\n : rawSeverity;\n if (severity === \"off\" || severity === \"warn\" || severity === \"error\") {\n rules[name] = severity;\n } else {\n throw new TypeError(`lint.rules.${id}: unsupported rule severity`);\n }\n if (Array.isArray(entry) && entry[1] !== undefined) {\n ruleOptions[name] = entry[1];\n }\n }\n if (Object.keys(rules).length !== 0) linter.rules = rules;\n if (Object.keys(ruleOptions).length !== 0) linter.ruleOptions = ruleOptions;\n return linter;\n}\n\nfunction projectVitePlusLintOverrides(lint, label) {\n if (!Array.isArray(lint.overrides)) return [];\n return lint.overrides.flatMap((override, index) => {\n if (!object(override)) return [];\n const linter = projectVitePlusLintConfig(override);\n if (linter.rules === undefined && linter.ruleOptions === undefined) return [];\n validateVueOption(\n linter,\n { $ref: \"#/definitions/LinterConfig\" },\n `${label}.overrides[${index}]`,\n );\n const files = stringArray(override.files, `${label}.overrides[${index}].files`);\n const ignores =\n override.excludeFiles === undefined\n ? undefined\n : stringArray(override.excludeFiles, `${label}.overrides[${index}].excludeFiles`);\n return [{ files, ...(ignores === undefined ? {} : { ignores }), linter }];\n });\n}\n\nfunction stringArray(value, label) {\n if (!Array.isArray(value) || !value.every((entry) => typeof entry === \"string\")) {\n throw new TypeError(`${label}: must be an array of strings to project vize/* rules`);\n }\n return [...value];\n}\n\nfunction flatVueOptions(selected) {\n const { version, entries, ...sections } = selected;\n return {\n ...sections,\n ...(version === undefined ? {} : { vue: { version } }),\n ...(entries === undefined ? {} : { entries: entries.map(flatVueOptions) }),\n };\n}\n\n// Native arrays replace; authored false leaves win and undefined remains absent.\nfunction overlayVueOptions(base, own) {\n const result = { ...base };\n for (const [key, value] of Object.entries(own)) {\n if (value === undefined) continue;\n const previous = Object.hasOwn(result, key) ? result[key] : undefined;\n Object.defineProperty(result, key, {\n value: object(value) && object(previous) ? overlayVueOptions(previous, value) : value,\n enumerable: true,\n configurable: true,\n writable: true,\n });\n }\n return result;\n}\n\nfunction validateVueOption(value, schema, label) {\n const refuse = (reason) => {\n throw new TypeError(`${label}: ${reason}`);\n };\n if (schema.$ref) {\n return validateVueOption(\n value,\n vueOptionSchema.definitions[schema.$ref.split(\"/\").at(-1)],\n label,\n );\n }\n if (schema.oneOf) {\n const matches = schema.oneOf.filter((candidate) => {\n try {\n validateVueOption(value, candidate, label);\n return true;\n } catch (error) {\n if (!(error instanceof TypeError)) throw error;\n return false;\n }\n });\n if (matches.length !== 1) refuse(\"must match one documented native option type\");\n return;\n }\n if (schema.enum && !schema.enum.includes(value)) refuse(\"unsupported native option value\");\n const valid = {\n object: object(value),\n array: Array.isArray(value),\n string: typeof value === \"string\",\n boolean: typeof value === \"boolean\",\n integer: Number.isInteger(value),\n number: typeof value === \"number\" && Number.isFinite(value),\n null: value === null,\n };\n if (schema.type && !valid[schema.type]) refuse(`must be ${schema.type}`);\n if (schema.minimum !== undefined && value < schema.minimum)\n refuse(`must be >= ${schema.minimum}`);\n if (schema.maximum !== undefined && value > schema.maximum)\n refuse(`must be <= ${schema.maximum}`);\n if (Array.isArray(value) && schema.items) {\n for (let index = 0; index < value.length; index++) {\n validateVueOption(value[index], schema.items, `${label}[${index}]`);\n }\n }\n if (object(value)) {\n for (const required of schema.required ?? []) {\n if (!Object.hasOwn(value, required) || value[required] === undefined)\n refuse(`missing ${required}`);\n }\n for (const [key, item] of Object.entries(value)) {\n const documented = Object.hasOwn(schema.properties ?? {}, key);\n if (!documented && schema.additionalProperties === false) refuse(`unknown option \"${key}\"`);\n if (schema.propertyNames?.pattern && !new RegExp(schema.propertyNames.pattern).test(key)) {\n refuse(`invalid native option name ${key}`);\n }\n const rule = documented ? schema.properties[key] : schema.additionalProperties;\n if (item !== undefined && object(rule)) validateVueOption(item, rule, `${label}.${key}`);\n }\n }\n}\n\n// Vite-owned settings use its root. Dedicated Vize files keep their established\n// config-directory path contract, and CLI arguments never pass through here.\nfunction projectPaths(config, root, entry) {\n if (!root || !object(config)) return config;\n const result = { ...config };\n if (\n typeof config.basePath === \"string\" ||\n config.files !== undefined ||\n (entry && config.ignores !== undefined)\n ) {\n result.basePath = resolve(root, config.basePath ?? \".\");\n }\n if (Array.isArray(config.entries)) {\n result.entries = config.entries.map((value) => projectPaths(value, root, true));\n }\n if (object(config.typeChecker)) {\n result.typeChecker = { ...config.typeChecker };\n for (const key of [\"tsconfig\", \"corsaPath\", \"tsgoPath\", \"tsrsPath\", \"globalsFile\"]) {\n if (typeof config.typeChecker[key] === \"string\") {\n result.typeChecker[key] = resolve(root, config.typeChecker[key]);\n }\n }\n }\n return result;\n}\n","import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { randomUUID } from \"node:crypto\";\nimport { createRequire } from \"node:module\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport type {\n ResolvedVizeConfig,\n LoadConfigOptions,\n UserConfigExport,\n ConfigEnv,\n GlobalTypesConfig,\n GlobalTypeDeclaration,\n} from \"./types/index.js\";\nimport { loadPklConfigJson } from \"./config/pkl.js\";\nimport { importConfigModule } from \"./config/module-runtime.mjs\";\nimport {\n VITE_CONFIG_FILE_NAMES,\n isViteConfigFile,\n resolveViteConfigExport as projectViteConfigExport,\n} from \"./config/vite-runtime.mjs\";\n\nexport { VITE_CONFIG_FILE_NAMES } from \"./config/vite-runtime.mjs\";\n\ntype NativeConfigHelpers = {\n normalizeVizeConfig(value: unknown): unknown;\n};\n\nconst require = createRequire(import.meta.url);\n\nexport const CONFIG_FILE_NAMES = VITE_CONFIG_FILE_NAMES;\nconst RETIRED_CONFIG = /^vize\\.config\\.(?:pkl|[cm]?[jt]s|json)$/;\nconst CONFIG_MIGRATION =\n \"vize.config.* is no longer supported; move Vue settings to vue: in vite.config.* and TypeScript settings to tsconfig.json\";\n\nconst DEFAULT_CONFIG_ENV: ConfigEnv = {\n mode: \"development\",\n command: \"serve\",\n};\n\nconst PACKAGE_ROOT = path.resolve(fileURLToPath(new URL(\".\", import.meta.url)), \"..\");\n\nexport const VIZE_CONFIG_JSON_SCHEMA_PATH = path.join(\n PACKAGE_ROOT,\n \"schemas\",\n \"vize.config.schema.json\",\n);\n\nexport const VIZE_CONFIG_PKL_SCHEMA_PATH = path.join(PACKAGE_ROOT, \"pkl\", \"vize.pkl\");\n\n/**\n * Define a Vize configuration with type checking.\n * Accepts a plain object or a function that receives ConfigEnv.\n */\nexport function defineConfig(config: UserConfigExport): UserConfigExport {\n return config;\n}\n\n/** Resolve native settings from an already loaded Vite/Vite+ export, without starting its plugins. */\nexport async function resolveViteConfigExport(\n exported: unknown,\n env?: ConfigEnv,\n configDir?: string,\n): Promise<ResolvedVizeConfig> {\n return normalizeLoadedConfig(await projectViteConfigExport(exported, env, configDir));\n}\n\n/**\n * Load project settings from `vite.config.*`; TypeScript settings stay in tsconfig.json.\n */\nexport async function loadConfig(\n root: string,\n options: LoadConfigOptions = {},\n): Promise<ResolvedVizeConfig | null> {\n const { mode = \"root\", configFile, env, viteConfig = true } = options;\n\n if (mode === \"none\") {\n return null;\n }\n\n if (configFile) {\n const absolutePath = path.isAbsolute(configFile) ? configFile : path.resolve(root, configFile);\n if (fs.existsSync(absolutePath)) {\n return loadConfigFile(absolutePath, env);\n }\n return null;\n }\n\n if (mode === \"auto\") {\n return loadConfigFromDirAuto(root, env, viteConfig);\n }\n\n return loadConfigFromDir(root, env, viteConfig);\n}\n\nasync function loadConfigFromDir(\n dir: string,\n env?: ConfigEnv,\n viteConfig = true,\n): Promise<ResolvedVizeConfig | null> {\n // Reject before reading Vite. A leftover dedicated file is an error, not an override.\n if (\n viteConfig &&\n fs.existsSync(dir) &&\n fs.readdirSync(dir).some((name) => RETIRED_CONFIG.test(name))\n ) {\n throw new Error(CONFIG_MIGRATION);\n }\n for (const name of viteConfig ? CONFIG_FILE_NAMES : []) {\n const filePath = path.join(dir, name);\n if (!fs.existsSync(filePath)) {\n continue;\n }\n\n const config = await loadConfigFile(filePath, env);\n if (config !== null) {\n return config;\n }\n }\n return null;\n}\n\nasync function loadConfigFromDirAuto(\n startDir: string,\n env?: ConfigEnv,\n viteConfig = true,\n): Promise<ResolvedVizeConfig | null> {\n let currentDir = path.resolve(startDir);\n\n while (true) {\n const config = await loadConfigFromDir(currentDir, env, viteConfig);\n if (config !== null) {\n return config;\n }\n\n if (\n [\"package.json\", \"tsconfig.json\", \"jsconfig.json\"].some((name) =>\n fs.existsSync(path.join(currentDir, name)),\n )\n ) {\n return null;\n }\n const parentDir = path.dirname(currentDir);\n if (parentDir === currentDir) {\n return null;\n }\n\n currentDir = parentDir;\n }\n}\n\nasync function loadConfigFile(\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig | null> {\n const absolutePath = path.resolve(filePath);\n if (RETIRED_CONFIG.test(path.basename(absolutePath))) throw new Error(CONFIG_MIGRATION);\n if (!fs.existsSync(absolutePath)) {\n return null;\n }\n\n const ext = path.extname(absolutePath);\n\n if (isViteConfigFile(absolutePath)) {\n // A project's installed Vite owns its module graph. Without Vite, retain\n // the existing TypeScript transform and fresh native import below.\n const module = await importConfigModule(absolutePath, () => null);\n if (module !== null) {\n return resolveFileExport((module.default ?? module) as UserConfigExport, absolutePath, env);\n }\n }\n\n if (ext === \".pkl\") {\n return loadPklConfig(absolutePath);\n }\n\n if (ext === \".json\") {\n const content = fs.readFileSync(absolutePath, \"utf-8\");\n return parseJsonConfig(content, absolutePath);\n }\n\n if (ext === \".ts\" || ext === \".mts\") {\n return loadTypeScriptConfig(absolutePath, env);\n }\n\n return loadESMConfig(absolutePath, env);\n}\n\nfunction loadPklConfig(filePath: string): ResolvedVizeConfig | null {\n const output = loadPklConfigJson(filePath);\n return output === null ? null : parseJsonConfig(output, filePath);\n}\n\nexport async function resolveConfigExport(\n exported: UserConfigExport,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n if (typeof exported === \"function\") {\n return normalizeLoadedConfig(await exported(env ?? DEFAULT_CONFIG_ENV));\n }\n\n return normalizeLoadedConfig(exported);\n}\n\nasync function loadTypeScriptConfig(\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n const source = fs.readFileSync(filePath, \"utf-8\");\n const oxcTransform = await import(\"oxc-transform\");\n const result = await oxcTransform.transform(filePath, source, {\n typescript: {\n onlyRemoveTypeImports: true,\n },\n });\n const code = rewriteSelfConfigImports(result.code);\n\n const tempFile = path.join(\n path.dirname(filePath),\n `.vize-config-${process.pid}-${Date.now()}-${randomUUID()}.mjs`,\n );\n fs.writeFileSync(tempFile, code, { flag: \"wx\", mode: 0o600 });\n\n try {\n const module = await importFresh(tempFile);\n const exported: UserConfigExport = module.default || module;\n return resolveFileExport(exported, filePath, env);\n } finally {\n fs.rmSync(tempFile, { force: true });\n }\n}\n\nasync function loadESMConfig(filePath: string, env?: ConfigEnv): Promise<ResolvedVizeConfig> {\n const module = await importFresh(filePath);\n const exported: UserConfigExport = module.default || module;\n return resolveFileExport(exported, filePath, env);\n}\n\nasync function resolveFileExport(\n exported: UserConfigExport,\n filePath: string,\n env?: ConfigEnv,\n): Promise<ResolvedVizeConfig> {\n return isViteConfigFile(filePath)\n ? resolveViteConfigExport(exported, env, path.dirname(filePath))\n : resolveConfigExport(exported, env);\n}\n\nasync function importFresh(filePath: string): Promise<Record<string, unknown>> {\n const fileUrl = pathToFileURL(filePath);\n fileUrl.searchParams.set(\"t\", String(fs.statSync(filePath).mtimeMs));\n return import(fileUrl.href);\n}\n\nfunction rewriteSelfConfigImports(code: string): string {\n return code\n .replace(/\\bfrom\\s+([\"'])(vize(?:\\/config)?)\\1/gu, (_match, quote, specifier) => {\n return `from ${quote}${resolveSelfConfigImportUrl(specifier)}${quote}`;\n })\n .replace(/\\bimport\\s+([\"'])(vize(?:\\/config)?)\\1/gu, (_match, quote, specifier) => {\n return `import ${quote}${resolveSelfConfigImportUrl(specifier)}${quote}`;\n })\n .replace(/\\bimport\\s*\\(\\s*([\"'])(vize(?:\\/config)?)\\1\\s*\\)/gu, (_match, quote, specifier) => {\n return `import(${quote}${resolveSelfConfigImportUrl(specifier)}${quote})`;\n });\n}\n\nfunction resolveSelfConfigImportUrl(specifier: string): string {\n const distTarget =\n specifier === \"vize\"\n ? path.join(PACKAGE_ROOT, \"dist\", \"index.mjs\")\n : path.join(PACKAGE_ROOT, \"dist\", \"config.mjs\");\n const sourceTarget = path.join(PACKAGE_ROOT, \"src\", \"config.ts\");\n return pathToFileURL(fs.existsSync(distTarget) ? distTarget : sourceTarget).href;\n}\n\nfunction parseJsonConfig(content: string, filePath: string): ResolvedVizeConfig {\n try {\n return normalizeLoadedConfig(JSON.parse(content));\n } catch (error) {\n throw new Error(`Failed to parse vize config JSON at ${filePath}: ${getErrorMessage(error)}`);\n }\n}\n\nfunction normalizeLoadedConfig(config: unknown): ResolvedVizeConfig {\n const hasExtends = (value: unknown) =>\n value !== null && typeof value === \"object\" && Object.hasOwn(value, \"extends\");\n const entries = Array.isArray(config)\n ? config\n : config && typeof config === \"object\" && \"entries\" in config\n ? (config as { entries?: unknown }).entries\n : undefined;\n if (hasExtends(config) || (Array.isArray(entries) && entries.some(hasExtends))) {\n throw new Error(\n \"Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig); standard tsconfig extends remains supported\",\n );\n }\n const native = require(\"@vizejs/native\") as NativeConfigHelpers;\n return native.normalizeVizeConfig(config ?? null) as ResolvedVizeConfig;\n}\n\nfunction getErrorMessage(error: unknown): string {\n if (error instanceof Error) {\n return error.message;\n }\n\n return String(error);\n}\n\n/**\n * Normalize GlobalTypesConfig shorthand strings to GlobalTypeDeclaration objects\n */\nexport function normalizeGlobalTypes(\n config: GlobalTypesConfig,\n): Record<string, GlobalTypeDeclaration> {\n const resolvedConfig =\n \"types\" in config &&\n typeof config.types === \"object\" &&\n config.types !== null &&\n !Array.isArray(config.types)\n ? config.types\n : config;\n\n const result: Record<string, GlobalTypeDeclaration> = {};\n for (const [key, value] of Object.entries(resolvedConfig)) {\n if (typeof value === \"string\") {\n result[key] = { type: value };\n } else {\n result[key] = value;\n }\n }\n return result;\n}\n"],"mappings":";;;;;;;;;;;;AAMA,MAAMA,iBAAeC,OAAK,QAAQ,cAAc,IAAI,IAAI,KAAK,OAAO,KAAK,GAAG,CAAC,GAAG,OAAO;AAEvF,MAAM,kCACJ;;;;;;;;;;;AAYF,SAAgB,kBAAkB,UAAU;CAC1C,MAAM,SAAS,cAAc;CAC7B,IAAI,CAAC,QAAQ;EACX,QAAQ,KACN,kHAEF;EACA,OAAO;CACT;CAEA,MAAM,kBAAkB,wCAAwC,QAAQ;CACxE,MAAM,eAAe,mBAAmB;CACxC,IAAI;EACF,OAAO,aAAa,QAAQ;GAAC;GAAQ;GAAM;GAAQ;EAAY,GAAG;GAChE,KAAKA,OAAK,QAAQ,QAAQ;GAC1B,UAAU;GACV,OAAO;IAAC;IAAU;IAAQ;GAAM;GAChC,SAAS;EACX,CAAC;CACH,SAAS,OAAO;EACd,MAAM,IAAI,MAAM,yCAAyC,SAAS,IAAIC,kBAAgB,KAAK,GAAG;CAChG,UAAU;EACR,IAAI,iBACF,KAAG,OAAO,iBAAiB,EAAE,OAAO,KAAK,CAAC;CAE9C;AACF;AAEA,SAAS,gBAAgB;CACvB,IAAI;EACF,MAAM,aAAa,OAAO,KAAK,UAAU,oBAAoB;EAC7D,IAAI,YAAY;GACd,MAAM,YAAYD,OAAK,QAAQ,cAAc,UAAU,CAAC;GACxD,MAAM,gBAAgBA,OAAK,QAAQ,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