ccmanager 2.11.1 → 2.11.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.
|
@@ -4,7 +4,7 @@ import stripAnsi from 'strip-ansi';
|
|
|
4
4
|
import { getStatusDisplay } from '../constants/statusIcons.js';
|
|
5
5
|
import { formatGitFileChanges, formatGitAheadBehind, formatParentBranch, } from './gitStatus.js';
|
|
6
6
|
// Constants
|
|
7
|
-
const MAX_BRANCH_NAME_LENGTH =
|
|
7
|
+
const MAX_BRANCH_NAME_LENGTH = 70; // Maximum characters for branch name display
|
|
8
8
|
const MIN_COLUMN_PADDING = 2; // Minimum spaces between columns
|
|
9
9
|
// Utility function to truncate strings with ellipsis
|
|
10
10
|
export function truncateString(str, maxLength) {
|
|
@@ -156,7 +156,7 @@ describe('prepareWorktreeItems', () => {
|
|
|
156
156
|
branch: 'feature/this-is-a-very-long-branch-name-that-should-be-truncated',
|
|
157
157
|
};
|
|
158
158
|
const items = prepareWorktreeItems([longBranch], []);
|
|
159
|
-
expect(items[0]?.baseLabel.length).toBeLessThanOrEqual(
|
|
159
|
+
expect(items[0]?.baseLabel.length).toBeLessThanOrEqual(80); // 70 + status + default
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
162
|
describe('column alignment', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccmanager",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
4
4
|
"description": "TUI application for managing multiple Claude Code sessions across Git worktrees",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kodai Kabasawa",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=22"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsc",
|