@leynier/ccst 0.3.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leynier/ccst",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Claude Code Switch Tools for managing contexts",
5
5
  "keywords": [
6
6
  "claude",
@@ -56,4 +56,4 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  }
59
- }
59
+ }
@@ -408,7 +408,7 @@ export class ContextManager {
408
408
 
409
409
  private async getUnmergePayload(
410
410
  target: string,
411
- source: string,
411
+ _source: string,
412
412
  ): Promise<{
413
413
  targetPath: string;
414
414
  targetJson: Record<string, unknown>;
@@ -7,7 +7,7 @@ export const getCcsHome = (): string => join(homedir(), ".ccs");
7
7
 
8
8
  // File patterns to backup
9
9
  export type CcsBackupFiles = {
10
- configYaml: string | null;
10
+ config: string | null;
11
11
  settingsProfiles: string[];
12
12
  cliproxyAccounts: string | null;
13
13
  cliproxyConfig: string | null;
@@ -27,7 +27,7 @@ const safeReaddirSync = (dirPath: string): string[] => {
27
27
  export const getCcsBackupFiles = (): CcsBackupFiles => {
28
28
  const ccsHome = getCcsHome();
29
29
  const result: CcsBackupFiles = {
30
- configYaml: null,
30
+ config: null,
31
31
  settingsProfiles: [],
32
32
  cliproxyAccounts: null,
33
33
  cliproxyConfig: null,
@@ -37,9 +37,9 @@ export const getCcsBackupFiles = (): CcsBackupFiles => {
37
37
  return result;
38
38
  }
39
39
  // config.yaml
40
- const configYamlPath = join(ccsHome, "config.yaml");
41
- if (existsSync(configYamlPath)) {
42
- result.configYaml = configYamlPath;
40
+ const configPath = join(ccsHome, "config.yaml");
41
+ if (existsSync(configPath)) {
42
+ result.config = configPath;
43
43
  }
44
44
  // *.settings.json profiles
45
45
  const rootFiles = safeReaddirSync(ccsHome);
@@ -55,7 +55,7 @@ export const getCcsBackupFiles = (): CcsBackupFiles => {
55
55
  if (existsSync(accountsPath)) {
56
56
  result.cliproxyAccounts = accountsPath;
57
57
  }
58
- const configPath = join(cliproxyDir, "config.json");
58
+ const configPath = join(cliproxyDir, "config.yaml");
59
59
  if (existsSync(configPath)) {
60
60
  result.cliproxyConfig = configPath;
61
61
  }
@@ -93,8 +93,8 @@ export const ensureDirectoryExists = (filePath: string): void => {
93
93
  export const getAllBackupFilePaths = (): string[] => {
94
94
  const files = getCcsBackupFiles();
95
95
  const paths: string[] = [];
96
- if (files.configYaml) {
97
- paths.push(files.configYaml);
96
+ if (files.config) {
97
+ paths.push(files.config);
98
98
  }
99
99
  paths.push(...files.settingsProfiles);
100
100
  if (files.cliproxyAccounts) {