ccmanager 1.4.4 → 2.0.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 +34 -1
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +30 -2
- package/dist/cli.test.d.ts +1 -0
- package/dist/cli.test.js +67 -0
- package/dist/components/App.d.ts +1 -0
- package/dist/components/App.js +107 -37
- package/dist/components/Menu.d.ts +6 -1
- package/dist/components/Menu.js +227 -50
- package/dist/components/Menu.recent-projects.test.d.ts +1 -0
- package/dist/components/Menu.recent-projects.test.js +159 -0
- package/dist/components/Menu.test.d.ts +1 -0
- package/dist/components/Menu.test.js +196 -0
- package/dist/components/ProjectList.d.ts +10 -0
- package/dist/components/ProjectList.js +231 -0
- package/dist/components/ProjectList.recent-projects.test.d.ts +1 -0
- package/dist/components/ProjectList.recent-projects.test.js +186 -0
- package/dist/components/ProjectList.test.d.ts +1 -0
- package/dist/components/ProjectList.test.js +501 -0
- package/dist/components/Session.js +4 -14
- package/dist/constants/env.d.ts +3 -0
- package/dist/constants/env.js +4 -0
- package/dist/constants/error.d.ts +6 -0
- package/dist/constants/error.js +7 -0
- package/dist/hooks/useSearchMode.d.ts +15 -0
- package/dist/hooks/useSearchMode.js +67 -0
- package/dist/services/configurationManager.d.ts +1 -0
- package/dist/services/configurationManager.js +14 -7
- package/dist/services/globalSessionOrchestrator.d.ts +16 -0
- package/dist/services/globalSessionOrchestrator.js +73 -0
- package/dist/services/globalSessionOrchestrator.test.d.ts +1 -0
- package/dist/services/globalSessionOrchestrator.test.js +180 -0
- package/dist/services/projectManager.d.ts +60 -0
- package/dist/services/projectManager.js +418 -0
- package/dist/services/projectManager.test.d.ts +1 -0
- package/dist/services/projectManager.test.js +342 -0
- package/dist/services/sessionManager.d.ts +8 -0
- package/dist/services/sessionManager.js +41 -7
- package/dist/services/sessionManager.test.js +79 -0
- package/dist/services/worktreeService.d.ts +1 -0
- package/dist/services/worktreeService.js +20 -5
- package/dist/services/worktreeService.test.js +72 -0
- package/dist/types/index.d.ts +55 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -88,3 +88,58 @@ export interface ConfigurationData {
|
|
|
88
88
|
command?: CommandConfig;
|
|
89
89
|
commandPresets?: CommandPresetsConfig;
|
|
90
90
|
}
|
|
91
|
+
export interface GitProject {
|
|
92
|
+
name: string;
|
|
93
|
+
path: string;
|
|
94
|
+
relativePath: string;
|
|
95
|
+
isValid: boolean;
|
|
96
|
+
error?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface MultiProjectConfig {
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
projectsDir: string;
|
|
101
|
+
rootMarker?: string;
|
|
102
|
+
}
|
|
103
|
+
export type MenuMode = 'normal' | 'multi-project';
|
|
104
|
+
export interface IMultiProjectService {
|
|
105
|
+
discoverProjects(projectsDir: string): Promise<GitProject[]>;
|
|
106
|
+
validateGitRepository(path: string): Promise<boolean>;
|
|
107
|
+
}
|
|
108
|
+
export interface RecentProject {
|
|
109
|
+
path: string;
|
|
110
|
+
name: string;
|
|
111
|
+
lastAccessed: number;
|
|
112
|
+
}
|
|
113
|
+
export interface IProjectManager {
|
|
114
|
+
currentMode: MenuMode;
|
|
115
|
+
currentProject?: GitProject;
|
|
116
|
+
projects: GitProject[];
|
|
117
|
+
setMode(mode: MenuMode): void;
|
|
118
|
+
selectProject(project: GitProject): void;
|
|
119
|
+
getWorktreeService(projectPath?: string): IWorktreeService;
|
|
120
|
+
refreshProjects(): Promise<void>;
|
|
121
|
+
getRecentProjects(limit?: number): RecentProject[];
|
|
122
|
+
addRecentProject(project: GitProject): void;
|
|
123
|
+
clearRecentProjects(): void;
|
|
124
|
+
validateGitRepository(path: string): Promise<boolean>;
|
|
125
|
+
}
|
|
126
|
+
export interface IWorktreeService {
|
|
127
|
+
getWorktrees(): Worktree[];
|
|
128
|
+
getGitRootPath(): string;
|
|
129
|
+
createWorktree(worktreePath: string, branch: string, baseBranch: string, copySessionData?: boolean, copyClaudeDirectory?: boolean): {
|
|
130
|
+
success: boolean;
|
|
131
|
+
error?: string;
|
|
132
|
+
};
|
|
133
|
+
deleteWorktree(worktreePath: string, options?: {
|
|
134
|
+
deleteBranch?: boolean;
|
|
135
|
+
}): {
|
|
136
|
+
success: boolean;
|
|
137
|
+
error?: string;
|
|
138
|
+
};
|
|
139
|
+
mergeWorktree(worktreePath: string, targetBranch?: string): {
|
|
140
|
+
success: boolean;
|
|
141
|
+
mergedBranch?: string;
|
|
142
|
+
error?: string;
|
|
143
|
+
deletedWorktree?: boolean;
|
|
144
|
+
};
|
|
145
|
+
}
|