promptgraph-mcp 2.9.16 → 2.9.17

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/indexer.js +6 -4
  2. package/package.json +1 -1
package/indexer.js CHANGED
@@ -70,12 +70,14 @@ export async function indexBatch(db, skills, { fast = false } = {}) {
70
70
  if (!fast && allChunks.length) {
71
71
  const texts = allChunks.map(c => c.text);
72
72
  const total = texts.length;
73
- process.stdout.write(`\r Embedding chunks... 0/${total} (0%) `);
73
+ const embedStart = Date.now();
74
+ progress(0, total);
74
75
  const embeddings = await embedBatch(texts, (done, tot) => {
75
- const pct = Math.round(done / tot * 100);
76
- process.stdout.write(`\r Embedding chunks... ${done}/${tot} (${pct}%) `);
76
+ const elapsed = (Date.now() - embedStart) / 1000;
77
+ const eta = done > 0 ? Math.round((tot - done) * elapsed / done) : '?';
78
+ progress(done, tot, { eta });
77
79
  });
78
- process.stdout.write('\r' + ' '.repeat(50) + '\r');
80
+ progressDone();
79
81
  db.transaction(() => {
80
82
  for (let i = 0; i < allChunks.length; i++) {
81
83
  const { id, chunkIndex, text } = allChunks[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.9.16",
3
+ "version": "2.9.17",
4
4
  "files": [
5
5
  "*.js",
6
6
  "commands/",