@audienti/cli 0.1.134 → 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 CHANGED
@@ -4,6 +4,22 @@ 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
+
17
+ ## [0.1.135] - 2026-10-24
18
+
19
+ ### Added
20
+
21
+ - `audienti events resolve-uncertain-comment <event_id> --outcome <posted|not_sent> [--link <comment_link>]` settles a post comment whose result is unclear (`POST /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment`). Say it was posted (with the link to the comment) or not sent. It records the answer only: nothing is sent, retried or queued. A comment marked not sent is not planned again by itself (#3097).
22
+
7
23
  ## [0.1.134] - 2026-10-23
8
24
 
9
25
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audienti/cli",
3
- "version": "0.1.134",
3
+ "version": "0.1.136",
4
4
  "description": "Agent-first command-line client for Audienti.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/api-client.js CHANGED
@@ -1147,6 +1147,17 @@ export class AudientiClient {
1147
1147
  });
1148
1148
  }
1149
1149
 
1150
+ resolveUncertainComment(accountId, eventId, body) {
1151
+ return this.requestJson(accountPath(accountId, ["events", eventId, "resolve_uncertain_comment"]), {
1152
+ method: "POST",
1153
+ body
1154
+ });
1155
+ }
1156
+
1157
+ resolveUncertainCommentStatus(accountId, eventId, resolutionId) {
1158
+ return this.requestJson(accountPath(accountId, ["events", eventId, "resolve_uncertain_comment", "status"], { resolution_id: resolutionId }));
1159
+ }
1160
+
1150
1161
  deleteProfile(accountId, profileId) {
1151
1162
  return this.requestJson(accountPath(accountId, ["profiles", profileId]), {
1152
1163
  method: "DELETE"
package/src/cli.js CHANGED
@@ -15886,6 +15886,32 @@ const PARITY_ACTION_COMMANDS = new Map([
15886
15886
  run: (client, accountId, [id]) => client.retryEvent(accountId, id),
15887
15887
  done: ([id], payload) => `Retried event ${id} as ${display(payload?.event?.id)}.`
15888
15888
  }],
15889
+ ["events resolve-uncertain-comment", {
15890
+ usage: "audienti events resolve-uncertain-comment <event_id> --outcome <posted|not_sent> [--link <comment_link>]",
15891
+ purpose: "Settle a post comment whose result is unclear. Say it was posted (with the link to the comment) or that it was not sent. Records your answer; nothing is sent or retried.",
15892
+ api: "POST /api/v1/accounts/:account_id/events/:id/resolve_uncertain_comment.json",
15893
+ options: { outcome: { type: "string" }, link: { type: "string" } },
15894
+ required: ["outcome"],
15895
+ run: (client, accountId, [id], values) => client.resolveUncertainComment(accountId, id, compactObject({ outcome: values.outcome, comment_url: values.link })),
15896
+ done: ([id], payload) => {
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
+ if (payload?.status === "not_sent_recorded" || payload?.status === "already_not_sent") return `Event ${id} is recorded as not sent. Nothing was sent.`;
15899
+ return `Event ${id} is recorded as posted (${display(payload?.status)}).`;
15900
+ }
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
+ }],
15889
15915
  ["profiles delete", {
15890
15916
  usage: "audienti profiles delete <profile_id>",
15891
15917
  purpose: "Remove one profile from its prospect. Backend admins only, like the web action.",