feat(panel): add VS Code extension, Remote-SSH, and remote CLI support

- Auto-discover and provision standard VS Code / VS Code Insiders argv.json without touching Antigravity Desktop port files
- Add independent vsCodeMountMode (default: Input Box / composer, optional: Top Bar / dual; omit Sidebar Only in VS Code host)
- Support Remote-SSH endpoint isolation for VS Code Antigravity extension and instant conversation following via passive route watcher + /api/bridge-route-ping
- Add remote-cli-bridge to detect remote agy CLI usage-monitor plugin and auto-mount on Top Bar over on-demand SSH loopback tunnels (tier1Only), skipping hosts with neither plugin
- Optimize background CDP polling and remote idle polling cadence
- Update README.md / README.zh-CN.md and add regression tests
This commit is contained in:
2026-11-26 18:01:30 +08:00
parent 710b09275f
commit 13b84bfa86
18 changed files with 1953 additions and 170 deletions
+8 -5
View File
@@ -227,11 +227,12 @@ async function callRemoteEndpointLsRpc(endpoint, method, body, timeoutMs) {
const baseUrl = String(endpoint.baseUrl || endpoint.origin || '').trim().replace(/\/+$/, '');
const csrfToken = String(endpoint.csrfToken || '').trim();
const windowInvoker = getRemoteWindowRpcInvoker();
const tier1Only = endpoint.tier1Only === true;
const canTryTier1 =
Boolean(baseUrl) &&
isStrictLoopbackUrl(baseUrl) &&
Boolean(csrfToken) &&
!shouldRemoteEndpointPreferTier2(endpoint);
(tier1Only || !shouldRemoteEndpointPreferTier2(endpoint));
let tier1Err = null;
if (canTryTier1) {
@@ -252,10 +253,10 @@ async function callRemoteEndpointLsRpc(endpoint, method, body, timeoutMs) {
status === 401 ||
status === 403 ||
(status === 404 && method !== 'GetCascadeTrajectory');
if (isTransportAuthOrRouteMiss) {
if (isTransportAuthOrRouteMiss && !tier1Only) {
markRemoteEndpointPreferTier2(endpoint);
} else {
// 业务级 4xx(如单个会话已被删除导致的 GetCascadeTrajectory 404)直接上抛,不误触熔断
// 业务级 4xx(如单个会话已被删除导致的 GetCascadeTrajectory 404)或纯 Tier-1 隧道端点直接上抛
throw tier1Err;
}
} catch (err) {
@@ -263,11 +264,13 @@ async function callRemoteEndpointLsRpc(endpoint, method, body, timeoutMs) {
throw err;
}
tier1Err = err;
markRemoteEndpointPreferTier2(endpoint);
if (!tier1Only) {
markRemoteEndpointPreferTier2(endpoint);
}
}
}
if (typeof windowInvoker === 'function') {
if (!tier1Only && typeof windowInvoker === 'function') {
const remainingMs = canTryTier1 ? deadlineMs - Date.now() : safeTimeoutMs;
if (!canTryTier1 || remainingMs >= REMOTE_TIER2_MIN_REMAINING_MS) {
return windowInvoker(