promptgraph-mcp 2.9.2 → 2.9.3

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/tui.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "files": [
5
5
  "*.js",
6
6
  "commands/",
package/tui.js CHANGED
@@ -52,7 +52,7 @@ function buildItems(skills, bundles) {
52
52
  }
53
53
  // bundles
54
54
  for (const b of bundles) {
55
- items.push({ type: 'bundle', id: b.id, name: b.name || b.id, description: b.description || '', category: b.category || 'Community', tags: b.tags || [], stars: b.stars || 0, skillCount: b.skillCount, repo_url: b.repo_url, skills: b.skills });
55
+ items.push({ type: 'bundle', id: b.id, name: b.name || b.id, description: b.description || '', category: b.category || 'Community', tags: b.tags || [], stars: b.stars || 0, skillCount: b.skillCount, repo_url: b.repo_url, skills: b.skills, created_at: b.created_at });
56
56
  }
57
57
  return items;
58
58
  }
@@ -81,7 +81,8 @@ function render(state, installedSet = new Set()) {
81
81
  const FOOTER_ROWS = 3;
82
82
  const LIST_ROWS = rows - HEADER_ROWS - FOOTER_ROWS;
83
83
  const NAME_W = Math.max(20, Math.floor(cols * 0.28));
84
- const DESC_W = cols - NAME_W - 28;
84
+ const DATE_W = 8;
85
+ const DESC_W = cols - NAME_W - 28 - DATE_W;
85
86
 
86
87
  const { items, cursor, scroll, query, searching, tab, status } = state;
87
88
  const skills = items.filter(i => i.type === 'skill').length;
@@ -163,8 +164,9 @@ function render(state, installedSet = new Set()) {
163
164
  : dim(((item.skills?.length || 0) + ' sk').padEnd(8))
164
165
  : chalk.hex('#A78BFA')((item.code || '').padEnd(10));
165
166
  const desc = dim(truncate(item.description, Math.max(10, DESC_W)));
167
+ const dateStr = item.created_at ? dim(item.created_at.slice(0, 7)) : ' ';
166
168
 
167
- write(bg + ` ${arrow} ${type} ${badge} ${nameCol} ${extra} ${desc}` + reset + CLEAR_EOL + '\n');
169
+ write(bg + ` ${arrow} ${type} ${badge} ${nameCol} ${extra} ${desc} ${dateStr}` + reset + CLEAR_EOL + '\n');
168
170
  rendered++;
169
171
  }
170
172