mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-18 06:14:07 +00:00
fix(memory): use async fs APIs to satisfy maintainability gate
This commit is contained in:
1 parent
e2623e632c
commit
c6c44d0341
5 files changed
+97
-70
No files matched your search
@@ -26,7 +26,7 @@ class InstanceManager {
|
||||
/**
|
||||
* Ensure instance exists for profile (lazy init only)
|
||||
*/
|
||||
ensureInstance(profileName: string): string {
|
||||
async ensureInstance(profileName: string): Promise<string> {
|
||||
const instancePath = this.getInstancePath(profileName);
|
||||
|
||||
// Lazy initialization
|
||||
@@ -38,7 +38,7 @@ class InstanceManager {
|
||||
this.validateInstance(instancePath);
|
||||
|
||||
// Keep project memory shared across instances.
|
||||
this.sharedManager.syncProjectMemories(instancePath);
|
||||
await this.sharedManager.syncProjectMemories(instancePath);
|
||||
|
||||
return instancePath;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user