vibora 4.4.0 → 4.5.0
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/README.md +26 -7
- package/dist/assets/{index-j9FKYr9a.js → index-D1t1HX4q.js} +9 -9
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/index.js +20 -3
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/jpeg" href="/logo-dark.jpg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vibora</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-D1t1HX4q.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-DujV-tJ5.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -21601,14 +21601,31 @@ var terminalWebSocketHandlers = {
|
|
|
21601
21601
|
break;
|
|
21602
21602
|
}
|
|
21603
21603
|
case "tab:create": {
|
|
21604
|
-
const { name, position, directory, requestId, tempId } = message.payload;
|
|
21605
|
-
log2.ws.debug("tab:create request", { name, position, directory, clientId: clientData.id, requestId, tempId });
|
|
21604
|
+
const { name, position, directory, adoptTerminalId, requestId, tempId } = message.payload;
|
|
21605
|
+
log2.ws.debug("tab:create request", { name, position, directory, adoptTerminalId, clientId: clientData.id, requestId, tempId });
|
|
21606
21606
|
const tab = tabManager2.create({ name, position, directory });
|
|
21607
21607
|
log2.ws.info("tab:create created", { tabId: tab.id, name: tab.name, directory: tab.directory, requestId, tempId });
|
|
21608
21608
|
broadcast({
|
|
21609
21609
|
type: "tab:created",
|
|
21610
|
-
payload: { tab, requestId, tempId }
|
|
21610
|
+
payload: { tab, requestId, tempId, adoptTerminalId }
|
|
21611
21611
|
});
|
|
21612
|
+
if (adoptTerminalId) {
|
|
21613
|
+
const success = ptyManager2.assignTab(adoptTerminalId, tab.id);
|
|
21614
|
+
if (success) {
|
|
21615
|
+
const info = ptyManager2.getInfo(adoptTerminalId);
|
|
21616
|
+
log2.ws.info("tab:create adopted terminal", { terminalId: adoptTerminalId, tabId: tab.id });
|
|
21617
|
+
broadcast({
|
|
21618
|
+
type: "terminal:tabAssigned",
|
|
21619
|
+
payload: {
|
|
21620
|
+
terminalId: adoptTerminalId,
|
|
21621
|
+
tabId: tab.id,
|
|
21622
|
+
positionInTab: info?.positionInTab ?? 0
|
|
21623
|
+
}
|
|
21624
|
+
});
|
|
21625
|
+
} else {
|
|
21626
|
+
log2.ws.warn("tab:create failed to adopt terminal", { terminalId: adoptTerminalId, tabId: tab.id });
|
|
21627
|
+
}
|
|
21628
|
+
}
|
|
21612
21629
|
break;
|
|
21613
21630
|
}
|
|
21614
21631
|
case "tab:update": {
|