miriad-viz 0.9.6 → 0.9.7

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.
@@ -273,16 +273,15 @@ async function fetchMessages(config, onProgress) {
273
273
  const path = cursor ? `/messages?limit=100&before=${cursor}` : "/messages?limit=100";
274
274
  const data = await apiFetch(config, path);
275
275
  if (data.messages.length === 0) break;
276
- const filtered = filterRelevantMessages(data.messages);
277
276
  let newInBatch = 0;
278
- for (const m of filtered) {
277
+ for (const m of data.messages) {
279
278
  if (!seenIds.has(m.id)) {
280
279
  seenIds.add(m.id);
281
280
  allMessages.push(m);
282
281
  newInBatch++;
283
282
  }
284
283
  }
285
- if (newInBatch === 0 && data.messages.length > 0) break;
284
+ if (newInBatch === 0) break;
286
285
  if (onProgress && batch % 10 === 0) {
287
286
  onProgress(allMessages.length, batch);
288
287
  }
@@ -366,12 +365,14 @@ async function extractFromRedux(onProgress) {
366
365
  onProgress?.("plan", "Fetching plan items...");
367
366
  const rawPlanItems = await fetchPlanItems(config);
368
367
  onProgress?.("plan", `\u2705 ${rawPlanItems.length} plan items`);
369
- const messages = convertMessages(rawMessages);
368
+ const allMessages = convertMessages(rawMessages);
369
+ const messages = convertMessages(filterRelevantMessages(rawMessages));
370
370
  const fileArtifacts = convertFiles(rawFiles);
371
371
  const planArtifacts = convertPlanItems(rawPlanItems);
372
372
  const artifacts = [...fileArtifacts, ...planArtifacts];
373
373
  return {
374
374
  messages,
375
+ allMessages,
375
376
  artifacts,
376
377
  channelId: config.channelId
377
378
  };
@@ -652,7 +653,8 @@ Processing ${extractedMessages.length} messages...`);
652
653
  }));
653
654
  writeJSON(dataDir, "messages-viz.json", lightMessages);
654
655
  outputs.push("messages-viz.json");
655
- const fullMessages = extractedMessages.map((msg) => ({
656
+ const allMsgs = "allMessages" in extractResult ? extractResult.allMessages : extractedMessages;
657
+ const fullMessages = allMsgs.map((msg) => ({
656
658
  id: msg.id,
657
659
  timestamp: msg.timestamp,
658
660
  sender: msg.sender,
package/dist-cli/index.js CHANGED
@@ -1766,7 +1766,7 @@ async function main() {
1766
1766
  }
1767
1767
  case "extract": {
1768
1768
  const { projectDir, progress } = requireProject();
1769
- const { runExtract } = await import("./extract-6XRQDMNC.js");
1769
+ const { runExtract } = await import("./extract-C6UAMD4X.js");
1770
1770
  await runExtract({
1771
1771
  projectDir,
1772
1772
  progress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miriad-viz",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/snorrees/miriad-viz.git"