aiterm-mcp 0.35.0 → 0.35.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.35.1] - 2026-09-10
11
+
12
+ ### Fixed
13
+
14
+ - Claudeの起動時に、指定された作業ディレクトリの実体パスを記録する。macOSの`/var`やリンク経由のcwdでも、会話記録を使うAPIエラー検出が正しい保存場所を参照する。
15
+
10
16
  ## [0.35.0] - 2026-09-10
11
17
 
12
18
  ### Added
@@ -1634,7 +1640,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
1634
1640
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
1635
1641
  provenance.
1636
1642
 
1637
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.35.0...HEAD
1643
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.35.1...HEAD
1644
+ [0.35.1]: https://github.com/kitepon/aiterm-mcp/compare/v0.35.0...v0.35.1
1638
1645
  [0.35.0]: https://github.com/kitepon/aiterm-mcp/compare/v0.34.0...v0.35.0
1639
1646
  [0.34.0]: https://github.com/kitepon/aiterm-mcp/compare/v0.33.1...v0.34.0
1640
1647
  [0.33.1]: https://github.com/kitepon/aiterm-mcp/compare/v0.33.0...v0.33.1
package/README.ja.md CHANGED
@@ -171,7 +171,7 @@ runtime-error store は canonical dotagents config の `collection.enabled: true
171
171
  場合だけ収集し、既定OFF、network送信は行いません。tag起点CIのnpm provenance(OIDC Trusted
172
172
  Publishing)で公開し、GitHub Release が Official MCP Registry を再登録します。
173
173
 
174
- **状態:** 開発継続中 · 現行公開版 **v0.35.0** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
174
+ **状態:** 開発継続中 · 現行公開版 **v0.35.1** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
175
175
 
176
176
  ### 更新と巻き戻し
177
177
 
@@ -528,6 +528,8 @@ Claude Codeは2.1.259以上の対話sessionに対応する。`aiterm-setup`が
528
528
 
529
529
  hookを持たない旧版へ戻す時は、install前に`aiterm-setup --remove-claude-parent-hooks`を実行する。Aiterm専用hookだけを解除し、他製品のhookと設定は保持する。
530
530
 
531
+ Claudeをリンク経由の`cwd`から起動した場合も、実体パスに対応する会話記録を参照する。
532
+
531
533
 
532
534
  ### トークン削減
533
535
 
package/README.md CHANGED
@@ -185,7 +185,7 @@ collection is off by default and performs no network I/O. It ships via
185
185
  tag-triggered CI with npm provenance (OIDC Trusted Publishing); the GitHub
186
186
  Release re-registers the Official MCP Registry entry.
187
187
 
188
- **Status:** actively maintained · current public release **v0.35.0** · 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).
188
+ **Status:** actively maintained · current public release **v0.35.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).
189
189
 
190
190
  ### Update and rollback
191
191
 
@@ -561,6 +561,8 @@ Claude Codeは2.1.259以上の対話sessionに対応する。`aiterm-setup`が
561
561
 
562
562
  hookを持たない旧版へ戻す時は、install前に`aiterm-setup --remove-claude-parent-hooks`を実行する。Aiterm専用hookだけを解除し、他製品のhookと設定は保持する。
563
563
 
564
+ Claudeをリンク経由の`cwd`から起動した場合も、実体パスに対応する会話記録を参照する。
565
+
564
566
  **For other parent hosts**, dispatch and start the receipt's waiter in a separate process:
565
567
 
566
568
  1. Launch the child with `agent_launch({ harness: ... })`; every launch shares the normal project/user environment and adds only completion correlation plus lineage. Send a turn with plain `pty_send` (or `claude_turn issue` for durable Claude operations). The call returns immediately with an `event_cursor` in its structured receipt.
@@ -224,6 +224,8 @@ export function claudeStartupAction(screen, trustProject) {
224
224
  // submit座礁観測のcomposer領域マーカー(ready判定と同じ記号を行頭基準で探す)。
225
225
  export const CLAUDE_COMPOSER_MARKER_RE = /^\s*❯/;
226
226
  export function createClaudeAgentMetadata(name, cwd, initialPrompt, launchOperationId, launchRequestDigest, lineageContext, model, effort) {
227
+ // Claude Codeはリンクを解決したcwdでproject slugを作る。起動時に固定し、記録の監視時に再解決しない。
228
+ const transcriptCwd = cwd === null ? null : fs.realpathSync(cwd);
227
229
  const launchId = randomBytes(16).toString("hex");
228
230
  const eventFile = agentEventPath(name, launchId);
229
231
  const resultFile = agentClaudeResultPath(name, launchId);
@@ -236,7 +238,7 @@ export function createClaudeAgentMetadata(name, cwd, initialPrompt, launchOperat
236
238
  launch_id: launchId,
237
239
  event_file: eventFile,
238
240
  created_at: new Date().toISOString(),
239
- cwd,
241
+ cwd: transcriptCwd,
240
242
  vendor_session_id: randomUUID(),
241
243
  initial_prompt: initialPrompt,
242
244
  launch_operation_id: launchOperationId,
package/docs/DESIGN.md CHANGED
@@ -111,6 +111,9 @@ Claude Desktopのチャット、Web、`agent_id`付きの会話(`--agent`で
111
111
  この受信契約の対象に含めない。
112
112
  対応対象は公式command hookとMCP metadataを提供するClaude Codeの対話sessionである。
113
113
 
114
+ Claudeの起動metadataには指定cwdの実体パスを保存する。Claude Codeが実体パスから作るproject slugと
115
+ APIエラー監視の参照先を一致させ、監視中のリンク変更で保存場所を取り違えない。
116
+
114
117
  `trust_project:true`は対象projectの既知のworkspace、hooks、MCP初期同意を起動準備として進める意図である。
115
118
  promptなしでも入力受付とharness生存を確認して`startup.ready`を返す。指定なしのpromptなし起動は
116
119
  従来どおり`startup.not_checked`で返す。初手receiptは未要求・未送信・送信済み未確認・開始確認を分ける。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
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": [