promptgraph-mcp 2.9.2 → 2.9.4

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/marketplace.js CHANGED
@@ -100,7 +100,7 @@ function httpGet(url) {
100
100
  let data = '';
101
101
  res.setEncoding('utf8');
102
102
  res.on('data', c => data += c);
103
- res.on('end', () => resolve(data));
103
+ res.on('end', () => resolve(data.charCodeAt(0) === 0xFEFF ? data.slice(1) : data));
104
104
  });
105
105
  req.on('timeout', () => { req.destroy(new Error('request timed out')); });
106
106
  req.on('error', reject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
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