@curviate/cli 0.51.0 → 0.53.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 (62) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +2 -2
  3. package/dist/{account-74N7HFFI.js → account-24YCNFNY.js} +9 -9
  4. package/dist/{analytics-CZ372NIV.js → analytics-RMRTJPHK.js} +6 -6
  5. package/dist/{beta-consent-6EY7JWUB.js → beta-consent-KCJUJFAR.js} +5 -5
  6. package/dist/{billing-LJGAAL4W.js → billing-5GK6WIXR.js} +6 -6
  7. package/dist/{chunk-3OYS3NWV.js → chunk-4YGTPVEH.js} +1 -1
  8. package/dist/{chunk-PHKICMO7.js → chunk-62YAYAUI.js} +6 -0
  9. package/dist/{contact-import-PAMRJ6MU.js → chunk-AA2UTHCS.js} +84 -25
  10. package/dist/{chunk-FBBZVIFJ.js → chunk-AQVE6HO5.js} +1 -1
  11. package/dist/{chunk-7AR2OA67.js → chunk-FNENKSJ7.js} +12 -12
  12. package/dist/{chunk-XDG3TOKG.js → chunk-FUX3BRYP.js} +2 -1
  13. package/dist/{chunk-7OUGD5DH.js → chunk-IRKTIZUM.js} +2 -2
  14. package/dist/{chunk-6SBO4WXA.js → chunk-N4IYTFIY.js} +1 -1
  15. package/dist/{chunk-DAFE2MTF.js → chunk-PAXWRJNA.js} +1 -1
  16. package/dist/{chunk-RYWWSZUH.js → chunk-QLKGOIWS.js} +2 -2
  17. package/dist/{chunk-A6UJU6ZW.js → chunk-R5VJTBAJ.js} +19 -10
  18. package/dist/{chunk-ERHJZL7A.js → chunk-TIYRNMGW.js} +3 -3
  19. package/dist/{chunk-BKQZDNXH.js → chunk-WY73KWPF.js} +1 -1
  20. package/dist/{chunk-AUHGVZCD.js → chunk-WYFTBTDQ.js} +5 -5
  21. package/dist/{chunk-3RRINPLF.js → chunk-YHXIFKCU.js} +29 -3
  22. package/dist/cli.js +25 -25
  23. package/dist/{comment-OWNTXKTR.js → comment-UUA7B5YC.js} +6 -6
  24. package/dist/{company-F5Z5Q3YA.js → company-65ILSE2U.js} +7 -7
  25. package/dist/{config-GIU3SIIY.js → config-TMFMXS7T.js} +3 -3
  26. package/dist/{connect-BZY5AA3I.js → connect-URFFJVYY.js} +7 -7
  27. package/dist/{contact-EXEJDG7S.js → contact-A3S2HEBM.js} +8 -8
  28. package/dist/{contact-groups-RQZQCFHI.js → contact-groups-CEV2YITT.js} +13 -12
  29. package/dist/contact-import-HHVKVRJW.js +35 -0
  30. package/dist/core-IOGPY6HS.js +46 -0
  31. package/dist/do-not-contact-QYPADRLJ.js +360 -0
  32. package/dist/{doctor-BLUHL4YW.js → doctor-M7JVNQPQ.js} +4 -4
  33. package/dist/{document-RXBOZG6M.js → document-MDE2WJYX.js} +1 -1
  34. package/dist/{draft-5ULT2UFJ.js → draft-6KY4F5AE.js} +6 -6
  35. package/dist/{enrollment-WF5DDULC.js → enrollment-IXQD5IGZ.js} +6 -6
  36. package/dist/{examples-ICAGL2S5.js → examples-KAMXHRLE.js} +1 -1
  37. package/dist/{export-CF7IAMYC.js → export-7ILY53LY.js} +5 -5
  38. package/dist/{feed-PR43TIM3.js → feed-GESAX65K.js} +5 -5
  39. package/dist/{group-W5QAQJBZ.js → group-KKTBXE42.js} +5 -5
  40. package/dist/{inbox-NO3RDC4U.js → inbox-QQ6AQDVB.js} +5 -5
  41. package/dist/{inboxes-PN26B6SL.js → inboxes-352YK6UB.js} +5 -5
  42. package/dist/{incoming-DYYCNX46.js → incoming-5T2ELEDF.js} +6 -6
  43. package/dist/{job-V67373SG.js → job-KBILRJJO.js} +6 -6
  44. package/dist/{login-K3IGFVZY.js → login-DQPKKDVA.js} +3 -3
  45. package/dist/{message-AIVMYHV5.js → message-ZB2IGJIQ.js} +6 -6
  46. package/dist/{motion-UXH422PR.js → motion-NNCRSOT6.js} +17 -13
  47. package/dist/{network-376YFM33.js → network-FLPECF4C.js} +6 -6
  48. package/dist/{notification-BAKHCJTV.js → notification-B3MRXH3A.js} +5 -5
  49. package/dist/{notifications-7HJSOQEK.js → notifications-PMJDG45H.js} +6 -6
  50. package/dist/{post-RBHNLWAM.js → post-O5DYXSHK.js} +6 -6
  51. package/dist/{profile-RDNIILT7.js → profile-ZDP23SNN.js} +7 -7
  52. package/dist/{recruiter-HX45CHBT.js → recruiter-QENVOZFV.js} +8 -8
  53. package/dist/{sales-nav-SIMRRJV7.js → sales-nav-JFAYF6DM.js} +7 -7
  54. package/dist/{search-ARMOCEYV.js → search-5HPVIIUJ.js} +8 -8
  55. package/dist/{setup-DVFWTM6J.js → setup-QUD7TUCB.js} +4 -4
  56. package/dist/{team-X6EMJ3EH.js → team-ZTGY45Y7.js} +6 -6
  57. package/dist/{tier-4VDJ3OEO.js → tier-3ISVHJJ5.js} +5 -5
  58. package/dist/{unibox-XGOS5YIJ.js → unibox-JQBP7COE.js} +8 -7
  59. package/dist/{webhook-3QYAOV7E.js → webhook-GPGFPF5P.js} +6 -6
  60. package/package.json +2 -2
  61. package/dist/core-F3RQLZFP.js +0 -46
  62. package/dist/do-not-contact-UWJRNFHH.js +0 -200
@@ -47,12 +47,12 @@ var GLOBAL_FLAGS = {
47
47
  },
48
48
  all: {
49
49
  type: "boolean",
50
- description: "Stream all pages as NDJSON.",
50
+ description: 'Stream pages as NDJSON until the results run out or --max-pages is reached (default 100 pages). Not exhaustive: a capped stream ends with a {"object":"stream_truncated","pages_fetched":N,"has_more":true} line on stdout, prints a "Streaming truncated" note on stderr, and still exits 0; raise --max-pages to fetch more.',
51
51
  default: false
52
52
  },
53
53
  "max-pages": {
54
54
  type: "string",
55
- description: "Maximum number of pages to fetch when --all is used. Refused (exit 2) without --all."
55
+ description: "Maximum number of pages to fetch when --all is used (default 100). A stream that hits the cap ends with stream_truncated (exit 0). Refused (exit 2) without --all."
56
56
  },
57
57
  "page-delay": {
58
58
  type: "string",
@@ -13,7 +13,7 @@ import {
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-BKQZDNXH.js";
16
+ } from "./chunk-WY73KWPF.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-DAFE2MTF.js";
27
+ } from "./chunk-PAXWRJNA.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-3RRINPLF.js";
34
+ } from "./chunk-YHXIFKCU.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-FBBZVIFJ.js";
42
+ } from "./chunk-AQVE6HO5.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
  });
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  fail,
4
4
  outputOpts
5
- } from "./chunk-BKQZDNXH.js";
5
+ } from "./chunk-WY73KWPF.js";
6
6
 
7
7
  // src/lib/chunks.ts
8
8
  async function sendInChunks(ids, size, send, f) {
@@ -28,7 +28,7 @@ async function sendChunked(chunks, send, f, unit) {
28
28
  failed_chunk: { index: k + 1, first_row: accepted + 1, last_row: accepted + chunk.length }
29
29
  };
30
30
  if (!(err instanceof CurviateError)) {
31
- process.stderr.write(`Chunk ${k + 1} of ${total} failed; ${accepted} of ${all} ${unit} were sent before it. Nothing after it was sent.
31
+ process.stderr.write(`Chunk ${k + 1} of ${total} failed; ${accepted} of ${all} ${unit} were accepted before it. Nothing after it was sent.
32
32
  `);
33
33
  return fail(err, f);
34
34
  }
@@ -37,7 +37,7 @@ async function sendChunked(chunks, send, f, unit) {
37
37
  if (outputOpts(f).json) process.stdout.write(JSON.stringify({ error: e, progress }) + "\n");
38
38
  process.stderr.write(
39
39
  `error [${e.code}] ${e.message}
40
- Chunk ${k + 1} of ${total} failed (${unit} ${progress.failed_chunk.first_row} to ${progress.failed_chunk.last_row}); ${accepted} of ${all} ${unit} were sent before it. Nothing after it was sent.
40
+ Chunk ${k + 1} of ${total} failed (${unit} ${progress.failed_chunk.first_row} to ${progress.failed_chunk.last_row}); ${accepted} of ${all} ${unit} were accepted before it. Nothing after it was sent.
41
41
  `
42
42
  );
43
43
  process.exit(getExitCode(err));
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  createClient,
8
8
  resolveEffectiveConfig
9
- } from "./chunk-3RRINPLF.js";
9
+ } from "./chunk-YHXIFKCU.js";
10
10
 
11
11
  // src/lib/root-command.ts
12
12
  var outputOpts = (f) => ({
@@ -21,14 +21,14 @@ import {
21
21
  } from "./chunk-VHNF6OZD.js";
22
22
  import {
23
23
  requireAccount
24
- } from "./chunk-7OUGD5DH.js";
24
+ } from "./chunk-IRKTIZUM.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-DAFE2MTF.js";
31
+ } from "./chunk-PAXWRJNA.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-3RRINPLF.js";
41
+ } from "./chunk-YHXIFKCU.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-FBBZVIFJ.js";
49
+ } from "./chunk-AQVE6HO5.js";
50
50
  import {
51
51
  looksLikeCommandWord,
52
52
  nearestSubcommand
@@ -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.51.0";
277
+ var version = "0.53.0";
278
278
 
279
279
  // src/lib/client.ts
280
280
  function headerStrings(headers) {
@@ -300,11 +300,36 @@ var guardedFetch = async (input, init) => {
300
300
  ...headerStrings(merged?.headers),
301
301
  typeof merged?.body === "string" ? merged.body : void 0
302
302
  ]);
303
- const res = await fetch(input, merged);
303
+ const notes = wireNotes.getStore();
304
+ let res;
305
+ try {
306
+ res = await fetch(input, merged);
307
+ } catch (err) {
308
+ const code = err?.cause?.code;
309
+ if (notes && (code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "EAI_AGAIN")) notes.unreached = true;
310
+ throw err;
311
+ }
304
312
  const method = (merged?.method ?? (input instanceof Request ? input.method : "GET")).toUpperCase();
313
+ if (notes && res.status === 429) {
314
+ const ra = res.headers.get("retry-after");
315
+ notes.retryAfterS = ra === null ? void 0 : retryAfterSeconds(ra);
316
+ const headers = new Headers(res.headers);
317
+ headers.delete("retry-after");
318
+ res = new Response(res.body, { status: res.status, statusText: res.statusText, headers });
319
+ }
305
320
  return downloading.getStore() && res.ok ? asOpaqueBytes(res) : platformFaultIfUnreadable(res, getWriteKind() === "state" ? "state" : method === "GET" ? "read" : getWriteKind());
306
321
  };
307
322
  var downloading = new AsyncLocalStorage();
323
+ var wireNotes = new AsyncLocalStorage();
324
+ function withWireNotes(notes, call) {
325
+ return wireNotes.run(notes, call);
326
+ }
327
+ function retryAfterSeconds(v) {
328
+ const n = Number(v.trim());
329
+ if (v.trim() !== "" && Number.isFinite(n) && n >= 0) return n;
330
+ const at = Date.parse(v);
331
+ return Number.isNaN(at) ? void 0 : Math.max(0, Math.ceil((at - Date.now()) / 1e3));
332
+ }
308
333
  function downloadBinary(call) {
309
334
  return downloading.run(true, call);
310
335
  }
@@ -434,6 +459,7 @@ export {
434
459
  removeProfile,
435
460
  updateProfileField,
436
461
  resolveEffectiveConfig,
462
+ withWireNotes,
437
463
  downloadBinary,
438
464
  baseUrlProblem,
439
465
  withoutUserinfo,
package/dist/cli.js CHANGED
@@ -12,10 +12,10 @@ import {
12
12
  setBetaOverride,
13
13
  setTeamFlag,
14
14
  setWriteKind
15
- } from "./chunk-RYWWSZUH.js";
15
+ } from "./chunk-QLKGOIWS.js";
16
16
  import {
17
17
  lazy
18
- } from "./chunk-FBBZVIFJ.js";
18
+ } from "./chunk-AQVE6HO5.js";
19
19
  import {
20
20
  editDistance
21
21
  } from "./chunk-FDJMAF7D.js";
@@ -45,33 +45,33 @@ var main = defineCommand({
45
45
  // Subcommand registry, names and descriptions are static for help rendering;
46
46
  // the handler implementation is loaded lazily on first invocation.
47
47
  subCommands: {
48
- setup: lazy("setup", () => import("./setup-DVFWTM6J.js").then((m) => m.setupCommand)),
49
- doctor: lazy("doctor", () => import("./doctor-BLUHL4YW.js").then((m) => m.doctorCommand)),
50
- login: lazy("login", () => import("./login-K3IGFVZY.js").then((m) => m.loginCommand)),
51
- config: lazy("config", () => import("./config-GIU3SIIY.js").then((m) => m.configCommand)),
52
- account: lazy("account", () => import("./account-74N7HFFI.js").then((m) => m.accountCommand)),
53
- motion: lazy("motion", () => import("./motion-UXH422PR.js").then((m) => m.motionCommand)),
54
- enrollment: lazy("enrollment", () => import("./enrollment-WF5DDULC.js").then((m) => m.enrollmentCommand)),
55
- contact: lazy("contact", () => import("./contact-EXEJDG7S.js").then((m) => m.contactCommand)),
56
- "do-not-contact": lazy("do-not-contact", () => import("./do-not-contact-UWJRNFHH.js").then((m) => m.doNotContactCommand)),
57
- unibox: lazy("unibox", () => import("./unibox-XGOS5YIJ.js").then((m) => m.uniboxCommand)),
58
- network: lazy("network", () => import("./network-376YFM33.js").then((m) => m.networkCommand)),
59
- analytics: lazy("analytics", () => import("./analytics-CZ372NIV.js").then((m) => m.analyticsCommand)),
60
- notification: lazy("notification", () => import("./notifications-7HJSOQEK.js").then((m) => m.notificationsCommand)),
61
- export: lazy("export", () => import("./export-CF7IAMYC.js").then((m) => m.exportCommand)),
62
- billing: lazy("billing", () => import("./billing-LJGAAL4W.js").then((m) => m.billingCommand)),
63
- tier: lazy("tier", () => import("./tier-4VDJ3OEO.js").then((m) => m.tierCommand)),
64
- team: lazy("team", () => import("./team-X6EMJ3EH.js").then((m) => m.teamCommand)),
65
- incoming: lazy("incoming", () => import("./incoming-DYYCNX46.js").then((m) => m.incomingCommand)),
66
- beta: lazy("beta", () => import("./beta-consent-6EY7JWUB.js").then((m) => m.betaCommand)),
67
- webhook: lazy("webhook", () => import("./webhook-3QYAOV7E.js").then((m) => m.webhookCommand)),
48
+ setup: lazy("setup", () => import("./setup-QUD7TUCB.js").then((m) => m.setupCommand)),
49
+ doctor: lazy("doctor", () => import("./doctor-M7JVNQPQ.js").then((m) => m.doctorCommand)),
50
+ login: lazy("login", () => import("./login-DQPKKDVA.js").then((m) => m.loginCommand)),
51
+ config: lazy("config", () => import("./config-TMFMXS7T.js").then((m) => m.configCommand)),
52
+ account: lazy("account", () => import("./account-24YCNFNY.js").then((m) => m.accountCommand)),
53
+ motion: lazy("motion", () => import("./motion-NNCRSOT6.js").then((m) => m.motionCommand)),
54
+ enrollment: lazy("enrollment", () => import("./enrollment-IXQD5IGZ.js").then((m) => m.enrollmentCommand)),
55
+ contact: lazy("contact", () => import("./contact-A3S2HEBM.js").then((m) => m.contactCommand)),
56
+ "do-not-contact": lazy("do-not-contact", () => import("./do-not-contact-QYPADRLJ.js").then((m) => m.doNotContactCommand)),
57
+ unibox: lazy("unibox", () => import("./unibox-JQBP7COE.js").then((m) => m.uniboxCommand)),
58
+ network: lazy("network", () => import("./network-FLPECF4C.js").then((m) => m.networkCommand)),
59
+ analytics: lazy("analytics", () => import("./analytics-RMRTJPHK.js").then((m) => m.analyticsCommand)),
60
+ notification: lazy("notification", () => import("./notifications-PMJDG45H.js").then((m) => m.notificationsCommand)),
61
+ export: lazy("export", () => import("./export-7ILY53LY.js").then((m) => m.exportCommand)),
62
+ billing: lazy("billing", () => import("./billing-5GK6WIXR.js").then((m) => m.billingCommand)),
63
+ tier: lazy("tier", () => import("./tier-3ISVHJJ5.js").then((m) => m.tierCommand)),
64
+ team: lazy("team", () => import("./team-ZTGY45Y7.js").then((m) => m.teamCommand)),
65
+ incoming: lazy("incoming", () => import("./incoming-5T2ELEDF.js").then((m) => m.incomingCommand)),
66
+ beta: lazy("beta", () => import("./beta-consent-KCJUJFAR.js").then((m) => m.betaCommand)),
67
+ webhook: lazy("webhook", () => import("./webhook-GPGFPF5P.js").then((m) => m.webhookCommand)),
68
68
  // The LinkedIn building blocks. Reserved product groups
69
69
  // (unibox, network, analytics, team) land
70
70
  // between `enrollment` and `webhook` with their owning specs.
71
- core: lazy("core", () => import("./core-F3RQLZFP.js").then((m) => m.coreCommand))
71
+ core: lazy("core", () => import("./core-IOGPY6HS.js").then((m) => m.coreCommand))
72
72
  },
73
73
  async run() {
74
- const { showHelp } = await import("./examples-ICAGL2S5.js");
74
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
75
75
  await showHelp(main, ["curviate"]);
76
76
  }
77
77
  });
@@ -363,7 +363,7 @@ async function dispatch(root, rawArgs) {
363
363
  helpFor = "curviate";
364
364
  if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
365
365
  const { leaf, path } = await resolveLeaf(root, rawArgs.filter((a) => a !== "--help" && a !== "-h"));
366
- const { showHelp } = await import("./examples-ICAGL2S5.js");
366
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
367
367
  await showHelp(leaf, path);
368
368
  await new Promise((done) => process.stdout.write("", () => done()));
369
369
  process.exit(0);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-3OYS3NWV.js";
4
+ } from "./chunk-4YGTPVEH.js";
5
5
  import {
6
6
  AS_ACCOUNT,
7
7
  BUDGET,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-VHNF6OZD.js";
17
17
  import {
18
18
  requireAccount
19
- } from "./chunk-7OUGD5DH.js";
19
+ } from "./chunk-IRKTIZUM.js";
20
20
  import {
21
21
  buildPreviewOutput
22
22
  } from "./chunk-TCUYH5GO.js";
@@ -27,7 +27,7 @@ import {
27
27
  readablePage,
28
28
  rejectPaginationModifiersWithoutAll,
29
29
  streamAll
30
- } from "./chunk-DAFE2MTF.js";
30
+ } from "./chunk-PAXWRJNA.js";
31
31
  import {
32
32
  renderError,
33
33
  renderSuccess,
@@ -37,15 +37,15 @@ import {
37
37
  import {
38
38
  createClient,
39
39
  resolveEffectiveConfig
40
- } from "./chunk-3RRINPLF.js";
40
+ } from "./chunk-YHXIFKCU.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  WRITE_SINGLE_FLAGS,
44
44
  readOnly
45
- } from "./chunk-RYWWSZUH.js";
45
+ } from "./chunk-QLKGOIWS.js";
46
46
  import {
47
47
  DESCRIPTIONS
48
- } from "./chunk-FBBZVIFJ.js";
48
+ } from "./chunk-AQVE6HO5.js";
49
49
  import {
50
50
  resolveTextOrStdin
51
51
  } from "./chunk-ZYURL5VK.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  sentAsNotice
4
- } from "./chunk-AUHGVZCD.js";
4
+ } from "./chunk-WYFTBTDQ.js";
5
5
  import "./chunk-UWO2D4HW.js";
6
6
  import {
7
7
  AS_ACCOUNT,
@@ -18,7 +18,7 @@ import {
18
18
  slimSearchJobs,
19
19
  slimSearchPeople,
20
20
  slimSearchPosts
21
- } from "./chunk-XDG3TOKG.js";
21
+ } from "./chunk-FUX3BRYP.js";
22
22
  import {
23
23
  AttachError,
24
24
  readAttachment,
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-VHNF6OZD.js";
27
27
  import {
28
28
  requireAccount
29
- } from "./chunk-7OUGD5DH.js";
29
+ } from "./chunk-IRKTIZUM.js";
30
30
  import {
31
31
  buildPreviewOutput
32
32
  } from "./chunk-TCUYH5GO.js";
@@ -39,7 +39,7 @@ import {
39
39
  readablePage,
40
40
  rejectPaginationModifiersWithoutAll,
41
41
  streamAll
42
- } from "./chunk-DAFE2MTF.js";
42
+ } from "./chunk-PAXWRJNA.js";
43
43
  import {
44
44
  renderError,
45
45
  renderSuccess,
@@ -49,16 +49,16 @@ import {
49
49
  import {
50
50
  createClient,
51
51
  resolveEffectiveConfig
52
- } from "./chunk-3RRINPLF.js";
52
+ } from "./chunk-YHXIFKCU.js";
53
53
  import {
54
54
  GLOBAL_FLAGS,
55
55
  READ_SINGLE_FLAGS,
56
56
  WRITE_FLAGS,
57
57
  readOnly
58
- } from "./chunk-RYWWSZUH.js";
58
+ } from "./chunk-QLKGOIWS.js";
59
59
  import {
60
60
  DESCRIPTIONS
61
- } from "./chunk-FBBZVIFJ.js";
61
+ } from "./chunk-AQVE6HO5.js";
62
62
  import "./chunk-FDJMAF7D.js";
63
63
  import {
64
64
  resolveTextOrStdin
@@ -12,13 +12,13 @@ import {
12
12
  setActiveProfile,
13
13
  updateProfileField,
14
14
  withoutUserinfo
15
- } from "./chunk-3RRINPLF.js";
15
+ } from "./chunk-YHXIFKCU.js";
16
16
  import {
17
17
  GLOBAL_FLAGS
18
- } from "./chunk-RYWWSZUH.js";
18
+ } from "./chunk-QLKGOIWS.js";
19
19
  import {
20
20
  DESCRIPTIONS
21
- } from "./chunk-FBBZVIFJ.js";
21
+ } from "./chunk-AQVE6HO5.js";
22
22
  import "./chunk-ZYURL5VK.js";
23
23
 
24
24
  // src/commands/config.ts
@@ -12,10 +12,10 @@ import {
12
12
  slimInviteReceivedItem,
13
13
  slimInviteSent,
14
14
  slimInviteSentItem
15
- } from "./chunk-XDG3TOKG.js";
15
+ } from "./chunk-FUX3BRYP.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-7OUGD5DH.js";
18
+ } from "./chunk-IRKTIZUM.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -26,7 +26,7 @@ import {
26
26
  readablePage,
27
27
  rejectPaginationModifiersWithoutAll,
28
28
  streamAll
29
- } from "./chunk-DAFE2MTF.js";
29
+ } from "./chunk-PAXWRJNA.js";
30
30
  import {
31
31
  renderError,
32
32
  renderSuccess,
@@ -36,15 +36,15 @@ import {
36
36
  import {
37
37
  createClient,
38
38
  resolveEffectiveConfig
39
- } from "./chunk-3RRINPLF.js";
39
+ } from "./chunk-YHXIFKCU.js";
40
40
  import {
41
41
  GLOBAL_FLAGS,
42
42
  WRITE_FLAGS,
43
43
  readOnly
44
- } from "./chunk-RYWWSZUH.js";
44
+ } from "./chunk-QLKGOIWS.js";
45
45
  import {
46
46
  DESCRIPTIONS
47
- } from "./chunk-FBBZVIFJ.js";
47
+ } from "./chunk-AQVE6HO5.js";
48
48
  import {
49
49
  nearestSubcommand
50
50
  } from "./chunk-FDJMAF7D.js";
@@ -269,7 +269,7 @@ async function runConnectCancel(client, flags, out) {
269
269
  var connectSentCommand = defineCommand({
270
270
  meta: {
271
271
  name: "sent",
272
- description: "Returns pending sent invitations only. Accepted and declined invitations are not returned (LinkedIn API limitation). Use `id` with `curviate core connect cancel`; use `user.id` (native member URN; the sent-variant carries no public slug) to identify the recipient. `created_at` is the platform's own ISO-8601 timestamp (not an approximation). No total count is available; use `curviate core connect sent --all` and count client-side. A very recently sent invitation may take a few minutes to appear here (LinkedIn-side indexing).",
272
+ description: "Returns pending sent invitations only. Accepted and declined invitations are not returned (LinkedIn API limitation). Use `id` with `curviate core connect cancel`; use `user.id` (native member URN) to identify the recipient; `user.public_identifier` is present only when Curviate already knows the slug from stored data. `created_at` is the platform's own ISO-8601 timestamp (not an approximation). No total count is available; use `curviate core connect sent --all` and count client-side. A very recently sent invitation may take a few minutes to appear here (LinkedIn-side indexing).",
273
273
  risk: "read",
274
274
  examples: [
275
275
  "curviate core connect sent",
@@ -7,18 +7,18 @@ import {
7
7
  online,
8
8
  positionals,
9
9
  preview
10
- } from "./chunk-7AR2OA67.js";
11
- import "./chunk-7OUGD5DH.js";
10
+ } from "./chunk-FNENKSJ7.js";
11
+ import "./chunk-IRKTIZUM.js";
12
12
  import "./chunk-GOICALYQ.js";
13
- import "./chunk-ERHJZL7A.js";
14
- import "./chunk-BKQZDNXH.js";
13
+ import "./chunk-TIYRNMGW.js";
14
+ import "./chunk-WY73KWPF.js";
15
15
  import "./chunk-TCUYH5GO.js";
16
16
  import "./chunk-NNV2OYEF.js";
17
- import "./chunk-DAFE2MTF.js";
17
+ import "./chunk-PAXWRJNA.js";
18
18
  import "./chunk-QM57YDJE.js";
19
- import "./chunk-3RRINPLF.js";
20
- import "./chunk-RYWWSZUH.js";
21
- import "./chunk-FBBZVIFJ.js";
19
+ import "./chunk-YHXIFKCU.js";
20
+ import "./chunk-QLKGOIWS.js";
21
+ import "./chunk-AQVE6HO5.js";
22
22
  import "./chunk-ZYURL5VK.js";
23
23
  import "./chunk-QW5K5DTC.js";
24
24
  export {
@@ -8,18 +8,18 @@ import {
8
8
  online,
9
9
  preview,
10
10
  readFilter
11
- } from "./chunk-7AR2OA67.js";
12
- import "./chunk-7OUGD5DH.js";
11
+ } from "./chunk-FNENKSJ7.js";
12
+ import "./chunk-IRKTIZUM.js";
13
13
  import "./chunk-GOICALYQ.js";
14
14
  import {
15
15
  sendInChunks
16
- } from "./chunk-ERHJZL7A.js";
16
+ } from "./chunk-TIYRNMGW.js";
17
17
  import {
18
18
  fail,
19
19
  listFlag,
20
20
  outputOpts,
21
21
  usage
22
- } from "./chunk-BKQZDNXH.js";
22
+ } from "./chunk-WY73KWPF.js";
23
23
  import "./chunk-TCUYH5GO.js";
24
24
  import {
25
25
  intFlag
@@ -32,19 +32,19 @@ import {
32
32
  readablePage,
33
33
  rejectPaginationModifiersWithoutAll,
34
34
  streamAll
35
- } from "./chunk-DAFE2MTF.js";
35
+ } from "./chunk-PAXWRJNA.js";
36
36
  import {
37
37
  renderSuccess,
38
38
  writeNdjsonItem
39
39
  } from "./chunk-QM57YDJE.js";
40
- import "./chunk-3RRINPLF.js";
40
+ import "./chunk-YHXIFKCU.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  READ_SINGLE_FLAGS,
44
44
  WRITE_SINGLE_FLAGS,
45
45
  readOnly
46
- } from "./chunk-RYWWSZUH.js";
47
- import "./chunk-FBBZVIFJ.js";
46
+ } from "./chunk-QLKGOIWS.js";
47
+ import "./chunk-AQVE6HO5.js";
48
48
  import "./chunk-ZYURL5VK.js";
49
49
  import "./chunk-QW5K5DTC.js";
50
50
 
@@ -256,7 +256,7 @@ var listsDelete = defineCommand({
256
256
  var membership = (verb) => defineCommand({
257
257
  meta: {
258
258
  name: verb,
259
- description: `${verb === "add" ? "Add Contacts to" : "Remove Contacts from"} a Contact list. Name the Contacts by id, or with filter flags (the same as \`curviate contact list\`) to act on every match. Count a filter first: \`curviate contact list <same filters> --total --limit 1\`. Needs Automate.`,
259
+ description: `${verb === "add" ? "Add Contacts to" : "Remove Contacts from"} a Contact list. Name the Contacts by id, or with filter flags (the same as \`curviate contact list\`) to act on every match. Count a filter first: \`curviate contact list <same filters> --total --limit 1\`. The list being changed is the positional id; to filter by another list use --from-list (\`contact list\` calls it --list). Needs Automate.`,
260
260
  risk: "high",
261
261
  rules: {
262
262
  changes: verb === "add" ? "The Contacts join the list." : "The Contacts leave the list; they are not deleted.",
@@ -271,7 +271,8 @@ var membership = (verb) => defineCommand({
271
271
  seeAlso: SEE_LISTS,
272
272
  examples: [
273
273
  `curviate contact lists ${verb} cl_YOUR_LIST_ID con_A con_B`,
274
- `curviate contact lists ${verb} cl_YOUR_LIST_ID --tag hot --no-email`
274
+ `curviate contact lists ${verb} cl_YOUR_LIST_ID --tag hot --no-email`,
275
+ `curviate contact lists ${verb} cl_YOUR_LIST_ID --from-list cl_SOURCE_LIST_ID --connected`
275
276
  ]
276
277
  },
277
278
  args: {
@@ -292,7 +293,7 @@ var contactListsCommand = defineCommand({
292
293
  meta: { name: "lists", description: "Contact lists: named sets of Contacts a Motion enrolls from." },
293
294
  subCommands: { list: listsList, get: listsGet, create: listsCreate, combine: listsCombine, update: listsUpdate, delete: listsDelete, add: membership("add"), remove: membership("remove") },
294
295
  async run() {
295
- const { showHelp } = await import("./examples-ICAGL2S5.js");
296
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
296
297
  await showHelp(contactListsCommand, ["curviate", "contact", "lists"]);
297
298
  }
298
299
  });
@@ -389,7 +390,7 @@ var contactTagsCommand = defineCommand({
389
390
  meta: { name: "tags", description: "Tags: labels on Contacts." },
390
391
  subCommands: { list: tagsList, update: tagsUpdate, delete: tagsDelete, add: tagging("add"), remove: tagging("remove") },
391
392
  async run() {
392
- const { showHelp } = await import("./examples-ICAGL2S5.js");
393
+ const { showHelp } = await import("./examples-KAMXHRLE.js");
393
394
  await showHelp(contactTagsCommand, ["curviate", "contact", "tags"]);
394
395
  }
395
396
  });
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ IMPORT_MAX_BODY_BYTES,
4
+ IMPORT_MAX_ROWS,
5
+ RETRY_AFTER_BOUND_S,
6
+ chunkRows,
7
+ contactImportCommand,
8
+ contactImportsCommand,
9
+ csvRecords
10
+ } from "./chunk-AA2UTHCS.js";
11
+ import "./chunk-FNENKSJ7.js";
12
+ import "./chunk-IRKTIZUM.js";
13
+ import "./chunk-GOICALYQ.js";
14
+ import "./chunk-TIYRNMGW.js";
15
+ import "./chunk-WY73KWPF.js";
16
+ import "./chunk-TCUYH5GO.js";
17
+ import "./chunk-NNV2OYEF.js";
18
+ import "./chunk-PAXWRJNA.js";
19
+ import "./chunk-QM57YDJE.js";
20
+ import "./chunk-YHXIFKCU.js";
21
+ import "./chunk-QLKGOIWS.js";
22
+ import "./chunk-AQVE6HO5.js";
23
+ import "./chunk-62YAYAUI.js";
24
+ import "./chunk-FDJMAF7D.js";
25
+ import "./chunk-ZYURL5VK.js";
26
+ import "./chunk-QW5K5DTC.js";
27
+ export {
28
+ IMPORT_MAX_BODY_BYTES,
29
+ IMPORT_MAX_ROWS,
30
+ RETRY_AFTER_BOUND_S,
31
+ chunkRows,
32
+ contactImportCommand,
33
+ contactImportsCommand,
34
+ csvRecords
35
+ };