@collectui/cli 0.2.15 → 0.2.16

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": "@collectui/cli",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
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",
@@ -19,6 +19,17 @@ export async function libsCmd(flags, rest, reporter) {
19
19
  }
20
20
 
21
21
  const owned = me ? new Set(ownedLibs(me).map((lib) => lib.site)) : null;
22
+ // 账号里拥有但不属于 shadcn registry 体系的库(自带独立安装器,如 threeui/heroui/
23
+ // aura)——本 CLI 管不到,但必须点名说明,不然用户以为少了
24
+ const knownSites = new Set(LIBS.map((lib) => lib.site));
25
+ const extraOwned = me
26
+ ? [
27
+ ...new Set([
28
+ ...(me.sites ?? []).map((s) => s.slug),
29
+ ...(me.keys ?? []).map((k) => k.site).filter(Boolean),
30
+ ]),
31
+ ].filter((slug) => !knownSites.has(slug))
32
+ : [];
22
33
  const rows = [];
23
34
 
24
35
  for (const lib of LIBS) {
@@ -61,6 +72,13 @@ export async function libsCmd(flags, rest, reporter) {
61
72
  { key: "mcp", header: "MCP KEY" },
62
73
  ])
63
74
  );
75
+ if (extraOwned.length) {
76
+ reporter.info(
77
+ `Your account also owns ${extraOwned.length} librar${extraOwned.length === 1 ? "y" : "ies"} ` +
78
+ `outside the shadcn registry system (${extraOwned.join(", ")}) — ` +
79
+ `they install via their own tooling and are not managed by this CLI.`
80
+ );
81
+ }
64
82
  if (!me) {
65
83
  reporter.info("Run `cui login` to see which libraries your account owns and to bind keys.");
66
84
  }