@audienti/cli 0.1.5 → 0.1.6

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.6] - 2026-07-12
8
+
9
+ ### Added
10
+
11
+ - Add `audienti writer test-run <prsp_id>` for a single-prospect campaign preview with the no-reply path, planned actions, channel changes, and drafted messages, plus `--mode plan` and `--mode step --step <step_key|row_number>` for fast simulator and targeted writer-debug runs.
12
+ - Add `audienti analytics prospects --cohort-start YYYY-MM-DD --cohort-end YYYY-MM-DD` to inspect prospects by the `AccountProspect.created_at` cohort while keeping `--window` for activity counts.
13
+ - Add `audienti analytics prospects cohort-analysis --weeks <n>` to compare recent weekly prospect cohorts by current pipeline-stage counts.
14
+ - Add `--motion <motn_id>` to prospect analytics so cohorts can be narrowed to one motion/play.
15
+ - Add `--provenance <source>` to prospect analytics for lower-level intake source filters.
16
+ - Add `audienti analytics users --user me` for account-user action audit analytics with date-range, cohort, motion, and provenance filters.
17
+ - Add `audienti motions analytics <motn_id>` to inspect one motion's produced-day prospect cohorts, current active/inactive mix, and funnel stages from `AccountProspect.created_at`.
18
+
19
+ ### Changed
20
+
21
+ - Group root help by work area and common workflow so `audienti help` is easier to scan.
22
+
7
23
  ## [0.1.5] - 2026-07-11
8
24
 
9
25
  ### Added
package/README.md CHANGED
@@ -52,9 +52,12 @@ Common inspection commands:
52
52
 
53
53
  ```bash
54
54
  audienti operator next --plan
55
+ audienti writer test-run <prsp_id>
56
+ audienti motions analytics <motn_id>
55
57
  audienti prospects show <prsp_id> --json
56
58
  audienti prospects list --profiles
57
59
  audienti analytics prospects --window 24h
60
+ audienti analytics users --user me --window 30d
58
61
  audienti analytics visibility --window 24h --user me
59
62
  audienti analytics content --window week
60
63
  ```
@@ -67,6 +70,52 @@ audienti operator next --plan
67
70
  audienti operator next --done --note "Connection request sent."
68
71
  ```
69
72
 
73
+ To inspect activity for prospects that entered the account during a specific
74
+ cohort while keeping a separate activity window:
75
+
76
+ ```bash
77
+ audienti analytics prospects --cohort-start 2026-07-01 --cohort-end 2026-07-07 --window 7d
78
+ ```
79
+
80
+ To compare recent weekly prospect cohorts by their current pipeline stages:
81
+
82
+ ```bash
83
+ audienti analytics prospects cohort-analysis --weeks 4 --motion <motn_id>
84
+ ```
85
+
86
+ To see whether one motion is producing prospects by day, and where each
87
+ produced-day cohort currently sits in the funnel:
88
+
89
+ ```bash
90
+ audienti motions analytics <motn_id>
91
+ ```
92
+
93
+ To audit one account user's outbound actions, optionally narrowed to one motion
94
+ and one AccountProspect.created_at cohort:
95
+
96
+ ```bash
97
+ audienti analytics users --user me --start 2026-07-01 --end 2026-07-07 --cohort-start 2026-06-01 --cohort-end 2026-06-30 --motion <motn_id>
98
+ ```
99
+
100
+ To run a writer campaign test for one prospect, including the no-reply path,
101
+ planned actions, channel changes, and drafted messages:
102
+
103
+ ```bash
104
+ audienti writer test-run <prsp_id>
105
+ ```
106
+
107
+ For fast simulator work, plan the branches without drafting every message:
108
+
109
+ ```bash
110
+ audienti writer test-run <prsp_id> --mode plan
111
+ ```
112
+
113
+ For writer debugging, draft only one selected timeline row on one branch:
114
+
115
+ ```bash
116
+ audienti writer test-run <prsp_id> --mode step --branch no-accept --step 3
117
+ ```
118
+
70
119
  To update a prospect's attached profile channels through the same paths used by
71
120
  the prospect show page:
72
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audienti/cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Agent-first command-line client for Audienti.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/api-client.js CHANGED
@@ -233,6 +233,10 @@ export class AudientiClient {
233
233
  return this.requestJson(accountPath(accountId, ["analytics", "prospects"], query));
234
234
  }
235
235
 
236
+ analyticsUsers(accountId, query = {}) {
237
+ return this.requestJson(accountPath(accountId, ["analytics", "users"], query));
238
+ }
239
+
236
240
  analyticsVisibility(accountId, query = {}) {
237
241
  return this.requestJson(accountPath(accountId, ["analytics", "visibility"], query));
238
242
  }