@curviate/cli 0.46.0 → 0.47.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.
- package/CHANGELOG.md +43 -0
- package/README.md +33 -0
- package/dist/{account-YVUERVO2.js → account-RFJ63QYL.js} +25 -21
- package/dist/{chunk-BGZW6B7G.js → chunk-5I6JJJIV.js} +1 -0
- package/dist/{chunk-76E3O6HY.js → chunk-76SWLAZ6.js} +13 -0
- package/dist/{chunk-DGIDAO2H.js → chunk-ERBYEC5P.js} +1 -1
- package/dist/{chunk-LD6WPZZM.js → chunk-FXYK2GTO.js} +4 -4
- package/dist/{chunk-2FECYCAC.js → chunk-PD2I5TYC.js} +2 -2
- package/dist/{chunk-FXF5FF3W.js → chunk-V3MVOVQT.js} +2 -1
- package/dist/cli.js +21 -20
- package/dist/{comment-BKGVJYS2.js → comment-MCXE7B7V.js} +6 -6
- package/dist/{company-F2AZTDPK.js → company-EUUN372H.js} +6 -6
- package/dist/{connect-TX6PT7NV.js → connect-2AL7XVJO.js} +9 -9
- package/dist/{doctor-USTZQ75D.js → doctor-WPYI7X2T.js} +2 -2
- package/dist/draft-G65DVXT7.js +458 -0
- package/dist/{exit-codes-TMAIV7EM.js → exit-codes-AW6KHDDN.js} +1 -1
- package/dist/{feed-ANBPRGFQ.js → feed-HV24WME4.js} +4 -4
- package/dist/{group-HFF7LDDQ.js → group-HADXNVJW.js} +4 -4
- package/dist/{inbox-XQMGW6RT.js → inbox-G3EE54OB.js} +4 -4
- package/dist/{inboxes-CILMIVVD.js → inboxes-237XOBTP.js} +4 -4
- package/dist/{job-TOJDDJ2P.js → job-LIN6RWD7.js} +4 -4
- package/dist/{message-WCBNBPAJ.js → message-U2O2JQSW.js} +5 -5
- package/dist/{notification-CJ3LEHFL.js → notification-3VG32LWM.js} +4 -4
- package/dist/{post-OQWJRL4B.js → post-ECDK2KJL.js} +6 -6
- package/dist/{profile-GT6ZD37M.js → profile-JOHS6SDW.js} +10 -10
- package/dist/{recruiter-ZKWG6QG3.js → recruiter-7VXEIXN3.js} +5 -5
- package/dist/{sales-nav-WV3YHYD6.js → sales-nav-K4BMBH7R.js} +5 -5
- package/dist/{search-VAZEQ2WJ.js → search-C2UYO6PI.js} +12 -12
- package/dist/{setup-GGXMHXAF.js → setup-GYEZFDEN.js} +2 -2
- package/dist/{webhook-HBME6K76.js → webhook-KCOQOH7D.js} +14 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,49 @@ a new command or flag is a minor; a breaking command/flag/exit-code change is a
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.47.0] - 2026-10-07
|
|
12
|
+
|
|
13
|
+
Requires `@curviate/sdk` 0.42.0.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **`webhook create --source post`** (scheduled-post results: `post.published`,
|
|
18
|
+
`post.publish_failed`). Like `messaging` and `user`, it requires `--account-ids`.
|
|
19
|
+
- **`curviate draft`**: `list`, `get`, `create`, `update`, `delete`, `publish`.
|
|
20
|
+
A Draft is a stored, editable, unpublished post; with `--schedule-at` (ISO 8601
|
|
21
|
+
with an offset, passed to the API unchanged) Curviate publishes it at that time.
|
|
22
|
+
`update --unschedule` cancels a schedule. `--account` is never defaulted from
|
|
23
|
+
config: a Draft without one has no account yet. `list --status` takes a comma
|
|
24
|
+
list of `draft`, `scheduled`, `failed`, `published` (`published` lists publish
|
|
25
|
+
records, not Drafts), with `--account` (an `acc_` id or `none`), `--from`,
|
|
26
|
+
`--to`, `--order` and `--all`.
|
|
27
|
+
- **`--attach <file>`** on `draft create` and `draft update` (repeatable). Files up
|
|
28
|
+
to 5 MiB go inline in the request; larger ones use the upload route, in the
|
|
29
|
+
order given. `update --attach` appends and keeps existing files.
|
|
30
|
+
An image over 5 MiB (the API's image cap) is refused with exit 2 before any
|
|
31
|
+
request, so a failed upload cannot leave a half-made Draft behind.
|
|
32
|
+
- **Exit codes** for the six new API codes: `DRAFT_LIMIT_REACHED`,
|
|
33
|
+
`MEDIA_QUOTA_EXCEEDED`, `ACCOUNT_REQUIRED`, `DRAFT_NOT_PUBLISHABLE` and
|
|
34
|
+
`SCHEDULE_CONFLICT` exit 2; `DRAFT_PUBLISHING` exits 7.
|
|
35
|
+
|
|
36
|
+
## [0.46.1] - 2026-10-04
|
|
37
|
+
|
|
38
|
+
Requires `@curviate/sdk` 0.41.0.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- **`account link --account-id` refuses an empty or blank value.** `--account-id ""`
|
|
43
|
+
(for instance `--account-id "$ACC"` with `ACC` unset) used to open a NEW connect,
|
|
44
|
+
and `--account-id " "` sent a reconnect with a blank id. Both now exit 2 before
|
|
45
|
+
any request, and the message says to pass an `acc_...` id or omit the flag.
|
|
46
|
+
- **A blank `<account_id>` positional is refused.** `account get|update|disconnect`
|
|
47
|
+
and `account checkpoint solve|poll|request` with an empty or whitespace-only id
|
|
48
|
+
used to send it to the server (`/v1/accounts/%20%20`, or `account_id: " "` in a
|
|
49
|
+
body). They now exit 2 before any request.
|
|
50
|
+
- **`webhook update --account-ids ""` is refused.** It was silently dropped, so the
|
|
51
|
+
update went through without the change. An empty or blank list now exits 2 before
|
|
52
|
+
any request, as `webhook create` already did.
|
|
53
|
+
|
|
11
54
|
## [0.46.0] - 2026-10-03
|
|
12
55
|
|
|
13
56
|
Requires `@curviate/sdk` 0.41.0.
|
package/README.md
CHANGED
|
@@ -267,6 +267,39 @@ curviate company posts 112013061 --limit 5 --account acc_1 --json
|
|
|
267
267
|
curviate company jobs 112013061 --all --account acc_1 --json # streams every page
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
+
## Drafts and scheduled posts
|
|
271
|
+
|
|
272
|
+
A Draft is a stored, editable, unpublished post. Give it an account and `--schedule-at` and Curviate publishes it at that time. Drafts are tenant-wide: `--account` is optional and is never defaulted from your config, so a Draft you create without it has no account yet. `curviate post create` still publishes immediately and does not schedule.
|
|
273
|
+
|
|
274
|
+
### 1. Draft a post, schedule it, change your mind
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
curviate draft create "Three things we learned shipping our first agent integration." --account acc_1 --schedule-at 2026-10-12T09:00:00+02:00 --json
|
|
278
|
+
curviate draft update drf_1 --unschedule --json # back to a plain Draft
|
|
279
|
+
curviate draft publish drf_1 --json # or publish now: prints the post id
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
`--schedule-at` is an ISO 8601 time with an offset, 5 minutes to 365 days ahead, passed to the API unchanged. Two scheduled Drafts on one account must be at least 5 minutes apart.
|
|
283
|
+
|
|
284
|
+
### 2. Attach media
|
|
285
|
+
|
|
286
|
+
```sh
|
|
287
|
+
curviate draft create "Launch day." --account acc_1 --attach shot1.png --attach shot2.png --json
|
|
288
|
+
curviate draft update drf_1 --attach demo.pdf --json # appends; existing files stay
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
Up to 20 images (JPEG, PNG, GIF, WEBP, each up to 5 MiB), or one MP4 video, or one PDF (each up to 50 MiB), never mixed. An image over 5 MiB is refused before anything is sent. Files up to 5 MiB go inline in the request; larger ones are uploaded separately, in the order you gave them.
|
|
292
|
+
|
|
293
|
+
### 3. List what is queued, and what went out
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
curviate draft list --status scheduled --account acc_1 --order asc --json
|
|
297
|
+
curviate draft list --status published --from 2026-10-01T00:00:00Z --json # publish records, not Drafts
|
|
298
|
+
curviate draft list --account none --all --json # Drafts with no account, every page
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
A scheduled post that fails to publish becomes a `failed` Draft with a `failure` code; any `draft update` on it clears the failure. Failed `outcome_unknown` means the post may be live: check the account's posts before retrying.
|
|
302
|
+
|
|
270
303
|
## Sales Navigator
|
|
271
304
|
|
|
272
305
|
Sales Navigator commands (`curviate sales-nav ...`) are **beta**: this surface has not been
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
resolveEffectiveConfig,
|
|
26
26
|
streamAll,
|
|
27
27
|
writeNdjsonItem
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-V3MVOVQT.js";
|
|
29
29
|
import {
|
|
30
30
|
AUTH_NEEDED
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-76SWLAZ6.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-
|
|
202
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
203
203
|
renderError(err, outOpts, out);
|
|
204
204
|
process.exit(getExitCode(err));
|
|
205
205
|
}
|
|
@@ -237,9 +237,19 @@ async function runAccountList(client, flags, out) {
|
|
|
237
237
|
await handleError(err, outOpts, out);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
+
function requireAccountId(flags, out) {
|
|
241
|
+
const id = flags["account-id"];
|
|
242
|
+
if (id === void 0 || id.trim() === "") {
|
|
243
|
+
out.stderr.write(
|
|
244
|
+
"error: account_id is required and was missing or blank. Pass an acc_... id (`curviate account list`; for a checkpoint, the provisional account_id from the 202 response).\n"
|
|
245
|
+
);
|
|
246
|
+
process.exit(2);
|
|
247
|
+
}
|
|
248
|
+
return id;
|
|
249
|
+
}
|
|
240
250
|
async function runAccountGet(client, flags, out) {
|
|
241
251
|
rejectAllOnNonPaginated(flags.all, out);
|
|
242
|
-
const accountId = flags
|
|
252
|
+
const accountId = requireAccountId(flags, out);
|
|
243
253
|
const outOpts = resolveOutputOpts(flags);
|
|
244
254
|
try {
|
|
245
255
|
const result = await client.accounts.get(accountId);
|
|
@@ -619,6 +629,12 @@ async function runAccountLink(client, flags, out, io = {}) {
|
|
|
619
629
|
out.stderr.write("error: --auth-method is required for account link (credentials | cookie).\n");
|
|
620
630
|
process.exit(2);
|
|
621
631
|
}
|
|
632
|
+
if (flags["account-id"] !== void 0 && flags["account-id"].trim() === "") {
|
|
633
|
+
out.stderr.write(
|
|
634
|
+
"error: --account-id was given an empty value. Pass the acc_... id of the account to reconnect (`curviate account list`), or omit the flag entirely to connect a new account.\n"
|
|
635
|
+
);
|
|
636
|
+
process.exit(2);
|
|
637
|
+
}
|
|
622
638
|
checkCredentialConflicts(flags, out);
|
|
623
639
|
if (!flags.preview && flags["auth-method"] === "cookie" && !flags["user-agent"]) {
|
|
624
640
|
out.stderr.write(
|
|
@@ -785,7 +801,7 @@ async function runAccountConnectSessionPoll(client, flags, out, io = {}) {
|
|
|
785
801
|
process.exit(AUTH_NEEDED);
|
|
786
802
|
}
|
|
787
803
|
async function runAccountUpdate(client, flags, out) {
|
|
788
|
-
const accountId = flags
|
|
804
|
+
const accountId = requireAccountId(flags, out);
|
|
789
805
|
const body = {};
|
|
790
806
|
if (flags.metadata !== void 0) {
|
|
791
807
|
let parsed;
|
|
@@ -850,7 +866,7 @@ async function runAccountUpdate(client, flags, out) {
|
|
|
850
866
|
}
|
|
851
867
|
}
|
|
852
868
|
async function runAccountDisconnect(client, flags, out) {
|
|
853
|
-
const accountId = flags
|
|
869
|
+
const accountId = requireAccountId(flags, out);
|
|
854
870
|
const outOpts = resolveOutputOpts(flags);
|
|
855
871
|
if (flags.preview) {
|
|
856
872
|
const preview = buildPreviewOutput({
|
|
@@ -869,15 +885,11 @@ async function runAccountDisconnect(client, flags, out) {
|
|
|
869
885
|
}
|
|
870
886
|
}
|
|
871
887
|
async function runAccountCheckpointSolve(client, flags, out) {
|
|
872
|
-
if (!flags["account-id"]) {
|
|
873
|
-
out.stderr.write("error: account_id is required (the provisional account_id from the 202 response).\n");
|
|
874
|
-
process.exit(2);
|
|
875
|
-
}
|
|
876
888
|
if (!flags.code) {
|
|
877
889
|
out.stderr.write("error: --code is required (the OTP / 2FA code).\n");
|
|
878
890
|
process.exit(2);
|
|
879
891
|
}
|
|
880
|
-
const accountId = flags
|
|
892
|
+
const accountId = requireAccountId(flags, out);
|
|
881
893
|
const body = { code: flags.code };
|
|
882
894
|
const outOpts = resolveOutputOpts(flags);
|
|
883
895
|
if (flags.preview) {
|
|
@@ -905,11 +917,7 @@ async function runAccountCheckpointSolve(client, flags, out) {
|
|
|
905
917
|
}
|
|
906
918
|
}
|
|
907
919
|
async function runAccountCheckpointRequest(client, flags, out) {
|
|
908
|
-
|
|
909
|
-
out.stderr.write("error: account_id is required (the provisional account_id from the 202 response).\n");
|
|
910
|
-
process.exit(2);
|
|
911
|
-
}
|
|
912
|
-
const accountId = flags["account-id"] ?? "";
|
|
920
|
+
const accountId = requireAccountId(flags, out);
|
|
913
921
|
const outOpts = resolveOutputOpts(flags);
|
|
914
922
|
const body = flags.challenge !== void 0 ? { challenge: flags.challenge } : void 0;
|
|
915
923
|
if (flags.preview) {
|
|
@@ -963,11 +971,7 @@ async function runCheckpointPollWaitLoop(client, accountId, ctx) {
|
|
|
963
971
|
}
|
|
964
972
|
}
|
|
965
973
|
async function runAccountCheckpointPoll(client, flags, out, io = {}) {
|
|
966
|
-
|
|
967
|
-
out.stderr.write("error: account_id is required (the provisional account_id from the 202 response).\n");
|
|
968
|
-
process.exit(2);
|
|
969
|
-
}
|
|
970
|
-
const accountId = flags["account-id"] ?? "";
|
|
974
|
+
const accountId = requireAccountId(flags, out);
|
|
971
975
|
const outOpts = resolveOutputOpts(flags);
|
|
972
976
|
if (flags.preview) {
|
|
973
977
|
const preview = buildPreviewOutput({
|
|
@@ -20,6 +20,16 @@ var EXIT_CODE_MAP = {
|
|
|
20
20
|
// a country). `account link` refuses this itself before any request with the
|
|
21
21
|
// same exit, so the API's 400 and the CLI's own guard read alike.
|
|
22
22
|
CONNECTION_LOCATION_REQUIRED: 2,
|
|
23
|
+
// 2: Draft refusals the caller fixes by changing the request, none of which
|
|
24
|
+
// clears on an unchanged retry: the bucket is full (`DRAFT_LIMIT_REACHED`),
|
|
25
|
+
// the media quota is used (`MEDIA_QUOTA_EXCEEDED`), the Draft has no account
|
|
26
|
+
// (`ACCOUNT_REQUIRED`), a content gap (`DRAFT_NOT_PUBLISHABLE`), or another
|
|
27
|
+
// scheduled Draft is within 5 minutes (`SCHEDULE_CONFLICT`).
|
|
28
|
+
DRAFT_LIMIT_REACHED: 2,
|
|
29
|
+
MEDIA_QUOTA_EXCEEDED: 2,
|
|
30
|
+
ACCOUNT_REQUIRED: 2,
|
|
31
|
+
DRAFT_NOT_PUBLISHABLE: 2,
|
|
32
|
+
SCHEDULE_CONFLICT: 2,
|
|
23
33
|
// Not found (4)
|
|
24
34
|
RESOURCE_NOT_FOUND: 4,
|
|
25
35
|
ACCOUNT_NOT_FOUND: 4,
|
|
@@ -37,6 +47,9 @@ var EXIT_CODE_MAP = {
|
|
|
37
47
|
// Transient platform (7)
|
|
38
48
|
PLATFORM_ERROR: 7,
|
|
39
49
|
LINKEDIN_SERVICE_UNAVAILABLE: 7,
|
|
50
|
+
// 7: a publish of this Draft is in flight (or being settled); read it again
|
|
51
|
+
// in a few seconds. A busy state, not a malformed request.
|
|
52
|
+
DRAFT_PUBLISHING: 7,
|
|
40
53
|
// Account / connection state (8)
|
|
41
54
|
ACCOUNT_RESTRICTED: 8,
|
|
42
55
|
RESOURCE_ACCESS_RESTRICTED: 8,
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
AttachError,
|
|
12
12
|
readAttachment,
|
|
13
13
|
toAttachmentPayload
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5I6JJJIV.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeChatId,
|
|
17
17
|
resolveIdentifier
|
|
18
18
|
} from "./chunk-UEAX6KUB.js";
|
|
19
19
|
import {
|
|
20
20
|
requireAccount
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PD2I5TYC.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-
|
|
32
|
+
} from "./chunk-V3MVOVQT.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-
|
|
108
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
109
109
|
renderError(err, outOpts, out);
|
|
110
110
|
process.exit(getExitCode(err));
|
|
111
111
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V3MVOVQT.js";
|
|
5
5
|
import {
|
|
6
6
|
getExitCode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-76SWLAZ6.js";
|
|
8
8
|
import {
|
|
9
9
|
assertNoStdinPlaceholder
|
|
10
10
|
} from "./chunk-TC4ZPUWI.js";
|
|
@@ -116,7 +116,8 @@ function detectUnknownFields(data, fields) {
|
|
|
116
116
|
});
|
|
117
117
|
return unknown.length > 0 ? { unknown, available } : null;
|
|
118
118
|
}
|
|
119
|
-
function renderSuccess(
|
|
119
|
+
function renderSuccess(rawData, opts, out) {
|
|
120
|
+
const data = rawData === void 0 ? {} : rawData;
|
|
120
121
|
const json = isJsonMode(opts);
|
|
121
122
|
const fields = parseFields(opts.fields);
|
|
122
123
|
const slimmed = !opts.verbose && opts.slim ? opts.slim(data) : data;
|
package/dist/cli.js
CHANGED
|
@@ -27,30 +27,31 @@ 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-
|
|
31
|
-
doctor: () => import("./doctor-
|
|
30
|
+
setup: () => import("./setup-GYEZFDEN.js").then((m) => m.setupCommand),
|
|
31
|
+
doctor: () => import("./doctor-WPYI7X2T.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-
|
|
38
|
-
company: () => import("./company-
|
|
39
|
-
job: () => import("./job-
|
|
40
|
-
connect: () => import("./connect-
|
|
41
|
-
search: () => import("./search-
|
|
42
|
-
inbox: () => import("./inbox-
|
|
43
|
-
inboxes: () => import("./inboxes-
|
|
44
|
-
message: () => import("./message-
|
|
45
|
-
post: () => import("./post-
|
|
46
|
-
comment: () => import("./comment-
|
|
47
|
-
account: () => import("./account-
|
|
48
|
-
webhook: () => import("./webhook-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
profile: () => import("./profile-JOHS6SDW.js").then((m) => m.profileCommand),
|
|
38
|
+
company: () => import("./company-EUUN372H.js").then((m) => m.companyCommand),
|
|
39
|
+
job: () => import("./job-LIN6RWD7.js").then((m) => m.jobCommand),
|
|
40
|
+
connect: () => import("./connect-2AL7XVJO.js").then((m) => m.connectCommand),
|
|
41
|
+
search: () => import("./search-C2UYO6PI.js").then((m) => m.searchCommand),
|
|
42
|
+
inbox: () => import("./inbox-G3EE54OB.js").then((m) => m.inboxCommand),
|
|
43
|
+
inboxes: () => import("./inboxes-237XOBTP.js").then((m) => m.inboxesCommand),
|
|
44
|
+
message: () => import("./message-U2O2JQSW.js").then((m) => m.messageCommand),
|
|
45
|
+
post: () => import("./post-ECDK2KJL.js").then((m) => m.postCommand),
|
|
46
|
+
comment: () => import("./comment-MCXE7B7V.js").then((m) => m.commentCommand),
|
|
47
|
+
account: () => import("./account-RFJ63QYL.js").then((m) => m.accountCommand),
|
|
48
|
+
webhook: () => import("./webhook-KCOQOH7D.js").then((m) => m.webhookCommand),
|
|
49
|
+
draft: () => import("./draft-G65DVXT7.js").then((m) => m.draftCommand),
|
|
50
|
+
"sales-nav": () => import("./sales-nav-K4BMBH7R.js").then((m) => m.salesNavCommand),
|
|
51
|
+
recruiter: () => import("./recruiter-7VXEIXN3.js").then((m) => m.recruiterCommand),
|
|
52
|
+
group: () => import("./group-HADXNVJW.js").then((m) => m.groupCommand),
|
|
53
|
+
feed: () => import("./feed-HV24WME4.js").then((m) => m.feedCommand),
|
|
54
|
+
notification: () => import("./notification-3VG32LWM.js").then((m) => m.notificationCommand)
|
|
54
55
|
},
|
|
55
56
|
async run() {
|
|
56
57
|
const { runMain } = await import("citty");
|
|
@@ -447,7 +448,7 @@ async function dispatch(root, rawArgs) {
|
|
|
447
448
|
}
|
|
448
449
|
const { CurviateError } = await import("@curviate/sdk");
|
|
449
450
|
if (err instanceof CurviateError) {
|
|
450
|
-
const { getExitCode } = await import("./exit-codes-
|
|
451
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
451
452
|
process.exit(getExitCode(err));
|
|
452
453
|
}
|
|
453
454
|
process.exit(code === "EARG" ? 2 : 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ERBYEC5P.js";
|
|
5
5
|
import {
|
|
6
6
|
AttachError,
|
|
7
7
|
describeAttachment,
|
|
8
8
|
readAttachment,
|
|
9
9
|
toAttachmentPayload
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5I6JJJIV.js";
|
|
11
11
|
import "./chunk-UEAX6KUB.js";
|
|
12
12
|
import {
|
|
13
13
|
requireAccount
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PD2I5TYC.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-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-V3MVOVQT.js";
|
|
31
|
+
import "./chunk-76SWLAZ6.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-
|
|
69
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
70
70
|
renderError(err, outOpts, out);
|
|
71
71
|
process.exit(getExitCode(err));
|
|
72
72
|
}
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
} from "./chunk-LCGXJGPB.js";
|
|
11
11
|
import {
|
|
12
12
|
sentAsNotice
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FXYK2GTO.js";
|
|
14
14
|
import "./chunk-UWO2D4HW.js";
|
|
15
15
|
import "./chunk-HOQ7EUHJ.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachError,
|
|
18
18
|
readAttachment,
|
|
19
19
|
toAttachmentPayload
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5I6JJJIV.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveIdentifier
|
|
23
23
|
} from "./chunk-UEAX6KUB.js";
|
|
24
24
|
import {
|
|
25
25
|
requireAccount
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PD2I5TYC.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-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-V3MVOVQT.js";
|
|
45
|
+
import "./chunk-76SWLAZ6.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-
|
|
89
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
90
90
|
renderError(err, outOpts, out);
|
|
91
91
|
process.exit(getExitCode(err));
|
|
92
92
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-UEAX6KUB.js";
|
|
14
14
|
import {
|
|
15
15
|
requireAccount
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PD2I5TYC.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-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-V3MVOVQT.js";
|
|
33
|
+
import "./chunk-76SWLAZ6.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-
|
|
85
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.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-
|
|
124
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.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-
|
|
163
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.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-
|
|
192
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.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-
|
|
221
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.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-
|
|
250
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
251
251
|
renderError(err, outOpts, out);
|
|
252
252
|
process.exit(getExitCode(err));
|
|
253
253
|
}
|