@audienti/cli 0.1.135 → 0.1.136
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 +10 -0
- package/package.json +1 -1
- package/src/api-client.js +4 -0
- package/src/cli.js +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to the Audienti CLI are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.136] - 2026-10-24
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `audienti events resolve-uncertain-comment-status <event_id> --resolution <resolution_id>` shows the result of your Computer's check of a pasted short comment link (`GET /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment/status`): checking, resolved or failed, with a message. Read-only.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- `audienti events resolve-uncertain-comment` with a short `lnkd.in` link now starts one read-only check in your Computer (HTTP 202, `status: checking`, `resolution_id`) instead of asking for the full link. The comment is recorded only when the page shows it and shows you as its author; otherwise nothing is recorded (#3097).
|
|
16
|
+
|
|
7
17
|
## [0.1.135] - 2026-10-24
|
|
8
18
|
|
|
9
19
|
### Added
|
package/package.json
CHANGED
package/src/api-client.js
CHANGED
|
@@ -1154,6 +1154,10 @@ export class AudientiClient {
|
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
resolveUncertainCommentStatus(accountId, eventId, resolutionId) {
|
|
1158
|
+
return this.requestJson(accountPath(accountId, ["events", eventId, "resolve_uncertain_comment", "status"], { resolution_id: resolutionId }));
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1157
1161
|
deleteProfile(accountId, profileId) {
|
|
1158
1162
|
return this.requestJson(accountPath(accountId, ["profiles", profileId]), {
|
|
1159
1163
|
method: "DELETE"
|
package/src/cli.js
CHANGED
|
@@ -15894,11 +15894,24 @@ const PARITY_ACTION_COMMANDS = new Map([
|
|
|
15894
15894
|
required: ["outcome"],
|
|
15895
15895
|
run: (client, accountId, [id], values) => client.resolveUncertainComment(accountId, id, compactObject({ outcome: values.outcome, comment_url: values.link })),
|
|
15896
15896
|
done: ([id], payload) => {
|
|
15897
|
-
if (payload?.status === "
|
|
15897
|
+
if (payload?.status === "checking") return `Event ${id}: your Computer is checking the short link (${display(payload?.short_url)}). Check the result with: audienti events resolve-uncertain-comment-status ${id} --resolution ${display(payload?.resolution_id)}`;
|
|
15898
15898
|
if (payload?.status === "not_sent_recorded" || payload?.status === "already_not_sent") return `Event ${id} is recorded as not sent. Nothing was sent.`;
|
|
15899
15899
|
return `Event ${id} is recorded as posted (${display(payload?.status)}).`;
|
|
15900
15900
|
}
|
|
15901
15901
|
}],
|
|
15902
|
+
["events resolve-uncertain-comment-status", {
|
|
15903
|
+
usage: "audienti events resolve-uncertain-comment-status <event_id> --resolution <resolution_id>",
|
|
15904
|
+
purpose: "Show whether your Computer has finished checking a short comment link: checking, resolved or failed. Read-only.",
|
|
15905
|
+
api: "GET /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment/status.json",
|
|
15906
|
+
options: { resolution: { type: "string" } },
|
|
15907
|
+
required: ["resolution"],
|
|
15908
|
+
run: (client, accountId, [id], values) => client.resolveUncertainCommentStatus(accountId, id, values.resolution),
|
|
15909
|
+
done: ([id], payload) => {
|
|
15910
|
+
if (payload?.status === "resolved") return `Event ${id}: the comment is recorded as posted (${display(payload?.comment_url)}).`;
|
|
15911
|
+
if (payload?.status === "failed") return `Event ${id}: the check did not confirm the comment (${display(payload?.code)}). ${display(payload?.message)}`;
|
|
15912
|
+
return `Event ${id}: your Computer is still checking the link.`;
|
|
15913
|
+
}
|
|
15914
|
+
}],
|
|
15902
15915
|
["profiles delete", {
|
|
15903
15916
|
usage: "audienti profiles delete <profile_id>",
|
|
15904
15917
|
purpose: "Remove one profile from its prospect. Backend admins only, like the web action.",
|