zmarketplace 0.4.6 โ†’ 0.4.7

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/package.json +1 -1
  2. package/src/index.ts +6 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmarketplace",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Cross-agent marketplace search: find, audit, and install plugins/skills/themes/prompts across pi, omp, claude code, opencode, gemini cli, and codex",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -96,29 +96,23 @@ async function packageDetail(pkg: PackageResult, ctx: Ctx): Promise<void> {
96
96
  "โฌ‡ Install (audit first)",
97
97
  "๐Ÿ”’ Audit only",
98
98
  "โ†ฉ Back to results",
99
- "โ”โ”โ” Package โ”โ”โ”",
100
- `๐Ÿ“ฆ ${detail.name} v${detail.version ?? "?"}`,
99
+ `๐Ÿ“ฆ ${detail.name} v${detail.version ?? "?"} โ€” ${detail.license ?? "?"} ยท ${detail.dependencyCount ?? "?"} deps ยท ${detail.size ? (detail.size / 1024).toFixed(0) + "KB" : "?"}`,
101
100
  detail.description || "",
102
- `License: ${detail.license ?? "?"} Deps: ${detail.dependencyCount ?? "?"} Size: ${detail.size ? (detail.size / 1024).toFixed(1) + " KB" : "?"}`,
103
- `Published: ${detail.publishedAt?.slice(0, 10) ?? "?"}`,
104
101
  ];
105
- if (detail.keywords?.length) lines.push(`Keywords: ${detail.keywords.join(", ")}`);
106
102
  if (detail.npmUrl) lines.push(`๐Ÿ”— ${detail.npmUrl}`);
107
103
  if (repoBase) lines.push(`๐Ÿ”— ${repoBase}`);
108
104
 
109
105
  if (detail.readme) {
110
- lines.push("โ”โ”โ” README (enter on ๐Ÿ”—/๐Ÿ–ผ to open) โ”โ”โ”");
106
+ lines.push("โ”โ”โ” README (40 lines โ€” enter on ๐Ÿ”— to open) โ”โ”โ”");
111
107
  const rl = detail.readme
112
- .replace(/!\[.*?\]\((https?:\/\/[^)]+)\)/g, "\n๐Ÿ–ผ IMAGE: $1\n")
113
- .replace(/!\[.*?\]\(([^)]+)\)/g, (_m, p) => `\n๐Ÿ–ผ IMAGE: ${repoBase ? repoBase + "/raw/main/" + p.replace(/^\.\//, "") : p}\n`)
108
+ .replace(/!\[.*?\]\((https?:\/\/[^)]+)\)/g, "\n๐Ÿ–ผ $1\n")
109
+ .replace(/!\[.*?\]\(([^)]+)\)/g, (_m, p) => `\n๐Ÿ–ผ ${repoBase ? repoBase + "/raw/main/" + p.replace(/^\.\//, "") : p}\n`)
114
110
  .replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, "$1 โ†’ $2")
115
- .replace(/<img[^>]*src=["']([^"']+)["'][^>]*>/gi, (_m, p) => `\n๐Ÿ–ผ IMAGE: ${p}\n`)
116
- .replace(/<a[^>]*href=["']([^"']+)["'][^>]*>(.*?)<\/a>/gi, "$2 โ†’ $1")
117
111
  .replace(/<[^>]+>/g, "")
118
112
  .split("\n").map(l => l.trimEnd()).filter(l => l.length > 0)
119
- .slice(0, 150);
113
+ .slice(0, 40);
120
114
  lines.push(...rl);
121
- if (detail.readme.length > 8000) lines.push("...(truncated โ€” see npm for full README)");
115
+ lines.push("...(see npm for full README)");
122
116
  }
123
117
 
124
118
  while (true) {