ccmanager 3.8.0 → 3.8.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/components/Menu.js +5 -0
- package/package.json +6 -6
package/dist/components/Menu.js
CHANGED
|
@@ -512,6 +512,11 @@ const Menu = ({ sessionManager, worktreeService, onSelectWorktree, onSelectRecen
|
|
|
512
512
|
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { marginBottom: 1, flexDirection: "column", children: [_jsxs(Text, { bold: true, color: "green", children: ["CCManager - Claude Code Worktree Manager v", version] }), projectName && (_jsx(Text, { bold: true, color: "green", children: projectName }))] }), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { dimColor: true, children: "Select a worktree to start or resume a Claude Code session:" }) }), isSearchMode && (_jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { children: "Search: " }), _jsx(TextInputWrapper, { value: searchQuery, onChange: setSearchQuery, focus: true, placeholder: "Type to filter worktrees..." })] })), isSearchMode && items.length === 0 ? (_jsx(Box, { children: _jsx(Text, { color: "yellow", children: "No worktrees match your search" }) })) : isSearchMode ? (
|
|
513
513
|
// In search mode, show the items as a list without SelectInput
|
|
514
514
|
_jsx(Box, { flexDirection: "column", children: items.slice(0, limit).map((item, index) => (_jsxs(Text, { color: index === selectedIndex ? 'green' : undefined, children: [index === selectedIndex ? '❯ ' : ' ', item.label] }, item.value))) })) : (_jsx(SelectInput, { items: items, onSelect: item => handleSelect(item), onHighlight: item => {
|
|
515
|
+
// ink-select-input may call onHighlight with undefined when items are empty
|
|
516
|
+
// (e.g., during menu re-mount after returning from a session), so guard it.
|
|
517
|
+
if (!item) {
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
515
520
|
const menuItem = item;
|
|
516
521
|
if (menuItem.type === 'worktree') {
|
|
517
522
|
setHighlightedWorktreePath(menuItem.worktree.path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccmanager",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "TUI application for managing multiple Claude Code sessions across Git worktrees",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kodai Kabasawa",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"bin"
|
|
42
42
|
],
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@kodaikabasawa/ccmanager-darwin-arm64": "3.8.
|
|
45
|
-
"@kodaikabasawa/ccmanager-darwin-x64": "3.8.
|
|
46
|
-
"@kodaikabasawa/ccmanager-linux-arm64": "3.8.
|
|
47
|
-
"@kodaikabasawa/ccmanager-linux-x64": "3.8.
|
|
48
|
-
"@kodaikabasawa/ccmanager-win32-x64": "3.8.
|
|
44
|
+
"@kodaikabasawa/ccmanager-darwin-arm64": "3.8.1",
|
|
45
|
+
"@kodaikabasawa/ccmanager-darwin-x64": "3.8.1",
|
|
46
|
+
"@kodaikabasawa/ccmanager-linux-arm64": "3.8.1",
|
|
47
|
+
"@kodaikabasawa/ccmanager-linux-x64": "3.8.1",
|
|
48
|
+
"@kodaikabasawa/ccmanager-win32-x64": "3.8.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@eslint/js": "^9.28.0",
|