@linzumi/cli 1.0.117 → 1.0.119
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 +1 -1
- package/dist/index.js +336 -336
- package/package.json +2 -1
- package/scripts/build-editor-parity-oracle.mjs +1523 -0
- package/scripts/build-forwarding-parity-oracle.mjs +1390 -0
- package/scripts/build-mcp-parity-oracle.mjs +357 -0
- package/scripts/build-mcp-selector-parity-oracle.mjs +65 -0
- package/scripts/build-vm-sandbox-parity-oracle.mjs +1266 -0
- package/scripts/build.mjs +41 -0
package/scripts/build.mjs
CHANGED
|
@@ -61,6 +61,47 @@ await build({
|
|
|
61
61
|
banner,
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
+
// M3 cluster 14 selector story (compute-nodes program, M3 packaging): the
|
|
65
|
+
// ReScript impl's guest MCP bridge, bundled from the compiled
|
|
66
|
+
// CommanderMcpEntry artifact into dist/impl-res/mcp-server.mjs - the head
|
|
67
|
+
// of the 'rescript' candidate ladder (mcpServerBundleCandidates in
|
|
68
|
+
// src/vmSandbox/startVmCodexAppServer.ts / CommanderMcpBundleSelection.res).
|
|
69
|
+
// Same no-externals rationale as dist/mcp-server.mjs above: the guest gets
|
|
70
|
+
// ONE file and a bare `node`. Like the F5 cross-harness bridge, the
|
|
71
|
+
// ReScript artifacts may not be built in this checkout (publish CI builds
|
|
72
|
+
// only @linzumi/cli); the selector ladder is fail-soft by design - a
|
|
73
|
+
// missing impl-res bundle falls back to the flat TS bundle - so the honest
|
|
74
|
+
// posture here is warn-and-skip, never a broken stub. Post-M4.3 this leg
|
|
75
|
+
// BECOMES the dist/mcp-server.mjs build and the TS leg above is deleted
|
|
76
|
+
// with the TS impl.
|
|
77
|
+
try {
|
|
78
|
+
await build({
|
|
79
|
+
entryPoints: [
|
|
80
|
+
join(
|
|
81
|
+
packageRoot,
|
|
82
|
+
'../linzumi-cli-rescript/src/mcp/CommanderMcpEntry.res.mjs'
|
|
83
|
+
),
|
|
84
|
+
],
|
|
85
|
+
bundle: true,
|
|
86
|
+
platform: 'node',
|
|
87
|
+
target: 'node20',
|
|
88
|
+
format: 'esm',
|
|
89
|
+
outfile: join(packageRoot, 'dist/impl-res/mcp-server.mjs'),
|
|
90
|
+
minify: true,
|
|
91
|
+
sourcemap: false,
|
|
92
|
+
legalComments: 'none',
|
|
93
|
+
banner,
|
|
94
|
+
});
|
|
95
|
+
} catch (error) {
|
|
96
|
+
console.warn(
|
|
97
|
+
'[build] impl-res mcp-server bundle could not be built (are the ' +
|
|
98
|
+
'linzumi-cli-rescript artifacts compiled?); the selector ladder falls ' +
|
|
99
|
+
`back to the flat dist/mcp-server.mjs: ${
|
|
100
|
+
error instanceof Error ? error.message : String(error)
|
|
101
|
+
}`
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
64
105
|
// The in-guest CLOUD turn driver: a self-contained dist/cloud-supervisor.mjs
|
|
65
106
|
// bundle that vmCloudSupervisor injects onto the persistent overlay of a
|
|
66
107
|
// workspace-agent smolcloud VM and runs with a bare `node` (the guest's
|