aiterm-mcp 0.70.12 → 0.70.13

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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.70.13] - 2026-11-10
11
+
12
+ - A terminal's seat MCP route (the R12 reverse forward) starts seconds after credential-load instead of at the next 60 s check. Every active Aiterm process now watches the credentials directory, and a newly written `<ref>.json` runs the forward check at once. After an execution restart, seats on keyless terminals were without BellTeam MCP for up to a minute after the key arrived. The 60 s check stays as the fallback.
13
+
10
14
  ## [0.70.12] - 2026-11-10
11
15
 
12
16
  - Terminal seats' MCP route back (the R12 reverse forward) comes back after an execution restart. When the keeper first ran before the terminal's credential was loaded, its shell probe refused at once with `CREDENTIAL_NOT_LOADED` and left the keeper marked as starting, so that process never held the forward again. Every seat on the terminal then reached a closed port (the binding still named it, so a launch was handed the dead port without a wait). The keeper now releases its lock on that refusal, and the next 60 s check after credential-load starts the forward on the same port.
@@ -3243,7 +3247,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3243
3247
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3244
3248
  provenance.
3245
3249
 
3246
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.12...HEAD
3250
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.13...HEAD
3251
+ [0.70.13]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.12...v0.70.13
3247
3252
  [0.70.12]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.11...v0.70.12
3248
3253
  [0.70.11]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.10...v0.70.11
3249
3254
  [0.70.10]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.9...v0.70.10
package/README.ja.md CHANGED
@@ -215,7 +215,7 @@ runtime-error store は canonical dotagents config の `collection.enabled: true
215
215
  場合だけ収集し、既定OFF、network送信は行いません。tag起点CIのnpm provenance(OIDC Trusted
216
216
  Publishing)で公開し、GitHub Release が Official MCP Registry を再登録します。
217
217
 
218
- **状態:** 開発継続中 · 現行公開版 **v0.70.12** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
218
+ **状態:** 開発継続中 · 現行公開版 **v0.70.13** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
219
219
 
220
220
  ### 更新と巻き戻し
221
221
 
package/README.md CHANGED
@@ -227,7 +227,7 @@ collection is off by default and performs no network I/O. It ships via
227
227
  tag-triggered CI with npm provenance (OIDC Trusted Publishing); the GitHub
228
228
  Release re-registers the Official MCP Registry entry.
229
229
 
230
- **Status:** actively maintained · current public release **v0.70.12** · 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).
230
+ **Status:** actively maintained · current public release **v0.70.13** · 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).
231
231
 
232
232
  ### Update and rollback
233
233
 
@@ -801,6 +801,7 @@ export function extractMcpHeaders(config) {
801
801
  const FORWARD_RESTART_MS = 15_000, FORWARD_REFUSALS_BEFORE_NEW_PORT = 4, LAUNCH_GRACE_MS = 120_000;
802
802
  const keepers = new Map();
803
803
  let maintainTimer = null;
804
+ let credentialWatch = null;
804
805
  function writeBinding(ref, change) {
805
806
  const bindings = readStore().map(item => item.ref === ref ? { ...item, ...change } : item);
806
807
  writeJson0600(storePath(), { schema: "aiterm.remote-bindings.v1", bindings });
@@ -947,6 +948,17 @@ export function maintainSeatForwards() {
947
948
  maintainTimer = setInterval(maintainSeatForwards, 60_000);
948
949
  maintainTimer.unref();
949
950
  }
951
+ // credential-load is a one-shot in another process: start the forward when its <ref>.json lands, not at the next 60 s check.
952
+ if (!credentialWatch)
953
+ try {
954
+ credentialWatch = fs.watch(credentialDir(), (_event, name) => { if (!name || String(name).endsWith(".json"))
955
+ maintainSeatForwards(); });
956
+ credentialWatch.on("error", () => { credentialWatch?.close(); credentialWatch = null; });
957
+ credentialWatch.unref();
958
+ }
959
+ catch {
960
+ credentialWatch = null; /* the 60 s check still covers it */
961
+ }
950
962
  }
951
963
  /** The terminal-local port for seat URLs reaching container port `ingress`; starts the keeper if no process holds it yet. */
952
964
  export async function ensureSeatForward(ref, ingress, timeoutMs = 30_000) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.70.12",
3
+ "version": "0.70.13",
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, Cursor Agent CLI, and Antigravity CLI, plus durable PTYs for SSH, containers, and REPLs.",
6
6
  "keywords": [