dsh-remote 0.8.61 → 0.8.62
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/lib/client.js +8 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1925,6 +1925,9 @@ window.__ModuleLoader__.load({
|
|
|
1925
1925
|
? React.createElement(DirPicker, {
|
|
1926
1926
|
open: true,
|
|
1927
1927
|
busy: false,
|
|
1928
|
+
// 选目录 on a machine that is NOT current must browse THAT machine, not
|
|
1929
|
+
// whichever one happens to be current.
|
|
1930
|
+
initialMachineId: dirPick.machineId,
|
|
1928
1931
|
onPicked: (picked) => {
|
|
1929
1932
|
const target = dirPick.machineId
|
|
1930
1933
|
setDirPick(null)
|
|
@@ -1997,7 +2000,10 @@ window.__ModuleLoader__.load({
|
|
|
1997
2000
|
}
|
|
1998
2001
|
|
|
1999
2002
|
function DirPicker(props) {
|
|
2000
|
-
|
|
2003
|
+
// initialMachineId lets a caller open the picker FOR a specific machine. The
|
|
2004
|
+
// settings page needs it: 选目录 on a non-current machine must not silently
|
|
2005
|
+
// browse the current one.
|
|
2006
|
+
const { open, busy, onPicked, onCancel, initialMachineId } = props
|
|
2001
2007
|
const [tab, setTab] = React.useState('local')
|
|
2002
2008
|
const [machines, setMachines] = React.useState([])
|
|
2003
2009
|
const [machineId, setMachineId] = React.useState('')
|
|
@@ -2215,7 +2221,7 @@ window.__ModuleLoader__.load({
|
|
|
2215
2221
|
setMachines(r.machines || [])
|
|
2216
2222
|
const cur = (r.machines || []).find((m) => m.id === r.currentId)
|
|
2217
2223
|
setRecent((cur && cur.recentWorkspaces) || [])
|
|
2218
|
-
setMachineId(r.currentId || (r.machines && r.machines[0] && r.machines[0].id) || '')
|
|
2224
|
+
setMachineId(initialMachineId || r.currentId || (r.machines && r.machines[0] && r.machines[0].id) || '')
|
|
2219
2225
|
})
|
|
2220
2226
|
} }, [open])
|
|
2221
2227
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-remote",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.62",
|
|
4
4
|
"description": "Remote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive, multi-hop ProxyJump), pick a remote workspace, operate on it with 22 rw_* tools, conflict-aware mirror sync, an embedded PTY terminal, one-click remote dsh deploy + web UI attach, port forwarding, host grouping, remote sandbox fencing, audit log, keychain passwords.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "flymysql <flyphp@outlook.com>",
|