Skip to content
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ approaches. Don't re-litigate a recorded decision without new facts.
- `input-and-windows.md` — keyboard focus, key rail/ornament cluster,
terminal window chrome, dictation, Copy Mode / Select Text, scene routing
and tab moves, keyboard avoidance, secret fields, held-backspace filler.
- `links-and-viewers.md` — link/path confirmation, ⌗ viewport, ▤ file viewer.
- `links-and-viewers.md` — link/path confirmation, ⌗ viewport, agent
browser (`mpx browser` agent tabs), ▤ file viewer.
- `backends-and-probe.md` — tmux invocation facts, mixed tmux+herdr hosts,
the herdr adaptation, the Rex adaptation (probe, attach, panes, mint), session creation
(setup scripts, per-host tmux conf, systemd-run), file attach/drop.
Expand Down
8 changes: 7 additions & 1 deletion Multiplex/App/AppRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ final class AppRuntime {
let entitlements: EntitlementStore
let attention: AttentionCenter
let localNetworkAccess = LocalNetworkAccessMonitor()
let networkChanges = NetworkChangeMonitor()
let networkChanges: NetworkChangeMonitor
let appLock = AppLockStore()
let externalActions = ExternalActionRouter.shared
let bind = BindController.shared
/// The late half of keep-alive. Registered from
/// `didFinishLaunchingWithOptions` (BGTaskScheduler rejects anything
/// later) and re-scheduled whenever the app leaves.
let backgroundRefresh: BackgroundRefresh
/// `mpx browser` for hosts that opted in (Host Settings ▸ Agent Browser).
let agentBrowser: AgentBrowserService

init() {
// Attention wiring: every probe's events funnel through one center,
Expand All @@ -44,6 +46,9 @@ final class AppRuntime {
hub: hub,
attention: attention
)
let networkChanges = NetworkChangeMonitor()
self.networkChanges = networkChanges
agentBrowser = AgentBrowserService(store: store, workspace: workspace, networkChanges: networkChanges)

// Background keep-alive: the assertion is taken only when a host the
// user opted in has something for the extra time to do, so the
Expand Down Expand Up @@ -75,6 +80,7 @@ final class AppRuntime {
}
BackgroundActivity.shared.start()
backgroundRefresh.start()
agentBrowser.start()
#if DEBUG
backgroundRefresh.installDebugHook()
#endif
Expand Down
242 changes: 242 additions & 0 deletions Multiplex/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,22 @@
}
}
},
"%@ closed the shell before mpx answered. Try again, or run `mpx skill install` there yourself." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "mpxが応答する前に%@がシェルを閉じました。もう一度試すか、そのホストで`mpx skill install`を自分で実行してください。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@ 在 mpx 回應前就關閉了 shell。請再試一次,或自行在該主機上執行 `mpx skill install`。"
}
}
}
},
"%@ connected" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -1670,6 +1686,86 @@
}
}
},
"Agent browser" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "エージェントブラウザ"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "Agent 瀏覽器"
}
}
}
},
"Agents on this host can open and operate web pages in Multiplex" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "このホストのエージェントが Multiplex で Web ページを開いて操作できます"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "這部主機上的 Agent 可以在 Multiplex 中開啟並操作網頁"
}
}
}
},
"Let agents drive a browser" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "エージェントにブラウザを操作させる"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "讓 Agent 操作瀏覽器"
}
}
}
},
"Off: agents on this host cannot open pages in Multiplex." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "オフ:このホストのエージェントは Multiplex でページを開けません。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "關閉:這部主機上的 Agent 無法在 Multiplex 中開啟網頁。"
}
}
}
},
"While Multiplex is open, agents on this host can open web pages beside your terminal and read, click, and type in them with `mpx browser` (mpx 0.2 or later). INSTALL SKILL teaches them how: it runs `mpx skill install` on this host. Agent tabs load through this host over SSH, so they see the host's network and never your device's; they keep their own cookies and never see your own tabs." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Multiplexが開いている間、このホストのエージェントは`mpx browser`でターミナルの横にWebページを開き、読み取り・クリック・入力ができます(mpx 0.2以降が必要)。INSTALL SKILLを押すと、このホストで`mpx skill install`が実行され、エージェントに使い方を教えられます。エージェントのタブはSSH経由でこのホストを通して読み込まれるため、見えるのはホストのネットワークだけで、あなたのデバイスのネットワークには届きません。独自のCookieを持ち、あなた自身のタブは見えません。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Multiplex 開啟時,這部主機上的 Agent 可以用 `mpx browser` 在終端機旁開啟網頁,並讀取、點按與輸入內容(需要 mpx 0.2 以上)。INSTALL SKILL 會教它們如何使用:它會在這部主機上執行 `mpx skill install`。Agent 標籤頁經由 SSH 透過這部主機載入,只看得到主機的網路,碰不到你裝置所在的網路;它們有自己的 Cookie,也看不到你自己的標籤頁。"
}
}
}
},
"A Rex tile opens the window its session is showing, with its panes. New Rex sessions need Rex already running on the host, so Rex is never the default." : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -7908,6 +8004,22 @@
}
}
},
"Install the agent skill on this host" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "このホストにエージェントスキルをインストール"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "在這部主機上安裝 Agent 技能"
}
}
}
},
"Install guide" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -8680,6 +8792,82 @@
}
}
},
"mpx couldn't write the skill into %@: %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "mpx couldn't write the skill into %1$@: %2$@"
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "mpxはスキルを%1$@に書き込めませんでした:%2$@"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "mpx 無法將技能寫入 %1$@:%2$@"
}
}
}
},
"mpx wasn't found on %@. Install it there (brew install multiplex-term/tap/mpx), then try again." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@にmpxが見つかりません。そのホストにインストールして(brew install multiplex-term/tap/mpx)から、もう一度お試しください。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "在 %@ 上找不到 mpx。請在該主機上安裝(brew install multiplex-term/tap/mpx),然後再試一次。"
}
}
}
},
"mpx on %@ couldn't install the skill: %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "mpx on %1$@ couldn't install the skill: %2$@"
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%1$@のmpxはスキルをインストールできませんでした:%2$@"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%1$@ 上的 mpx 無法安裝技能:%2$@"
}
}
}
},
"mpx on %@ reported nothing installed. Try again." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@のmpxは何もインストールしなかったと報告しました。もう一度お試しください。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@ 上的 mpx 回報沒有安裝任何項目。請再試一次。"
}
}
}
},
"Magenta" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -9996,6 +10184,28 @@
}
}
},
"No answer from mpx on %@ after %lld seconds. Try again, or run `mpx skill install` there yourself." : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "No answer from mpx on %1$@ after %2$lld seconds. Try again, or run `mpx skill install` there yourself."
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%1$@のmpxから%2$lld秒経っても応答がありません。もう一度試すか、そのホストで`mpx skill install`を自分で実行してください。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%1$@ 上的 mpx 在 %2$lld 秒內沒有回應。請再試一次,或自行在該主機上執行 `mpx skill install`。"
}
}
}
},
"NO COMMANDS" : {
"localizations" : {
"ja" : {
Expand Down Expand Up @@ -16065,6 +16275,38 @@
}
}
},
"The multiplex skill is on %@. Agents started from now on can use it." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "multiplexスキルを%@にインストールしました。これ以降に起動するエージェントが利用できます。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "multiplex 技能已安裝到 %@。之後啟動的 Agent 都能使用。"
}
}
}
},
"The mpx on %@ is too old to install the skill. Update it to 0.2 or later, then try again." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@のmpxは古すぎて、スキルをインストールできません。0.2以降に更新してから、もう一度お試しください。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "%@ 上的 mpx 版本太舊,無法安裝技能。請更新到 0.2 以上,然後再試一次。"
}
}
}
},
"The machine declined the bind." : {
"localizations" : {
"ja" : {
Expand Down
Loading
Loading