@mostra/cli 0.5.0 → 0.6.1

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.
@@ -0,0 +1 @@
1
+ export { t as run } from "./run-3QZacDLc.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mostra/cli",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "The mostra command: author, verify, publish, share and wait on agent artifacts, as a thin client of the Mostra host protocol.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "The Mostra Authors",
@@ -34,17 +34,17 @@
34
34
  "provenance": true
35
35
  },
36
36
  "dependencies": {
37
- "@mostra/protocol": "0.5.0",
38
- "@mostra/sdk": "0.5.0",
39
- "zod": "4.6.6"
37
+ "@mostra/protocol": "0.6.1",
38
+ "@mostra/sdk": "0.6.1",
39
+ "zod": "4.6.7"
40
40
  },
41
41
  "devDependencies": {
42
- "@mostra/runtime": "0.5.0",
42
+ "@mostra/runtime": "0.6.1",
43
43
  "@mostra/tools": "0.0.0",
44
- "@types/node": "24.19.1",
45
- "tsdown": "0.23.0",
44
+ "@types/node": "24.19.2",
45
+ "tsdown": "0.23.1",
46
46
  "typescript": "7.0.2",
47
- "vitest": "5.0.3"
47
+ "vitest": "5.0.5"
48
48
  },
49
49
  "bin": {
50
50
  "mostra": "./dist/bin.js"
@@ -460,7 +460,7 @@ export const doctorCommand: CommandDef = defineCommand({
460
460
  async run(context) {
461
461
  const checks: DoctorCheck[] = [];
462
462
  const node = Number(process.versions.node.split(".")[0]);
463
- const unsupported = checkPlatform(process.platform, process.arch, context.env);
463
+ const unsupported = checkPlatform(process.platform, process.arch);
464
464
  checks.push(
465
465
  unsupported === undefined
466
466
  ? {
package/src/platform.ts CHANGED
@@ -1,24 +1,16 @@
1
1
  /**
2
2
  * The CLI's platform gate (D35, D146, RT-07), the runtime's rule (`home/platform.ts` in
3
- * `@mostra/runtime`) repeated where the CLI must decide before it reaches any runtime: macOS and
4
- * Linux on x64 and arm64; Windows on x64 and arm64 only behind the development switch
5
- * `MOSTRA_DEV_WINDOWS=1`, which only Mostra's CI sets until WP-W3; everything else fails closed.
3
+ * `@mostra/runtime`) repeated where the CLI must decide before it reaches any runtime: macOS,
4
+ * Linux and Windows on x64 and arm64; everything else fails closed.
6
5
  */
7
6
  import { createDiagnostic, type Diagnostic } from "@mostra/protocol";
8
- import type { Environment } from "./home.ts";
9
7
 
10
8
  /** `MOSTRA_PLATFORM_UNSUPPORTED` for a platform Mostra doesn't run on, else `undefined`. */
11
- export function checkPlatform(
12
- platform: string,
13
- arch: string,
14
- env: Environment,
15
- ): Diagnostic | undefined {
16
- if (arch === "x64" || arch === "arm64") {
17
- if (platform === "darwin" || platform === "linux") return undefined;
18
- if (platform === "win32" && env["MOSTRA_DEV_WINDOWS"] === "1") return undefined;
19
- }
9
+ export function checkPlatform(platform: string, arch: string): Diagnostic | undefined {
10
+ const supported = platform === "darwin" || platform === "linux" || platform === "win32";
11
+ if (supported && (arch === "x64" || arch === "arm64")) return undefined;
20
12
  const name = platform === "win32" ? `Windows (${platform}-${arch})` : `${platform}-${arch}`;
21
13
  return createDiagnostic("MOSTRA_PLATFORM_UNSUPPORTED", {
22
- message: `Mostra doesn't run on ${name}; it supports macOS and Linux on x64 and arm64.`,
14
+ message: `Mostra doesn't run on ${name}; it supports macOS, Linux and Windows on x64 and arm64.`,
23
15
  });
24
16
  }
package/src/run.ts CHANGED
@@ -143,7 +143,7 @@ export async function run(io: RunnerIo): Promise<number> {
143
143
 
144
144
  // Every entry point fails closed on an unsupported platform before touching the home (D35).
145
145
  const platform = io.platform ?? process.platform;
146
- const unsupported = checkPlatform(platform, io.arch ?? process.arch, io.env);
146
+ const unsupported = checkPlatform(platform, io.arch ?? process.arch);
147
147
  if (unsupported) return fail(unsupported);
148
148
 
149
149
  let parsed: ReturnType<typeof parseCommandLine>;