@mobius-os/mobius 0.3.1 → 0.3.3
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/bin/mobius-tui.js +1 -1
- package/package.json +1 -1
- package/src/aimux.ts +1 -1
package/bin/mobius-tui.js
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
5
5
|
import { dirname, join } from 'node:path'
|
|
6
6
|
|
|
7
7
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
8
|
-
const tsx = join(here, '..', 'node_modules', '.bin', 'tsx')
|
|
8
|
+
const tsx = join(here, '..', 'node_modules', '.bin', process.platform === 'win32' ? 'tsx.cmd' : 'tsx')
|
|
9
9
|
const entry = join(here, '..', 'src', 'main.tsx')
|
|
10
10
|
|
|
11
11
|
const result = spawnSync(tsx, [entry], { stdio: 'inherit' })
|
package/package.json
CHANGED
package/src/aimux.ts
CHANGED
|
@@ -261,7 +261,7 @@ export class AimuxSupervisor {
|
|
|
261
261
|
onStatus({ state: 'starting', phase: 'connecting', detail: '正在连接 Mobius AIMUX bridge…', identifier, attempt: this.reconnectAttempt })
|
|
262
262
|
const child = this.opts.spawnProcess?.() ?? spawn(
|
|
263
263
|
aimuxExe(),
|
|
264
|
-
['reverse', 'connect', `${server.replace(/\/$/, '')}/aimux_bridge`, '--identifier', identifier, '--token', token, '--replace'],
|
|
264
|
+
['reverse', 'connect', `${server.replace(/\/$/, '')}/aimux_bridge`, '--identifier', identifier, '--token', token, '--replace', ...(process.platform === 'win32' ? ['--silent-shell'] : [])],
|
|
265
265
|
{ windowsHide: true },
|
|
266
266
|
)
|
|
267
267
|
this.child = child
|