@kkmila/cpc 1.0.0 → 1.0.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/README.md CHANGED
@@ -5,7 +5,7 @@ Custom Provider CLI - 管理自定义 AI 模型提供商的命令行工具。
5
5
  ## 安装
6
6
 
7
7
  ```bash
8
- npm install -g @custom-provider/cpc
8
+ npm install -g @kkmila/cpc
9
9
  ```
10
10
 
11
11
  ## 快速开始
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkmila/cpc",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Custom Provider CLI for managing model providers",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/repo.mjs CHANGED
@@ -1,13 +1,12 @@
1
- import { realpathSync } from "node:fs";
2
1
  import { resolve, dirname } from "node:path";
3
2
  import { fileURLToPath } from "node:url";
4
3
 
5
4
  /**
6
- * Resolve the custom-provider-cli repo root from the CLI script location.
5
+ * Resolve the cpc repo root from the CLI script location.
7
6
  * Handles symlinked installations (npm link, /usr/local/bin, ~/.local/bin).
8
7
  */
9
8
  export function resolveRepoRoot() {
10
9
  const scriptDir = dirname(fileURLToPath(import.meta.url));
11
- // cli/src/lib/ → repo root is 3 levels up (lib → src → cli → root)
12
- return resolve(scriptDir, "..", "..", "..");
10
+ // src/lib/ → repo root is 2 levels up (lib → src → root)
11
+ return resolve(scriptDir, "..", "..");
13
12
  }