@cryptiklemur/lattice 1.22.2 → 1.22.3
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.
|
@@ -78,11 +78,22 @@ export function openTab(type: TabType): void {
|
|
|
78
78
|
label: labels[type],
|
|
79
79
|
closeable: type !== "chat",
|
|
80
80
|
};
|
|
81
|
+
|
|
82
|
+
var defaultChat = state.tabs.find(function (t) { return t.id === "chat" && !t.sessionId; });
|
|
83
|
+
var hasOnlyDefaultChat = defaultChat && state.tabs.length === 1;
|
|
84
|
+
|
|
85
|
+
var newTabs = hasOnlyDefaultChat
|
|
86
|
+
? [tab]
|
|
87
|
+
: [...state.tabs, tab];
|
|
88
|
+
|
|
81
89
|
var newPanes = state.panes.map(function (p) {
|
|
82
90
|
if (p.id === state.activePaneId) {
|
|
91
|
+
var updatedTabIds = hasOnlyDefaultChat
|
|
92
|
+
? p.tabIds.map(function (id) { return id === "chat" ? tab.id : id; })
|
|
93
|
+
: [...p.tabIds, tab.id];
|
|
83
94
|
return {
|
|
84
95
|
...p,
|
|
85
|
-
tabIds:
|
|
96
|
+
tabIds: updatedTabIds,
|
|
86
97
|
activeTabId: tab.id,
|
|
87
98
|
};
|
|
88
99
|
}
|
|
@@ -90,7 +101,7 @@ export function openTab(type: TabType): void {
|
|
|
90
101
|
});
|
|
91
102
|
return {
|
|
92
103
|
...state,
|
|
93
|
-
tabs:
|
|
104
|
+
tabs: newTabs,
|
|
94
105
|
panes: newPanes,
|
|
95
106
|
};
|
|
96
107
|
});
|
|
@@ -223,6 +234,18 @@ export function closeTab(tabId: string): void {
|
|
|
223
234
|
};
|
|
224
235
|
}
|
|
225
236
|
|
|
237
|
+
var hasEmptySinglePane = newPanes.length === 1 && newPanes[0].tabIds.length === 0;
|
|
238
|
+
if (hasEmptySinglePane) {
|
|
239
|
+
var defaultTab: Tab = { id: "chat", type: "chat", label: "Chat", closeable: false };
|
|
240
|
+
return {
|
|
241
|
+
tabs: [defaultTab],
|
|
242
|
+
panes: [{ ...newPanes[0], tabIds: ["chat"], activeTabId: "chat" }],
|
|
243
|
+
activePaneId: newPanes[0].id,
|
|
244
|
+
splitDirection: null,
|
|
245
|
+
splitRatio: 0.5,
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
226
249
|
return {
|
|
227
250
|
...state,
|
|
228
251
|
tabs: filteredTabs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.3",
|
|
4
4
|
"description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aaron Scherer <me@aaronscherer.me>",
|