@curviate/cli 0.47.0 → 0.48.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 (43) hide show
  1. package/CHANGELOG.md +174 -1
  2. package/README.md +101 -87
  3. package/dist/{account-RFJ63QYL.js → account-WKQHMM7P.js} +39 -29
  4. package/dist/chunk-AYKKXGTR.js +1141 -0
  5. package/dist/{chunk-TC4ZPUWI.js → chunk-CVMSQ3OF.js} +19 -80
  6. package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
  7. package/dist/chunk-GQKC6E5K.js +36 -0
  8. package/dist/{chunk-V3MVOVQT.js → chunk-MKGVNDMJ.js} +8 -1
  9. package/dist/chunk-NNV2OYEF.js +23 -0
  10. package/dist/{chunk-UJOTQPL6.js → chunk-OHXYFICP.js} +47 -14
  11. package/dist/{chunk-PD2I5TYC.js → chunk-Q63IIPL2.js} +2 -2
  12. package/dist/chunk-TSOIZBBU.js +41 -0
  13. package/dist/{chunk-ERBYEC5P.js → chunk-Y7K4UBFC.js} +1 -1
  14. package/dist/{chunk-FXYK2GTO.js → chunk-YFXLXION.js} +37 -32
  15. package/dist/chunk-ZYURL5VK.js +83 -0
  16. package/dist/cli.js +76 -97
  17. package/dist/{comment-MCXE7B7V.js → comment-7IQ6ZOJF.js} +27 -22
  18. package/dist/{company-EUUN372H.js → company-RD7RDGSA.js} +55 -50
  19. package/dist/{config-K4G3VSBA.js → config-EYBNYRGK.js} +13 -5
  20. package/dist/{connect-2AL7XVJO.js → connect-HVXT67A6.js} +35 -31
  21. package/dist/core-6XYGUNAY.js +46 -0
  22. package/dist/{doctor-WPYI7X2T.js → doctor-HUXQERLQ.js} +8 -4
  23. package/dist/document-AUUCGST2.js +27 -0
  24. package/dist/{draft-G65DVXT7.js → draft-DFO22K6Q.js} +26 -21
  25. package/dist/examples-64YT5V5K.js +53 -0
  26. package/dist/{feed-HV24WME4.js → feed-JWP6ANPI.js} +13 -9
  27. package/dist/{group-HADXNVJW.js → group-SIQFJEZV.js} +15 -11
  28. package/dist/{inbox-G3EE54OB.js → inbox-MMIMCA5O.js} +21 -17
  29. package/dist/{inboxes-237XOBTP.js → inboxes-RND3D4C7.js} +16 -12
  30. package/dist/{job-LIN6RWD7.js → job-ACFKBLFK.js} +29 -25
  31. package/dist/{login-OHAHNBRW.js → login-ZOB5KVKQ.js} +10 -5
  32. package/dist/{message-U2O2JQSW.js → message-OFK6UVXR.js} +9 -7
  33. package/dist/{notification-3VG32LWM.js → notification-KKGAZU7M.js} +17 -13
  34. package/dist/{post-ECDK2KJL.js → post-A5SBCFB2.js} +33 -28
  35. package/dist/{profile-JOHS6SDW.js → profile-4SOOQZ4K.js} +45 -41
  36. package/dist/{recruiter-7VXEIXN3.js → recruiter-YN73STDP.js} +123 -120
  37. package/dist/{sales-nav-K4BMBH7R.js → sales-nav-JXF5RY2K.js} +38 -32
  38. package/dist/{search-C2UYO6PI.js → search-JAL242A2.js} +58 -48
  39. package/dist/{setup-GYEZFDEN.js → setup-WICWH4JG.js} +13 -8
  40. package/dist/{webhook-KCOQOH7D.js → webhook-UGKVYWBC.js} +34 -36
  41. package/package.json +1 -1
  42. package/dist/chunk-KJ24DIAJ.js +0 -60
  43. package/dist/examples-IJL3A6SZ.js +0 -18
@@ -21,17 +21,22 @@ import {
21
21
  resolveEffectiveConfig,
22
22
  streamAll,
23
23
  writeNdjsonItem
24
- } from "./chunk-V3MVOVQT.js";
24
+ } from "./chunk-MKGVNDMJ.js";
25
25
  import {
26
26
  createClient
27
- } from "./chunk-UJOTQPL6.js";
27
+ } from "./chunk-OHXYFICP.js";
28
28
  import {
29
29
  GLOBAL_FLAGS,
30
30
  READ_SINGLE_FLAGS,
31
31
  WRITE_SINGLE_FLAGS,
32
- readOnly,
32
+ readOnly
33
+ } from "./chunk-CVMSQ3OF.js";
34
+ import {
35
+ DESCRIPTIONS
36
+ } from "./chunk-GQKC6E5K.js";
37
+ import {
33
38
  resolveTextOrStdin
34
- } from "./chunk-TC4ZPUWI.js";
39
+ } from "./chunk-ZYURL5VK.js";
35
40
 
36
41
  // src/commands/draft.ts
37
42
  import { defineCommand } from "citty";
@@ -142,7 +147,7 @@ async function uploadAll(client, draftId, files, out) {
142
147
  contentType: guessContentType(f.path)
143
148
  });
144
149
  } catch (err) {
145
- out.stderr.write(`error: uploading ${basename(f.path)} to draft ${draftId} failed; the Draft exists with the files before it. Fix the cause and add the rest with \`curviate draft update ${draftId} --attach <file>\`.
150
+ out.stderr.write(`error: uploading ${basename(f.path)} to draft ${draftId} failed; the Draft exists with the files before it. Fix the cause and add the rest with \`curviate core draft update ${draftId} --attach <file>\`.
146
151
  `);
147
152
  throw err;
148
153
  }
@@ -208,7 +213,7 @@ async function runDraftGet(client, flags, out) {
208
213
  async function runDraftCreate(client, flags, out, readStdin) {
209
214
  const body = {};
210
215
  if (flags.unschedule) {
211
- out.stderr.write("error: --unschedule applies to `draft update`; a new Draft is unscheduled unless you pass --schedule-at.\n");
216
+ out.stderr.write("error: --unschedule applies to `curviate core draft update`; a new Draft is unscheduled unless you pass --schedule-at.\n");
212
217
  process.exit(2);
213
218
  }
214
219
  const account = readAccount(flags, out);
@@ -324,9 +329,9 @@ var draftListCommand = defineCommand({
324
329
  name: "list",
325
330
  description: "List Drafts, newest first. With --status published it lists publish records instead (post id, account, time; never Drafts).",
326
331
  examples: [
327
- "curviate draft list",
328
- "curviate draft list --status scheduled --account acc_YOUR_ACCOUNT_ID --order asc",
329
- "curviate draft list --status scheduled,published --from 2026-10-01T00:00:00Z --to 2026-11-01T00:00:00Z"
332
+ "curviate core draft list",
333
+ "curviate core draft list --status scheduled --account acc_YOUR_ACCOUNT_ID --order asc",
334
+ "curviate core draft list --status scheduled,published --from 2026-10-01T00:00:00Z --to 2026-11-01T00:00:00Z"
330
335
  ]
331
336
  },
332
337
  args: {
@@ -345,7 +350,7 @@ var draftGetCommand = defineCommand({
345
350
  meta: {
346
351
  name: "get",
347
352
  description: "Get one Draft, with a fresh signed link (valid 1 hour) for each attachment.",
348
- examples: ["curviate draft get drf_YOUR_DRAFT_ID"]
353
+ examples: ["curviate core draft get drf_YOUR_DRAFT_ID"]
349
354
  },
350
355
  args: {
351
356
  ...readOnly(READ_SINGLE_FLAGS),
@@ -360,9 +365,9 @@ var draftCreateCommand = defineCommand({
360
365
  name: "create",
361
366
  description: "Store a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time. Up to 50 Drafts and 2 GiB of media per account, and per no-account. A retry creates a second Draft.",
362
367
  examples: [
363
- 'curviate draft create "Three things we learned shipping our first agent integration."',
364
- 'curviate draft create "Launch day." --account acc_YOUR_ACCOUNT_ID --schedule-at 2026-10-12T09:00:00+02:00',
365
- 'curviate draft create "Demo." --account acc_YOUR_ACCOUNT_ID --attach screenshot.png'
368
+ 'curviate core draft create "Three things we learned shipping our first agent integration."',
369
+ 'curviate core draft create "Launch day." --account acc_YOUR_ACCOUNT_ID --schedule-at 2026-10-12T09:00:00+02:00',
370
+ 'curviate core draft create "Demo." --account acc_YOUR_ACCOUNT_ID --attach screenshot.png'
366
371
  ]
367
372
  },
368
373
  args: {
@@ -381,9 +386,9 @@ var draftUpdateCommand = defineCommand({
381
386
  name: "update",
382
387
  description: "Change a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds.",
383
388
  examples: [
384
- 'curviate draft update drf_YOUR_DRAFT_ID --text "New wording."',
385
- "curviate draft update drf_YOUR_DRAFT_ID --schedule-at 2026-10-12T09:00:00+02:00",
386
- "curviate draft update drf_YOUR_DRAFT_ID --unschedule"
389
+ 'curviate core draft update drf_YOUR_DRAFT_ID --text "New wording."',
390
+ "curviate core draft update drf_YOUR_DRAFT_ID --schedule-at 2026-10-12T09:00:00+02:00",
391
+ "curviate core draft update drf_YOUR_DRAFT_ID --unschedule"
387
392
  ]
388
393
  },
389
394
  args: {
@@ -403,7 +408,7 @@ var draftDeleteCommand = defineCommand({
403
408
  meta: {
404
409
  name: "delete",
405
410
  description: "Delete a Draft and its stored media.",
406
- examples: ["curviate draft delete drf_YOUR_DRAFT_ID"]
411
+ examples: ["curviate core draft delete drf_YOUR_DRAFT_ID"]
407
412
  },
408
413
  args: {
409
414
  ...WRITE_SINGLE_FLAGS,
@@ -416,8 +421,8 @@ var draftDeleteCommand = defineCommand({
416
421
  var draftPublishCommand = defineCommand({
417
422
  meta: {
418
423
  name: "publish",
419
- description: "Publish a Draft now, under the same rules and safety limits as `post create`. Success deletes the Draft and prints the post id; a known failure leaves the Draft unchanged. If the error says the outcome is unknown, the post may be live: check the account's posts before retrying.",
420
- examples: ["curviate draft publish drf_YOUR_DRAFT_ID"]
424
+ description: "Publish a Draft now, under the same rules and safety limits as `curviate core post create`. Success deletes the Draft and prints the post id; a known failure leaves the Draft unchanged. If the error says the outcome is unknown, the post may be live: check the account's posts before retrying.",
425
+ examples: ["curviate core draft publish drf_YOUR_DRAFT_ID"]
421
426
  },
422
427
  args: {
423
428
  ...WRITE_SINGLE_FLAGS,
@@ -428,7 +433,7 @@ var draftPublishCommand = defineCommand({
428
433
  }
429
434
  });
430
435
  var draftCommand = defineCommand({
431
- meta: { name: "draft", description: "Drafts and scheduled posts." },
436
+ meta: { name: "draft", description: DESCRIPTIONS.draft },
432
437
  subCommands: {
433
438
  list: draftListCommand,
434
439
  get: draftGetCommand,
@@ -439,7 +444,7 @@ var draftCommand = defineCommand({
439
444
  },
440
445
  async run() {
441
446
  process.stderr.write(
442
- 'Usage: curviate draft <subcommand>\n list | get <id> | create ["<text>"] | update <id> | delete <id> | publish <id>\n'
447
+ 'Usage: curviate core draft <subcommand>\n list | get <id> | create ["<text>"] | update <id> | delete <id> | publish <id>\n'
443
448
  );
444
449
  }
445
450
  });
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ EXIT_CODE_MAP
4
+ } from "./chunk-76SWLAZ6.js";
5
+
6
+ // src/lib/examples.ts
7
+ import { renderUsage } from "citty";
8
+ var SECTION_ORDER = ["DOCUMENT", "RULES", "REQUIRES", "OUTPUT", "ERRORS", "SEE ALSO", "EXAMPLES"];
9
+ var exitOf = (code) => EXIT_CODE_MAP[code] ?? 1;
10
+ function renderRules(rules) {
11
+ if (!rules) return [];
12
+ const rows = rules.budget_rows;
13
+ return [
14
+ rules.changes && `Changes: ${rules.changes}`,
15
+ rules.visible_to && `Visible to: ${rules.visible_to}`,
16
+ rows && `Budget rows: ${rows.length ? `${rows.join(", ")} (see \`curviate account get <account_id>\`)` : "none"}`,
17
+ rules.retry && `Retry: ${rules.retry}`,
18
+ rules.undo && `Undo: ${rules.undo}`,
19
+ rules.blast_radius && `Blast radius: ${rules.blast_radius}`,
20
+ ...rules.notes ?? []
21
+ ].filter((l) => typeof l === "string" && l !== "");
22
+ }
23
+ async function renderSections(cmd) {
24
+ const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
25
+ const { renderDocument } = meta?.document ? await import("./document-AUUCGST2.js") : { renderDocument: () => [] };
26
+ const body = {
27
+ DOCUMENT: meta?.document ? renderDocument(meta.document) : void 0,
28
+ RULES: renderRules(meta?.rules),
29
+ REQUIRES: meta?.requires,
30
+ OUTPUT: meta?.output,
31
+ ERRORS: meta?.errors && Object.entries(meta.errors).map(([code, when]) => `${code} (exit ${exitOf(code)}): ${when}`),
32
+ "SEE ALSO": meta?.seeAlso,
33
+ EXAMPLES: meta?.examples
34
+ };
35
+ return SECTION_ORDER.filter((t) => body[t]?.length).map((t) => `${t}
36
+
37
+ ${body[t].map((l) => ` ${l}`).join("\n")}
38
+
39
+ `).join("");
40
+ }
41
+ async function showHelp(cmd, path) {
42
+ const parent = path.length > 1 ? { meta: { name: path.slice(0, -1).join(" ") } } : void 0;
43
+ const subs = typeof cmd.subCommands === "function" ? await cmd.subCommands() : await cmd.subCommands;
44
+ const listed = subs && Object.fromEntries(
45
+ Object.entries(subs).map(([k, v]) => [k, typeof v === "function" && "description" in v ? { meta: { description: v.description } } : v])
46
+ );
47
+ process.stdout.write(await renderUsage({ ...cmd, subCommands: listed }, parent) + "\n\n" + await renderSections(cmd));
48
+ }
49
+ export {
50
+ SECTION_ORDER,
51
+ renderSections,
52
+ showHelp
53
+ };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-PD2I5TYC.js";
4
+ } from "./chunk-Q63IIPL2.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -14,15 +14,19 @@ import {
14
14
  resolveEffectiveConfig,
15
15
  streamAll,
16
16
  writeNdjsonItem
17
- } from "./chunk-V3MVOVQT.js";
17
+ } from "./chunk-MKGVNDMJ.js";
18
18
  import "./chunk-76SWLAZ6.js";
19
19
  import {
20
20
  createClient
21
- } from "./chunk-UJOTQPL6.js";
21
+ } from "./chunk-OHXYFICP.js";
22
22
  import {
23
23
  GLOBAL_FLAGS,
24
24
  readOnly
25
- } from "./chunk-TC4ZPUWI.js";
25
+ } from "./chunk-CVMSQ3OF.js";
26
+ import {
27
+ DESCRIPTIONS
28
+ } from "./chunk-GQKC6E5K.js";
29
+ import "./chunk-ZYURL5VK.js";
26
30
 
27
31
  // src/commands/feed.ts
28
32
  import { defineCommand } from "citty";
@@ -93,9 +97,9 @@ var feedHomeCommand = defineCommand({
93
97
  name: "home",
94
98
  description: "Read the connected account's LinkedIn home feed as agent-actionable posts. Every post carries its text and created_at. On the default recent sort every engagement count is null (unknown, not zero) and only the author's name resolves; --sort relevant fills engagement and the author's ids.",
95
99
  examples: [
96
- "curviate feed home",
97
- "curviate feed home --sort relevant",
98
- "curviate feed home --all --max-pages 3"
100
+ "curviate core feed home",
101
+ "curviate core feed home --sort relevant",
102
+ "curviate core feed home --all --max-pages 3"
99
103
  ]
100
104
  },
101
105
  args: FEED_ARGS,
@@ -118,13 +122,13 @@ var feedHomeCommand = defineCommand({
118
122
  }
119
123
  });
120
124
  var feedCommand = defineCommand({
121
- meta: { name: "feed", description: "Read the connected account's LinkedIn home feed as agent-actionable posts." },
125
+ meta: { name: "feed", description: DESCRIPTIONS.feed },
122
126
  subCommands: {
123
127
  home: feedHomeCommand
124
128
  },
125
129
  async run() {
126
130
  process.stderr.write(
127
- "Usage: curviate feed <subcommand>\n home [--sort recent|relevant] [--limit] [--cursor] [--all]\n"
131
+ "Usage: curviate core feed <subcommand>\n home [--sort recent|relevant] [--limit] [--cursor] [--all]\n"
128
132
  );
129
133
  }
130
134
  });
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  requireAccount
7
- } from "./chunk-PD2I5TYC.js";
7
+ } from "./chunk-Q63IIPL2.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
@@ -18,16 +18,20 @@ import {
18
18
  resolveEffectiveConfig,
19
19
  streamAll,
20
20
  writeNdjsonItem
21
- } from "./chunk-V3MVOVQT.js";
21
+ } from "./chunk-MKGVNDMJ.js";
22
22
  import "./chunk-76SWLAZ6.js";
23
23
  import {
24
24
  createClient
25
- } from "./chunk-UJOTQPL6.js";
25
+ } from "./chunk-OHXYFICP.js";
26
26
  import {
27
27
  GLOBAL_FLAGS,
28
28
  READ_SINGLE_FLAGS,
29
29
  readOnly
30
- } from "./chunk-TC4ZPUWI.js";
30
+ } from "./chunk-CVMSQ3OF.js";
31
+ import {
32
+ DESCRIPTIONS
33
+ } from "./chunk-GQKC6E5K.js";
34
+ import "./chunk-ZYURL5VK.js";
31
35
 
32
36
  // src/commands/group.ts
33
37
  import { defineCommand } from "citty";
@@ -143,8 +147,8 @@ var groupListCommand = defineCommand({
143
147
  name: "list",
144
148
  description: "List the groups the connected account belongs to. Pass --target to enumerate another member's groups instead (a partial, interests-only read).",
145
149
  examples: [
146
- "curviate group list",
147
- "curviate group list --target janesmith"
150
+ "curviate core group list",
151
+ "curviate core group list --target janesmith"
148
152
  ]
149
153
  },
150
154
  args: {
@@ -177,7 +181,7 @@ var groupGetCommand = defineCommand({
177
181
  name: "get",
178
182
  description: "Get one LinkedIn group's full detail: name, member count, description, admin contact, and write-feasibility gates.",
179
183
  examples: [
180
- "curviate group get 12345678"
184
+ "curviate core group get 12345678"
181
185
  ]
182
186
  },
183
187
  args: {
@@ -207,8 +211,8 @@ var groupMembersCommand = defineCommand({
207
211
  name: "members",
208
212
  description: "List (or search by name) a group's members: id, profile URL, name, headline, and relationship signal. Requires the connected account be a member of the group.",
209
213
  examples: [
210
- "curviate group members 12345678",
211
- "curviate group members 12345678 --name sophie"
214
+ "curviate core group members 12345678",
215
+ "curviate core group members 12345678 --name sophie"
212
216
  ]
213
217
  },
214
218
  args: {
@@ -238,7 +242,7 @@ var groupMembersCommand = defineCommand({
238
242
  }
239
243
  });
240
244
  var groupCommand = defineCommand({
241
- meta: { name: "group", description: "Read LinkedIn groups: your own membership list, one group's detail, and its member roster." },
245
+ meta: { name: "group", description: DESCRIPTIONS.group },
242
246
  subCommands: {
243
247
  list: groupListCommand,
244
248
  get: groupGetCommand,
@@ -246,7 +250,7 @@ var groupCommand = defineCommand({
246
250
  },
247
251
  async run() {
248
252
  process.stderr.write(
249
- "Usage: curviate group <subcommand>\n list [--target <slug>]\n get <group_id>\n members <group_id> [--name <filter>]\n"
253
+ "Usage: curviate core group <subcommand>\n list [--target <slug>]\n get <group_id>\n members <group_id> [--name <filter>]\n"
250
254
  );
251
255
  }
252
256
  });
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-UEAX6KUB.js";
9
9
  import {
10
10
  requireAccount
11
- } from "./chunk-PD2I5TYC.js";
11
+ } from "./chunk-Q63IIPL2.js";
12
12
  import {
13
13
  buildPreviewOutput
14
14
  } from "./chunk-TCUYH5GO.js";
@@ -25,17 +25,21 @@ import {
25
25
  resolveEffectiveConfig,
26
26
  streamAll,
27
27
  writeNdjsonItem
28
- } from "./chunk-V3MVOVQT.js";
28
+ } from "./chunk-MKGVNDMJ.js";
29
29
  import "./chunk-76SWLAZ6.js";
30
30
  import {
31
31
  createClient
32
- } from "./chunk-UJOTQPL6.js";
32
+ } from "./chunk-OHXYFICP.js";
33
33
  import {
34
34
  GLOBAL_FLAGS,
35
35
  READ_SINGLE_FLAGS,
36
36
  WRITE_SINGLE_FLAGS,
37
37
  readOnly
38
- } from "./chunk-TC4ZPUWI.js";
38
+ } from "./chunk-CVMSQ3OF.js";
39
+ import {
40
+ DESCRIPTIONS
41
+ } from "./chunk-GQKC6E5K.js";
42
+ import "./chunk-ZYURL5VK.js";
39
43
 
40
44
  // src/commands/inbox.ts
41
45
  import { defineCommand } from "citty";
@@ -223,7 +227,7 @@ async function runInboxMessages(client, flags, out) {
223
227
  const servable = flags.before === void 0 && flags.after === void 0 && readCursorFlag(flags, out) === void 0;
224
228
  if (servable) {
225
229
  out.stderr.write(
226
- "hint: a stored listing is served only after a walk of the whole chat, which any unfiltered page fetch restarts. Run `curviate inbox messages <chat_id> --all` without `--mode cache_only` to walk it to the end. A chat whose messages do not fit one page (`--limit`, at most 25) is not served from the store at all.\n"
230
+ "hint: a stored listing is served only after a walk of the whole chat, which any unfiltered page fetch restarts. Run `curviate core inbox messages <chat_id> --all` without `--mode cache_only` to walk it to the end. A chat whose messages do not fit one page (`--limit`, at most 25) is not served from the store at all.\n"
227
231
  );
228
232
  }
229
233
  process.exit(14);
@@ -275,9 +279,9 @@ var inboxListCommand = defineCommand({
275
279
  name: "list",
276
280
  description: "List inbox chats.",
277
281
  examples: [
278
- "curviate inbox list",
279
- "curviate inbox list --unread",
280
- "curviate inbox list --inbox archived --all"
282
+ "curviate core inbox list",
283
+ "curviate core inbox list --unread",
284
+ "curviate core inbox list --inbox archived --all"
281
285
  ]
282
286
  },
283
287
  args: {
@@ -316,7 +320,7 @@ var inboxGetCommand = defineCommand({
316
320
  name: "get",
317
321
  description: "Get details of a single chat.",
318
322
  examples: [
319
- "curviate inbox get 2-YTQ3ODU3Njgt"
323
+ "curviate core inbox get 2-YTQ3ODU3Njgt"
320
324
  ]
321
325
  },
322
326
  args: {
@@ -348,7 +352,7 @@ var inboxMarkReadCommand = defineCommand({
348
352
  name: "mark-read",
349
353
  description: "Mark a chat as read.",
350
354
  examples: [
351
- "curviate inbox mark-read 2-YTQ3ODU3Njgt"
355
+ "curviate core inbox mark-read 2-YTQ3ODU3Njgt"
352
356
  ]
353
357
  },
354
358
  args: {
@@ -377,11 +381,11 @@ var inboxMarkReadCommand = defineCommand({
377
381
  var inboxMessagesCommand = defineCommand({
378
382
  meta: {
379
383
  name: "messages",
380
- description: "List messages in a chat. A very recent send/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `message get <chat_id> <message_id>` reflects it immediately. `--mode cache_only` is answered only for an unfiltered, uncursored first page of a chat whose whole message set fits in that one page (`--limit`, at most 25), and only after a walk of the chat reached its end: any unfiltered page fetched from LinkedIn (such as `--mode live` without `--all`) restarts that walk, and `--all` walks to the end and closes it. A read carrying `--before`, `--after` or `--cursor` is never served from the store.",
384
+ description: "List messages in a chat. A very recent send/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `curviate core message get <chat_id> <message_id>` reflects it immediately. `--mode cache_only` is answered only for an unfiltered, uncursored first page of a chat whose whole message set fits in that one page (`--limit`, at most 25), and only after a walk of the chat reached its end: any unfiltered page fetched from LinkedIn (such as `--mode live` without `--all`) restarts that walk, and `--all` walks to the end and closes it. A read carrying `--before`, `--after` or `--cursor` is never served from the store.",
381
385
  examples: [
382
- "curviate inbox messages 2-YTQ3ODU3Njgt",
383
- "curviate inbox messages 2-YTQ3ODU3Njgt --limit 20",
384
- "curviate inbox messages 2-YTQ3ODU3Njgt --after 2026-06-01T00:00:00Z"
386
+ "curviate core inbox messages 2-YTQ3ODU3Njgt",
387
+ "curviate core inbox messages 2-YTQ3ODU3Njgt --limit 20",
388
+ "curviate core inbox messages 2-YTQ3ODU3Njgt --after 2026-06-01T00:00:00Z"
385
389
  ]
386
390
  },
387
391
  args: {
@@ -421,7 +425,7 @@ var inboxSearchCommand = defineCommand({
421
425
  name: "search",
422
426
  description: "Free-text search the account's own inbox (matches participant names and message content).",
423
427
  examples: [
424
- "curviate inbox search sophie"
428
+ "curviate core inbox search sophie"
425
429
  ]
426
430
  },
427
431
  args: {
@@ -448,7 +452,7 @@ var inboxSearchCommand = defineCommand({
448
452
  }
449
453
  });
450
454
  var inboxCommand = defineCommand({
451
- meta: { name: "inbox", description: "Read LinkedIn message inbox." },
455
+ meta: { name: "inbox", description: DESCRIPTIONS.inbox },
452
456
  subCommands: {
453
457
  list: inboxListCommand,
454
458
  get: inboxGetCommand,
@@ -458,7 +462,7 @@ var inboxCommand = defineCommand({
458
462
  },
459
463
  async run() {
460
464
  process.stderr.write(
461
- "Usage: curviate inbox <subcommand>\n list\n get <chat_id>\n mark-read <chat_id>\n messages <chat_id>\n search <query>\n"
465
+ "Usage: curviate core inbox <subcommand>\n list\n get <chat_id>\n mark-read <chat_id>\n messages <chat_id>\n search <query>\n"
462
466
  );
463
467
  }
464
468
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-PD2I5TYC.js";
4
+ } from "./chunk-Q63IIPL2.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -15,16 +15,20 @@ import {
15
15
  resolveEffectiveConfig,
16
16
  streamAll,
17
17
  writeNdjsonItem
18
- } from "./chunk-V3MVOVQT.js";
18
+ } from "./chunk-MKGVNDMJ.js";
19
19
  import "./chunk-76SWLAZ6.js";
20
20
  import {
21
21
  createClient
22
- } from "./chunk-UJOTQPL6.js";
22
+ } from "./chunk-OHXYFICP.js";
23
23
  import {
24
24
  GLOBAL_FLAGS,
25
25
  READ_SINGLE_FLAGS,
26
26
  readOnly
27
- } from "./chunk-TC4ZPUWI.js";
27
+ } from "./chunk-CVMSQ3OF.js";
28
+ import {
29
+ DESCRIPTIONS
30
+ } from "./chunk-GQKC6E5K.js";
31
+ import "./chunk-ZYURL5VK.js";
28
32
 
29
33
  // src/commands/inboxes.ts
30
34
  import { defineCommand } from "citty";
@@ -121,8 +125,8 @@ var inboxesListCommand = defineCommand({
121
125
  name: "list",
122
126
  description: "Discover the account's inboxes (personal + company pages).",
123
127
  examples: [
124
- "curviate inboxes list",
125
- "curviate inboxes list --kind company"
128
+ "curviate core inboxes list",
129
+ "curviate core inboxes list --kind company"
126
130
  ]
127
131
  },
128
132
  args: {
@@ -159,16 +163,16 @@ var inboxesListCommand = defineCommand({
159
163
  var inboxesChatsCommand = defineCommand({
160
164
  meta: {
161
165
  name: "chats",
162
- description: "List an inbox's conversations. Each chat id is send-ready: reply with `message send <chat_id> \"<text>\"`. A company inbox's chat id (e.g. COMPANY_83734124_2-...) sends AS THE PAGE, no separate flag needed. Company inboxes are reply-only and cannot start a new conversation.",
166
+ description: "List an inbox's conversations. Each chat id is send-ready: reply with `curviate core message send <chat_id> \"<text>\"`. A company inbox's chat id (e.g. COMPANY_83734124_2-...) sends AS THE PAGE, no separate flag needed. Company inboxes are reply-only and cannot start a new conversation.",
163
167
  examples: [
164
- "curviate inboxes chats CLASSIC_PRIMARY",
165
- "curviate inboxes chats COMPANY_1234567_PRIMARY --limit 10"
168
+ "curviate core inboxes chats CLASSIC_PRIMARY",
169
+ "curviate core inboxes chats COMPANY_1234567_PRIMARY --limit 10"
166
170
  ]
167
171
  },
168
172
  args: {
169
173
  ...readOnly(GLOBAL_FLAGS),
170
174
  limit: { type: "string", description: "Number of items to return per page (1-25, default 20)." },
171
- inboxId: { type: "positional", description: "Inbox id from `inboxes list` (e.g. CLASSIC_PRIMARY or COMPANY_83734124_PRIMARY)." }
175
+ inboxId: { type: "positional", description: "Inbox id from `curviate core inboxes list` (e.g. CLASSIC_PRIMARY or COMPANY_83734124_PRIMARY)." }
172
176
  },
173
177
  async run({ args }) {
174
178
  const flags = args;
@@ -191,7 +195,7 @@ var inboxesChatsCommand = defineCommand({
191
195
  var inboxesCommand = defineCommand({
192
196
  meta: {
193
197
  name: "inboxes",
194
- description: "Discover LinkedIn inboxes (personal + company pages) and list their conversations. Beta. See also: `inbox` (the account's own message-thread inbox), `message send` (reply to a chat)."
198
+ description: DESCRIPTIONS.inboxes
195
199
  },
196
200
  subCommands: {
197
201
  list: inboxesListCommand,
@@ -199,7 +203,7 @@ var inboxesCommand = defineCommand({
199
203
  },
200
204
  async run() {
201
205
  process.stderr.write(
202
- "Usage: curviate inboxes <subcommand>\n list [--kind personal|company] [--company-id <id>]\n chats <inbox_id> [--limit] [--cursor] [--all]\n"
206
+ "Usage: curviate core inboxes <subcommand>\n list [--kind personal|company] [--company-id <id>]\n chats <inbox_id> [--limit] [--cursor] [--all]\n"
203
207
  );
204
208
  }
205
209
  });