@collectui/cli 0.1.0 → 0.2.0

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
@@ -29,7 +29,7 @@ collectui --version
29
29
  collectui login
30
30
  ```
31
31
 
32
- 会自动打开 `https://dash.collectui.pro/login`,登录后在右上角「API 密钥」创建一条 PAT(label 可填 `collectui-cli`),粘贴回终端即可。PAT 保存到 `~/.config/collectui/config.json`(`chmod 600`)。
32
+ 会自动打开 `https://dash.collectui.pro/login`,登录后在右上角「API 密钥」创建一条 PAT(label 可填 `collectui-cli`),粘贴回终端即可。PAT 保存到 `~/.collectui/config.json`(`chmod 600`)。
33
33
 
34
34
  无头 / Agent:
35
35
 
@@ -186,7 +186,7 @@ collectui doctor --deep # 再对每个已拥有库做一次 registry 探测
186
186
 
187
187
  ## 安全
188
188
 
189
- - PAT 只在 `~/.config/collectui/config.json`(0600)和你自己的项目文件里
189
+ - PAT 只在 `~/.collectui/config.json`(0600)和你自己的项目文件里
190
190
  - `.env.local`、`.mcp.json`、`.cursor/mcp.json`、`.vscode/mcp.json` 含凭据,
191
191
  脚手架默认把它们写进 `.gitignore`
192
192
  - 日志脱敏:已知 key / PAT、`Bearer ...`、`dpat_...` 一律替换为 `[redacted]`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collectui/cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "One CLI for every shadcn library on CollectUI Dash — login once, configure registries & MCP, scaffold agent-ready projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/config.mjs CHANGED
@@ -3,7 +3,7 @@ import { homedir } from "node:os";
3
3
  import { join } from "node:path";
4
4
 
5
5
  /**
6
- * 本地配置(~/.config/collectui/config.json,chmod 600)。
6
+ * 本地配置(~/.collectui/config.json,chmod 600)。
7
7
  * 只存 PAT 明文和账户快照;密钥不进任何项目文件之外的地方。
8
8
  *
9
9
  * 环境变量覆盖(Agent / CI 用):
@@ -18,7 +18,7 @@ export const DEFAULT_REGISTRY_URL = "https://registry.collectui.pro";
18
18
  export const DASH_MCP_PATH = "/api/mcp";
19
19
 
20
20
  export function configDir() {
21
- return process.env.COLLECTUI_HOME || join(homedir(), ".config", "collectui");
21
+ return process.env.COLLECTUI_HOME || join(homedir(), ".collectui");
22
22
  }
23
23
 
24
24
  export function configFile() {