miriad-viz 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/dist-cli/index.js +18 -41
  2. package/package.json +1 -1
package/dist-cli/index.js CHANGED
@@ -77,7 +77,6 @@ function buildCommand(step, progress, flags) {
77
77
  if (from) parts.push(`--from ${from}`);
78
78
  const to = flags.to || progress.extractConfig?.to;
79
79
  if (to) parts.push(`--to ${to}`);
80
- parts.push("-y");
81
80
  }
82
81
  if (step === "transform") {
83
82
  if (flags["pad-start"]) parts.push(`--pad-start ${flags["pad-start"]}`);
@@ -338,48 +337,26 @@ function computeNext(progress, existingFiles, logTails, flags = {}, dataSummary,
338
337
  const logFile = config.logFile || `${step}.log`;
339
338
  output.push("", `\u{1F4CB} ${config.label}`);
340
339
  if (step === "extract") {
341
- const hasRepo = !!(flags["repo-path"] || progress.extractConfig?.repoPath);
342
- const hasChat = !!(flags["chat-input"] || progress.extractConfig?.chatInput);
343
- const hasArtifacts = !!(flags["artifact-input"] || progress.extractConfig?.artifactInput);
344
- if (!hasRepo && !hasChat && !hasArtifacts) {
345
- output.push("");
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.");
351
- output.push("");
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");
355
- output.push("");
356
- output.push(" \u{1F4D6} Read the extraction script from the KB:");
357
- output.push(' kb_read(kb: "root", doc: "miriad-viz-extraction-script")');
358
- output.push("");
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.");
363
- output.push("");
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.");
366
- output.push("");
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");
340
+ const projectRepo = progress.project.repo;
341
+ const projectAgents = progress.project.agents;
342
+ output.push("");
343
+ if (projectRepo || projectAgents && projectAgents.length > 0) {
344
+ output.push(" \u{1F4CB} From init:");
345
+ if (projectRepo) output.push(` Repo: ${projectRepo}`);
346
+ if (projectAgents && projectAgents.length > 0) {
347
+ output.push(` Agents: ${projectAgents.join(", ")}`);
348
+ }
380
349
  output.push("");
381
- output.push(" Chat-only (no git) is valid. All flags are optional.");
382
350
  }
351
+ output.push(" \u{1F4D6} Read the extraction guide from the KB:");
352
+ output.push(' kb_read(kb: "root", doc: "miriad-viz-extraction-script")');
353
+ output.push("");
354
+ output.push(" Available flags:");
355
+ output.push(" --chat-input <path> Pre-extracted chat messages JSON");
356
+ output.push(" --artifact-input <path> Pre-extracted artifacts JSON");
357
+ output.push(" --repo-path <path> Local git repo clone (adds commit + PR lanes)");
358
+ output.push(" --from <date> Filter start date (ISO 8601, inclusive)");
359
+ output.push(" --to <date> Filter end date (ISO 8601, inclusive)");
383
360
  }
384
361
  output.push("", " Run this command:");
385
362
  output.push(` nohup ${command} &> ${logFile} &`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miriad-viz",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/snorrees/miriad-viz.git"