plexmint 0.2.6 → 0.2.8
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/dist/index.js +6 -6
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -704,23 +704,23 @@ async function libraryCommand() {
|
|
|
704
704
|
mint("Ticker"),
|
|
705
705
|
mint("Title"),
|
|
706
706
|
mint("Category"),
|
|
707
|
-
mint("Version"),
|
|
708
707
|
mint("Purchased")
|
|
709
708
|
],
|
|
710
709
|
style: { head: [], border: ["gray"] },
|
|
711
|
-
colWidths: [14, 32, 14,
|
|
710
|
+
colWidths: [14, 32, 14, 16]
|
|
712
711
|
});
|
|
713
712
|
for (const item of items) {
|
|
714
|
-
const
|
|
713
|
+
const raw = item;
|
|
714
|
+
const purchaseDate = raw.purchasedAt ?? raw.createdAt ?? raw.purchased_at;
|
|
715
|
+
const date = purchaseDate ? new Date(purchaseDate).toLocaleDateString("en-US", {
|
|
715
716
|
month: "short",
|
|
716
717
|
day: "numeric",
|
|
717
718
|
year: "numeric"
|
|
718
|
-
});
|
|
719
|
+
}) : "\u2014";
|
|
719
720
|
table.push([
|
|
720
721
|
chalk8.bold(item.ticker),
|
|
721
722
|
item.title.length > 30 ? item.title.slice(0, 27) + "..." : item.title,
|
|
722
|
-
|
|
723
|
-
`v${item.version}`,
|
|
723
|
+
raw.category || "\u2014",
|
|
724
724
|
chalk8.gray(date)
|
|
725
725
|
]);
|
|
726
726
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plexmint",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "PlexMint CLI — Browse, buy, and manage AI prompts from your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
14
14
|
"dev": "tsx src/index.ts",
|
|
15
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"postinstall": "echo '\n ✓ PlexMint CLI installed!\n\n Get started: plexmint setup\n Browse: plexmint browse\n Help: plexmint --help\n'"
|
|
16
17
|
},
|
|
17
18
|
"keywords": [
|
|
18
19
|
"ai",
|