@cocorograph/hub-agent 0.5.0 → 0.5.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/bin/hub-agent.mjs +8 -0
- package/package.json +1 -1
- package/src/hub-bundle.mjs +1 -1
package/bin/hub-agent.mjs
CHANGED
|
@@ -17,6 +17,14 @@ import path from "node:path"
|
|
|
17
17
|
|
|
18
18
|
import { Command } from "commander"
|
|
19
19
|
|
|
20
|
+
// launchd / systemd --user 等は LANG / LC_ALL を継承しないため、tmux が C ロケールで
|
|
21
|
+
// `-F` の format string に含まれる tab (0x09) を `_` に変換して出力する不具合がある
|
|
22
|
+
// (`D00000_cockpit\t1\t...` → `D00000_cockpit_1_...`)。これにより listSessions の
|
|
23
|
+
// パースが完全に壊れ、session 名が全 6 フィールドを `_` 連結した文字列になる。
|
|
24
|
+
// 子プロセスに継承される env を UTF-8 locale で固定する (既に何かしら設定済みなら尊重)。
|
|
25
|
+
if (!process.env.LANG) process.env.LANG = "C.UTF-8"
|
|
26
|
+
if (!process.env.LC_ALL) process.env.LC_ALL = "C.UTF-8"
|
|
27
|
+
|
|
20
28
|
import { hasConfig, readConfig } from "../src/config.mjs"
|
|
21
29
|
import { enroll } from "../src/enroll.mjs"
|
|
22
30
|
import { syncBundle } from "../src/hub-bundle.mjs"
|
package/package.json
CHANGED
package/src/hub-bundle.mjs
CHANGED