buninu 0.1.4 → 0.1.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 +12 -0
- package/README.md +7 -4
- package/apps/jsmdcui/jsmdcui.sh +1 -1
- package/bin/init.js +2 -2
- package/bin/jsmdcui.bat +1 -0
- package/package.json +1 -1
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
|
package/README.md
CHANGED
|
@@ -28,10 +28,13 @@ and self-bootstrapping design.
|
|
|
28
28
|
|
|
29
29
|
## Differences from upstream
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
### The bundled jsmdcui
|
|
32
|
+
* Is configured editor-first by MDCUI_DEFAULT_EDIT
|
|
33
|
+
* The command `jmi` with a Markdown file opens the normal terminal editor.(js micro editor)
|
|
34
|
+
* The command `jsmdcui` preserves its original behavior: `apps/jsmdcui/jsmdcui.sh`, which starts its `tui` entry point with `--mdcui` when running markdown Apps, and forwards all command-line arguments.
|
|
35
|
+
### The bundled jsgotty
|
|
36
|
+
* No longer depends on or ships `node-pty`.
|
|
37
|
+
* Its PTY is provided by Bun's terminal API.
|
|
35
38
|
|
|
36
39
|
## Install Bun
|
|
37
40
|
|
package/apps/jsmdcui/jsmdcui.sh
CHANGED
package/bin/init.js
CHANGED
|
@@ -119,7 +119,7 @@ async function findCommand(command) {
|
|
|
119
119
|
|
|
120
120
|
async function detectEnvironment() {
|
|
121
121
|
const windows = process.platform === "win32" || Boolean(process.env.WINDIR);
|
|
122
|
-
const termux = !windows && await pathExists("/data/data/com.termux");
|
|
122
|
+
const termux = !windows && await pathExists("/data/data/com.termux/files/usr/bin/bash");
|
|
123
123
|
const android = !windows && !termux && (
|
|
124
124
|
process.platform === "android" ||
|
|
125
125
|
await pathExists("/system/bin/linker64") ||
|
|
@@ -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