@rehpic/vcli 0.1.0-beta.85.1 → 0.1.0-beta.87.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/dist/index.js
CHANGED
|
@@ -2439,14 +2439,39 @@ var BridgeService = class {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
);
|
|
2441
2441
|
writeLiveActivitiesCache(activities);
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2442
|
+
for (const activity of activities) {
|
|
2443
|
+
if (activity.workSessionId && activity.tmuxSessionName) {
|
|
2444
|
+
this.terminalPeer?.watchSession(
|
|
2445
|
+
activity.workSessionId,
|
|
2446
|
+
activity.tmuxSessionName,
|
|
2447
|
+
activity.tmuxPaneId
|
|
2448
|
+
);
|
|
2449
|
+
}
|
|
2450
|
+
if (activity.workSessionId && activity.tmuxPaneId) {
|
|
2451
|
+
try {
|
|
2452
|
+
const paneTitle = execFileSync2(
|
|
2453
|
+
"tmux",
|
|
2454
|
+
[
|
|
2455
|
+
"display-message",
|
|
2456
|
+
"-p",
|
|
2457
|
+
"-t",
|
|
2458
|
+
activity.tmuxPaneId,
|
|
2459
|
+
"#{pane_title}"
|
|
2460
|
+
],
|
|
2461
|
+
{ encoding: "utf-8", timeout: 3e3 }
|
|
2462
|
+
).trim();
|
|
2463
|
+
if (paneTitle && paneTitle !== activity.workSessionTitle && !activity.titleLockedByUser) {
|
|
2464
|
+
void this.client.mutation(
|
|
2465
|
+
api.agentBridge.bridgePublic.updateWorkSessionAutoTitle,
|
|
2466
|
+
{
|
|
2467
|
+
deviceId: this.config.deviceId,
|
|
2468
|
+
deviceSecret: this.config.deviceSecret,
|
|
2469
|
+
workSessionId: activity.workSessionId,
|
|
2470
|
+
title: paneTitle
|
|
2471
|
+
}
|
|
2472
|
+
);
|
|
2473
|
+
}
|
|
2474
|
+
} catch {
|
|
2450
2475
|
}
|
|
2451
2476
|
}
|
|
2452
2477
|
}
|
|
@@ -5873,7 +5898,7 @@ async function checkForUpdate() {
|
|
|
5873
5898
|
timeout: 1e4
|
|
5874
5899
|
}).trim();
|
|
5875
5900
|
const tags = JSON.parse(tagsRaw);
|
|
5876
|
-
const latest = tags.
|
|
5901
|
+
const latest = tags.beta ?? tags.latest ?? "";
|
|
5877
5902
|
const current = readPackageVersionSync();
|
|
5878
5903
|
return {
|
|
5879
5904
|
current,
|