aiterm-mcp 0.43.1 → 0.43.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/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.43.3] - 2026-09-29
11
+
12
+ ### 修正
13
+
14
+ - `aiterm-setup --codex-steer disable`で、Aitermのhookを外すと後ろにある他製品・利用者のCodex hookの位置がずれ、Codexの承認と合わなくなって止まっていた(aiterm-steer-delivery 0.1.1で修正、gpt-connectorの担当が見つけた)。位置が動くhookの承認を新しい位置へ写してから書き換える。
15
+
16
+ ## [0.43.2] - 2026-09-29
17
+
18
+ ### 修正
19
+
20
+ - 起動元のAitermと子のagentとで状態の置き場が割れ、子の完了が親へ届かないことがあった(rabbitでCodex・Cursor・Grokを親にした時に再現)。Aitermは置き場を`XDG_RUNTIME_DIR`から決めるが、Codex等が起動したMCPの環境にはこの変数が無く、子のpaneの環境にはあるため、子のStop hookが別の場所へ完了を書いていた。子の起動時に自分の置き場を`AITERM_STATE_BASE`で渡し、子とhookはそれを最優先で使う。
21
+
10
22
  ## [0.43.1] - 2026-09-29
11
23
 
12
24
  ### 修正
@@ -1868,7 +1880,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
1868
1880
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
1869
1881
  provenance.
1870
1882
 
1871
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.43.1...HEAD
1883
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.43.3...HEAD
1884
+ [0.43.3]: https://github.com/kitepon/aiterm-mcp/compare/v0.43.2...v0.43.3
1885
+ [0.43.2]: https://github.com/kitepon/aiterm-mcp/compare/v0.43.1...v0.43.2
1872
1886
  [0.43.1]: https://github.com/kitepon/aiterm-mcp/compare/v0.43.0...v0.43.1
1873
1887
  [0.43.0]: https://github.com/kitepon/aiterm-mcp/compare/v0.42.2...v0.43.0
1874
1888
  [0.42.2]: https://github.com/kitepon/aiterm-mcp/compare/v0.42.1...v0.42.2
package/README.ja.md CHANGED
@@ -203,7 +203,7 @@ runtime-error store は canonical dotagents config の `collection.enabled: true
203
203
  場合だけ収集し、既定OFF、network送信は行いません。tag起点CIのnpm provenance(OIDC Trusted
204
204
  Publishing)で公開し、GitHub Release が Official MCP Registry を再登録します。
205
205
 
206
- **状態:** 開発継続中 · 現行公開版 **v0.43.1** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
206
+ **状態:** 開発継続中 · 現行公開版 **v0.43.3** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
207
207
 
208
208
  ### 更新と巻き戻し
209
209
 
package/README.md CHANGED
@@ -217,7 +217,7 @@ collection is off by default and performs no network I/O. It ships via
217
217
  tag-triggered CI with npm provenance (OIDC Trusted Publishing); the GitHub
218
218
  Release re-registers the Official MCP Registry entry.
219
219
 
220
- **Status:** actively maintained · current public release **v0.43.1** · runs on Linux · WSL2 · macOS · native Windows (tmux on POSIX, the tmux-CLI-compatible [psmux](https://github.com/psmux/psmux) on native Windows — no WSL required) · MIT · see the [CHANGELOG](CHANGELOG.md).
220
+ **Status:** actively maintained · current public release **v0.43.3** · runs on Linux · WSL2 · macOS · native Windows (tmux on POSIX, the tmux-CLI-compatible [psmux](https://github.com/psmux/psmux) on native Windows — no WSL required) · MIT · see the [CHANGELOG](CHANGELOG.md).
221
221
 
222
222
  ### Update and rollback
223
223
 
package/dist/core.js CHANGED
@@ -3906,6 +3906,7 @@ function cursorAgentEnvEntries(meta, sid, envVars = []) {
3906
3906
  ["AITERM_AGENT_DEPTH", String(meta.delegation_depth ?? 1)],
3907
3907
  ["AITERM_AGENT_LINEAGE", meta.lineage ?? `host-root>${meta.kind}:${sid}`],
3908
3908
  ["AITERM_AGENT_DELEGATION_ALLOWED", meta.delegation_allowed === true ? "true" : "false"],
3909
+ ["AITERM_STATE_BASE", runtimeStateBase()],
3909
3910
  ];
3910
3911
  }
3911
3912
  function agentEnvPrefix(meta, sid, envVars = []) {
@@ -3927,6 +3928,7 @@ function agentEnvPrefix(meta, sid, envVars = []) {
3927
3928
  `AITERM_AGENT_DEPTH=${shq(String(meta.delegation_depth ?? 1))}`,
3928
3929
  `AITERM_AGENT_LINEAGE=${shq(meta.lineage ?? `host-root>${meta.kind}:${sid}`)}`,
3929
3930
  `AITERM_AGENT_DELEGATION_ALLOWED=${shq(meta.delegation_allowed === true ? "true" : "false")}`,
3931
+ `AITERM_STATE_BASE=${shq(runtimeStateBase())}`,
3930
3932
  ];
3931
3933
  if (meta.kind === "claude" || meta.kind === "codex" || meta.kind === "cursor")
3932
3934
  return common;
@@ -16,6 +16,19 @@ export function currentUid() {
16
16
  return process.getuid();
17
17
  }
18
18
  export function runtimeStateBase() {
19
+ // 子のagentとそのhookは、起動したAitermと同じ置き場を使う。起動元(例: Codexが起動したMCP)と子のpaneとで
20
+ // XDG_RUNTIME_DIR の有無が違うと置き場が割れ、子の完了記録が親に見えなくなる(rabbitで再現)。
21
+ // 起動時に AITERM_STATE_BASE を子の環境へ渡し、それがあれば最優先で使う。
22
+ const inherited = process.env.AITERM_STATE_BASE;
23
+ if (inherited) {
24
+ try {
25
+ if (fs.statSync(inherited).isDirectory())
26
+ return inherited;
27
+ }
28
+ catch {
29
+ /* 渡された置き場が無ければ通常の決め方へ戻す */
30
+ }
31
+ }
19
32
  // Windows Node の os.tmpdir() は TMPDIR を参照せず TEMP を返す。一方、psmux namespace は
20
33
  // tmux-runtime.ts で TMPDIR を最優先する。test/隔離processがTMPDIRだけを変えた時に
21
34
  // PTYは隔離されてもmanaged metadataが本番TEMPへ残ると、隔離側killAllが本番相関だけを
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.43.1",
3
+ "version": "0.43.3",
4
4
  "mcpName": "io.github.kitepon/aiterm-mcp",
5
5
  "description": "Persistent terminal MCP with one harness-based launcher for Claude Code, Codex CLI, Grok CLI, and Cursor Agent CLI, plus durable PTYs for SSH, containers, and REPLs.",
6
6
  "keywords": [
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@modelcontextprotocol/sdk": "^1.29.0",
73
- "aiterm-steer-delivery": "^0.1.0",
73
+ "aiterm-steer-delivery": "^0.1.1",
74
74
  "ws": "8.21.3",
75
75
  "zod": "^4.4.3"
76
76
  },