miriad-viz 0.1.2 → 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.
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,37 +337,34 @@ 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(" Data sources (all optional \u2014 use what you have):");
347
- output.push("");
348
- output.push(" Git repo (commits + PRs):");
349
- output.push(" --repo-path /path/to/local/repo");
350
- 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");
354
- output.push("");
355
- output.push(" Artifacts (from Miriad MCP):");
356
- output.push(" --artifact-input ./artifacts.json");
357
- 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.)");
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
+ }
362
349
  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.");
365
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)");
366
360
  }
367
361
  output.push("", " Run this command:");
368
362
  output.push(` nohup ${command} &> ${logFile} &`);
369
- output.push("", " Then check progress:");
363
+ output.push("");
364
+ output.push(" \u26D4 MANDATORY: Set a 3-minute alarm to check progress.");
365
+ output.push(" DO NOT go silent. Report progress to the human every 3 minutes.");
370
366
  output.push(` tail -5 ${logFile}`);
371
- output.push("", " Or set a 3-minute alarm and run 'npx miriad-viz next' again.");
367
+ output.push(" Then run 'npx miriad-viz next' to check if outputs are ready.");
372
368
  progress.steps[step] = { status: "in_progress" };
373
369
  return { action: "printed_command", step, command, progress, output };
374
370
  }