@vmz/vmz 0.0.1 → 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.
- package/README.md +52 -2
- package/bin/vmz.js +4 -0
- package/dist/application-cmd.d.ts +21 -0
- package/dist/application-cmd.js +347 -0
- package/dist/bundler-adapter.d.ts +63 -0
- package/dist/bundler-adapter.js +110 -0
- package/dist/cli.d.ts +23 -0
- package/dist/cli.js +474 -0
- package/dist/dev-session.d.ts +35 -0
- package/dist/dev-session.js +290 -0
- package/dist/document-build.d.ts +99 -0
- package/dist/document-build.js +273 -0
- package/dist/document-check.d.ts +44 -0
- package/dist/document-check.js +246 -0
- package/dist/document-cmd.d.ts +8 -0
- package/dist/document-cmd.js +146 -0
- package/dist/document-designs.d.ts +9 -0
- package/dist/document-designs.js +126 -0
- package/dist/document-enrich.d.ts +23 -0
- package/dist/document-enrich.js +233 -0
- package/dist/document-evidence.d.ts +49 -0
- package/dist/document-evidence.js +509 -0
- package/dist/document-integrate.d.ts +34 -0
- package/dist/document-integrate.js +88 -0
- package/dist/document-interactive.d.ts +69 -0
- package/dist/document-interactive.js +254 -0
- package/dist/document-locale.d.ts +31 -0
- package/dist/document-locale.js +59 -0
- package/dist/document-markdown.d.ts +12 -0
- package/dist/document-markdown.js +45 -0
- package/dist/document-scan.d.ts +21 -0
- package/dist/document-scan.js +151 -0
- package/dist/document-schema.d.ts +86 -0
- package/dist/document-schema.js +87 -0
- package/dist/explain-cmd.d.ts +5 -0
- package/dist/explain-cmd.js +123 -0
- package/dist/index.d.ts +359 -0
- package/dist/index.js +580 -0
- package/dist/invocation.d.ts +91 -0
- package/dist/invocation.js +190 -0
- package/dist/locale-check.d.ts +106 -0
- package/dist/locale-check.js +736 -0
- package/dist/locale-cmd.d.ts +5 -0
- package/dist/locale-cmd.js +442 -0
- package/dist/locale-delivery.d.ts +298 -0
- package/dist/locale-delivery.js +443 -0
- package/dist/locale-router.d.ts +206 -0
- package/dist/locale-router.js +507 -0
- package/dist/locale-runtime.d.ts +406 -0
- package/dist/locale-runtime.js +541 -0
- package/dist/locale-schema.d.ts +8 -0
- package/dist/locale-schema.js +9 -0
- package/dist/locale-tooling.d.ts +118 -0
- package/dist/locale-tooling.js +357 -0
- package/dist/log.d.ts +19 -0
- package/dist/log.js +42 -0
- package/dist/packages.d.ts +26 -0
- package/dist/packages.js +146 -0
- package/dist/plugin-host.d.ts +29 -0
- package/dist/plugin-host.js +369 -0
- package/dist/refactor-cmd.d.ts +8 -0
- package/dist/refactor-cmd.js +156 -0
- package/dist/resolve-native-cli.d.ts +14 -0
- package/dist/resolve-native-cli.js +84 -0
- package/dist/resolve.d.ts +24 -0
- package/dist/resolve.js +55 -0
- package/dist/test-cmd.d.ts +9 -0
- package/dist/test-cmd.js +363 -0
- package/dist/test-compile.d.ts +2 -0
- package/dist/test-compile.js +3 -0
- package/dist/test-discover.d.ts +2 -0
- package/dist/test-discover.js +3 -0
- package/dist/test-logic.d.ts +2 -0
- package/dist/test-logic.js +3 -0
- package/dist/test-protocol.d.ts +2 -0
- package/dist/test-protocol.js +3 -0
- package/dist/watch-diff.d.ts +17 -0
- package/dist/watch-diff.js +56 -0
- package/package.json +96 -3
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document contract — schema constants & diagnostic codes.
|
|
3
|
+
*
|
|
4
|
+
* Not a Doc IR: this is a filesystem/manifest projection only.
|
|
5
|
+
*/
|
|
6
|
+
/** @typedef {{ pageKey: string, locale: string }} PageIdentity */
|
|
7
|
+
/** @typedef {{
|
|
8
|
+
* identity: PageIdentity,
|
|
9
|
+
* sourcePath: string,
|
|
10
|
+
* route?: string | null,
|
|
11
|
+
* anchors?: string[],
|
|
12
|
+
* }} PageRecord */
|
|
13
|
+
/** @typedef {{
|
|
14
|
+
* id: string,
|
|
15
|
+
* sourceRoot: string,
|
|
16
|
+
* pageKeys: string[],
|
|
17
|
+
* }} DocumentCollection */
|
|
18
|
+
/** @typedef {{
|
|
19
|
+
* collectionId: string,
|
|
20
|
+
* routeBase: string,
|
|
21
|
+
* mode: 'integrated' | 'standalone',
|
|
22
|
+
* }} DocumentMount */
|
|
23
|
+
/** @typedef {{
|
|
24
|
+
* code: string,
|
|
25
|
+
* severity: 'error' | 'warning',
|
|
26
|
+
* message: string,
|
|
27
|
+
* path?: string,
|
|
28
|
+
* }} DocumentDiagnostic */
|
|
29
|
+
/** @typedef {{
|
|
30
|
+
* schema: typeof DOCUMENT_MANIFEST_SCHEMA,
|
|
31
|
+
* root: string,
|
|
32
|
+
* defaultLocale: string | null,
|
|
33
|
+
* locales: string[],
|
|
34
|
+
* localeLabels: Record<string, string>,
|
|
35
|
+
* collections: DocumentCollection[],
|
|
36
|
+
* mounts: DocumentMount[],
|
|
37
|
+
* pages: PageRecord[],
|
|
38
|
+
* diagnostics: DocumentDiagnostic[],
|
|
39
|
+
* }} DocumentManifest */
|
|
40
|
+
export declare const DOCUMENT_MANIFEST_SCHEMA = "vmz.document.manifest.v0";
|
|
41
|
+
/** Static page view fragment — not a Doc IR. */
|
|
42
|
+
export declare const DOCUMENT_VIEW_SCHEMA = "vmz.document.view.v0";
|
|
43
|
+
/** Evidence projection (fences + API refs) — not a Doc IR. */
|
|
44
|
+
export declare const DOCUMENT_EVIDENCE_SCHEMA = "vmz.document.evidence.v0";
|
|
45
|
+
/** Search index (SearchRecord[]) — not a Doc IR. */
|
|
46
|
+
export declare const DOCUMENT_SEARCH_SCHEMA = "vmz.document.search.v0";
|
|
47
|
+
/** Island-only resume plan for search/playground — not a Doc IR. */
|
|
48
|
+
export declare const DOCUMENT_ISLANDS_SCHEMA = "vmz.document.islands.v0";
|
|
49
|
+
/** Top-level non-locale reserved names under /documents */
|
|
50
|
+
export declare const DOCUMENT_RESERVED_TOP: Set<string>;
|
|
51
|
+
/** Known locale aliases → canonical key (lowercase, hyphen). */
|
|
52
|
+
export declare const LOCALE_ALIASES: {
|
|
53
|
+
'zh-cn': string;
|
|
54
|
+
'zh-sg': string;
|
|
55
|
+
'zh-tw': string;
|
|
56
|
+
'zh-hk': string;
|
|
57
|
+
'zh-mo': string;
|
|
58
|
+
};
|
|
59
|
+
export declare const DIAG: {
|
|
60
|
+
LOCALE_INVALID: string;
|
|
61
|
+
LOCALE_CASE: string;
|
|
62
|
+
LOCALE_SEPARATOR: string;
|
|
63
|
+
LOCALE_CONFLICT: string;
|
|
64
|
+
LOCALE_MISSING_DEFAULT: string;
|
|
65
|
+
LOCALE_MISSING_PAGE: string;
|
|
66
|
+
LOCALE_ORPHAN_PAGE: string;
|
|
67
|
+
LAYOUT_ILLEGAL_TOP: string;
|
|
68
|
+
LAYOUT_MISSING_DOCUMENTS: string;
|
|
69
|
+
CONFIG_MISSING: string;
|
|
70
|
+
CONFIG_INVALID: string;
|
|
71
|
+
CONFIG_DEFAULT_LOCALE: string;
|
|
72
|
+
FALLBACK_SILENT: string;
|
|
73
|
+
PAGE_DUPLICATE: string;
|
|
74
|
+
LINK_BROKEN: string;
|
|
75
|
+
LINK_AMBIGUOUS: string;
|
|
76
|
+
ANCHOR_MISSING: string;
|
|
77
|
+
ANCHOR_DUPLICATE: string;
|
|
78
|
+
ROUTE_DUPLICATE: string;
|
|
79
|
+
NAV_EMPTY: string;
|
|
80
|
+
FENCE_CHECK: string;
|
|
81
|
+
FENCE_UNSUPPORTED: string;
|
|
82
|
+
FENCE_SOURCE_MISSING: string;
|
|
83
|
+
FENCE_RUN_FAILED: string;
|
|
84
|
+
API_MISSING: string;
|
|
85
|
+
API_AMBIGUOUS: string;
|
|
86
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* Document contract — schema constants & diagnostic codes.
|
|
4
|
+
*
|
|
5
|
+
* Not a Doc IR: this is a filesystem/manifest projection only.
|
|
6
|
+
*/
|
|
7
|
+
/** @typedef {{ pageKey: string, locale: string }} PageIdentity */
|
|
8
|
+
/** @typedef {{
|
|
9
|
+
* identity: PageIdentity,
|
|
10
|
+
* sourcePath: string,
|
|
11
|
+
* route?: string | null,
|
|
12
|
+
* anchors?: string[],
|
|
13
|
+
* }} PageRecord */
|
|
14
|
+
/** @typedef {{
|
|
15
|
+
* id: string,
|
|
16
|
+
* sourceRoot: string,
|
|
17
|
+
* pageKeys: string[],
|
|
18
|
+
* }} DocumentCollection */
|
|
19
|
+
/** @typedef {{
|
|
20
|
+
* collectionId: string,
|
|
21
|
+
* routeBase: string,
|
|
22
|
+
* mode: 'integrated' | 'standalone',
|
|
23
|
+
* }} DocumentMount */
|
|
24
|
+
/** @typedef {{
|
|
25
|
+
* code: string,
|
|
26
|
+
* severity: 'error' | 'warning',
|
|
27
|
+
* message: string,
|
|
28
|
+
* path?: string,
|
|
29
|
+
* }} DocumentDiagnostic */
|
|
30
|
+
/** @typedef {{
|
|
31
|
+
* schema: typeof DOCUMENT_MANIFEST_SCHEMA,
|
|
32
|
+
* root: string,
|
|
33
|
+
* defaultLocale: string | null,
|
|
34
|
+
* locales: string[],
|
|
35
|
+
* localeLabels: Record<string, string>,
|
|
36
|
+
* collections: DocumentCollection[],
|
|
37
|
+
* mounts: DocumentMount[],
|
|
38
|
+
* pages: PageRecord[],
|
|
39
|
+
* diagnostics: DocumentDiagnostic[],
|
|
40
|
+
* }} DocumentManifest */
|
|
41
|
+
export const DOCUMENT_MANIFEST_SCHEMA = 'vmz.document.manifest.v0';
|
|
42
|
+
/** Static page view fragment — not a Doc IR. */
|
|
43
|
+
export const DOCUMENT_VIEW_SCHEMA = 'vmz.document.view.v0';
|
|
44
|
+
/** Evidence projection (fences + API refs) — not a Doc IR. */
|
|
45
|
+
export const DOCUMENT_EVIDENCE_SCHEMA = 'vmz.document.evidence.v0';
|
|
46
|
+
/** Search index (SearchRecord[]) — not a Doc IR. */
|
|
47
|
+
export const DOCUMENT_SEARCH_SCHEMA = 'vmz.document.search.v0';
|
|
48
|
+
/** Island-only resume plan for search/playground — not a Doc IR. */
|
|
49
|
+
export const DOCUMENT_ISLANDS_SCHEMA = 'vmz.document.islands.v0';
|
|
50
|
+
/** Top-level non-locale reserved names under /documents */
|
|
51
|
+
export const DOCUMENT_RESERVED_TOP = new Set(['package.json', 'documents.config.ts', 'documents.config.json', 'documents.config.js', 'public']);
|
|
52
|
+
/** Known locale aliases → canonical key (lowercase, hyphen). */
|
|
53
|
+
export const LOCALE_ALIASES = {
|
|
54
|
+
'zh-cn': 'zh-hans',
|
|
55
|
+
'zh-sg': 'zh-hans',
|
|
56
|
+
'zh-tw': 'zh-hant',
|
|
57
|
+
'zh-hk': 'zh-hant',
|
|
58
|
+
'zh-mo': 'zh-hant',
|
|
59
|
+
};
|
|
60
|
+
export const DIAG = {
|
|
61
|
+
LOCALE_INVALID: 'document::locale::invalid',
|
|
62
|
+
LOCALE_CASE: 'document::locale::case',
|
|
63
|
+
LOCALE_SEPARATOR: 'document::locale::separator',
|
|
64
|
+
LOCALE_CONFLICT: 'document::locale::conflict',
|
|
65
|
+
LOCALE_MISSING_DEFAULT: 'document::locale::missing_default',
|
|
66
|
+
LOCALE_MISSING_PAGE: 'document::locale::missing_page',
|
|
67
|
+
LOCALE_ORPHAN_PAGE: 'document::locale::orphan_page',
|
|
68
|
+
LAYOUT_ILLEGAL_TOP: 'document::layout::illegal_top',
|
|
69
|
+
LAYOUT_MISSING_DOCUMENTS: 'document::layout::missing_documents',
|
|
70
|
+
CONFIG_MISSING: 'document::config::missing',
|
|
71
|
+
CONFIG_INVALID: 'document::config::invalid',
|
|
72
|
+
CONFIG_DEFAULT_LOCALE: 'document::config::default_locale',
|
|
73
|
+
FALLBACK_SILENT: 'document::fallback::silent_forbidden',
|
|
74
|
+
PAGE_DUPLICATE: 'document::page::duplicate',
|
|
75
|
+
LINK_BROKEN: 'document::link::broken',
|
|
76
|
+
LINK_AMBIGUOUS: 'document::link::ambiguous',
|
|
77
|
+
ANCHOR_MISSING: 'document::anchor::missing',
|
|
78
|
+
ANCHOR_DUPLICATE: 'document::anchor::duplicate',
|
|
79
|
+
ROUTE_DUPLICATE: 'document::route::duplicate',
|
|
80
|
+
NAV_EMPTY: 'document::nav::empty',
|
|
81
|
+
FENCE_CHECK: 'document::fence::check_failed',
|
|
82
|
+
FENCE_UNSUPPORTED: 'document::fence::unsupported',
|
|
83
|
+
FENCE_SOURCE_MISSING: 'document::fence::source_missing',
|
|
84
|
+
FENCE_RUN_FAILED: 'document::fence::run_failed',
|
|
85
|
+
API_MISSING: 'document::api::missing',
|
|
86
|
+
API_AMBIGUOUS: 'document::api::ambiguous',
|
|
87
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* `vmz explain` — DX causal explain queries .
|
|
4
|
+
*
|
|
5
|
+
* @param {string[]} argv args after `explain`
|
|
6
|
+
*/
|
|
7
|
+
import { createWorkspace } from './index.js';
|
|
8
|
+
import { log } from './log.js';
|
|
9
|
+
import { resolveWorkspaceDirs } from './resolve.js';
|
|
10
|
+
/**
|
|
11
|
+
* @param {string[]} argv
|
|
12
|
+
* @returns {number}
|
|
13
|
+
*/
|
|
14
|
+
export function cmdExplain(argv) {
|
|
15
|
+
const args = parse(argv);
|
|
16
|
+
if (args.help || args._[0] === 'help') {
|
|
17
|
+
printHelp();
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
let target;
|
|
21
|
+
let pathArg = '.';
|
|
22
|
+
if (args._[0] === 'style') {
|
|
23
|
+
const node = args._[1];
|
|
24
|
+
if (!node) {
|
|
25
|
+
log.error('usage: vmz explain style <node> [path]');
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
target = `style:${node}`;
|
|
29
|
+
pathArg = args._[2] ?? args.path ?? '.';
|
|
30
|
+
}
|
|
31
|
+
else if (args._[0]) {
|
|
32
|
+
target = String(args._[0]);
|
|
33
|
+
pathArg = args._[1] ?? args.path ?? '.';
|
|
34
|
+
}
|
|
35
|
+
else if (args.target) {
|
|
36
|
+
target = String(args.target);
|
|
37
|
+
pathArg = args.path ?? '.';
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
printHelp();
|
|
41
|
+
return 1;
|
|
42
|
+
}
|
|
43
|
+
const { project, outDir } = resolveWorkspaceDirs({
|
|
44
|
+
path: String(pathArg),
|
|
45
|
+
outDir: args['out-dir'] ?? 'dist',
|
|
46
|
+
});
|
|
47
|
+
const ws = createWorkspace({ root: project, outDir });
|
|
48
|
+
if (typeof ws.explain !== 'function') {
|
|
49
|
+
log.error('Workspace.explain unavailable (rebuild N-API)');
|
|
50
|
+
return 1;
|
|
51
|
+
}
|
|
52
|
+
const raw = ws.explain(target);
|
|
53
|
+
if (args.json) {
|
|
54
|
+
console.log(raw);
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
let doc;
|
|
58
|
+
try {
|
|
59
|
+
doc = JSON.parse(raw);
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
console.log(raw);
|
|
63
|
+
return 0;
|
|
64
|
+
}
|
|
65
|
+
console.log(`explain kind=${doc.kind} target=${doc.target}`);
|
|
66
|
+
if (doc.notes)
|
|
67
|
+
console.log(`notes: ${doc.notes}`);
|
|
68
|
+
const chain = Array.isArray(doc.chain) ? doc.chain : [];
|
|
69
|
+
for (const e of chain) {
|
|
70
|
+
const from = e.from ? `${e.from.kind}:${e.from.id}` : '?';
|
|
71
|
+
const to = e.to ? `${e.to.kind}:${e.to.id}` : '?';
|
|
72
|
+
console.log(` ${from} -> ${to} (${e.reason})`);
|
|
73
|
+
}
|
|
74
|
+
if (chain.length === 0) {
|
|
75
|
+
console.log(' (empty chain)');
|
|
76
|
+
}
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
function printHelp() {
|
|
80
|
+
console.log(`vmz explain — causal explain (DX)
|
|
81
|
+
|
|
82
|
+
Usage:
|
|
83
|
+
vmz explain style <node> [path] Style Theme / style:tw / global styles
|
|
84
|
+
vmz explain <target> [path] Generic Workspace.explain target
|
|
85
|
+
|
|
86
|
+
Style nodes:
|
|
87
|
+
bg-action | colors.action | --vmz-colors-action
|
|
88
|
+
designs/styles/index.scss
|
|
89
|
+
|
|
90
|
+
Options:
|
|
91
|
+
--json Print raw ExplainDocument JSON
|
|
92
|
+
--out-dir, -o <dir> Dist directory (default: dist)
|
|
93
|
+
`);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @param {string[]} argv
|
|
97
|
+
*/
|
|
98
|
+
function parse(argv) {
|
|
99
|
+
/** @type {Record<string, string | boolean> & { _: string[] }} */
|
|
100
|
+
const out = { _: [] };
|
|
101
|
+
for (let i = 0; i < argv.length; i++) {
|
|
102
|
+
const a = argv[i];
|
|
103
|
+
if (a.startsWith('--')) {
|
|
104
|
+
const eq = a.indexOf('=');
|
|
105
|
+
if (eq !== -1) {
|
|
106
|
+
out[a.slice(2, eq)] = a.slice(eq + 1);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const key = a.slice(2);
|
|
110
|
+
const next = argv[i + 1];
|
|
111
|
+
if (next && !next.startsWith('-') && key !== 'json' && key !== 'help') {
|
|
112
|
+
out[key] = next;
|
|
113
|
+
i += 1;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
out[key] = true;
|
|
117
|
+
}
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
out._.push(a);
|
|
121
|
+
}
|
|
122
|
+
return out;
|
|
123
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VMZ Node host: N-API workspace + npm CLI.
|
|
3
|
+
* Coarse-grained only — no transform hooks / per-AST callbacks.
|
|
4
|
+
*/
|
|
5
|
+
export { HOST_PROTOCOL, COMPILER_PROTOCOL, PROGRAM_IR_SCHEMA, PLAN_SCHEMA, PLUGIN_PROTOCOL, DX_PROTOCOL, DX_SYMBOL_SCHEMA, DX_REFERENCE_SCHEMA, DX_EXPLAIN_SCHEMA, DX_WORKSPACE_EDIT_SCHEMA, DX_CODE_ACTION_SCHEMA, DX_AFFECTED_SCHEMA, DX_RENAME_SCHEMA, DX_TEST_SELECTION_SCHEMA, DX_SOURCE_MAP_SCHEMA, DX_SYMBOL_INDEX_SCHEMA, DX_CROSS_SFC_CHECK_SCHEMA, DX_SEMANTIC_TRANSACTION_SCHEMA, DX_CANCEL_SCHEMA, DX_AFFECTED_PREVIEW_SCHEMA, DX_HMR_PLAN_SCHEMA, DX_BUDGET_SCHEMA, DX_TRANSACTION_CHECK_SCHEMA, DX_BOUNDARY_VALIDATOR_SCHEMA, DX_LEAKAGE_SCHEMA, DX_CAPABILITY_TARGET_SCHEMA, DX_DEAD_GRAPH_SCHEMA, DX_DEPLOYMENT_PROOF_CHECK_SCHEMA, DX_TRACE_SCHEMA, DX_CAUSAL_REPLAY_SCHEMA, DX_CAUSAL_REPLAY_CHECK_SCHEMA, APPLICATION_PROTOCOL, APPLICATION_DESCRIPTOR_SCHEMA, APPLICATIONS_CONFIG_SCHEMA, APPLICATION_CATALOG_SCHEMA, APPLICATION_CHECK_SCHEMA, APPLICATION_BASE_SCHEMA, APPLICATION_RELOCATION_SCHEMA, APPLICATION_RELOCATED_SCHEMA, APPLICATION_RELOCATABLE_CHECK_SCHEMA, APPLICATION_ARTIFACT_SCHEMA, APPLICATION_MOUNT_TABLE_SCHEMA, APPLICATION_ARTIFACT_BOUNDARY_SCHEMA, APPLICATION_ISOLATION_SCHEMA, APPLICATION_ISOLATION_CHECK_SCHEMA, APPLICATION_CROSS_LINK_SCHEMA, APPLICATION_HOST_COMPOSITION_SCHEMA, APPLICATION_DEV_SESSIONS_SCHEMA, APPLICATION_AFFECTED_SCHEMA, APPLICATION_PROXY_DISPATCH_SCHEMA, APPLICATION_MOUNTED_TEST_SCHEMA, APPLICATION_DEPLOY_ADAPTER_SCHEMA, APPLICATION_DEV_CHECK_SCHEMA, PROTOCOL_CATALOG_SCHEMA, TEST_PROTOCOL, TEST_MANIFEST_SCHEMA, TEST_REPORT_SCHEMA, protocolCatalog, dxCatalog, testCatalog, applicationCatalog, TARGET_PROTOCOL, TARGET_VIEW_OPS_SCHEMA, TARGET_PLATFORM_PROFILE_SCHEMA, TARGET_MINI_PROGRAM_ARTIFACT_SCHEMA, TARGET_CHECK_SCHEMA, TARGET_DIAG_DOM_LEAK_IN_PLAN, targetCatalog, PROFILE_PROTOCOL, PROFILE_HOST_SCHEMA, PROFILE_DELIVERY_SCHEMA, PROFILE_CHECK_SCHEMA, PROFILE_DIAG_HOST_PROFILE_INVALID, PROFILE_DIAG_RESOLUTION_DIGEST_MISMATCH, PROFILE_DIAG_CORE_ID_OVERRIDE, PROFILE_DIAG_HOST_PROFILE_REF_UNRESOLVED, PROFILE_SURFACE_KINDS, PROFILE_UNIFIED_LIFECYCLE_EVENTS, PROFILE_CORE_ID_PREFIX, PROFILE_SOLVER_CHECK_SCHEMA, PROFILE_HOST_RESOLUTION_MANIFEST_SCHEMA, PROFILE_EXECUTOR_CHECK_SCHEMA, PROFILE_EXECUTOR_SCENARIO_SCHEMA, PROFILE_DIAG_SURFACE_NO_MATCH, PROFILE_DIAG_SURFACE_AMBIGUOUS, PROFILE_DIAG_CAPABILITY_UNRESOLVED, PROFILE_DIAG_CAPABILITY_PERMISSION_UNDECLARED, PROFILE_DIAG_ROUTE_UNREALIZABLE, PROFILE_DIAG_STALE_GENERATION, PROFILE_DIAG_MISSING_ENVELOPE_IDS, PROFILE_DIAG_SURFACE_OWNS_STATE, PROFILE_DIAG_PRIVATE_OBJECT_CROSSING, PROFILE_DIAG_SPLIT_TRANSACTION, PROFILE_DIAG_DISPOSE_NOT_AUTHORITATIVE, PROFILE_DIAG_CANCEL_NOT_PROPAGATED, PROFILE_LIFECYCLE_MAPPING_ENTRY_SCHEMA, PROFILE_LIFECYCLE_MAPPING_TABLE_SCHEMA, PROFILE_RECOVERY_POLICY_SCHEMA, PROFILE_LIFECYCLE_SCENARIO_SCHEMA, PROFILE_LIFECYCLE_RECOVERY_CHECK_SCHEMA, PROFILE_LIFECYCLE_HOST_KINDS, PROFILE_PERSISTENCE_WINDOWS, PROFILE_DIAG_LIFECYCLE_UNPROVEN, PROFILE_DIAG_LIFECYCLE_MAPPING_INCOMPLETE, PROFILE_DIAG_RECOVERY_DUPLICATES_OWNER, PROFILE_DIAG_RECOVERY_ASSUMES_HEAP, PROFILE_DIAG_PERSISTENCE_WINDOW_INVALID, PROFILE_DELIVERY_PACKAGE_CONSTRAINTS_SCHEMA, PROFILE_DELIVERY_SECURITY_POLICY_SCHEMA, PROFILE_DELIVERY_UPDATE_POLICY_SCHEMA, PROFILE_DELIVERY_ARTIFACT_MANIFEST_SCHEMA, PROFILE_DELIVERY_PROOF_MANIFEST_SCHEMA, PROFILE_DELIVERY_PROOF_SCENARIO_SCHEMA, PROFILE_DELIVERY_PROOF_CHECK_SCHEMA, PROFILE_DELIVERY_UPDATE_CHANNELS, PROFILE_DELIVERY_ASSET_STRATEGIES, PROFILE_DIAG_DELIVERY_CONSTRAINT_EXCEEDED, PROFILE_DIAG_HOST_PLAN_VERSION_MISMATCH, PROFILE_DIAG_PROOF_MANIFEST_INCOMPLETE, PROFILE_DIAG_PROOF_COPIES_SEMANTIC_IR, PROFILE_DIAG_UPDATE_WITHOUT_REPROOF, PROFILE_DIAG_SECURITY_POLICY_INSECURE, PROFILE_CONFORMANCE_FIXTURE_SCHEMA, PROFILE_CONFORMANCE_STATE_SNAPSHOT_SCHEMA, PROFILE_CONFORMANCE_TRACE_SCHEMA, PROFILE_CONFORMANCE_HOST_RUN_SCHEMA, PROFILE_CONFORMANCE_SCENARIO_SCHEMA, PROFILE_CONFORMANCE_CHECK_SCHEMA, PROFILE_CONFORMANCE_SURFACE_ROLES, PROFILE_DIAG_STABLE_ID_DIVERGENCE, PROFILE_DIAG_STATE_RESULT_DIVERGENCE, PROFILE_DIAG_TRACE_INVARIANT_BROKEN, PROFILE_DIAG_CONFORMANCE_HOST_INCOMPLETE, PROFILE_DIAG_CONFORMANCE_SURFACE_ROLE_MISMATCH, profileCatalog, NATIVE_HOST_PROTOCOL, NATIVE_HOST_WEBVIEW_DEPLOYMENT_SCHEMA, NATIVE_HOST_CAPABILITY_SCHEMA, NATIVE_HOST_BRIDGE_SCHEMA, NATIVE_HOST_APPLICATION_IDENTITY_SCHEMA, NATIVE_HOST_CHECK_SCHEMA, NATIVE_HOST_DIAG_ARBITRARY_BRIDGE, NATIVE_HOST_SHELL_SCHEMA, NATIVE_HOST_SHELL_CHECK_SCHEMA, NATIVE_HOST_DEEP_LINK_SCHEMA, NATIVE_HOST_LOCAL_BUNDLE_SCHEMA, NATIVE_HOST_DIAG_MISSING_SHELL_HOOK, NATIVE_HOST_DIAG_PLATFORM_SEMANTIC_FORK, NATIVE_HOST_DIAG_REMOTE_ENTRY_DEFAULT, NATIVE_HOST_DIAG_MISSING_ENTRY_ARTIFACT, NATIVE_HOST_REQUIRED_SHELL_HOOKS, NATIVE_HOST_CAPABILITY_CALL_SCHEMA, NATIVE_HOST_BRIDGE_TRACE_SCHEMA, NATIVE_HOST_BRIDGE_STUB_CATALOG_SCHEMA, NATIVE_HOST_BRIDGE_CHECK_SCHEMA, NATIVE_HOST_DIAG_MISSING_NONCE, NATIVE_HOST_DIAG_CALL_NOT_ALLOWLISTED, NATIVE_HOST_FIRST_BATCH_STUB_IDS, NATIVE_HOST_LIFECYCLE_SCHEMA, NATIVE_HOST_LIFECYCLE_CHECK_SCHEMA, NATIVE_HOST_DIAG_BACKGROUND_IS_DESTROY, NATIVE_HOST_DIAG_CRASH_ASSUMES_JS_HEAP, NATIVE_HOST_DIAG_MISSING_LIFECYCLE_EVENT, NATIVE_HOST_REQUIRED_LIFECYCLE_EVENTS, NATIVE_HOST_FULLSTACK_SCHEMA, NATIVE_HOST_FULLSTACK_CHECK_SCHEMA, NATIVE_HOST_DIAG_BRIDGE_BYPASSES_SERVER, NATIVE_HOST_DIAG_REMOTE_WITHOUT_INTEGRITY, NATIVE_HOST_DIAG_MISSING_SERVER_TRANSPORT, NATIVE_HOST_NATIVE_SURFACE_SCHEMA, NATIVE_HOST_NATIVE_SURFACE_CHECK_SCHEMA, NATIVE_HOST_DIAG_SURFACE_IS_CAPABILITY, NATIVE_HOST_DIAG_IMPLICIT_STATE_SHARE, NATIVE_HOST_HIGH_VALUE_SURFACE_KINDS, NATIVE_HOST_MULTI_PLATFORM_SCHEMA, NATIVE_HOST_MULTI_PLATFORM_SHARED_SCHEMA, NATIVE_HOST_MULTI_PLATFORM_CHECK_SCHEMA, NATIVE_HOST_DIAG_MISSING_PLATFORM_ADAPTER, NATIVE_HOST_DIAG_PLATFORM_PRIVATE_SCHEMA, NATIVE_HOST_DIAG_ADAPTER_IS_SEMANTIC_CORE, NATIVE_HOST_REQUIRED_MULTI_PLATFORMS, NATIVE_HOST_MULTI_PLATFORM_ADAPTER_KIND, nativeHostCatalog, LOCALE_PROTOCOL, LOCALE_MANIFEST_SCHEMA, LOCALE_MESSAGE_CATALOG_SCHEMA, LOCALE_MESSAGE_NODE_SCHEMA, LOCALE_CHECK_SCHEMA, LOCALE_TYPED_MODULE_SCHEMA, LOCALE_RENAME_SCHEMA, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_TRANSITION_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, FORMATTER_DATA_VERSION, LOCALE_ROUTE_REALIZATION_SCHEMA, LOCALE_PAGE_META_SCHEMA, LOCALE_LINK_RESOLUTION_SCHEMA, LOCALE_ROUTER_CHECK_SCHEMA, LOCALE_DELIVERY_RESOLUTION_SCHEMA, LOCALE_CHUNK_MANIFEST_SCHEMA, LOCALE_NATIVE_PACK_SCHEMA, LOCALE_MINI_PACKAGE_PROOF_SCHEMA, LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA, LOCALE_DELIVERY_CHECK_SCHEMA, LOCALE_EXPLAIN_SCHEMA, LOCALE_DIFF_SCHEMA, LOCALE_EXTRACT_SCHEMA, LOCALE_PSEUDO_SCHEMA, LOCALE_CONFORMANCE_SCHEMA, LOCALE_DIAG_MANIFEST_MISSING, LOCALE_DIAG_ID_INVALID, LOCALE_DIAG_FALLBACK_CYCLE, LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH, LOCALE_DIAG_MESSAGE_UNUSED, LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE, LOCALE_DIAG_FORMATTER_VERSION_MISMATCH, LOCALE_DIAG_DIGEST_MISMATCH, LOCALE_DIAG_TRANSITION_PARTIAL, LOCALE_DIAG_TRANSITION_UNSUPPORTED, LOCALE_DIAG_TRANSITION_LOAD_FAILED, LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN, LOCALE_DIAG_MESSAGE_MIXED_LOCALE, LOCALE_DIAG_STALE_GENERATION, LOCALE_DIAG_ROUTE_COLLISION, LOCALE_DIAG_CANONICAL_MISSING, LOCALE_DIAG_HREFLANG_INCOMPLETE, LOCALE_DIAG_META_LOCALE_MISMATCH, LOCALE_DIAG_LINK_HARDCODED_PATH, LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT, LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT, LOCALE_DIAG_DELIVERY_FULL_BUNDLE, LOCALE_DIAG_CHUNK_HASH_MISMATCH, LOCALE_DIAG_NATIVE_PACK_UNSIGNED, LOCALE_DIAG_NATIVE_PACK_HAS_JS, LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH, LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN, LOCALE_DIAG_SERVER_TRANSLATED_ERROR, LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT, LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE, LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED, LOCALE_DIAG_HARDCODED_TEXT, LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN, LOCALE_DIAG_CONFORMANCE_DIVERGENCE, LOCALE_DIAG_EXPLAIN_UNKNOWN, LOCALE_VIRTUAL_MODULE_PREFIX, localeCatalog, } from '@vmz/protocol';
|
|
6
|
+
import { targetCatalog, profileCatalog, nativeHostCatalog, localeCatalog } from '@vmz/protocol';
|
|
7
|
+
/**
|
|
8
|
+
* @returns {{ hostProtocol: string, compilerProtocol: string, programIrSchema: string, pluginProtocol: string }}
|
|
9
|
+
*/
|
|
10
|
+
export declare function expectedProtocol(): {
|
|
11
|
+
hostProtocol: string;
|
|
12
|
+
compilerProtocol: string;
|
|
13
|
+
programIrSchema: string;
|
|
14
|
+
pluginProtocol: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Resolve native `.node` via the platform optionalDependency only
|
|
18
|
+
* (`@vmz/vmz-<short>` from pnpm workspace or published npm).
|
|
19
|
+
* @returns {string}
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveNativePath(): any;
|
|
22
|
+
/**
|
|
23
|
+
* @returns {typeof import('./index.js') extends never ? any : any}
|
|
24
|
+
*/
|
|
25
|
+
export declare function loadNative(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {object} ProtocolVersions
|
|
28
|
+
* @property {string} hostProtocol
|
|
29
|
+
* @property {string} compilerProtocol
|
|
30
|
+
* @property {string} programIrSchema
|
|
31
|
+
* @property {string} pluginProtocol
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* @returns {ProtocolVersions}
|
|
35
|
+
*/
|
|
36
|
+
export declare function getProtocolVersions(): {
|
|
37
|
+
hostProtocol: any;
|
|
38
|
+
compilerProtocol: any;
|
|
39
|
+
programIrSchema: any;
|
|
40
|
+
pluginProtocol: any;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @param {ProtocolVersions} [host]
|
|
44
|
+
*/
|
|
45
|
+
export declare function handshake(host?: {
|
|
46
|
+
hostProtocol: string;
|
|
47
|
+
compilerProtocol: string;
|
|
48
|
+
programIrSchema: string;
|
|
49
|
+
pluginProtocol: string;
|
|
50
|
+
}): void;
|
|
51
|
+
/**
|
|
52
|
+
* Resolve `@vmz/core` package `dist/` for runtime JS copies into app outDir.
|
|
53
|
+
* @returns {string | null}
|
|
54
|
+
*/
|
|
55
|
+
export declare function resolveCoreRuntimeDist(): string;
|
|
56
|
+
/**
|
|
57
|
+
* @typedef {object} WorkspaceOptions
|
|
58
|
+
* @property {string} root
|
|
59
|
+
* @property {string} [outDir]
|
|
60
|
+
* @property {string} [runtimeDist]
|
|
61
|
+
* @property {ProtocolVersions} [protocol]
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Create a long-lived compile workspace .
|
|
65
|
+
* @param {WorkspaceOptions} options
|
|
66
|
+
*/
|
|
67
|
+
export declare function createWorkspace(options: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* frozen application composition protocol catalog.
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
export declare function queryApplicationProtocolCatalog(): any;
|
|
73
|
+
/**
|
|
74
|
+
* check host applications.config.json5 against workspace package descriptors.
|
|
75
|
+
* @param {string} hostRoot
|
|
76
|
+
* @param {string[]} packageRoots
|
|
77
|
+
* @returns {string} ApplicationCheckReport JSON
|
|
78
|
+
*/
|
|
79
|
+
export declare function checkApplicationsJson(hostRoot: any, packageRoots: any): any;
|
|
80
|
+
export declare function queryTargetProtocolCatalog(): any;
|
|
81
|
+
export declare function checkMiniprogramTargetContractJson(rootPath: any): any;
|
|
82
|
+
export declare function queryProfileProtocolCatalog(): any;
|
|
83
|
+
export declare function checkHostProfileProtocolJson(rootPath: any): any;
|
|
84
|
+
export declare function checkProfileSolverJson(rootPath: any): any;
|
|
85
|
+
export declare function checkUnifiedExecutorJson(rootPath: any): any;
|
|
86
|
+
export declare function checkLifecycleRecoveryJson(rootPath: any): any;
|
|
87
|
+
export declare function checkDeliveryProofJson(rootPath: any): any;
|
|
88
|
+
export declare function checkCrossHostConformanceJson(rootPath: any): any;
|
|
89
|
+
export declare function queryNativeHostProtocolCatalog(): any;
|
|
90
|
+
export declare function checkNativeHostContractJson(rootPath: any): any;
|
|
91
|
+
export declare function checkNativeShellContractJson(rootPath: any): any;
|
|
92
|
+
export declare function checkNativeBridgeContractJson(rootPath: any): any;
|
|
93
|
+
export declare function checkNativeLifecycleContractJson(rootPath: any): any;
|
|
94
|
+
export declare function checkNativeFullstackContractJson(rootPath: any): any;
|
|
95
|
+
export declare function checkNativeSurfaceContractJson(rootPath: any): any;
|
|
96
|
+
export declare function checkMultiPlatformContractJson(rootPath: any): any;
|
|
97
|
+
/**
|
|
98
|
+
* prove independent `/` + non-root ApplicationBase; scan non-relocatable URLs.
|
|
99
|
+
* @param {string} packageRoot
|
|
100
|
+
* @param {string} [relocateBase]
|
|
101
|
+
* @returns {string}
|
|
102
|
+
*/
|
|
103
|
+
export declare function checkApplicationRelocatableJson(packageRoot: any, relocateBase: any): any;
|
|
104
|
+
/**
|
|
105
|
+
* apply ApplicationBase to a logical relocation manifest.
|
|
106
|
+
* @param {string} manifestJson
|
|
107
|
+
* @param {string} base
|
|
108
|
+
* @returns {string}
|
|
109
|
+
*/
|
|
110
|
+
export declare function relocateApplicationManifestJson(manifestJson: any, base: any): any;
|
|
111
|
+
/**
|
|
112
|
+
* independent ApplicationArtifact + MountTable/Catalog boundary (refs only).
|
|
113
|
+
* @param {string} hostRoot
|
|
114
|
+
* @param {string[]} packageRoots
|
|
115
|
+
* @returns {string}
|
|
116
|
+
*/
|
|
117
|
+
export declare function checkApplicationArtifactBoundaryJson(hostRoot: any, packageRoots: any): any;
|
|
118
|
+
/**
|
|
119
|
+
* absolute isolation namespaces + failure containment.
|
|
120
|
+
* @param {string} hostRoot
|
|
121
|
+
* @param {string[]} packageRoots
|
|
122
|
+
* @returns {string}
|
|
123
|
+
*/
|
|
124
|
+
export declare function checkApplicationIsolationJson(hostRoot: any, packageRoots: any): any;
|
|
125
|
+
/**
|
|
126
|
+
* host catalog consumption + cross-application Link resolution.
|
|
127
|
+
* @param {string} hostRoot
|
|
128
|
+
* @param {string[]} packageRoots
|
|
129
|
+
* @returns {string}
|
|
130
|
+
*/
|
|
131
|
+
export declare function checkApplicationHostCompositionJson(hostRoot: any, packageRoots: any): any;
|
|
132
|
+
/**
|
|
133
|
+
* multi-session affected rebuild + MountTable proxy + mounted tests + deploy adapter.
|
|
134
|
+
* @param {string} hostRoot
|
|
135
|
+
* @param {string[]} packageRoots
|
|
136
|
+
* @param {string[]} [dirtyPaths]
|
|
137
|
+
* @returns {string}
|
|
138
|
+
*/
|
|
139
|
+
export declare function checkApplicationDevTestDeployJson(hostRoot: any, packageRoots: any, dirtyPaths?: any[]): any;
|
|
140
|
+
export { createDevSession, listWatchedFiles, srcFingerprint } from './dev-session.js';
|
|
141
|
+
export { runCli, parseArgs, printHelp, printGlobalHelp, printProjectHelp } from './cli.js';
|
|
142
|
+
export { findNearestProjectVmz, getInvocationContext, isGlobalAllowedCommand, isUnderNodeModules, resolveThisPackageRoot, resolveVmzBin, gateGlobalProjectCommand, } from './invocation.js';
|
|
143
|
+
export { resolveWorkspaceDirs, findPackageJson, readPackageMeta } from './resolve.js';
|
|
144
|
+
export { resolvePackageRoot, resolveWorkspacePackages } from './packages.js';
|
|
145
|
+
export { log } from './log.js';
|
|
146
|
+
export { cmdApplication, runCheck as runApplicationCheck } from './application-cmd.js';
|
|
147
|
+
export { buildApplicationContext, buildFormatterContext, checkLocaleRuntime, checkSsrClientParity, createLocaleSession, formatMessageTemplate, formatterContextDigest, negotiateLocale, resolveMessageVariant, validateFormatterContext, } from './locale-runtime.js';
|
|
148
|
+
export { absoluteUrl, assertLocaleCacheKey, buildLocalePageMeta, buildLocaleRouteRealizationTable, checkLocaleRouter, commitLocaleRouteMetaTransition, localeAwareCacheKey, parseLocaleFromPath, planLocalePathNavigation, realizeRoutePath, resolveLinkHref, } from './locale-router.js';
|
|
149
|
+
export { assertHostMessageInvariant, assertServerErrorEnvelope, assertServerFormatContext, buildLocaleDeliveryResolution, checkLocaleDelivery, fallbackDigest, messageCatalogHash, proveMiniPackageMessages, validateNativeLocalePack, } from './locale-delivery.js';
|
|
150
|
+
export { checkLocaleConformance, diffLocaleCatalogs, explainLocaleMessage, extractHardcodedText, pseudoLocalizeCatalog, } from './locale-tooling.js';
|
|
151
|
+
export { applyPlugins, contentHash, defineConfig, definePlugin, loadVmzConfig, } from './plugin-host.js';
|
|
152
|
+
export { createRolldownPluginVmzAdapter, createVitePluginVmzAdapter, loadDeploymentIr, planAffectedBundleInputs, planBundleInputs, } from './bundler-adapter.js';
|
|
153
|
+
declare const _default: {
|
|
154
|
+
HOST_PROTOCOL: string;
|
|
155
|
+
COMPILER_PROTOCOL: string;
|
|
156
|
+
PROGRAM_IR_SCHEMA: string;
|
|
157
|
+
PLUGIN_PROTOCOL: string;
|
|
158
|
+
DX_PROTOCOL: string;
|
|
159
|
+
DX_SYMBOL_SCHEMA: string;
|
|
160
|
+
DX_REFERENCE_SCHEMA: string;
|
|
161
|
+
DX_EXPLAIN_SCHEMA: string;
|
|
162
|
+
DX_WORKSPACE_EDIT_SCHEMA: string;
|
|
163
|
+
DX_CODE_ACTION_SCHEMA: string;
|
|
164
|
+
DX_AFFECTED_SCHEMA: string;
|
|
165
|
+
DX_RENAME_SCHEMA: string;
|
|
166
|
+
DX_TEST_SELECTION_SCHEMA: string;
|
|
167
|
+
DX_SOURCE_MAP_SCHEMA: string;
|
|
168
|
+
DX_SYMBOL_INDEX_SCHEMA: string;
|
|
169
|
+
DX_CROSS_SFC_CHECK_SCHEMA: string;
|
|
170
|
+
DX_SEMANTIC_TRANSACTION_SCHEMA: string;
|
|
171
|
+
DX_CANCEL_SCHEMA: string;
|
|
172
|
+
DX_AFFECTED_PREVIEW_SCHEMA: string;
|
|
173
|
+
DX_HMR_PLAN_SCHEMA: string;
|
|
174
|
+
DX_BUDGET_SCHEMA: string;
|
|
175
|
+
DX_TRANSACTION_CHECK_SCHEMA: string;
|
|
176
|
+
DX_BOUNDARY_VALIDATOR_SCHEMA: string;
|
|
177
|
+
DX_LEAKAGE_SCHEMA: string;
|
|
178
|
+
DX_CAPABILITY_TARGET_SCHEMA: string;
|
|
179
|
+
DX_DEAD_GRAPH_SCHEMA: string;
|
|
180
|
+
DX_DEPLOYMENT_PROOF_CHECK_SCHEMA: string;
|
|
181
|
+
DX_TRACE_SCHEMA: string;
|
|
182
|
+
DX_CAUSAL_REPLAY_SCHEMA: string;
|
|
183
|
+
DX_CAUSAL_REPLAY_CHECK_SCHEMA: string;
|
|
184
|
+
APPLICATION_PROTOCOL: string;
|
|
185
|
+
APPLICATION_DESCRIPTOR_SCHEMA: string;
|
|
186
|
+
APPLICATIONS_CONFIG_SCHEMA: string;
|
|
187
|
+
APPLICATION_CATALOG_SCHEMA: string;
|
|
188
|
+
APPLICATION_CHECK_SCHEMA: string;
|
|
189
|
+
APPLICATION_BASE_SCHEMA: string;
|
|
190
|
+
APPLICATION_RELOCATION_SCHEMA: string;
|
|
191
|
+
APPLICATION_RELOCATED_SCHEMA: string;
|
|
192
|
+
APPLICATION_RELOCATABLE_CHECK_SCHEMA: string;
|
|
193
|
+
APPLICATION_ARTIFACT_SCHEMA: string;
|
|
194
|
+
APPLICATION_MOUNT_TABLE_SCHEMA: string;
|
|
195
|
+
APPLICATION_ARTIFACT_BOUNDARY_SCHEMA: string;
|
|
196
|
+
APPLICATION_ISOLATION_SCHEMA: string;
|
|
197
|
+
APPLICATION_ISOLATION_CHECK_SCHEMA: string;
|
|
198
|
+
APPLICATION_CROSS_LINK_SCHEMA: string;
|
|
199
|
+
APPLICATION_HOST_COMPOSITION_SCHEMA: string;
|
|
200
|
+
APPLICATION_DEV_SESSIONS_SCHEMA: string;
|
|
201
|
+
APPLICATION_AFFECTED_SCHEMA: string;
|
|
202
|
+
APPLICATION_PROXY_DISPATCH_SCHEMA: string;
|
|
203
|
+
APPLICATION_MOUNTED_TEST_SCHEMA: string;
|
|
204
|
+
APPLICATION_DEPLOY_ADAPTER_SCHEMA: string;
|
|
205
|
+
APPLICATION_DEV_CHECK_SCHEMA: string;
|
|
206
|
+
PROTOCOL_CATALOG_SCHEMA: string;
|
|
207
|
+
expectedProtocol: typeof expectedProtocol;
|
|
208
|
+
resolveNativePath: typeof resolveNativePath;
|
|
209
|
+
resolveCoreRuntimeDist: typeof resolveCoreRuntimeDist;
|
|
210
|
+
loadNative: typeof loadNative;
|
|
211
|
+
getProtocolVersions: typeof getProtocolVersions;
|
|
212
|
+
handshake: typeof handshake;
|
|
213
|
+
createWorkspace: typeof createWorkspace;
|
|
214
|
+
queryApplicationProtocolCatalog: typeof queryApplicationProtocolCatalog;
|
|
215
|
+
checkApplicationsJson: typeof checkApplicationsJson;
|
|
216
|
+
queryTargetProtocolCatalog: typeof queryTargetProtocolCatalog;
|
|
217
|
+
checkMiniprogramTargetContractJson: typeof checkMiniprogramTargetContractJson;
|
|
218
|
+
queryProfileProtocolCatalog: typeof queryProfileProtocolCatalog;
|
|
219
|
+
checkHostProfileProtocolJson: typeof checkHostProfileProtocolJson;
|
|
220
|
+
checkProfileSolverJson: typeof checkProfileSolverJson;
|
|
221
|
+
checkUnifiedExecutorJson: typeof checkUnifiedExecutorJson;
|
|
222
|
+
checkLifecycleRecoveryJson: typeof checkLifecycleRecoveryJson;
|
|
223
|
+
checkDeliveryProofJson: typeof checkDeliveryProofJson;
|
|
224
|
+
checkCrossHostConformanceJson: typeof checkCrossHostConformanceJson;
|
|
225
|
+
PROFILE_CONFORMANCE_SCENARIO_SCHEMA: string;
|
|
226
|
+
PROFILE_CONFORMANCE_CHECK_SCHEMA: string;
|
|
227
|
+
PROFILE_CONFORMANCE_SURFACE_ROLES: string[];
|
|
228
|
+
PROFILE_DIAG_STABLE_ID_DIVERGENCE: string;
|
|
229
|
+
PROFILE_DIAG_STATE_RESULT_DIVERGENCE: string;
|
|
230
|
+
PROFILE_DIAG_TRACE_INVARIANT_BROKEN: string;
|
|
231
|
+
PROFILE_DIAG_CONFORMANCE_HOST_INCOMPLETE: string;
|
|
232
|
+
PROFILE_DIAG_CONFORMANCE_SURFACE_ROLE_MISMATCH: string;
|
|
233
|
+
PROFILE_DELIVERY_PROOF_SCENARIO_SCHEMA: string;
|
|
234
|
+
PROFILE_DELIVERY_PROOF_CHECK_SCHEMA: string;
|
|
235
|
+
PROFILE_DIAG_DELIVERY_CONSTRAINT_EXCEEDED: string;
|
|
236
|
+
PROFILE_DIAG_HOST_PLAN_VERSION_MISMATCH: string;
|
|
237
|
+
PROFILE_DIAG_PROOF_COPIES_SEMANTIC_IR: string;
|
|
238
|
+
PROFILE_DIAG_UPDATE_WITHOUT_REPROOF: string;
|
|
239
|
+
PROFILE_DIAG_SECURITY_POLICY_INSECURE: string;
|
|
240
|
+
PROFILE_CONFORMANCE_FIXTURE_SCHEMA: string;
|
|
241
|
+
PROFILE_CONFORMANCE_STATE_SNAPSHOT_SCHEMA: string;
|
|
242
|
+
PROFILE_CONFORMANCE_TRACE_SCHEMA: string;
|
|
243
|
+
PROFILE_CONFORMANCE_HOST_RUN_SCHEMA: string;
|
|
244
|
+
PROFILE_LIFECYCLE_SCENARIO_SCHEMA: string;
|
|
245
|
+
PROFILE_LIFECYCLE_RECOVERY_CHECK_SCHEMA: string;
|
|
246
|
+
PROFILE_LIFECYCLE_HOST_KINDS: string[];
|
|
247
|
+
PROFILE_PERSISTENCE_WINDOWS: string[];
|
|
248
|
+
PROFILE_DIAG_LIFECYCLE_UNPROVEN: string;
|
|
249
|
+
PROFILE_DIAG_LIFECYCLE_MAPPING_INCOMPLETE: string;
|
|
250
|
+
PROFILE_DIAG_RECOVERY_DUPLICATES_OWNER: string;
|
|
251
|
+
PROFILE_DIAG_RECOVERY_ASSUMES_HEAP: string;
|
|
252
|
+
PROFILE_DIAG_PERSISTENCE_WINDOW_INVALID: string;
|
|
253
|
+
PROFILE_DELIVERY_PACKAGE_CONSTRAINTS_SCHEMA: string;
|
|
254
|
+
PROFILE_DELIVERY_SECURITY_POLICY_SCHEMA: string;
|
|
255
|
+
PROFILE_DELIVERY_UPDATE_POLICY_SCHEMA: string;
|
|
256
|
+
PROFILE_DELIVERY_ARTIFACT_MANIFEST_SCHEMA: string;
|
|
257
|
+
PROFILE_DELIVERY_PROOF_MANIFEST_SCHEMA: string;
|
|
258
|
+
PROFILE_DELIVERY_UPDATE_CHANNELS: string[];
|
|
259
|
+
PROFILE_DELIVERY_ASSET_STRATEGIES: string[];
|
|
260
|
+
PROFILE_DIAG_PROOF_MANIFEST_INCOMPLETE: string;
|
|
261
|
+
PROFILE_SOLVER_CHECK_SCHEMA: string;
|
|
262
|
+
PROFILE_HOST_RESOLUTION_MANIFEST_SCHEMA: string;
|
|
263
|
+
PROFILE_EXECUTOR_CHECK_SCHEMA: string;
|
|
264
|
+
PROFILE_EXECUTOR_SCENARIO_SCHEMA: string;
|
|
265
|
+
PROFILE_DIAG_SURFACE_NO_MATCH: string;
|
|
266
|
+
PROFILE_DIAG_SURFACE_AMBIGUOUS: string;
|
|
267
|
+
PROFILE_DIAG_CAPABILITY_UNRESOLVED: string;
|
|
268
|
+
PROFILE_DIAG_CAPABILITY_PERMISSION_UNDECLARED: string;
|
|
269
|
+
PROFILE_DIAG_ROUTE_UNREALIZABLE: string;
|
|
270
|
+
PROFILE_DIAG_STALE_GENERATION: string;
|
|
271
|
+
PROFILE_DIAG_MISSING_ENVELOPE_IDS: string;
|
|
272
|
+
PROFILE_DIAG_SURFACE_OWNS_STATE: string;
|
|
273
|
+
PROFILE_DIAG_PRIVATE_OBJECT_CROSSING: string;
|
|
274
|
+
PROFILE_DIAG_SPLIT_TRANSACTION: string;
|
|
275
|
+
PROFILE_DIAG_DISPOSE_NOT_AUTHORITATIVE: string;
|
|
276
|
+
PROFILE_DIAG_CANCEL_NOT_PROPAGATED: string;
|
|
277
|
+
PROFILE_PROTOCOL: string;
|
|
278
|
+
PROFILE_HOST_SCHEMA: string;
|
|
279
|
+
PROFILE_DELIVERY_SCHEMA: string;
|
|
280
|
+
PROFILE_CHECK_SCHEMA: string;
|
|
281
|
+
PROFILE_DIAG_HOST_PROFILE_INVALID: string;
|
|
282
|
+
PROFILE_DIAG_RESOLUTION_DIGEST_MISMATCH: string;
|
|
283
|
+
PROFILE_DIAG_CORE_ID_OVERRIDE: string;
|
|
284
|
+
PROFILE_DIAG_HOST_PROFILE_REF_UNRESOLVED: string;
|
|
285
|
+
PROFILE_SURFACE_KINDS: string[];
|
|
286
|
+
PROFILE_UNIFIED_LIFECYCLE_EVENTS: string[];
|
|
287
|
+
PROFILE_CORE_ID_PREFIX: string;
|
|
288
|
+
profileCatalog: typeof profileCatalog;
|
|
289
|
+
localeCatalog: typeof localeCatalog;
|
|
290
|
+
queryNativeHostProtocolCatalog: typeof queryNativeHostProtocolCatalog;
|
|
291
|
+
checkNativeHostContractJson: typeof checkNativeHostContractJson;
|
|
292
|
+
checkNativeShellContractJson: typeof checkNativeShellContractJson;
|
|
293
|
+
checkNativeBridgeContractJson: typeof checkNativeBridgeContractJson;
|
|
294
|
+
checkNativeLifecycleContractJson: typeof checkNativeLifecycleContractJson;
|
|
295
|
+
checkNativeFullstackContractJson: typeof checkNativeFullstackContractJson;
|
|
296
|
+
checkNativeSurfaceContractJson: typeof checkNativeSurfaceContractJson;
|
|
297
|
+
checkMultiPlatformContractJson: typeof checkMultiPlatformContractJson;
|
|
298
|
+
NATIVE_HOST_PROTOCOL: string;
|
|
299
|
+
NATIVE_HOST_NATIVE_SURFACE_SCHEMA: string;
|
|
300
|
+
NATIVE_HOST_NATIVE_SURFACE_CHECK_SCHEMA: string;
|
|
301
|
+
NATIVE_HOST_DIAG_SURFACE_IS_CAPABILITY: string;
|
|
302
|
+
NATIVE_HOST_DIAG_IMPLICIT_STATE_SHARE: string;
|
|
303
|
+
NATIVE_HOST_HIGH_VALUE_SURFACE_KINDS: string[];
|
|
304
|
+
NATIVE_HOST_MULTI_PLATFORM_SCHEMA: string;
|
|
305
|
+
NATIVE_HOST_MULTI_PLATFORM_SHARED_SCHEMA: string;
|
|
306
|
+
NATIVE_HOST_MULTI_PLATFORM_CHECK_SCHEMA: string;
|
|
307
|
+
NATIVE_HOST_DIAG_PLATFORM_SEMANTIC_FORK: string;
|
|
308
|
+
NATIVE_HOST_DIAG_MISSING_PLATFORM_ADAPTER: string;
|
|
309
|
+
NATIVE_HOST_DIAG_PLATFORM_PRIVATE_SCHEMA: string;
|
|
310
|
+
NATIVE_HOST_DIAG_ADAPTER_IS_SEMANTIC_CORE: string;
|
|
311
|
+
NATIVE_HOST_REQUIRED_MULTI_PLATFORMS: string[];
|
|
312
|
+
NATIVE_HOST_MULTI_PLATFORM_ADAPTER_KIND: string;
|
|
313
|
+
NATIVE_HOST_FULLSTACK_SCHEMA: string;
|
|
314
|
+
NATIVE_HOST_FULLSTACK_CHECK_SCHEMA: string;
|
|
315
|
+
NATIVE_HOST_DIAG_BRIDGE_BYPASSES_SERVER: string;
|
|
316
|
+
NATIVE_HOST_DIAG_REMOTE_WITHOUT_INTEGRITY: string;
|
|
317
|
+
NATIVE_HOST_DIAG_MISSING_SERVER_TRANSPORT: string;
|
|
318
|
+
NATIVE_HOST_LIFECYCLE_SCHEMA: string;
|
|
319
|
+
NATIVE_HOST_LIFECYCLE_CHECK_SCHEMA: string;
|
|
320
|
+
NATIVE_HOST_DIAG_BACKGROUND_IS_DESTROY: string;
|
|
321
|
+
NATIVE_HOST_DIAG_CRASH_ASSUMES_JS_HEAP: string;
|
|
322
|
+
NATIVE_HOST_DIAG_MISSING_LIFECYCLE_EVENT: string;
|
|
323
|
+
NATIVE_HOST_REQUIRED_LIFECYCLE_EVENTS: string[];
|
|
324
|
+
NATIVE_HOST_CAPABILITY_CALL_SCHEMA: string;
|
|
325
|
+
NATIVE_HOST_BRIDGE_TRACE_SCHEMA: string;
|
|
326
|
+
NATIVE_HOST_BRIDGE_STUB_CATALOG_SCHEMA: string;
|
|
327
|
+
NATIVE_HOST_BRIDGE_CHECK_SCHEMA: string;
|
|
328
|
+
NATIVE_HOST_DIAG_MISSING_NONCE: string;
|
|
329
|
+
NATIVE_HOST_DIAG_CALL_NOT_ALLOWLISTED: string;
|
|
330
|
+
NATIVE_HOST_FIRST_BATCH_STUB_IDS: string[];
|
|
331
|
+
NATIVE_HOST_SHELL_SCHEMA: string;
|
|
332
|
+
NATIVE_HOST_SHELL_CHECK_SCHEMA: string;
|
|
333
|
+
NATIVE_HOST_DEEP_LINK_SCHEMA: string;
|
|
334
|
+
NATIVE_HOST_LOCAL_BUNDLE_SCHEMA: string;
|
|
335
|
+
NATIVE_HOST_DIAG_MISSING_SHELL_HOOK: string;
|
|
336
|
+
NATIVE_HOST_DIAG_REMOTE_ENTRY_DEFAULT: string;
|
|
337
|
+
NATIVE_HOST_DIAG_MISSING_ENTRY_ARTIFACT: string;
|
|
338
|
+
NATIVE_HOST_REQUIRED_SHELL_HOOKS: string[];
|
|
339
|
+
NATIVE_HOST_WEBVIEW_DEPLOYMENT_SCHEMA: string;
|
|
340
|
+
NATIVE_HOST_CAPABILITY_SCHEMA: string;
|
|
341
|
+
NATIVE_HOST_BRIDGE_SCHEMA: string;
|
|
342
|
+
NATIVE_HOST_APPLICATION_IDENTITY_SCHEMA: string;
|
|
343
|
+
NATIVE_HOST_CHECK_SCHEMA: string;
|
|
344
|
+
NATIVE_HOST_DIAG_ARBITRARY_BRIDGE: string;
|
|
345
|
+
nativeHostCatalog: typeof nativeHostCatalog;
|
|
346
|
+
TARGET_PROTOCOL: string;
|
|
347
|
+
TARGET_VIEW_OPS_SCHEMA: string;
|
|
348
|
+
TARGET_PLATFORM_PROFILE_SCHEMA: string;
|
|
349
|
+
TARGET_MINI_PROGRAM_ARTIFACT_SCHEMA: string;
|
|
350
|
+
TARGET_CHECK_SCHEMA: string;
|
|
351
|
+
targetCatalog: typeof targetCatalog;
|
|
352
|
+
checkApplicationRelocatableJson: typeof checkApplicationRelocatableJson;
|
|
353
|
+
relocateApplicationManifestJson: typeof relocateApplicationManifestJson;
|
|
354
|
+
checkApplicationArtifactBoundaryJson: typeof checkApplicationArtifactBoundaryJson;
|
|
355
|
+
checkApplicationIsolationJson: typeof checkApplicationIsolationJson;
|
|
356
|
+
checkApplicationHostCompositionJson: typeof checkApplicationHostCompositionJson;
|
|
357
|
+
checkApplicationDevTestDeployJson: typeof checkApplicationDevTestDeployJson;
|
|
358
|
+
};
|
|
359
|
+
export default _default;
|