mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 16:17:02 +00:00
feat(channels): auto-enable official discord plugin
- add runtime injection for official Discord Channels on eligible native Claude sessions - add CLI and dashboard configuration plus secure token handling - add tests for launch planning, token sync, and config routing Refs #783
This commit is contained in:
1 parent
7596e463c5
commit
4bce1559dd
23 files changed
+1513
-27
No files matched your search
@@ -1,6 +1,15 @@
|
||||
import * as path from 'path';
|
||||
import { getCcsHome } from './config-manager';
|
||||
|
||||
/**
|
||||
* Resolve the canonical default Claude config directory.
|
||||
* Ignores CLAUDE_CONFIG_DIR so CCS can keep a stable source of truth
|
||||
* for shared plugin/channel state while still honoring test/dev home overrides.
|
||||
*/
|
||||
export function getDefaultClaudeConfigDir(): string {
|
||||
return path.join(getCcsHome(), '.claude');
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve Claude config directory with test/dev overrides.
|
||||
* Precedence:
|
||||
@@ -13,7 +22,7 @@ export function getClaudeConfigDir(): string {
|
||||
return path.resolve(process.env.CLAUDE_CONFIG_DIR);
|
||||
}
|
||||
|
||||
return path.join(getCcsHome(), '.claude');
|
||||
return getDefaultClaudeConfigDir();
|
||||
}
|
||||
|
||||
/** Resolve Claude settings.json path. */
|
||||
|
||||
Reference in new issue
Block a user