miriad-viz 0.1.2 → 0.1.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.
package/dist-cli/index.js CHANGED
@@ -343,32 +343,51 @@ function computeNext(progress, existingFiles, logTails, flags = {}, dataSummary,
343
343
  const hasArtifacts = !!(flags["artifact-input"] || progress.extractConfig?.artifactInput);
344
344
  if (!hasRepo && !hasChat && !hasArtifacts) {
345
345
  output.push("");
346
- output.push(" Data sources (all optional \u2014 use what you have):");
346
+ output.push(" \u26D4 BEFORE EXTRACTING: Ask the human these questions:");
347
+ output.push(" 1. Which channel to visualize? (this one, or a different one?)");
348
+ output.push(" 2. What time range? (full history, or a specific sprint/period?)");
349
+ output.push(" 3. Is there a git repo? (adds commit + PR lanes)");
350
+ output.push(" Wait for answers before running any extraction commands.");
347
351
  output.push("");
348
- output.push(" Git repo (commits + PRs):");
349
- output.push(" --repo-path /path/to/local/repo");
352
+ output.push(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
353
+ output.push(" STEP A: EXTRACT CHANNEL DATA (do this FIRST)");
354
+ output.push(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
350
355
  output.push("");
351
- output.push(" Chat messages (from Miriad MCP):");
352
- output.push(" 1. Extract chat using extract-channel.sh (see project KB)");
353
- output.push(" 2. Pass: --chat-input ./messages.json");
356
+ output.push(" \u{1F4D6} Read the extraction script from the KB:");
357
+ output.push(' kb_read(kb: "root", doc: "miriad-viz-extraction-script")');
354
358
  output.push("");
355
- output.push(" Artifacts (from Miriad MCP):");
356
- output.push(" --artifact-input ./artifacts.json");
359
+ output.push(" Follow the instructions there EXACTLY. It gives you a shell");
360
+ output.push(" script that extracts messages, artifacts, and roster with");
361
+ output.push(" zero token usage. Run it, wait for it to finish, then come");
362
+ output.push(" back here with --chat-input and --artifact-input flags.");
357
363
  output.push("");
358
- output.push(" Date range filter (optional):");
359
- output.push(" --from 2026-02-10 Only include data from this date");
360
- output.push(" --to 2026-02-17 Only include data up to this date");
361
- output.push(" (ISO dates, both inclusive. Omit either for no bound.)");
364
+ output.push(" \u26A0\uFE0F DO NOT use get_messages or any MCP tools to extract");
365
+ output.push(" messages \u2014 it wastes massive tokens. Use the shell script.");
362
366
  output.push("");
363
- output.push(" Chat-only (no git repo) and git-only (no chat) are both valid.");
364
- output.push(" All flags are optional \u2014 extract runs with whatever data you provide.");
367
+ output.push(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
368
+ output.push(" STEP B: RUN EXTRACT (after shell script completes)");
369
+ output.push(" \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
370
+ output.push("");
371
+ output.push(" Once you have the raw data, run extract with these flags:");
372
+ output.push(" --chat-input ./raw-data/messages.json");
373
+ output.push(" --artifact-input ./raw-data/artifacts.json");
374
+ output.push("");
375
+ output.push(" Optional \u2014 git repo (adds commit + PR lanes):");
376
+ output.push(" --repo-path /path/to/local/repo");
377
+ output.push("");
378
+ output.push(" Optional \u2014 date range filter:");
379
+ output.push(" --from 2026-02-10 --to 2026-02-17");
380
+ output.push("");
381
+ output.push(" Chat-only (no git) is valid. All flags are optional.");
365
382
  }
366
383
  }
367
384
  output.push("", " Run this command:");
368
385
  output.push(` nohup ${command} &> ${logFile} &`);
369
- output.push("", " Then check progress:");
386
+ output.push("");
387
+ output.push(" \u26D4 MANDATORY: Set a 3-minute alarm to check progress.");
388
+ output.push(" DO NOT go silent. Report progress to the human every 3 minutes.");
370
389
  output.push(` tail -5 ${logFile}`);
371
- output.push("", " Or set a 3-minute alarm and run 'npx miriad-viz next' again.");
390
+ output.push(" Then run 'npx miriad-viz next' to check if outputs are ready.");
372
391
  progress.steps[step] = { status: "in_progress" };
373
392
  return { action: "printed_command", step, command, progress, output };
374
393
  }