ccman 3.0.32 → 3.0.33

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "../core/package.json"() {
16
16
  package_default = {
17
17
  name: "@ccman/core",
18
- version: "3.0.32",
18
+ version: "3.0.33",
19
19
  type: "module",
20
20
  description: "Core business logic for ccman",
21
21
  main: "./dist/index.js",
@@ -1784,7 +1784,19 @@ function saveJsonAtomic(filePath, data) {
1784
1784
  function analyzeClaudeJson() {
1785
1785
  const filePath = getClaudeJsonPath();
1786
1786
  if (!fs9.existsSync(filePath)) {
1787
- throw new Error("~/.claude.json \u6587\u4EF6\u4E0D\u5B58\u5728");
1787
+ return {
1788
+ fileSize: 0,
1789
+ fileSizeFormatted: "0 B",
1790
+ projectCount: 0,
1791
+ totalHistoryCount: 0,
1792
+ projectHistory: [],
1793
+ cacheSize: 0,
1794
+ estimatedSavings: {
1795
+ conservative: 0,
1796
+ moderate: 0,
1797
+ aggressive: 0
1798
+ }
1799
+ };
1788
1800
  }
1789
1801
  const fileSize = getFileSize(filePath);
1790
1802
  const content = fs9.readFileSync(filePath, "utf-8");
@@ -1822,7 +1834,7 @@ function analyzeClaudeJson() {
1822
1834
  function cleanClaudeJson(options = {}) {
1823
1835
  const filePath = getClaudeJsonPath();
1824
1836
  if (!fs9.existsSync(filePath)) {
1825
- throw new Error("~/.claude.json \u6587\u4EF6\u4E0D\u5B58\u5728");
1837
+ throw new Error(`${filePath} \u6587\u4EF6\u4E0D\u5B58\u5728`);
1826
1838
  }
1827
1839
  const backupPath = backupFile(filePath);
1828
1840
  const sizeBefore = getFileSize(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccman",
3
- "version": "3.0.32",
3
+ "version": "3.0.33",
4
4
  "type": "module",
5
5
  "description": "Manage Codex and Claude Code API service provider configurations",
6
6
  "main": "./dist/index.js",