@erdoai/cli 0.230.0 → 0.231.1
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/index.js +13 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4428,7 +4428,7 @@ wsCmd.command("phase-add <slug>").description("Append a new phase to a workstrea
|
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
4430
|
);
|
|
4431
|
-
wsCmd.command("set-state <slug>").description("Update a workstream's status / title / description / phase statuses").option("--status <status>", "active, awaiting_user, blocked, completed").option("--title <title>", "retitle").option("--description <text>", "describe current state / surface a blocker").option(
|
|
4431
|
+
wsCmd.command("set-state <slug>").description("Update a workstream's status / title / description / phase statuses").option("--status <status>", "active, awaiting_user, blocked, completed").option("--title <title>", "retitle").option("--description <text>", "describe current state / surface a blocker").option(
|
|
4432
4432
|
"--token-budget <millicents>",
|
|
4433
4433
|
"spend ceiling in millicents \u2014 100,000 per dollar, so 25000000 = $250; this is how you raise a ceiling a loop has spent through",
|
|
4434
4434
|
(v) => parseInt(v, 10)
|
|
@@ -4454,7 +4454,6 @@ wsCmd.command("set-state <slug>").description("Update a workstream's status / ti
|
|
|
4454
4454
|
status: opts.status,
|
|
4455
4455
|
title: opts.title,
|
|
4456
4456
|
description: opts.description,
|
|
4457
|
-
summary: opts.summary,
|
|
4458
4457
|
token_budget_millicents: opts.tokenBudget,
|
|
4459
4458
|
escalation_budget_per_day: opts.escalationBudget,
|
|
4460
4459
|
phase_updates: phaseUpdates.length > 0 ? phaseUpdates : void 0
|
|
@@ -10237,7 +10236,7 @@ unavailable: ${source} \u2014 ${reason}`);
|
|
|
10237
10236
|
}
|
|
10238
10237
|
});
|
|
10239
10238
|
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."
|
|
10239
|
+
"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
10240
|
).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
10241
|
try {
|
|
10243
10242
|
const limit = opts.limit === void 0 ? void 0 : parseInt(opts.limit, 10);
|
|
@@ -10255,8 +10254,17 @@ leadsCmd.command("reachability <dataset>").description(
|
|
|
10255
10254
|
console.log(`No leads at offset ${res.offset} of ${res.total}.`);
|
|
10256
10255
|
} else {
|
|
10257
10256
|
printAlignedTable(
|
|
10258
|
-
["lead", "reference", "reachability", "via", "reached at"],
|
|
10259
|
-
res.leads.map((l) => [
|
|
10257
|
+
["lead", "reference", "reachability", "via", "reached at", "last answer", "last via", "our last contact"],
|
|
10258
|
+
res.leads.map((l) => [
|
|
10259
|
+
l.canonical_lead_id,
|
|
10260
|
+
l.lead_reference,
|
|
10261
|
+
l.reachability,
|
|
10262
|
+
l.reached_via ?? "",
|
|
10263
|
+
l.reached_at ?? "",
|
|
10264
|
+
l.last_response_at ?? "",
|
|
10265
|
+
l.last_response_via ?? "",
|
|
10266
|
+
l.last_outbound_at ?? ""
|
|
10267
|
+
])
|
|
10260
10268
|
);
|
|
10261
10269
|
const confirmed = res.leads.filter((l) => l.reachability === "confirmed").length;
|
|
10262
10270
|
console.log(`
|