vize 0.728.0 → 0.730.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/cli.mjs +126 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-Dc-RXTam.mjs → config-A2w3OVmY.mjs} +2 -2
- package/dist/config-A2w3OVmY.mjs.map +1 -0
- package/dist/{config-CxNCESsB.d.mts → config-CwhfgzBn.d.mts} +14 -2
- package/dist/config-CwhfgzBn.d.mts.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 +18 -0
- package/pkl/jsonschema/LintRuleOptionsSchemaDefinitions.pkl +54 -0
- package/pkl/vize.pkl +18 -0
- package/schemas/vize.config.schema.json +60 -0
- package/src/cli.ts +18 -1
- package/src/content-mapper-launch.ts +146 -0
- package/src/types/generated.ts +19 -0
- package/src/types/rules.ts +28 -0
- package/virtual-ts.d.cts +11 -0
- package/virtual-ts.d.mts +11 -0
- package/virtual-ts.d.ts +11 -0
- package/dist/config-CxNCESsB.d.mts.map +0 -1
- package/dist/config-Dc-RXTam.mjs.map +0 -1
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-CwhfgzBn.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-A2w3OVmY.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.730.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@vizejs/native": "0.
|
|
95
|
+
"@vizejs/native": "0.730.0",
|
|
96
96
|
"oxc-transform": "0.157.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
package/pkl/LinterConfig.pkl
CHANGED
|
@@ -208,6 +208,20 @@ class ValidVSlotOptions {
|
|
|
208
208
|
allowModifiers: Boolean = false
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
class EnforceStyleAttributeOptions {
|
|
212
|
+
allow: Listing<"plain" | "scoped" | "module"> = new Listing { "scoped" }
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
class NoRestrictedSyntaxOptions {
|
|
216
|
+
selectors: Listing<"ArrayExpression" | "BinaryExpression" | "CallExpression" | "ConditionalExpression" | "ObjectExpression" | "UnaryExpression"> = new Listing {}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
class SortKeysOptions {
|
|
220
|
+
order: "asc" | "desc" = "asc"
|
|
221
|
+
caseSensitive: Boolean = true
|
|
222
|
+
natural: Boolean = false
|
|
223
|
+
}
|
|
224
|
+
|
|
211
225
|
class LintRuleOptions {
|
|
212
226
|
`script/define-macros-order`: DefineMacrosOrderOptions? = null
|
|
213
227
|
`script/define-props-destructuring`: DefinePropsDestructuringOptions? = null
|
|
@@ -223,6 +237,10 @@ class LintRuleOptions {
|
|
|
223
237
|
`vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
|
|
224
238
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
225
239
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
240
|
+
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
241
|
+
`vue/no-restricted-syntax`: NoRestrictedSyntaxOptions? = null
|
|
242
|
+
`vue/quote-props`: "as-needed"? = null
|
|
243
|
+
`vue/sort-keys`: SortKeysOptions? = null
|
|
226
244
|
`vue/require-component-registration`: RequireComponentRegistrationOptions? = null
|
|
227
245
|
`vue/sfc-element-order`: SfcElementOrderOptions? = null
|
|
228
246
|
`vue/html-self-closing`: HtmlSelfClosingOptions? = null
|
|
@@ -110,6 +110,60 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
|
110
110
|
}
|
|
111
111
|
additionalProperties = false
|
|
112
112
|
}
|
|
113
|
+
["vue/enforce-style-attribute"] = new JsonSchema {
|
|
114
|
+
type = "object"
|
|
115
|
+
properties {
|
|
116
|
+
["allow"] = new JsonSchema {
|
|
117
|
+
type = "array"
|
|
118
|
+
items = new JsonSchema {
|
|
119
|
+
type = "string"
|
|
120
|
+
enum = new Listing { "plain"; "scoped"; "module" }
|
|
121
|
+
}
|
|
122
|
+
uniqueItems = true
|
|
123
|
+
default = new Listing { "scoped" }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
additionalProperties = false
|
|
127
|
+
}
|
|
128
|
+
["vue/no-restricted-syntax"] = new JsonSchema {
|
|
129
|
+
type = "object"
|
|
130
|
+
properties {
|
|
131
|
+
["selectors"] = new JsonSchema {
|
|
132
|
+
type = "array"
|
|
133
|
+
items = new JsonSchema {
|
|
134
|
+
type = "string"
|
|
135
|
+
enum = new Listing {
|
|
136
|
+
"ArrayExpression"
|
|
137
|
+
"BinaryExpression"
|
|
138
|
+
"CallExpression"
|
|
139
|
+
"ConditionalExpression"
|
|
140
|
+
"ObjectExpression"
|
|
141
|
+
"UnaryExpression"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
uniqueItems = true
|
|
145
|
+
default = new Listing {}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
additionalProperties = false
|
|
149
|
+
}
|
|
150
|
+
["vue/quote-props"] = new JsonSchema {
|
|
151
|
+
type = "string"
|
|
152
|
+
enum = new Listing { "as-needed" }
|
|
153
|
+
}
|
|
154
|
+
["vue/sort-keys"] = new JsonSchema {
|
|
155
|
+
type = "object"
|
|
156
|
+
properties {
|
|
157
|
+
["order"] = new JsonSchema {
|
|
158
|
+
type = "string"
|
|
159
|
+
enum = new Listing { "asc"; "desc" }
|
|
160
|
+
default = "asc"
|
|
161
|
+
}
|
|
162
|
+
["caseSensitive"] = new JsonSchema { type = "boolean"; default = true }
|
|
163
|
+
["natural"] = new JsonSchema { type = "boolean"; default = false }
|
|
164
|
+
}
|
|
165
|
+
additionalProperties = false
|
|
166
|
+
}
|
|
113
167
|
["vue/require-component-registration"] = new JsonSchema {
|
|
114
168
|
type = "object"
|
|
115
169
|
properties {
|
package/pkl/vize.pkl
CHANGED
|
@@ -225,6 +225,20 @@ class AttributeHyphenationOptions {
|
|
|
225
225
|
ignoreTags: Listing<String> = new Listing {}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
class EnforceStyleAttributeOptions {
|
|
229
|
+
allow: Listing<"plain" | "scoped" | "module"> = new Listing { "scoped" }
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
class NoRestrictedSyntaxOptions {
|
|
233
|
+
selectors: Listing<"ArrayExpression" | "BinaryExpression" | "CallExpression" | "ConditionalExpression" | "ObjectExpression" | "UnaryExpression"> = new Listing {}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
class SortKeysOptions {
|
|
237
|
+
order: "asc" | "desc" = "asc"
|
|
238
|
+
caseSensitive: Boolean = true
|
|
239
|
+
natural: Boolean = false
|
|
240
|
+
}
|
|
241
|
+
|
|
228
242
|
class LintRuleOptions {
|
|
229
243
|
`script/define-macros-order`: DefineMacrosOrderOptions? = null
|
|
230
244
|
`script/define-props-destructuring`: DefinePropsDestructuringOptions? = null
|
|
@@ -241,6 +255,10 @@ class LintRuleOptions {
|
|
|
241
255
|
`vue/no-bare-strings-in-template`: NoBareStringsInTemplateOptions? = null
|
|
242
256
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
243
257
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
258
|
+
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
259
|
+
`vue/no-restricted-syntax`: NoRestrictedSyntaxOptions? = null
|
|
260
|
+
`vue/quote-props`: "as-needed"? = null
|
|
261
|
+
`vue/sort-keys`: SortKeysOptions? = null
|
|
244
262
|
`vue/require-component-registration`: RequireComponentRegistrationOptions? = null
|
|
245
263
|
`vue/sfc-element-order`: SfcElementOrderOptions? = null
|
|
246
264
|
`vue/html-self-closing`: HtmlSelfClosingOptions? = null
|
|
@@ -671,6 +671,66 @@
|
|
|
671
671
|
},
|
|
672
672
|
"additionalProperties": false
|
|
673
673
|
},
|
|
674
|
+
"vue/enforce-style-attribute": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"properties": {
|
|
677
|
+
"allow": {
|
|
678
|
+
"default": ["scoped"],
|
|
679
|
+
"type": "array",
|
|
680
|
+
"items": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"enum": ["plain", "scoped", "module"]
|
|
683
|
+
},
|
|
684
|
+
"uniqueItems": true
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"additionalProperties": false
|
|
688
|
+
},
|
|
689
|
+
"vue/no-restricted-syntax": {
|
|
690
|
+
"type": "object",
|
|
691
|
+
"properties": {
|
|
692
|
+
"selectors": {
|
|
693
|
+
"default": [],
|
|
694
|
+
"type": "array",
|
|
695
|
+
"items": {
|
|
696
|
+
"type": "string",
|
|
697
|
+
"enum": [
|
|
698
|
+
"ArrayExpression",
|
|
699
|
+
"BinaryExpression",
|
|
700
|
+
"CallExpression",
|
|
701
|
+
"ConditionalExpression",
|
|
702
|
+
"ObjectExpression",
|
|
703
|
+
"UnaryExpression"
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
"uniqueItems": true
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"additionalProperties": false
|
|
710
|
+
},
|
|
711
|
+
"vue/quote-props": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"enum": ["as-needed"]
|
|
714
|
+
},
|
|
715
|
+
"vue/sort-keys": {
|
|
716
|
+
"type": "object",
|
|
717
|
+
"properties": {
|
|
718
|
+
"order": {
|
|
719
|
+
"default": "asc",
|
|
720
|
+
"type": "string",
|
|
721
|
+
"enum": ["asc", "desc"]
|
|
722
|
+
},
|
|
723
|
+
"caseSensitive": {
|
|
724
|
+
"default": true,
|
|
725
|
+
"type": "boolean"
|
|
726
|
+
},
|
|
727
|
+
"natural": {
|
|
728
|
+
"default": false,
|
|
729
|
+
"type": "boolean"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"additionalProperties": false
|
|
733
|
+
},
|
|
674
734
|
"vue/require-component-registration": {
|
|
675
735
|
"type": "object",
|
|
676
736
|
"properties": {
|
package/src/cli.ts
CHANGED
|
@@ -3,6 +3,10 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
6
|
+
import {
|
|
7
|
+
answerContentMapperInitialize,
|
|
8
|
+
ContentMapperFramingError,
|
|
9
|
+
} from "./content-mapper-launch.js";
|
|
6
10
|
import { runInitCli } from "./init.js";
|
|
7
11
|
import { nativeVersionMismatchMessage } from "./native-version.js";
|
|
8
12
|
import { runSetupCli } from "./setup.js";
|
|
@@ -47,11 +51,24 @@ try {
|
|
|
47
51
|
// `init` prompts, so it is the one command that has to be async. Failures
|
|
48
52
|
// land in the same reporter as the synchronous commands.
|
|
49
53
|
runInitCli(args.slice(1)).catch(fail);
|
|
54
|
+
} else if (args[0] === "content-mapper") {
|
|
55
|
+
assertMatchingNativeVersion();
|
|
56
|
+
// Reply before the addon loads; the host's `initialize` wait is fixed (#12530).
|
|
57
|
+
if (answerContentMapperInitialize()) {
|
|
58
|
+
const native = require("@vizejs/native") as typeof import("@vizejs/native");
|
|
59
|
+
native.runCli([...args, "--initialized"]);
|
|
60
|
+
}
|
|
50
61
|
} else {
|
|
51
62
|
assertMatchingNativeVersion();
|
|
52
63
|
const native = require("@vizejs/native") as typeof import("@vizejs/native");
|
|
53
64
|
native.runCli(args);
|
|
54
65
|
}
|
|
55
66
|
} catch (error) {
|
|
56
|
-
|
|
67
|
+
if (error instanceof ContentMapperFramingError) {
|
|
68
|
+
// The native server reports a broken stream the same way.
|
|
69
|
+
process.stderr.write(`vize content-mapper: ${error.message}\n`);
|
|
70
|
+
process.exitCode = 1;
|
|
71
|
+
} else {
|
|
72
|
+
fail(error);
|
|
73
|
+
}
|
|
57
74
|
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// The TypeScript host waits a fixed 5 s for the content mapper's `initialize`
|
|
2
|
+
// reply, and the first `require()` of a freshly installed native addon can
|
|
3
|
+
// take most of that (#12530). The reply only declares capabilities, so the
|
|
4
|
+
// launcher answers it here and loads the addon afterwards. The native server
|
|
5
|
+
// then reads the rest of the same stream, already initialized.
|
|
6
|
+
//
|
|
7
|
+
// Frames are read from fd 0 with exact lengths and no read-ahead, so every
|
|
8
|
+
// later byte is left for the native reader. Until `initialize` succeeds this
|
|
9
|
+
// replies as the native server does to an uninitialized stream.
|
|
10
|
+
import { readSync, writeSync } from "node:fs";
|
|
11
|
+
|
|
12
|
+
const MAX_HEADER_BYTES = 8 * 1024;
|
|
13
|
+
const MAX_MESSAGE_BYTES = 64 * 1024 * 1024;
|
|
14
|
+
const idle = new Int32Array(new SharedArrayBuffer(4));
|
|
15
|
+
|
|
16
|
+
/** Error raised when the launcher receives invalid or incomplete content-mapper framing. */
|
|
17
|
+
export class ContentMapperFramingError extends Error {}
|
|
18
|
+
|
|
19
|
+
function readSome(buffer: Buffer, offset: number, length: number): number {
|
|
20
|
+
for (;;) {
|
|
21
|
+
try {
|
|
22
|
+
return readSync(0, buffer, offset, length, null);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
const code = (error as NodeJS.ErrnoException).code;
|
|
25
|
+
if (code === "EOF") return 0;
|
|
26
|
+
if (code !== "EAGAIN") throw error;
|
|
27
|
+
Atomics.wait(idle, 0, 0, 5);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** One frame body, or `null` at EOF before any header byte. */
|
|
33
|
+
function readFrame() {
|
|
34
|
+
const byte = Buffer.alloc(1);
|
|
35
|
+
let header = "";
|
|
36
|
+
let line = "";
|
|
37
|
+
let contentLength: number | undefined;
|
|
38
|
+
for (;;) {
|
|
39
|
+
if (header.length >= MAX_HEADER_BYTES) {
|
|
40
|
+
throw new ContentMapperFramingError("content-mapper headers exceed 8 KiB");
|
|
41
|
+
}
|
|
42
|
+
if (readSome(byte, 0, 1) === 0) {
|
|
43
|
+
if (header.length === 0) return null;
|
|
44
|
+
throw new ContentMapperFramingError("EOF inside content-mapper headers");
|
|
45
|
+
}
|
|
46
|
+
const char = byte.toString("latin1");
|
|
47
|
+
header += char;
|
|
48
|
+
line += char;
|
|
49
|
+
if (char !== "\n") continue;
|
|
50
|
+
if (line === "\r\n" || line === "\n") break;
|
|
51
|
+
const separator = line.indexOf(":");
|
|
52
|
+
if (separator >= 0 && line.slice(0, separator).toLowerCase() === "content-length") {
|
|
53
|
+
if (contentLength !== undefined) {
|
|
54
|
+
throw new ContentMapperFramingError("duplicate Content-Length header");
|
|
55
|
+
}
|
|
56
|
+
const value = line.slice(separator + 1).trim();
|
|
57
|
+
if (!/^\d+$/.test(value)) throw new ContentMapperFramingError("invalid Content-Length");
|
|
58
|
+
contentLength = Number(value);
|
|
59
|
+
}
|
|
60
|
+
line = "";
|
|
61
|
+
}
|
|
62
|
+
if (contentLength === undefined) {
|
|
63
|
+
throw new ContentMapperFramingError("missing Content-Length header");
|
|
64
|
+
}
|
|
65
|
+
if (contentLength > MAX_MESSAGE_BYTES) {
|
|
66
|
+
throw new ContentMapperFramingError("content-mapper message exceeds 64 MiB");
|
|
67
|
+
}
|
|
68
|
+
const body = Buffer.alloc(contentLength);
|
|
69
|
+
for (let offset = 0; offset < contentLength;) {
|
|
70
|
+
const read = readSome(body, offset, contentLength - offset);
|
|
71
|
+
if (read === 0) throw new ContentMapperFramingError("EOF inside a content-mapper message");
|
|
72
|
+
offset += read;
|
|
73
|
+
}
|
|
74
|
+
return body;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function writeFrame(value: unknown): void {
|
|
78
|
+
const body = Buffer.from(JSON.stringify(value));
|
|
79
|
+
const frame = Buffer.concat([Buffer.from(`Content-Length: ${body.length}\r\n\r\n`), body]);
|
|
80
|
+
for (let offset = 0; offset < frame.length;) {
|
|
81
|
+
offset += writeSync(1, frame, offset);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Key order follows the native server's sorted JSON objects.
|
|
86
|
+
const fail = (id: unknown, code: number, message: string) =>
|
|
87
|
+
writeFrame({ error: { code, message }, id, jsonrpc: "2.0" });
|
|
88
|
+
|
|
89
|
+
function initializeProblem(params: unknown): string | null {
|
|
90
|
+
if (typeof params !== "object" || params === null || Array.isArray(params)) {
|
|
91
|
+
return "Invalid initialize params: expected an object";
|
|
92
|
+
}
|
|
93
|
+
const { locale, positionEncodings } = params as Record<string, unknown>;
|
|
94
|
+
if (locale !== undefined && locale !== null && typeof locale !== "string") {
|
|
95
|
+
return "Invalid initialize params: `locale` must be a string";
|
|
96
|
+
}
|
|
97
|
+
if (positionEncodings === undefined) {
|
|
98
|
+
return "Invalid initialize params: missing field `positionEncodings`";
|
|
99
|
+
}
|
|
100
|
+
if (!Array.isArray(positionEncodings) || positionEncodings.some((e) => typeof e !== "string")) {
|
|
101
|
+
return "Invalid initialize params: `positionEncodings` must be a string array";
|
|
102
|
+
}
|
|
103
|
+
if (!positionEncodings.includes("utf-8")) return "Vize requires the utf-8 position encoding";
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Answer the stream until `initialize` succeeds. `true` means the native
|
|
109
|
+
* server takes over initialized; `false` means the host closed the stream
|
|
110
|
+
* first and there is nothing to serve.
|
|
111
|
+
*/
|
|
112
|
+
export function answerContentMapperInitialize(): boolean {
|
|
113
|
+
for (;;) {
|
|
114
|
+
const body = readFrame();
|
|
115
|
+
if (body === null) return false;
|
|
116
|
+
let request: Record<string, unknown>;
|
|
117
|
+
try {
|
|
118
|
+
const parsed: unknown = JSON.parse(body.toString("utf8"));
|
|
119
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
120
|
+
throw new Error("expected a request object");
|
|
121
|
+
}
|
|
122
|
+
request = parsed as Record<string, unknown>;
|
|
123
|
+
if (typeof request.method !== "string") throw new Error("missing field `method`");
|
|
124
|
+
} catch (error) {
|
|
125
|
+
fail(null, -32700, `Parse error: ${(error as Error).message}`);
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
const id = request.id ?? null;
|
|
129
|
+
if (request.method === "initialize") {
|
|
130
|
+
const problem = initializeProblem(request.params ?? null);
|
|
131
|
+
if (problem === null) {
|
|
132
|
+
writeFrame({
|
|
133
|
+
id,
|
|
134
|
+
jsonrpc: "2.0",
|
|
135
|
+
result: { diagnosticSource: "vize", positionEncoding: "utf-8" },
|
|
136
|
+
});
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
fail(id, -32602, problem);
|
|
140
|
+
} else if (["openProject", "closeProject", "transform"].includes(request.method as string)) {
|
|
141
|
+
fail(id, -32002, "Content mapper is not initialized");
|
|
142
|
+
} else {
|
|
143
|
+
fail(id, -32601, `Method not found: ${request.method as string}`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
package/src/types/generated.ts
CHANGED
|
@@ -309,6 +309,25 @@ export interface LintRuleOptions {
|
|
|
309
309
|
"a11y/label-has-for"?: {
|
|
310
310
|
controlComponents?: string[];
|
|
311
311
|
};
|
|
312
|
+
"vue/enforce-style-attribute"?: {
|
|
313
|
+
allow?: ("plain" | "scoped" | "module")[];
|
|
314
|
+
};
|
|
315
|
+
"vue/no-restricted-syntax"?: {
|
|
316
|
+
selectors?: (
|
|
317
|
+
| "ArrayExpression"
|
|
318
|
+
| "BinaryExpression"
|
|
319
|
+
| "CallExpression"
|
|
320
|
+
| "ConditionalExpression"
|
|
321
|
+
| "ObjectExpression"
|
|
322
|
+
| "UnaryExpression"
|
|
323
|
+
)[];
|
|
324
|
+
};
|
|
325
|
+
"vue/quote-props"?: "as-needed";
|
|
326
|
+
"vue/sort-keys"?: {
|
|
327
|
+
order?: "asc" | "desc";
|
|
328
|
+
caseSensitive?: boolean;
|
|
329
|
+
natural?: boolean;
|
|
330
|
+
};
|
|
312
331
|
"vue/require-component-registration"?: {
|
|
313
332
|
globals?: string[];
|
|
314
333
|
};
|
package/src/types/rules.ts
CHANGED
|
@@ -168,9 +168,13 @@ export const LINT_RULE_NAMES = [
|
|
|
168
168
|
"vue/a11y-img-alt",
|
|
169
169
|
"vue/attribute-hyphenation",
|
|
170
170
|
"vue/attribute-order",
|
|
171
|
+
"vue/camelcase",
|
|
171
172
|
"vue/comment-directive",
|
|
172
173
|
"vue/component-definition-name-casing",
|
|
173
174
|
"vue/component-name-in-template-casing",
|
|
175
|
+
"vue/dot-notation",
|
|
176
|
+
"vue/enforce-style-attribute",
|
|
177
|
+
"vue/eqeqeq",
|
|
174
178
|
"vue/html-button-has-type",
|
|
175
179
|
"vue/html-end-tags",
|
|
176
180
|
"vue/html-quotes",
|
|
@@ -180,11 +184,16 @@ export const LINT_RULE_NAMES = [
|
|
|
180
184
|
"vue/max-template-complexity",
|
|
181
185
|
"vue/multi-word-component-names",
|
|
182
186
|
"vue/mustache-interpolation-spacing",
|
|
187
|
+
"vue/next-tick-style",
|
|
183
188
|
"vue/no-array-index-key",
|
|
184
189
|
"vue/no-bare-strings-in-template",
|
|
185
190
|
"vue/no-boolean-attr-value",
|
|
186
191
|
"vue/no-child-content",
|
|
192
|
+
"vue/no-console",
|
|
193
|
+
"vue/no-constant-condition",
|
|
194
|
+
"vue/no-content-outside-block",
|
|
187
195
|
"vue/no-custom-modifiers-on-v-model",
|
|
196
|
+
"vue/no-define-model-default",
|
|
188
197
|
"vue/no-deprecated-filter",
|
|
189
198
|
"vue/no-deprecated-functional-template",
|
|
190
199
|
"vue/no-deprecated-html-element-is",
|
|
@@ -200,21 +209,32 @@ export const LINT_RULE_NAMES = [
|
|
|
200
209
|
"vue/no-dupe-v-else-if",
|
|
201
210
|
"vue/no-duplicate-attributes",
|
|
202
211
|
"vue/no-empty-component-block",
|
|
212
|
+
"vue/no-empty-pattern",
|
|
213
|
+
"vue/no-implicit-coercion",
|
|
203
214
|
"vue/no-inline-style",
|
|
204
215
|
"vue/no-invalid-html-attribute",
|
|
216
|
+
"vue/no-irregular-whitespace",
|
|
217
|
+
"vue/no-literals-in-template",
|
|
205
218
|
"vue/no-lone-template",
|
|
219
|
+
"vue/no-loss-of-precision",
|
|
206
220
|
"vue/no-multi-spaces",
|
|
207
221
|
"vue/no-multiple-objects-in-class",
|
|
208
222
|
"vue/no-multiple-template-root",
|
|
209
223
|
"vue/no-mutating-props",
|
|
224
|
+
"vue/no-negated-condition",
|
|
210
225
|
"vue/no-negated-v-if-condition",
|
|
211
226
|
"vue/no-non-component-keep-alive-child",
|
|
212
227
|
"vue/no-preprocessor-lang",
|
|
228
|
+
"vue/no-props-shadow",
|
|
213
229
|
"vue/no-ref-object-reactivity-loss",
|
|
214
230
|
"vue/no-reserved-component-names",
|
|
231
|
+
"vue/no-restricted-syntax",
|
|
232
|
+
"vue/no-restricted-v-bind",
|
|
215
233
|
"vue/no-root-v-if",
|
|
216
234
|
"vue/no-script-non-standard-lang",
|
|
217
235
|
"vue/no-setup-props-reactivity-loss",
|
|
236
|
+
"vue/no-shadow-native-events",
|
|
237
|
+
"vue/no-sparse-arrays",
|
|
218
238
|
"vue/no-src-attribute",
|
|
219
239
|
"vue/no-static-inline-styles",
|
|
220
240
|
"vue/no-template-key",
|
|
@@ -233,6 +253,7 @@ export const LINT_RULE_NAMES = [
|
|
|
233
253
|
"vue/no-unused-vars",
|
|
234
254
|
"vue/no-use-v-else-with-v-for",
|
|
235
255
|
"vue/no-use-v-if-with-v-for",
|
|
256
|
+
"vue/no-useless-concat",
|
|
236
257
|
"vue/no-useless-mustaches",
|
|
237
258
|
"vue/no-useless-template-attributes",
|
|
238
259
|
"vue/no-useless-v-bind",
|
|
@@ -241,14 +262,19 @@ export const LINT_RULE_NAMES = [
|
|
|
241
262
|
"vue/no-v-html",
|
|
242
263
|
"vue/no-v-text",
|
|
243
264
|
"vue/no-v-text-v-html-on-component",
|
|
265
|
+
"vue/object-shorthand",
|
|
244
266
|
"vue/permitted-contents",
|
|
245
267
|
"vue/prefer-prop-type-boolean-first",
|
|
246
268
|
"vue/prefer-props-shorthand",
|
|
269
|
+
"vue/prefer-template",
|
|
247
270
|
"vue/prefer-true-attribute-shorthand",
|
|
271
|
+
"vue/prefer-v-model",
|
|
248
272
|
"vue/prop-name-casing",
|
|
273
|
+
"vue/quote-props",
|
|
249
274
|
"vue/require-component-is",
|
|
250
275
|
"vue/require-component-registration",
|
|
251
276
|
"vue/require-expose",
|
|
277
|
+
"vue/require-macro-variable-name",
|
|
252
278
|
"vue/require-scoped-style",
|
|
253
279
|
"vue/require-toggle-inside-transition",
|
|
254
280
|
"vue/require-v-for-key",
|
|
@@ -256,10 +282,12 @@ export const LINT_RULE_NAMES = [
|
|
|
256
282
|
"vue/sfc-element-order",
|
|
257
283
|
"vue/single-style-block",
|
|
258
284
|
"vue/slot-name-casing",
|
|
285
|
+
"vue/sort-keys",
|
|
259
286
|
"vue/this-in-template",
|
|
260
287
|
"vue/use-unique-element-ids",
|
|
261
288
|
"vue/use-v-on-exact",
|
|
262
289
|
"vue/v-bind-style",
|
|
290
|
+
"vue/v-if-else-key",
|
|
263
291
|
"vue/v-on-event-hyphenation",
|
|
264
292
|
"vue/v-on-handler-style",
|
|
265
293
|
"vue/v-on-style",
|
package/virtual-ts.d.cts
CHANGED
|
@@ -25,6 +25,17 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
? boolean
|
|
26
26
|
: T
|
|
27
27
|
: T;
|
|
28
|
+
// Template ref unwrap, shared so each instantiation is cached once per program.
|
|
29
|
+
export type $TemplateRefUnwrap<T> = T extends { value: unknown }
|
|
30
|
+
? T extends import("vue").Ref
|
|
31
|
+
? $WidenTemplateRef<T["value"]>
|
|
32
|
+
: T
|
|
33
|
+
: T;
|
|
34
|
+
export type $TemplateRefUnwrapNarrowed<T> = [T] extends [import("vue").Ref]
|
|
35
|
+
? $TemplateRefUnwrap<T>
|
|
36
|
+
: [Extract<T, import("vue").Ref>] extends [never]
|
|
37
|
+
? $TemplateRefUnwrap<T>
|
|
38
|
+
: (NonNullable<T> & import("vue").Ref<unknown> & { value: $TemplateRefUnwrap<T> })["value"];
|
|
28
39
|
|
|
29
40
|
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
30
41
|
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
package/virtual-ts.d.mts
CHANGED
|
@@ -25,6 +25,17 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
? boolean
|
|
26
26
|
: T
|
|
27
27
|
: T;
|
|
28
|
+
// Template ref unwrap, shared so each instantiation is cached once per program.
|
|
29
|
+
export type $TemplateRefUnwrap<T> = T extends { value: unknown }
|
|
30
|
+
? T extends import("vue").Ref
|
|
31
|
+
? $WidenTemplateRef<T["value"]>
|
|
32
|
+
: T
|
|
33
|
+
: T;
|
|
34
|
+
export type $TemplateRefUnwrapNarrowed<T> = [T] extends [import("vue").Ref]
|
|
35
|
+
? $TemplateRefUnwrap<T>
|
|
36
|
+
: [Extract<T, import("vue").Ref>] extends [never]
|
|
37
|
+
? $TemplateRefUnwrap<T>
|
|
38
|
+
: (NonNullable<T> & import("vue").Ref<unknown> & { value: $TemplateRefUnwrap<T> })["value"];
|
|
28
39
|
|
|
29
40
|
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
30
41
|
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
package/virtual-ts.d.ts
CHANGED
|
@@ -25,6 +25,17 @@ export type $WidenTemplateRef<T> =
|
|
|
25
25
|
? boolean
|
|
26
26
|
: T
|
|
27
27
|
: T;
|
|
28
|
+
// Template ref unwrap, shared so each instantiation is cached once per program.
|
|
29
|
+
export type $TemplateRefUnwrap<T> = T extends { value: unknown }
|
|
30
|
+
? T extends import("vue").Ref
|
|
31
|
+
? $WidenTemplateRef<T["value"]>
|
|
32
|
+
: T
|
|
33
|
+
: T;
|
|
34
|
+
export type $TemplateRefUnwrapNarrowed<T> = [T] extends [import("vue").Ref]
|
|
35
|
+
? $TemplateRefUnwrap<T>
|
|
36
|
+
: [Extract<T, import("vue").Ref>] extends [never]
|
|
37
|
+
? $TemplateRefUnwrap<T>
|
|
38
|
+
: (NonNullable<T> & import("vue").Ref<unknown> & { value: $TemplateRefUnwrap<T> })["value"];
|
|
28
39
|
|
|
29
40
|
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
30
41
|
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-CxNCESsB.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,GA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