@curviate/cli 0.30.0 → 0.31.1

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 (38) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/README.md +65 -12
  3. package/dist/{account-5KGM6EPR.js → account-DZRX4YOK.js} +28 -12
  4. package/dist/{chunk-GHT2DLZR.js → chunk-A73TUZBK.js} +4 -4
  5. package/dist/{chunk-LCIUD7S2.js → chunk-JRKM4OV2.js} +1 -1
  6. package/dist/{chunk-5KANHEBN.js → chunk-KQXYEQAD.js} +0 -56
  7. package/dist/{chunk-63X3VI3T.js → chunk-LKF5MZIP.js} +1 -1
  8. package/dist/chunk-PKSKQ3LN.js +68 -0
  9. package/dist/{chunk-AHYUM2XQ.js → chunk-SKJNLN37.js} +12 -2
  10. package/dist/chunk-TD2ZIXFR.js +67 -0
  11. package/dist/{chunk-KTY7R27U.js → chunk-TQJ77SL4.js} +3 -1
  12. package/dist/chunk-X3YWBMBC.js +151 -0
  13. package/dist/{chunk-TAOXJNQN.js → chunk-Y3H55OSY.js} +14 -12
  14. package/dist/cli.js +36 -22
  15. package/dist/{comment-BLG4WHST.js → comment-6JI4Q6QY.js} +17 -14
  16. package/dist/{company-ZT65QZ6F.js → company-RLU5SHUO.js} +25 -22
  17. package/dist/{config-5HB2J3RY.js → config-FUHT23SX.js} +2 -2
  18. package/dist/{connect-57AUN33D.js → connect-63NUITEZ.js} +22 -19
  19. package/dist/doctor-KSLZNAKH.js +198 -0
  20. package/dist/{exit-codes-U5CHA6FT.js → exit-codes-RUKZC4WV.js} +1 -1
  21. package/dist/{feed-3AWI2URQ.js → feed-PAWXR56T.js} +12 -9
  22. package/dist/{group-DYC2NX5M.js → group-ZIIWI7JV.js} +12 -9
  23. package/dist/{inbox-ZRFIFOEP.js → inbox-GIPLWRHQ.js} +14 -11
  24. package/dist/{inboxes-XQ2B6X3Q.js → inboxes-ECGEMDH7.js} +12 -9
  25. package/dist/{job-NUT4QMH2.js → job-WPWIAVQY.js} +14 -11
  26. package/dist/{login-KNNEN4HP.js → login-3OAUY7TG.js} +3 -3
  27. package/dist/{message-KMNRUD4H.js → message-JQL2XABC.js} +9 -7
  28. package/dist/{notification-LEM57IBY.js → notification-URSGC7OR.js} +14 -11
  29. package/dist/{post-FXAANNUB.js → post-2HI6KL73.js} +17 -14
  30. package/dist/{profile-72V55PZM.js → profile-4BXLUYMH.js} +25 -22
  31. package/dist/{recruiter-JUNB5AUR.js → recruiter-OUXQ5XYU.js} +24 -18
  32. package/dist/{sales-nav-BALVVD35.js → sales-nav-MJAMCSBO.js} +22 -16
  33. package/dist/{search-QCXTK33P.js → search-M3R35BIB.js} +21 -18
  34. package/dist/setup-YV5PVIU5.js +419 -0
  35. package/dist/{webhook-D4QRWF7W.js → webhook-3TEYA3B2.js} +10 -7
  36. package/package.json +2 -2
  37. package/dist/chunk-2OG6M6ME.js +0 -89
  38. package/dist/{chunk-H4KV7MIN.js → chunk-YLSJ4HKU.js} +1 -1
@@ -0,0 +1,151 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/lib/exit-codes.ts
4
+ var EXIT_CODE_MAP = {
5
+ // Auth (3)
6
+ UNAUTHORIZED: 3,
7
+ // Invalid input / usage (2)
8
+ INVALID_REQUEST: 2,
9
+ UNSUPPORTED_MEDIA_TYPE: 2,
10
+ PAYLOAD_TOO_LARGE: 2,
11
+ // 2, found by the SDK-pin gate at the bottom of test/lib/exit-codes.test.ts
12
+ // on its first run. It has been in the SDK's taxonomy and absent from this
13
+ // table, so it fell to the unmapped 1 and read as an internal failure. It is
14
+ // a 422 saying a plain-string search filter matched several LinkedIn
15
+ // taxonomy options: `unresolved[]` names the fields and their candidate ids,
16
+ // it is user_fixable, and it is never retryable AS SENT. Re-send with a
17
+ // chosen id, which is the exit-2 contract exactly.
18
+ FILTER_CANDIDATES_REQUIRED: 2,
19
+ // Not found (4)
20
+ RESOURCE_NOT_FOUND: 4,
21
+ ACCOUNT_NOT_FOUND: 4,
22
+ SUBSCRIPTION_NOT_FOUND: 4,
23
+ SEAT_NOT_FOUND: 4,
24
+ // Entitlement (5), three independent refusals, see the note above
25
+ NO_ACTIVE_SEAT: 5,
26
+ LINKEDIN_FEATURE_NOT_SUBSCRIBED: 5,
27
+ BETA_NOT_ENABLED: 5,
28
+ // DEPRECATED, and mapped anyway. `TIER_NOT_ACTIVE` is what a deployment
29
+ // predating the seat-based entitlement rollout answers instead of
30
+ // `NO_ACTIVE_SEAT`, and this CLI is pointed at whichever deployment the
31
+ // caller configured. Unmapped it would fall to exit 1 and read as "the tool
32
+ // broke" for a plain billing refusal, on exactly the deployments most likely
33
+ // to send it. Same bucket as its replacement, because the caller's remedy is
34
+ // identical. Removed once every deployment carries the new contract.
35
+ TIER_NOT_ACTIVE: 5,
36
+ // Rate-limited (6)
37
+ RATE_LIMIT_ACCOUNT: 6,
38
+ RATE_LIMIT_TENANT: 6,
39
+ PLATFORM_RATE_LIMIT: 6,
40
+ LINKEDIN_RATE_LIMITED: 6,
41
+ // Transient platform (7)
42
+ PLATFORM_ERROR: 7,
43
+ LINKEDIN_SERVICE_UNAVAILABLE: 7,
44
+ // Account / connection state (8)
45
+ ACCOUNT_RESTRICTED: 8,
46
+ RESOURCE_ACCESS_RESTRICTED: 8,
47
+ LINKEDIN_AUTH_FAILED: 8,
48
+ LINKEDIN_SESSION_EVICTED: 8,
49
+ LINKEDIN_COOKIE_INVALID: 8,
50
+ CONNECTION_IN_PROGRESS: 8,
51
+ ACCOUNT_ALREADY_LINKED: 8,
52
+ LINKEDIN_OPERATION_NOT_SUPPORTED: 8,
53
+ CONNECTION_REQUEST_CONFLICT: 8,
54
+ REAUTH_REQUIRED: 8,
55
+ // DEPRECATED, mapped for the same reason as `TIER_NOT_ACTIVE` above: the
56
+ // connect rework made it unreachable on current deployments, and an older one
57
+ // can still send it. A seat resolving to both individual-Premium products at
58
+ // once, which is the same "this account/seat is in a state that blocks the
59
+ // request" shape as `ACCOUNT_RESTRICTED`.
60
+ PREMIUM_CONFLICT: 8,
61
+ // Checkpoint flow (9)
62
+ CHECKPOINT_NOT_FOUND: 9,
63
+ CHECKPOINT_EXPIRED: 9,
64
+ CHECKPOINT_INVALID_CODE: 9,
65
+ CHECKPOINT_MAX_ATTEMPTS: 9,
66
+ CHECKPOINT_ALREADY_RESOLVED: 9,
67
+ CHECKPOINT_UNSUPPORTED: 9,
68
+ // Messaging window / recipient (10)
69
+ MESSAGE_WINDOW_EXPIRED: 10,
70
+ RECIPIENT_UNREACHABLE: 10,
71
+ // Billing (11)
72
+ PAYMENT_REQUIRED: 11,
73
+ PAYMENT_FAILED: 11,
74
+ SUBSCRIPTION_BUSY: 11,
75
+ SEAT_CANCELLED: 11,
76
+ // Account-safety budget (13), see the note above for why this is not 6
77
+ BUDGET_EXHAUSTED: 13,
78
+ // Nothing stored (14), A NEW BUCKET, and deliberately not 4.
79
+ // `NOT_STORED` is a 422 answering a `--mode cache_only` read: the resource
80
+ // may exist perfectly well on LinkedIn, and this API simply holds no copy of
81
+ // it, so it is NOT "not found" and re-checking the id is the wrong move. It
82
+ // is not 1 either: nothing failed. It is user_fixable and not retryable AS
83
+ // SENT — the fix is another mode (`refill` fetches it once, `auto` fetches
84
+ // now), which is the same shape as exit 2 but reached without a malformed
85
+ // request, so it earns its own number rather than muddying either.
86
+ // A 502 under cache_only stays 7: "we could not look" and "we hold nothing"
87
+ // are different answers and only one of them is worth retrying.
88
+ NOT_STORED: 14,
89
+ // ── Codes that used to fall through to 1 ─────────────────────────────────
90
+ //
91
+ // Each of these is returned by a `/v1` route, the `/v1` catch-all, or a
92
+ // shared handler one of them calls, and each was absent from the SDK's
93
+ // exported union until 0.30.0 — so it decoded to `INTERNAL` and landed here
94
+ // on exit 1, which reads as "the tool broke" for a refusal that is usually
95
+ // the caller's to fix. They are bucketed by what the caller does next, taken
96
+ // from each code's own HTTP status and retry contract rather than by name.
97
+ // Not found (4). `NOT_FOUND` is the catch-all's answer to a path this API
98
+ // does not serve, which is also what a MISTYPED path returns, so check the
99
+ // URL shape before the ids. `REACTION_NOT_FOUND` is a 422 rather than a 404,
100
+ // and is still a not-found in the only sense that matters to a caller: the
101
+ // reaction you asked to remove is not on that post.
102
+ NOT_FOUND: 4,
103
+ REACTION_NOT_FOUND: 4,
104
+ // Transient platform (7). All four are a dependency failing, not the request
105
+ // being wrong: 502 from the connect path and from Stripe checkout, 503 from
106
+ // the substrate capacity ceiling and the billing portal. Backing off and
107
+ // retrying is the right move, which is what 7 means.
108
+ SUBSTRATE_LINK_FAILED: 7,
109
+ SUBSTRATE_CAP_REACHED: 7,
110
+ BILLING_CHECKOUT_FAILED: 7,
111
+ BILLING_PORTAL_UNAVAILABLE: 7,
112
+ // Invalid input / usage (2). Both are the REQUEST being inapplicable rather
113
+ // than a state to wait out: `ADMIN_BYPASS` is a 400 saying an admin
114
+ // workspace has no Stripe billing, so the billing operations do not apply to
115
+ // it at all; `INVALID_CANCELLATION_SOURCE` is a rejected field VALUE. Note
116
+ // the neighbours below are also 400s and are NOT 2, because they describe a
117
+ // state the caller has to resolve, not an argument to correct.
118
+ ADMIN_BYPASS: 2,
119
+ INVALID_CANCELLATION_SOURCE: 2,
120
+ // Billing (11). Tenant standing, seat and subscription state, and the
121
+ // free-trial limits. Every one is user_fixable and none clears on an
122
+ // identical retry: the fix is in billing, in the dashboard, or in choosing a
123
+ // different target. Grouped with `PAYMENT_REQUIRED` / `SEAT_CANCELLED`
124
+ // above, which are the same shape.
125
+ ACCOUNT_DISPUTED: 11,
126
+ ACCOUNT_LINKING_DISABLED: 11,
127
+ PERIOD_LOCKED: 11,
128
+ SEAT_NOT_EMPTY: 11,
129
+ SEAT_PROVISIONAL: 11,
130
+ SUBSCRIPTION_ALREADY_EXISTS: 11,
131
+ ALREADY_CANCELLED: 11,
132
+ CANCELLATION_ALREADY_EFFECTIVE: 11,
133
+ TRIAL_EXPIRED: 11,
134
+ TRIAL_SEAT_LIMIT: 11,
135
+ TRIAL_ACTIVE_SEAT_LIMIT: 11,
136
+ TRIAL_IDENTITY_ALREADY_USED: 11,
137
+ TRIAL_IDENTITY_UNRESOLVED: 11,
138
+ // Internal / uncaught (1), last resort bucket
139
+ INTERNAL: 1,
140
+ PLATFORM_NOT_IMPLEMENTED: 1
141
+ };
142
+ function getExitCode(code) {
143
+ return EXIT_CODE_MAP[code] ?? 1;
144
+ }
145
+ var AUTH_NEEDED = 12;
146
+
147
+ export {
148
+ EXIT_CODE_MAP,
149
+ getExitCode,
150
+ AUTH_NEEDED
151
+ };
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ BinaryOutputError,
4
+ writeBinaryOutput
5
+ } from "./chunk-UWO2D4HW.js";
2
6
  import {
3
7
  looksLikeCommandWord,
4
8
  nearestSubcommand
@@ -8,32 +12,30 @@ import {
8
12
  readAttachment,
9
13
  toAttachmentPayload
10
14
  } from "./chunk-BGZW6B7G.js";
11
- import {
12
- BinaryOutputError,
13
- writeBinaryOutput
14
- } from "./chunk-UWO2D4HW.js";
15
15
  import {
16
16
  normalizeChatId,
17
17
  resolveIdentifier
18
18
  } from "./chunk-UEAX6KUB.js";
19
- import {
20
- requireAccount
21
- } from "./chunk-GHT2DLZR.js";
22
19
  import {
23
20
  buildPreviewOutput
24
21
  } from "./chunk-R3VLWLVV.js";
25
22
  import {
26
- createClient,
23
+ requireAccount
24
+ } from "./chunk-A73TUZBK.js";
25
+ import {
27
26
  renderError,
28
27
  renderSuccess,
29
- renderUnexpectedError,
28
+ renderUnexpectedError
29
+ } from "./chunk-KQXYEQAD.js";
30
+ import {
31
+ createClient,
30
32
  resolveEffectiveConfig
31
- } from "./chunk-5KANHEBN.js";
33
+ } from "./chunk-TD2ZIXFR.js";
32
34
  import {
33
35
  READ_SINGLE_FLAGS,
34
36
  WRITE_FLAGS,
35
37
  resolveTextOrStdin
36
- } from "./chunk-AHYUM2XQ.js";
38
+ } from "./chunk-SKJNLN37.js";
37
39
 
38
40
  // src/commands/message.ts
39
41
  import { defineCommand } from "citty";
@@ -71,7 +73,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
71
73
  async function handleSdkError(err, outOpts, out) {
72
74
  const { CurviateError } = await import("@curviate/sdk");
73
75
  if (err instanceof CurviateError) {
74
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
76
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
75
77
  renderError(err, outOpts, out);
76
78
  process.exit(getExitCode(err.code));
77
79
  }
package/dist/cli.js CHANGED
@@ -1,9 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ parseBetaFlag,
4
+ setBetaOverride
5
+ } from "./chunk-PKSKQ3LN.js";
2
6
  import {
3
7
  GLOBAL_FLAGS,
4
8
  STDIN_SENTINEL,
5
9
  restoreLiteralDashes
6
- } from "./chunk-AHYUM2XQ.js";
10
+ } from "./chunk-SKJNLN37.js";
7
11
 
8
12
  // src/cli.ts
9
13
  import { defineCommand } from "citty";
@@ -274,15 +278,23 @@ async function dispatch(root, rawArgs) {
274
278
  await runMain(root, { rawArgs });
275
279
  return;
276
280
  }
277
- if (rawArgs.length === 1 && rawArgs[0] === "--version") {
281
+ const versionProbe = parseBetaFlag(rawArgs);
282
+ const versionArgs = versionProbe.ok ? versionProbe.rest : rawArgs;
283
+ if (versionArgs.length === 1 && versionArgs[0] === "--version") {
278
284
  const meta = await resolveValue(root.meta ?? {});
279
285
  if (meta.version) {
280
286
  process.stdout.write(meta.version + "\n");
281
287
  }
282
288
  process.exit(0);
283
289
  }
290
+ const beta = parseBetaFlag(rawArgs);
291
+ if (!beta.ok) {
292
+ usageError(beta.error);
293
+ }
294
+ setBetaOverride(beta.ok ? beta.value : void 0);
295
+ const argsAfterBeta = beta.ok ? beta.rest : rawArgs;
284
296
  try {
285
- const { leaf, leafArgs } = await resolveLeaf(root, rawArgs);
297
+ const { leaf, leafArgs } = await resolveLeaf(root, argsAfterBeta);
286
298
  if (hasEmptyFields(leafArgs)) {
287
299
  usageError("--fields must not be empty.");
288
300
  }
@@ -335,28 +347,30 @@ var main = defineCommand({
335
347
  // Subcommand registry, names and descriptions are static for help rendering;
336
348
  // the handler implementation is loaded lazily on first invocation.
337
349
  subCommands: {
338
- login: () => import("./login-KNNEN4HP.js").then((m) => m.loginCommand),
339
- config: () => import("./config-5HB2J3RY.js").then((m) => m.configCommand),
350
+ setup: () => import("./setup-YV5PVIU5.js").then((m) => m.setupCommand),
351
+ doctor: () => import("./doctor-KSLZNAKH.js").then((m) => m.doctorCommand),
352
+ login: () => import("./login-3OAUY7TG.js").then((m) => m.loginCommand),
353
+ config: () => import("./config-FUHT23SX.js").then((m) => m.configCommand),
340
354
  // ---------------------------------------------------------------------------
341
355
  // Noun groups, lazy-loaded on first invocation.
342
356
  // ---------------------------------------------------------------------------
343
- profile: () => import("./profile-72V55PZM.js").then((m) => m.profileCommand),
344
- company: () => import("./company-ZT65QZ6F.js").then((m) => m.companyCommand),
345
- job: () => import("./job-NUT4QMH2.js").then((m) => m.jobCommand),
346
- connect: () => import("./connect-57AUN33D.js").then((m) => m.connectCommand),
347
- search: () => import("./search-QCXTK33P.js").then((m) => m.searchCommand),
348
- inbox: () => import("./inbox-ZRFIFOEP.js").then((m) => m.inboxCommand),
349
- inboxes: () => import("./inboxes-XQ2B6X3Q.js").then((m) => m.inboxesCommand),
350
- message: () => import("./message-KMNRUD4H.js").then((m) => m.messageCommand),
351
- post: () => import("./post-FXAANNUB.js").then((m) => m.postCommand),
352
- comment: () => import("./comment-BLG4WHST.js").then((m) => m.commentCommand),
353
- account: () => import("./account-5KGM6EPR.js").then((m) => m.accountCommand),
354
- webhook: () => import("./webhook-D4QRWF7W.js").then((m) => m.webhookCommand),
355
- "sales-nav": () => import("./sales-nav-BALVVD35.js").then((m) => m.salesNavCommand),
356
- recruiter: () => import("./recruiter-JUNB5AUR.js").then((m) => m.recruiterCommand),
357
- group: () => import("./group-DYC2NX5M.js").then((m) => m.groupCommand),
358
- feed: () => import("./feed-3AWI2URQ.js").then((m) => m.feedCommand),
359
- notification: () => import("./notification-LEM57IBY.js").then((m) => m.notificationCommand)
357
+ profile: () => import("./profile-4BXLUYMH.js").then((m) => m.profileCommand),
358
+ company: () => import("./company-RLU5SHUO.js").then((m) => m.companyCommand),
359
+ job: () => import("./job-WPWIAVQY.js").then((m) => m.jobCommand),
360
+ connect: () => import("./connect-63NUITEZ.js").then((m) => m.connectCommand),
361
+ search: () => import("./search-M3R35BIB.js").then((m) => m.searchCommand),
362
+ inbox: () => import("./inbox-GIPLWRHQ.js").then((m) => m.inboxCommand),
363
+ inboxes: () => import("./inboxes-ECGEMDH7.js").then((m) => m.inboxesCommand),
364
+ message: () => import("./message-JQL2XABC.js").then((m) => m.messageCommand),
365
+ post: () => import("./post-2HI6KL73.js").then((m) => m.postCommand),
366
+ comment: () => import("./comment-6JI4Q6QY.js").then((m) => m.commentCommand),
367
+ account: () => import("./account-DZRX4YOK.js").then((m) => m.accountCommand),
368
+ webhook: () => import("./webhook-3TEYA3B2.js").then((m) => m.webhookCommand),
369
+ "sales-nav": () => import("./sales-nav-MJAMCSBO.js").then((m) => m.salesNavCommand),
370
+ recruiter: () => import("./recruiter-OUXQ5XYU.js").then((m) => m.recruiterCommand),
371
+ group: () => import("./group-ZIIWI7JV.js").then((m) => m.groupCommand),
372
+ feed: () => import("./feed-PAWXR56T.js").then((m) => m.feedCommand),
373
+ notification: () => import("./notification-URSGC7OR.js").then((m) => m.notificationCommand)
360
374
  },
361
375
  async run() {
362
376
  const { runMain } = await import("citty");
@@ -2,37 +2,40 @@
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
4
  } from "./chunk-6P52Q2GK.js";
5
+ import {
6
+ pageDelayFromFlags,
7
+ streamAll
8
+ } from "./chunk-LKF5MZIP.js";
5
9
  import {
6
10
  AttachError,
7
11
  describeAttachment,
8
12
  readAttachment,
9
13
  toAttachmentPayload
10
14
  } from "./chunk-BGZW6B7G.js";
11
- import {
12
- pageDelayFromFlags,
13
- streamAll
14
- } from "./chunk-63X3VI3T.js";
15
15
  import "./chunk-UEAX6KUB.js";
16
- import {
17
- requireAccount
18
- } from "./chunk-GHT2DLZR.js";
19
16
  import {
20
17
  buildPreviewOutput
21
18
  } from "./chunk-R3VLWLVV.js";
22
19
  import {
23
- createClient,
20
+ requireAccount
21
+ } from "./chunk-A73TUZBK.js";
22
+ import {
24
23
  renderError,
25
24
  renderSuccess,
26
- renderUnexpectedError,
25
+ renderUnexpectedError
26
+ } from "./chunk-KQXYEQAD.js";
27
+ import {
28
+ createClient,
27
29
  resolveEffectiveConfig
28
- } from "./chunk-5KANHEBN.js";
29
- import "./chunk-KTY7R27U.js";
30
+ } from "./chunk-TD2ZIXFR.js";
31
+ import "./chunk-PKSKQ3LN.js";
32
+ import "./chunk-X3YWBMBC.js";
33
+ import "./chunk-TQJ77SL4.js";
30
34
  import {
31
35
  GLOBAL_FLAGS,
32
36
  WRITE_SINGLE_FLAGS,
33
37
  resolveTextOrStdin
34
- } from "./chunk-AHYUM2XQ.js";
35
- import "./chunk-2OG6M6ME.js";
38
+ } from "./chunk-SKJNLN37.js";
36
39
 
37
40
  // src/commands/comment.ts
38
41
  import { defineCommand } from "citty";
@@ -66,7 +69,7 @@ function buildListQuery(flags) {
66
69
  async function handleSdkError(err, outOpts, out) {
67
70
  const { CurviateError } = await import("@curviate/sdk");
68
71
  if (err instanceof CurviateError) {
69
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
72
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
70
73
  renderError(err, outOpts, out);
71
74
  process.exit(getExitCode(err.code));
72
75
  }
@@ -1,13 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- sentAsNotice
4
- } from "./chunk-TAOXJNQN.js";
5
- import "./chunk-HOQ7EUHJ.js";
6
- import {
7
- AttachError,
8
- readAttachment,
9
- toAttachmentPayload
10
- } from "./chunk-BGZW6B7G.js";
11
2
  import {
12
3
  reencodeInvitableFollowers,
13
4
  reencodeInviteTokenItem,
@@ -20,31 +11,43 @@ import {
20
11
  import {
21
12
  pageDelayFromFlags,
22
13
  streamAll
23
- } from "./chunk-63X3VI3T.js";
14
+ } from "./chunk-LKF5MZIP.js";
15
+ import {
16
+ sentAsNotice
17
+ } from "./chunk-Y3H55OSY.js";
24
18
  import "./chunk-UWO2D4HW.js";
19
+ import "./chunk-HOQ7EUHJ.js";
20
+ import {
21
+ AttachError,
22
+ readAttachment,
23
+ toAttachmentPayload
24
+ } from "./chunk-BGZW6B7G.js";
25
25
  import {
26
26
  resolveIdentifier
27
27
  } from "./chunk-UEAX6KUB.js";
28
- import {
29
- requireAccount
30
- } from "./chunk-GHT2DLZR.js";
31
28
  import {
32
29
  buildPreviewOutput
33
30
  } from "./chunk-R3VLWLVV.js";
34
31
  import {
35
- createClient,
32
+ requireAccount
33
+ } from "./chunk-A73TUZBK.js";
34
+ import {
36
35
  renderError,
37
36
  renderSuccess,
38
- renderUnexpectedError,
37
+ renderUnexpectedError
38
+ } from "./chunk-KQXYEQAD.js";
39
+ import {
40
+ createClient,
39
41
  resolveEffectiveConfig
40
- } from "./chunk-5KANHEBN.js";
41
- import "./chunk-KTY7R27U.js";
42
+ } from "./chunk-TD2ZIXFR.js";
43
+ import "./chunk-PKSKQ3LN.js";
44
+ import "./chunk-X3YWBMBC.js";
45
+ import "./chunk-TQJ77SL4.js";
42
46
  import {
43
47
  GLOBAL_FLAGS,
44
48
  WRITE_FLAGS,
45
49
  resolveTextOrStdin
46
- } from "./chunk-AHYUM2XQ.js";
47
- import "./chunk-2OG6M6ME.js";
50
+ } from "./chunk-SKJNLN37.js";
48
51
 
49
52
  // src/commands/company.ts
50
53
  import { defineCommand } from "citty";
@@ -85,7 +88,7 @@ async function resolveCompanyId(ns, raw) {
85
88
  async function handleSdkError(err, outOpts, out) {
86
89
  const { CurviateError } = await import("@curviate/sdk");
87
90
  if (err instanceof CurviateError) {
88
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
91
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
89
92
  renderError(err, outOpts, out);
90
93
  process.exit(getExitCode(err.code));
91
94
  }
@@ -696,7 +699,7 @@ var companyChatsCommand = defineCommand({
696
699
  var companyChatCommand = defineCommand({
697
700
  meta: {
698
701
  name: "chat",
699
- description: "Retrieve one conversation from a company page's admin inbox. Admin-gated. Beta."
702
+ description: "Retrieve one conversation from a company page's admin inbox. Admin-gated."
700
703
  },
701
704
  args: {
702
705
  ...GLOBAL_FLAGS,
@@ -781,7 +784,7 @@ var companyMessageCommand = defineCommand({
781
784
  var companySearchChatsCommand = defineCommand({
782
785
  meta: {
783
786
  name: "search-chats",
784
- description: "Search or filter a company page's admin inbox. Exactly one mode per call: free-text <query>, --topic, or --unread; mutually exclusive, enforced server-side. Admin-gated."
787
+ description: "Search or filter a company page's admin inbox. Exactly one mode per call: free-text <query>, --topic, or --unread; mutually exclusive, enforced server-side. Admin-gated. Beta."
785
788
  },
786
789
  args: {
787
790
  ...GLOBAL_FLAGS,
@@ -6,10 +6,10 @@ import {
6
6
  renameProfile,
7
7
  setActiveProfile,
8
8
  updateProfileField
9
- } from "./chunk-KTY7R27U.js";
9
+ } from "./chunk-TQJ77SL4.js";
10
10
  import {
11
11
  GLOBAL_FLAGS
12
- } from "./chunk-AHYUM2XQ.js";
12
+ } from "./chunk-SKJNLN37.js";
13
13
 
14
14
  // src/commands/config.ts
15
15
  import { defineCommand } from "citty";
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- nearestSubcommand
4
- } from "./chunk-HOQ7EUHJ.js";
5
2
  import {
6
3
  slimInviteReceived,
7
4
  slimInviteReceivedItem,
@@ -11,29 +8,35 @@ import {
11
8
  import {
12
9
  pageDelayFromFlags,
13
10
  streamAll
14
- } from "./chunk-63X3VI3T.js";
11
+ } from "./chunk-LKF5MZIP.js";
12
+ import {
13
+ nearestSubcommand
14
+ } from "./chunk-HOQ7EUHJ.js";
15
15
  import {
16
16
  resolveIdentifier
17
17
  } from "./chunk-UEAX6KUB.js";
18
- import {
19
- requireAccount
20
- } from "./chunk-GHT2DLZR.js";
21
18
  import {
22
19
  buildPreviewOutput
23
20
  } from "./chunk-R3VLWLVV.js";
24
21
  import {
25
- createClient,
22
+ requireAccount
23
+ } from "./chunk-A73TUZBK.js";
24
+ import {
26
25
  renderError,
27
26
  renderSuccess,
28
- renderUnexpectedError,
27
+ renderUnexpectedError
28
+ } from "./chunk-KQXYEQAD.js";
29
+ import {
30
+ createClient,
29
31
  resolveEffectiveConfig
30
- } from "./chunk-5KANHEBN.js";
31
- import "./chunk-KTY7R27U.js";
32
+ } from "./chunk-TD2ZIXFR.js";
33
+ import "./chunk-PKSKQ3LN.js";
34
+ import "./chunk-X3YWBMBC.js";
35
+ import "./chunk-TQJ77SL4.js";
32
36
  import {
33
37
  GLOBAL_FLAGS,
34
38
  WRITE_FLAGS
35
- } from "./chunk-AHYUM2XQ.js";
36
- import "./chunk-2OG6M6ME.js";
39
+ } from "./chunk-SKJNLN37.js";
37
40
 
38
41
  // src/commands/connect.ts
39
42
  import { defineCommand } from "citty";
@@ -83,7 +86,7 @@ async function runConnectSend(client, flags, out) {
83
86
  } catch (err) {
84
87
  const { CurviateError } = await import("@curviate/sdk");
85
88
  if (err instanceof CurviateError) {
86
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
89
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
87
90
  renderError(err, outOpts, out);
88
91
  process.exit(getExitCode(err.code));
89
92
  }
@@ -121,7 +124,7 @@ async function runConnectSent(client, flags, out) {
121
124
  } catch (err) {
122
125
  const { CurviateError } = await import("@curviate/sdk");
123
126
  if (err instanceof CurviateError) {
124
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
127
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
125
128
  renderError(err, outOpts, out);
126
129
  process.exit(getExitCode(err.code));
127
130
  }
@@ -159,7 +162,7 @@ async function runConnectReceived(client, flags, out) {
159
162
  } catch (err) {
160
163
  const { CurviateError } = await import("@curviate/sdk");
161
164
  if (err instanceof CurviateError) {
162
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
165
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
163
166
  renderError(err, outOpts, out);
164
167
  process.exit(getExitCode(err.code));
165
168
  }
@@ -188,7 +191,7 @@ async function runConnectAccept(client, flags, out) {
188
191
  } catch (err) {
189
192
  const { CurviateError } = await import("@curviate/sdk");
190
193
  if (err instanceof CurviateError) {
191
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
194
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
192
195
  renderError(err, outOpts, out);
193
196
  process.exit(getExitCode(err.code));
194
197
  }
@@ -217,7 +220,7 @@ async function runConnectDecline(client, flags, out) {
217
220
  } catch (err) {
218
221
  const { CurviateError } = await import("@curviate/sdk");
219
222
  if (err instanceof CurviateError) {
220
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
223
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
221
224
  renderError(err, outOpts, out);
222
225
  process.exit(getExitCode(err.code));
223
226
  }
@@ -246,7 +249,7 @@ async function runConnectCancel(client, flags, out) {
246
249
  } catch (err) {
247
250
  const { CurviateError } = await import("@curviate/sdk");
248
251
  if (err instanceof CurviateError) {
249
- const { getExitCode } = await import("./exit-codes-U5CHA6FT.js");
252
+ const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
250
253
  renderError(err, outOpts, out);
251
254
  process.exit(getExitCode(err.code));
252
255
  }