mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 04:18:19 +00:00
feat: set up quality gates for CCS TypeScript package
- Migrate package manager from npm to bun - Add ESLint configuration with TypeScript support - Add Prettier configuration and .prettierignore - Format all TypeScript source files - Update CLAUDE.md with bun instructions - Verify 39 tests passing
This commit is contained in:
1 parent
49150dc24f
commit
0139333146
44 files changed
+1389
-2171
No files matched your search
@@ -64,10 +64,10 @@ class InstanceManager {
|
||||
'file-history',
|
||||
'shell-snapshots',
|
||||
'debug',
|
||||
'.anthropic'
|
||||
'.anthropic',
|
||||
];
|
||||
|
||||
subdirs.forEach(dir => {
|
||||
subdirs.forEach((dir) => {
|
||||
const dirPath = path.join(instancePath, dir);
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
fs.mkdirSync(dirPath, { recursive: true, mode: 0o700 });
|
||||
@@ -80,7 +80,9 @@ class InstanceManager {
|
||||
// Copy global configs if exist (settings.json only)
|
||||
this.copyGlobalConfigs(instancePath);
|
||||
} catch (error) {
|
||||
throw new Error(`Failed to initialize instance for ${profileName}: ${(error as Error).message}`);
|
||||
throw new Error(
|
||||
`Failed to initialize instance for ${profileName}: ${(error as Error).message}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +98,7 @@ class InstanceManager {
|
||||
'file-history',
|
||||
'shell-snapshots',
|
||||
'debug',
|
||||
'.anthropic'
|
||||
'.anthropic',
|
||||
];
|
||||
|
||||
for (const dir of requiredDirs) {
|
||||
@@ -132,11 +134,10 @@ class InstanceManager {
|
||||
return [];
|
||||
}
|
||||
|
||||
return fs.readdirSync(this.instancesDir)
|
||||
.filter(name => {
|
||||
const instancePath = path.join(this.instancesDir, name);
|
||||
return fs.statSync(instancePath).isDirectory();
|
||||
});
|
||||
return fs.readdirSync(this.instancesDir).filter((name) => {
|
||||
const instancePath = path.join(this.instancesDir, name);
|
||||
return fs.statSync(instancePath).isDirectory();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -190,4 +191,4 @@ class InstanceManager {
|
||||
}
|
||||
|
||||
export { InstanceManager };
|
||||
export default InstanceManager;
|
||||
export default InstanceManager;
|
||||
Reference in new issue
Block a user