buninu 0.1.4 → 0.1.5

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.5 - 2026-08-16
4
+
5
+ ### Fixed
6
+
7
+ - Enable jsmdcui's mdcui encoding for `--cdp-maze`, which selects the bundled
8
+ Markdown maze without passing a `.md` filename or a `--demo*` argument.
9
+
10
+ ### Changed
11
+
12
+ - Prefer PowerShell (`pwsh.exe`, then `powershell.exe`) as the default Windows
13
+ shell, falling back to `%COMSPEC%` or `cmd.exe` when PowerShell is unavailable.
14
+
3
15
  ## 0.1.4 - 2026-08-16
4
16
 
5
17
  ### Changed
@@ -4,7 +4,7 @@ sd=$(dirname "$(realpath "$0")")
4
4
 
5
5
  for arg do
6
6
  case "$arg" in
7
- *.[mM][dD]|--demo*) exec bun "$sd"/src/index.js --mdcui "$@" ;;
7
+ *.[mM][dD]|--demo*|--cdp-maze) exec bun "$sd"/src/index.js --mdcui "$@" ;;
8
8
  esac
9
9
  done
10
10
 
package/bin/init.js CHANGED
@@ -130,9 +130,9 @@ async function detectEnvironment() {
130
130
  return {
131
131
  name: "windows",
132
132
  shell:
133
- await findCommand(process.env.COMSPEC) ||
134
133
  Bun.which("pwsh.exe") ||
135
134
  Bun.which("powershell.exe") ||
135
+ await findCommand(process.env.COMSPEC) ||
136
136
  Bun.which("cmd.exe") ||
137
137
  "cmd.exe",
138
138
  };
package/bin/jsmdcui.bat CHANGED
@@ -5,6 +5,7 @@ for %%A in (%*) do (
5
5
  set "JSMDCUI_ARGUMENT=%%~A"
6
6
  if /I "%%~xA"==".md" set "JSMDCUI_ENCODING=--mdcui"
7
7
  if /I "!JSMDCUI_ARGUMENT:~0,6!"=="--demo" set "JSMDCUI_ENCODING=--mdcui"
8
+ if /I "!JSMDCUI_ARGUMENT!"=="--cdp-maze" set "JSMDCUI_ENCODING=--mdcui"
8
9
  )
9
10
  call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\src\index.js" %JSMDCUI_ENCODING% %*
10
11
  exit /b %ERRORLEVEL%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buninu",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Buninu is a portable, self-bootstrapping Unix-like userspace built on Bun that runs across operating systems",
5
5
  "type": "module",
6
6
  "main": "./bin/init.js",