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.
- package/package.json +1 -1
- package/src/index.ts +6 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zmarketplace",
|
|
3
|
-
"version": "0.4.
|
|
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
|
-
"
|
|
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
|
|
106
|
+
lines.push("โโโ README (40 lines โ enter on ๐ to open) โโโ");
|
|
111
107
|
const rl = detail.readme
|
|
112
|
-
.replace(/!\[.*?\]\((https?:\/\/[^)]+)\)/g, "\n๐ผ
|
|
113
|
-
.replace(/!\[.*?\]\(([^)]+)\)/g, (_m, 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,
|
|
113
|
+
.slice(0, 40);
|
|
120
114
|
lines.push(...rl);
|
|
121
|
-
|
|
115
|
+
lines.push("...(see npm for full README)");
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
while (true) {
|