@vmz/vmz 0.3.1 → 0.3.4
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.
|
@@ -18,7 +18,7 @@ export const VMZ_FRAMEWORK_INCLUDES = [
|
|
|
18
18
|
'vmz.config.ts',
|
|
19
19
|
'nifty.config.ts',
|
|
20
20
|
];
|
|
21
|
-
const DEFAULT_EXCLUDES = ['**/fixtures/**'];
|
|
21
|
+
const DEFAULT_EXCLUDES = ['**/fixtures/**', '**/dist/**', '**/node_modules/**', '**/target/**'];
|
|
22
22
|
function isFrameworkMonorepoRoot(projectRoot) {
|
|
23
23
|
return existsSync(path.join(projectRoot, 'packages', 'runtimes'));
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `vmz github-actions` — monitor workflow runs via N-API → Rust `vmz-github` (
|
|
2
|
+
* `vmz github-actions` — monitor workflow runs via N-API → Rust `vmz-github` (GitHub REST).
|
|
3
3
|
*/
|
|
4
4
|
import type { Cli, ParsedOptions } from '@vmz/commander';
|
|
5
5
|
export declare function registerGithubActionsCommand(cli: Cli): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `vmz github-actions` — monitor workflow runs via N-API → Rust `vmz-github` (
|
|
2
|
+
* `vmz github-actions` — monitor workflow runs via N-API → Rust `vmz-github` (GitHub REST).
|
|
3
3
|
*/
|
|
4
4
|
import { loadNative } from '../workspace/public-api.js';
|
|
5
5
|
import { log } from '../workspace/log.js';
|
|
@@ -306,7 +306,11 @@ function flattenExportTarget(entry) {
|
|
|
306
306
|
return entry;
|
|
307
307
|
if (!entry || typeof entry !== 'object')
|
|
308
308
|
return null;
|
|
309
|
-
|
|
309
|
+
// Package authors commonly put browser-first TypeScript sources behind a
|
|
310
|
+
// conditional export. Resolve conditions before falling back to Node's
|
|
311
|
+
// import/default branches so the pack stage can transpile the source into
|
|
312
|
+
// the browser-safe vendor tree before static SSR imports it.
|
|
313
|
+
const v = entry.browser || entry.import || entry.default || entry.require || entry.module || entry.node || null;
|
|
310
314
|
if (typeof v === 'string')
|
|
311
315
|
return v;
|
|
312
316
|
if (v && typeof v === 'object')
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "vmz.host-runtime-files.v0",
|
|
3
|
+
"note": "Single source for Node host companions copied into dist/_vmz/host/. Consumed by vmz-compiler emit_runtime_js and materializeServeHostRuntime.",
|
|
4
|
+
"files": [
|
|
5
|
+
{ "src": "host/serve-host.mjs", "out": "_vmz/host/vmz-serve-host.mjs", "rewriteVmzRuntimeImport": true },
|
|
6
|
+
{ "src": "host/native-addon.js", "out": "_vmz/host/native-addon.js" },
|
|
7
|
+
{ "src": "host/list-client-components.js", "out": "_vmz/host/list-client-components.js" },
|
|
8
|
+
{ "src": "host/deployment/deployment-registry.js", "out": "_vmz/host/deployment/deployment-registry.js" },
|
|
9
|
+
{ "src": "host/render/render-host.js", "out": "_vmz/host/render/render-host.js" },
|
|
10
|
+
{ "src": "host/render/route-layout-chain.js", "out": "_vmz/host/render/route-layout-chain.js" },
|
|
11
|
+
{ "src": "host/localize-body-links.js", "out": "_vmz/host/localize-body-links.js" },
|
|
12
|
+
{ "src": "host/serve/bootstrap.js", "out": "_vmz/host/serve/bootstrap.js", "rewriteVmzRuntimeImport": true },
|
|
13
|
+
{ "src": "host/serve/http.js", "out": "_vmz/host/serve/http.js", "rewriteVmzRuntimeImport": true },
|
|
14
|
+
{ "src": "host/serve/hmr-dev.js", "out": "_vmz/host/serve/hmr-dev.js", "rewriteVmzRuntimeImport": true },
|
|
15
|
+
{ "src": "host/serve/page-render.js", "out": "_vmz/host/serve/page-render.js", "rewriteVmzRuntimeImport": true },
|
|
16
|
+
{ "src": "host/serve/page-catalog.js", "out": "_vmz/host/serve/page-catalog.js" },
|
|
17
|
+
{ "src": "host/serve/locale-theme.js", "out": "_vmz/host/serve/locale-theme.js" },
|
|
18
|
+
{ "src": "host/serve/constants.js", "out": "_vmz/host/serve/constants.js" },
|
|
19
|
+
{ "src": "host/serve/route-catalog.js", "out": "_vmz/host/serve/route-catalog.js" },
|
|
20
|
+
{ "src": "host/serve/state.js", "out": "_vmz/host/serve/state.js" },
|
|
21
|
+
{ "src": "host/serve/paths.js", "out": "_vmz/host/serve/paths.js" }
|
|
22
|
+
],
|
|
23
|
+
"launcherStub": {
|
|
24
|
+
"out": "vmz-serve-host.mjs",
|
|
25
|
+
"body": "// Generated launcher — host companions live under `_vmz/host/` (0.1.31).\nimport './_vmz/host/vmz-serve-host.mjs';\n"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/locales/en-US/cli.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"cli.cmd.refactor": "DX rename plans / apply",
|
|
47
47
|
"cli.cmd.refactor.rename": "Plan or apply a workspace rename",
|
|
48
48
|
"cli.cmd.explain": "DX causal explain",
|
|
49
|
-
"cli.cmd.github-actions": "Monitor GitHub Actions via Rust
|
|
49
|
+
"cli.cmd.github-actions": "Monitor GitHub Actions via Rust GitHub REST monitor (status|wait)",
|
|
50
50
|
"cli.cmd.plan": "Dump frozen Rust plans via N-API",
|
|
51
51
|
"cli.cmd.plan.locale": "LocalePlan from locales/",
|
|
52
52
|
"cli.cmd.plan.document-route": "DocumentRoutePlan from documents/",
|
package/package.json
CHANGED
|
@@ -1,63 +1,92 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@vmz/vmz",
|
|
3
|
-
"version": "0.3.1",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "VMZ Node toolchain — N-API workspace session + CLI (publish name @vmz/vmz)",
|
|
6
|
-
"license": "MIT",
|
|
7
2
|
"bin": {
|
|
8
3
|
"vmz": "./bin/vmz.js"
|
|
9
4
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@vmz/commander": "0.3.4",
|
|
7
|
+
"@vmz/core": "0.3.4",
|
|
8
|
+
"@vmz/diagnostic": "0.3.4",
|
|
9
|
+
"@vmz/plugin": "0.3.4",
|
|
10
|
+
"@vmz/protocol": "0.3.4",
|
|
11
|
+
"jiti": "^2.6.1"
|
|
12
|
+
},
|
|
13
|
+
"description": "VMZ Node toolchain — N-API workspace session + CLI (publish name @vmz/vmz)",
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/node": "^22.15.0",
|
|
16
|
+
"@vmz/plugin": "0.3.4",
|
|
17
|
+
"@vmz/plugin-katex": "0.3.4",
|
|
18
|
+
"@vmz/plugin-markdown-it": "0.3.4",
|
|
19
|
+
"@vmz/plugin-shiki": "0.3.4",
|
|
20
|
+
"@vmz/test": "0.3.4",
|
|
21
|
+
"linkedom": "^0.18.13",
|
|
22
|
+
"typescript": "^5.8.3",
|
|
23
|
+
"vmz-plugin-conformance": "0.3.4"
|
|
24
|
+
},
|
|
12
25
|
"exports": {
|
|
13
26
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
27
|
+
"default": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./bundler-adapter": {
|
|
31
|
+
"default": "./dist/workspace/bundler-adapter.js",
|
|
32
|
+
"types": "./dist/workspace/bundler-adapter.d.ts"
|
|
16
33
|
},
|
|
17
34
|
"./cli": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
35
|
+
"default": "./dist/cli/cli.js",
|
|
36
|
+
"types": "./dist/cli/cli.d.ts"
|
|
20
37
|
},
|
|
21
38
|
"./dev-session": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
39
|
+
"default": "./dist/dev/dev-session.js",
|
|
40
|
+
"types": "./dist/dev/dev-session.d.ts"
|
|
24
41
|
},
|
|
25
|
-
"./
|
|
26
|
-
"
|
|
27
|
-
"
|
|
42
|
+
"./document-check": {
|
|
43
|
+
"default": "./dist/document/document-check.js",
|
|
44
|
+
"types": "./dist/document/document-check.d.ts"
|
|
28
45
|
},
|
|
29
|
-
"./
|
|
30
|
-
"
|
|
31
|
-
"
|
|
46
|
+
"./document-schema": {
|
|
47
|
+
"default": "./dist/document/document-schema.js",
|
|
48
|
+
"types": "./dist/document/document-schema.d.ts"
|
|
32
49
|
},
|
|
33
|
-
"./
|
|
34
|
-
"
|
|
35
|
-
"
|
|
50
|
+
"./plugin-host": {
|
|
51
|
+
"default": "./dist/workspace/plugin-host.js",
|
|
52
|
+
"types": "./dist/workspace/plugin-host.d.ts"
|
|
36
53
|
},
|
|
37
54
|
"./test-discover": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
},
|
|
41
|
-
"./document-check": {
|
|
42
|
-
"types": "./dist/document/document-check.d.ts",
|
|
43
|
-
"default": "./dist/document/document-check.js"
|
|
55
|
+
"default": "./dist/cli/test-discover.js",
|
|
56
|
+
"types": "./dist/cli/test-discover.d.ts"
|
|
44
57
|
},
|
|
45
|
-
"./
|
|
46
|
-
"
|
|
47
|
-
"
|
|
58
|
+
"./test-protocol": {
|
|
59
|
+
"default": "./dist/cli/test-protocol.js",
|
|
60
|
+
"types": "./dist/cli/test-protocol.d.ts"
|
|
48
61
|
}
|
|
49
62
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
63
|
+
"files": [
|
|
64
|
+
"bin",
|
|
65
|
+
"dist",
|
|
66
|
+
"locales",
|
|
67
|
+
"host-runtime-files.json",
|
|
68
|
+
"README.md"
|
|
69
|
+
],
|
|
70
|
+
"keywords": [
|
|
71
|
+
"vmz",
|
|
72
|
+
"napi",
|
|
73
|
+
"compiler",
|
|
74
|
+
"cli"
|
|
75
|
+
],
|
|
76
|
+
"license": "MIT",
|
|
77
|
+
"main": "./dist/index.js",
|
|
78
|
+
"name": "@vmz/vmz",
|
|
79
|
+
"optionalDependencies": {
|
|
80
|
+
"@vmz/vmz-darwin-arm64": "0.3.4",
|
|
81
|
+
"@vmz/vmz-darwin-x64": "0.3.4",
|
|
82
|
+
"@vmz/vmz-linux-arm64": "0.3.4",
|
|
83
|
+
"@vmz/vmz-linux-x64": "0.3.4",
|
|
84
|
+
"@vmz/vmz-win32-arm64": "0.3.4",
|
|
85
|
+
"@vmz/vmz-win32-x64": "0.3.4"
|
|
57
86
|
},
|
|
58
87
|
"peerDependencies": {
|
|
59
|
-
"@vmz/plugin-markdown-it": "0.3.
|
|
60
|
-
"@vmz/test": "0.3.
|
|
88
|
+
"@vmz/plugin-markdown-it": "0.3.4",
|
|
89
|
+
"@vmz/test": "0.3.4",
|
|
61
90
|
"typescript": "^5.8.3"
|
|
62
91
|
},
|
|
63
92
|
"peerDependenciesMeta": {
|
|
@@ -71,40 +100,24 @@
|
|
|
71
100
|
"optional": true
|
|
72
101
|
}
|
|
73
102
|
},
|
|
74
|
-
"files": [
|
|
75
|
-
"bin",
|
|
76
|
-
"dist",
|
|
77
|
-
"locales",
|
|
78
|
-
"README.md"
|
|
79
|
-
],
|
|
80
|
-
"scripts": {
|
|
81
|
-
"build:native": "node ../../../scripts/build/napi.mjs",
|
|
82
|
-
"build": "pnpm run build:native && pnpm run build:js",
|
|
83
|
-
"test": "node --experimental-strip-types ./tests/run-node-tests.ts",
|
|
84
|
-
"verify": "node --import ../../../scripts/test/resolve-ts-from-js.mjs --experimental-strip-types ./tests/conformance/run.ts",
|
|
85
|
-
"verify:list": "node --import ../../../scripts/test/resolve-ts-from-js.mjs --experimental-strip-types ./tests/conformance/run.ts --list",
|
|
86
|
-
"build:js": "node ../../../scripts/build/clean-package-dist.mjs packages/runtimes/vmz/dist && tsc -p tsconfig.json"
|
|
87
|
-
},
|
|
88
103
|
"publishConfig": {
|
|
89
104
|
"access": "public",
|
|
90
105
|
"name": "@vmz/vmz"
|
|
91
106
|
},
|
|
92
|
-
"keywords": [
|
|
93
|
-
"vmz",
|
|
94
|
-
"napi",
|
|
95
|
-
"compiler",
|
|
96
|
-
"cli"
|
|
97
|
-
],
|
|
98
|
-
"optionalDependencies": {
|
|
99
|
-
"@vmz/vmz-win32-x64": "0.3.1",
|
|
100
|
-
"@vmz/vmz-win32-arm64": "0.3.1",
|
|
101
|
-
"@vmz/vmz-darwin-x64": "0.3.1",
|
|
102
|
-
"@vmz/vmz-darwin-arm64": "0.3.1",
|
|
103
|
-
"@vmz/vmz-linux-x64": "0.3.1",
|
|
104
|
-
"@vmz/vmz-linux-arm64": "0.3.1"
|
|
105
|
-
},
|
|
106
107
|
"repository": {
|
|
108
|
+
"directory": "packages/runtimes/vmz",
|
|
107
109
|
"type": "git",
|
|
108
110
|
"url": "git+https://github.com/doki-land/vmz-framework.git"
|
|
109
|
-
}
|
|
111
|
+
},
|
|
112
|
+
"scripts": {
|
|
113
|
+
"build": "pnpm run build:native && pnpm run build:js",
|
|
114
|
+
"build:js": "node ../../../scripts/build/clean-package-dist.mjs packages/runtimes/vmz/dist && tsc -p tsconfig.json",
|
|
115
|
+
"build:native": "node ../../../scripts/build/napi.mjs",
|
|
116
|
+
"test": "node --experimental-strip-types ./tests/run-node-tests.ts",
|
|
117
|
+
"verify": "node --import ../../../scripts/test/resolve-ts-from-js.mjs --experimental-strip-types ./tests/conformance/run.ts",
|
|
118
|
+
"verify:list": "node --import ../../../scripts/test/resolve-ts-from-js.mjs --experimental-strip-types ./tests/conformance/run.ts --list"
|
|
119
|
+
},
|
|
120
|
+
"type": "module",
|
|
121
|
+
"types": "./dist/index.d.ts",
|
|
122
|
+
"version": "0.3.4"
|
|
110
123
|
}
|