spinuptui 1.1.1 → 1.1.2
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 +8 -1
- package/package.json +1 -1
- package/src/lib/sshExecPolicy.ts +3 -1
- package/src/ui/views/KumaSite.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,12 @@ version; such changes are called out here.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [1.1.2] - 2026-10-15
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- **`spinuptui ssh-exec` no longer refuses a quoted `wp` command that ends in a flag.** `bash -c 'wp --info'` was denied because the closing quote landed on the flag and looked like an unfinished value.
|
|
18
|
+
- **Uptime Kuma connection errors now show the actual reason.** A long instance URL pushed the cause (TLS, DNS, proxy…) past the edge of the connect form, leaving just `Couldn't reach Uptime Kuma at https://…:`. The connect form's and the Alerts panel's error lines now wrap.
|
|
19
|
+
|
|
14
20
|
## [1.1.1] - 2026-10-01
|
|
15
21
|
|
|
16
22
|
### Changed
|
|
@@ -1479,7 +1485,8 @@ Initial tagged release.
|
|
|
1479
1485
|
### Notes
|
|
1480
1486
|
- Read-only release: works with a SpinupWP **Read Only** API token.
|
|
1481
1487
|
|
|
1482
|
-
[Unreleased]: https://github.com/mwender/spinupwp-tui/compare/v1.1.
|
|
1488
|
+
[Unreleased]: https://github.com/mwender/spinupwp-tui/compare/v1.1.2...HEAD
|
|
1489
|
+
[1.1.2]: https://github.com/mwender/spinupwp-tui/compare/v1.1.1...v1.1.2
|
|
1483
1490
|
[1.1.1]: https://github.com/mwender/spinupwp-tui/compare/v1.1.0...v1.1.1
|
|
1484
1491
|
[1.1.0]: https://github.com/mwender/spinupwp-tui/compare/v1.0.0...v1.1.0
|
|
1485
1492
|
[1.0.0]: https://github.com/mwender/spinupwp-tui/compare/v0.28.0...v1.0.0
|
package/package.json
CHANGED
package/src/lib/sshExecPolicy.ts
CHANGED
|
@@ -118,7 +118,9 @@ function unsafeWpCli(cmd: string): string | null {
|
|
|
118
118
|
const tokens = segment.trim().split(/\s+/).filter(Boolean)
|
|
119
119
|
let i = 0
|
|
120
120
|
for (; i < tokens.length && tokens[i]!.replace(/^['"]/, "").startsWith("-"); i++) {
|
|
121
|
-
|
|
121
|
+
// A quote that is only trailing is an enclosing `bash -c '…'` closing after a
|
|
122
|
+
// final flag (`bash -c 'wp --info'`), not an opened value.
|
|
123
|
+
if (hasOpenQuote(tokens[i]!) && /['"]/.test(tokens[i]!.replace(/['"]+$/, ""))) return "wp option value has quoting this guard can't read safely"
|
|
122
124
|
}
|
|
123
125
|
const words: string[] = []
|
|
124
126
|
for (; i < tokens.length && words.length < 3; i++) {
|
|
@@ -653,7 +653,7 @@ export function KumaSite() {
|
|
|
653
653
|
<text content=" Logging in…" fg={theme.textDim} wrapMode="none" />
|
|
654
654
|
</box>
|
|
655
655
|
) : error ? (
|
|
656
|
-
<text content={`✕ ${error}`} fg={theme.bad}
|
|
656
|
+
<text content={`✕ ${error}`} fg={theme.bad} />
|
|
657
657
|
) : (
|
|
658
658
|
<text content="⏎ next field / connect · Esc back" fg={theme.textFaint} wrapMode="none" />
|
|
659
659
|
)}
|
|
@@ -870,7 +870,7 @@ export function KumaSite() {
|
|
|
870
870
|
if (alerts.kind === "error") {
|
|
871
871
|
return (
|
|
872
872
|
<>
|
|
873
|
-
<text content={`✕ ${alerts.error}`} fg={theme.bad}
|
|
873
|
+
<text content={`✕ ${alerts.error}`} fg={theme.bad} />
|
|
874
874
|
<box style={{ height: 1 }} />
|
|
875
875
|
<text content="esc back" fg={theme.textFaint} wrapMode="none" />
|
|
876
876
|
</>
|
|
@@ -911,7 +911,7 @@ export function KumaSite() {
|
|
|
911
911
|
<text content=" Rewiring…" fg={theme.textDim} wrapMode="none" />
|
|
912
912
|
</box>
|
|
913
913
|
) : alerts.flash ? (
|
|
914
|
-
<text content={alerts.flash} fg={alerts.flash.startsWith("✓") ? theme.good : theme.bad}
|
|
914
|
+
<text content={alerts.flash} fg={alerts.flash.startsWith("✓") ? theme.good : theme.bad} />
|
|
915
915
|
) : (
|
|
916
916
|
<text content="↑↓ select · ⏎ toggle on/off · esc done" fg={theme.textFaint} wrapMode="none" />
|
|
917
917
|
)}
|