promptgraph-mcp 2.9.27 → 2.9.28

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 +8 -2
  2. package/package.json +1 -1
package/indexer.js CHANGED
@@ -211,6 +211,14 @@ export async function indexAll({ fast = false } = {}) {
211
211
  if (!isSkillFile(file, raw)) { skipped++; count++; continue; }
212
212
 
213
213
  if (!processedStart) processedStart = Date.now();
214
+ count++;
215
+ if (count % 50 === 0) {
216
+ const elapsed = Date.now() - start;
217
+ const eta = processedCount > 0 && processedStart
218
+ ? Math.round((total - count) * (Date.now() - processedStart) / processedCount / 1000)
219
+ : elapsed > 500 ? Math.round((total - count) * elapsed / count / 1000) : '?';
220
+ progress(count, total, { skipped, eta, errors });
221
+ }
214
222
  const parsed = parseSkillFile(file, source, { raw });
215
223
  batch.push({ ...parsed, hash });
216
224
 
@@ -220,7 +228,6 @@ export async function indexAll({ fast = false } = {}) {
220
228
  await indexBatch(db, filtered, { fast, silent: true, onEmbed: (done, tot) => {
221
229
  process.stdout.write(`\r ⠋ Embedding ${done}/${tot} chunks... `);
222
230
  }});
223
- count += filtered.length;
224
231
  processedCount += filtered.length;
225
232
  batch = [];
226
233
  const eta = processedCount > 0 ? Math.round((total - count) * (Date.now() - processedStart) / processedCount / 1000) : '?';
@@ -248,7 +255,6 @@ export async function indexAll({ fast = false } = {}) {
248
255
  await indexBatch(db, filtered, { fast, silent: true, onEmbed: (done, tot) => {
249
256
  process.stdout.write(`\r ⠋ Embedding ${done}/${tot} chunks... `);
250
257
  }});
251
- count += filtered.length;
252
258
  }
253
259
 
254
260
  progress(total, total, { skipped, errors });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.9.27",
3
+ "version": "2.9.28",
4
4
  "files": [
5
5
  "*.js",
6
6
  "commands/",