@audienti/cli 0.1.135 → 0.1.137

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.137] - 2026-10-24
8
+
9
+ ### Changed
10
+
11
+ - No CLI behavior change. The API events controller now shares its rejection status table with the Operator drawer for settling an uncertain post comment (#3097).
12
+
13
+ ## [0.1.136] - 2026-10-24
14
+
15
+ ### Added
16
+
17
+ - `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.
18
+
19
+ ### Changed
20
+
21
+ - `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).
22
+
7
23
  ## [0.1.135] - 2026-10-24
8
24
 
9
25
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audienti/cli",
3
- "version": "0.1.135",
3
+ "version": "0.1.137",
4
4
  "description": "Agent-first command-line client for Audienti.",
5
5
  "type": "module",
6
6
  "bin": {
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 === "needs_resolution") return `Event ${id}: that is a short link (${display(payload?.short_url)}). Paste the full comment link instead.`;
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.",