@vmz/vmz 0.3.5 → 0.3.6
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 +55 -55
- package/bin/vmz.js +0 -0
- package/delivery-runtime-files.json +38 -38
- package/dist/cli/cli.js +3 -0
- package/dist/document/document-build.js +24 -24
- package/dist/document/document-integrate.js +6 -0
- package/dist/workspace/log.d.ts +2 -0
- package/dist/workspace/log.js +2 -2
- package/dist/workspace/plugin-host.js +33 -33
- package/locales/en-US/cli.json +126 -126
- package/locales/en-US/diag.json +1 -0
- package/locales/zh-CN/diag.json +1 -0
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
# `@vmz/vmz` (bin: `vmz`)
|
|
2
|
-
|
|
3
|
-
CLI / N-API toolchain host. Runtime mental entry is **`@vmz/core`**; optional official UI is **`@vmz/ui`**; plugins are
|
|
4
|
-
**`@vmz/plugin-*`**. Shelved umbrella name: `@vmz/vmz`.
|
|
5
|
-
|
|
6
|
-
When a project reaches the point where it has a browser surface, SSR, server work, documents, tests, and several
|
|
7
|
-
deployment concerns, the usual workflow becomes a chain of tools that each see a different version of the application. A
|
|
8
|
-
build may pass while a route boundary is wrong; a browser test may pass while SSR work is replayed; a plugin may
|
|
9
|
-
transform code without anyone being able to explain the delivery result.
|
|
10
|
-
|
|
11
|
-
`vmz` is the command-line home for a different workflow. Development, checking, building, serving, testing, document
|
|
12
|
-
generation, and deployment output all begin from VMZ's understanding of the same application. The useful unit is not
|
|
13
|
-
only a module graph. It is a program with state reads and writes, control regions, routes, server capabilities,
|
|
14
|
-
ownership, and delivery boundaries.
|
|
15
|
-
|
|
16
|
-
That means the CLI can grow into something more useful than a collection of commands: it can say why a change affects a
|
|
17
|
-
region, why code was placed on the client, why a conservative boundary was used, or why a route and its server work
|
|
18
|
-
belong together. ⚡
|
|
19
|
-
|
|
20
|
-
With VMZ, a normal workflow is expected to answer all of these from the same source program:
|
|
21
|
-
|
|
22
|
-
- **Develop:** which application regions are affected by a change?
|
|
23
|
-
- **Check:** which state, route, server, or lifecycle boundary is unsafe?
|
|
24
|
-
- **Build:** what belongs in browser, SSR, resume, and server output?
|
|
25
|
-
- **Test:** what did a user interaction actually cause?
|
|
26
|
-
- **Explain:** why did the compiler make that decision?
|
|
27
|
-
|
|
28
|
-
Use it when you are adopting VMZ as the application model. The CLI targets VMZ-native source and semantics; Vue, React,
|
|
29
|
-
and legacy VDOM ecosystems keep their own toolchains.
|
|
30
|
-
|
|
31
|
-
## One tool, several views of the same program
|
|
32
|
-
|
|
33
|
-
| Workflow | The question it should answer |
|
|
34
|
-
|-------------|--------------------------------------------------------------------|
|
|
35
|
-
| Development | What changed, and which application regions are affected? |
|
|
36
|
-
| Checking | Which state, route, server, or lifetime boundary cannot be proven? |
|
|
37
|
-
| Building | What belongs in browser, SSR, resume, and server output? |
|
|
38
|
-
| Testing | Did the application behave correctly and avoid unrelated work? |
|
|
39
|
-
| Documents | Are project documents connected, localized, and deployable? |
|
|
40
|
-
|
|
41
|
-
### Designed for the npm world
|
|
42
|
-
|
|
43
|
-
VMZ does not ask users to abandon JavaScript packaging. Node remains the npm, plugin, development-server, and
|
|
44
|
-
orchestration host. A long-lived N-API bridge connects that ecosystem to Rust and oxc without reducing semantic analysis
|
|
45
|
-
to a sequence of tiny file transforms.
|
|
46
|
-
|
|
47
|
-
### More than pass or fail
|
|
48
|
-
|
|
49
|
-
The interesting future of the CLI is explanation. A useful compiler should expose the source span, graph edge, owner,
|
|
50
|
-
deployment boundary, and fallback reason behind a decision. That is a better developer experience than adding more
|
|
51
|
-
colored output to an opaque build. 🧭
|
|
52
|
-
|
|
53
|
-
## License
|
|
54
|
-
|
|
55
|
-
MIT
|
|
1
|
+
# `@vmz/vmz` (bin: `vmz`)
|
|
2
|
+
|
|
3
|
+
CLI / N-API toolchain host. Runtime mental entry is **`@vmz/core`**; optional official UI is **`@vmz/ui`**; plugins are
|
|
4
|
+
**`@vmz/plugin-*`**. Shelved umbrella name: `@vmz/vmz`.
|
|
5
|
+
|
|
6
|
+
When a project reaches the point where it has a browser surface, SSR, server work, documents, tests, and several
|
|
7
|
+
deployment concerns, the usual workflow becomes a chain of tools that each see a different version of the application. A
|
|
8
|
+
build may pass while a route boundary is wrong; a browser test may pass while SSR work is replayed; a plugin may
|
|
9
|
+
transform code without anyone being able to explain the delivery result.
|
|
10
|
+
|
|
11
|
+
`vmz` is the command-line home for a different workflow. Development, checking, building, serving, testing, document
|
|
12
|
+
generation, and deployment output all begin from VMZ's understanding of the same application. The useful unit is not
|
|
13
|
+
only a module graph. It is a program with state reads and writes, control regions, routes, server capabilities,
|
|
14
|
+
ownership, and delivery boundaries.
|
|
15
|
+
|
|
16
|
+
That means the CLI can grow into something more useful than a collection of commands: it can say why a change affects a
|
|
17
|
+
region, why code was placed on the client, why a conservative boundary was used, or why a route and its server work
|
|
18
|
+
belong together. ⚡
|
|
19
|
+
|
|
20
|
+
With VMZ, a normal workflow is expected to answer all of these from the same source program:
|
|
21
|
+
|
|
22
|
+
- **Develop:** which application regions are affected by a change?
|
|
23
|
+
- **Check:** which state, route, server, or lifecycle boundary is unsafe?
|
|
24
|
+
- **Build:** what belongs in browser, SSR, resume, and server output?
|
|
25
|
+
- **Test:** what did a user interaction actually cause?
|
|
26
|
+
- **Explain:** why did the compiler make that decision?
|
|
27
|
+
|
|
28
|
+
Use it when you are adopting VMZ as the application model. The CLI targets VMZ-native source and semantics; Vue, React,
|
|
29
|
+
and legacy VDOM ecosystems keep their own toolchains.
|
|
30
|
+
|
|
31
|
+
## One tool, several views of the same program
|
|
32
|
+
|
|
33
|
+
| Workflow | The question it should answer |
|
|
34
|
+
|-------------|--------------------------------------------------------------------|
|
|
35
|
+
| Development | What changed, and which application regions are affected? |
|
|
36
|
+
| Checking | Which state, route, server, or lifetime boundary cannot be proven? |
|
|
37
|
+
| Building | What belongs in browser, SSR, resume, and server output? |
|
|
38
|
+
| Testing | Did the application behave correctly and avoid unrelated work? |
|
|
39
|
+
| Documents | Are project documents connected, localized, and deployable? |
|
|
40
|
+
|
|
41
|
+
### Designed for the npm world
|
|
42
|
+
|
|
43
|
+
VMZ does not ask users to abandon JavaScript packaging. Node remains the npm, plugin, development-server, and
|
|
44
|
+
orchestration host. A long-lived N-API bridge connects that ecosystem to Rust and oxc without reducing semantic analysis
|
|
45
|
+
to a sequence of tiny file transforms.
|
|
46
|
+
|
|
47
|
+
### More than pass or fail
|
|
48
|
+
|
|
49
|
+
The interesting future of the CLI is explanation. A useful compiler should expose the source span, graph edge, owner,
|
|
50
|
+
deployment boundary, and fallback reason behind a decision. That is a better developer experience than adding more
|
|
51
|
+
colored output to an opaque build. 🧭
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT
|
package/bin/vmz.js
CHANGED
|
File without changes
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": "vmz.delivery-runtime-files.v0",
|
|
3
|
-
"note": "Browser/SSR runtime companions copied into app delivery dist. Consumed by vmz-compiler emit_runtime_js and pack ensureRuntimeCompanions.",
|
|
4
|
-
"flatBarrels": [
|
|
5
|
-
{ "src": "faces/server.js", "out": "vmz-runtime.js" },
|
|
6
|
-
{ "src": "faces/dom.js", "out": "vmz-dom.js" },
|
|
7
|
-
{ "src": "browser/dom-core.js", "out": "dom-core.js" },
|
|
8
|
-
{ "src": "ssr/dom-ssr.js", "out": "dom-ssr.js" },
|
|
9
|
-
{ "src": "faces/dom.client.js", "out": "dom.client.js" },
|
|
10
|
-
{ "src": "faces/dom.browser.js", "out": "dom.browser.js" },
|
|
11
|
-
{ "src": "browser/direct-host-box.js", "out": "direct-host-box.js" },
|
|
12
|
-
{ "src": "browser/unknown-component.js", "out": "unknown-component.js" },
|
|
13
|
-
{ "src": "shared/dom-attr-normalize.js", "out": "dom-attr-normalize.js" },
|
|
14
|
-
{ "src": "faces/http.js", "out": "vmz-http.js" },
|
|
15
|
-
{ "src": "browser/client-nav.js", "out": "vmz-client-nav.js" }
|
|
16
|
-
],
|
|
17
|
-
"nested": [
|
|
18
|
-
{ "src": "browser/diagnostics/precision-trace.js", "out": "browser/diagnostics/precision-trace.js" },
|
|
19
|
-
{ "src": "browser/dom/attributes.js", "out": "browser/dom/attributes.js" },
|
|
20
|
-
{ "src": "browser/dom/component.js", "out": "browser/dom/component.js" },
|
|
21
|
-
{ "src": "browser/dom/direct-api.js", "out": "browser/dom/direct-api.js" },
|
|
22
|
-
{ "src": "browser/dom/lifecycle.js", "out": "browser/dom/lifecycle.js" },
|
|
23
|
-
{ "src": "browser/dom/registry.js", "out": "browser/dom/registry.js" },
|
|
24
|
-
{ "src": "browser/reactivity/patch-scheduler.js", "out": "browser/reactivity/patch-scheduler.js" },
|
|
25
|
-
{ "src": "browser/reactivity/write-barrier.js", "out": "browser/reactivity/write-barrier.js" },
|
|
26
|
-
{ "src": "browser/navigation/client-navigation.js", "out": "browser/navigation/client-navigation.js" },
|
|
27
|
-
{ "src": "browser/navigation/extract-html.js", "out": "browser/navigation/extract-html.js" },
|
|
28
|
-
{ "src": "browser/navigation/layout-retain.js", "out": "browser/navigation/layout-retain.js" },
|
|
29
|
-
{ "src": "browser/navigation/locale-transition.js", "out": "browser/navigation/locale-transition.js" },
|
|
30
|
-
{ "src": "browser/navigation/scroll-focus.js", "out": "browser/navigation/scroll-focus.js" },
|
|
31
|
-
{ "src": "browser/resume/adopt.js", "out": "browser/resume/adopt.js" },
|
|
32
|
-
{ "src": "browser/resume/hydrate.js", "out": "browser/resume/hydrate.js" },
|
|
33
|
-
{ "src": "browser/resume/resume.js", "out": "browser/resume/resume.js" },
|
|
34
|
-
{ "src": "ssr/render.js", "out": "ssr/render.js" },
|
|
35
|
-
{ "src": "ssr/serialize.js", "out": "ssr/serialize.js" },
|
|
36
|
-
{ "src": "ssr/document.js", "out": "ssr/document.js" }
|
|
37
|
-
]
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schema": "vmz.delivery-runtime-files.v0",
|
|
3
|
+
"note": "Browser/SSR runtime companions copied into app delivery dist. Consumed by vmz-compiler emit_runtime_js and pack ensureRuntimeCompanions.",
|
|
4
|
+
"flatBarrels": [
|
|
5
|
+
{ "src": "faces/server.js", "out": "vmz-runtime.js" },
|
|
6
|
+
{ "src": "faces/dom.js", "out": "vmz-dom.js" },
|
|
7
|
+
{ "src": "browser/dom-core.js", "out": "dom-core.js" },
|
|
8
|
+
{ "src": "ssr/dom-ssr.js", "out": "dom-ssr.js" },
|
|
9
|
+
{ "src": "faces/dom.client.js", "out": "dom.client.js" },
|
|
10
|
+
{ "src": "faces/dom.browser.js", "out": "dom.browser.js" },
|
|
11
|
+
{ "src": "browser/direct-host-box.js", "out": "direct-host-box.js" },
|
|
12
|
+
{ "src": "browser/unknown-component.js", "out": "unknown-component.js" },
|
|
13
|
+
{ "src": "shared/dom-attr-normalize.js", "out": "dom-attr-normalize.js" },
|
|
14
|
+
{ "src": "faces/http.js", "out": "vmz-http.js" },
|
|
15
|
+
{ "src": "browser/client-nav.js", "out": "vmz-client-nav.js" }
|
|
16
|
+
],
|
|
17
|
+
"nested": [
|
|
18
|
+
{ "src": "browser/diagnostics/precision-trace.js", "out": "browser/diagnostics/precision-trace.js" },
|
|
19
|
+
{ "src": "browser/dom/attributes.js", "out": "browser/dom/attributes.js" },
|
|
20
|
+
{ "src": "browser/dom/component.js", "out": "browser/dom/component.js" },
|
|
21
|
+
{ "src": "browser/dom/direct-api.js", "out": "browser/dom/direct-api.js" },
|
|
22
|
+
{ "src": "browser/dom/lifecycle.js", "out": "browser/dom/lifecycle.js" },
|
|
23
|
+
{ "src": "browser/dom/registry.js", "out": "browser/dom/registry.js" },
|
|
24
|
+
{ "src": "browser/reactivity/patch-scheduler.js", "out": "browser/reactivity/patch-scheduler.js" },
|
|
25
|
+
{ "src": "browser/reactivity/write-barrier.js", "out": "browser/reactivity/write-barrier.js" },
|
|
26
|
+
{ "src": "browser/navigation/client-navigation.js", "out": "browser/navigation/client-navigation.js" },
|
|
27
|
+
{ "src": "browser/navigation/extract-html.js", "out": "browser/navigation/extract-html.js" },
|
|
28
|
+
{ "src": "browser/navigation/layout-retain.js", "out": "browser/navigation/layout-retain.js" },
|
|
29
|
+
{ "src": "browser/navigation/locale-transition.js", "out": "browser/navigation/locale-transition.js" },
|
|
30
|
+
{ "src": "browser/navigation/scroll-focus.js", "out": "browser/navigation/scroll-focus.js" },
|
|
31
|
+
{ "src": "browser/resume/adopt.js", "out": "browser/resume/adopt.js" },
|
|
32
|
+
{ "src": "browser/resume/hydrate.js", "out": "browser/resume/hydrate.js" },
|
|
33
|
+
{ "src": "browser/resume/resume.js", "out": "browser/resume/resume.js" },
|
|
34
|
+
{ "src": "ssr/render.js", "out": "ssr/render.js" },
|
|
35
|
+
{ "src": "ssr/serialize.js", "out": "ssr/serialize.js" },
|
|
36
|
+
{ "src": "ssr/document.js", "out": "ssr/document.js" }
|
|
37
|
+
]
|
|
38
|
+
}
|
package/dist/cli/cli.js
CHANGED
|
@@ -46,6 +46,9 @@ function buildProductCli(opts = {}) {
|
|
|
46
46
|
const cli = createCli('vmz')
|
|
47
47
|
.locales(resolveCliLocalesRoot(), {
|
|
48
48
|
envKeys: ['VMZ_LOCALE', 'LOCALE', 'LANG', 'LC_ALL'],
|
|
49
|
+
})
|
|
50
|
+
.onDiagnostic((diagnostic, context) => {
|
|
51
|
+
log.diagnostic(diagnostic, { locale: context.locale });
|
|
49
52
|
})
|
|
50
53
|
.intro(introId);
|
|
51
54
|
// Global install: only version (help is derived). Project commands need a project bin.
|
|
@@ -195,20 +195,20 @@ function buildDocumentSlotHtml({ nav, bodyHtml, headings, htmlRel, route, routin
|
|
|
195
195
|
.map((h) => ` <li class="h${h.level}"><a href="#${esc(h.id)}">${esc(h.text)}</a></li>`)
|
|
196
196
|
.join('\n')}\n </ol>\n </nav>\n`
|
|
197
197
|
: '';
|
|
198
|
-
const docsNav = ` <nav aria-label="Documents" class="doc-subnav">
|
|
199
|
-
<ul>
|
|
200
|
-
${navItems}
|
|
201
|
-
</ul>
|
|
198
|
+
const docsNav = ` <nav aria-label="Documents" class="doc-subnav">
|
|
199
|
+
<ul>
|
|
200
|
+
${navItems}
|
|
201
|
+
</ul>
|
|
202
202
|
</nav>`;
|
|
203
|
-
return ` <aside class="doc-sidebar">
|
|
204
|
-
${docsNav}
|
|
205
|
-
${searchShellHtml}
|
|
206
|
-
</aside>
|
|
207
|
-
<div class="doc-content">
|
|
208
|
-
${toc}<main id="main">
|
|
209
|
-
${bodyHtml}
|
|
210
|
-
${playgroundShellHtml}
|
|
211
|
-
</main>
|
|
203
|
+
return ` <aside class="doc-sidebar">
|
|
204
|
+
${docsNav}
|
|
205
|
+
${searchShellHtml}
|
|
206
|
+
</aside>
|
|
207
|
+
<div class="doc-content">
|
|
208
|
+
${toc}<main id="main">
|
|
209
|
+
${bodyHtml}
|
|
210
|
+
${playgroundShellHtml}
|
|
211
|
+
</main>
|
|
212
212
|
</div>`;
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
@@ -242,17 +242,17 @@ function renderStaticHtml({ title, locale, route, nav, bodyHtml, headings, desig
|
|
|
242
242
|
.map((h) => ` <li class="h${h.level}"><a href="#${esc(h.id)}">${esc(h.text)}</a></li>`)
|
|
243
243
|
.join('\n')}\n </ol>\n </nav>\n`
|
|
244
244
|
: '';
|
|
245
|
-
bodyInner = ` <a class="skip-link" href="#main">Skip to content</a>
|
|
246
|
-
<nav aria-label="Documents" class="doc-subnav">
|
|
247
|
-
<ul>
|
|
248
|
-
${navItems}
|
|
249
|
-
</ul>
|
|
250
|
-
</nav>
|
|
251
|
-
${searchShellHtml}
|
|
252
|
-
${toc}<main id="main">
|
|
253
|
-
${bodyHtml}
|
|
254
|
-
${playgroundShellHtml}
|
|
255
|
-
</main>
|
|
245
|
+
bodyInner = ` <a class="skip-link" href="#main">Skip to content</a>
|
|
246
|
+
<nav aria-label="Documents" class="doc-subnav">
|
|
247
|
+
<ul>
|
|
248
|
+
${navItems}
|
|
249
|
+
</ul>
|
|
250
|
+
</nav>
|
|
251
|
+
${searchShellHtml}
|
|
252
|
+
${toc}<main id="main">
|
|
253
|
+
${bodyHtml}
|
|
254
|
+
${playgroundShellHtml}
|
|
255
|
+
</main>
|
|
256
256
|
`;
|
|
257
257
|
}
|
|
258
258
|
const native = requireNativeAddon();
|
|
@@ -9,6 +9,8 @@ import { resolveDocumentsRoot } from './document-check.js';
|
|
|
9
9
|
import { pageHtmlRel } from './document-enrich.js';
|
|
10
10
|
import { loadLocalesRouting } from './document-routing-config.js';
|
|
11
11
|
import { ensureLocaleImportsRewritten } from '../locale/locale-check.js';
|
|
12
|
+
import { ensureRuntimeCompanions } from '../workspace/pack.js';
|
|
13
|
+
import { resolveCoreRuntimeDist } from '../workspace/runtime-dist.js';
|
|
12
14
|
import { log } from '../workspace/log.js';
|
|
13
15
|
import { requireNativeAddon } from '../workspace/native-addon.js';
|
|
14
16
|
export function projectHasDocuments(projectRoot) {
|
|
@@ -30,6 +32,10 @@ export async function buildIntegratedDocuments(opts) {
|
|
|
30
32
|
log.error(locales.error || 'locale import rewrite incomplete');
|
|
31
33
|
return { ok: false, error: locales.error || 'locale rewrite', pages: 0 };
|
|
32
34
|
}
|
|
35
|
+
// Document layout chunks import the delivery runtime (dom-core.js) at mount
|
|
36
|
+
// time, but pack only materializes it afterwards. Ensure companions first so
|
|
37
|
+
// a clean or partially-written outDir does not fail with an opaque module error.
|
|
38
|
+
ensureRuntimeCompanions(outDir, resolveCoreRuntimeDist());
|
|
33
39
|
const result = await buildDocuments({
|
|
34
40
|
projectRoot,
|
|
35
41
|
outDir,
|
package/dist/workspace/log.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type DiagnosticLike = {
|
|
|
16
16
|
export type DiagnosticLogOptions = {
|
|
17
17
|
denyWarnings?: boolean;
|
|
18
18
|
level?: CliLogLevel;
|
|
19
|
+
locale?: string;
|
|
19
20
|
};
|
|
20
21
|
export declare const log: {
|
|
21
22
|
info(...args: unknown[]): void;
|
|
@@ -25,6 +26,7 @@ export declare const log: {
|
|
|
25
26
|
errorId(id: string, args?: Record<string, string>): void;
|
|
26
27
|
diagnostic(d: DiagnosticLike, opts?: {
|
|
27
28
|
level?: CliLogLevel;
|
|
29
|
+
locale?: string;
|
|
28
30
|
}): boolean;
|
|
29
31
|
/** Failing count: errors, and warnings when `denyWarnings` (independent of print level). */
|
|
30
32
|
diagnostics(diagnostics: DiagnosticLike[] | null | undefined, opts?: DiagnosticLogOptions): number;
|
package/dist/workspace/log.js
CHANGED
|
@@ -38,7 +38,7 @@ export const log = {
|
|
|
38
38
|
return false;
|
|
39
39
|
const hasCode = Boolean(d.code && String(d.code).length);
|
|
40
40
|
const code = hasCode ? String(d.code) : 'diag.message';
|
|
41
|
-
const locale = resolveVmzLocale();
|
|
41
|
+
const locale = opts.locale ?? resolveVmzLocale();
|
|
42
42
|
const catalog = loadCliCatalog(locale);
|
|
43
43
|
const path = d.path || '';
|
|
44
44
|
const style = getCliLogStyle();
|
|
@@ -68,7 +68,7 @@ export const log = {
|
|
|
68
68
|
const items = diagnostics ?? [];
|
|
69
69
|
const visible = items.filter((d) => diagnosticVisible(normalizeSeverity(d.severity), level));
|
|
70
70
|
for (let i = 0; i < visible.length; i += 1) {
|
|
71
|
-
this.diagnostic(visible[i], { level });
|
|
71
|
+
this.diagnostic(visible[i], { level, locale: opts.locale });
|
|
72
72
|
if (style === 'pretty' && i + 1 < visible.length)
|
|
73
73
|
console.error('');
|
|
74
74
|
}
|
|
@@ -289,17 +289,17 @@ function buildMathFacade(defaultEngine, engines) {
|
|
|
289
289
|
return ` <${tag} ${kw}="(engine || ${defaultLit}) === ${engLit}" :tex="tex" :display="display" />`;
|
|
290
290
|
})
|
|
291
291
|
.join('\n');
|
|
292
|
-
return `<template>
|
|
293
|
-
${branches}
|
|
294
|
-
</template>
|
|
295
|
-
|
|
296
|
-
<script client>
|
|
297
|
-
export default class Math {
|
|
298
|
-
public tex: string = '';
|
|
299
|
-
public display: boolean = false;
|
|
300
|
-
public engine: string | null = null;
|
|
301
|
-
}
|
|
302
|
-
</script>
|
|
292
|
+
return `<template>
|
|
293
|
+
${branches}
|
|
294
|
+
</template>
|
|
295
|
+
|
|
296
|
+
<script client>
|
|
297
|
+
export default class Math {
|
|
298
|
+
public tex: string = '';
|
|
299
|
+
public display: boolean = false;
|
|
300
|
+
public engine: string | null = null;
|
|
301
|
+
}
|
|
302
|
+
</script>
|
|
303
303
|
`;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
@@ -316,18 +316,18 @@ function buildCodeFacade(defaultEngine, engines) {
|
|
|
316
316
|
return ` <${tag} ${kw}="(engine || ${defaultLit}) === ${engLit}" :code="code" :lang="lang" :theme="theme" />`;
|
|
317
317
|
})
|
|
318
318
|
.join('\n');
|
|
319
|
-
return `<template>
|
|
320
|
-
${branches}
|
|
321
|
-
</template>
|
|
322
|
-
|
|
323
|
-
<script client>
|
|
324
|
-
export default class Code {
|
|
325
|
-
public code: string = '';
|
|
326
|
-
public lang: string = 'text';
|
|
327
|
-
public theme: string | null = null;
|
|
328
|
-
public engine: string | null = null;
|
|
329
|
-
}
|
|
330
|
-
</script>
|
|
319
|
+
return `<template>
|
|
320
|
+
${branches}
|
|
321
|
+
</template>
|
|
322
|
+
|
|
323
|
+
<script client>
|
|
324
|
+
export default class Code {
|
|
325
|
+
public code: string = '';
|
|
326
|
+
public lang: string = 'text';
|
|
327
|
+
public theme: string | null = null;
|
|
328
|
+
public engine: string | null = null;
|
|
329
|
+
}
|
|
330
|
+
</script>
|
|
331
331
|
`;
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
@@ -344,16 +344,16 @@ function buildMarkdownFacade(defaultEngine, engines) {
|
|
|
344
344
|
return ` <${tag} ${kw}="(engine || ${defaultLit}) === ${engLit}" :source="source" />`;
|
|
345
345
|
})
|
|
346
346
|
.join('\n');
|
|
347
|
-
return `<template>
|
|
348
|
-
${branches}
|
|
349
|
-
</template>
|
|
350
|
-
|
|
351
|
-
<script client>
|
|
352
|
-
export default class Markdown {
|
|
353
|
-
public source: string = '';
|
|
354
|
-
public engine: string | null = null;
|
|
355
|
-
}
|
|
356
|
-
</script>
|
|
347
|
+
return `<template>
|
|
348
|
+
${branches}
|
|
349
|
+
</template>
|
|
350
|
+
|
|
351
|
+
<script client>
|
|
352
|
+
export default class Markdown {
|
|
353
|
+
public source: string = '';
|
|
354
|
+
public engine: string | null = null;
|
|
355
|
+
}
|
|
356
|
+
</script>
|
|
357
357
|
`;
|
|
358
358
|
}
|
|
359
359
|
/** Embed a JS string literal inside a double-quoted Vue attribute. */
|
package/locales/en-US/cli.json
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
{
|
|
2
|
-
"cli.intro.project": "vmz — Node toolchain host (`@vmz/vmz`, N-API)",
|
|
3
|
-
"cli.intro.global": "vmz — global install (help/version only). Pin `@vmz/vmz` in the app (`pnpm add -D @vmz/vmz`) and run `pnpm exec vmz <command>`. A global `vmz` re-execs the nearest project bin when present.",
|
|
4
|
-
"cli.cmd.check": "Check project via Workspace",
|
|
5
|
-
"cli.cmd.build": "Build project via Workspace",
|
|
6
|
-
"cli.cmd.serve": "Serve dist (optional --build)",
|
|
7
|
-
"cli.cmd.dev": "Rebuild session",
|
|
8
|
-
"cli.cmd.format": "Format workspace surfaces and .vmz via vmz.config format",
|
|
9
|
-
"cli.opt.format-no-javascript": "Skip JS/TS workspace format",
|
|
10
|
-
"cli.opt.format-no-rust": "Skip cargo fmt",
|
|
11
|
-
"cli.opt.format-no-vmz": "Skip .vmz author format",
|
|
12
|
-
"cli.cmd.lint": "Lint (= check) via N-API",
|
|
13
|
-
"cli.cmd.test": "Native test discover / report",
|
|
14
|
-
"cli.cmd.document": "Project /documents domain",
|
|
15
|
-
"cli.cmd.document.check": "Check locale tree + links/anchors + evidence",
|
|
16
|
-
"cli.cmd.document.build": "Static HTML + view + evidence + designs CSS",
|
|
17
|
-
"cli.cmd.locale": "Locale domain",
|
|
18
|
-
"cli.cmd.locale.check": "Check locales.json5 + catalogs + param contracts",
|
|
19
|
-
"cli.cmd.locale.list": "List LocaleIds",
|
|
20
|
-
"cli.cmd.locale.emit-types": "Emit #locales/* .d.ts stubs",
|
|
21
|
-
"cli.cmd.locale.rename": "MessageId rename plan",
|
|
22
|
-
"cli.cmd.locale.runtime-check": "LocaleContext / FormatterContext / SSR parity",
|
|
23
|
-
"cli.cmd.locale.router-check": "Route realization / canonical / hreflang",
|
|
24
|
-
"cli.cmd.locale.delivery-check": "Multi-host LocaleDeliveryResolution",
|
|
25
|
-
"cli.cmd.locale.explain": "Explain MessageId",
|
|
26
|
-
"cli.cmd.locale.diff": "Diff two locales",
|
|
27
|
-
"cli.cmd.locale.extract": "Hardcoded text sink check",
|
|
28
|
-
"cli.cmd.locale.pseudo": "Pseudo-localize catalog",
|
|
29
|
-
"cli.cmd.locale.conformance": "Cross-host MessageId/hash conformance",
|
|
30
|
-
"cli.cmd.application": "Application Collection / Mount",
|
|
31
|
-
"cli.cmd.application.check": "Validate descriptors + applications.config.json5",
|
|
32
|
-
"cli.cmd.application.list": "List ApplicationIds / collections / mounts",
|
|
33
|
-
"cli.cmd.application.schemas": "Print frozen protocol catalog JSON",
|
|
34
|
-
"cli.cmd.application.relocatable": "ApplicationBase / non_relocatable_url proof",
|
|
35
|
-
"cli.cmd.application.relocate": "Apply ApplicationBase to relocation manifest",
|
|
36
|
-
"cli.cmd.application.artifacts": "ApplicationArtifact + MountTable boundary",
|
|
37
|
-
"cli.cmd.application.isolation": "Isolation namespaces + failure containment",
|
|
38
|
-
"cli.cmd.application.composition": "Catalog consumption + cross-app Link hrefs",
|
|
39
|
-
"cli.cmd.application.dev": "Sessions / affected / proxy / mounted tests",
|
|
40
|
-
"cli.cmd.artifact": "Release pack / publish / rollback / diff",
|
|
41
|
-
"cli.cmd.artifact.pack": "Write dist/_vmz manifests + envelope",
|
|
42
|
-
"cli.cmd.artifact.publish": "Pack + publish under dist/releases",
|
|
43
|
-
"cli.cmd.artifact.rollback": "Restore PREVIOUS pointer",
|
|
44
|
-
"cli.cmd.artifact.current": "Print CURRENT digest",
|
|
45
|
-
"cli.cmd.artifact.diff": "Structured file digest diff",
|
|
46
|
-
"cli.cmd.refactor": "DX rename plans / apply",
|
|
47
|
-
"cli.cmd.refactor.rename": "Plan or apply a workspace rename",
|
|
48
|
-
"cli.cmd.explain": "DX causal explain",
|
|
49
|
-
"cli.cmd.github-actions": "Monitor GitHub Actions via Rust GitHub REST monitor (status|wait)",
|
|
50
|
-
"cli.cmd.plan": "Dump frozen Rust plans via N-API",
|
|
51
|
-
"cli.cmd.plan.locale": "LocalePlan from locales/",
|
|
52
|
-
"cli.cmd.plan.document-route": "DocumentRoutePlan from documents/",
|
|
53
|
-
"cli.cmd.version": "Show host + native protocol versions",
|
|
54
|
-
"cli.opt.out-dir": "Workspace output root (default: dist)",
|
|
55
|
-
"cli.opt.release": "Release build (omit serve-host; pack minify; proof)",
|
|
56
|
-
"cli.opt.profile": "Delivery profile id",
|
|
57
|
-
"cli.opt.target": "browser | mini-program-wechat (or test affected alias)",
|
|
58
|
-
"cli.opt.origin": "Site origin for web-static",
|
|
59
|
-
"cli.opt.host": "Listen host",
|
|
60
|
-
"cli.opt.port": "Listen port",
|
|
61
|
-
"cli.opt.poll-ms": "Dev watch poll interval",
|
|
62
|
-
"cli.opt.build": "Build before serve",
|
|
63
|
-
"cli.opt.check": "Format check-only / extract fail on CJK",
|
|
64
|
-
"cli.opt.deny-warnings": "Treat warnings as errors",
|
|
65
|
-
"cli.opt.level": "Diagnostic verbosity: error | warn | info (default warn)",
|
|
66
|
-
"cli.opt.info-level": "Show advice diagnostics and progress (same as --level info)",
|
|
67
|
-
"cli.opt.diag-style": "Diagnostic layout: pretty | compact (default pretty)",
|
|
68
|
-
"cli.opt.json": "Write JSON to stdout or file",
|
|
69
|
-
"cli.opt.root": "Project root",
|
|
70
|
-
"cli.opt.out": "Output directory",
|
|
71
|
-
"cli.opt.strict": "Strict coverage / require defaultLocale",
|
|
72
|
-
"cli.opt.list": "List discovered tests",
|
|
73
|
-
"cli.opt.mode": "compile|logic|browser|ssr|resume|deployment|all",
|
|
74
|
-
"cli.opt.filter": "Filter by test id or file",
|
|
75
|
-
"cli.opt.application": "Run only tests for ApplicationId",
|
|
76
|
-
"cli.opt.mounted": "Relocation + host-boundary tests for ApplicationId",
|
|
77
|
-
"cli.opt.affected": "Select tests from dirty VPG units",
|
|
78
|
-
"cli.opt.locale": "Requested locale id",
|
|
79
|
-
"cli.opt.delivery": "Delivery id",
|
|
80
|
-
"cli.opt.timezone": "Formatter time zone",
|
|
81
|
-
"cli.opt.production": "Fail pseudo in production",
|
|
82
|
-
"cli.opt.base": "ApplicationBase path",
|
|
83
|
-
"cli.opt.dirty": "Dirty file path for affected planning (repeatable)",
|
|
84
|
-
"cli.opt.releases": "Releases root directory",
|
|
85
|
-
"cli.opt.app-id": "applicationId for envelope",
|
|
86
|
-
"cli.opt.refactor.kind": "route_id|field|method|component|capability",
|
|
87
|
-
"cli.opt.refactor.from": "Rename from id",
|
|
88
|
-
"cli.opt.refactor.to": "Rename to id",
|
|
89
|
-
"cli.opt.refactor.scope": "Optional chunk scope",
|
|
90
|
-
"cli.opt.apply": "Apply workspace edit plan",
|
|
91
|
-
"cli.opt.explain": "Include rename explain chain",
|
|
92
|
-
"cli.opt.explain.target": "Generic Workspace.explain target",
|
|
93
|
-
"cli.opt.gha.mode": "status (one-shot) or wait (poll until completed)",
|
|
94
|
-
"cli.opt.gha.workflow": "Workflow file name (e.g. ci.yml) or numeric id",
|
|
95
|
-
"cli.opt.gha.run-id": "Watch a specific workflow run id",
|
|
96
|
-
"cli.opt.gha.ref": "Commit SHA filter (head_sha)",
|
|
97
|
-
"cli.opt.gha.branch": "Branch name filter",
|
|
98
|
-
"cli.opt.gha.owner": "Repository owner (default GITHUB_REPOSITORY)",
|
|
99
|
-
"cli.opt.gha.repo": "Repository name (default GITHUB_REPOSITORY)",
|
|
100
|
-
"cli.opt.gha.token": "GitHub token (default GITHUB_TOKEN / GH_TOKEN)",
|
|
101
|
-
"cli.opt.gha.timeout-minutes": "Max wait minutes for mode=wait",
|
|
102
|
-
"cli.opt.gha.interval-seconds": "Poll interval seconds for mode=wait",
|
|
103
|
-
"cli.opt.gha.required-conclusion": "Required conclusion when mode=wait (default success)",
|
|
104
|
-
"cli.err.unknown_plan_kind": "unknown plan kind `{kind}` (locale | document-route)",
|
|
105
|
-
"cli.err.gha.mode": "unknown --mode {mode} (status | wait)",
|
|
106
|
-
"cli.err.gha.repo": "set --owner/--repo or GITHUB_REPOSITORY (owner/repo)",
|
|
107
|
-
"cli.err.invalid_level": "unknown --level `{level}` (error | warn | info)",
|
|
108
|
-
"cli.err.invalid_style": "unknown --style `{style}` (pretty | compact)",
|
|
109
|
-
"cli.err.unknown_target": "unknown --target {target} (browser | mini-program-wechat)",
|
|
110
|
-
"cli.err.document_build_aborted": "document build aborted due to diagnostics",
|
|
111
|
-
"cli.err.locale_rename_usage": "usage: vmz locale rename <from-message-id> <to-message-id>",
|
|
112
|
-
"cli.err.locale_explain_usage": "usage: vmz locale explain <message-id> [project]",
|
|
113
|
-
"cli.err.locale_diff_usage": "usage: vmz locale diff <base-locale> <target-locale> [project]",
|
|
114
|
-
"cli.err.locale_pseudo_usage": "usage: vmz locale pseudo <source-locale> [project]",
|
|
115
|
-
"cli.err.application_relocate_manifest": "relocate requires a relocation manifest JSON path",
|
|
116
|
-
"cli.err.application_relocate_base": "relocate requires --base <ApplicationBase>",
|
|
117
|
-
"cli.err.artifact_diff_usage": "artifact diff requires <aDigest> <bDigest>",
|
|
118
|
-
"cli.err.refactor_rename_usage": "rename requires --kind, --from, and --to",
|
|
119
|
-
"cli.err.explain_style_usage": "usage: vmz explain style <node> [path]",
|
|
120
|
-
"cli.err.explain_usage": "usage: vmz explain style <node> [path] | vmz explain <target> [path]",
|
|
121
|
-
"cli.err.project_bin_missing": "found project `vmz` / `@vmz/vmz` but bin/vmz.js is missing.",
|
|
122
|
-
"cli.err.global_needs_project": "this `vmz` is a global install (mode=global); project commands need a project install.",
|
|
123
|
-
"cli.err.global_install_hint": "Install in the app: pnpm add -D @vmz/vmz",
|
|
124
|
-
"cli.err.global_run_hint": "Then run: pnpm exec vmz <command>",
|
|
125
|
-
"cli.err.global_developer_hint": "(developer mode: run from vmz-framework packages/runtimes/vmz source — full CLI)"
|
|
126
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"cli.intro.project": "vmz — Node toolchain host (`@vmz/vmz`, N-API)",
|
|
3
|
+
"cli.intro.global": "vmz — global install (help/version only). Pin `@vmz/vmz` in the app (`pnpm add -D @vmz/vmz`) and run `pnpm exec vmz <command>`. A global `vmz` re-execs the nearest project bin when present.",
|
|
4
|
+
"cli.cmd.check": "Check project via Workspace",
|
|
5
|
+
"cli.cmd.build": "Build project via Workspace",
|
|
6
|
+
"cli.cmd.serve": "Serve dist (optional --build)",
|
|
7
|
+
"cli.cmd.dev": "Rebuild session",
|
|
8
|
+
"cli.cmd.format": "Format workspace surfaces and .vmz via vmz.config format",
|
|
9
|
+
"cli.opt.format-no-javascript": "Skip JS/TS workspace format",
|
|
10
|
+
"cli.opt.format-no-rust": "Skip cargo fmt",
|
|
11
|
+
"cli.opt.format-no-vmz": "Skip .vmz author format",
|
|
12
|
+
"cli.cmd.lint": "Lint (= check) via N-API",
|
|
13
|
+
"cli.cmd.test": "Native test discover / report",
|
|
14
|
+
"cli.cmd.document": "Project /documents domain",
|
|
15
|
+
"cli.cmd.document.check": "Check locale tree + links/anchors + evidence",
|
|
16
|
+
"cli.cmd.document.build": "Static HTML + view + evidence + designs CSS",
|
|
17
|
+
"cli.cmd.locale": "Locale domain",
|
|
18
|
+
"cli.cmd.locale.check": "Check locales.json5 + catalogs + param contracts",
|
|
19
|
+
"cli.cmd.locale.list": "List LocaleIds",
|
|
20
|
+
"cli.cmd.locale.emit-types": "Emit #locales/* .d.ts stubs",
|
|
21
|
+
"cli.cmd.locale.rename": "MessageId rename plan",
|
|
22
|
+
"cli.cmd.locale.runtime-check": "LocaleContext / FormatterContext / SSR parity",
|
|
23
|
+
"cli.cmd.locale.router-check": "Route realization / canonical / hreflang",
|
|
24
|
+
"cli.cmd.locale.delivery-check": "Multi-host LocaleDeliveryResolution",
|
|
25
|
+
"cli.cmd.locale.explain": "Explain MessageId",
|
|
26
|
+
"cli.cmd.locale.diff": "Diff two locales",
|
|
27
|
+
"cli.cmd.locale.extract": "Hardcoded text sink check",
|
|
28
|
+
"cli.cmd.locale.pseudo": "Pseudo-localize catalog",
|
|
29
|
+
"cli.cmd.locale.conformance": "Cross-host MessageId/hash conformance",
|
|
30
|
+
"cli.cmd.application": "Application Collection / Mount",
|
|
31
|
+
"cli.cmd.application.check": "Validate descriptors + applications.config.json5",
|
|
32
|
+
"cli.cmd.application.list": "List ApplicationIds / collections / mounts",
|
|
33
|
+
"cli.cmd.application.schemas": "Print frozen protocol catalog JSON",
|
|
34
|
+
"cli.cmd.application.relocatable": "ApplicationBase / non_relocatable_url proof",
|
|
35
|
+
"cli.cmd.application.relocate": "Apply ApplicationBase to relocation manifest",
|
|
36
|
+
"cli.cmd.application.artifacts": "ApplicationArtifact + MountTable boundary",
|
|
37
|
+
"cli.cmd.application.isolation": "Isolation namespaces + failure containment",
|
|
38
|
+
"cli.cmd.application.composition": "Catalog consumption + cross-app Link hrefs",
|
|
39
|
+
"cli.cmd.application.dev": "Sessions / affected / proxy / mounted tests",
|
|
40
|
+
"cli.cmd.artifact": "Release pack / publish / rollback / diff",
|
|
41
|
+
"cli.cmd.artifact.pack": "Write dist/_vmz manifests + envelope",
|
|
42
|
+
"cli.cmd.artifact.publish": "Pack + publish under dist/releases",
|
|
43
|
+
"cli.cmd.artifact.rollback": "Restore PREVIOUS pointer",
|
|
44
|
+
"cli.cmd.artifact.current": "Print CURRENT digest",
|
|
45
|
+
"cli.cmd.artifact.diff": "Structured file digest diff",
|
|
46
|
+
"cli.cmd.refactor": "DX rename plans / apply",
|
|
47
|
+
"cli.cmd.refactor.rename": "Plan or apply a workspace rename",
|
|
48
|
+
"cli.cmd.explain": "DX causal explain",
|
|
49
|
+
"cli.cmd.github-actions": "Monitor GitHub Actions via Rust GitHub REST monitor (status|wait)",
|
|
50
|
+
"cli.cmd.plan": "Dump frozen Rust plans via N-API",
|
|
51
|
+
"cli.cmd.plan.locale": "LocalePlan from locales/",
|
|
52
|
+
"cli.cmd.plan.document-route": "DocumentRoutePlan from documents/",
|
|
53
|
+
"cli.cmd.version": "Show host + native protocol versions",
|
|
54
|
+
"cli.opt.out-dir": "Workspace output root (default: dist)",
|
|
55
|
+
"cli.opt.release": "Release build (omit serve-host; pack minify; proof)",
|
|
56
|
+
"cli.opt.profile": "Delivery profile id",
|
|
57
|
+
"cli.opt.target": "browser | mini-program-wechat (or test affected alias)",
|
|
58
|
+
"cli.opt.origin": "Site origin for web-static",
|
|
59
|
+
"cli.opt.host": "Listen host",
|
|
60
|
+
"cli.opt.port": "Listen port",
|
|
61
|
+
"cli.opt.poll-ms": "Dev watch poll interval",
|
|
62
|
+
"cli.opt.build": "Build before serve",
|
|
63
|
+
"cli.opt.check": "Format check-only / extract fail on CJK",
|
|
64
|
+
"cli.opt.deny-warnings": "Treat warnings as errors",
|
|
65
|
+
"cli.opt.level": "Diagnostic verbosity: error | warn | info (default warn)",
|
|
66
|
+
"cli.opt.info-level": "Show advice diagnostics and progress (same as --level info)",
|
|
67
|
+
"cli.opt.diag-style": "Diagnostic layout: pretty | compact (default pretty)",
|
|
68
|
+
"cli.opt.json": "Write JSON to stdout or file",
|
|
69
|
+
"cli.opt.root": "Project root",
|
|
70
|
+
"cli.opt.out": "Output directory",
|
|
71
|
+
"cli.opt.strict": "Strict coverage / require defaultLocale",
|
|
72
|
+
"cli.opt.list": "List discovered tests",
|
|
73
|
+
"cli.opt.mode": "compile|logic|browser|ssr|resume|deployment|all",
|
|
74
|
+
"cli.opt.filter": "Filter by test id or file",
|
|
75
|
+
"cli.opt.application": "Run only tests for ApplicationId",
|
|
76
|
+
"cli.opt.mounted": "Relocation + host-boundary tests for ApplicationId",
|
|
77
|
+
"cli.opt.affected": "Select tests from dirty VPG units",
|
|
78
|
+
"cli.opt.locale": "Requested locale id",
|
|
79
|
+
"cli.opt.delivery": "Delivery id",
|
|
80
|
+
"cli.opt.timezone": "Formatter time zone",
|
|
81
|
+
"cli.opt.production": "Fail pseudo in production",
|
|
82
|
+
"cli.opt.base": "ApplicationBase path",
|
|
83
|
+
"cli.opt.dirty": "Dirty file path for affected planning (repeatable)",
|
|
84
|
+
"cli.opt.releases": "Releases root directory",
|
|
85
|
+
"cli.opt.app-id": "applicationId for envelope",
|
|
86
|
+
"cli.opt.refactor.kind": "route_id|field|method|component|capability",
|
|
87
|
+
"cli.opt.refactor.from": "Rename from id",
|
|
88
|
+
"cli.opt.refactor.to": "Rename to id",
|
|
89
|
+
"cli.opt.refactor.scope": "Optional chunk scope",
|
|
90
|
+
"cli.opt.apply": "Apply workspace edit plan",
|
|
91
|
+
"cli.opt.explain": "Include rename explain chain",
|
|
92
|
+
"cli.opt.explain.target": "Generic Workspace.explain target",
|
|
93
|
+
"cli.opt.gha.mode": "status (one-shot) or wait (poll until completed)",
|
|
94
|
+
"cli.opt.gha.workflow": "Workflow file name (e.g. ci.yml) or numeric id",
|
|
95
|
+
"cli.opt.gha.run-id": "Watch a specific workflow run id",
|
|
96
|
+
"cli.opt.gha.ref": "Commit SHA filter (head_sha)",
|
|
97
|
+
"cli.opt.gha.branch": "Branch name filter",
|
|
98
|
+
"cli.opt.gha.owner": "Repository owner (default GITHUB_REPOSITORY)",
|
|
99
|
+
"cli.opt.gha.repo": "Repository name (default GITHUB_REPOSITORY)",
|
|
100
|
+
"cli.opt.gha.token": "GitHub token (default GITHUB_TOKEN / GH_TOKEN)",
|
|
101
|
+
"cli.opt.gha.timeout-minutes": "Max wait minutes for mode=wait",
|
|
102
|
+
"cli.opt.gha.interval-seconds": "Poll interval seconds for mode=wait",
|
|
103
|
+
"cli.opt.gha.required-conclusion": "Required conclusion when mode=wait (default success)",
|
|
104
|
+
"cli.err.unknown_plan_kind": "unknown plan kind `{kind}` (locale | document-route)",
|
|
105
|
+
"cli.err.gha.mode": "unknown --mode {mode} (status | wait)",
|
|
106
|
+
"cli.err.gha.repo": "set --owner/--repo or GITHUB_REPOSITORY (owner/repo)",
|
|
107
|
+
"cli.err.invalid_level": "unknown --level `{level}` (error | warn | info)",
|
|
108
|
+
"cli.err.invalid_style": "unknown --style `{style}` (pretty | compact)",
|
|
109
|
+
"cli.err.unknown_target": "unknown --target {target} (browser | mini-program-wechat)",
|
|
110
|
+
"cli.err.document_build_aborted": "document build aborted due to diagnostics",
|
|
111
|
+
"cli.err.locale_rename_usage": "usage: vmz locale rename <from-message-id> <to-message-id>",
|
|
112
|
+
"cli.err.locale_explain_usage": "usage: vmz locale explain <message-id> [project]",
|
|
113
|
+
"cli.err.locale_diff_usage": "usage: vmz locale diff <base-locale> <target-locale> [project]",
|
|
114
|
+
"cli.err.locale_pseudo_usage": "usage: vmz locale pseudo <source-locale> [project]",
|
|
115
|
+
"cli.err.application_relocate_manifest": "relocate requires a relocation manifest JSON path",
|
|
116
|
+
"cli.err.application_relocate_base": "relocate requires --base <ApplicationBase>",
|
|
117
|
+
"cli.err.artifact_diff_usage": "artifact diff requires <aDigest> <bDigest>",
|
|
118
|
+
"cli.err.refactor_rename_usage": "rename requires --kind, --from, and --to",
|
|
119
|
+
"cli.err.explain_style_usage": "usage: vmz explain style <node> [path]",
|
|
120
|
+
"cli.err.explain_usage": "usage: vmz explain style <node> [path] | vmz explain <target> [path]",
|
|
121
|
+
"cli.err.project_bin_missing": "found project `vmz` / `@vmz/vmz` but bin/vmz.js is missing.",
|
|
122
|
+
"cli.err.global_needs_project": "this `vmz` is a global install (mode=global); project commands need a project install.",
|
|
123
|
+
"cli.err.global_install_hint": "Install in the app: pnpm add -D @vmz/vmz",
|
|
124
|
+
"cli.err.global_run_hint": "Then run: pnpm exec vmz <command>",
|
|
125
|
+
"cli.err.global_developer_hint": "(developer mode: run from vmz-framework packages/runtimes/vmz source — full CLI)"
|
|
126
|
+
}
|
package/locales/en-US/diag.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"diag.message": "{message}",
|
|
3
3
|
"diag.detail": "{detail}",
|
|
4
|
+
"commander::action_failed": "Command failed: {message}",
|
|
4
5
|
|
|
5
6
|
"vmz::template::illegal_directive": "Illegal or unsupported directive in `<template>`: {detail}",
|
|
6
7
|
"vmz::template::parse_failed": "Failed to parse `<template>`: {detail}",
|
package/locales/zh-CN/diag.json
CHANGED
package/package.json
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"vmz": "./bin/vmz.js"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@vmz/commander": "0.3.
|
|
7
|
-
"@vmz/core": "0.3.
|
|
8
|
-
"@vmz/diagnostic": "0.3.
|
|
9
|
-
"@vmz/plugin": "0.3.
|
|
10
|
-
"@vmz/protocol": "0.3.
|
|
6
|
+
"@vmz/commander": "0.3.6",
|
|
7
|
+
"@vmz/core": "0.3.6",
|
|
8
|
+
"@vmz/diagnostic": "0.3.6",
|
|
9
|
+
"@vmz/plugin": "0.3.6",
|
|
10
|
+
"@vmz/protocol": "0.3.6",
|
|
11
11
|
"jiti": "^2.6.1"
|
|
12
12
|
},
|
|
13
13
|
"description": "VMZ Node toolchain — N-API workspace session + CLI (publish name @vmz/vmz)",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^22.15.0",
|
|
16
|
-
"@vmz/plugin": "0.3.
|
|
17
|
-
"@vmz/plugin-katex": "0.3.
|
|
18
|
-
"@vmz/plugin-markdown-it": "0.3.
|
|
19
|
-
"@vmz/plugin-shiki": "0.3.
|
|
20
|
-
"@vmz/test": "0.3.
|
|
16
|
+
"@vmz/plugin": "0.3.6",
|
|
17
|
+
"@vmz/plugin-katex": "0.3.6",
|
|
18
|
+
"@vmz/plugin-markdown-it": "0.3.6",
|
|
19
|
+
"@vmz/plugin-shiki": "0.3.6",
|
|
20
|
+
"@vmz/test": "0.3.6",
|
|
21
21
|
"linkedom": "^0.18.13",
|
|
22
22
|
"typescript": "^5.8.3",
|
|
23
|
-
"vmz-plugin-conformance": "0.3.
|
|
23
|
+
"vmz-plugin-conformance": "0.3.6"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
"main": "./dist/index.js",
|
|
79
79
|
"name": "@vmz/vmz",
|
|
80
80
|
"optionalDependencies": {
|
|
81
|
-
"@vmz/vmz-darwin-arm64": "0.3.
|
|
82
|
-
"@vmz/vmz-darwin-x64": "0.3.
|
|
83
|
-
"@vmz/vmz-linux-arm64": "0.3.
|
|
84
|
-
"@vmz/vmz-linux-x64": "0.3.
|
|
85
|
-
"@vmz/vmz-win32-arm64": "0.3.
|
|
86
|
-
"@vmz/vmz-win32-x64": "0.3.
|
|
81
|
+
"@vmz/vmz-darwin-arm64": "0.3.6",
|
|
82
|
+
"@vmz/vmz-darwin-x64": "0.3.6",
|
|
83
|
+
"@vmz/vmz-linux-arm64": "0.3.6",
|
|
84
|
+
"@vmz/vmz-linux-x64": "0.3.6",
|
|
85
|
+
"@vmz/vmz-win32-arm64": "0.3.6",
|
|
86
|
+
"@vmz/vmz-win32-x64": "0.3.6"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@vmz/plugin-markdown-it": "0.3.
|
|
90
|
-
"@vmz/test": "0.3.
|
|
89
|
+
"@vmz/plugin-markdown-it": "0.3.6",
|
|
90
|
+
"@vmz/test": "0.3.6",
|
|
91
91
|
"typescript": "^5.8.3"
|
|
92
92
|
},
|
|
93
93
|
"peerDependenciesMeta": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
},
|
|
121
121
|
"type": "module",
|
|
122
122
|
"types": "./dist/index.d.ts",
|
|
123
|
-
"version": "0.3.
|
|
123
|
+
"version": "0.3.6"
|
|
124
124
|
}
|