@vmz/vmz 0.0.2 → 0.0.3

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.
Files changed (65) hide show
  1. package/README.md +13 -9
  2. package/dist/application-cmd.d.ts +1 -2
  3. package/dist/application-cmd.js +9 -10
  4. package/dist/bundler-adapter.d.ts +2 -3
  5. package/dist/bundler-adapter.js +2 -3
  6. package/dist/cli.d.ts +10 -2
  7. package/dist/cli.js +119 -15
  8. package/dist/dev-session.d.ts +2 -2
  9. package/dist/dev-session.js +3 -3
  10. package/dist/document-build.js +1 -2
  11. package/dist/document-check.d.ts +1 -1
  12. package/dist/document-check.js +4 -4
  13. package/dist/document-cmd.d.ts +1 -2
  14. package/dist/document-cmd.js +2 -3
  15. package/dist/document-designs.js +1 -1
  16. package/dist/document-enrich.js +2 -3
  17. package/dist/document-evidence.d.ts +4 -4
  18. package/dist/document-evidence.js +20 -12
  19. package/dist/document-integrate.d.ts +0 -1
  20. package/dist/document-integrate.js +0 -1
  21. package/dist/document-interactive.d.ts +11 -11
  22. package/dist/document-interactive.js +12 -13
  23. package/dist/document-locale.d.ts +1 -1
  24. package/dist/document-locale.js +1 -1
  25. package/dist/document-markdown.d.ts +1 -2
  26. package/dist/document-markdown.js +13 -7
  27. package/dist/document-scan.d.ts +4 -4
  28. package/dist/document-scan.js +4 -4
  29. package/dist/document-schema.d.ts +28 -29
  30. package/dist/document-schema.js +28 -29
  31. package/dist/explain-cmd.js +3 -3
  32. package/dist/index.d.ts +340 -789
  33. package/dist/index.js +91 -80
  34. package/dist/invocation.d.ts +91 -0
  35. package/dist/invocation.js +190 -0
  36. package/dist/locale-check.d.ts +3 -3
  37. package/dist/locale-check.js +5 -6
  38. package/dist/locale-cmd.js +6 -7
  39. package/dist/locale-delivery.d.ts +38 -38
  40. package/dist/locale-delivery.js +39 -40
  41. package/dist/locale-router.d.ts +39 -40
  42. package/dist/locale-router.js +39 -40
  43. package/dist/locale-runtime.d.ts +39 -39
  44. package/dist/locale-runtime.js +44 -45
  45. package/dist/locale-schema.d.ts +1 -2
  46. package/dist/locale-schema.js +1 -2
  47. package/dist/locale-tooling.d.ts +13 -13
  48. package/dist/locale-tooling.js +14 -15
  49. package/dist/log.d.ts +1 -1
  50. package/dist/log.js +1 -1
  51. package/dist/packages.d.ts +1 -2
  52. package/dist/packages.js +1 -2
  53. package/dist/plugin-host.d.ts +1 -2
  54. package/dist/plugin-host.js +2 -3
  55. package/dist/refactor-cmd.d.ts +1 -1
  56. package/dist/refactor-cmd.js +6 -6
  57. package/dist/resolve-native-cli.d.ts +14 -0
  58. package/dist/resolve-native-cli.js +84 -0
  59. package/dist/resolve.d.ts +1 -2
  60. package/dist/resolve.js +1 -2
  61. package/dist/test-cmd.d.ts +2 -2
  62. package/dist/test-cmd.js +37 -17
  63. package/dist/watch-diff.d.ts +1 -1
  64. package/dist/watch-diff.js +1 -1
  65. package/package.json +31 -16
@@ -1,8 +1,7 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Locale I3 router / PageMeta: route realization · canonical · hreflang ·
3
+ * Locale router / PageMeta: route realization · canonical · hreflang ·
4
4
  * Link locale retain · locale-aware cache key.
5
- * Design: 规划设计/vmz/28 §6 · §10 · 20
6
5
  *
7
6
  * LocaleId is a RouteNode realization dimension — not part of stable RouteId.
8
7
  */
@@ -22,7 +21,7 @@ function normalizePath(path) {
22
21
  /**
23
22
  * Join locale prefix with a stable route path pattern.
24
23
  * @param {string} localeId
25
- * @param {string} pathPattern stable path without locale (e.g. /account/profile)
24
+ * @param {string} pathPattern stable path without locale (e.g. /account/profile)
26
25
  * @param {{ strategy?: string, defaultPrefix?: string, defaultLocale?: string }} routing
27
26
  */
28
27
  export function realizeRoutePath(localeId, pathPattern, routing = {}) {
@@ -64,10 +63,10 @@ export function realizeRoutePath(localeId, pathPattern, routing = {}) {
64
63
  /**
65
64
  * Build RouteId × LocaleId realization table.
66
65
  * @param {{
67
- * routes: Array<{ routeId: string, path: string }>,
68
- * locales: string[],
69
- * defaultLocale: string,
70
- * routing?: { strategy?: string, defaultPrefix?: string },
66
+ * routes: Array<{ routeId: string, path: string }>,
67
+ * locales: string[],
68
+ * defaultLocale: string,
69
+ * routing?: { strategy?: string, defaultPrefix?: string },
71
70
  * }} input
72
71
  */
73
72
  export function buildLocaleRouteRealizationTable(input) {
@@ -125,15 +124,15 @@ export function absoluteUrl(origin, path) {
125
124
  /**
126
125
  * Locale-aware PageMeta for one RouteId × LocaleId.
127
126
  * @param {{
128
- * routeId: string,
129
- * localeId: string,
130
- * direction?: string,
131
- * title: string,
132
- * description?: string,
133
- * origin: string,
134
- * realizations: Array<{ routeId: string, localeId: string, path: string }>,
135
- * locales: string[],
136
- * defaultLocale: string,
127
+ * routeId: string,
128
+ * localeId: string,
129
+ * direction?: string,
130
+ * title: string,
131
+ * description?: string,
132
+ * origin: string,
133
+ * realizations: Array<{ routeId: string, localeId: string, path: string }>,
134
+ * locales: string[],
135
+ * defaultLocale: string,
137
136
  * }} input
138
137
  */
139
138
  export function buildLocalePageMeta(input) {
@@ -193,9 +192,9 @@ export function buildLocalePageMeta(input) {
193
192
  /**
194
193
  * `<Link to="routeId">` retains current locale — never hand-written localized paths.
195
194
  * @param {{
196
- * to: string,
197
- * currentLocale: string,
198
- * realizations: Array<{ routeId: string, localeId: string, path: string }>,
195
+ * to: string,
196
+ * currentLocale: string,
197
+ * realizations: Array<{ routeId: string, localeId: string, path: string }>,
199
198
  * }} input
200
199
  */
201
200
  export function resolveLinkHref(input) {
@@ -264,13 +263,13 @@ export function parseLocaleFromPath(pathname, supportedLocales) {
264
263
  /**
265
264
  * Plan redirect / negotiation for an incoming URL (omit-prefix aware).
266
265
  * @param {{
267
- * pathname: string,
268
- * supportedLocales: string[],
269
- * defaultLocale: string,
270
- * routing?: { strategy?: string, defaultPrefix?: string },
271
- * hostCandidates?: string[],
272
- * preference?: string|null,
273
- * userChoice?: string|null,
266
+ * pathname: string,
267
+ * supportedLocales: string[],
268
+ * defaultLocale: string,
269
+ * routing?: { strategy?: string, defaultPrefix?: string },
270
+ * hostCandidates?: string[],
271
+ * preference?: string|null,
272
+ * userChoice?: string|null,
274
273
  * }} input
275
274
  */
276
275
  export function planLocalePathNavigation(input) {
@@ -354,11 +353,11 @@ export function assertLocaleCacheKey(input) {
354
353
  /**
355
354
  * LocaleTransition must commit Route realization + PageMeta together.
356
355
  * @param {{
357
- * fromLocale: string,
358
- * toLocale: string,
359
- * routeId: string,
360
- * realizations: Array<{ routeId: string, localeId: string, path: string }>,
361
- * pageMetaByLocale: Record<string, { locale: string, canonical: string }>,
356
+ * fromLocale: string,
357
+ * toLocale: string,
358
+ * routeId: string,
359
+ * realizations: Array<{ routeId: string, localeId: string, path: string }>,
360
+ * pageMetaByLocale: Record<string, { locale: string, canonical: string }>,
362
361
  * }} input
363
362
  */
364
363
  export function commitLocaleRouteMetaTransition(input) {
@@ -401,16 +400,16 @@ export function commitLocaleRouteMetaTransition(input) {
401
400
  };
402
401
  }
403
402
  /**
404
- * Aggregate I3 router/meta proof.
403
+ * Aggregate router/meta proof.
405
404
  * @param {{
406
- * manifest: {
407
- * defaultLocale: string,
408
- * locales: Array<{ id: string, direction?: string }>,
409
- * routing?: { strategy?: string, defaultPrefix?: string },
410
- * },
411
- * routes: Array<{ routeId: string, path: string }>,
412
- * titles?: Record<string, Record<string, string>>,
413
- * origin?: string,
405
+ * manifest: {
406
+ * defaultLocale: string,
407
+ * locales: Array<{ id: string, direction?: string }>,
408
+ * routing?: { strategy?: string, defaultPrefix?: string },
409
+ * },
410
+ * routes: Array<{ routeId: string, path: string }>,
411
+ * titles?: Record<string, Record<string, string>>,
412
+ * origin?: string,
414
413
  * }} input
415
414
  */
416
415
  export function checkLocaleRouter(input) {
@@ -1,25 +1,25 @@
1
1
  /**
2
- * Fixed negotiation priority (doc 28 §6). Host only supplies candidates.
2
+ * Fixed negotiation priority (locale notes ). Host only supplies candidates.
3
3
  * @param {{
4
- * supportedLocales: string[],
5
- * defaultLocale: string,
6
- * routeLocale?: string|null,
7
- * userChoice?: string|null,
8
- * preference?: string|null,
9
- * hostCandidates?: string[],
4
+ * supportedLocales: string[],
5
+ * defaultLocale: string,
6
+ * routeLocale?: string|null,
7
+ * userChoice?: string|null,
8
+ * preference?: string|null,
9
+ * hostCandidates?: string[],
10
10
  * }} input
11
11
  */
12
12
  export declare function negotiateLocale(input: any): any;
13
13
  /**
14
14
  * @param {{
15
- * applicationId: string,
16
- * deliveryId: string,
17
- * localeId: string,
18
- * timeZone: string,
19
- * calendar?: string,
20
- * numberingSystem?: string,
21
- * direction?: string,
22
- * generation?: number,
15
+ * applicationId: string,
16
+ * deliveryId: string,
17
+ * localeId: string,
18
+ * timeZone: string,
19
+ * calendar?: string,
20
+ * numberingSystem?: string,
21
+ * direction?: string,
22
+ * generation?: number,
23
23
  * }} opts
24
24
  */
25
25
  export declare function buildApplicationContext(opts: any): {
@@ -63,10 +63,10 @@ export declare function validateFormatterContext(formatter: any, opts?: {}): {
63
63
  /**
64
64
  * Resolve one MessageBinding to a single locale variant (whole-message, no mix).
65
65
  * @param {{
66
- * messageId: string,
67
- * requestedLocale: string,
68
- * variants: Record<string, { template: string }>,
69
- * fallback?: Record<string, string[]>,
66
+ * messageId: string,
67
+ * requestedLocale: string,
68
+ * variants: Record<string, { template: string }>,
69
+ * fallback?: Record<string, string[]>,
70
70
  * }} input
71
71
  */
72
72
  export declare function resolveMessageVariant(input: any): {
@@ -79,24 +79,24 @@ export declare function resolveMessageVariant(input: any): {
79
79
  ok: boolean;
80
80
  };
81
81
  /**
82
- * Minimal ICU MessageFormat subset for I2 parity proofs (params + plural + #).
82
+ * Minimal ICU MessageFormat subset for parity proofs (params + plural + #).
83
83
  * @param {string} template
84
84
  * @param {Record<string, any>} [args]
85
85
  */
86
86
  export declare function formatMessageTemplate(template: any, args?: {}): string;
87
87
  /**
88
88
  * @param {{
89
- * applicationId: string,
90
- * deliveryId: string,
91
- * supportedLocales: string[],
92
- * defaultLocale: string,
93
- * fallback?: Record<string, string[]>,
94
- * directions?: Record<string, string>,
95
- * messages: Record<string, { variants: Record<string, { template: string }> }>,
96
- * initialLocaleId: string,
97
- * timeZone: string,
98
- * generation?: number,
99
- * loadedChunks?: Set<string>|string[],
89
+ * applicationId: string,
90
+ * deliveryId: string,
91
+ * supportedLocales: string[],
92
+ * defaultLocale: string,
93
+ * fallback?: Record<string, string[]>,
94
+ * directions?: Record<string, string>,
95
+ * messages: Record<string, { variants: Record<string, { template: string }> }>,
96
+ * initialLocaleId: string,
97
+ * timeZone: string,
98
+ * generation?: number,
99
+ * loadedChunks?: Set<string>|string[],
100
100
  * }} opts
101
101
  */
102
102
  export declare function createLocaleSession(opts: any): {
@@ -229,8 +229,8 @@ export declare function createLocaleSession(opts: any): {
229
229
  /**
230
230
  * SSR and client must share the same resolved FormatterContext digest and texts.
231
231
  * @param {{
232
- * ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
233
- * client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
232
+ * ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
233
+ * client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
234
234
  * }} input
235
235
  */
236
236
  export declare function checkSsrClientParity(input: any): {
@@ -240,13 +240,13 @@ export declare function checkSsrClientParity(input: any): {
240
240
  diagnostics: any[];
241
241
  };
242
242
  /**
243
- * Aggregate I2 runtime proof for a project check report + explicit contexts.
243
+ * Aggregate runtime proof for a project check report + explicit contexts.
244
244
  * @param {{
245
- * manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
246
- * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
247
- * applicationId?: string,
248
- * deliveryId?: string,
249
- * timeZone?: string,
245
+ * manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
246
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
247
+ * applicationId?: string,
248
+ * deliveryId?: string,
249
+ * timeZone?: string,
250
250
  * }} input
251
251
  */
252
252
  export declare function checkLocaleRuntime(input: any): {
@@ -1,22 +1,21 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Locale I2 runtime: LocaleContext · FormatterContext · negotiation ·
3
+ * Locale runtime: LocaleContext · FormatterContext · negotiation ·
4
4
  * atomic LocaleTransition · SSR/client parity.
5
- * Design: 规划设计/vmz/28 §5–§8
6
5
  *
7
6
  * Not an I18n IR — ApplicationContext + Delivery projections over VPG Message views.
8
7
  */
9
8
  import { createHash } from 'node:crypto';
10
9
  import { DIAG_FORMATTER_CONTEXT_INCOMPLETE, DIAG_FORMATTER_VERSION_MISMATCH, DIAG_LOCALE_DIGEST_MISMATCH, DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, DIAG_LOCALE_STALE_GENERATION, DIAG_LOCALE_TRANSITION_LOAD_FAILED, DIAG_LOCALE_TRANSITION_PARTIAL, DIAG_LOCALE_TRANSITION_UNSUPPORTED, DIAG_MESSAGE_MIXED_LOCALE, FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_TRANSITION_SCHEMA, } from './locale-schema.js';
11
10
  /**
12
- * Fixed negotiation priority (doc 28 §6). Host only supplies candidates.
11
+ * Fixed negotiation priority (locale notes ). Host only supplies candidates.
13
12
  * @param {{
14
- * supportedLocales: string[],
15
- * defaultLocale: string,
16
- * routeLocale?: string|null,
17
- * userChoice?: string|null,
18
- * preference?: string|null,
19
- * hostCandidates?: string[],
13
+ * supportedLocales: string[],
14
+ * defaultLocale: string,
15
+ * routeLocale?: string|null,
16
+ * userChoice?: string|null,
17
+ * preference?: string|null,
18
+ * hostCandidates?: string[],
20
19
  * }} input
21
20
  */
22
21
  export function negotiateLocale(input) {
@@ -36,14 +35,14 @@ export function negotiateLocale(input) {
36
35
  }
37
36
  /**
38
37
  * @param {{
39
- * applicationId: string,
40
- * deliveryId: string,
41
- * localeId: string,
42
- * timeZone: string,
43
- * calendar?: string,
44
- * numberingSystem?: string,
45
- * direction?: string,
46
- * generation?: number,
38
+ * applicationId: string,
39
+ * deliveryId: string,
40
+ * localeId: string,
41
+ * timeZone: string,
42
+ * calendar?: string,
43
+ * numberingSystem?: string,
44
+ * direction?: string,
45
+ * generation?: number,
47
46
  * }} opts
48
47
  */
49
48
  export function buildApplicationContext(opts) {
@@ -137,10 +136,10 @@ export function validateFormatterContext(formatter, opts = {}) {
137
136
  /**
138
137
  * Resolve one MessageBinding to a single locale variant (whole-message, no mix).
139
138
  * @param {{
140
- * messageId: string,
141
- * requestedLocale: string,
142
- * variants: Record<string, { template: string }>,
143
- * fallback?: Record<string, string[]>,
139
+ * messageId: string,
140
+ * requestedLocale: string,
141
+ * variants: Record<string, { template: string }>,
142
+ * fallback?: Record<string, string[]>,
144
143
  * }} input
145
144
  */
146
145
  export function resolveMessageVariant(input) {
@@ -171,7 +170,7 @@ export function resolveMessageVariant(input) {
171
170
  };
172
171
  }
173
172
  /**
174
- * Minimal ICU MessageFormat subset for I2 parity proofs (params + plural + #).
173
+ * Minimal ICU MessageFormat subset for parity proofs (params + plural + #).
175
174
  * @param {string} template
176
175
  * @param {Record<string, any>} [args]
177
176
  */
@@ -205,17 +204,17 @@ export function formatMessageTemplate(template, args = {}) {
205
204
  }
206
205
  /**
207
206
  * @param {{
208
- * applicationId: string,
209
- * deliveryId: string,
210
- * supportedLocales: string[],
211
- * defaultLocale: string,
212
- * fallback?: Record<string, string[]>,
213
- * directions?: Record<string, string>,
214
- * messages: Record<string, { variants: Record<string, { template: string }> }>,
215
- * initialLocaleId: string,
216
- * timeZone: string,
217
- * generation?: number,
218
- * loadedChunks?: Set<string>|string[],
207
+ * applicationId: string,
208
+ * deliveryId: string,
209
+ * supportedLocales: string[],
210
+ * defaultLocale: string,
211
+ * fallback?: Record<string, string[]>,
212
+ * directions?: Record<string, string>,
213
+ * messages: Record<string, { variants: Record<string, { template: string }> }>,
214
+ * initialLocaleId: string,
215
+ * timeZone: string,
216
+ * generation?: number,
217
+ * loadedChunks?: Set<string>|string[],
219
218
  * }} opts
220
219
  */
221
220
  export function createLocaleSession(opts) {
@@ -272,12 +271,12 @@ export function createLocaleSession(opts) {
272
271
  return { bindings: out, resolvedLocales: unique };
273
272
  }
274
273
  /**
275
- * Atomic LocaleTransition (doc 28 §5).
274
+ * Atomic LocaleTransition (locale notes ).
276
275
  * @param {string} targetLocaleId
277
276
  * @param {{
278
- * generation?: number,
279
- * loadChunk?: (localeId: string) => boolean|Promise<boolean>,
280
- * timeZone?: string,
277
+ * generation?: number,
278
+ * loadChunk?: (localeId: string) => boolean|Promise<boolean>,
279
+ * timeZone?: string,
281
280
  * }} [transitionOpts]
282
281
  */
283
282
  async function transition(targetLocaleId, transitionOpts = {}) {
@@ -408,8 +407,8 @@ export function createLocaleSession(opts) {
408
407
  /**
409
408
  * SSR and client must share the same resolved FormatterContext digest and texts.
410
409
  * @param {{
411
- * ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
412
- * client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
410
+ * ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
411
+ * client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
413
412
  * }} input
414
413
  */
415
414
  export function checkSsrClientParity(input) {
@@ -457,13 +456,13 @@ export function checkSsrClientParity(input) {
457
456
  };
458
457
  }
459
458
  /**
460
- * Aggregate I2 runtime proof for a project check report + explicit contexts.
459
+ * Aggregate runtime proof for a project check report + explicit contexts.
461
460
  * @param {{
462
- * manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
463
- * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
464
- * applicationId?: string,
465
- * deliveryId?: string,
466
- * timeZone?: string,
461
+ * manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
462
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
463
+ * applicationId?: string,
464
+ * deliveryId?: string,
465
+ * timeZone?: string,
467
466
  * }} input
468
467
  */
469
468
  export function checkLocaleRuntime(input) {
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Locale I0I5 schema constants & diagnostic codes.
3
- * Design: 规划设计/vmz/28
2
+ * Locale – schema constants & diagnostic codes.
4
3
  */
5
4
  export { FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_CHECK_SCHEMA, LOCALE_CHUNK_MANIFEST_SCHEMA, LOCALE_CONFORMANCE_SCHEMA, LOCALE_DELIVERY_CHECK_SCHEMA, LOCALE_DELIVERY_RESOLUTION_SCHEMA, LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT as DIAG_LOCALE_CACHE_KEY_STEALS_CONTENT, LOCALE_DIAG_CANONICAL_MISSING as DIAG_LOCALE_CANONICAL_MISSING, LOCALE_DIAG_CATALOG_CONFLICT as DIAG_CATALOG_CONFLICT, LOCALE_DIAG_CATALOG_PARSE as DIAG_CATALOG_PARSE, LOCALE_DIAG_CHUNK_HASH_MISMATCH as DIAG_LOCALE_CHUNK_HASH_MISMATCH, LOCALE_DIAG_CONFORMANCE_DIVERGENCE as DIAG_LOCALE_CONFORMANCE_DIVERGENCE, LOCALE_DIAG_DEFAULT_MISSING as DIAG_DEFAULT_MISSING, LOCALE_DIAG_DELIVERY_FULL_BUNDLE as DIAG_LOCALE_DELIVERY_FULL_BUNDLE, LOCALE_DIAG_DIGEST_MISMATCH as DIAG_LOCALE_DIGEST_MISMATCH, LOCALE_DIAG_DIR_MISSING as DIAG_DIR_MISSING, LOCALE_DIAG_DIR_ORPHAN as DIAG_DIR_ORPHAN, LOCALE_DIAG_EXPLAIN_UNKNOWN as DIAG_LOCALE_EXPLAIN_UNKNOWN, LOCALE_DIAG_FALLBACK_CYCLE as DIAG_FALLBACK_CYCLE, LOCALE_DIAG_FALLBACK_UNKNOWN as DIAG_FALLBACK_UNKNOWN, LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE as DIAG_FORMATTER_CONTEXT_INCOMPLETE, LOCALE_DIAG_FORMATTER_VERSION_MISMATCH as DIAG_FORMATTER_VERSION_MISMATCH, LOCALE_DIAG_HARDCODED_TEXT as DIAG_LOCALE_HARDCODED_TEXT, LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE as DIAG_LOCALE_HOST_MESSAGE_DIVERGENCE, LOCALE_DIAG_HREFLANG_INCOMPLETE as DIAG_LOCALE_HREFLANG_INCOMPLETE, LOCALE_DIAG_ID_COLLISION as DIAG_ID_COLLISION, LOCALE_DIAG_ID_INVALID as DIAG_ID_INVALID, LOCALE_DIAG_LAYOUT_ILLEGAL as DIAG_LAYOUT_ILLEGAL, LOCALE_DIAG_LINK_HARDCODED_PATH as DIAG_LOCALE_LINK_HARDCODED_PATH, LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN as DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, LOCALE_DIAG_MANIFEST_MISSING as DIAG_MANIFEST_MISSING, LOCALE_DIAG_MESSAGE_ARRAY_FORBIDDEN as DIAG_MESSAGE_ARRAY_FORBIDDEN, LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED as DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED, LOCALE_DIAG_MESSAGE_HTML_FORBIDDEN as DIAG_MESSAGE_HTML_FORBIDDEN, LOCALE_DIAG_MESSAGE_MISSING_DEFAULT as DIAG_MESSAGE_MISSING_DEFAULT, LOCALE_DIAG_MESSAGE_MISSING_VARIANT as DIAG_MESSAGE_MISSING_VARIANT, LOCALE_DIAG_MESSAGE_MIXED_LOCALE as DIAG_MESSAGE_MIXED_LOCALE, LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH as DIAG_MESSAGE_PARAMETER_MISMATCH, LOCALE_DIAG_MESSAGE_SYNTAX_INVALID as DIAG_MESSAGE_SYNTAX_INVALID, LOCALE_DIAG_MESSAGE_UNUSED as DIAG_MESSAGE_UNUSED, LOCALE_DIAG_META_LOCALE_MISMATCH as DIAG_LOCALE_META_LOCALE_MISMATCH, LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN as DIAG_LOCALE_MINI_CROSS_PACKAGE_UNPROVEN, LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH as DIAG_LOCALE_NATIVE_PACK_APP_MISMATCH, LOCALE_DIAG_NATIVE_PACK_HAS_JS as DIAG_LOCALE_NATIVE_PACK_HAS_JS, LOCALE_DIAG_NATIVE_PACK_UNSIGNED as DIAG_LOCALE_NATIVE_PACK_UNSIGNED, LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT as DIAG_LOCALE_PREFIX_OMIT_WITHOUT_REDIRECT, LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN as DIAG_LOCALE_PSEUDO_PRODUCTION_FORBIDDEN, LOCALE_DIAG_ROUTE_COLLISION as DIAG_LOCALE_ROUTE_COLLISION, LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT as DIAG_LOCALE_SERVER_FORMAT_WITHOUT_CONTEXT, LOCALE_DIAG_SERVER_TRANSLATED_ERROR as DIAG_LOCALE_SERVER_TRANSLATED_ERROR, LOCALE_DIAG_STALE_GENERATION as DIAG_LOCALE_STALE_GENERATION, LOCALE_DIAG_TRANSITION_LOAD_FAILED as DIAG_LOCALE_TRANSITION_LOAD_FAILED, LOCALE_DIAG_TRANSITION_PARTIAL as DIAG_LOCALE_TRANSITION_PARTIAL, LOCALE_DIAG_TRANSITION_UNSUPPORTED as DIAG_LOCALE_TRANSITION_UNSUPPORTED, LOCALE_DIFF_SCHEMA, LOCALE_EXPLAIN_SCHEMA, LOCALE_EXTRACT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_LINK_RESOLUTION_SCHEMA, LOCALE_MANIFEST_SCHEMA, LOCALE_MESSAGE_CATALOG_SCHEMA as MESSAGE_CATALOG_SCHEMA, LOCALE_MESSAGE_NODE_SCHEMA as MESSAGE_NODE_SCHEMA, LOCALE_MINI_PACKAGE_PROOF_SCHEMA, LOCALE_NATIVE_PACK_SCHEMA, LOCALE_PAGE_META_SCHEMA, LOCALE_PROTOCOL, LOCALE_PSEUDO_SCHEMA, LOCALE_RENAME_SCHEMA, LOCALE_ROUTE_REALIZATION_SCHEMA, LOCALE_ROUTER_CHECK_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA, LOCALE_TRANSITION_SCHEMA, LOCALE_TYPED_MODULE_SCHEMA, LOCALE_VIRTUAL_MODULE_PREFIX, } from '@vmz/protocol';
6
5
  /** Reserved first-level names under /locales (not LocaleId dirs). */
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Locale I0I5 schema constants & diagnostic codes.
4
- * Design: 规划设计/vmz/28
3
+ * Locale – schema constants & diagnostic codes.
5
4
  */
6
5
  export { FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_CHECK_SCHEMA, LOCALE_CHUNK_MANIFEST_SCHEMA, LOCALE_CONFORMANCE_SCHEMA, LOCALE_DELIVERY_CHECK_SCHEMA, LOCALE_DELIVERY_RESOLUTION_SCHEMA, LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT as DIAG_LOCALE_CACHE_KEY_STEALS_CONTENT, LOCALE_DIAG_CANONICAL_MISSING as DIAG_LOCALE_CANONICAL_MISSING, LOCALE_DIAG_CATALOG_CONFLICT as DIAG_CATALOG_CONFLICT, LOCALE_DIAG_CATALOG_PARSE as DIAG_CATALOG_PARSE, LOCALE_DIAG_CHUNK_HASH_MISMATCH as DIAG_LOCALE_CHUNK_HASH_MISMATCH, LOCALE_DIAG_CONFORMANCE_DIVERGENCE as DIAG_LOCALE_CONFORMANCE_DIVERGENCE, LOCALE_DIAG_DEFAULT_MISSING as DIAG_DEFAULT_MISSING, LOCALE_DIAG_DELIVERY_FULL_BUNDLE as DIAG_LOCALE_DELIVERY_FULL_BUNDLE, LOCALE_DIAG_DIGEST_MISMATCH as DIAG_LOCALE_DIGEST_MISMATCH, LOCALE_DIAG_DIR_MISSING as DIAG_DIR_MISSING, LOCALE_DIAG_DIR_ORPHAN as DIAG_DIR_ORPHAN, LOCALE_DIAG_EXPLAIN_UNKNOWN as DIAG_LOCALE_EXPLAIN_UNKNOWN, LOCALE_DIAG_FALLBACK_CYCLE as DIAG_FALLBACK_CYCLE, LOCALE_DIAG_FALLBACK_UNKNOWN as DIAG_FALLBACK_UNKNOWN, LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE as DIAG_FORMATTER_CONTEXT_INCOMPLETE, LOCALE_DIAG_FORMATTER_VERSION_MISMATCH as DIAG_FORMATTER_VERSION_MISMATCH, LOCALE_DIAG_HARDCODED_TEXT as DIAG_LOCALE_HARDCODED_TEXT, LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE as DIAG_LOCALE_HOST_MESSAGE_DIVERGENCE, LOCALE_DIAG_HREFLANG_INCOMPLETE as DIAG_LOCALE_HREFLANG_INCOMPLETE, LOCALE_DIAG_ID_COLLISION as DIAG_ID_COLLISION, LOCALE_DIAG_ID_INVALID as DIAG_ID_INVALID, LOCALE_DIAG_LAYOUT_ILLEGAL as DIAG_LAYOUT_ILLEGAL, LOCALE_DIAG_LINK_HARDCODED_PATH as DIAG_LOCALE_LINK_HARDCODED_PATH, LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN as DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, LOCALE_DIAG_MANIFEST_MISSING as DIAG_MANIFEST_MISSING, LOCALE_DIAG_MESSAGE_ARRAY_FORBIDDEN as DIAG_MESSAGE_ARRAY_FORBIDDEN, LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED as DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED, LOCALE_DIAG_MESSAGE_HTML_FORBIDDEN as DIAG_MESSAGE_HTML_FORBIDDEN, LOCALE_DIAG_MESSAGE_MISSING_DEFAULT as DIAG_MESSAGE_MISSING_DEFAULT, LOCALE_DIAG_MESSAGE_MISSING_VARIANT as DIAG_MESSAGE_MISSING_VARIANT, LOCALE_DIAG_MESSAGE_MIXED_LOCALE as DIAG_MESSAGE_MIXED_LOCALE, LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH as DIAG_MESSAGE_PARAMETER_MISMATCH, LOCALE_DIAG_MESSAGE_SYNTAX_INVALID as DIAG_MESSAGE_SYNTAX_INVALID, LOCALE_DIAG_MESSAGE_UNUSED as DIAG_MESSAGE_UNUSED, LOCALE_DIAG_META_LOCALE_MISMATCH as DIAG_LOCALE_META_LOCALE_MISMATCH, LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN as DIAG_LOCALE_MINI_CROSS_PACKAGE_UNPROVEN, LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH as DIAG_LOCALE_NATIVE_PACK_APP_MISMATCH, LOCALE_DIAG_NATIVE_PACK_HAS_JS as DIAG_LOCALE_NATIVE_PACK_HAS_JS, LOCALE_DIAG_NATIVE_PACK_UNSIGNED as DIAG_LOCALE_NATIVE_PACK_UNSIGNED, LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT as DIAG_LOCALE_PREFIX_OMIT_WITHOUT_REDIRECT, LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN as DIAG_LOCALE_PSEUDO_PRODUCTION_FORBIDDEN, LOCALE_DIAG_ROUTE_COLLISION as DIAG_LOCALE_ROUTE_COLLISION, LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT as DIAG_LOCALE_SERVER_FORMAT_WITHOUT_CONTEXT, LOCALE_DIAG_SERVER_TRANSLATED_ERROR as DIAG_LOCALE_SERVER_TRANSLATED_ERROR, LOCALE_DIAG_STALE_GENERATION as DIAG_LOCALE_STALE_GENERATION, LOCALE_DIAG_TRANSITION_LOAD_FAILED as DIAG_LOCALE_TRANSITION_LOAD_FAILED, LOCALE_DIAG_TRANSITION_PARTIAL as DIAG_LOCALE_TRANSITION_PARTIAL, LOCALE_DIAG_TRANSITION_UNSUPPORTED as DIAG_LOCALE_TRANSITION_UNSUPPORTED, LOCALE_DIFF_SCHEMA, LOCALE_EXPLAIN_SCHEMA, LOCALE_EXTRACT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_LINK_RESOLUTION_SCHEMA, LOCALE_MANIFEST_SCHEMA, LOCALE_MESSAGE_CATALOG_SCHEMA as MESSAGE_CATALOG_SCHEMA, LOCALE_MESSAGE_NODE_SCHEMA as MESSAGE_NODE_SCHEMA, LOCALE_MINI_PACKAGE_PROOF_SCHEMA, LOCALE_NATIVE_PACK_SCHEMA, LOCALE_PAGE_META_SCHEMA, LOCALE_PROTOCOL, LOCALE_PSEUDO_SCHEMA, LOCALE_RENAME_SCHEMA, LOCALE_ROUTE_REALIZATION_SCHEMA, LOCALE_ROUTER_CHECK_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA, LOCALE_TRANSITION_SCHEMA, LOCALE_TYPED_MODULE_SCHEMA, LOCALE_VIRTUAL_MODULE_PREFIX, } from '@vmz/protocol';
7
6
  /** Reserved first-level names under /locales (not LocaleId dirs). */
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Explain one MessageId: definition, params, variants, fallback, delivery reachability.
3
3
  * @param {{
4
- * messageId: string,
5
- * locale?: string|null,
6
- * deliveryId?: string|null,
7
- * checkReport: any,
4
+ * messageId: string,
5
+ * locale?: string|null,
6
+ * deliveryId?: string|null,
7
+ * checkReport: any,
8
8
  * }} input
9
9
  */
10
10
  export declare function explainLocaleMessage(input: any): {
@@ -48,9 +48,9 @@ export declare function explainLocaleMessage(input: any): {
48
48
  /**
49
49
  * Diff two locales' catalogs.
50
50
  * @param {{
51
- * baseLocale: string,
52
- * targetLocale: string,
53
- * messages: Array<{ messageId: string, variants: Record<string, { template: string, params?: any[] }> }>,
51
+ * baseLocale: string,
52
+ * targetLocale: string,
53
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string, params?: any[] }> }>,
54
54
  * }} input
55
55
  */
56
56
  export declare function diffLocaleCatalogs(input: any): {
@@ -85,9 +85,9 @@ export declare function extractHardcodedText(projectRoot: any, opts?: {}): {
85
85
  * Pseudo-localize a source locale for layout/overflow testing.
86
86
  * Preserves ICU placeholders; marks provenance — never a production fallback.
87
87
  * @param {{
88
- * sourceLocale: string,
89
- * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
90
- * production?: boolean,
88
+ * sourceLocale: string,
89
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
90
+ * production?: boolean,
91
91
  * }} input
92
92
  */
93
93
  export declare function pseudoLocalizeCatalog(input: any): {
@@ -102,9 +102,9 @@ export declare function pseudoLocalizeCatalog(input: any): {
102
102
  /**
103
103
  * Cross-host conformance: same MessageId set + catalog hashes + formatter version.
104
104
  * @param {{
105
- * manifest: any,
106
- * messages: any[],
107
- * routeIds?: string[],
105
+ * manifest: any,
106
+ * messages: any[],
107
+ * routeIds?: string[],
108
108
  * }} input
109
109
  */
110
110
  export declare function checkLocaleConformance(input: any): {
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Locale I5 tooling: explain · diff · extract · pseudo · cross-host conformance.
4
- * Design: 规划设计/vmz/28 §12–§13
3
+ * Locale tooling: explain · diff · extract · pseudo · cross-host conformance.
5
4
  */
6
5
  import fs from 'node:fs';
7
6
  import path from 'node:path';
@@ -11,10 +10,10 @@ import { assertHostMessageInvariant, buildLocaleDeliveryResolution } from './loc
11
10
  /**
12
11
  * Explain one MessageId: definition, params, variants, fallback, delivery reachability.
13
12
  * @param {{
14
- * messageId: string,
15
- * locale?: string|null,
16
- * deliveryId?: string|null,
17
- * checkReport: any,
13
+ * messageId: string,
14
+ * locale?: string|null,
15
+ * deliveryId?: string|null,
16
+ * checkReport: any,
18
17
  * }} input
19
18
  */
20
19
  export function explainLocaleMessage(input) {
@@ -81,9 +80,9 @@ export function explainLocaleMessage(input) {
81
80
  /**
82
81
  * Diff two locales' catalogs.
83
82
  * @param {{
84
- * baseLocale: string,
85
- * targetLocale: string,
86
- * messages: Array<{ messageId: string, variants: Record<string, { template: string, params?: any[] }> }>,
83
+ * baseLocale: string,
84
+ * targetLocale: string,
85
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string, params?: any[] }> }>,
87
86
  * }} input
88
87
  */
89
88
  export function diffLocaleCatalogs(input) {
@@ -250,9 +249,9 @@ export function extractHardcodedText(projectRoot, opts = {}) {
250
249
  * Pseudo-localize a source locale for layout/overflow testing.
251
250
  * Preserves ICU placeholders; marks provenance — never a production fallback.
252
251
  * @param {{
253
- * sourceLocale: string,
254
- * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
255
- * production?: boolean,
252
+ * sourceLocale: string,
253
+ * messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
254
+ * production?: boolean,
256
255
  * }} input
257
256
  */
258
257
  export function pseudoLocalizeCatalog(input) {
@@ -296,9 +295,9 @@ export function pseudoLocalizeCatalog(input) {
296
295
  /**
297
296
  * Cross-host conformance: same MessageId set + catalog hashes + formatter version.
298
297
  * @param {{
299
- * manifest: any,
300
- * messages: any[],
301
- * routeIds?: string[],
298
+ * manifest: any,
299
+ * messages: any[],
300
+ * routeIds?: string[],
302
301
  * }} input
303
302
  */
304
303
  export function checkLocaleConformance(input) {
package/dist/log.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Unified CLI logging / diagnostics (N2).
2
+ * Unified CLI logging / diagnostics .
3
3
  */
4
4
  export declare const log: {
5
5
  /** @param {...unknown} args */
package/dist/log.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Unified CLI logging / diagnostics (N2).
3
+ * Unified CLI logging / diagnostics .
4
4
  */
5
5
  /** @param {string} level */
6
6
  function stamp(level) {
@@ -1,6 +1,5 @@
1
1
  /**
2
- * npm / pnpm workspace package resolution helpers (N4.3).
3
- * Design: `规划设计/vmz/14` — Node owns package resolution; Rust owns semantics.
2
+ * npm / pnpm workspace package resolution helpers (session).
4
3
  */
5
4
  /**
6
5
  * @typedef {object} ResolvedPackage
package/dist/packages.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * npm / pnpm workspace package resolution helpers (N4.3).
4
- * Design: `规划设计/vmz/14` — Node owns package resolution; Rust owns semantics.
3
+ * npm / pnpm workspace package resolution helpers (session).
5
4
  */
6
5
  import { existsSync, readFileSync, readdirSync } from 'node:fs';
7
6
  import path from 'node:path';
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Plugin protocol v1 helpers (N3) + typed config loading.
3
- * Design: 瑙勫垝璁捐/vmz/14-Node-NAPI涓庢彃浠跺涓?md
2
+ * Plugin protocol v1 helpers + typed config loading.
4
3
  */
5
4
  import { contentHash, defineConfig, definePlugin } from '@vmz/plugin';
6
5
  export { contentHash, defineConfig, definePlugin };
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Plugin protocol v1 helpers (N3) + typed config loading.
4
- * Design: 瑙勫垝璁捐/vmz/14-Node-NAPI涓庢彃浠跺涓?md
3
+ * Plugin protocol v1 helpers + typed config loading.
5
4
  */
6
5
  import { existsSync } from 'node:fs';
7
6
  import path from 'node:path';
@@ -158,7 +157,7 @@ export async function applyPlugins(workspace, plugins, opts) {
158
157
  return reports;
159
158
  }
160
159
  /**
161
- * Only math/code/markdown register interchangeable engines (see design doc 23 §1.1).
160
+ * Only math/code/markdown register interchangeable engines (see design .
162
161
  * @param {{ code: Set<string>, math: Set<string>, markdown: Set<string> }} registered
163
162
  * @param {any} item
164
163
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `vmz refactor` — X1 RouteId/field safe rename (plan + atomic apply).
2
+ * `vmz refactor` — RouteId/field safe rename (plan + atomic apply).
3
3
  */
4
4
  /**
5
5
  * @param {string[]} argv args after `refactor`