@curviate/cli 0.55.0 → 0.56.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 (63) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +5 -4
  3. package/dist/{account-6L33JFZS.js → account-ZF5NEMID.js} +42 -17
  4. package/dist/{analytics-HGJGXRAM.js → analytics-M7JWS67A.js} +5 -5
  5. package/dist/{beta-consent-LIND4PPN.js → beta-consent-4Q2LZZQC.js} +4 -4
  6. package/dist/{billing-QKPP5NPR.js → billing-LYPSX5SR.js} +78 -6
  7. package/dist/{chunk-S234PC5E.js → chunk-7PLTQHNO.js} +1 -1
  8. package/dist/{chunk-EA5LJ4CS.js → chunk-AMTKGO37.js} +1 -1
  9. package/dist/{chunk-Z3RPQ5K4.js → chunk-CRO7PJ4I.js} +1 -1
  10. package/dist/{chunk-J34JU27C.js → chunk-DENWYJK2.js} +2 -2
  11. package/dist/{chunk-BC4N5X3N.js → chunk-EI64VFBE.js} +6 -6
  12. package/dist/{chunk-ENBIMEKS.js → chunk-IB6ARI3R.js} +1 -1
  13. package/dist/{chunk-OYZ27Q3B.js → chunk-J4SFOFMT.js} +14 -12
  14. package/dist/{chunk-AMMAA62Z.js → chunk-L3RJU7C3.js} +7 -7
  15. package/dist/{chunk-R7USRN52.js → chunk-MIOEYSBQ.js} +1 -1
  16. package/dist/{chunk-QBY6L77D.js → chunk-MWVTFTWV.js} +1 -1
  17. package/dist/{chunk-JKXGL7PT.js → chunk-RKNW4UX4.js} +42 -0
  18. package/dist/{chunk-KLXDFFHT.js → chunk-UOWOKEB2.js} +1 -1
  19. package/dist/{chunk-LGUZ52BU.js → chunk-UWRWZG4N.js} +1 -1
  20. package/dist/{chunk-FHSGANM6.js → chunk-VEMK4MJM.js} +4 -4
  21. package/dist/{chunk-Q5Z7FMXI.js → chunk-XP6S6E55.js} +1 -1
  22. package/dist/cli.js +32 -26
  23. package/dist/{comment-IIKLEAEK.js → comment-D6RSZTVK.js} +5 -5
  24. package/dist/{company-CX5TZNB5.js → company-3Z6PXGTW.js} +5 -5
  25. package/dist/{config-Y4FC7QKM.js → config-VY5MCJMN.js} +2 -2
  26. package/dist/{connect-GUUBX23F.js → connect-G2RTLV7G.js} +4 -4
  27. package/dist/{contact-OCYSFRTS.js → contact-QSLJCBDE.js} +7 -7
  28. package/dist/{contact-groups-HWJSYRFJ.js → contact-groups-OITAD73K.js} +9 -9
  29. package/dist/{contact-import-CTWSFT64.js → contact-import-LT7BKESC.js} +9 -9
  30. package/dist/core-RFTNNB6P.js +46 -0
  31. package/dist/{do-not-contact-6UVY3UKT.js → do-not-contact-ZA7KS5WD.js} +42 -16
  32. package/dist/{doctor-6CB6DCY3.js → doctor-JQT3DO6G.js} +3 -3
  33. package/dist/{document-ADK4GZA7.js → document-H65EXU4L.js} +1 -1
  34. package/dist/{domain-BUJMHYIV.js → domain-7EX4E34B.js} +5 -5
  35. package/dist/{draft-SII6E6Z6.js → draft-7U6H4BPF.js} +3 -3
  36. package/dist/{enrollment-OXGR5WVI.js → enrollment-AZ6XGVVL.js} +7 -5
  37. package/dist/{examples-77WVMKZQ.js → examples-IGQJCSNL.js} +1 -1
  38. package/dist/{export-D32J5GRN.js → export-OYMQXL62.js} +4 -4
  39. package/dist/{feed-HOFHCP6W.js → feed-M5D4SJW7.js} +4 -4
  40. package/dist/{group-AMYOAGNS.js → group-UTC3YBKE.js} +4 -4
  41. package/dist/{inbox-NS2LB2WQ.js → inbox-VSGNHSLG.js} +4 -4
  42. package/dist/{inboxes-XWUZJ5PN.js → inboxes-23C2MJK4.js} +4 -4
  43. package/dist/{incoming-UIWRL6QS.js → incoming-QVPP32K7.js} +5 -5
  44. package/dist/{job-TKGPXU26.js → job-ZHVFFRWE.js} +4 -4
  45. package/dist/{login-B2YWX2JP.js → login-6OTNXEJZ.js} +4 -4
  46. package/dist/{mailbox-LLSGX2FF.js → mailbox-HD2UXZCA.js} +9 -10
  47. package/dist/{message-M4THMNRZ.js → message-PIV77W47.js} +5 -5
  48. package/dist/{motion-2OUGYR3O.js → motion-AHYF34DP.js} +98 -23
  49. package/dist/{network-MFWKXTEV.js → network-RJHJFZEY.js} +5 -5
  50. package/dist/{notification-5K4TCYQA.js → notification-XGR4NT3S.js} +4 -4
  51. package/dist/{notifications-2GKUJB7C.js → notifications-BHRWSHPR.js} +5 -5
  52. package/dist/{post-BHH7YKGM.js → post-Z7AVDDKA.js} +5 -5
  53. package/dist/{profile-GKMRRKZF.js → profile-YZNBX2RP.js} +5 -5
  54. package/dist/{recruiter-J53ZSD4P.js → recruiter-EXM4P7X7.js} +6 -6
  55. package/dist/{sales-nav-6I5SYTRX.js → sales-nav-CKDSEXV2.js} +6 -6
  56. package/dist/{search-HS2YAA33.js → search-B7FB6674.js} +6 -6
  57. package/dist/{setup-IYVOGVC6.js → setup-VZVPLJ4V.js} +4 -4
  58. package/dist/{team-N6ILUHAD.js → team-PYABBUHO.js} +5 -5
  59. package/dist/{tier-QWXKFESB.js → tier-PRK4WQKR.js} +4 -4
  60. package/dist/{unibox-D4WIHIZX.js → unibox-ZNKX2EKL.js} +5 -5
  61. package/dist/{webhook-PKWGZZO2.js → webhook-V74EV4E2.js} +5 -5
  62. package/package.json +2 -2
  63. package/dist/core-37XZS2RG.js +0 -46
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  chunkRows,
4
4
  csvRecords
5
- } from "./chunk-AMMAA62Z.js";
6
- import "./chunk-OYZ27Q3B.js";
7
- import "./chunk-Z3RPQ5K4.js";
5
+ } from "./chunk-L3RJU7C3.js";
6
+ import "./chunk-J4SFOFMT.js";
7
+ import "./chunk-CRO7PJ4I.js";
8
8
  import {
9
9
  writeAtomic
10
10
  } from "./chunk-GOICALYQ.js";
11
11
  import {
12
12
  sendChunked
13
- } from "./chunk-Q5Z7FMXI.js";
13
+ } from "./chunk-XP6S6E55.js";
14
14
  import {
15
15
  fail,
16
16
  outputOpts,
17
17
  rootClient,
18
18
  usage
19
- } from "./chunk-LGUZ52BU.js";
19
+ } from "./chunk-UWRWZG4N.js";
20
20
  import {
21
21
  buildPreviewOutput
22
22
  } from "./chunk-TCUYH5GO.js";
@@ -31,14 +31,14 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-R7USRN52.js";
34
+ } from "./chunk-MIOEYSBQ.js";
35
35
  import {
36
36
  renderSuccess,
37
37
  writeNdjsonItem
38
38
  } from "./chunk-QM57YDJE.js";
39
39
  import {
40
40
  downloadBinary
41
- } from "./chunk-S234PC5E.js";
41
+ } from "./chunk-7PLTQHNO.js";
42
42
  import {
43
43
  GLOBAL_FLAGS,
44
44
  READ_SINGLE_FLAGS,
@@ -47,10 +47,10 @@ import {
47
47
  } from "./chunk-QLKGOIWS.js";
48
48
  import {
49
49
  DESCRIPTIONS
50
- } from "./chunk-QBY6L77D.js";
50
+ } from "./chunk-MWVTFTWV.js";
51
51
  import {
52
52
  readFileFlag
53
- } from "./chunk-JKXGL7PT.js";
53
+ } from "./chunk-RKNW4UX4.js";
54
54
  import "./chunk-FDJMAF7D.js";
55
55
  import {
56
56
  isStdinToken
@@ -59,12 +59,18 @@ import "./chunk-RDKTHFQ6.js";
59
59
 
60
60
  // src/commands/do-not-contact.ts
61
61
  import { defineCommand } from "citty";
62
- var REASONS = ["asked_to_stop", "existing_customer", "competitor", "partner", "employee", "other"];
62
+ var REASONS = ["asked_to_stop", "existing_customer", "competitor", "partner", "employee", "unsubscribed", "other"];
63
+ var SCOPES = ["everything", "email_only"];
63
64
  var online = (fn) => async ({ args }) => {
64
65
  const f = args;
65
66
  await fn(await rootClient(f), f);
66
67
  };
67
68
  var preview = (method, args, body = {}) => void process.stdout.write(JSON.stringify(buildPreviewOutput({ method, args, body })) + "\n");
69
+ var scope = (f) => {
70
+ if (f.scope === void 0) return void 0;
71
+ if (!SCOPES.includes(f.scope)) usage(`--scope takes everything or email_only (got ${JSON.stringify(f.scope)}).`);
72
+ return f.scope;
73
+ };
68
74
  var reason = (f, requiredFlag) => {
69
75
  if (f.reason === void 0) return requiredFlag ? usage(`--reason is required: one of ${REASONS.join(", ")}.`) : void 0;
70
76
  if (!REASONS.includes(f.reason)) usage(`--reason takes one of ${REASONS.join(", ")}.`);
@@ -104,6 +110,8 @@ async function runAdd(c, f) {
104
110
  const body = f.lead !== void 0 ? { lead_id: f.lead } : { linkedin_url: f["linkedin-url"] };
105
111
  const why = reason(f, false);
106
112
  if (why) body["reason"] = why;
113
+ const what = scope(f);
114
+ if (what) body["scope"] = what;
107
115
  if (f.preview) return preview("doNotContact.add", {}, body);
108
116
  try {
109
117
  renderSuccess(readableObject(await c.doNotContact.add(body)), outputOpts(f), process);
@@ -168,6 +176,7 @@ async function runImport(c, f) {
168
176
  if (format === void 0) usage(dash ? "--format is required with --file -: csv, json or ndjson." : "--format could not be told from the file name: pass csv, json or ndjson.");
169
177
  }
170
178
  if (!FORMATS.includes(format)) usage(`--format takes one of ${FORMATS.join(", ")}.`);
179
+ const what = scope(f);
171
180
  const text = await readFileFlag("file", file, { allowBom: true, maxBytes: 64 * 1024 * 1024, others: f });
172
181
  let header;
173
182
  let rows;
@@ -198,6 +207,13 @@ async function runImport(c, f) {
198
207
  if (rows.length === 0) usage("--file: no rows to import.");
199
208
  const bad = header === void 0 ? rows.findIndex((o) => o === null || typeof o !== "object" || Array.isArray(o)) : -1;
200
209
  if (bad >= 0) usage(`--file: row ${bad + 1} is not an object.`);
210
+ if (what !== void 0 && header !== void 0) {
211
+ if (header.split(",").some((h) => h.trim().replace(/^"|"$/g, "").toLowerCase() === "scope")) usage("--scope: the file has a scope column; set it there, or drop the column.");
212
+ header = `${header},scope`;
213
+ rows = rows.map((r) => `${r},${what}`);
214
+ } else if (what !== void 0) {
215
+ rows = rows.map((r) => "scope" in r ? r : { ...r, scope: what });
216
+ }
201
217
  const chunks = chunkRows(rows, (r) => Buffer.byteLength(typeof r === "string" ? r : JSON.stringify(r)) + 1, IMPORT_MAX_ROWS);
202
218
  const bodyOf = (part) => header !== void 0 ? { csv: [header, ...part].join("\n") } : { rows: part };
203
219
  if (f.preview) return preview("doNotContact.import", chunks.length > 1 ? { requests: chunks.length, rows: rows.length } : {}, bodyOf(chunks[0]));
@@ -224,6 +240,10 @@ async function runImport(c, f) {
224
240
  }
225
241
  var ID = { type: "positional", description: "Entry id (dnc_...), from `curviate do-not-contact list`." };
226
242
  var REASON_ARG = { type: "string", description: `Why: ${REASONS.join(" | ")}.` };
243
+ var SCOPE_ARG = {
244
+ type: "string",
245
+ description: "What the entry stops: everything (default) or email_only (No email: email steps skip the person; LinkedIn Campaigns and writes still reach them)."
246
+ };
227
247
  var listCmd = defineCommand({
228
248
  meta: {
229
249
  name: "list",
@@ -235,14 +255,14 @@ var listCmd = defineCommand({
235
255
  run: online(runList)
236
256
  });
237
257
  var getCmd = defineCommand({
238
- meta: { name: "get", description: "One do-not-contact entry: the person, the reason, and who added it.", risk: "read", examples: ["curviate do-not-contact get dnc_YOUR_ENTRY_ID"] },
258
+ meta: { name: "get", description: "One do-not-contact entry: the person, the reason, the scope (everything or email_only), how it was added and by whom.", risk: "read", examples: ["curviate do-not-contact get dnc_YOUR_ENTRY_ID"] },
239
259
  args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
240
260
  run: online(runGet)
241
261
  });
242
262
  var addCmd = defineCommand({
243
263
  meta: {
244
264
  name: "add",
245
- description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data). No Campaign contacts them afterwards and writes toward them are refused. One person per call; for many, `do-not-contact import`. Any member may add. Needs Automate.",
265
+ description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data). No Campaign contacts them afterwards and writes toward them are refused; with --scope email_only only email stops (No email). One person per call; for many, `do-not-contact import`. Any member may add. Needs Automate.",
246
266
  risk: "write",
247
267
  rules: {
248
268
  changes: "The person joins the list; Campaigns skip them and writes toward them are refused.",
@@ -253,13 +273,18 @@ var addCmd = defineCommand({
253
273
  },
254
274
  errors: { TIER_REQUIRED: "your plan does not include Do-not-contact writes (Automate).", RESOURCE_NOT_FOUND: "no Lead has this id." },
255
275
  seeAlso: ["curviate do-not-contact list", "curviate do-not-contact import"],
256
- examples: ["curviate do-not-contact add --lead con_YOUR_LEAD_ID --reason asked_to_stop", "curviate do-not-contact add --linkedin-url https://www.linkedin.com/in/jane-doe"]
276
+ examples: [
277
+ "curviate do-not-contact add --lead con_YOUR_LEAD_ID --reason asked_to_stop",
278
+ "curviate do-not-contact add --linkedin-url https://www.linkedin.com/in/jane-doe",
279
+ "curviate do-not-contact add --lead con_YOUR_LEAD_ID --scope email_only"
280
+ ]
257
281
  },
258
282
  args: {
259
283
  ...WRITE_SINGLE_FLAGS,
260
284
  lead: { type: "string", description: "The Lead (con_...). Not with --linkedin-url." },
261
285
  "linkedin-url": { type: "string", description: "The person's LinkedIn profile URL, in any spelling. Not with --lead." },
262
- reason: REASON_ARG
286
+ reason: REASON_ARG,
287
+ scope: SCOPE_ARG
263
288
  },
264
289
  run: online(runAdd)
265
290
  });
@@ -343,7 +368,8 @@ var importCmd = defineCommand({
343
368
  args: {
344
369
  ...WRITE_SINGLE_FLAGS,
345
370
  file: { type: "string", stdinArg: true, required: true, description: "The file: a path, or - to read it from stdin (then --format is required)." },
346
- format: { type: "string", description: "csv | json | ndjson. Default: from the file extension (.csv, .json, .ndjson)." }
371
+ format: { type: "string", description: "csv | json | ndjson. Default: from the file extension (.csv, .json, .ndjson)." },
372
+ scope: { ...SCOPE_ARG, description: "The scope of every row that names none: everything (default) or email_only." }
347
373
  },
348
374
  run: online(runImport)
349
375
  });
@@ -351,7 +377,7 @@ var doNotContactCommand = defineCommand({
351
377
  meta: { name: "do-not-contact", description: DESCRIPTIONS["do-not-contact"] },
352
378
  subCommands: { list: listCmd, get: getCmd, add: addCmd, update: updateCmd, remove: removeCmd, export: exportCmd, import: importCmd },
353
379
  async run() {
354
- const { showHelp } = await import("./examples-77WVMKZQ.js");
380
+ const { showHelp } = await import("./examples-IGQJCSNL.js");
355
381
  await showHelp(doNotContactCommand, ["curviate", "do-not-contact"]);
356
382
  }
357
383
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-R7USRN52.js";
4
+ } from "./chunk-MIOEYSBQ.js";
5
5
  import "./chunk-QM57YDJE.js";
6
6
  import {
7
7
  createClient,
@@ -10,13 +10,13 @@ import {
10
10
  readConfigFile,
11
11
  resolveEffectiveConfig,
12
12
  withoutUserinfo
13
- } from "./chunk-S234PC5E.js";
13
+ } from "./chunk-7PLTQHNO.js";
14
14
  import {
15
15
  GLOBAL_FLAGS
16
16
  } from "./chunk-QLKGOIWS.js";
17
17
  import {
18
18
  DESCRIPTIONS
19
- } from "./chunk-QBY6L77D.js";
19
+ } from "./chunk-MWVTFTWV.js";
20
20
  import "./chunk-ZYURL5VK.js";
21
21
  import {
22
22
  getExitCode
@@ -10,7 +10,7 @@ import {
10
10
  renderDocument,
11
11
  reportIssues,
12
12
  validate
13
- } from "./chunk-JKXGL7PT.js";
13
+ } from "./chunk-RKNW4UX4.js";
14
14
  import "./chunk-FDJMAF7D.js";
15
15
  import "./chunk-ZYURL5VK.js";
16
16
  export {
@@ -4,24 +4,24 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-LGUZ52BU.js";
7
+ } from "./chunk-UWRWZG4N.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
11
11
  import {
12
12
  readableObject
13
- } from "./chunk-R7USRN52.js";
13
+ } from "./chunk-MIOEYSBQ.js";
14
14
  import {
15
15
  renderSuccess
16
16
  } from "./chunk-QM57YDJE.js";
17
- import "./chunk-S234PC5E.js";
17
+ import "./chunk-7PLTQHNO.js";
18
18
  import {
19
19
  READ_SINGLE_FLAGS,
20
20
  readOnly
21
21
  } from "./chunk-QLKGOIWS.js";
22
22
  import {
23
23
  DESCRIPTIONS
24
- } from "./chunk-QBY6L77D.js";
24
+ } from "./chunk-MWVTFTWV.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
26
 
27
27
  // src/commands/domain.ts
@@ -61,7 +61,7 @@ var domainCommand = defineCommand({
61
61
  meta: { name: "domain", description: DESCRIPTIONS["domain"] },
62
62
  subCommands: { check: checkCmd },
63
63
  async run() {
64
- const { showHelp } = await import("./examples-77WVMKZQ.js");
64
+ const { showHelp } = await import("./examples-IGQJCSNL.js");
65
65
  await showHelp(domainCommand, ["curviate", "domain"]);
66
66
  }
67
67
  });
@@ -20,7 +20,7 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-R7USRN52.js";
23
+ } from "./chunk-MIOEYSBQ.js";
24
24
  import {
25
25
  renderError,
26
26
  renderSuccess,
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  createClient,
32
32
  resolveEffectiveConfig
33
- } from "./chunk-S234PC5E.js";
33
+ } from "./chunk-7PLTQHNO.js";
34
34
  import {
35
35
  GLOBAL_FLAGS,
36
36
  READ_SINGLE_FLAGS,
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-QLKGOIWS.js";
40
40
  import {
41
41
  DESCRIPTIONS
42
- } from "./chunk-QBY6L77D.js";
42
+ } from "./chunk-MWVTFTWV.js";
43
43
  import {
44
44
  resolveTextOrStdin
45
45
  } from "./chunk-ZYURL5VK.js";
@@ -5,7 +5,7 @@ import {
5
5
  outputOpts,
6
6
  rootClient,
7
7
  usage
8
- } from "./chunk-LGUZ52BU.js";
8
+ } from "./chunk-UWRWZG4N.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -20,12 +20,12 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-R7USRN52.js";
23
+ } from "./chunk-MIOEYSBQ.js";
24
24
  import {
25
25
  renderSuccess,
26
26
  writeNdjsonItem
27
27
  } from "./chunk-QM57YDJE.js";
28
- import "./chunk-S234PC5E.js";
28
+ import "./chunk-7PLTQHNO.js";
29
29
  import {
30
30
  GLOBAL_FLAGS,
31
31
  READ_SINGLE_FLAGS,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-QLKGOIWS.js";
35
35
  import {
36
36
  DESCRIPTIONS
37
- } from "./chunk-QBY6L77D.js";
37
+ } from "./chunk-MWVTFTWV.js";
38
38
  import "./chunk-ZYURL5VK.js";
39
39
 
40
40
  // src/commands/enrollment.ts
@@ -80,6 +80,8 @@ function humanReasons(data) {
80
80
  o["reason"] = paired(o["reason"], o["reason_message"]);
81
81
  delete o["reason_message"];
82
82
  }
83
+ const next = o["next_action"];
84
+ if (next && typeof next === "object" && typeof next["text"] === "string") o["next_action"] = next["text"];
83
85
  for (const k of ["items", "history"]) if (Array.isArray(o[k])) o[k] = o[k].map(humanReasons);
84
86
  return o;
85
87
  }
@@ -473,7 +475,7 @@ var enrollmentCommand = defineCommand({
473
475
  bulk: bulkCmd
474
476
  },
475
477
  async run() {
476
- const { showHelp } = await import("./examples-77WVMKZQ.js");
478
+ const { showHelp } = await import("./examples-IGQJCSNL.js");
477
479
  await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
478
480
  }
479
481
  });
@@ -22,7 +22,7 @@ function renderRules(rules) {
22
22
  }
23
23
  async function renderSections(cmd) {
24
24
  const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
25
- const { renderDocument } = meta?.document ? await import("./document-ADK4GZA7.js") : { renderDocument: () => [] };
25
+ const { renderDocument } = meta?.document ? await import("./document-H65EXU4L.js") : { renderDocument: () => [] };
26
26
  const body = {
27
27
  DOCUMENT: meta?.document ? renderDocument(meta.document) : void 0,
28
28
  RULES: renderRules(meta?.rules),
@@ -7,13 +7,13 @@ import {
7
7
  outputOpts,
8
8
  rootClient,
9
9
  usage
10
- } from "./chunk-LGUZ52BU.js";
10
+ } from "./chunk-UWRWZG4N.js";
11
11
  import {
12
12
  renderSuccess
13
13
  } from "./chunk-QM57YDJE.js";
14
14
  import {
15
15
  downloadBinary
16
- } from "./chunk-S234PC5E.js";
16
+ } from "./chunk-7PLTQHNO.js";
17
17
  import {
18
18
  GLOBAL_FLAGS,
19
19
  READ_SINGLE_FLAGS,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-QLKGOIWS.js";
22
22
  import {
23
23
  DESCRIPTIONS
24
- } from "./chunk-QBY6L77D.js";
24
+ } from "./chunk-MWVTFTWV.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
26
 
27
27
  // src/commands/export.ts
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
87
87
  meta: { name: "export", description: DESCRIPTIONS.export },
88
88
  subCommands: { get: getCmd, download: downloadCmd },
89
89
  async run() {
90
- const { showHelp } = await import("./examples-77WVMKZQ.js");
90
+ const { showHelp } = await import("./examples-IGQJCSNL.js");
91
91
  await showHelp(exportCommand, ["curviate", "export"]);
92
92
  }
93
93
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-Z3RPQ5K4.js";
4
+ } from "./chunk-CRO7PJ4I.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -9,7 +9,7 @@ import {
9
9
  readablePage,
10
10
  rejectPaginationModifiersWithoutAll,
11
11
  streamAll
12
- } from "./chunk-R7USRN52.js";
12
+ } from "./chunk-MIOEYSBQ.js";
13
13
  import {
14
14
  renderError,
15
15
  renderSuccess,
@@ -19,14 +19,14 @@ import {
19
19
  import {
20
20
  createClient,
21
21
  resolveEffectiveConfig
22
- } from "./chunk-S234PC5E.js";
22
+ } from "./chunk-7PLTQHNO.js";
23
23
  import {
24
24
  GLOBAL_FLAGS,
25
25
  readOnly
26
26
  } from "./chunk-QLKGOIWS.js";
27
27
  import {
28
28
  DESCRIPTIONS
29
- } from "./chunk-QBY6L77D.js";
29
+ } from "./chunk-MWVTFTWV.js";
30
30
  import "./chunk-ZYURL5VK.js";
31
31
  import "./chunk-RDKTHFQ6.js";
32
32
 
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  requireAccount
7
- } from "./chunk-Z3RPQ5K4.js";
7
+ } from "./chunk-CRO7PJ4I.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
@@ -13,7 +13,7 @@ import {
13
13
  readablePage,
14
14
  rejectPaginationModifiersWithoutAll,
15
15
  streamAll
16
- } from "./chunk-R7USRN52.js";
16
+ } from "./chunk-MIOEYSBQ.js";
17
17
  import {
18
18
  renderError,
19
19
  renderSuccess,
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  createClient,
25
25
  resolveEffectiveConfig
26
- } from "./chunk-S234PC5E.js";
26
+ } from "./chunk-7PLTQHNO.js";
27
27
  import {
28
28
  GLOBAL_FLAGS,
29
29
  READ_SINGLE_FLAGS,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-QLKGOIWS.js";
32
32
  import {
33
33
  DESCRIPTIONS
34
- } from "./chunk-QBY6L77D.js";
34
+ } from "./chunk-MWVTFTWV.js";
35
35
  import "./chunk-ZYURL5VK.js";
36
36
  import "./chunk-RDKTHFQ6.js";
37
37
 
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-Q3ZPRFUX.js";
13
13
  import {
14
14
  requireAccount
15
- } from "./chunk-Z3RPQ5K4.js";
15
+ } from "./chunk-CRO7PJ4I.js";
16
16
  import {
17
17
  buildPreviewOutput
18
18
  } from "./chunk-TCUYH5GO.js";
@@ -24,7 +24,7 @@ import {
24
24
  readablePage,
25
25
  rejectPaginationModifiersWithoutAll,
26
26
  streamAll
27
- } from "./chunk-R7USRN52.js";
27
+ } from "./chunk-MIOEYSBQ.js";
28
28
  import {
29
29
  renderError,
30
30
  renderSuccess,
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  createClient,
36
36
  resolveEffectiveConfig
37
- } from "./chunk-S234PC5E.js";
37
+ } from "./chunk-7PLTQHNO.js";
38
38
  import {
39
39
  GLOBAL_FLAGS,
40
40
  READ_SINGLE_FLAGS,
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-QLKGOIWS.js";
44
44
  import {
45
45
  DESCRIPTIONS
46
- } from "./chunk-QBY6L77D.js";
46
+ } from "./chunk-MWVTFTWV.js";
47
47
  import "./chunk-ZYURL5VK.js";
48
48
  import "./chunk-RDKTHFQ6.js";
49
49
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-Z3RPQ5K4.js";
4
+ } from "./chunk-CRO7PJ4I.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -10,7 +10,7 @@ import {
10
10
  readablePage,
11
11
  rejectPaginationModifiersWithoutAll,
12
12
  streamAll
13
- } from "./chunk-R7USRN52.js";
13
+ } from "./chunk-MIOEYSBQ.js";
14
14
  import {
15
15
  renderError,
16
16
  renderSuccess,
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  createClient,
22
22
  resolveEffectiveConfig
23
- } from "./chunk-S234PC5E.js";
23
+ } from "./chunk-7PLTQHNO.js";
24
24
  import {
25
25
  GLOBAL_FLAGS,
26
26
  READ_SINGLE_FLAGS,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-QLKGOIWS.js";
29
29
  import {
30
30
  DESCRIPTIONS
31
- } from "./chunk-QBY6L77D.js";
31
+ } from "./chunk-MWVTFTWV.js";
32
32
  import "./chunk-ZYURL5VK.js";
33
33
  import "./chunk-RDKTHFQ6.js";
34
34
 
@@ -4,7 +4,7 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-LGUZ52BU.js";
7
+ } from "./chunk-UWRWZG4N.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
@@ -18,12 +18,12 @@ import {
18
18
  readablePage,
19
19
  rejectPaginationModifiersWithoutAll,
20
20
  streamAll
21
- } from "./chunk-R7USRN52.js";
21
+ } from "./chunk-MIOEYSBQ.js";
22
22
  import {
23
23
  renderSuccess,
24
24
  writeNdjsonItem
25
25
  } from "./chunk-QM57YDJE.js";
26
- import "./chunk-S234PC5E.js";
26
+ import "./chunk-7PLTQHNO.js";
27
27
  import {
28
28
  GLOBAL_FLAGS,
29
29
  READ_SINGLE_FLAGS,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-QLKGOIWS.js";
33
33
  import {
34
34
  DESCRIPTIONS
35
- } from "./chunk-QBY6L77D.js";
35
+ } from "./chunk-MWVTFTWV.js";
36
36
  import "./chunk-ZYURL5VK.js";
37
37
 
38
38
  // src/commands/incoming.ts
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
209
209
  meta: { name: "incoming", description: DESCRIPTIONS.incoming },
210
210
  subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
211
211
  async run() {
212
- const { showHelp } = await import("./examples-77WVMKZQ.js");
212
+ const { showHelp } = await import("./examples-IGQJCSNL.js");
213
213
  await showHelp(incomingCommand, ["curviate", "incoming"]);
214
214
  }
215
215
  });
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JXDEV33Z.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-Z3RPQ5K4.js";
18
+ } from "./chunk-CRO7PJ4I.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -29,7 +29,7 @@ import {
29
29
  readablePage,
30
30
  rejectPaginationModifiersWithoutAll,
31
31
  streamAll
32
- } from "./chunk-R7USRN52.js";
32
+ } from "./chunk-MIOEYSBQ.js";
33
33
  import {
34
34
  renderError,
35
35
  renderSuccess,
@@ -40,7 +40,7 @@ import {
40
40
  createClient,
41
41
  downloadBinary,
42
42
  resolveEffectiveConfig
43
- } from "./chunk-S234PC5E.js";
43
+ } from "./chunk-7PLTQHNO.js";
44
44
  import {
45
45
  GLOBAL_FLAGS,
46
46
  READ_SINGLE_FLAGS,
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-QLKGOIWS.js";
50
50
  import {
51
51
  DESCRIPTIONS
52
- } from "./chunk-QBY6L77D.js";
52
+ } from "./chunk-MWVTFTWV.js";
53
53
  import "./chunk-ZYURL5VK.js";
54
54
  import "./chunk-RDKTHFQ6.js";
55
55
 
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readlineSync
4
- } from "./chunk-ENBIMEKS.js";
4
+ } from "./chunk-IB6ARI3R.js";
5
5
  import {
6
6
  baseUrlProblem,
7
7
  writeProfile
8
- } from "./chunk-S234PC5E.js";
8
+ } from "./chunk-7PLTQHNO.js";
9
9
  import {
10
10
  GLOBAL_FLAGS
11
11
  } from "./chunk-QLKGOIWS.js";
12
12
  import {
13
13
  DESCRIPTIONS
14
- } from "./chunk-QBY6L77D.js";
14
+ } from "./chunk-MWVTFTWV.js";
15
15
  import {
16
16
  defaultReadStdin,
17
17
  resolveTextOrStdin
@@ -103,7 +103,7 @@ var loginCommand = defineCommand({
103
103
  }
104
104
  if (apiKey === void 0) {
105
105
  if (process.stdin.isTTY) {
106
- apiKey = await promptMasked("Enter your API key: ");
106
+ apiKey = (await promptMasked("Enter your API key: ")).trim();
107
107
  } else {
108
108
  process.stderr.write(
109
109
  "error: no API key, pass --api-key or run interactively on a TTY.\n"