mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-27 04:49:49 -07:00
94260bab16
Remote temp dirs are now created and removed by the remote SubMiner itself (sync --make-temp / --remove-temp, validated against its own tmpdir) instead of mktemp/rm, and the flow detects the remote shell (POSIX, cmd, PowerShell) to pick quoting and SubMiner install-location candidates - %LOCALAPPDATA% app install, launcher shim, or PATH - with no POSIX PATH prefix on Windows. Remote temp paths are normalized to forward slashes for scp and the CLI. Verified end-to-end against a throwaway sshd with the app binary as the resolved remote command.
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
// Re-exported from the shared stats-sync engine so the launcher and the
|
|
// app's --sync-cli mode resolve remotes and shell out identically.
|
|
export {
|
|
assertSafeSshHost,
|
|
detectRemoteShellFlavor,
|
|
quoteForRemoteShell,
|
|
resolveRemoteSubminerCommand,
|
|
runScp,
|
|
runSsh,
|
|
shellQuote,
|
|
type RemoteRunResult,
|
|
type RemoteShellFlavor,
|
|
} from '../../src/core/services/stats-sync/ssh.js';
|