@erdoai/cli 0.230.0 → 0.231.0

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/index.js +12 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10237,7 +10237,7 @@ unavailable: ${source} \u2014 ${reason}`);
10237
10237
  }
10238
10238
  });
10239
10239
  leadsCmd.command("reachability <dataset>").description(
10240
- "List whether each lead in a dataset has ever answered us, from the follow-up engine's own reading: confirmed once the lead replied, called in, picked up a call and talked, texted, wrote on WhatsApp, chatted on the website or booked, and unconfirmed until then. An out-of-office reply and a STOP do not count. The same reading `leads timeline` shows for one lead under timing."
10240
+ "List whether each lead in a dataset has ever answered us, from the follow-up engine's own reading: confirmed once the lead replied, called in, picked up a call and talked, texted, wrote on WhatsApp, chatted on the website or booked, and unconfirmed until then. An out-of-office reply and a STOP do not count. Also when they last answered (and how) and when we last contacted them, so a lead who answered once and has not answered since can be told apart. The same reading `leads timeline` shows for one lead under timing."
10241
10241
  ).option("--limit <n>", "leads per page, in canonical_lead_id order (default 500, max 5000)").option("--offset <n>", "leads to skip").option("--json", "print the raw JSON result instead of a table").action(async (dataset, opts) => {
10242
10242
  try {
10243
10243
  const limit = opts.limit === void 0 ? void 0 : parseInt(opts.limit, 10);
@@ -10255,8 +10255,17 @@ leadsCmd.command("reachability <dataset>").description(
10255
10255
  console.log(`No leads at offset ${res.offset} of ${res.total}.`);
10256
10256
  } else {
10257
10257
  printAlignedTable(
10258
- ["lead", "reference", "reachability", "via", "reached at"],
10259
- res.leads.map((l) => [l.canonical_lead_id, l.lead_reference, l.reachability, l.reached_via ?? "", l.reached_at ?? ""])
10258
+ ["lead", "reference", "reachability", "via", "reached at", "last answer", "last via", "our last contact"],
10259
+ res.leads.map((l) => [
10260
+ l.canonical_lead_id,
10261
+ l.lead_reference,
10262
+ l.reachability,
10263
+ l.reached_via ?? "",
10264
+ l.reached_at ?? "",
10265
+ l.last_response_at ?? "",
10266
+ l.last_response_via ?? "",
10267
+ l.last_outbound_at ?? ""
10268
+ ])
10260
10269
  );
10261
10270
  const confirmed = res.leads.filter((l) => l.reachability === "confirmed").length;
10262
10271
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.230.0",
3
+ "version": "0.231.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {