@audienti/cli 0.1.140 → 0.1.142
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 +12 -0
- package/package.json +1 -1
- package/src/api-client.js +6 -0
- package/src/cli.js +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to the Audienti CLI are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.142] - 2026-10-26
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- No CLI behavior change. The server-side failed-draft queue code moved to new owners (#3091); CLI version bumped because an API contract file changed.
|
|
12
|
+
|
|
13
|
+
## [0.1.141] - 2026-10-26
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `audienti events defer-comment-retry <event_id>` is "Not now" for a post comment you said was not sent (`POST /api/v1/accounts/:account_id/events/:id/defer_comment_retry`). It hides the "Not sent: try again?" offer for 24 hours; the offer comes back once, and a second "Not now" ends it. Nothing is sent.
|
|
18
|
+
|
|
7
19
|
## [0.1.140] - 2026-10-25
|
|
8
20
|
|
|
9
21
|
### Added
|
package/package.json
CHANGED
package/src/api-client.js
CHANGED
|
@@ -1154,6 +1154,12 @@ export class AudientiClient {
|
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
deferCommentRetry(accountId, eventId) {
|
|
1158
|
+
return this.requestJson(accountPath(accountId, ["events", eventId, "defer_comment_retry"]), {
|
|
1159
|
+
method: "POST"
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1157
1163
|
resolveUncertainCommentStatus(accountId, eventId, resolutionId) {
|
|
1158
1164
|
return this.requestJson(accountPath(accountId, ["events", eventId, "resolve_uncertain_comment", "status"], { resolution_id: resolutionId }));
|
|
1159
1165
|
}
|
package/src/cli.js
CHANGED
|
@@ -15901,6 +15901,16 @@ const PARITY_ACTION_COMMANDS = new Map([
|
|
|
15901
15901
|
return `Event ${id} is recorded as posted (${display(payload?.status)}).`;
|
|
15902
15902
|
}
|
|
15903
15903
|
}],
|
|
15904
|
+
["events defer-comment-retry", {
|
|
15905
|
+
usage: "audienti events defer-comment-retry <event_id>",
|
|
15906
|
+
purpose: "Say \"Not now\" to the \"Not sent: try again?\" offer for a post comment you settled as not sent. Hides the offer for 24 hours; it comes back once, and a second \"Not now\" ends it. Nothing is sent.",
|
|
15907
|
+
api: "POST /api/v1/accounts/:account_id/events/:id/defer_comment_retry.json",
|
|
15908
|
+
run: (client, accountId, [id]) => client.deferCommentRetry(accountId, id),
|
|
15909
|
+
done: ([id], payload) => {
|
|
15910
|
+
if (payload?.status === "retired" || payload?.status === "already_retired") return `Event ${id}: the offer to send again has ended. Nothing was sent.`;
|
|
15911
|
+
return `Event ${id}: the offer to send again is hidden until ${display(payload?.hidden_until)}. Nothing was sent.`;
|
|
15912
|
+
}
|
|
15913
|
+
}],
|
|
15904
15914
|
["events resolve-uncertain-comment-status", {
|
|
15905
15915
|
usage: "audienti events resolve-uncertain-comment-status <event_id> --resolution <resolution_id>",
|
|
15906
15916
|
purpose: "Show whether your Computer has finished checking a short comment link: checking, resolved or failed. Read-only.",
|