@rehpic/vcli 0.1.0-beta.71.1 → 0.1.0-beta.72.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 +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1314,6 +1314,10 @@ var TerminalPeerManager = class {
|
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
1316
|
console.log(`[${ts()}] Client connected (${tmuxSessionName})`);
|
|
1317
|
+
try {
|
|
1318
|
+
execFileSync(TMUX, ["refresh-client", "-t", viewerSession]);
|
|
1319
|
+
} catch {
|
|
1320
|
+
}
|
|
1317
1321
|
const dataHandler = ptyProcess.onData((data) => {
|
|
1318
1322
|
if (ws.readyState === WebSocket.OPEN) {
|
|
1319
1323
|
ws.send(data);
|
|
@@ -1329,6 +1333,10 @@ var TerminalPeerManager = class {
|
|
|
1329
1333
|
Math.max(parsed.cols, 10),
|
|
1330
1334
|
Math.max(parsed.rows, 4)
|
|
1331
1335
|
);
|
|
1336
|
+
try {
|
|
1337
|
+
execFileSync(TMUX, ["refresh-client", "-t", viewerSession]);
|
|
1338
|
+
} catch {
|
|
1339
|
+
}
|
|
1332
1340
|
return;
|
|
1333
1341
|
}
|
|
1334
1342
|
} catch {
|
|
@@ -2431,7 +2439,6 @@ var BridgeService = class {
|
|
|
2431
2439
|
}
|
|
2432
2440
|
);
|
|
2433
2441
|
writeLiveActivitiesCache(activities);
|
|
2434
|
-
await this.syncWorkSessionTerminals(activities);
|
|
2435
2442
|
if (this.terminalPeer) {
|
|
2436
2443
|
for (const activity of activities) {
|
|
2437
2444
|
if (activity.workSessionId && activity.tmuxSessionName) {
|
|
@@ -2494,7 +2501,7 @@ var BridgeService = class {
|
|
|
2494
2501
|
`Verified ${providerLabel(attachedSession.process.provider)} in ${activity.tmuxPaneId}`
|
|
2495
2502
|
);
|
|
2496
2503
|
await this.updateLiveActivity(activity._id, {
|
|
2497
|
-
status: "
|
|
2504
|
+
status: "active",
|
|
2498
2505
|
latestSummary: `Verified ${providerLabel(attachedSession.process.provider)} in ${activity.tmuxPaneId}`,
|
|
2499
2506
|
processId: attachedSession.processId,
|
|
2500
2507
|
title: activity.title
|
|
@@ -2767,7 +2774,7 @@ var BridgeService = class {
|
|
|
2767
2774
|
`Started tmux session ${tmuxSession.sessionName}:${tmuxSession.windowName}. Waiting to verify ${providerLabel(provider)} in ${tmuxSession.paneId}.`
|
|
2768
2775
|
);
|
|
2769
2776
|
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
2770
|
-
status: "
|
|
2777
|
+
status: "active",
|
|
2771
2778
|
latestSummary: `Running in ${tmuxSession.sessionName}:${tmuxSession.windowName}; waiting to verify ${providerLabel(provider)}`,
|
|
2772
2779
|
delegatedRunId: payload?.delegatedRunId,
|
|
2773
2780
|
launchStatus: "running",
|
|
@@ -2776,7 +2783,7 @@ var BridgeService = class {
|
|
|
2776
2783
|
return;
|
|
2777
2784
|
}
|
|
2778
2785
|
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
2779
|
-
status: "
|
|
2786
|
+
status: "active",
|
|
2780
2787
|
latestSummary: `Running in ${tmuxSession.sessionName}:${tmuxSession.windowName}`,
|
|
2781
2788
|
delegatedRunId: payload?.delegatedRunId,
|
|
2782
2789
|
launchStatus: "running",
|