@opennous/cli 0.19.0 → 0.19.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/runner.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @opennous/cli changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.1
|
|
4
|
+
|
|
5
|
+
### Changed: the first history read goes as far back as your workspace chose
|
|
6
|
+
|
|
7
|
+
The runner's own first read of your history used six months. It now uses the range picked in
|
|
8
|
+
onboarding: 3 months by default, or 6 or 12 (GET-1328).
|
|
9
|
+
|
|
3
10
|
## 0.19.0
|
|
4
11
|
|
|
5
12
|
### Added: read on your own API key
|
package/package.json
CHANGED
package/src/runner.js
CHANGED
|
@@ -120,9 +120,11 @@ export async function runRunner({ api, agent, host = hostname(), version = null,
|
|
|
120
120
|
// read itself, on this plan, and answers its calls like any other.
|
|
121
121
|
if (page.needs_backfill && api.startBackfill && now() - backfillAt >= BACKFILL_RETRY_MS) {
|
|
122
122
|
backfillAt = now();
|
|
123
|
+
// How far back comes from the workspace (GET-1328: 3 months unless they chose 6 or 12).
|
|
124
|
+
const days = Number(page.backfill_days) > 0 ? Number(page.backfill_days) : BACKFILL_DAYS;
|
|
123
125
|
try {
|
|
124
|
-
await api.startBackfill({ days
|
|
125
|
-
log(`Reading your last ${
|
|
126
|
+
await api.startBackfill({ days, confirm: "yes" });
|
|
127
|
+
log(`Reading your last ${Math.round(days / 30)} months of calls and email on your plan. This can take a while; everything new is read after.`);
|
|
126
128
|
} catch (err) {
|
|
127
129
|
log(`Your history read can't start yet (${err.message}). Trying again in ${BACKFILL_RETRY_MS / 60000} minutes.`);
|
|
128
130
|
}
|