@curviate/cli 0.45.0 → 0.46.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 (29) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/{account-FDPUPVFB.js → account-YVUERVO2.js} +68 -18
  3. package/dist/{chunk-BLJGV6ST.js → chunk-2FECYCAC.js} +3 -3
  4. package/dist/{chunk-XZJQQJBE.js → chunk-76E3O6HY.js} +11 -0
  5. package/dist/{chunk-PCZH5QJA.js → chunk-DGIDAO2H.js} +1 -1
  6. package/dist/{chunk-B5NIX4G6.js → chunk-FXF5FF3W.js} +6 -0
  7. package/dist/{chunk-EGDDVF3Q.js → chunk-LCGXJGPB.js} +7 -11
  8. package/dist/{chunk-FD4AANAA.js → chunk-LD6WPZZM.js} +3 -3
  9. package/dist/cli.js +20 -20
  10. package/dist/{comment-G4EXIIAQ.js → comment-BKGVJYS2.js} +6 -6
  11. package/dist/{company-IOSYYCXY.js → company-F2AZTDPK.js} +6 -6
  12. package/dist/{connect-GHABKXB2.js → connect-TX6PT7NV.js} +10 -10
  13. package/dist/{doctor-ICAEETCL.js → doctor-USTZQ75D.js} +2 -2
  14. package/dist/{exit-codes-YSFFFWMS.js → exit-codes-TMAIV7EM.js} +1 -1
  15. package/dist/{feed-XC5235UF.js → feed-ANBPRGFQ.js} +5 -5
  16. package/dist/{group-JDP2HVSV.js → group-HFF7LDDQ.js} +4 -4
  17. package/dist/{inbox-W3KR65VD.js → inbox-XQMGW6RT.js} +4 -4
  18. package/dist/{inboxes-XYS3IRT6.js → inboxes-CILMIVVD.js} +4 -4
  19. package/dist/{job-OJB4VSI2.js → job-TOJDDJ2P.js} +5 -5
  20. package/dist/{message-VZHXBKTO.js → message-WCBNBPAJ.js} +4 -4
  21. package/dist/{notification-RIUSYJV6.js → notification-CJ3LEHFL.js} +4 -4
  22. package/dist/{post-ZQIYCN7A.js → post-OQWJRL4B.js} +13 -12
  23. package/dist/{profile-COLBPBGO.js → profile-GT6ZD37M.js} +10 -10
  24. package/dist/{recruiter-4KFVMKZQ.js → recruiter-ZKWG6QG3.js} +5 -5
  25. package/dist/{sales-nav-IOBEJ4OP.js → sales-nav-WV3YHYD6.js} +4 -4
  26. package/dist/{search-3MRQE6VC.js → search-VAZEQ2WJ.js} +14 -14
  27. package/dist/{setup-BPNLAHPC.js → setup-GGXMHXAF.js} +2 -2
  28. package/dist/{webhook-ND7XZ7FW.js → webhook-HBME6K76.js} +2 -2
  29. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,65 @@ 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]
10
+
11
+ ## [0.46.0] - 2026-10-03
12
+
13
+ Requires `@curviate/sdk` 0.41.0.
14
+
15
+ ### Breaking
16
+
17
+ - **`account link` requires a connection location on a new connect.** Pass
18
+ exactly one of `--country` (a two-letter ISO code, e.g. `--country US`, the
19
+ country the account's owner normally signs in from), `--ip` (a public IPv4)
20
+ or your own proxy (`--proxy-host`). Without one, or with two, the command
21
+ exits 2 with a guiding message before any request, seats read or prompt;
22
+ `--preview` renders nothing then. The API refuses such a connect anyway. A
23
+ reconnect (`--account-id`) may omit it to keep the account's location.
24
+ `--country` is case-insensitive and sent upper-case.
25
+ - **`account update --clear-proxy` requires `--country`.** Clearing your own
26
+ proxy now names the managed location to return to; alone it exits 2 before
27
+ the request.
28
+ - **`account update` prints the updated account** (the API now returns it),
29
+ with `connection_location` re-read after a location change.
30
+
31
+ ### Added
32
+
33
+ - **Pinned to `@curviate/sdk` 0.41.0**, which carries the connection-location
34
+ contract. `CONNECTION_LOCATION_REQUIRED` exits 2 (the same exit as the
35
+ command's own pre-request refusal) and `CONNECTION_LOCATION_UNAVAILABLE`
36
+ exits 8; before this release both arrived as `INTERNAL` and exited 1. On the
37
+ latter, the `--json` error envelope carries `connectionLocation` and human
38
+ mode prints "Connects from now: ..." when the API re-read where the account
39
+ connects from after a change.
40
+ - **`--allow-country-fallback`** on `account link` (with `--country` or
41
+ `--ip`, including a reconnect) and `account update`: allow a connection from
42
+ another country when none is free in the chosen one. Without it a location
43
+ is strict. On `update`, alone, it changes the strictness of the configured
44
+ country; `--no-allow-country-fallback` makes it strict.
45
+ - **`account update --country`** moves an account's connection location.
46
+ - **`account list` and `account get`** show each account's
47
+ `connection_location` (country, current country, mode, strict) by default.
48
+ - `--proxy-protocol` accepts `socks4`.
49
+
50
+ ### Changed
51
+
52
+ - **`search posts` and `company posts` slim output carries more.** Each item now
53
+ has `created_at` (the post's date as the API derives it, `null` when unknown),
54
+ `share_url`, and the full `text` (no more 200-character cut). `author.name`
55
+ reads the author's `display_name` when the API sends that shape, so it is no
56
+ longer `null` for most results.
57
+ - **Post id help names every accepted form.** Post-level commands and
58
+ `comment list` accept the `id` from `search posts`, URN forms
59
+ (`activity`, `ugcPost`, `share`) and post URLs with a `share-` slug, and their
60
+ help says so.
61
+ - **`search posts` help** warns that a result's text can repeat fragments
62
+ around links, mentions and hashtags, and points at `post get` for the clean
63
+ body.
64
+ - **`feed home` help** says every post carries its text and `created_at`, and
65
+ that on the default recent sort every engagement count is `null` (unknown,
66
+ not zero).
67
+
9
68
  ## [0.45.0] - 2026-10-01
10
69
 
11
70
  Requires `@curviate/sdk` 0.40.1.
@@ -6,7 +6,7 @@ import {
6
6
  slimAccountGet,
7
7
  slimAccountList,
8
8
  slimAccountListItem
9
- } from "./chunk-EGDDVF3Q.js";
9
+ } from "./chunk-LCGXJGPB.js";
10
10
  import {
11
11
  buildPreviewOutput
12
12
  } from "./chunk-TCUYH5GO.js";
@@ -25,10 +25,10 @@ import {
25
25
  resolveEffectiveConfig,
26
26
  streamAll,
27
27
  writeNdjsonItem
28
- } from "./chunk-B5NIX4G6.js";
28
+ } from "./chunk-FXF5FF3W.js";
29
29
  import {
30
30
  AUTH_NEEDED
31
- } from "./chunk-XZJQQJBE.js";
31
+ } from "./chunk-76E3O6HY.js";
32
32
  import {
33
33
  createClient
34
34
  } from "./chunk-UJOTQPL6.js";
@@ -199,7 +199,7 @@ function resolveOutputOpts(flags) {
199
199
  async function handleError(err, outOpts, out) {
200
200
  const { CurviateError } = await import("@curviate/sdk");
201
201
  if (err instanceof CurviateError) {
202
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
202
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
203
203
  renderError(err, outOpts, out);
204
204
  process.exit(getExitCode(err));
205
205
  }
@@ -286,6 +286,42 @@ ${body}`;
286
286
  }
287
287
  out.stdout.write(body + "\n");
288
288
  }
289
+ function assertLocationFlags(flags, out, opts) {
290
+ const fail = (message) => {
291
+ out.stderr.write(`error: ${message}
292
+ `);
293
+ process.exit(2);
294
+ };
295
+ const named = ["country", "ip", "proxy-host"].filter((k) => flags[k] !== void 0);
296
+ for (const k of named) if (flags[k].trim() === "") fail(`--${k} was given an empty value.`);
297
+ if (named.length > 1) {
298
+ fail(
299
+ `pass one location source, not ${named.map((k) => `--${k}`).join(" and ")}: ` + (named.includes("proxy-host") ? "your own proxy decides the location by itself." : "--ip overrides --country.")
300
+ );
301
+ }
302
+ if (named.length === 0 && opts.requireOne) {
303
+ fail(
304
+ "choose where LinkedIn sees this account connecting from. Pass --country with the two-letter code of the country its owner normally signs in from (e.g. --country US), --ip with a public IPv4 address, or your own proxy with --proxy-host. Nothing was sent."
305
+ );
306
+ }
307
+ if (flags.country !== void 0 && !/^[a-z]{2}$/i.test(flags.country.trim())) {
308
+ fail("--country takes a two-letter ISO 3166-1 country code, e.g. US or DE.");
309
+ }
310
+ if (flags["allow-country-fallback"] !== void 0) {
311
+ if (flags["proxy-host"] !== void 0) {
312
+ fail("--allow-country-fallback applies to a managed location (--country or --ip), not to your own proxy; remove one.");
313
+ }
314
+ if (!opts.fallbackAlone && flags.country === void 0 && flags.ip === void 0) {
315
+ fail("--allow-country-fallback applies to --country or --ip; pass one of them with it.");
316
+ }
317
+ }
318
+ }
319
+ function managedLocationBody(flags) {
320
+ return {
321
+ ...flags.country !== void 0 ? { country: flags.country.trim().toUpperCase() } : {},
322
+ ...flags["allow-country-fallback"] !== void 0 ? { allow_country_fallback: flags["allow-country-fallback"] } : {}
323
+ };
324
+ }
289
325
  async function buildAuthBody(flags, ctx) {
290
326
  const body = {};
291
327
  if (flags["auth-method"]) body["auth_method"] = flags["auth-method"];
@@ -372,8 +408,8 @@ async function buildAuthBody(flags, ctx) {
372
408
  };
373
409
  }
374
410
  }
375
- if (flags.country) body["country"] = flags.country;
376
- if (flags.ip) body["ip"] = flags.ip;
411
+ Object.assign(body, managedLocationBody(flags));
412
+ if (flags.ip !== void 0) body["ip"] = flags.ip.trim();
377
413
  if (flags["proxy-host"]) {
378
414
  const proxyPassword = await resolveSecret({
379
415
  flagValue: flags["proxy-password"],
@@ -590,6 +626,7 @@ async function runAccountLink(client, flags, out, io = {}) {
590
626
  );
591
627
  process.exit(2);
592
628
  }
629
+ assertLocationFlags(flags, out, { requireOne: !flags["account-id"], fallbackAlone: false });
593
630
  const outOpts = resolveOutputOpts(flags);
594
631
  if (flags["seat-id"] !== void 0 && flags["seat-id"].trim() === "") {
595
632
  out.stderr.write(
@@ -734,7 +771,7 @@ async function runAccountConnectSessionPoll(client, flags, out, io = {}) {
734
771
  if (outcome.kind === "terminal_failure") {
735
772
  renderSuccess(outcome.result, outOpts, out);
736
773
  out.stderr.write(
737
- `This connect session has ${outcome.status}. Start a new connect: curviate account link.
774
+ `This connect session has ${outcome.status}. Start a new connect: curviate account link --auth-method <m> --country <CC>.
738
775
  `
739
776
  );
740
777
  process.exit(9);
@@ -771,8 +808,16 @@ async function runAccountUpdate(client, flags, out) {
771
808
  out.stderr.write("error: --clear-proxy cannot be combined with --proxy-host (choose one).\n");
772
809
  process.exit(2);
773
810
  }
811
+ if (flags.country === void 0) {
812
+ out.stderr.write(
813
+ "error: --clear-proxy needs --country: name the country this account should connect from instead (e.g. --clear-proxy --country US).\n"
814
+ );
815
+ process.exit(2);
816
+ }
774
817
  body["proxy"] = null;
775
818
  }
819
+ assertLocationFlags(flags, out, { requireOne: false, fallbackAlone: true });
820
+ Object.assign(body, managedLocationBody(flags));
776
821
  if (flags["proxy-host"]) {
777
822
  const proxyPassword = await resolveSecret({
778
823
  flagValue: flags["proxy-password"],
@@ -974,7 +1019,7 @@ async function runAccountCheckpointPoll(client, flags, out, io = {}) {
974
1019
  }
975
1020
  if (outcome.kind === "terminal_failure") {
976
1021
  renderSuccess(outcome.result, outOpts, out);
977
- out.stderr.write(`This checkpoint has ${outcome.status}. Start over: curviate account link or curviate account reconnect.
1022
+ out.stderr.write(`This checkpoint has ${outcome.status}. Start over: curviate account link --auth-method <m> --country <CC>, or add --account-id <acc_...> to reconnect an existing account.
978
1023
  `);
979
1024
  process.exit(9);
980
1025
  return;
@@ -1078,10 +1123,11 @@ var accountLinkCommand = defineCommand({
1078
1123
  name: "link",
1079
1124
  description: "Connect a LinkedIn account to an empty seat. If LinkedIn requires verification you'll be prompted for the code interactively. Given --auth-method and its credentials, a non-interactive shell exits 12 at that step and you finish with `curviate account checkpoint solve <account_id> --code`.",
1080
1125
  examples: [
1081
- "curviate account link --auth-method credentials --email jane@example.com --password-stdin",
1126
+ "curviate account link --auth-method credentials --email jane@example.com --password-stdin --country US",
1082
1127
  "curviate account link --auth-method credentials --email jane@example.com --password-stdin --account-id acc_YOUR_ACCOUNT_ID --seat-id SEAT_ID"
1083
1128
  ],
1084
1129
  requires: [
1130
+ "Exactly one of --country, --ip or --proxy-host on a new connect; a reconnect (--account-id) may omit it to keep the account's location.",
1085
1131
  "--user-agent with --auth-method cookie.",
1086
1132
  "--seat-id with --preview or --account-id, and when zero or several seats are free.",
1087
1133
  "--password-stdin only with --auth-method credentials; --li-at-stdin only with --auth-method cookie."
@@ -1097,10 +1143,11 @@ var accountLinkCommand = defineCommand({
1097
1143
  "li-at": { type: "string", description: `LinkedIn session cookie li_at (cookie method). ${PW_WARNING("--li-at-stdin", "CURVIATE_LINKEDIN_LI_AT")}` },
1098
1144
  "li-at-stdin": { type: "boolean", description: "Read the li_at session cookie from stdin (one line, trimmed).", default: false },
1099
1145
  "li-a": { type: "string", description: `Optional premium session cookie li_a (cookie method). ${OPTIONAL_SECRET_WARNING("CURVIATE_LINKEDIN_LI_A")}` },
1100
- country: { type: "string", description: "Proxy location hint (ISO 3166-1 alpha-2)." },
1101
- ip: { type: "string", description: "IP to infer the managed proxy location." },
1102
- "proxy-protocol": { type: "string", description: "Proxy protocol: http | https | socks5." },
1103
- "proxy-host": { type: "string", description: "Proxy host or IP." },
1146
+ country: { type: "string", description: "Where LinkedIn sees this account connecting from: a two-letter ISO 3166-1 country code (e.g. US, DE; case-insensitive), the country its owner normally signs in from. A new connect needs exactly one of --country, --ip or --proxy-host. Strict: the connect fails rather than use another country, unless --allow-country-fallback." },
1147
+ ip: { type: "string", description: "A public IPv4 address whose country becomes the connection location (strict, like --country). An alternative to --country." },
1148
+ "allow-country-fallback": { type: "boolean", description: "With --country or --ip: allow a connection from another country when none is free in the chosen one. Without it the connect is strict and fails instead." },
1149
+ "proxy-protocol": { type: "string", description: "Proxy protocol: http | https | socks5 | socks4." },
1150
+ "proxy-host": { type: "string", description: "Your own proxy's host or IP. Your proxy decides where LinkedIn sees the account connecting from, so --country, --ip and --allow-country-fallback are not accepted with it." },
1104
1151
  "proxy-port": { type: "string", description: "Proxy port." },
1105
1152
  "proxy-username": { type: "string", description: "Proxy auth username." },
1106
1153
  "proxy-password": { type: "string", description: `Proxy auth password. ${OPTIONAL_SECRET_WARNING("CURVIATE_PROXY_PASSWORD")}` },
@@ -1192,19 +1239,22 @@ var accountConnectSessionCommand = defineCommand({
1192
1239
  var accountUpdateCommand = defineCommand({
1193
1240
  meta: {
1194
1241
  name: "update",
1195
- description: "Update an account's metadata and/or custom-proxy configuration.",
1242
+ description: "Update an account's metadata, connection location or own proxy. Prints the updated account, with connection_location re-read after a location change.",
1196
1243
  examples: [
1197
1244
  `curviate account update acc_YOUR_ACCOUNT_ID --metadata '{"team":"growth"}'`,
1198
- "curviate account update acc_YOUR_ACCOUNT_ID --clear-proxy"
1245
+ "curviate account update acc_YOUR_ACCOUNT_ID --country DE",
1246
+ "curviate account update acc_YOUR_ACCOUNT_ID --clear-proxy --country DE"
1199
1247
  ]
1200
1248
  },
1201
1249
  args: {
1202
1250
  ...WRITE_SINGLE_FLAGS,
1203
1251
  "account-id": { type: "positional", description: "Account id (acc_...)." },
1204
1252
  metadata: { type: "string", description: `Custom metadata as a JSON object (flat string->string map). Replaces the store wholesale. Example: '{"team":"growth"}'.` },
1205
- "clear-proxy": { type: "boolean", description: "Clear the custom proxy (revert to automatic proxy protection). Mutually exclusive with --proxy-host.", default: false },
1206
- "proxy-protocol": { type: "string", description: "Proxy protocol: http | https | socks5." },
1207
- "proxy-host": { type: "string", description: "Proxy host or IP." },
1253
+ country: { type: "string", description: "Move this account's connection location to this two-letter ISO 3166-1 country code (e.g. US, DE). LinkedIn sees a new IP there and may ask the owner to verify, so change it only when the current location is wrong. Strict unless --allow-country-fallback. On an account using your own proxy, pass --clear-proxy with it." },
1254
+ "allow-country-fallback": { type: "boolean", description: "Allow a connection from another country when none is free in the chosen one. Alone, it changes the strictness of the configured country; --no-allow-country-fallback makes it strict." },
1255
+ "clear-proxy": { type: "boolean", description: "Stop using your own proxy and return to a managed location. Requires --country. Mutually exclusive with --proxy-host.", default: false },
1256
+ "proxy-protocol": { type: "string", description: "Proxy protocol: http | https | socks5 | socks4." },
1257
+ "proxy-host": { type: "string", description: "Your own proxy's host or IP. Not accepted with --country." },
1208
1258
  "proxy-port": { type: "string", description: "Proxy port." },
1209
1259
  "proxy-username": { type: "string", description: "Proxy auth username." },
1210
1260
  "proxy-password": { type: "string", description: `Proxy auth password. ${OPTIONAL_SECRET_WARNING("CURVIATE_PROXY_PASSWORD")}` }
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-B5NIX4G6.js";
4
+ } from "./chunk-FXF5FF3W.js";
5
5
  import {
6
6
  getExitCode
7
- } from "./chunk-XZJQQJBE.js";
7
+ } from "./chunk-76E3O6HY.js";
8
8
  import {
9
9
  assertNoStdinPlaceholder
10
10
  } from "./chunk-TC4ZPUWI.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`, then retry.\n"
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"
145
145
  );
146
146
  process.exit(2);
147
147
  }
@@ -16,6 +16,10 @@ var EXIT_CODE_MAP = {
16
16
  // it is user_fixable, and it is never retryable AS SENT. Re-send with a
17
17
  // chosen id, which is the exit-2 contract exactly.
18
18
  FILTER_CANDIDATES_REQUIRED: 2,
19
+ // 2: a connect named no location (or a PATCH cleared your own proxy without
20
+ // a country). `account link` refuses this itself before any request with the
21
+ // same exit, so the API's 400 and the CLI's own guard read alike.
22
+ CONNECTION_LOCATION_REQUIRED: 2,
19
23
  // Not found (4)
20
24
  RESOURCE_NOT_FOUND: 4,
21
25
  ACCOUNT_NOT_FOUND: 4,
@@ -44,6 +48,13 @@ var EXIT_CODE_MAP = {
44
48
  LINKEDIN_OPERATION_NOT_SUPPORTED: 8,
45
49
  CONNECTION_REQUEST_CONFLICT: 8,
46
50
  REAUTH_REQUIRED: 8,
51
+ // Connection location. `CONNECTION_LOCATION_UNAVAILABLE` -> 8: a 422 saying
52
+ // no connection is free in that country right now, or a change landed
53
+ // elsewhere (the envelope then carries `connectionLocation`, where the
54
+ // account connects from now). The request was well formed; the connection
55
+ // cannot land there, which is account/connection state. user_fixable, not
56
+ // retryable as sent: pick a nearby country or allow fallback.
57
+ CONNECTION_LOCATION_UNAVAILABLE: 8,
47
58
  // Checkpoint flow (9)
48
59
  CHECKPOINT_NOT_FOUND: 9,
49
60
  CHECKPOINT_EXPIRED: 9,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  readableId
7
- } from "./chunk-B5NIX4G6.js";
7
+ } from "./chunk-FXF5FF3W.js";
8
8
 
9
9
  // src/lib/member-id.ts
10
10
  var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
@@ -222,6 +222,12 @@ ${safety.safetyHint.message}`;
222
222
  Paused budget row: ${safety.budgetRow}${wait} (other rows on this account still work)`;
223
223
  }
224
224
  }
225
+ const loc = errJson.connectionLocation;
226
+ if (loc) {
227
+ const mode = loc.mode === "custom" ? "your own proxy" : loc.mode === "auto" ? "managed" : "mode unknown";
228
+ msg += `
229
+ Connects from now: ${loc.current_country ?? loc.country ?? "unknown"} (${mode}${loc.strict ? ", strict" : ""})`;
230
+ }
225
231
  if (errJson.retryAfterMs) {
226
232
  msg += `
227
233
  Retry after: ${errJson.retryAfterMs}ms`;
@@ -218,19 +218,13 @@ function slimSearchJobs(data) {
218
218
  }
219
219
  function slimSearchPostsItem(item) {
220
220
  const rawAuthor = item["author"] !== null && item["author"] !== void 0 && typeof item["author"] === "object" ? item["author"] : null;
221
- const author = rawAuthor !== null ? { name: rawAuthor["name"] ?? null } : null;
222
- const rawText = item["text"];
223
- let text;
224
- if (rawText === null || rawText === void 0) {
225
- text = null;
226
- } else {
227
- const s = String(rawText);
228
- text = s.length > 200 ? s.slice(0, 200) : s;
229
- }
221
+ const author = rawAuthor !== null ? { name: rawAuthor["name"] ?? rawAuthor["display_name"] ?? null } : null;
230
222
  return {
231
223
  id: item["id"] ?? null,
232
224
  author,
233
- text,
225
+ created_at: item["created_at"] ?? null,
226
+ share_url: item["share_url"] ?? null,
227
+ text: item["text"] ?? null,
234
228
  reaction_count: item["reaction_count"] ?? null,
235
229
  comment_count: item["comment_count"] ?? null
236
230
  };
@@ -249,7 +243,8 @@ function slimAccountListItem(item) {
249
243
  headline: item["headline"] ?? null,
250
244
  seat_id: item["seat_id"] ?? null,
251
245
  connected_at: item["connected_at"] ?? null,
252
- external_id: item["external_id"] ?? null
246
+ external_id: item["external_id"] ?? null,
247
+ connection_location: item["connection_location"] ?? null
253
248
  };
254
249
  }
255
250
  function slimAccountList(data) {
@@ -268,6 +263,7 @@ function slimAccountGet(data) {
268
263
  seat_id: d["seat_id"] ?? null,
269
264
  connected_at: d["connected_at"] ?? null,
270
265
  external_id: d["external_id"] ?? null,
266
+ connection_location: d["connection_location"] ?? null,
271
267
  last_checked_at: d["last_checked_at"] ?? null,
272
268
  quotas: d["quotas"] ?? [],
273
269
  account_states: d["account_states"] ?? []
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-UEAX6KUB.js";
19
19
  import {
20
20
  requireAccount
21
- } from "./chunk-BLJGV6ST.js";
21
+ } from "./chunk-2FECYCAC.js";
22
22
  import {
23
23
  buildPreviewOutput
24
24
  } from "./chunk-TCUYH5GO.js";
@@ -29,7 +29,7 @@ import {
29
29
  renderSuccess,
30
30
  renderUnexpectedError,
31
31
  resolveEffectiveConfig
32
- } from "./chunk-B5NIX4G6.js";
32
+ } from "./chunk-FXF5FF3W.js";
33
33
  import {
34
34
  createClient,
35
35
  downloadBinary
@@ -105,7 +105,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
105
105
  async function handleSdkError(err, outOpts, out) {
106
106
  const { CurviateError } = await import("@curviate/sdk");
107
107
  if (err instanceof CurviateError) {
108
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
108
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
109
109
  renderError(err, outOpts, out);
110
110
  process.exit(getExitCode(err));
111
111
  }
package/dist/cli.js CHANGED
@@ -27,30 +27,30 @@ var main = defineCommand({
27
27
  // Subcommand registry, names and descriptions are static for help rendering;
28
28
  // the handler implementation is loaded lazily on first invocation.
29
29
  subCommands: {
30
- setup: () => import("./setup-BPNLAHPC.js").then((m) => m.setupCommand),
31
- doctor: () => import("./doctor-ICAEETCL.js").then((m) => m.doctorCommand),
30
+ setup: () => import("./setup-GGXMHXAF.js").then((m) => m.setupCommand),
31
+ doctor: () => import("./doctor-USTZQ75D.js").then((m) => m.doctorCommand),
32
32
  login: () => import("./login-OHAHNBRW.js").then((m) => m.loginCommand),
33
33
  config: () => import("./config-K4G3VSBA.js").then((m) => m.configCommand),
34
34
  // ---------------------------------------------------------------------------
35
35
  // Noun groups, lazy-loaded on first invocation.
36
36
  // ---------------------------------------------------------------------------
37
- profile: () => import("./profile-COLBPBGO.js").then((m) => m.profileCommand),
38
- company: () => import("./company-IOSYYCXY.js").then((m) => m.companyCommand),
39
- job: () => import("./job-OJB4VSI2.js").then((m) => m.jobCommand),
40
- connect: () => import("./connect-GHABKXB2.js").then((m) => m.connectCommand),
41
- search: () => import("./search-3MRQE6VC.js").then((m) => m.searchCommand),
42
- inbox: () => import("./inbox-W3KR65VD.js").then((m) => m.inboxCommand),
43
- inboxes: () => import("./inboxes-XYS3IRT6.js").then((m) => m.inboxesCommand),
44
- message: () => import("./message-VZHXBKTO.js").then((m) => m.messageCommand),
45
- post: () => import("./post-ZQIYCN7A.js").then((m) => m.postCommand),
46
- comment: () => import("./comment-G4EXIIAQ.js").then((m) => m.commentCommand),
47
- account: () => import("./account-FDPUPVFB.js").then((m) => m.accountCommand),
48
- webhook: () => import("./webhook-ND7XZ7FW.js").then((m) => m.webhookCommand),
49
- "sales-nav": () => import("./sales-nav-IOBEJ4OP.js").then((m) => m.salesNavCommand),
50
- recruiter: () => import("./recruiter-4KFVMKZQ.js").then((m) => m.recruiterCommand),
51
- group: () => import("./group-JDP2HVSV.js").then((m) => m.groupCommand),
52
- feed: () => import("./feed-XC5235UF.js").then((m) => m.feedCommand),
53
- notification: () => import("./notification-RIUSYJV6.js").then((m) => m.notificationCommand)
37
+ profile: () => import("./profile-GT6ZD37M.js").then((m) => m.profileCommand),
38
+ company: () => import("./company-F2AZTDPK.js").then((m) => m.companyCommand),
39
+ job: () => import("./job-TOJDDJ2P.js").then((m) => m.jobCommand),
40
+ connect: () => import("./connect-TX6PT7NV.js").then((m) => m.connectCommand),
41
+ search: () => import("./search-VAZEQ2WJ.js").then((m) => m.searchCommand),
42
+ inbox: () => import("./inbox-XQMGW6RT.js").then((m) => m.inboxCommand),
43
+ inboxes: () => import("./inboxes-CILMIVVD.js").then((m) => m.inboxesCommand),
44
+ message: () => import("./message-WCBNBPAJ.js").then((m) => m.messageCommand),
45
+ post: () => import("./post-OQWJRL4B.js").then((m) => m.postCommand),
46
+ comment: () => import("./comment-BKGVJYS2.js").then((m) => m.commentCommand),
47
+ account: () => import("./account-YVUERVO2.js").then((m) => m.accountCommand),
48
+ webhook: () => import("./webhook-HBME6K76.js").then((m) => m.webhookCommand),
49
+ "sales-nav": () => import("./sales-nav-WV3YHYD6.js").then((m) => m.salesNavCommand),
50
+ recruiter: () => import("./recruiter-ZKWG6QG3.js").then((m) => m.recruiterCommand),
51
+ group: () => import("./group-HFF7LDDQ.js").then((m) => m.groupCommand),
52
+ feed: () => import("./feed-ANBPRGFQ.js").then((m) => m.feedCommand),
53
+ notification: () => import("./notification-CJ3LEHFL.js").then((m) => m.notificationCommand)
54
54
  },
55
55
  async run() {
56
56
  const { runMain } = await import("citty");
@@ -447,7 +447,7 @@ async function dispatch(root, rawArgs) {
447
447
  }
448
448
  const { CurviateError } = await import("@curviate/sdk");
449
449
  if (err instanceof CurviateError) {
450
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
450
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
451
451
  process.exit(getExitCode(err));
452
452
  }
453
453
  process.exit(code === "EARG" ? 2 : 1);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-PCZH5QJA.js";
4
+ } from "./chunk-DGIDAO2H.js";
5
5
  import {
6
6
  AttachError,
7
7
  describeAttachment,
@@ -11,7 +11,7 @@ import {
11
11
  import "./chunk-UEAX6KUB.js";
12
12
  import {
13
13
  requireAccount
14
- } from "./chunk-BLJGV6ST.js";
14
+ } from "./chunk-2FECYCAC.js";
15
15
  import {
16
16
  buildPreviewOutput
17
17
  } from "./chunk-TCUYH5GO.js";
@@ -27,8 +27,8 @@ import {
27
27
  resolveEffectiveConfig,
28
28
  streamAll,
29
29
  writeNdjsonItem
30
- } from "./chunk-B5NIX4G6.js";
31
- import "./chunk-XZJQQJBE.js";
30
+ } from "./chunk-FXF5FF3W.js";
31
+ import "./chunk-76E3O6HY.js";
32
32
  import {
33
33
  createClient
34
34
  } from "./chunk-UJOTQPL6.js";
@@ -66,7 +66,7 @@ function buildListQuery(flags, out) {
66
66
  async function handleSdkError(err, outOpts, out) {
67
67
  const { CurviateError } = await import("@curviate/sdk");
68
68
  if (err instanceof CurviateError) {
69
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
69
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
70
70
  renderError(err, outOpts, out);
71
71
  process.exit(getExitCode(err));
72
72
  }
@@ -415,7 +415,7 @@ var commentListCommand = defineCommand({
415
415
  },
416
416
  args: {
417
417
  ...readOnly(GLOBAL_FLAGS),
418
- postId: { type: "positional", description: "Post id (or share URN) to list comments for." }
418
+ postId: { type: "positional", description: "Post to list comments for: the `id` from search posts or a post read, a bare numeric activity id, a urn:li:activity|ugcPost|share:N URN, or a full LinkedIn post URL." }
419
419
  },
420
420
  async run({ args }) {
421
421
  await withClient(args, runCommentList);
@@ -7,10 +7,10 @@ import {
7
7
  slimSearchJobs,
8
8
  slimSearchPeople,
9
9
  slimSearchPosts
10
- } from "./chunk-EGDDVF3Q.js";
10
+ } from "./chunk-LCGXJGPB.js";
11
11
  import {
12
12
  sentAsNotice
13
- } from "./chunk-FD4AANAA.js";
13
+ } from "./chunk-LD6WPZZM.js";
14
14
  import "./chunk-UWO2D4HW.js";
15
15
  import "./chunk-HOQ7EUHJ.js";
16
16
  import {
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-UEAX6KUB.js";
24
24
  import {
25
25
  requireAccount
26
- } from "./chunk-BLJGV6ST.js";
26
+ } from "./chunk-2FECYCAC.js";
27
27
  import {
28
28
  buildPreviewOutput
29
29
  } from "./chunk-TCUYH5GO.js";
@@ -41,8 +41,8 @@ import {
41
41
  resolveEffectiveConfig,
42
42
  streamAll,
43
43
  writeNdjsonItem
44
- } from "./chunk-B5NIX4G6.js";
45
- import "./chunk-XZJQQJBE.js";
44
+ } from "./chunk-FXF5FF3W.js";
45
+ import "./chunk-76E3O6HY.js";
46
46
  import {
47
47
  createClient
48
48
  } from "./chunk-UJOTQPL6.js";
@@ -86,7 +86,7 @@ async function resolveCompanyId(ns, raw) {
86
86
  async function handleSdkError(err, outOpts, out) {
87
87
  const { CurviateError } = await import("@curviate/sdk");
88
88
  if (err instanceof CurviateError) {
89
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
89
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
90
90
  renderError(err, outOpts, out);
91
91
  process.exit(getExitCode(err));
92
92
  }
@@ -4,7 +4,7 @@ import {
4
4
  slimInviteReceivedItem,
5
5
  slimInviteSent,
6
6
  slimInviteSentItem
7
- } from "./chunk-EGDDVF3Q.js";
7
+ } from "./chunk-LCGXJGPB.js";
8
8
  import {
9
9
  nearestSubcommand
10
10
  } from "./chunk-HOQ7EUHJ.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-UEAX6KUB.js";
14
14
  import {
15
15
  requireAccount
16
- } from "./chunk-BLJGV6ST.js";
16
+ } from "./chunk-2FECYCAC.js";
17
17
  import {
18
18
  buildPreviewOutput
19
19
  } from "./chunk-TCUYH5GO.js";
@@ -29,8 +29,8 @@ import {
29
29
  resolveEffectiveConfig,
30
30
  streamAll,
31
31
  writeNdjsonItem
32
- } from "./chunk-B5NIX4G6.js";
33
- import "./chunk-XZJQQJBE.js";
32
+ } from "./chunk-FXF5FF3W.js";
33
+ import "./chunk-76E3O6HY.js";
34
34
  import {
35
35
  createClient
36
36
  } from "./chunk-UJOTQPL6.js";
@@ -82,7 +82,7 @@ async function runConnectSend(client, flags, out) {
82
82
  } catch (err) {
83
83
  const { CurviateError } = await import("@curviate/sdk");
84
84
  if (err instanceof CurviateError) {
85
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
85
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
86
86
  renderError(err, outOpts, out);
87
87
  process.exit(getExitCode(err));
88
88
  }
@@ -121,7 +121,7 @@ async function runConnectSent(client, flags, out) {
121
121
  } catch (err) {
122
122
  const { CurviateError } = await import("@curviate/sdk");
123
123
  if (err instanceof CurviateError) {
124
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
124
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
125
125
  renderError(err, outOpts, out);
126
126
  process.exit(getExitCode(err));
127
127
  }
@@ -160,7 +160,7 @@ async function runConnectReceived(client, flags, out) {
160
160
  } catch (err) {
161
161
  const { CurviateError } = await import("@curviate/sdk");
162
162
  if (err instanceof CurviateError) {
163
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
163
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
164
164
  renderError(err, outOpts, out);
165
165
  process.exit(getExitCode(err));
166
166
  }
@@ -189,7 +189,7 @@ async function runConnectAccept(client, flags, out) {
189
189
  } catch (err) {
190
190
  const { CurviateError } = await import("@curviate/sdk");
191
191
  if (err instanceof CurviateError) {
192
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
192
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
193
193
  renderError(err, outOpts, out);
194
194
  process.exit(getExitCode(err));
195
195
  }
@@ -218,7 +218,7 @@ async function runConnectDecline(client, flags, out) {
218
218
  } catch (err) {
219
219
  const { CurviateError } = await import("@curviate/sdk");
220
220
  if (err instanceof CurviateError) {
221
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
221
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
222
222
  renderError(err, outOpts, out);
223
223
  process.exit(getExitCode(err));
224
224
  }
@@ -247,7 +247,7 @@ async function runConnectCancel(client, flags, out) {
247
247
  } catch (err) {
248
248
  const { CurviateError } = await import("@curviate/sdk");
249
249
  if (err instanceof CurviateError) {
250
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
250
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
251
251
  renderError(err, outOpts, out);
252
252
  process.exit(getExitCode(err));
253
253
  }
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  readablePage,
4
4
  resolveEffectiveConfig
5
- } from "./chunk-B5NIX4G6.js";
5
+ } from "./chunk-FXF5FF3W.js";
6
6
  import {
7
7
  getExitCode
8
- } from "./chunk-XZJQQJBE.js";
8
+ } from "./chunk-76E3O6HY.js";
9
9
  import {
10
10
  createClient,
11
11
  getConfigPath,
@@ -3,7 +3,7 @@ import {
3
3
  AUTH_NEEDED,
4
4
  EXIT_CODE_MAP,
5
5
  getExitCode
6
- } from "./chunk-XZJQQJBE.js";
6
+ } from "./chunk-76E3O6HY.js";
7
7
  export {
8
8
  AUTH_NEEDED,
9
9
  EXIT_CODE_MAP,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-BLJGV6ST.js";
4
+ } from "./chunk-2FECYCAC.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -14,8 +14,8 @@ import {
14
14
  resolveEffectiveConfig,
15
15
  streamAll,
16
16
  writeNdjsonItem
17
- } from "./chunk-B5NIX4G6.js";
18
- import "./chunk-XZJQQJBE.js";
17
+ } from "./chunk-FXF5FF3W.js";
18
+ import "./chunk-76E3O6HY.js";
19
19
  import {
20
20
  createClient
21
21
  } from "./chunk-UJOTQPL6.js";
@@ -43,7 +43,7 @@ function resolveOutputOpts(flags) {
43
43
  async function handleSdkError(err, outOpts, out) {
44
44
  const { CurviateError } = await import("@curviate/sdk");
45
45
  if (err instanceof CurviateError) {
46
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
46
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
47
47
  renderError(err, outOpts, out);
48
48
  process.exit(getExitCode(err));
49
49
  }
@@ -91,7 +91,7 @@ var FEED_ARGS = {
91
91
  var feedHomeCommand = defineCommand({
92
92
  meta: {
93
93
  name: "home",
94
- description: "Read the connected account's LinkedIn home feed as agent-actionable posts. On the default recent sort the feed is an index: each post's text is null and only the author's name resolves, so fetch a body with `curviate post get <id>`. --sort relevant fills text and engagement.",
94
+ 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
95
  examples: [
96
96
  "curviate feed home",
97
97
  "curviate feed home --sort relevant",
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  requireAccount
7
- } from "./chunk-BLJGV6ST.js";
7
+ } from "./chunk-2FECYCAC.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
@@ -18,8 +18,8 @@ import {
18
18
  resolveEffectiveConfig,
19
19
  streamAll,
20
20
  writeNdjsonItem
21
- } from "./chunk-B5NIX4G6.js";
22
- import "./chunk-XZJQQJBE.js";
21
+ } from "./chunk-FXF5FF3W.js";
22
+ import "./chunk-76E3O6HY.js";
23
23
  import {
24
24
  createClient
25
25
  } from "./chunk-UJOTQPL6.js";
@@ -54,7 +54,7 @@ function resolveOutputOpts(flags) {
54
54
  async function handleSdkError(err, outOpts, out) {
55
55
  const { CurviateError } = await import("@curviate/sdk");
56
56
  if (err instanceof CurviateError) {
57
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
57
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
58
58
  renderError(err, outOpts, out);
59
59
  process.exit(getExitCode(err));
60
60
  }
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-UEAX6KUB.js";
9
9
  import {
10
10
  requireAccount
11
- } from "./chunk-BLJGV6ST.js";
11
+ } from "./chunk-2FECYCAC.js";
12
12
  import {
13
13
  buildPreviewOutput
14
14
  } from "./chunk-TCUYH5GO.js";
@@ -25,8 +25,8 @@ import {
25
25
  resolveEffectiveConfig,
26
26
  streamAll,
27
27
  writeNdjsonItem
28
- } from "./chunk-B5NIX4G6.js";
29
- import "./chunk-XZJQQJBE.js";
28
+ } from "./chunk-FXF5FF3W.js";
29
+ import "./chunk-76E3O6HY.js";
30
30
  import {
31
31
  createClient
32
32
  } from "./chunk-UJOTQPL6.js";
@@ -97,7 +97,7 @@ function validateInboxFolder(raw, out) {
97
97
  async function handleSdkError(err, outOpts, out) {
98
98
  const { CurviateError } = await import("@curviate/sdk");
99
99
  if (err instanceof CurviateError) {
100
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
100
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
101
101
  renderError(err, outOpts, out);
102
102
  process.exit(getExitCode(err));
103
103
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-BLJGV6ST.js";
4
+ } from "./chunk-2FECYCAC.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -15,8 +15,8 @@ import {
15
15
  resolveEffectiveConfig,
16
16
  streamAll,
17
17
  writeNdjsonItem
18
- } from "./chunk-B5NIX4G6.js";
19
- import "./chunk-XZJQQJBE.js";
18
+ } from "./chunk-FXF5FF3W.js";
19
+ import "./chunk-76E3O6HY.js";
20
20
  import {
21
21
  createClient
22
22
  } from "./chunk-UJOTQPL6.js";
@@ -51,7 +51,7 @@ function resolveOutputOpts(flags) {
51
51
  async function handleSdkError(err, outOpts, out) {
52
52
  const { CurviateError } = await import("@curviate/sdk");
53
53
  if (err instanceof CurviateError) {
54
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
54
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
55
55
  renderError(err, outOpts, out);
56
56
  process.exit(getExitCode(err));
57
57
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  slimJob
4
- } from "./chunk-EGDDVF3Q.js";
4
+ } from "./chunk-LCGXJGPB.js";
5
5
  import {
6
6
  BinaryOutputError,
7
7
  writeBinaryOutput
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-UEAX6KUB.js";
12
12
  import {
13
13
  requireAccount
14
- } from "./chunk-BLJGV6ST.js";
14
+ } from "./chunk-2FECYCAC.js";
15
15
  import {
16
16
  buildPreviewOutput
17
17
  } from "./chunk-TCUYH5GO.js";
@@ -30,8 +30,8 @@ import {
30
30
  resolveEffectiveConfig,
31
31
  streamAll,
32
32
  writeNdjsonItem
33
- } from "./chunk-B5NIX4G6.js";
34
- import "./chunk-XZJQQJBE.js";
33
+ } from "./chunk-FXF5FF3W.js";
34
+ import "./chunk-76E3O6HY.js";
35
35
  import {
36
36
  createClient,
37
37
  downloadBinary
@@ -97,7 +97,7 @@ function requireEnum(value, allowed, flag, out) {
97
97
  async function handleSdkError(err, outOpts, out) {
98
98
  const { CurviateError } = await import("@curviate/sdk");
99
99
  if (err instanceof CurviateError) {
100
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
100
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
101
101
  renderError(err, outOpts, out);
102
102
  process.exit(getExitCode(err));
103
103
  }
@@ -13,15 +13,15 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-FD4AANAA.js";
16
+ } from "./chunk-LD6WPZZM.js";
17
17
  import "./chunk-UWO2D4HW.js";
18
18
  import "./chunk-HOQ7EUHJ.js";
19
19
  import "./chunk-BGZW6B7G.js";
20
20
  import "./chunk-UEAX6KUB.js";
21
- import "./chunk-BLJGV6ST.js";
21
+ import "./chunk-2FECYCAC.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-B5NIX4G6.js";
24
- import "./chunk-XZJQQJBE.js";
23
+ import "./chunk-FXF5FF3W.js";
24
+ import "./chunk-76E3O6HY.js";
25
25
  import "./chunk-UJOTQPL6.js";
26
26
  import "./chunk-TC4ZPUWI.js";
27
27
  export {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-BLJGV6ST.js";
4
+ } from "./chunk-2FECYCAC.js";
5
5
  import {
6
6
  buildPreviewOutput
7
7
  } from "./chunk-TCUYH5GO.js";
@@ -17,8 +17,8 @@ import {
17
17
  resolveEffectiveConfig,
18
18
  streamAll,
19
19
  writeNdjsonItem
20
- } from "./chunk-B5NIX4G6.js";
21
- import "./chunk-XZJQQJBE.js";
20
+ } from "./chunk-FXF5FF3W.js";
21
+ import "./chunk-76E3O6HY.js";
22
22
  import {
23
23
  createClient
24
24
  } from "./chunk-UJOTQPL6.js";
@@ -47,7 +47,7 @@ function resolveOutputOpts(flags) {
47
47
  async function handleSdkError(err, outOpts, out) {
48
48
  const { CurviateError } = await import("@curviate/sdk");
49
49
  if (err instanceof CurviateError) {
50
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
50
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
51
51
  renderError(err, outOpts, out);
52
52
  process.exit(getExitCode(err));
53
53
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-PCZH5QJA.js";
4
+ } from "./chunk-DGIDAO2H.js";
5
5
  import {
6
6
  AttachError,
7
7
  readAttachment,
@@ -10,7 +10,7 @@ import {
10
10
  import "./chunk-UEAX6KUB.js";
11
11
  import {
12
12
  requireAccount
13
- } from "./chunk-BLJGV6ST.js";
13
+ } from "./chunk-2FECYCAC.js";
14
14
  import {
15
15
  buildPreviewOutput
16
16
  } from "./chunk-TCUYH5GO.js";
@@ -27,8 +27,8 @@ import {
27
27
  resolveEffectiveConfig,
28
28
  streamAll,
29
29
  writeNdjsonItem
30
- } from "./chunk-B5NIX4G6.js";
31
- import "./chunk-XZJQQJBE.js";
30
+ } from "./chunk-FXF5FF3W.js";
31
+ import "./chunk-76E3O6HY.js";
32
32
  import {
33
33
  createClient
34
34
  } from "./chunk-UJOTQPL6.js";
@@ -77,7 +77,7 @@ function normalizeAttachPaths(attach) {
77
77
  async function handleSdkError(err, outOpts, out) {
78
78
  const { CurviateError } = await import("@curviate/sdk");
79
79
  if (err instanceof CurviateError) {
80
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
80
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
81
81
  renderError(err, outOpts, out);
82
82
  process.exit(getExitCode(err));
83
83
  }
@@ -382,6 +382,7 @@ async function runPostUserReactions(client, flags, out) {
382
382
  await handleSdkError(err, outOpts, out);
383
383
  }
384
384
  }
385
+ var POST_ID_FORMS = "Post id in any form the CLI returns: the `id` from search posts or a post read, a bare numeric activity id, urn:li:activity|ugcPost|share:N, or a full LinkedIn post URL (activity-, ugcPost- or share- slug).";
385
386
  var postGetCommand = defineCommand({
386
387
  meta: {
387
388
  name: "get",
@@ -395,7 +396,7 @@ var postGetCommand = defineCommand({
395
396
  ...readOnly(READ_SINGLE_FLAGS),
396
397
  postId: {
397
398
  type: "positional",
398
- description: "Numeric post id, urn:li:activity:N, or full LinkedIn share URL (activity-<N>- extracted). POSTID is always the post's id. To list comments on a post, use 'comment list <post_id>'."
399
+ description: POST_ID_FORMS + " POSTID is always the post's id. To list comments on a post, use 'comment list <post_id>'."
399
400
  }
400
401
  },
401
402
  async run({ args }) {
@@ -466,7 +467,7 @@ var postReactCommand = defineCommand({
466
467
  ...WRITE_FLAGS,
467
468
  postId: {
468
469
  type: "positional",
469
- description: "Numeric post id, urn:li:activity:N, or full LinkedIn share URL (activity-<N>- extracted). POSTID is always the post's id."
470
+ description: POST_ID_FORMS + " POSTID is always the post's id."
470
471
  },
471
472
  reaction: {
472
473
  type: "positional",
@@ -514,7 +515,7 @@ var postReactionsCommand = defineCommand({
514
515
  ...readOnly(GLOBAL_FLAGS),
515
516
  postId: {
516
517
  type: "positional",
517
- description: "Numeric post id, urn:li:activity:N, or full LinkedIn share URL (activity-<N>- extracted). POSTID is always the post's id."
518
+ description: POST_ID_FORMS + " POSTID is always the post's id."
518
519
  }
519
520
  },
520
521
  async run({ args }) {
@@ -561,7 +562,7 @@ var postDeleteCommand = defineCommand({
561
562
  },
562
563
  args: {
563
564
  ...WRITE_SINGLE_FLAGS,
564
- postId: { type: "positional", description: "Post id, urn:li:activity:N, or full share URL." }
565
+ postId: { type: "positional", description: POST_ID_FORMS }
565
566
  },
566
567
  async run({ args }) {
567
568
  await withClient(args, runPostDelete);
@@ -577,7 +578,7 @@ var postUnreactCommand = defineCommand({
577
578
  },
578
579
  args: {
579
580
  ...WRITE_SINGLE_FLAGS,
580
- postId: { type: "positional", description: "Post id, urn:li:activity:N, or full share URL." },
581
+ postId: { type: "positional", description: POST_ID_FORMS },
581
582
  reaction: { type: "positional", description: "Reaction to remove: like|celebrate|support|love|insightful|funny." }
582
583
  },
583
584
  async run({ args }) {
@@ -607,7 +608,7 @@ var postSaveCommand = defineCommand({
607
608
  },
608
609
  args: {
609
610
  ...WRITE_SINGLE_FLAGS,
610
- postId: { type: "positional", description: "Post id (urn:li:activity:N or a bare numeric id)." }
611
+ postId: { type: "positional", description: POST_ID_FORMS }
611
612
  },
612
613
  async run({ args }) {
613
614
  await withClient(args, runPostSave);
@@ -623,7 +624,7 @@ var postUnsaveCommand = defineCommand({
623
624
  },
624
625
  args: {
625
626
  ...WRITE_SINGLE_FLAGS,
626
- postId: { type: "positional", description: "Post id (urn:li:activity:N or a bare numeric id)." }
627
+ postId: { type: "positional", description: POST_ID_FORMS }
627
628
  },
628
629
  async run({ args }) {
629
630
  await withClient(args, runPostUnsave);
@@ -4,7 +4,7 @@ import {
4
4
  slimProfile,
5
5
  slimProfileMe,
6
6
  withRequestedSections
7
- } from "./chunk-EGDDVF3Q.js";
7
+ } from "./chunk-LCGXJGPB.js";
8
8
  import {
9
9
  RETRIEVAL_FLAGS,
10
10
  hasRetrievalFlags,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  resolveMemberOrMeProviderId,
15
15
  resolveMemberProviderId
16
- } from "./chunk-PCZH5QJA.js";
16
+ } from "./chunk-DGIDAO2H.js";
17
17
  import {
18
18
  AttachError,
19
19
  readAttachment,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-UEAX6KUB.js";
25
25
  import {
26
26
  requireAccount
27
- } from "./chunk-BLJGV6ST.js";
27
+ } from "./chunk-2FECYCAC.js";
28
28
  import {
29
29
  buildPreviewOutput
30
30
  } from "./chunk-TCUYH5GO.js";
@@ -42,8 +42,8 @@ import {
42
42
  resolveEffectiveConfig,
43
43
  streamAll,
44
44
  writeNdjsonItem
45
- } from "./chunk-B5NIX4G6.js";
46
- import "./chunk-XZJQQJBE.js";
45
+ } from "./chunk-FXF5FF3W.js";
46
+ import "./chunk-76E3O6HY.js";
47
47
  import {
48
48
  createClient
49
49
  } from "./chunk-UJOTQPL6.js";
@@ -180,7 +180,7 @@ async function runProfileMe(client, flags, out) {
180
180
  } catch (err) {
181
181
  const { CurviateError } = await import("@curviate/sdk");
182
182
  if (err instanceof CurviateError) {
183
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
183
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
184
184
  renderError(err, outOpts, out);
185
185
  process.exit(getExitCode(err));
186
186
  }
@@ -207,7 +207,7 @@ async function runProfileMe(client, flags, out) {
207
207
  } catch (err) {
208
208
  const { CurviateError } = await import("@curviate/sdk");
209
209
  if (err instanceof CurviateError) {
210
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
210
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
211
211
  renderError(err, outOpts, out);
212
212
  process.exit(getExitCode(err));
213
213
  }
@@ -339,7 +339,7 @@ async function runProfileGet(client, flags, out) {
339
339
  } catch (err) {
340
340
  const { CurviateError } = await import("@curviate/sdk");
341
341
  if (err instanceof CurviateError) {
342
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
342
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
343
343
  renderError(err, outOpts, out);
344
344
  process.exit(getExitCode(err));
345
345
  }
@@ -377,7 +377,7 @@ async function runProfileRelations(client, flags, out) {
377
377
  } catch (err) {
378
378
  const { CurviateError } = await import("@curviate/sdk");
379
379
  if (err instanceof CurviateError) {
380
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
380
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
381
381
  renderError(err, outOpts, out);
382
382
  process.exit(getExitCode(err));
383
383
  }
@@ -417,7 +417,7 @@ async function runProfileEndorse(client, flags, out) {
417
417
  async function handleSdkError(err, outOpts, out) {
418
418
  const { CurviateError } = await import("@curviate/sdk");
419
419
  if (err instanceof CurviateError) {
420
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
420
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
421
421
  renderError(err, outOpts, out);
422
422
  process.exit(getExitCode(err));
423
423
  }
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KJ24DIAJ.js";
7
7
  import {
8
8
  slimJob
9
- } from "./chunk-EGDDVF3Q.js";
9
+ } from "./chunk-LCGXJGPB.js";
10
10
  import {
11
11
  BinaryOutputError,
12
12
  writeBinaryOutput
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-UEAX6KUB.js";
23
23
  import {
24
24
  requireAccount
25
- } from "./chunk-BLJGV6ST.js";
25
+ } from "./chunk-2FECYCAC.js";
26
26
  import {
27
27
  buildPreviewOutput
28
28
  } from "./chunk-TCUYH5GO.js";
@@ -39,8 +39,8 @@ import {
39
39
  resolveEffectiveConfig,
40
40
  streamAll,
41
41
  writeNdjsonItem
42
- } from "./chunk-B5NIX4G6.js";
43
- import "./chunk-XZJQQJBE.js";
42
+ } from "./chunk-FXF5FF3W.js";
43
+ import "./chunk-76E3O6HY.js";
44
44
  import {
45
45
  createClient,
46
46
  downloadBinary
@@ -79,7 +79,7 @@ function normalizeAttachPaths(attach) {
79
79
  async function handleSdkError(err, outOpts, out) {
80
80
  const { CurviateError } = await import("@curviate/sdk");
81
81
  if (err instanceof CurviateError) {
82
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
82
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
83
83
  renderError(err, outOpts, out);
84
84
  process.exit(getExitCode(err));
85
85
  }
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-UEAX6KUB.js";
15
15
  import {
16
16
  requireAccount
17
- } from "./chunk-BLJGV6ST.js";
17
+ } from "./chunk-2FECYCAC.js";
18
18
  import {
19
19
  buildPreviewOutput
20
20
  } from "./chunk-TCUYH5GO.js";
@@ -31,8 +31,8 @@ import {
31
31
  resolveEffectiveConfig,
32
32
  streamAll,
33
33
  writeNdjsonItem
34
- } from "./chunk-B5NIX4G6.js";
35
- import "./chunk-XZJQQJBE.js";
34
+ } from "./chunk-FXF5FF3W.js";
35
+ import "./chunk-76E3O6HY.js";
36
36
  import {
37
37
  createClient
38
38
  } from "./chunk-UJOTQPL6.js";
@@ -65,7 +65,7 @@ function normalizeAttachPaths(attach) {
65
65
  async function handleSdkError(err, outOpts, out) {
66
66
  const { CurviateError } = await import("@curviate/sdk");
67
67
  if (err instanceof CurviateError) {
68
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
68
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
69
69
  renderError(err, outOpts, out);
70
70
  process.exit(getExitCode(err));
71
71
  }
@@ -14,10 +14,10 @@ import {
14
14
  slimSearchPeopleItem,
15
15
  slimSearchPosts,
16
16
  slimSearchPostsItem
17
- } from "./chunk-EGDDVF3Q.js";
17
+ } from "./chunk-LCGXJGPB.js";
18
18
  import {
19
19
  requireAccount
20
- } from "./chunk-BLJGV6ST.js";
20
+ } from "./chunk-2FECYCAC.js";
21
21
  import {
22
22
  pageDelayFromFlags,
23
23
  readCursorFlag,
@@ -30,8 +30,8 @@ import {
30
30
  resolveEffectiveConfig,
31
31
  streamAll,
32
32
  writeNdjsonItem
33
- } from "./chunk-B5NIX4G6.js";
34
- import "./chunk-XZJQQJBE.js";
33
+ } from "./chunk-FXF5FF3W.js";
34
+ import "./chunk-76E3O6HY.js";
35
35
  import {
36
36
  createClient
37
37
  } from "./chunk-UJOTQPL6.js";
@@ -214,7 +214,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
214
214
  } catch (err) {
215
215
  const { CurviateError } = await import("@curviate/sdk");
216
216
  if (err instanceof CurviateError) {
217
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
217
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
218
218
  renderError(err, outOpts, out);
219
219
  process.exit(getExitCode(err));
220
220
  }
@@ -256,7 +256,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
256
256
  } catch (err) {
257
257
  const { CurviateError } = await import("@curviate/sdk");
258
258
  if (err instanceof CurviateError) {
259
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
259
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
260
260
  renderError(err, outOpts, out);
261
261
  process.exit(getExitCode(err));
262
262
  }
@@ -298,7 +298,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
298
298
  } catch (err) {
299
299
  const { CurviateError } = await import("@curviate/sdk");
300
300
  if (err instanceof CurviateError) {
301
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
301
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
302
302
  renderError(err, outOpts, out);
303
303
  process.exit(getExitCode(err));
304
304
  }
@@ -340,7 +340,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
340
340
  } catch (err) {
341
341
  const { CurviateError } = await import("@curviate/sdk");
342
342
  if (err instanceof CurviateError) {
343
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
343
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
344
344
  renderError(err, outOpts, out);
345
345
  process.exit(getExitCode(err));
346
346
  }
@@ -388,7 +388,7 @@ async function runSearchParameters(client, flags, out) {
388
388
  } catch (err) {
389
389
  const { CurviateError } = await import("@curviate/sdk");
390
390
  if (err instanceof CurviateError) {
391
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
391
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
392
392
  renderError(err, outOpts, out);
393
393
  process.exit(getExitCode(err));
394
394
  }
@@ -430,7 +430,7 @@ async function runSearchGroups(client, flags, out) {
430
430
  } catch (err) {
431
431
  const { CurviateError } = await import("@curviate/sdk");
432
432
  if (err instanceof CurviateError) {
433
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
433
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
434
434
  renderError(err, outOpts, out);
435
435
  process.exit(getExitCode(err));
436
436
  }
@@ -474,7 +474,7 @@ async function runSearchServices(client, flags, out) {
474
474
  } catch (err) {
475
475
  const { CurviateError } = await import("@curviate/sdk");
476
476
  if (err instanceof CurviateError) {
477
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
477
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
478
478
  renderError(err, outOpts, out);
479
479
  process.exit(getExitCode(err));
480
480
  }
@@ -516,7 +516,7 @@ async function runSearchServiceParameters(client, flags, out) {
516
516
  } catch (err) {
517
517
  const { CurviateError } = await import("@curviate/sdk");
518
518
  if (err instanceof CurviateError) {
519
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
519
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
520
520
  renderError(err, outOpts, out);
521
521
  process.exit(getExitCode(err));
522
522
  }
@@ -555,7 +555,7 @@ async function runSearchFromUrl(client, flags, out) {
555
555
  } catch (err) {
556
556
  const { CurviateError } = await import("@curviate/sdk");
557
557
  if (err instanceof CurviateError) {
558
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
558
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
559
559
  renderError(err, outOpts, out);
560
560
  process.exit(getExitCode(err));
561
561
  }
@@ -649,7 +649,7 @@ var searchCompaniesCommand = defineCommand({
649
649
  var searchPostsCommand = defineCommand({
650
650
  meta: {
651
651
  name: "posts",
652
- description: "Search posts.",
652
+ description: "Search posts. Each result's text can repeat fragments around links, mentions and hashtags; use `curviate post get <id>` for the clean body.",
653
653
  examples: [
654
654
  'curviate search posts --keywords "agent infrastructure"',
655
655
  'curviate search posts --keywords "agent infrastructure" --date-posted past_week'
@@ -5,10 +5,10 @@ import {
5
5
  import {
6
6
  readablePage,
7
7
  resolveEffectiveConfig
8
- } from "./chunk-B5NIX4G6.js";
8
+ } from "./chunk-FXF5FF3W.js";
9
9
  import {
10
10
  getExitCode
11
- } from "./chunk-XZJQQJBE.js";
11
+ } from "./chunk-76E3O6HY.js";
12
12
  import {
13
13
  createClient,
14
14
  getConfigPath,
@@ -15,7 +15,7 @@ import {
15
15
  resolveEffectiveConfig,
16
16
  streamAll,
17
17
  writeNdjsonItem
18
- } from "./chunk-B5NIX4G6.js";
18
+ } from "./chunk-FXF5FF3W.js";
19
19
  import {
20
20
  createClient
21
21
  } from "./chunk-UJOTQPL6.js";
@@ -53,7 +53,7 @@ function resolveOutputOpts(flags) {
53
53
  async function handleError(err, outOpts, out) {
54
54
  const { CurviateError } = await import("@curviate/sdk");
55
55
  if (err instanceof CurviateError) {
56
- const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
56
+ const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
57
57
  renderError(err, outOpts, out);
58
58
  process.exit(getExitCode(err));
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "clean": "rm -rf dist *.tsbuildinfo"
48
48
  },
49
49
  "dependencies": {
50
- "@curviate/sdk": "0.40.1",
50
+ "@curviate/sdk": "0.41.0",
51
51
  "citty": "^0.1.6",
52
52
  "open": "^10.1.0"
53
53
  },