@curviate/cli 0.52.0 → 0.54.0

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/README.md +2 -2
  3. package/dist/{account-2IHGWLU7.js → account-DW5N5MJ6.js} +9 -9
  4. package/dist/{analytics-SBHNCE24.js → analytics-T2K3OWVQ.js} +6 -6
  5. package/dist/{beta-consent-QJBRBON3.js → beta-consent-O736ONE7.js} +5 -5
  6. package/dist/{billing-KL6GL5PF.js → billing-NTBL32EX.js} +6 -6
  7. package/dist/{chunk-44COK554.js → chunk-5B4T6BMN.js} +22 -18
  8. package/dist/{chunk-PHKICMO7.js → chunk-62YAYAUI.js} +6 -0
  9. package/dist/{chunk-6BDA6B32.js → chunk-A3UNS44U.js} +5 -5
  10. package/dist/{chunk-UXFLLYFY.js → chunk-ACKKHLUH.js} +2 -2
  11. package/dist/{chunk-OQKN3U74.js → chunk-FBLCSVIU.js} +19 -10
  12. package/dist/{chunk-XDG3TOKG.js → chunk-FUX3BRYP.js} +2 -1
  13. package/dist/{chunk-OUY3GVWJ.js → chunk-HOMRAZ6S.js} +1 -1
  14. package/dist/{chunk-QA777QEJ.js → chunk-KXJJFHSD.js} +1 -1
  15. package/dist/{chunk-6SBO4WXA.js → chunk-N4IYTFIY.js} +1 -1
  16. package/dist/{chunk-UA4DEQ3K.js → chunk-N76WNJ5T.js} +2 -2
  17. package/dist/{chunk-JGPR6AGO.js → chunk-Q57PZJLX.js} +12 -12
  18. package/dist/{chunk-RYWWSZUH.js → chunk-QLKGOIWS.js} +2 -2
  19. package/dist/{chunk-AQVE6HO5.js → chunk-R4HS2MWM.js} +1 -1
  20. package/dist/{chunk-SIOEKNCN.js → chunk-UFHT2KZG.js} +1 -1
  21. package/dist/{chunk-GXEHHSM7.js → chunk-V3HHYTBY.js} +1 -1
  22. package/dist/cli.js +25 -25
  23. package/dist/{comment-ABRBF7J4.js → comment-ATVJOTWV.js} +6 -6
  24. package/dist/{company-WQPWHAZJ.js → company-BRKFROPE.js} +7 -7
  25. package/dist/{config-RFXNYRRC.js → config-E223SS5K.js} +3 -3
  26. package/dist/{connect-R7A6RJJJ.js → connect-XVDQ5FTT.js} +7 -7
  27. package/dist/{contact-FHR4RAXL.js → contact-4HOUOVD7.js} +8 -8
  28. package/dist/{contact-groups-AAJT4TZ6.js → contact-groups-ENA3VGGL.js} +13 -12
  29. package/dist/{contact-import-3KASFYC5.js → contact-import-4EKVDFPV.js} +10 -10
  30. package/dist/core-6VDDV2NM.js +46 -0
  31. package/dist/{do-not-contact-QMFIJOAA.js → do-not-contact-S2WGHSQL.js} +12 -12
  32. package/dist/{doctor-4TNHUBYZ.js → doctor-OFIUGRUG.js} +4 -4
  33. package/dist/{document-RXBOZG6M.js → document-MDE2WJYX.js} +1 -1
  34. package/dist/{draft-F56TKIQ3.js → draft-DD3DTXBM.js} +4 -4
  35. package/dist/{enrollment-WCG5MX65.js → enrollment-ESCHKQ5X.js} +6 -6
  36. package/dist/{examples-ICAGL2S5.js → examples-KAMXHRLE.js} +1 -1
  37. package/dist/{export-UVUY3IMF.js → export-GUAGB7TF.js} +5 -5
  38. package/dist/{feed-6NN2YWOQ.js → feed-ZC4FY4BA.js} +5 -5
  39. package/dist/{group-BXL4QDZL.js → group-42ZE7K3K.js} +5 -5
  40. package/dist/{inbox-GOO5UA3J.js → inbox-2YS7CTXH.js} +5 -5
  41. package/dist/{inboxes-GGN7SULO.js → inboxes-5RB3BGCQ.js} +5 -5
  42. package/dist/{incoming-AZPAGR3L.js → incoming-ATZN6JJA.js} +6 -6
  43. package/dist/{job-R5TGUKTB.js → job-WD3Z3P3Q.js} +6 -6
  44. package/dist/{login-LZH3HY2J.js → login-JQ57YHEJ.js} +3 -3
  45. package/dist/{message-YY2BB47Z.js → message-WGS2IIDC.js} +6 -6
  46. package/dist/{motion-2RCKZSK5.js → motion-BRVBJJJP.js} +17 -13
  47. package/dist/{network-5VDLBVU7.js → network-CODIWCJQ.js} +6 -6
  48. package/dist/{notification-DVHDC2IA.js → notification-RLVF4NLJ.js} +5 -5
  49. package/dist/{notifications-GZKDD7SV.js → notifications-HGEHM5KW.js} +6 -6
  50. package/dist/{post-JKXMJZXS.js → post-3GH2IPO6.js} +6 -6
  51. package/dist/{profile-CYFEDUEC.js → profile-6RFJQMIB.js} +7 -7
  52. package/dist/{recruiter-MRJDGK6O.js → recruiter-GK3UNS62.js} +8 -8
  53. package/dist/{sales-nav-5ABDKON4.js → sales-nav-SLS3ABF4.js} +7 -7
  54. package/dist/{search-JDNUGHRX.js → search-45WRT5T3.js} +8 -8
  55. package/dist/{setup-EXPWIHTM.js → setup-5QZOM2Q2.js} +4 -4
  56. package/dist/{team-5XD2O5UO.js → team-WM3RKOQ2.js} +6 -6
  57. package/dist/{tier-CNDUZKXE.js → tier-5AMLO5KE.js} +9 -11
  58. package/dist/{unibox-MAAEROM5.js → unibox-TTCF7YVO.js} +8 -7
  59. package/dist/{webhook-XVTE3ZVM.js → webhook-UCCCSKDO.js} +6 -6
  60. package/package.json +2 -2
  61. package/dist/core-GANWZKQZ.js +0 -46
package/CHANGELOG.md CHANGED
@@ -6,7 +6,40 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
  Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
7
7
  a new command or flag is a minor; a breaking command/flag/exit-code change is a major (before 1.0.0, a minor); a fix is a patch.
8
8
 
9
- ## [Unreleased]
9
+ ## [0.54.0] - 2026-11-16
10
+
11
+ ### `tier` stops printing `pending` and `early access`
12
+
13
+ - **BREAKING (output):** `curviate tier` no longer prints the `pending` and `early access` lines, and `--json` no longer carries the `pending` and `early_access` keys: the server dropped both (no alias, no `null`). A script reading either key from `tier --json` gets nothing; delete the read. The command's help drops "pending change" and "early access".
14
+ - Requires `@curviate/sdk` 0.50.1 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's, regenerated from staging 5f8e10405f79; `commands.json` regenerated.
15
+
16
+ ## [0.53.0] - 2026-11-09
17
+
18
+ Requires `@curviate/sdk` 0.49.0 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's, fetched from production 134827ce6.
19
+
20
+ ### Forecast
21
+
22
+ - **`analytics get --include forecast`** and **`account overview --include forecast`**, with **`--forecast-days N`** (default 30, the server allows 1 to 365): per day from today, what your Motions are expected to send and get (invitations, acceptances, messages, replies with InMail replies included, InMails, InMail replies), a simulation with their observed rates. Motions only; it assumes the configuration frozen as it is now. A draft Motion reads as if turned on now. The human table prints it under `forecast through <day>`; a draft with no Account says there is none, and `status: computing` (an Account of the scope has had no simulation yet) says so instead of printing zeros. `--forecast-days` is refused with `--view activity`, and when it is not a whole number (exit 2, no request).
23
+ - **Same wording, new meaning:** `motion preview` help: a draft's expected actions a day are the mean daily invitations, messages and InMails of the first 7 days of its forecast, as if turned on now.
24
+ - `analytics get` and `account overview` help name the section. `commands.json` regenerated.
25
+
26
+ ### Contact import: async, and a busy Team names the import in its way
27
+
28
+ - **`contact import --async`** prints the imports' ids and statuses as soon as each is accepted and exits 0, without waiting; stderr names `curviate contact imports get IMPORT_ID` for a queued one. Same as `--no-wait`, which stays.
29
+ - **A busy-Team 429 (`RATE_LIMIT_TENANT`) names the import holding the Team's write lock** when the API names one (`details.import_id`, `details.started_at`): in the wait line on stderr and in the final error, so an agent reads that import instead of guessing.
30
+
31
+ - `--all` and `--max-pages` help: the default cap (100 pages), that a capped run ends with a `stream_truncated` line on stdout plus a stderr note, and that it still exits 0. Help text only.
32
+
33
+ ### Hygiene
34
+
35
+ - `motion lint` checks a Motion file's fields with the schema `motion create` uses: an unknown top-level or `settings` key (`description`), a missing `name` and the other field rules now exit 2 in lint, as they do in create. A bare Sequence document is unchanged.
36
+ - No-Account hint (`--account` omitted, none connected) says "Team" and sends the person to the dashboard (Accounts, Connect account) or `curviate account connect-request create`, not the stdin-credential `account link`.
37
+ - Help states limits: `unibox list --limit` 1 to 100, `unibox messages --limit` 1 to 25, `do-not-contact list --limit` 1 to 100 (the API returns no total there, so no `--total`); `contact lists add|remove` help names `--from-list` as the list filter, with an example.
38
+
39
+ ### Pending invitations
40
+
41
+ - **`core connect sent`** keeps `user.public_identifier` in the slim output (null when unknown). LinkedIn sends no slug for sent invitations; the API fills it from stored data when it knows the person.
42
+ - `motion preview` prints the new `pending_invite` skip count as the API returns it (Motions skip a Contact any Team Account has a pending invitation to; `settings.exclude.pending_invites`, default on). `motion create|update --file` accept `settings.exclude.pending_invites` (vendored document schemas re-derived from the OpenAPI fixture served by staging e858d1ed0; the SDK pin stays 0.48.0, whose generated types already carry it).
10
43
 
11
44
  ## [0.52.0] - 2026-11-08
12
45
 
package/README.md CHANGED
@@ -107,8 +107,8 @@ Global flags available on every command:
107
107
  --fields Comma-separated list of fields to include in JSON output
108
108
  --limit Maximum number of results to return per page
109
109
  --cursor Pagination cursor from a previous response (an empty value is a usage error, never a restart)
110
- --all Stream all pages as NDJSON
111
- --max-pages Cap on the number of pages fetched with --all (a positive integer)
110
+ --all Stream pages as NDJSON until --max-pages is reached, then end with a stream_truncated line
111
+ --max-pages Cap on the number of pages fetched with --all (a positive integer, default 100)
112
112
  --page-delay Milliseconds to pause between pages when --all is used (default 400)
113
113
  --preview Show what would happen without sending any write request
114
114
  --verbose Output the full SDK response instead of the slim default
@@ -3,14 +3,14 @@ import {
3
3
  slimAccountGet,
4
4
  slimAccountList,
5
5
  slimAccountListItem
6
- } from "./chunk-XDG3TOKG.js";
6
+ } from "./chunk-FUX3BRYP.js";
7
7
  import {
8
8
  GRAMMAR_ARGS,
9
9
  WINDOW_ARGS,
10
10
  grammarParams,
11
11
  renderOverview,
12
12
  windowParams
13
- } from "./chunk-OQKN3U74.js";
13
+ } from "./chunk-FBLCSVIU.js";
14
14
  import {
15
15
  print,
16
16
  table
@@ -22,7 +22,7 @@ import {
22
22
  outputOpts,
23
23
  rootClient,
24
24
  usage
25
- } from "./chunk-OUY3GVWJ.js";
25
+ } from "./chunk-HOMRAZ6S.js";
26
26
  import {
27
27
  buildPreviewOutput
28
28
  } from "./chunk-TCUYH5GO.js";
@@ -37,7 +37,7 @@ import {
37
37
  readablePage,
38
38
  rejectPaginationModifiersWithoutAll,
39
39
  streamAll
40
- } from "./chunk-QA777QEJ.js";
40
+ } from "./chunk-KXJJFHSD.js";
41
41
  import {
42
42
  isJsonMode,
43
43
  renderError,
@@ -53,20 +53,20 @@ import {
53
53
  import {
54
54
  createClient,
55
55
  resolveEffectiveConfig
56
- } from "./chunk-UA4DEQ3K.js";
56
+ } from "./chunk-N76WNJ5T.js";
57
57
  import {
58
58
  GLOBAL_FLAGS,
59
59
  READ_SINGLE_FLAGS,
60
60
  WRITE_SINGLE_FLAGS,
61
61
  readOnly
62
- } from "./chunk-RYWWSZUH.js";
62
+ } from "./chunk-QLKGOIWS.js";
63
63
  import {
64
64
  DESCRIPTIONS
65
- } from "./chunk-AQVE6HO5.js";
65
+ } from "./chunk-R4HS2MWM.js";
66
66
  import {
67
67
  parseDocument,
68
68
  readFileFlag
69
- } from "./chunk-PHKICMO7.js";
69
+ } from "./chunk-62YAYAUI.js";
70
70
  import "./chunk-FDJMAF7D.js";
71
71
  import {
72
72
  defaultReadStdin,
@@ -681,7 +681,7 @@ var connectRequestCommand = defineCommand4({
681
681
  meta: { name: "connect-request", description: "Connect a LinkedIn account without any credential passing through you: create a request, give the person its link, read it until done." },
682
682
  subCommands: { create: createCmd, get: getCmd2, cancel: cancelCmd },
683
683
  async run() {
684
- const { showHelp } = await import("./examples-ICAGL2S5.js");
684
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
685
685
  await showHelp(connectRequestCommand, ["curviate", "account", "connect-request"]);
686
686
  }
687
687
  });
@@ -6,16 +6,16 @@ import {
6
6
  grammarParams,
7
7
  renderOverview,
8
8
  windowParams
9
- } from "./chunk-OQKN3U74.js";
9
+ } from "./chunk-FBLCSVIU.js";
10
10
  import "./chunk-5S3MJVI5.js";
11
11
  import "./chunk-PPGKQJKU.js";
12
- import "./chunk-OUY3GVWJ.js";
12
+ import "./chunk-HOMRAZ6S.js";
13
13
  import "./chunk-NNV2OYEF.js";
14
- import "./chunk-QA777QEJ.js";
14
+ import "./chunk-KXJJFHSD.js";
15
15
  import "./chunk-QM57YDJE.js";
16
- import "./chunk-UA4DEQ3K.js";
17
- import "./chunk-RYWWSZUH.js";
18
- import "./chunk-AQVE6HO5.js";
16
+ import "./chunk-N76WNJ5T.js";
17
+ import "./chunk-QLKGOIWS.js";
18
+ import "./chunk-R4HS2MWM.js";
19
19
  import "./chunk-ZYURL5VK.js";
20
20
  export {
21
21
  GRAMMAR_ARGS,
@@ -4,22 +4,22 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-OUY3GVWJ.js";
7
+ } from "./chunk-HOMRAZ6S.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
11
11
  import {
12
12
  renderSuccess
13
13
  } from "./chunk-QM57YDJE.js";
14
- import "./chunk-UA4DEQ3K.js";
14
+ import "./chunk-N76WNJ5T.js";
15
15
  import {
16
16
  READ_SINGLE_FLAGS,
17
17
  WRITE_SINGLE_FLAGS,
18
18
  readOnly
19
- } from "./chunk-RYWWSZUH.js";
19
+ } from "./chunk-QLKGOIWS.js";
20
20
  import {
21
21
  DESCRIPTIONS
22
- } from "./chunk-AQVE6HO5.js";
22
+ } from "./chunk-R4HS2MWM.js";
23
23
  import "./chunk-ZYURL5VK.js";
24
24
 
25
25
  // src/commands/beta-consent.ts
@@ -72,7 +72,7 @@ var betaCommand = defineCommand({
72
72
  meta: { name: "beta", description: DESCRIPTIONS.beta },
73
73
  subCommands: { status: statusCmd, update: updateCmd },
74
74
  async run() {
75
- const { showHelp } = await import("./examples-ICAGL2S5.js");
75
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
76
76
  await showHelp(betaCommand, ["curviate", "beta"]);
77
77
  }
78
78
  });
@@ -7,7 +7,7 @@ import {
7
7
  outputOpts,
8
8
  rootClient,
9
9
  usage
10
- } from "./chunk-OUY3GVWJ.js";
10
+ } from "./chunk-HOMRAZ6S.js";
11
11
  import {
12
12
  intFlag
13
13
  } from "./chunk-NNV2OYEF.js";
@@ -18,21 +18,21 @@ import {
18
18
  readablePage,
19
19
  rejectPaginationModifiersWithoutAll,
20
20
  streamAll
21
- } from "./chunk-QA777QEJ.js";
21
+ } from "./chunk-KXJJFHSD.js";
22
22
  import {
23
23
  renderSuccess,
24
24
  writeNdjsonItem
25
25
  } from "./chunk-QM57YDJE.js";
26
26
  import {
27
27
  downloadBinary
28
- } from "./chunk-UA4DEQ3K.js";
28
+ } from "./chunk-N76WNJ5T.js";
29
29
  import {
30
30
  GLOBAL_FLAGS,
31
31
  readOnly
32
- } from "./chunk-RYWWSZUH.js";
32
+ } from "./chunk-QLKGOIWS.js";
33
33
  import {
34
34
  DESCRIPTIONS
35
- } from "./chunk-AQVE6HO5.js";
35
+ } from "./chunk-R4HS2MWM.js";
36
36
  import "./chunk-ZYURL5VK.js";
37
37
 
38
38
  // src/commands/billing.ts
@@ -115,7 +115,7 @@ var billingCommand = defineCommand({
115
115
  meta: { name: "billing", description: DESCRIPTIONS.billing },
116
116
  subCommands: { invoices: invoicesCmd },
117
117
  async run() {
118
- const { showHelp } = await import("./examples-ICAGL2S5.js");
118
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
119
119
  await showHelp(billingCommand, ["curviate", "billing"]);
120
120
  }
121
121
  });
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  online,
4
4
  preview
5
- } from "./chunk-JGPR6AGO.js";
5
+ } from "./chunk-Q57PZJLX.js";
6
6
  import {
7
7
  sendChunked
8
- } from "./chunk-SIOEKNCN.js";
8
+ } from "./chunk-UFHT2KZG.js";
9
9
  import {
10
10
  fail,
11
11
  listFlag,
12
12
  outputOpts,
13
13
  usage
14
- } from "./chunk-OUY3GVWJ.js";
14
+ } from "./chunk-HOMRAZ6S.js";
15
15
  import {
16
16
  intFlag
17
17
  } from "./chunk-NNV2OYEF.js";
@@ -23,22 +23,22 @@ import {
23
23
  readablePage,
24
24
  rejectPaginationModifiersWithoutAll,
25
25
  streamAll
26
- } from "./chunk-QA777QEJ.js";
26
+ } from "./chunk-KXJJFHSD.js";
27
27
  import {
28
28
  renderSuccess,
29
29
  writeNdjsonItem
30
30
  } from "./chunk-QM57YDJE.js";
31
31
  import {
32
32
  withWireNotes
33
- } from "./chunk-UA4DEQ3K.js";
33
+ } from "./chunk-N76WNJ5T.js";
34
34
  import {
35
35
  GLOBAL_FLAGS,
36
36
  WRITE_SINGLE_FLAGS,
37
37
  readOnly
38
- } from "./chunk-RYWWSZUH.js";
38
+ } from "./chunk-QLKGOIWS.js";
39
39
  import {
40
40
  readFileFlag
41
- } from "./chunk-PHKICMO7.js";
41
+ } from "./chunk-62YAYAUI.js";
42
42
  import {
43
43
  isStdinToken
44
44
  } from "./chunk-ZYURL5VK.js";
@@ -157,11 +157,13 @@ async function createChunk(c, body, rows, seen, k, n) {
157
157
  if (!(err instanceof CurviateError)) throw err;
158
158
  if (err.code === "RATE_LIMIT_TENANT") {
159
159
  const wait = notes.retryAfterS ?? RETRY_DEFAULT_S;
160
- if (wait > RETRY_AFTER_BOUND_S) {
161
- throw new CurviateError({ code: err.code, message: `${err.message} The API asked to wait ${wait} s, more than the ${RETRY_AFTER_BOUND_S} s the CLI waits. Nothing in this chunk was imported; send it again later.`, httpStatus: 429, userFixable: false, retryLikelyToSucceed: true });
160
+ const d = err.details;
161
+ const holder = typeof d?.import_id === "string" ? ` Import ${d.import_id} (started ${String(d.started_at)}) holds the Team's write lock: read it with \`curviate contact imports get ${d.import_id}\`.` : "";
162
+ if (wait > RETRY_AFTER_BOUND_S || sends >= MAX_SENDS) {
163
+ const why = wait > RETRY_AFTER_BOUND_S ? ` The API asked to wait ${wait} s, more than the ${RETRY_AFTER_BOUND_S} s the CLI waits.` : "";
164
+ throw new CurviateError({ code: err.code, message: `${err.message}${why} Nothing in this chunk was imported; send it again later.${holder}`, httpStatus: 429, userFixable: false, retryLikelyToSucceed: true, ...err.details ? { details: err.details } : {} });
162
165
  }
163
- if (sends >= MAX_SENDS) throw err;
164
- say(`Import ${k} of ${n}: the Team has other Contact writes running (nothing was imported); waiting ${wait} s, then sending it again.`);
166
+ say(`Import ${k} of ${n}: the Team has other Contact writes running (nothing was imported); waiting ${wait} s, then sending it again.${holder}`);
165
167
  await sleep(wait * 1e3);
166
168
  continue;
167
169
  }
@@ -224,7 +226,7 @@ async function runImport(c, f) {
224
226
  const bodyOf = (rows) => ({ ...base, ...header !== void 0 ? { csv: [header, ...rows].join("\n") } : { rows } });
225
227
  const total = chunks.reduce((n, x) => n + x.length, 0);
226
228
  if (f.preview) return preview("contacts.imports.create", chunks.length > 1 ? { imports: chunks.length, rows: total } : {}, bodyOf(chunks[0]));
227
- const wait = !(f["no-wait"] === true || f.wait === false);
229
+ const wait = !(f["no-wait"] === true || f.wait === false || f.async === true);
228
230
  const poll = async (made) => {
229
231
  let imp = made;
230
232
  while (wait && imp.status !== "completed" && imp.status !== "failed") {
@@ -245,6 +247,7 @@ async function runImport(c, f) {
245
247
  at += rows.length;
246
248
  done.push(imp);
247
249
  if (imp.status === "failed") throw await failedImport(imp);
250
+ if (!wait && imp.status !== "completed") say(`Import ${done.length} of ${chunks.length}: ${imp.id} is ${imp.status}; read its progress with \`curviate contact imports get ${imp.id}\`.`);
248
251
  return imp;
249
252
  },
250
253
  f,
@@ -277,7 +280,7 @@ async function skippedRows(c, imp) {
277
280
  var importCmd = defineCommand({
278
281
  meta: {
279
282
  name: "import",
280
- description: `Import Contacts from a CSV, JSON (an array of objects) or NDJSON file. The format comes from the extension; with --file - pass --format. A file above ${IMPORT_MAX_ROWS} rows or ${(IMPORT_MAX_BODY_BYTES / 1048576).toFixed(0)} MiB is split into several imports, run one after the other (a CSV's header is repeated), each awaited unless --no-wait; the first refused or failed import stops the run. Only the file's structure is checked here; the server skips bad rows and reports why. Re-importing merges: a Contact already there is updated or left as it is. If the request times out or the connection drops, the CLI looks up the Team's newest imports, again every 2 s for up to 30 s while none shows, and reports the one this request made (id and status; it waits on a running one); it says nothing was imported only when none appeared. A busy-Team 429 (RATE_LIMIT_TENANT) waits the advertised Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends that import again; a longer wait fails. Needs Automate.`,
283
+ description: `Import Contacts from a CSV, JSON (an array of objects) or NDJSON file. The format comes from the extension; with --file - pass --format. A file above ${IMPORT_MAX_ROWS} rows or ${(IMPORT_MAX_BODY_BYTES / 1048576).toFixed(0)} MiB is split into several imports, run one after the other (a CSV's header is repeated), each awaited unless --async (or --no-wait); the first refused or failed import stops the run. Only the file's structure is checked here; the server skips bad rows and reports why. Re-importing merges: a Contact already there is updated or left as it is. If the request times out or the connection drops, the CLI looks up the Team's newest imports, again every 2 s for up to 30 s while none shows, and reports the one this request made (id and status; it waits on a running one); it says nothing was imported only when none appeared. A busy-Team 429 (RATE_LIMIT_TENANT) waits the advertised Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends that import again, naming the import holding the Team's write lock when the API names one; a longer wait fails. Needs Automate.`,
281
284
  risk: "write",
282
285
  rules: {
283
286
  changes: "Contacts are created or updated, joined to --list (and, with --apply-lists, to the lists their `lists` column names) and tagged with --tag. Nothing is sent to LinkedIn or to the people.",
@@ -289,15 +292,15 @@ var importCmd = defineCommand({
289
292
  errors: {
290
293
  CONTACT_LIMIT_REACHED: "the Team is at its Contact cap; rows past it are skipped.",
291
294
  IMPORT_QUEUE_FULL: "too many imports are queued (429); wait, then run it again.",
292
- RATE_LIMIT_TENANT: `the Team has other Contact or Motion writes running (429, nothing imported); the CLI waits Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends again, a longer wait stops the run.`,
295
+ RATE_LIMIT_TENANT: `the Team has other Contact or Motion writes running (429, nothing imported); the CLI waits Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends again, a longer wait stops the run. When an import holds the Team's write lock, the message and \`details.import_id\` name it: read it with \`curviate contact imports get\`.`,
293
296
  CLIENT_TIMEOUT: "no answer within --timeout; the CLI reads the Team's newest imports (again for up to 30 s while none shows) and reports the import this request made. None found: nothing was imported so far, but read `curviate contact imports list` before running it again.",
294
297
  NAME_TAKEN: "--list-name names a list that exists."
295
298
  },
296
- output: ["With --json stdout is exactly one JSON document; progress and waits go to stderr. One report: `imports` (id and status each), `total_rows`, summed `counts` (created, updated, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field. With --no-wait: the imports' ids and statuses only."],
299
+ output: ["With --json stdout is exactly one JSON document; progress and waits go to stderr. One report: `imports` (id and status each), `total_rows`, summed `counts` (created, updated, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field. With --async (or --no-wait): the imports' ids and statuses only, printed as soon as each is accepted; a queued one's progress is `curviate contact imports get IMPORT_ID` (stderr names it)."],
297
300
  seeAlso: ["curviate contact imports get", "curviate contact list"],
298
301
  examples: [
299
302
  'curviate contact import --file prospects.csv --list-name "Q4 prospects" --tag conference',
300
- "curviate contact import --file contacts-export.csv --apply-lists --no-wait",
303
+ "curviate contact import --file contacts-export.csv --apply-lists --async",
301
304
  "curviate contact import --file - --format ndjson --list cl_YOUR_LIST_ID"
302
305
  ]
303
306
  },
@@ -312,7 +315,8 @@ var importCmd = defineCommand({
312
315
  "apply-lists": { type: "boolean", description: "Add each Contact to the Contact lists named in its `lists` (an export's column), creating a missing list by name. Only adds. A row past the Team's list limit is skipped (list_limit_reached). Default: the column is ignored." },
313
316
  map: { type: "string", description: 'Map a file header to a Contact field: header=target, for example "LinkedIn Profile=linkedin_url"; repeatable.' },
314
317
  delimiter: { type: "string", description: "A CSV's separator: comma, semicolon or tab. Default: found by the server." },
315
- "no-wait": { type: "boolean", description: "Print the imports' ids without waiting for them to finish. Stops only on a refused request." }
318
+ async: { type: "boolean", description: "Print the imports' ids as soon as each is accepted and exit 0, without waiting for them to finish; follow one with `curviate contact imports get IMPORT_ID`. Stops only on a refused request." },
319
+ "no-wait": { type: "boolean", description: "Same as --async." }
316
320
  },
317
321
  run: online(runImport)
318
322
  });
@@ -375,7 +379,7 @@ var contactImportsCommand = defineCommand({
375
379
  meta: { name: "imports", description: "Your Team's import records." },
376
380
  subCommands: { list: importsList, get: importsGet },
377
381
  async run() {
378
- const { showHelp } = await import("./examples-ICAGL2S5.js");
382
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
379
383
  await showHelp(contactImportsCommand, ["curviate", "contact", "imports"]);
380
384
  }
381
385
  });
@@ -1013,6 +1013,9 @@ var documents_default = {
1013
1013
  },
1014
1014
  known_chats: {
1015
1015
  type: "boolean"
1016
+ },
1017
+ pending_invites: {
1018
+ type: "boolean"
1016
1019
  }
1017
1020
  },
1018
1021
  additionalProperties: false
@@ -1207,6 +1210,9 @@ var documents_default = {
1207
1210
  },
1208
1211
  known_chats: {
1209
1212
  type: "boolean"
1213
+ },
1214
+ pending_invites: {
1215
+ type: "boolean"
1210
1216
  }
1211
1217
  },
1212
1218
  additionalProperties: false
@@ -21,14 +21,14 @@ import {
21
21
  } from "./chunk-VHNF6OZD.js";
22
22
  import {
23
23
  requireAccount
24
- } from "./chunk-UXFLLYFY.js";
24
+ } from "./chunk-ACKKHLUH.js";
25
25
  import {
26
26
  buildPreviewOutput
27
27
  } from "./chunk-TCUYH5GO.js";
28
28
  import {
29
29
  readableId,
30
30
  readableObject
31
- } from "./chunk-QA777QEJ.js";
31
+ } from "./chunk-KXJJFHSD.js";
32
32
  import {
33
33
  renderError,
34
34
  renderSuccess,
@@ -38,15 +38,15 @@ import {
38
38
  createClient,
39
39
  downloadBinary,
40
40
  resolveEffectiveConfig
41
- } from "./chunk-UA4DEQ3K.js";
41
+ } from "./chunk-N76WNJ5T.js";
42
42
  import {
43
43
  READ_SINGLE_FLAGS,
44
44
  WRITE_FLAGS,
45
45
  readOnly
46
- } from "./chunk-RYWWSZUH.js";
46
+ } from "./chunk-QLKGOIWS.js";
47
47
  import {
48
48
  DESCRIPTIONS
49
- } from "./chunk-AQVE6HO5.js";
49
+ } from "./chunk-R4HS2MWM.js";
50
50
  import {
51
51
  looksLikeCommandWord,
52
52
  nearestSubcommand
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-QA777QEJ.js";
4
+ } from "./chunk-KXJJFHSD.js";
5
5
  import {
6
6
  assertNoStdinPlaceholder
7
7
  } from "./chunk-ZYURL5VK.js";
@@ -141,7 +141,7 @@ async function soleConnectedAccount(client, flags, out) {
141
141
  const { accounts } = listed;
142
142
  if (accounts.length === 0) {
143
143
  out.stderr.write(
144
- "error: no LinkedIn account is connected to this workspace yet. Connect one with `curviate account link --auth-method <m> --country <CC>`, then retry.\n"
144
+ "error: no LinkedIn account is connected to this Team yet. Ask your user to connect one in the dashboard (Accounts, Connect account), or run `curviate account connect-request create` and hand them the link, then retry.\n"
145
145
  );
146
146
  process.exit(2);
147
147
  }
@@ -13,7 +13,7 @@ import {
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-OUY3GVWJ.js";
16
+ } from "./chunk-HOMRAZ6S.js";
17
17
  import {
18
18
  intFlag
19
19
  } from "./chunk-NNV2OYEF.js";
@@ -24,22 +24,22 @@ import {
24
24
  readablePage,
25
25
  rejectPaginationModifiersWithoutAll,
26
26
  streamAll
27
- } from "./chunk-QA777QEJ.js";
27
+ } from "./chunk-KXJJFHSD.js";
28
28
  import {
29
29
  renderSuccess,
30
30
  writeNdjsonItem
31
31
  } from "./chunk-QM57YDJE.js";
32
32
  import {
33
33
  downloadBinary
34
- } from "./chunk-UA4DEQ3K.js";
34
+ } from "./chunk-N76WNJ5T.js";
35
35
  import {
36
36
  GLOBAL_FLAGS,
37
37
  READ_SINGLE_FLAGS,
38
38
  readOnly
39
- } from "./chunk-RYWWSZUH.js";
39
+ } from "./chunk-QLKGOIWS.js";
40
40
  import {
41
41
  DESCRIPTIONS
42
- } from "./chunk-AQVE6HO5.js";
42
+ } from "./chunk-R4HS2MWM.js";
43
43
 
44
44
  // src/commands/analytics.ts
45
45
  import { defineCommand } from "citty";
@@ -63,6 +63,7 @@ function grammarParams(f) {
63
63
  if (f.sort !== void 0) q["sort"] = listFlag("sort", f.sort);
64
64
  if (f.limit !== void 0) q["limit"] = intFlag("limit", f.limit);
65
65
  if (f.compare !== void 0) q["compare"] = f.compare;
66
+ if (f["forecast-days"] !== void 0) q["forecast_days"] = intFlag("forecast-days", f["forecast-days"]);
66
67
  return q;
67
68
  }
68
69
  function filterParams(f, keys) {
@@ -116,6 +117,12 @@ function renderOverview(body) {
116
117
  if (Array.isArray(limits) && limits.length) out.push(table(["BUDGET ROW", "USED", "CEILING", "LEFT"], limits.map((r) => [r["budget_row"], r["used"], r["effective_ceiling"], r["remaining"]])));
117
118
  out.push(rowsTable("MOTION", "motion_id", "name", body["motions"]));
118
119
  out.push(rowsTable("ACCOUNT", "account_id", "account_name", body["accounts"]));
120
+ const forecast = body["forecast"];
121
+ if (forecast?.status === "computing") out.push("forecast: being computed (an Account has had no simulation yet); read again in a few minutes");
122
+ else if (forecast?.daily?.length) {
123
+ out.push(`forecast through ${forecast.through} (Motions only, the configuration as it is now)`);
124
+ out.push(table(["DATE", "INVITES", "ACCEPTED", "MESSAGES", "REPLIES", "INMAILS", "INMAIL REPLIES"], forecast.daily.map((d) => [d["date"], d["invites_sent"], d["accepted"], d["messages_sent"], d["replies"], d["inmails_sent"], d["inmail_replies"]])));
125
+ } else if (forecast === null) out.push("forecast: none (pick an Account for this Motion)");
119
126
  for (const fl of body["flags"] ?? []) out.push(`${fl["code"]}: ${fl["message"]}${fl["next"] ? ` (${fl["next"]})` : ""}`);
120
127
  print(out.filter((x) => !!x).join("\n"));
121
128
  }
@@ -128,7 +135,7 @@ async function runGet(c, f) {
128
135
  const view = f.view ?? "motions";
129
136
  if (view !== "motions" && view !== "activity") usage("--view takes motions or activity.");
130
137
  if (view === "activity") {
131
- const motionOnly = ["motion", "motions", "origin", "include", "sort", "limit", "compare", "version"].find((k) => f[k] !== void 0);
138
+ const motionOnly = ["motion", "motions", "origin", "include", "sort", "limit", "compare", "forecast-days", "version"].find((k) => f[k] !== void 0);
132
139
  if (motionOnly) usage(`--${motionOnly} reads Motions: --view activity takes the window and --accounts only.`);
133
140
  }
134
141
  if (f.version !== void 0 && f.motion === void 0) usage("--version needs --motion.");
@@ -222,7 +229,8 @@ var FILTER_ARGS = {
222
229
  origin: { type: "string", description: "Who sent the actions: a comma list of motion, unibox, api; direct is an alias for unibox and api." }
223
230
  };
224
231
  var GRAMMAR_ARGS = {
225
- include: { type: "string", description: "Sections to return, comma list (for example performance,motions,accounts,steps,variants,paths,flags)." },
232
+ include: { type: "string", description: "Sections to return, comma list (for example performance,motions,accounts,steps,variants,paths,flags). forecast: what your Motions are expected to send and get per day from today, a simulation with their observed rates; Motions only, the configuration frozen as it is now (no new Enrollments, no edits), never in the summary." },
233
+ "forecast-days": { type: "string", description: "With --include forecast: days after today, 1-365 (default 30); the forecast ends sooner when activity does." },
226
234
  sort: { type: "string", description: "Order of the Motion and Account lists, comma list of sent, acceptance.rate, reply.rate, inmail_reply.rate, last_activity_at, name; a leading - sorts descending." },
227
235
  limit: { type: "string", description: "How many Motions and Accounts to return." },
228
236
  compare: { type: "string", description: "previous_period: add the same number of days before --from to every rate (`previous`, `delta`)." }
@@ -236,12 +244,13 @@ var getCmd = defineCommand({
236
244
  "acceptance: invitations accepted over invitations sent in the window, so far.",
237
245
  "reply: people who replied over people messaged; InMail reply the same for InMails. Rates move as replies and acceptances arrive; `maturing` counts what was sent under 7 days ago and `low_sample` marks fewer than 30.",
238
246
  "seen (--motion): messages read or replied over messages sent, per message step.",
247
+ "forecast (--include forecast): per day from today, the expected invitations, acceptances, messages, replies (InMail replies included), InMails and InMail replies; a draft Motion as if turned on now.",
239
248
  "A compact table by default; --json (or piped) prints the API body."
240
249
  ],
241
250
  seeAlso: ["curviate analytics events list", "curviate account overview", "Judgement on reading the numbers: https://github.com/curviate/curviate-plugin"],
242
251
  examples: [
243
252
  "curviate analytics get --range 30d",
244
- "curviate analytics get --motion mot_YOUR_MOTION_ID --include steps,paths --range 90d",
253
+ "curviate analytics get --motion mot_YOUR_MOTION_ID --include steps,paths,forecast --forecast-days 14",
245
254
  "curviate analytics get --view activity --from 2026-10-01 --to 2026-10-28"
246
255
  ]
247
256
  },
@@ -312,7 +321,7 @@ var eventsCommand = defineCommand({
312
321
  meta: { name: "events", description: "The records behind the analytics numbers." },
313
322
  subCommands: { list: eventsListCmd },
314
323
  async run() {
315
- const { showHelp } = await import("./examples-ICAGL2S5.js");
324
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
316
325
  await showHelp(eventsCommand, ["curviate", "analytics", "events"]);
317
326
  }
318
327
  });
@@ -324,7 +333,7 @@ var analyticsCommand = defineCommand({
324
333
  export: exportCmd
325
334
  },
326
335
  async run() {
327
- const { showHelp } = await import("./examples-ICAGL2S5.js");
336
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
328
337
  await showHelp(analyticsCommand, ["curviate", "analytics"]);
329
338
  }
330
339
  });
@@ -125,7 +125,8 @@ function slimInviteSentItem(item) {
125
125
  id: rawUser["id"] ?? null,
126
126
  display_name: rawUser["display_name"] ?? null,
127
127
  first_name: rawUser["first_name"] ?? null,
128
- last_name: rawUser["last_name"] ?? null
128
+ last_name: rawUser["last_name"] ?? null,
129
+ public_identifier: rawUser["public_identifier"] ?? null
129
130
  } : null;
130
131
  return {
131
132
  id: item["id"] ?? null,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  createClient,
8
8
  resolveEffectiveConfig
9
- } from "./chunk-UA4DEQ3K.js";
9
+ } from "./chunk-N76WNJ5T.js";
10
10
 
11
11
  // src/lib/root-command.ts
12
12
  var outputOpts = (f) => ({
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-QM57YDJE.js";
6
6
  import {
7
7
  isPlainObject
8
- } from "./chunk-UA4DEQ3K.js";
8
+ } from "./chunk-N76WNJ5T.js";
9
9
 
10
10
  // src/lib/paginate.ts
11
11
  import { CurviateError } from "@curviate/sdk";
@@ -3,7 +3,7 @@ import {
3
3
  parseDocument,
4
4
  readFileFlag,
5
5
  readStdinCapped
6
- } from "./chunk-PHKICMO7.js";
6
+ } from "./chunk-62YAYAUI.js";
7
7
  import {
8
8
  isStdinToken
9
9
  } from "./chunk-ZYURL5VK.js";
@@ -5,7 +5,7 @@ import {
5
5
  getTeamFlag,
6
6
  getWriteKind,
7
7
  isPoll
8
- } from "./chunk-RYWWSZUH.js";
8
+ } from "./chunk-QLKGOIWS.js";
9
9
  import {
10
10
  STDIN_SENTINEL,
11
11
  assertNoStdinPlaceholder,
@@ -274,7 +274,7 @@ import { AsyncLocalStorage } from "async_hooks";
274
274
  import { Curviate, CurviateError as CurviateError2 } from "@curviate/sdk";
275
275
 
276
276
  // package.json
277
- var version = "0.52.0";
277
+ var version = "0.54.0";
278
278
 
279
279
  // src/lib/client.ts
280
280
  function headerStrings(headers) {