@stackbone/cli 0.1.0-alpha.5 → 0.1.0-alpha.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/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.0-alpha.6] - 2026-05-18
11
+
12
+ ### Fixed
13
+
14
+ - Git Bash / MSYS / MinGW on Windows are no longer caught by the native
15
+ Windows guard. `isWindowsNative` now also inspects
16
+ `process.env.MSYSTEM` (`MINGW64`, `MINGW32`, `MSYS`), which Git for
17
+ Windows sets in every Git Bash session — including the one VS Code's
18
+ integrated terminal spawns. The banner and `unsupported_platform`
19
+ envelope still steer PowerShell / CMD users to WSL2, with Git Bash now
20
+ listed alongside as a supported alternative.
21
+
10
22
  ## [0.1.0-alpha.5] - 2026-05-18
11
23
 
12
24
  ### Added
package/main.js CHANGED
@@ -1467,8 +1467,8 @@ var ANSI = {
1467
1467
  //#endregion
1468
1468
  //#region src/core/platform-guard.ts
1469
1469
  var WINDOWS_NATIVE_ISSUE_URL = "https://github.com/stackbone/stackbone/issues/70";
1470
- var SUMMARY = "Native Windows shells (PowerShell, CMD, Git Bash) are not supported yet. Run the CLI from WSL2.";
1471
- var isWindowsNative = (platform = process.platform) => platform === "win32";
1470
+ var SUMMARY = "Native Windows shells (PowerShell, CMD) are not supported yet. Run the CLI from WSL2 or Git Bash.";
1471
+ var isWindowsNative = (platform = process.platform, env = process.env) => platform === "win32" && !env["MSYSTEM"];
1472
1472
  var formatUnsupportedPlatformBanner = (colors) => {
1473
1473
  const mark = colors ? `${ANSI.accent}◆◆◆${ANSI.reset}` : "◆◆◆";
1474
1474
  const wordmark = colors ? `${ANSI.bold}${ANSI.white}stackbone${ANSI.reset}` : "stackbone";
@@ -1477,20 +1477,22 @@ var formatUnsupportedPlatformBanner = (colors) => {
1477
1477
  return [
1478
1478
  `${mark} ${wordmark}`,
1479
1479
  "",
1480
- `${accent("▲")} Native Windows shells (PowerShell, CMD, Git Bash) are not supported yet.`,
1480
+ `${accent("▲")} Native Windows shells (PowerShell, CMD) are not supported yet.`,
1481
1481
  ` ${dim(`Tracked in ${WINDOWS_NATIVE_ISSUE_URL}`)}`,
1482
1482
  "",
1483
- " Please run the CLI from WSL2:",
1484
- ` ${dim("1.")} wsl --install -d Ubuntu ${dim("# one-time, requires reboot")}`,
1485
- ` ${dim("2.")} (in the Ubuntu shell) pnpm install -g @stackbone/cli`,
1486
- ` ${dim("3.")} stackbone <command>`,
1483
+ " Please run the CLI from WSL2 or Git Bash:",
1484
+ ` ${dim("")} Git Bash: open a Git Bash terminal and re-run the command`,
1485
+ ` ${dim("")} WSL2:`,
1486
+ ` ${dim("1.")} wsl --install -d Ubuntu ${dim("# one-time, requires reboot")}`,
1487
+ ` ${dim("2.")} (in the Ubuntu shell) pnpm install -g @stackbone/cli`,
1488
+ ` ${dim("3.")} stackbone <command>`,
1487
1489
  ""
1488
1490
  ].join("\n");
1489
1491
  };
1490
1492
  var buildUnsupportedPlatformError = () => new StackboneCliError({
1491
1493
  code: "unsupported_platform",
1492
1494
  message: SUMMARY,
1493
- suggestion: `Run from WSL2 — see ${WINDOWS_NATIVE_ISSUE_URL}`
1495
+ suggestion: `Run from WSL2 or Git Bash — see ${WINDOWS_NATIVE_ISSUE_URL}`
1494
1496
  });
1495
1497
  //#endregion
1496
1498
  //#region src/core/version.ts
@@ -1505,7 +1507,7 @@ var isVersionFlag = (rawArgs) => rawArgs.length === 1 && VERSION_FLAGS.has(rawAr
1505
1507
  var formatVersionOutput = (input) => `stackbone-cli ${input.cliVersion}\ncontract ${input.contractVersion}`;
1506
1508
  //#endregion
1507
1509
  //#region src/dev/contract.ts
1508
- var STACKBONE_CLI_BUILD_VERSION = "0.1.0-alpha.5";
1510
+ var STACKBONE_CLI_BUILD_VERSION = "0.1.0-alpha.6";
1509
1511
  /**
1510
1512
  * Capabilities the local emulator advertises on `GET /api/contract`. Typed as
1511
1513
  * `readonly Capability[]` so the compiler refuses any string outside the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackbone/cli",
3
- "version": "0.1.0-alpha.5",
3
+ "version": "0.1.0-alpha.6",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "bin": {
Binary file
Binary file