@mostra/cli 0.5.0 → 0.6.0

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/dist/bin.js CHANGED
@@ -54,7 +54,7 @@ async function start() {
54
54
  },
55
55
  stderrTty: process.stderr.isTTY === true,
56
56
  terminal: process.stdin.isTTY === true || process.stdout.isTTY === true || process.stderr.isTTY === true
57
- }) ?? await (await import("./run-CC8PNXLU.js")).run({
57
+ }) ?? await (await import("./run-C5xFv-9Z.js")).run({
58
58
  argv: process.argv.slice(2),
59
59
  env: process.env,
60
60
  cwd: process.cwd(),
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as COMMANDS, i as referenceMarkdown, n as commandDefinition, r as commandHelp, t as run } from "./run-BpVu5uQ8.js";
1
+ import { a as COMMANDS, i as referenceMarkdown, n as commandDefinition, r as commandHelp, t as run } from "./run-3QZacDLc.js";
2
2
  import { n as exitCodeFor, t as EXIT } from "./exit-CBIf8nAU.js";
3
3
  export { COMMANDS, EXIT, commandDefinition, commandHelp, exitCodeFor, referenceMarkdown, run };
@@ -941,9 +941,9 @@
941
941
  "severity": "error",
942
942
  "phase": "platform",
943
943
  "title": "Unsupported platform",
944
- "hint": "Run Mostra on macOS or Linux, on an x64 or arm64 machine.",
945
- "explanation": "Mostra runs on macOS and Linux, on x64 and arm64. On any other operating system or architecture every entry point stops with this code before it creates or changes anything, because the process model, the control endpoint and storage are built and tested only there. Windows on x64 and arm64 is being added and runs only in Mostra's own development builds until it is complete; a release stops there with this code too. The message names the platform that was detected.",
946
- "fix": "Run Mostra on a macOS or Linux machine with an x64 or arm64 processor. Windows support arrives in a 1.0 release."
944
+ "hint": "Run Mostra on macOS, glibc-based Linux or Windows, on an x64 or arm64 machine.",
945
+ "explanation": "Mostra runs on macOS, Linux with glibc and Windows, each on x64 and arm64. On any other operating system or architecture (32-bit Windows, musl-based Linux such as Alpine, BSDs) every entry point stops with this code before it creates or changes anything, because the process model, the control endpoint, storage and the runtime bundle are built and tested only on those platforms. The message names the platform that was detected.",
946
+ "fix": "Run Mostra on macOS, a glibc-based Linux or Windows, with an x64 or arm64 processor. On Alpine Linux, use a glibc-based image instead."
947
947
  },
948
948
  {
949
949
  "code": "MOSTRA_PUBLISH_ID_CONFLICT",
@@ -12,12 +12,12 @@ Unsupported platform. Severity: error. Phase: platform.
12
12
 
13
13
  ## What it means
14
14
 
15
- Mostra runs on macOS and Linux, on x64 and arm64. On any other operating system or architecture every entry point stops with this code before it creates or changes anything, because the process model, the control endpoint and storage are built and tested only there. Windows on x64 and arm64 is being added and runs only in Mostra's own development builds until it is complete; a release stops there with this code too. The message names the platform that was detected.
15
+ Mostra runs on macOS, Linux with glibc and Windows, each on x64 and arm64. On any other operating system or architecture (32-bit Windows, musl-based Linux such as Alpine, BSDs) every entry point stops with this code before it creates or changes anything, because the process model, the control endpoint, storage and the runtime bundle are built and tested only on those platforms. The message names the platform that was detected.
16
16
 
17
17
  ## How to fix it
18
18
 
19
- Run Mostra on a macOS or Linux machine with an x64 or arm64 processor. Windows support arrives in a 1.0 release.
19
+ Run Mostra on macOS, a glibc-based Linux or Windows, with an x64 or arm64 processor. On Alpine Linux, use a glibc-based image instead.
20
20
 
21
21
  ## Hint
22
22
 
23
- Run Mostra on macOS or Linux, on an x64 or arm64 machine.
23
+ Run Mostra on macOS, glibc-based Linux or Windows, on an x64 or arm64 machine.
@@ -394,18 +394,14 @@ function parseCommandLine(commands, argv) {
394
394
  //#region src/platform.ts
395
395
  /**
396
396
  * The CLI's platform gate (D35, D146, RT-07), the runtime's rule (`home/platform.ts` in
397
- * `@mostra/runtime`) repeated where the CLI must decide before it reaches any runtime: macOS and
398
- * Linux on x64 and arm64; Windows on x64 and arm64 only behind the development switch
399
- * `MOSTRA_DEV_WINDOWS=1`, which only Mostra's CI sets until WP-W3; everything else fails closed.
397
+ * `@mostra/runtime`) repeated where the CLI must decide before it reaches any runtime: macOS,
398
+ * Linux and Windows on x64 and arm64; everything else fails closed.
400
399
  */
401
400
  /** `MOSTRA_PLATFORM_UNSUPPORTED` for a platform Mostra doesn't run on, else `undefined`. */
402
- function checkPlatform(platform, arch, env) {
403
- if (arch === "x64" || arch === "arm64") {
404
- if (platform === "darwin" || platform === "linux") return void 0;
405
- if (platform === "win32" && env["MOSTRA_DEV_WINDOWS"] === "1") return void 0;
406
- }
401
+ function checkPlatform(platform, arch) {
402
+ if ((platform === "darwin" || platform === "linux" || platform === "win32") && (arch === "x64" || arch === "arm64")) return void 0;
407
403
  const name = platform === "win32" ? `Windows (${platform}-${arch})` : `${platform}-${arch}`;
408
- return createDiagnostic("MOSTRA_PLATFORM_UNSUPPORTED", { message: `Mostra doesn't run on ${name}; it supports macOS and Linux on x64 and arm64.` });
404
+ return createDiagnostic("MOSTRA_PLATFORM_UNSUPPORTED", { message: `Mostra doesn't run on ${name}; it supports macOS, Linux and Windows on x64 and arm64.` });
409
405
  }
410
406
  //#endregion
411
407
  //#region src/telemetry/zones.generated.ts
@@ -1934,7 +1930,7 @@ const doctorCommand = defineCommand({
1934
1930
  async run(context) {
1935
1931
  const checks = [];
1936
1932
  const node = Number(process.versions.node.split(".")[0]);
1937
- const unsupported = checkPlatform(process.platform, process.arch, context.env);
1933
+ const unsupported = checkPlatform(process.platform, process.arch);
1938
1934
  checks.push(unsupported === void 0 ? {
1939
1935
  name: "platform",
1940
1936
  status: "ok",
@@ -3726,7 +3722,7 @@ async function run(io) {
3726
3722
  return exitCodeFor(diagnostic.code);
3727
3723
  };
3728
3724
  const platform = io.platform ?? process.platform;
3729
- const unsupported = checkPlatform(platform, io.arch ?? process.arch, io.env);
3725
+ const unsupported = checkPlatform(platform, io.arch ?? process.arch);
3730
3726
  if (unsupported) return fail(unsupported);
3731
3727
  let parsed;
3732
3728
  try {
@@ -3918,4 +3914,4 @@ async function runRuntime(io, args, stdio) {
3918
3914
  //#endregion
3919
3915
  export { COMMANDS as a, referenceMarkdown as i, commandDefinition as n, commandHelp as r, run as t };
3920
3916
 
3921
- //# sourceMappingURL=run-BpVu5uQ8.js.map
3917
+ //# sourceMappingURL=run-3QZacDLc.js.map