buninu 0.1.3 → 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,28 @@
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
+
15
+ ## 0.1.4 - 2026-08-16
16
+
17
+ ### Changed
18
+
19
+ - Enable jsmdcui's mdcui encoding when any launcher argument begins with
20
+ `--demo`, in addition to the existing `.md` file detection.
21
+ - Run jsmdcui's `src/index.js` entry point directly from the Unix and Windows
22
+ `jsmdcui`, `jmi`, and `glow` launchers instead of going through its `tui`
23
+ wrapper. This gives demos such as `--demo-img-change` the expected `Bun.main`
24
+ path so their bundled image assets can be resolved correctly.
25
+
3
26
  ## 0.1.3 - 2026-08-16
4
27
 
5
28
  ### Fixed
@@ -4,8 +4,8 @@ sd=$(dirname "$(realpath "$0")")
4
4
 
5
5
  for arg do
6
6
  case "$arg" in
7
- *.[mM][dD]) exec bun "$sd"/tui --mdcui "$@" ;;
7
+ *.[mM][dD]|--demo*|--cdp-maze) exec bun "$sd"/src/index.js --mdcui "$@" ;;
8
8
  esac
9
9
  done
10
10
 
11
- exec bun "$sd"/tui "$@"
11
+ exec bun "$sd"/src/index.js "$@"
package/bin/glow.bat CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
- call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\tui" --cat %*
2
+ call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\src\index.js" --cat %*
3
3
  exit /b %ERRORLEVEL%
package/bin/glow.sh CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  sd=$(dirname "$(realpath "$0")")
4
4
 
5
- exec bun "$sd"/../apps/jsmdcui/tui --cat "$@"
5
+ exec bun "$sd"/../apps/jsmdcui/src/index.js --cat "$@"
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/jmi.bat CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
- call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\tui" %*
2
+ call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\src\index.js" %*
3
3
  exit /b %ERRORLEVEL%
package/bin/jmi.sh CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  sd=$(dirname "$(realpath "$0")")
4
4
 
5
- exec bun "$sd"/../apps/jsmdcui/tui "$@"
5
+ exec bun "$sd"/../apps/jsmdcui/src/index.js "$@"
package/bin/jsmdcui.bat CHANGED
@@ -1,5 +1,11 @@
1
1
  @echo off
2
+ setlocal EnableExtensions EnableDelayedExpansion
2
3
  set "JSMDCUI_ENCODING="
3
- for %%A in (%*) do if /I "%%~xA"==".md" set "JSMDCUI_ENCODING=--mdcui"
4
- call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\tui" %JSMDCUI_ENCODING% %*
4
+ for %%A in (%*) do (
5
+ set "JSMDCUI_ARGUMENT=%%~A"
6
+ if /I "%%~xA"==".md" set "JSMDCUI_ENCODING=--mdcui"
7
+ if /I "!JSMDCUI_ARGUMENT:~0,6!"=="--demo" set "JSMDCUI_ENCODING=--mdcui"
8
+ if /I "!JSMDCUI_ARGUMENT!"=="--cdp-maze" set "JSMDCUI_ENCODING=--mdcui"
9
+ )
10
+ call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\src\index.js" %JSMDCUI_ENCODING% %*
5
11
  exit /b %ERRORLEVEL%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buninu",
3
- "version": "0.1.3",
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",