@vmz/vmz 0.0.0 → 0.0.2

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 (75) hide show
  1. package/README.md +48 -2
  2. package/bin/vmz.js +4 -0
  3. package/dist/application-cmd.d.ts +22 -0
  4. package/dist/application-cmd.js +348 -0
  5. package/dist/bundler-adapter.d.ts +64 -0
  6. package/dist/bundler-adapter.js +111 -0
  7. package/dist/cli.d.ts +15 -0
  8. package/dist/cli.js +370 -0
  9. package/dist/dev-session.d.ts +35 -0
  10. package/dist/dev-session.js +290 -0
  11. package/dist/document-build.d.ts +99 -0
  12. package/dist/document-build.js +274 -0
  13. package/dist/document-check.d.ts +44 -0
  14. package/dist/document-check.js +246 -0
  15. package/dist/document-cmd.d.ts +9 -0
  16. package/dist/document-cmd.js +147 -0
  17. package/dist/document-designs.d.ts +9 -0
  18. package/dist/document-designs.js +126 -0
  19. package/dist/document-enrich.d.ts +23 -0
  20. package/dist/document-enrich.js +234 -0
  21. package/dist/document-evidence.d.ts +49 -0
  22. package/dist/document-evidence.js +501 -0
  23. package/dist/document-integrate.d.ts +35 -0
  24. package/dist/document-integrate.js +89 -0
  25. package/dist/document-interactive.d.ts +69 -0
  26. package/dist/document-interactive.js +255 -0
  27. package/dist/document-locale.d.ts +31 -0
  28. package/dist/document-locale.js +59 -0
  29. package/dist/document-markdown.d.ts +13 -0
  30. package/dist/document-markdown.js +39 -0
  31. package/dist/document-scan.d.ts +21 -0
  32. package/dist/document-scan.js +151 -0
  33. package/dist/document-schema.d.ts +87 -0
  34. package/dist/document-schema.js +88 -0
  35. package/dist/explain-cmd.d.ts +5 -0
  36. package/dist/explain-cmd.js +123 -0
  37. package/dist/index.d.ts +808 -0
  38. package/dist/index.js +569 -0
  39. package/dist/locale-check.d.ts +106 -0
  40. package/dist/locale-check.js +737 -0
  41. package/dist/locale-cmd.d.ts +5 -0
  42. package/dist/locale-cmd.js +443 -0
  43. package/dist/locale-delivery.d.ts +298 -0
  44. package/dist/locale-delivery.js +444 -0
  45. package/dist/locale-router.d.ts +207 -0
  46. package/dist/locale-router.js +508 -0
  47. package/dist/locale-runtime.d.ts +406 -0
  48. package/dist/locale-runtime.js +542 -0
  49. package/dist/locale-schema.d.ts +9 -0
  50. package/dist/locale-schema.js +10 -0
  51. package/dist/locale-tooling.d.ts +118 -0
  52. package/dist/locale-tooling.js +358 -0
  53. package/dist/log.d.ts +19 -0
  54. package/dist/log.js +42 -0
  55. package/dist/packages.d.ts +27 -0
  56. package/dist/packages.js +147 -0
  57. package/dist/plugin-host.d.ts +30 -0
  58. package/dist/plugin-host.js +370 -0
  59. package/dist/refactor-cmd.d.ts +8 -0
  60. package/dist/refactor-cmd.js +156 -0
  61. package/dist/resolve.d.ts +25 -0
  62. package/dist/resolve.js +56 -0
  63. package/dist/test-cmd.d.ts +9 -0
  64. package/dist/test-cmd.js +343 -0
  65. package/dist/test-compile.d.ts +2 -0
  66. package/dist/test-compile.js +3 -0
  67. package/dist/test-discover.d.ts +2 -0
  68. package/dist/test-discover.js +3 -0
  69. package/dist/test-logic.d.ts +2 -0
  70. package/dist/test-logic.js +3 -0
  71. package/dist/test-protocol.d.ts +2 -0
  72. package/dist/test-protocol.js +3 -0
  73. package/dist/watch-diff.d.ts +17 -0
  74. package/dist/watch-diff.js +56 -0
  75. package/package.json +86 -4
@@ -0,0 +1,808 @@
1
+ /** VMZ Node host — N-API workspace session + CLI + plugins. */
2
+
3
+ export {
4
+ HOST_PROTOCOL,
5
+ COMPILER_PROTOCOL,
6
+ PROGRAM_IR_SCHEMA,
7
+ PLAN_SCHEMA,
8
+ PLUGIN_PROTOCOL,
9
+ DX_PROTOCOL,
10
+ DX_SYMBOL_SCHEMA,
11
+ DX_REFERENCE_SCHEMA,
12
+ DX_EXPLAIN_SCHEMA,
13
+ DX_WORKSPACE_EDIT_SCHEMA,
14
+ DX_CODE_ACTION_SCHEMA,
15
+ DX_AFFECTED_SCHEMA,
16
+ DX_RENAME_SCHEMA,
17
+ DX_TEST_SELECTION_SCHEMA,
18
+ DX_SOURCE_MAP_SCHEMA,
19
+ DX_SYMBOL_INDEX_SCHEMA,
20
+ DX_X2_CHECK_SCHEMA,
21
+ DX_SEMANTIC_TRANSACTION_SCHEMA,
22
+ DX_CANCEL_SCHEMA,
23
+ DX_AFFECTED_PREVIEW_SCHEMA,
24
+ DX_HMR_PLAN_SCHEMA,
25
+ DX_BUDGET_SCHEMA,
26
+ DX_X3_CHECK_SCHEMA,
27
+ DX_BOUNDARY_VALIDATOR_SCHEMA,
28
+ DX_LEAKAGE_SCHEMA,
29
+ DX_CAPABILITY_TARGET_SCHEMA,
30
+ DX_DEAD_GRAPH_SCHEMA,
31
+ DX_X4_CHECK_SCHEMA,
32
+ DX_TRACE_SCHEMA,
33
+ DX_CAUSAL_REPLAY_SCHEMA,
34
+ DX_X5_CHECK_SCHEMA,
35
+ APPLICATION_PROTOCOL,
36
+ APPLICATION_DESCRIPTOR_SCHEMA,
37
+ APPLICATIONS_CONFIG_SCHEMA,
38
+ APPLICATION_CATALOG_SCHEMA,
39
+ APPLICATION_CHECK_SCHEMA,
40
+ APPLICATION_BASE_SCHEMA,
41
+ APPLICATION_RELOCATION_SCHEMA,
42
+ APPLICATION_RELOCATED_SCHEMA,
43
+ APPLICATION_RELOCATABLE_CHECK_SCHEMA,
44
+ APPLICATION_ARTIFACT_SCHEMA,
45
+ APPLICATION_MOUNT_TABLE_SCHEMA,
46
+ APPLICATION_ARTIFACT_BOUNDARY_SCHEMA,
47
+ APPLICATION_ISOLATION_SCHEMA,
48
+ APPLICATION_ISOLATION_CHECK_SCHEMA,
49
+ APPLICATION_CROSS_LINK_SCHEMA,
50
+ APPLICATION_HOST_COMPOSITION_SCHEMA,
51
+ APPLICATION_DEV_SESSIONS_SCHEMA,
52
+ APPLICATION_AFFECTED_SCHEMA,
53
+ APPLICATION_PROXY_DISPATCH_SCHEMA,
54
+ APPLICATION_MOUNTED_TEST_SCHEMA,
55
+ APPLICATION_DEPLOY_ADAPTER_SCHEMA,
56
+ APPLICATION_DEV_CHECK_SCHEMA,
57
+ PROTOCOL_CATALOG_SCHEMA,
58
+ TEST_PROTOCOL,
59
+ TEST_MANIFEST_SCHEMA,
60
+ TEST_REPORT_SCHEMA,
61
+ protocolCatalog,
62
+ dxCatalog,
63
+ testCatalog,
64
+ applicationCatalog,
65
+ } from '@vmz/protocol';
66
+ export type { ProtocolCatalog, ProtocolDomain, DomainCatalog } from '@vmz/protocol';
67
+
68
+ export interface ProtocolVersions {
69
+ hostProtocol: string;
70
+ compilerProtocol: string;
71
+ programIrSchema: string;
72
+ pluginProtocol: string;
73
+ }
74
+
75
+ export interface WorkspaceOptions {
76
+ root: string;
77
+ outDir?: string;
78
+ protocol?: ProtocolVersions;
79
+ }
80
+
81
+ export interface FileChange {
82
+ path: string;
83
+ kind: 'update' | 'delete';
84
+ }
85
+
86
+ export interface Diagnostic {
87
+ path: string;
88
+ severity: string;
89
+ message: string;
90
+ }
91
+
92
+ export interface CheckReport {
93
+ filesChecked: number;
94
+ diagnostics: Diagnostic[];
95
+ dirtyCount: number;
96
+ }
97
+
98
+ export interface BuildReport {
99
+ emitted: string[];
100
+ diagnostics: Diagnostic[];
101
+ dirtyCount: number;
102
+ full?: boolean;
103
+ affectedSources?: string[];
104
+ affectedChunks?: string[];
105
+ seedChunks?: string[];
106
+ islandHmr?: boolean;
107
+ }
108
+
109
+ export interface FormatReport {
110
+ filesChecked: number;
111
+ filesWritten: number;
112
+ filesNeedWrite: number;
113
+ diagnostics: Diagnostic[];
114
+ }
115
+
116
+ export interface AffectedPlan {
117
+ full: boolean;
118
+ rebuildRuntime: boolean;
119
+ rebuildServerTree: boolean;
120
+ units: Array<{ source: string; kind: string; chunkId: string }>;
121
+ seedChunks?: string[];
122
+ islandOnly?: boolean;
123
+ }
124
+
125
+ export interface ApplyContributionsReport {
126
+ accepted: number;
127
+ rejected: Array<{ plugin: string; itemId: string; reason: string }>;
128
+ diff: { added: string[]; removed: string[]; unchanged: string[] };
129
+ }
130
+
131
+ export interface Workspace {
132
+ root(): string;
133
+
134
+ outDir(): string;
135
+
136
+ contributionCount(): number;
137
+
138
+ updateFiles(changes: FileChange[]): void;
139
+
140
+ dirtyPaths(): string[];
141
+
142
+ applyPluginContributions(batch: ContributionBatch): ApplyContributionsReport;
143
+
144
+ check(denyWarnings?: boolean): CheckReport;
145
+
146
+ /** Lint: check + convention advice. */
147
+ lint(denyWarnings?: boolean): CheckReport;
148
+
149
+ format(checkOnly?: boolean): FormatReport;
150
+
151
+ build(release?: boolean): BuildReport;
152
+
153
+ queryAffected(): AffectedPlan;
154
+
155
+ queryProgramGraph(source: string): string;
156
+
157
+ querySessionGraph(): string;
158
+
159
+ sessionGeneration(): number;
160
+
161
+ explain(target: string): string;
162
+
163
+ /** DX catalog JSON (`vmz.dx.v0`). */
164
+ queryDxCatalog(): string;
165
+
166
+ /** Umbrella protocol catalog (`vmz.protocol.v0`). */
167
+ queryProtocolCatalog(): string;
168
+
169
+ /** Affected plan as DX JSON (`vmz.dx.affected.v0`). */
170
+ queryAffectedDx(): string;
171
+
172
+ /** X1: plan rename → WorkspaceEditPlan JSON. */
173
+ planRename(intentJson: string): string;
174
+
175
+ /** X1: atomically apply WorkspaceEditPlan JSON. */
176
+ applyWorkspaceEdit(planJson: string): string;
177
+
178
+ /** X1: graph→test selection JSON. */
179
+ selectTestsAffected(): string;
180
+
181
+ /** X1: rename causal explain chain JSON. */
182
+ explainRenameChain(intentJson: string): string;
183
+
184
+ /** X2: Symbol/Reference/source-map/safe_fix report JSON. */
185
+ checkDxX2(): string;
186
+
187
+ /** X2: Symbol index document JSON. */
188
+ querySymbols(): string;
189
+
190
+ /** X2: references for `kind:id`. */
191
+ queryReferences(target: string): string;
192
+
193
+ /** X2: CodeAction list JSON. */
194
+ listCodeActions(): string;
195
+
196
+ /** X3: atomic TextEdit batch JSON (`vmz.dx.semantic_transaction.v0`). */
197
+ applySemanticTransaction(editsJson: string): string;
198
+
199
+ /** X3: open analysis/build ticket (`vmz.dx.cancel.v0`). */
200
+ beginAnalysis(): string;
201
+
202
+ /** X3: cancel analysis ticket. */
203
+ cancelAnalysis(ticketId: number): string;
204
+
205
+ /** X3: affected preview JSON (`vmz.dx.affected_preview.v0`). */
206
+ queryAffectedPreview(): string;
207
+
208
+ /** X3: HMR plan JSON (`vmz.dx.hmr_plan.v0`). */
209
+ queryHmrPlan(): string;
210
+
211
+ /** X3: route/chunk budget JSON (`vmz.dx.budget.v0`). */
212
+ queryBudget(): string;
213
+
214
+ /** X3: umbrella incremental DX report (`vmz.dx.x3_check.v0`). */
215
+ checkDxX3(): string;
216
+
217
+ /** X4: boundary validators JSON (`vmz.dx.boundary_validator.v0`). */
218
+ queryBoundaryValidators(): string;
219
+
220
+ /** X4: leakage findings JSON (`vmz.dx.leakage.v0`). */
221
+ queryLeakage(): string;
222
+
223
+ /** X4: capability targets JSON (`vmz.dx.capability_target.v0`). */
224
+ queryCapabilityTargets(): string;
225
+
226
+ /** X4: dead graph JSON (`vmz.dx.dead_graph.v0`). */
227
+ queryDeadGraph(): string;
228
+
229
+ /** X4: umbrella deployment proof (`vmz.dx.x4_check.v0`). */
230
+ checkDxX4(): string;
231
+
232
+ /** X5: ingest StableId trace JSON (`vmz.dx.trace.v0`). */
233
+ ingestRuntimeTrace(traceJson: string): string;
234
+
235
+ /** X5: causal replay JSON (`vmz.dx.causal_replay.v0`). */
236
+ replayCausal(traceJson: string): string;
237
+
238
+ /** X5: umbrella deep-explain report (`vmz.dx.x5_check.v0`). */
239
+ checkDxX5(): string;
240
+
241
+ /** MP0: target-neutral contract check JSON. */
242
+ checkMp0TargetContract(): string;
243
+
244
+ /** P0: HostProfile / DeliveryProfile protocol check JSON. */
245
+ checkP0ProfileProtocol(): string;
246
+
247
+ /** P1: deterministic Surface/capability/route solver check JSON. */
248
+ checkP1ProfileSolver(): string;
249
+
250
+ /** P2: Unified Executor algebraic check JSON. */
251
+ checkP2UnifiedExecutor(): string;
252
+
253
+ /** P3: Lifecycle / Recovery algebraic check JSON. */
254
+ checkP3LifecycleRecovery(): string;
255
+
256
+ /** P4: Delivery Proof algebraic check JSON. */
257
+ checkP4DeliveryProof(): string;
258
+
259
+ /** P5: Cross-Host Conformance algebraic check JSON. */
260
+ checkP5CrossHostConformance(): string;
261
+
262
+ /** P0: profile protocol catalog JSON. */
263
+ queryProfileCatalog(): string;
264
+
265
+ /** MP0: target protocol catalog JSON. */
266
+ queryTargetCatalog(): string;
267
+
268
+ /** NW0: NativeAppHost / WebView contract check JSON. */
269
+ checkNw0NativeHostContract(): string;
270
+
271
+ /** NW0: native-host protocol catalog JSON. */
272
+ queryNativeHostCatalog(): string;
273
+
274
+ /** NW1: Native WebView shell contract check JSON. */
275
+ checkNw1NativeShellContract(): string;
276
+
277
+ /** NW2: typed Native Capability Bridge contract check JSON. */
278
+ checkNw2NativeBridgeContract(): string;
279
+
280
+ /** NW3: NativeAppHost lifecycle contract check JSON. */
281
+ checkNw3NativeLifecycleContract(): string;
282
+
283
+ /** NW4: NativeAppHost full-stack contract check JSON. */
284
+ checkNw4NativeFullstackContract(): string;
285
+
286
+ /** NW5: NativeSurface contract check JSON. */
287
+ checkNw5NativeSurfaceContract(): string;
288
+
289
+ /** NW6: multi-platform shared Host Profile contract check JSON. */
290
+ checkNw6MultiPlatformContract(): string;
291
+
292
+ dispose(): void;
293
+ }
294
+
295
+ export interface ContributionBatch {
296
+ pluginName: string;
297
+ pluginVersion: string;
298
+ protocol: string;
299
+ stage: string;
300
+ cacheKey: string;
301
+ deterministic?: boolean;
302
+ items: Array<Record<string, unknown>>;
303
+ }
304
+
305
+ export function contentHash(content: string | Buffer): string;
306
+
307
+ export function definePlugin(def: import('@vmz/plugin').DefinePluginInput): import('@vmz/plugin').VmzPlugin;
308
+
309
+ export function defineConfig(config: import('@vmz/plugin').VmzUserConfig): import('@vmz/plugin').VmzUserConfig;
310
+
311
+ export function loadVmzConfig(project: string): Promise<{
312
+ plugins: import('@vmz/plugin').VmzPlugin[];
313
+ engines: import('@vmz/plugin').VmzEngines;
314
+ path: string | null;
315
+ pluginPath: string | null;
316
+ }>;
317
+
318
+ export function applyPlugins(
319
+ workspace: Workspace,
320
+ plugins: import('@vmz/plugin').VmzPlugin[],
321
+ opts: {
322
+ project: string;
323
+ outDir: string;
324
+ stages?: string[];
325
+ engines?: import('@vmz/plugin').VmzEngines;
326
+ },
327
+ ): Promise<ApplyContributionsReport[]>;
328
+
329
+ export type {
330
+ VmzUserConfig,
331
+ VmzEngines,
332
+ VmzPlugin,
333
+ PluginContext,
334
+ DefinePluginInput,
335
+ } from '@vmz/plugin';
336
+
337
+ export function loadDeploymentIr(outDir: string): {
338
+ schema: string;
339
+ units: Array<Record<string, unknown>>;
340
+ affectedChunks?: string[];
341
+ seedChunks?: string[];
342
+ islandHmr?: boolean;
343
+ full?: boolean;
344
+ };
345
+
346
+ export function planBundleInputs(
347
+ outDir: string,
348
+ ir?: ReturnType<typeof loadDeploymentIr>,
349
+ ): Array<{
350
+ chunkId: string;
351
+ kind: string;
352
+ entry: string;
353
+ programIr: string;
354
+ source: string;
355
+ rebuilt: boolean;
356
+ }>;
357
+
358
+ export function planAffectedBundleInputs(outDir: string, ir?: ReturnType<typeof loadDeploymentIr>): ReturnType<typeof planBundleInputs>;
359
+
360
+ export function createVitePluginVmzAdapter(options?: { outDir?: string; root?: string }): {
361
+ name: string;
362
+ };
363
+
364
+ export function createRolldownPluginVmzAdapter(options?: { outDir?: string; root?: string }): {
365
+ name: string;
366
+ };
367
+
368
+ export interface DevSessionOptions {
369
+ project: string;
370
+ outDir: string;
371
+ host?: string;
372
+ port?: number;
373
+ pollMs?: number;
374
+ signal?: AbortSignal;
375
+ }
376
+
377
+ export interface DevSession {
378
+ ws: Workspace;
379
+
380
+ rebuild(changes?: FileChange[]): BuildReport;
381
+
382
+ start(): Promise<void>;
383
+
384
+ stop(): Promise<void>;
385
+
386
+ project: string;
387
+ outDir: string;
388
+ host: string;
389
+ port: number;
390
+ }
391
+
392
+ export function expectedProtocol(): ProtocolVersions;
393
+
394
+ export function resolveNativePath(): string;
395
+
396
+ export function loadNative(): unknown;
397
+
398
+ export function getProtocolVersions(): ProtocolVersions;
399
+
400
+ export function handshake(host?: ProtocolVersions): void;
401
+
402
+ export function createWorkspace(options: WorkspaceOptions): Workspace;
403
+
404
+ /** M0: frozen application composition protocol catalog JSON. */
405
+ export function queryApplicationProtocolCatalog(): string;
406
+
407
+ /** M0: ApplicationCheckReport JSON for host + workspace package roots. */
408
+ export function checkApplicationsJson(hostRoot: string, packageRoots: string[]): string;
409
+
410
+ /** M1: ApplicationRelocatableReport JSON for a package root (+ optional relocate base). */
411
+ export function checkApplicationRelocatableJson(packageRoot: string, relocateBase?: string | null): string;
412
+
413
+ /** M1: apply ApplicationBase to a logical relocation manifest JSON. */
414
+ export function relocateApplicationManifestJson(manifestJson: string, base: string): string;
415
+
416
+ /** M2: ApplicationArtifactBoundaryReport JSON (artifacts + MountTable/Catalog refs). */
417
+ export function checkApplicationArtifactBoundaryJson(hostRoot: string, packageRoots: string[]): string;
418
+
419
+ /** M3: ApplicationIsolationCheckReport JSON (namespaces + failure containment). */
420
+ export function checkApplicationIsolationJson(hostRoot: string, packageRoots: string[]): string;
421
+
422
+ /** M4: ApplicationHostCompositionReport JSON (catalog + cross-app Links). */
423
+ export function checkApplicationHostCompositionJson(hostRoot: string, packageRoots: string[]): string;
424
+
425
+ /** M5: ApplicationDevCheckReport JSON (sessions / affected / proxy / tests / deploy). */
426
+ export function checkApplicationDevTestDeployJson(hostRoot: string, packageRoots: string[], dirtyPaths?: string[]): string;
427
+
428
+ export function createDevSession(options: DevSessionOptions): DevSession;
429
+
430
+ export function srcFingerprint(srcDir: string): number;
431
+
432
+ export function listWatchedFiles(srcDir: string): string[];
433
+
434
+ export function resolveWorkspaceDirs(opts?: { cwd?: string; path?: string; outDir?: string }): {
435
+ project: string;
436
+ outDir: string;
437
+ cwd: string;
438
+ };
439
+
440
+ export function findPackageJson(startDir: string): string | null;
441
+
442
+ export function readPackageMeta(projectRoot: string): { name?: string } | null;
443
+
444
+ export function resolveWorkspacePackages(project: string): Array<{
445
+ name: string;
446
+ root: string;
447
+ private?: boolean;
448
+ hasSrc: boolean;
449
+ version?: string;
450
+ }>;
451
+
452
+ export function resolvePackageRoot(project: string, name: string): string | null;
453
+
454
+ export function runCli(argv: string[]): Promise<number>;
455
+
456
+ export function parseArgs(argv: string[]): Record<string, string | boolean> & { _: string[] };
457
+
458
+ export function printHelp(): void;
459
+
460
+ export declare const log: {
461
+ info(...args: unknown[]): void;
462
+ warn(...args: unknown[]): void;
463
+ error(...args: unknown[]): void;
464
+ diagnostic(d: Diagnostic): void;
465
+ diagnostics(diagnostics: Diagnostic[]): number;
466
+ };
467
+
468
+ declare const _default: {
469
+ HOST_PROTOCOL: string;
470
+ COMPILER_PROTOCOL: string;
471
+ PROGRAM_IR_SCHEMA: string;
472
+ PLUGIN_PROTOCOL: string;
473
+ expectedProtocol: typeof expectedProtocol;
474
+ resolveNativePath: typeof resolveNativePath;
475
+ loadNative: typeof loadNative;
476
+ getProtocolVersions: typeof getProtocolVersions;
477
+ handshake: typeof handshake;
478
+ createWorkspace: typeof createWorkspace;
479
+ };
480
+ export default _default;
481
+
482
+ export const TARGET_PROTOCOL: string;
483
+ export const TARGET_VIEW_OPS_SCHEMA: string;
484
+ export const TARGET_PLATFORM_PROFILE_SCHEMA: string;
485
+ export const TARGET_MINI_PROGRAM_ARTIFACT_SCHEMA: string;
486
+ export const TARGET_CHECK_SCHEMA: string;
487
+ export function targetCatalog(): {
488
+ schema: string;
489
+ protocol: string;
490
+ documents: Array<{ kind: string; schema: string }>;
491
+ diagnostics: string[];
492
+ viewOperations: string[];
493
+ };
494
+ export function queryTargetProtocolCatalog(): string;
495
+ export function checkMp0TargetContractJson(rootPath: string): string;
496
+
497
+ export const PROFILE_PROTOCOL: string;
498
+ export const PROFILE_HOST_SCHEMA: string;
499
+ export const PROFILE_DELIVERY_SCHEMA: string;
500
+ export const PROFILE_CHECK_SCHEMA: string;
501
+ export const PROFILE_DIAG_HOST_PROFILE_INVALID: string;
502
+ export const PROFILE_DIAG_RESOLUTION_DIGEST_MISMATCH: string;
503
+ export const PROFILE_DIAG_CORE_ID_OVERRIDE: string;
504
+ export const PROFILE_DIAG_HOST_PROFILE_REF_UNRESOLVED: string;
505
+ export const PROFILE_SURFACE_KINDS: string[];
506
+ export const PROFILE_UNIFIED_LIFECYCLE_EVENTS: string[];
507
+ export const PROFILE_CORE_ID_PREFIX: string;
508
+ export function profileCatalog(): {
509
+ schema: string;
510
+ protocol: string;
511
+ documents: Array<{ kind: string; schema: string }>;
512
+ diagnostics: string[];
513
+ surfaceKinds: string[];
514
+ unifiedLifecycleEvents: string[];
515
+ coreIdPrefix: string;
516
+ };
517
+
518
+ export const LOCALE_PROTOCOL: string;
519
+ export const LOCALE_MANIFEST_SCHEMA: string;
520
+ export const LOCALE_MESSAGE_CATALOG_SCHEMA: string;
521
+ export const LOCALE_MESSAGE_NODE_SCHEMA: string;
522
+ export const LOCALE_CHECK_SCHEMA: string;
523
+ export const LOCALE_TYPED_MODULE_SCHEMA: string;
524
+ export const LOCALE_RENAME_SCHEMA: string;
525
+ export const LOCALE_APPLICATION_CONTEXT_SCHEMA: string;
526
+ export const LOCALE_FORMATTER_CONTEXT_SCHEMA: string;
527
+ export const LOCALE_TRANSITION_SCHEMA: string;
528
+ export const LOCALE_RUNTIME_CHECK_SCHEMA: string;
529
+ export const LOCALE_FALLBACK_RESOLUTION_SCHEMA: string;
530
+ export const FORMATTER_DATA_VERSION: string;
531
+ export const LOCALE_ROUTE_REALIZATION_SCHEMA: string;
532
+ export const LOCALE_PAGE_META_SCHEMA: string;
533
+ export const LOCALE_LINK_RESOLUTION_SCHEMA: string;
534
+ export const LOCALE_ROUTER_CHECK_SCHEMA: string;
535
+ export const LOCALE_DELIVERY_RESOLUTION_SCHEMA: string;
536
+ export const LOCALE_CHUNK_MANIFEST_SCHEMA: string;
537
+ export const LOCALE_NATIVE_PACK_SCHEMA: string;
538
+ export const LOCALE_MINI_PACKAGE_PROOF_SCHEMA: string;
539
+ export const LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA: string;
540
+ export const LOCALE_DELIVERY_CHECK_SCHEMA: string;
541
+ export const LOCALE_EXPLAIN_SCHEMA: string;
542
+ export const LOCALE_DIFF_SCHEMA: string;
543
+ export const LOCALE_EXTRACT_SCHEMA: string;
544
+ export const LOCALE_PSEUDO_SCHEMA: string;
545
+ export const LOCALE_CONFORMANCE_SCHEMA: string;
546
+ export const LOCALE_DIAG_MANIFEST_MISSING: string;
547
+ export const LOCALE_DIAG_ID_INVALID: string;
548
+ export const LOCALE_DIAG_FALLBACK_CYCLE: string;
549
+ export const LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH: string;
550
+ export const LOCALE_DIAG_MESSAGE_UNUSED: string;
551
+ export const LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE: string;
552
+ export const LOCALE_DIAG_FORMATTER_VERSION_MISMATCH: string;
553
+ export const LOCALE_DIAG_DIGEST_MISMATCH: string;
554
+ export const LOCALE_DIAG_TRANSITION_PARTIAL: string;
555
+ export const LOCALE_DIAG_TRANSITION_UNSUPPORTED: string;
556
+ export const LOCALE_DIAG_TRANSITION_LOAD_FAILED: string;
557
+ export const LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN: string;
558
+ export const LOCALE_DIAG_MESSAGE_MIXED_LOCALE: string;
559
+ export const LOCALE_DIAG_STALE_GENERATION: string;
560
+ export const LOCALE_DIAG_ROUTE_COLLISION: string;
561
+ export const LOCALE_DIAG_CANONICAL_MISSING: string;
562
+ export const LOCALE_DIAG_HREFLANG_INCOMPLETE: string;
563
+ export const LOCALE_DIAG_META_LOCALE_MISMATCH: string;
564
+ export const LOCALE_DIAG_LINK_HARDCODED_PATH: string;
565
+ export const LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT: string;
566
+ export const LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT: string;
567
+ export const LOCALE_DIAG_DELIVERY_FULL_BUNDLE: string;
568
+ export const LOCALE_DIAG_CHUNK_HASH_MISMATCH: string;
569
+ export const LOCALE_DIAG_NATIVE_PACK_UNSIGNED: string;
570
+ export const LOCALE_DIAG_NATIVE_PACK_HAS_JS: string;
571
+ export const LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH: string;
572
+ export const LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN: string;
573
+ export const LOCALE_DIAG_SERVER_TRANSLATED_ERROR: string;
574
+ export const LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT: string;
575
+ export const LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE: string;
576
+ export const LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED: string;
577
+ export const LOCALE_DIAG_HARDCODED_TEXT: string;
578
+ export const LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN: string;
579
+ export const LOCALE_DIAG_CONFORMANCE_DIVERGENCE: string;
580
+ export const LOCALE_DIAG_EXPLAIN_UNKNOWN: string;
581
+ export const LOCALE_VIRTUAL_MODULE_PREFIX: string;
582
+ export function localeCatalog(): {
583
+ schema: string;
584
+ protocol: string;
585
+ documents: Array<{ kind: string; schema: string }>;
586
+ diagnostics: string[];
587
+ virtualModulePrefix: string;
588
+ formatterDataVersion: string;
589
+ };
590
+ export function negotiateLocale(input: {
591
+ supportedLocales: string[];
592
+ defaultLocale: string;
593
+ routeLocale?: string | null;
594
+ userChoice?: string | null;
595
+ preference?: string | null;
596
+ hostCandidates?: string[];
597
+ }): string;
598
+ export function buildApplicationContext(opts: {
599
+ applicationId: string;
600
+ deliveryId: string;
601
+ localeId: string;
602
+ timeZone: string;
603
+ calendar?: string;
604
+ numberingSystem?: string;
605
+ direction?: string;
606
+ generation?: number;
607
+ }): Record<string, unknown>;
608
+ export function buildFormatterContext(app: Record<string, unknown>, opts?: { currency?: string }): Record<string, unknown>;
609
+ export function formatterContextDigest(formatter: Record<string, unknown>): string;
610
+ export function validateFormatterContext(
611
+ formatter: Record<string, unknown>,
612
+ opts?: { allowMachineDefault?: boolean },
613
+ ): { ok: boolean; diagnostics: Array<{ code: string; severity: string; message: string }> };
614
+ export function checkSsrClientParity(input: {
615
+ ssr: {
616
+ localeId: string;
617
+ formatterDigest: string;
618
+ formatterDataVersion?: string;
619
+ texts: Record<string, string>;
620
+ };
621
+ client: {
622
+ localeId: string;
623
+ formatterDigest: string;
624
+ formatterDataVersion?: string;
625
+ texts: Record<string, string>;
626
+ };
627
+ }): { schema: string; status: string; diagnostics: Array<{ code: string; severity: string; message: string }> };
628
+ export function createLocaleSession(opts: Record<string, unknown>): {
629
+ transition: (targetLocaleId: string, opts?: Record<string, unknown>) => Promise<Record<string, unknown>>;
630
+ renderAll: (argMap?: Record<string, Record<string, unknown>>) => {
631
+ bindings: Record<string, { text: string; resolvedLocale: string }>;
632
+ resolvedLocales: string[];
633
+ };
634
+ snapshot: () => Record<string, unknown>;
635
+ applicationContext: Record<string, unknown>;
636
+ formatterContext: Record<string, unknown>;
637
+ formatterDigest: string;
638
+ };
639
+ export function formatMessageTemplate(template: string, args?: Record<string, unknown>): string;
640
+ export function resolveMessageVariant(input: Record<string, unknown>): Record<string, unknown>;
641
+ export function checkLocaleRuntime(input: Record<string, unknown>): Record<string, unknown>;
642
+ export function realizeRoutePath(localeId: string, pathPattern: string, routing?: Record<string, unknown>): Record<string, unknown>;
643
+ export function buildLocaleRouteRealizationTable(input: Record<string, unknown>): Record<string, unknown>;
644
+ export function buildLocalePageMeta(input: Record<string, unknown>): Record<string, unknown>;
645
+ export function resolveLinkHref(input: Record<string, unknown>): Record<string, unknown>;
646
+ export function planLocalePathNavigation(input: Record<string, unknown>): Record<string, unknown>;
647
+ export function localeAwareCacheKey(input: { routeId: string; localeId: string; path: string }): string;
648
+ export function assertLocaleCacheKey(input: Record<string, unknown>): {
649
+ ok: boolean;
650
+ diagnostics: Array<{ code: string; severity: string; message: string }>;
651
+ };
652
+ export function commitLocaleRouteMetaTransition(input: Record<string, unknown>): Record<string, unknown>;
653
+ export function checkLocaleRouter(input: Record<string, unknown>): Record<string, unknown>;
654
+ export function buildLocaleDeliveryResolution(input: Record<string, unknown>): Record<string, unknown>;
655
+ export function validateNativeLocalePack(input: Record<string, unknown>): Record<string, unknown>;
656
+ export function proveMiniPackageMessages(input: Record<string, unknown>): Record<string, unknown>;
657
+ export function assertServerErrorEnvelope(payload: unknown): Record<string, unknown>;
658
+ export function assertServerFormatContext(input: Record<string, unknown>): {
659
+ ok: boolean;
660
+ diagnostics: Array<{ code: string; severity: string; message: string }>;
661
+ };
662
+ export function assertHostMessageInvariant(resolutions: Array<Record<string, unknown>>): {
663
+ ok: boolean;
664
+ diagnostics: Array<{ code: string; severity: string; message: string }>;
665
+ };
666
+ export function checkLocaleDelivery(input: Record<string, unknown>): Record<string, unknown>;
667
+ export function fallbackDigest(fallback?: Record<string, string[]>): string;
668
+ export function messageCatalogHash(messages: Array<Record<string, unknown>>, localeId: string, reachableIds?: string[]): string;
669
+ export function explainLocaleMessage(input: Record<string, unknown>): Record<string, unknown>;
670
+ export function diffLocaleCatalogs(input: Record<string, unknown>): Record<string, unknown>;
671
+ export function extractHardcodedText(projectRoot: string, opts?: { check?: boolean }): Record<string, unknown>;
672
+ export function pseudoLocalizeCatalog(input: Record<string, unknown>): Record<string, unknown>;
673
+ export function checkLocaleConformance(input: Record<string, unknown>): Record<string, unknown>;
674
+
675
+ export function queryProfileProtocolCatalog(): string;
676
+ export function checkP0ProfileProtocolJson(rootPath: string): string;
677
+
678
+ export const PROFILE_SOLVER_CHECK_SCHEMA: string;
679
+ export const PROFILE_HOST_RESOLUTION_MANIFEST_SCHEMA: string;
680
+ export const PROFILE_EXECUTOR_CHECK_SCHEMA: string;
681
+ export const PROFILE_EXECUTOR_SCENARIO_SCHEMA: string;
682
+ export const PROFILE_DIAG_SURFACE_NO_MATCH: string;
683
+ export const PROFILE_DIAG_SURFACE_AMBIGUOUS: string;
684
+ export const PROFILE_DIAG_CAPABILITY_UNRESOLVED: string;
685
+ export const PROFILE_DIAG_CAPABILITY_PERMISSION_UNDECLARED: string;
686
+ export const PROFILE_DIAG_ROUTE_UNREALIZABLE: string;
687
+ export const PROFILE_DIAG_STALE_GENERATION: string;
688
+ export const PROFILE_DIAG_MISSING_ENVELOPE_IDS: string;
689
+ export const PROFILE_DIAG_SURFACE_OWNS_STATE: string;
690
+ export const PROFILE_DIAG_PRIVATE_OBJECT_CROSSING: string;
691
+ export const PROFILE_DIAG_SPLIT_TRANSACTION: string;
692
+ export const PROFILE_DIAG_DISPOSE_NOT_AUTHORITATIVE: string;
693
+ export const PROFILE_DIAG_CANCEL_NOT_PROPAGATED: string;
694
+ export const PROFILE_LIFECYCLE_MAPPING_ENTRY_SCHEMA: string;
695
+ export const PROFILE_LIFECYCLE_MAPPING_TABLE_SCHEMA: string;
696
+ export const PROFILE_RECOVERY_POLICY_SCHEMA: string;
697
+ export const PROFILE_LIFECYCLE_SCENARIO_SCHEMA: string;
698
+ export const PROFILE_LIFECYCLE_RECOVERY_CHECK_SCHEMA: string;
699
+ export const PROFILE_LIFECYCLE_HOST_KINDS: string[];
700
+ export const PROFILE_PERSISTENCE_WINDOWS: string[];
701
+ export const PROFILE_DIAG_LIFECYCLE_UNPROVEN: string;
702
+ export const PROFILE_DIAG_LIFECYCLE_MAPPING_INCOMPLETE: string;
703
+ export const PROFILE_DIAG_RECOVERY_DUPLICATES_OWNER: string;
704
+ export const PROFILE_DIAG_RECOVERY_ASSUMES_HEAP: string;
705
+ export const PROFILE_DIAG_PERSISTENCE_WINDOW_INVALID: string;
706
+ export function checkP1ProfileSolverJson(rootPath: string): string;
707
+ export function checkP2UnifiedExecutorJson(rootPath: string): string;
708
+ export function checkP3LifecycleRecoveryJson(rootPath: string): string;
709
+ export const PROFILE_DELIVERY_PACKAGE_CONSTRAINTS_SCHEMA: string;
710
+ export const PROFILE_DELIVERY_SECURITY_POLICY_SCHEMA: string;
711
+ export const PROFILE_DELIVERY_UPDATE_POLICY_SCHEMA: string;
712
+ export const PROFILE_DELIVERY_ARTIFACT_MANIFEST_SCHEMA: string;
713
+ export const PROFILE_DELIVERY_PROOF_MANIFEST_SCHEMA: string;
714
+ export const PROFILE_DELIVERY_PROOF_SCENARIO_SCHEMA: string;
715
+ export const PROFILE_DELIVERY_PROOF_CHECK_SCHEMA: string;
716
+ export const PROFILE_DELIVERY_UPDATE_CHANNELS: string[];
717
+ export const PROFILE_DELIVERY_ASSET_STRATEGIES: string[];
718
+ export const PROFILE_DIAG_DELIVERY_CONSTRAINT_EXCEEDED: string;
719
+ export const PROFILE_DIAG_HOST_PLAN_VERSION_MISMATCH: string;
720
+ export const PROFILE_DIAG_PROOF_MANIFEST_INCOMPLETE: string;
721
+ export const PROFILE_DIAG_PROOF_COPIES_SEMANTIC_IR: string;
722
+ export const PROFILE_DIAG_UPDATE_WITHOUT_REPROOF: string;
723
+ export const PROFILE_DIAG_SECURITY_POLICY_INSECURE: string;
724
+ export function checkP4DeliveryProofJson(rootPath: string): string;
725
+ export const PROFILE_CONFORMANCE_FIXTURE_SCHEMA: string;
726
+ export const PROFILE_CONFORMANCE_STATE_SNAPSHOT_SCHEMA: string;
727
+ export const PROFILE_CONFORMANCE_TRACE_SCHEMA: string;
728
+ export const PROFILE_CONFORMANCE_HOST_RUN_SCHEMA: string;
729
+ export const PROFILE_CONFORMANCE_SCENARIO_SCHEMA: string;
730
+ export const PROFILE_CONFORMANCE_CHECK_SCHEMA: string;
731
+ export const PROFILE_CONFORMANCE_SURFACE_ROLES: string[];
732
+ export const PROFILE_DIAG_STABLE_ID_DIVERGENCE: string;
733
+ export const PROFILE_DIAG_STATE_RESULT_DIVERGENCE: string;
734
+ export const PROFILE_DIAG_TRACE_INVARIANT_BROKEN: string;
735
+ export const PROFILE_DIAG_CONFORMANCE_HOST_INCOMPLETE: string;
736
+ export const PROFILE_DIAG_CONFORMANCE_SURFACE_ROLE_MISMATCH: string;
737
+ export function checkP5CrossHostConformanceJson(rootPath: string): string;
738
+
739
+ export const NATIVE_HOST_PROTOCOL: string;
740
+ export const NATIVE_HOST_WEBVIEW_DEPLOYMENT_SCHEMA: string;
741
+ export const NATIVE_HOST_CAPABILITY_SCHEMA: string;
742
+ export const NATIVE_HOST_BRIDGE_SCHEMA: string;
743
+ export const NATIVE_HOST_APPLICATION_IDENTITY_SCHEMA: string;
744
+ export const NATIVE_HOST_CHECK_SCHEMA: string;
745
+ export const NATIVE_HOST_DIAG_ARBITRARY_BRIDGE: string;
746
+ export function nativeHostCatalog(): {
747
+ schema: string;
748
+ protocol: string;
749
+ documents: Array<{ kind: string; schema: string }>;
750
+ diagnostics: string[];
751
+ capabilityClasses: string[];
752
+ forbiddenBridgePatterns: string[];
753
+ };
754
+ export function queryNativeHostProtocolCatalog(): string;
755
+ export function checkNw0NativeHostContractJson(rootPath: string): string;
756
+
757
+ export const NATIVE_HOST_SHELL_SCHEMA: string;
758
+ export const NATIVE_HOST_SHELL_CHECK_SCHEMA: string;
759
+ export const NATIVE_HOST_DEEP_LINK_SCHEMA: string;
760
+ export const NATIVE_HOST_LOCAL_BUNDLE_SCHEMA: string;
761
+ export const NATIVE_HOST_DIAG_MISSING_SHELL_HOOK: string;
762
+ export const NATIVE_HOST_DIAG_PLATFORM_SEMANTIC_FORK: string;
763
+ export const NATIVE_HOST_DIAG_REMOTE_ENTRY_DEFAULT: string;
764
+ export const NATIVE_HOST_DIAG_MISSING_ENTRY_ARTIFACT: string;
765
+ export const NATIVE_HOST_REQUIRED_SHELL_HOOKS: string[];
766
+ export function checkNw1NativeShellContractJson(rootPath: string): string;
767
+
768
+ export const NATIVE_HOST_CAPABILITY_CALL_SCHEMA: string;
769
+ export const NATIVE_HOST_BRIDGE_TRACE_SCHEMA: string;
770
+ export const NATIVE_HOST_BRIDGE_STUB_CATALOG_SCHEMA: string;
771
+ export const NATIVE_HOST_BRIDGE_CHECK_SCHEMA: string;
772
+ export const NATIVE_HOST_DIAG_MISSING_NONCE: string;
773
+ export const NATIVE_HOST_DIAG_CALL_NOT_ALLOWLISTED: string;
774
+ export const NATIVE_HOST_FIRST_BATCH_STUB_IDS: string[];
775
+ export function checkNw2NativeBridgeContractJson(rootPath: string): string;
776
+
777
+ export const NATIVE_HOST_LIFECYCLE_SCHEMA: string;
778
+ export const NATIVE_HOST_LIFECYCLE_CHECK_SCHEMA: string;
779
+ export const NATIVE_HOST_DIAG_BACKGROUND_IS_DESTROY: string;
780
+ export const NATIVE_HOST_DIAG_CRASH_ASSUMES_JS_HEAP: string;
781
+ export const NATIVE_HOST_DIAG_MISSING_LIFECYCLE_EVENT: string;
782
+ export const NATIVE_HOST_REQUIRED_LIFECYCLE_EVENTS: string[];
783
+ export function checkNw3NativeLifecycleContractJson(rootPath: string): string;
784
+
785
+ export const NATIVE_HOST_FULLSTACK_SCHEMA: string;
786
+ export const NATIVE_HOST_FULLSTACK_CHECK_SCHEMA: string;
787
+ export const NATIVE_HOST_DIAG_BRIDGE_BYPASSES_SERVER: string;
788
+ export const NATIVE_HOST_DIAG_REMOTE_WITHOUT_INTEGRITY: string;
789
+ export const NATIVE_HOST_DIAG_MISSING_SERVER_TRANSPORT: string;
790
+ export function checkNw4NativeFullstackContractJson(rootPath: string): string;
791
+
792
+ export const NATIVE_HOST_NATIVE_SURFACE_SCHEMA: string;
793
+ export const NATIVE_HOST_NATIVE_SURFACE_CHECK_SCHEMA: string;
794
+ export const NATIVE_HOST_DIAG_SURFACE_IS_CAPABILITY: string;
795
+ export const NATIVE_HOST_DIAG_IMPLICIT_STATE_SHARE: string;
796
+ export const NATIVE_HOST_HIGH_VALUE_SURFACE_KINDS: string[];
797
+ export function checkNw5NativeSurfaceContractJson(rootPath: string): string;
798
+
799
+ export const NATIVE_HOST_MULTI_PLATFORM_SCHEMA: string;
800
+ export const NATIVE_HOST_MULTI_PLATFORM_SHARED_SCHEMA: string;
801
+ export const NATIVE_HOST_MULTI_PLATFORM_CHECK_SCHEMA: string;
802
+ export const NATIVE_HOST_DIAG_PLATFORM_SEMANTIC_FORK: string;
803
+ export const NATIVE_HOST_DIAG_MISSING_PLATFORM_ADAPTER: string;
804
+ export const NATIVE_HOST_DIAG_PLATFORM_PRIVATE_SCHEMA: string;
805
+ export const NATIVE_HOST_DIAG_ADAPTER_IS_SEMANTIC_CORE: string;
806
+ export const NATIVE_HOST_REQUIRED_MULTI_PLATFORMS: string[];
807
+ export const NATIVE_HOST_MULTI_PLATFORM_ADAPTER_KIND: string;
808
+ export function checkNw6MultiPlatformContractJson(rootPath: string): string;