aiterm-mcp 0.23.0 → 0.23.1

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.
Files changed (2) hide show
  1. package/dist/core.js +8 -3
  2. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -342,9 +342,14 @@ function assertSessionName(name) {
342
342
  throw new AitermError(`session 名は英数字と _ - のみ・64文字以内にしてください: ${JSON.stringify(name)}`, 2);
343
343
  }
344
344
  function currentUid() {
345
- if (typeof process.getuid !== "function") {
346
- throw new AitermError("agent_done は POSIX/macOS/Linux のみ対応です(native Windows は未対応)", 2);
347
- }
345
+ // Windows(native)は process.getuid を持たない。以前はここで throw していたが、
346
+ // agent metadata の存在確認経由で素の pty_send まで巻き込んで全 send を殺していた。
347
+ // Windows の fs.Stats.uid は常に 0 なので、ここも 0 を返せば owner 比較
348
+ // (st.uid !== currentUid()) は自然に通過する。Windows は POSIX owner 検証を
349
+ // 持たない(NTFS ACL は別体系)という既知の制約の明示的受容であり、POSIX 側は
350
+ // getuid をそのまま返すため挙動不変。
351
+ if (typeof process.getuid !== "function")
352
+ return 0;
348
353
  return process.getuid();
349
354
  }
350
355
  function runtimeStateBase() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "mcpName": "io.github.kitepon-rgb/aiterm-mcp",
5
5
  "description": "Persistent tmux terminal MCP that lets Claude Code drive Codex CLI's interactive TUI, including slash commands and $imagegen. Also runs durable PTY sessions for SSH, containers, REPLs, and coding agents.",
6
6
  "keywords": [