@curviate/cli 0.59.0 → 0.60.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 +9 -0
- package/dist/{account-EUHYWIDH.js → account-BGFQH7MZ.js} +10 -10
- package/dist/{analytics-SQQIMSLF.js → analytics-SLZF5CUV.js} +5 -5
- package/dist/{beta-consent-DFS7YMZR.js → beta-consent-WT5HRWAP.js} +4 -4
- package/dist/{billing-3FRIQFY3.js → billing-EY6SVYLK.js} +5 -5
- package/dist/{chunk-5AJS2V4T.js → chunk-2NYGMKWI.js} +1 -1
- package/dist/{chunk-QRTMRTKA.js → chunk-3WXR6WEO.js} +8 -7
- package/dist/{chunk-7CSXYRSO.js → chunk-4MGTH4FK.js} +7 -7
- package/dist/{chunk-F3FEY4D5.js → chunk-65UHJVXP.js} +2 -2
- package/dist/{chunk-R2MIDSMB.js → chunk-7HOSWMH2.js} +5 -5
- package/dist/{chunk-VKHAL6WT.js → chunk-AJVFJAOR.js} +1 -1
- package/dist/{chunk-EWSOIFG2.js → chunk-DLYVUDNF.js} +1 -1
- package/dist/{chunk-JXDEV33Z.js → chunk-EIPQUQK2.js} +1 -1
- package/dist/{chunk-HJ7YY4HE.js → chunk-ER5Y2SS5.js} +2 -2
- package/dist/{chunk-ZC4S4B32.js → chunk-GZMSX7CA.js} +3 -3
- package/dist/{chunk-HG2G5OAZ.js → chunk-KQMTZIXC.js} +2 -2
- package/dist/{chunk-TNLIV3SW.js → chunk-L6MTOKXI.js} +8 -8
- package/dist/{chunk-72PYX57P.js → chunk-OEMFSUEI.js} +14 -14
- package/dist/{chunk-KD2XY7RS.js → chunk-RQ6KL2ZU.js} +1 -1
- package/dist/cli.js +29 -29
- package/dist/{comment-DA6XPY4F.js → comment-MIH3WEH2.js} +7 -7
- package/dist/{company-IWVNUBWS.js → company-H6UDF2HF.js} +8 -8
- package/dist/{company-record-ZJMW3NC6.js → company-record-L6DI7B6I.js} +10 -10
- package/dist/{config-P4HKPOCW.js → config-C757QH2N.js} +2 -2
- package/dist/{connect-AELFEVR7.js → connect-GRYHFCF3.js} +12 -12
- package/dist/{contact-FHN3A7MJ.js → contact-5LYCPTQH.js} +8 -8
- package/dist/{contact-groups-HNZTN6I6.js → contact-groups-GZML25CV.js} +16 -16
- package/dist/{contact-import-PJFRLCHR.js → contact-import-VM4RS475.js} +9 -9
- package/dist/core-3ZYU463V.js +46 -0
- package/dist/{do-not-contact-KSH36NMT.js → do-not-contact-AWDCWC2D.js} +16 -16
- package/dist/{doctor-BEO4E227.js → doctor-ZW6M7YXP.js} +4 -4
- package/dist/{domain-HF3WXWUT.js → domain-CW7G5NS2.js} +5 -5
- package/dist/{draft-2KBRHBBH.js → draft-VUNBMMTW.js} +10 -10
- package/dist/{enrollment-QPE54QQN.js → enrollment-R2T4GBXR.js} +10 -10
- package/dist/{examples-5FJS47QF.js → examples-G4IC5TJU.js} +1 -1
- package/dist/{exit-codes-LQDMGDII.js → exit-codes-MMGNZCJ5.js} +1 -1
- package/dist/{export-J4JQRE2A.js → export-IYXSEGKH.js} +4 -4
- package/dist/{feed-PHF2ROIT.js → feed-3MMVHTB4.js} +6 -6
- package/dist/{group-SLXDOCHV.js → group-24VZ4XIM.js} +6 -6
- package/dist/{inbox-IDILZLPC.js → inbox-7N2JKEAC.js} +6 -6
- package/dist/{inboxes-QLP5PWTS.js → inboxes-EPD3JMO3.js} +6 -6
- package/dist/{incoming-XG6IBPU6.js → incoming-T2PZOUBL.js} +8 -8
- package/dist/{job-WUYHK6OX.js → job-UD4FBCE2.js} +7 -7
- package/dist/{login-3RIU257N.js → login-GMNDQODN.js} +2 -2
- package/dist/{mailbox-CJRCYZGL.js → mailbox-XC73FZQ6.js} +13 -12
- package/dist/{message-EBVO4ZZI.js → message-XFAFZZGT.js} +6 -6
- package/dist/{motion-7XQ3E4GI.js → motion-C7WTTC6E.js} +20 -20
- package/dist/{network-X5XL44GB.js → network-T2H7S3GL.js} +6 -6
- package/dist/{notification-QNGHG5EO.js → notification-GMFRGQLD.js} +6 -6
- package/dist/{notifications-MOLNELNE.js → notifications-55U3PGJN.js} +6 -6
- package/dist/{post-XYSFN5OP.js → post-LZ74DJDI.js} +7 -7
- package/dist/{profile-7LJLU4Y5.js → profile-HCT4JEIA.js} +12 -12
- package/dist/{recruiter-ALQNIRYR.js → recruiter-UWZM3UMU.js} +7 -7
- package/dist/{sales-nav-HYZXNYCC.js → sales-nav-ZA7CBHRD.js} +6 -6
- package/dist/{search-DNCPCFRR.js → search-ZPJLTGM4.js} +15 -15
- package/dist/{setup-QI5FW6VD.js → setup-L7EC5V73.js} +4 -4
- package/dist/{signal-J2TLIT47.js → signal-JVUGQOEV.js} +5 -5
- package/dist/{team-PPPCJ5HT.js → team-45R6ZOR7.js} +5 -5
- package/dist/{tier-NFWWW34H.js → tier-LQ5UYRUE.js} +4 -4
- package/dist/{unibox-52C7G5LK.js → unibox-RGMMGAFR.js} +19 -19
- package/dist/{webhook-J3JYMSY2.js → webhook-5MNKEBOQ.js} +5 -5
- package/package.json +2 -2
- package/dist/core-R7R44CVA.js +0 -46
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-65UHJVXP.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2NYGMKWI.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-QLKGOIWS.js";
|
|
33
33
|
import {
|
|
34
34
|
DESCRIPTIONS
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GZMSX7CA.js";
|
|
36
36
|
import "./chunk-ZYURL5VK.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/incoming.ts
|
|
@@ -106,7 +106,7 @@ var FIELDS = {
|
|
|
106
106
|
var createCmd = defineCommand({
|
|
107
107
|
meta: {
|
|
108
108
|
name: "create",
|
|
109
|
-
description: "Create an incoming event: a private URL, printed once, that any tool posts to. Treat the URL like a password. Needs
|
|
109
|
+
description: "Create an incoming event: a private URL, printed once, that any tool posts to. Treat the URL like a password. Needs a subscription.",
|
|
110
110
|
risk: "write",
|
|
111
111
|
rules: {
|
|
112
112
|
changes: "Creates the URL; posts to it move the matching Enrollments waiting for the event.",
|
|
@@ -171,7 +171,7 @@ var deleteCmd = defineCommand({
|
|
|
171
171
|
var rotateCmd = defineCommand({
|
|
172
172
|
meta: {
|
|
173
173
|
name: "rotate",
|
|
174
|
-
description: "Replace the URL's secret: the new URL is printed once and the old one stops working at once. Needs
|
|
174
|
+
description: "Replace the URL's secret: the new URL is printed once and the old one stops working at once. Needs a subscription.",
|
|
175
175
|
risk: "high",
|
|
176
176
|
rules: {
|
|
177
177
|
changes: "A new URL; posts to the old one answer 404.",
|
|
@@ -191,7 +191,7 @@ var rotateCmd = defineCommand({
|
|
|
191
191
|
var captureCmd = defineCommand({
|
|
192
192
|
meta: {
|
|
193
193
|
name: "capture",
|
|
194
|
-
description: "Capture the next post as the sample: its field paths (never its values' meaning) become the shape the match paths and Sequences are checked against. Needs
|
|
194
|
+
description: "Capture the next post as the sample: its field paths (never its values' meaning) become the shape the match paths and Sequences are checked against. Needs a subscription.",
|
|
195
195
|
risk: "write",
|
|
196
196
|
rules: { changes: "The next post's shape replaces the captured sample.", visible_to: "Your Team.", budget_rows: [], retry: "Safe to repeat: it waits for the next post.", undo: "Capture again." },
|
|
197
197
|
errors: EDITOR,
|
|
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
|
|
|
209
209
|
meta: { name: "incoming", description: DESCRIPTIONS.incoming },
|
|
210
210
|
subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
|
|
211
211
|
async run() {
|
|
212
|
-
const { showHelp } = await import("./examples-
|
|
212
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3ZPRFUX.js";
|
|
13
13
|
import {
|
|
14
14
|
slimJob
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EIPQUQK2.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KQMTZIXC.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2NYGMKWI.js";
|
|
33
33
|
import {
|
|
34
34
|
renderError,
|
|
35
35
|
renderSuccess,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
createClient,
|
|
41
41
|
downloadBinary,
|
|
42
42
|
resolveEffectiveConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
44
44
|
import {
|
|
45
45
|
GLOBAL_FLAGS,
|
|
46
46
|
READ_SINGLE_FLAGS,
|
|
@@ -49,9 +49,9 @@ import {
|
|
|
49
49
|
} from "./chunk-QLKGOIWS.js";
|
|
50
50
|
import {
|
|
51
51
|
DESCRIPTIONS
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-GZMSX7CA.js";
|
|
53
53
|
import "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-DLYVUDNF.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/job.ts
|
|
57
57
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function requireEnum(value, allowed, flag, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
baseUrlProblem,
|
|
7
7
|
writeProfile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
9
9
|
import {
|
|
10
10
|
GLOBAL_FLAGS
|
|
11
11
|
} from "./chunk-QLKGOIWS.js";
|
|
12
12
|
import {
|
|
13
13
|
DESCRIPTIONS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GZMSX7CA.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultReadStdin,
|
|
17
17
|
resolveTextOrStdin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
confirmMoney
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4MGTH4FK.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveSecret
|
|
7
7
|
} from "./chunk-DENWYJK2.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
outputOpts,
|
|
12
12
|
rootClient,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-65UHJVXP.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
readablePage,
|
|
27
27
|
rejectPaginationModifiersWithoutAll,
|
|
28
28
|
streamAll
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2NYGMKWI.js";
|
|
30
30
|
import {
|
|
31
31
|
renderSuccess,
|
|
32
32
|
writeNdjsonItem
|
|
33
33
|
} from "./chunk-QM57YDJE.js";
|
|
34
34
|
import "./chunk-IB6ARI3R.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
READ_SINGLE_FLAGS,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-QLKGOIWS.js";
|
|
42
42
|
import {
|
|
43
43
|
DESCRIPTIONS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GZMSX7CA.js";
|
|
45
45
|
import {
|
|
46
46
|
readFileFlag
|
|
47
47
|
} from "./chunk-JKOQX46J.js";
|
|
@@ -49,7 +49,7 @@ import "./chunk-FDJMAF7D.js";
|
|
|
49
49
|
import "./chunk-ZYURL5VK.js";
|
|
50
50
|
import {
|
|
51
51
|
getExitCode
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DLYVUDNF.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/mailbox.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -172,7 +172,7 @@ function priceLine(p) {
|
|
|
172
172
|
const head = p.charged === "never" ? `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: nothing is charged for your Team.` : `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: ${money(p.amount ?? 0, cur)} ${per} (${money(p.unit_amount ?? 0, cur)} each)${p.plus_tax ? ", plus tax where it applies" : ""}.`;
|
|
173
173
|
const when = p.charged === "when_records_found" ? ` Charged the day the records are found at your domain${p.prorated ? ", for the rest of your billing year" : ""}, then each year.` : p.charged === "with_next_invoice" ? ` Added to your next invoice${p.prorated ? ", prorated for the rest of this month" : ""}, then each month.` : "";
|
|
174
174
|
const waits = p.charge_waits_for === "payment" ? " The charge waits until your Team's open payment is settled." : p.charge_waits_for === "subscription" ? " The charge waits until your Team has a subscription." : "";
|
|
175
|
-
const closed = p.orderable === false ? ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "a Team on a trial
|
|
175
|
+
const closed = p.orderable === false ? ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "available once your Team pays (a Team on a trial, without a paid plan, or with a payment past due)" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.` : "";
|
|
176
176
|
return head + when + waits + closed;
|
|
177
177
|
}
|
|
178
178
|
async function runQuote(c, f) {
|
|
@@ -231,6 +231,7 @@ async function runBuy(c, f) {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
function purchaseNote(order) {
|
|
234
|
+
if (order.charge_unknown === true) return "We are checking whether this order was charged. If it was, the charge is given back in full.";
|
|
234
235
|
if (order.state === "provisioning") return `The Mailboxes are being set up. If that fails, the charge is undone in full and the order ends cancelled (host_failed). Read it again later: curviate mailbox purchase get ${String(order.id ?? "<id>")}. Do not order again meanwhile.`;
|
|
235
236
|
if (order.state === "cancelled" && order.reason === "host_failed") return "Setting up these Mailboxes failed, so the charge was undone in full. Nothing to retry.";
|
|
236
237
|
return null;
|
|
@@ -627,7 +628,7 @@ var buyCmd = defineCommand({
|
|
|
627
628
|
errors: {
|
|
628
629
|
SPENDING_CAP_REACHED: "the order would pass the Team's cap on Mailboxes from Curviate; only an Owner raises it, in the dashboard. Nothing was ordered.",
|
|
629
630
|
INSUFFICIENT_ROLE: "only a Team Owner orders.",
|
|
630
|
-
MAILBOX_PURCHASE_TRIAL: "a Team on a trial
|
|
631
|
+
MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, never subscribed, or with a payment past due. Buy a seat or update the payment method, then order. Nothing was charged.",
|
|
631
632
|
MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
|
|
632
633
|
DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or an order; name another domain.",
|
|
633
634
|
DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
|
|
@@ -658,7 +659,7 @@ var quoteCmd = defineCommand({
|
|
|
658
659
|
risk: "read",
|
|
659
660
|
errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
|
|
660
661
|
output: [
|
|
661
|
-
"`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial
|
|
662
|
+
"`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan or a payment past due; sales_paused), `charge_waits_for` (payment, subscription). The same in one sentence on stderr."
|
|
662
663
|
],
|
|
663
664
|
seeAlso: ["curviate mailbox buy", "curviate billing cap"],
|
|
664
665
|
examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
|
|
@@ -685,7 +686,7 @@ var purchaseListCmd = defineCommand({
|
|
|
685
686
|
var purchaseGetCmd = defineCommand({
|
|
686
687
|
meta: {
|
|
687
688
|
name: "get",
|
|
688
|
-
description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits for the records; provisioning means charged and being set up; active is done; cancelled carries its reason (requested, expired, host_failed: setting up failed and the charge was undone in full). Every role reads. One API call.",
|
|
689
|
+
description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits for the records; provisioning means charged and being set up; active is done; cancelled carries its reason (requested, expired, host_failed: setting up failed and the charge was undone in full). charge_unknown is true while Curviate cannot tell whether the order's charge was made: it is being checked, and a charge that was made is given back in full; do not order again. Every role reads. One API call.",
|
|
689
690
|
risk: "read",
|
|
690
691
|
errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
|
|
691
692
|
seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
|
|
@@ -749,7 +750,7 @@ var purchaseCmd = defineCommand({
|
|
|
749
750
|
meta: { name: "purchase", description: "Your Team's orders of Mailboxes from Curviate: list, get, check (look the records up now), cancel (an order still waiting for its records)." },
|
|
750
751
|
subCommands: { list: purchaseListCmd, get: purchaseGetCmd, check: purchaseCheckCmd, cancel: purchaseCancelCmd },
|
|
751
752
|
async run() {
|
|
752
|
-
const { showHelp } = await import("./examples-
|
|
753
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
753
754
|
await showHelp(purchaseCmd, ["curviate", "mailbox", "purchase"]);
|
|
754
755
|
}
|
|
755
756
|
});
|
|
@@ -757,7 +758,7 @@ var mailboxCommand = defineCommand({
|
|
|
757
758
|
meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
|
|
758
759
|
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, quote: quoteCmd, buy: buyCmd, purchase: purchaseCmd },
|
|
759
760
|
async run() {
|
|
760
|
-
const { showHelp } = await import("./examples-
|
|
761
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
761
762
|
await showHelp(mailboxCommand, ["curviate", "mailbox"]);
|
|
762
763
|
}
|
|
763
764
|
});
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7HOSWMH2.js";
|
|
17
17
|
import "./chunk-UWO2D4HW.js";
|
|
18
18
|
import "./chunk-UEAX6KUB.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-JY26SUNH.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-KQMTZIXC.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-2NYGMKWI.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
26
26
|
import "./chunk-QLKGOIWS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-GZMSX7CA.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DLYVUDNF.js";
|
|
31
31
|
export {
|
|
32
32
|
guardBareMessageForm,
|
|
33
33
|
messageCommand,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-JY26SUNH.js";
|
|
7
7
|
import {
|
|
8
8
|
sendInChunks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ER5Y2SS5.js";
|
|
10
10
|
import {
|
|
11
11
|
fail,
|
|
12
12
|
listFlag,
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-65UHJVXP.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2NYGMKWI.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
36
|
} from "./chunk-QM57YDJE.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-QLKGOIWS.js";
|
|
44
44
|
import {
|
|
45
45
|
DESCRIPTIONS
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GZMSX7CA.js";
|
|
47
47
|
import {
|
|
48
48
|
documentSchema,
|
|
49
49
|
parseDocument,
|
|
@@ -742,7 +742,7 @@ var CAMPAIGN_DOC = `{
|
|
|
742
742
|
var createCmd = defineCommand({
|
|
743
743
|
meta: {
|
|
744
744
|
name: "create",
|
|
745
|
-
description: "Create a Campaign from a Campaign file, always as a draft: nothing runs until `curviate campaign start`. The file is checked before anything is sent, its Sequence as `curviate campaign lint` checks it. settings.priority (normal or prioritized) sets the Campaign's weight in each Account's budgets: 1 or 1.5, on every budget; every Campaign with work due still progresses and no limit is passed. Needs
|
|
745
|
+
description: "Create a Campaign from a Campaign file, always as a draft: nothing runs until `curviate campaign start`. The file is checked before anything is sent, its Sequence as `curviate campaign lint` checks it. settings.priority (normal or prioritized) sets the Campaign's weight in each Account's budgets: 1 or 1.5, on every budget; every Campaign with work due still progresses and no limit is passed. Needs a subscription.",
|
|
746
746
|
risk: "write",
|
|
747
747
|
rules: {
|
|
748
748
|
changes: "Creates a draft Campaign. No Lead is enrolled and nothing reaches LinkedIn until it is started.",
|
|
@@ -751,7 +751,7 @@ var createCmd = defineCommand({
|
|
|
751
751
|
retry: "A retry creates a second draft: list with `curviate campaign list --status draft` first.",
|
|
752
752
|
undo: "`curviate campaign delete <campaign_id>` deletes a draft."
|
|
753
753
|
},
|
|
754
|
-
errors: { ...SEQUENCE_ERRORS, ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need
|
|
754
|
+
errors: { ...SEQUENCE_ERRORS, ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need a subscription." },
|
|
755
755
|
seeAlso: ["curviate campaign lint", "curviate campaign init", "curviate campaign preview"],
|
|
756
756
|
document: "campaign create",
|
|
757
757
|
examples: [
|
|
@@ -770,7 +770,7 @@ EOF`
|
|
|
770
770
|
var updateCmd = defineCommand({
|
|
771
771
|
meta: {
|
|
772
772
|
name: "update",
|
|
773
|
-
description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). --one-lead-per-company enrolls at most one Lead per company (a Lead whose company already has one in the Campaign is skipped, same_company, naming the Lead kept; one with no known company never is); --no-one-lead-per-company turns it off; either works with or without --file. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs
|
|
773
|
+
description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). --one-lead-per-company enrolls at most one Lead per company (a Lead whose company already has one in the Campaign is skipped, same_company, naming the Lead kept; one with no known company never is); --no-one-lead-per-company turns it off; either works with or without --file. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs a subscription.",
|
|
774
774
|
risk: "write",
|
|
775
775
|
rules: {
|
|
776
776
|
changes: "Changes the Campaign. A running Campaign picks the change up at each Enrollment's next Step.",
|
|
@@ -820,7 +820,7 @@ var lifecycleCmd = (name, meta) => defineCommand({
|
|
|
820
820
|
run: online(lifecycle(name))
|
|
821
821
|
});
|
|
822
822
|
var startCmd = lifecycleCmd("start", {
|
|
823
|
-
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. With an email step it needs `curviate campaign check` at the current Sequence revision, and is refused while Leads have no email address unless --skip-missing-email. Needs
|
|
823
|
+
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. With an email step it needs `curviate campaign check` at the current Sequence revision, and is refused while Leads have no email address unless --skip-missing-email. Needs a subscription.",
|
|
824
824
|
risk: "high",
|
|
825
825
|
rules: {
|
|
826
826
|
changes: "The Campaign starts enrolling its Leads and running its Steps from its sending Accounts, paced on its schedule.",
|
|
@@ -834,7 +834,7 @@ var startCmd = lifecycleCmd("start", {
|
|
|
834
834
|
CAMPAIGN_NOT_STARTABLE: "a gap stops it (Lead list, sending Account, Sequence, with an email step the Lead check and Leads without an address); each is listed.",
|
|
835
835
|
CAMPAIGN_STATUS_CONFLICT: "only a draft starts.",
|
|
836
836
|
...ROLE_ERRORS,
|
|
837
|
-
TIER_REQUIRED: "Campaigns need
|
|
837
|
+
TIER_REQUIRED: "Campaigns need a subscription."
|
|
838
838
|
},
|
|
839
839
|
seeAlso: ["curviate campaign check", "curviate campaign preview", "curviate campaign pause"]
|
|
840
840
|
});
|
|
@@ -852,7 +852,7 @@ var pauseCmd = lifecycleCmd("pause", {
|
|
|
852
852
|
seeAlso: SEE_LIFECYCLE
|
|
853
853
|
});
|
|
854
854
|
var resumeCmd = lifecycleCmd("resume", {
|
|
855
|
-
description: "Resume a paused Campaign. Runs the start checks again, the Lead check and --skip-missing-email included. Needs
|
|
855
|
+
description: "Resume a paused Campaign. Runs the start checks again, the Lead check and --skip-missing-email included. Needs a subscription.",
|
|
856
856
|
risk: "high",
|
|
857
857
|
rules: {
|
|
858
858
|
changes: "The Campaign's Steps run again from its sending Accounts.",
|
|
@@ -862,7 +862,7 @@ var resumeCmd = lifecycleCmd("resume", {
|
|
|
862
862
|
undo: "`curviate campaign pause <campaign_id>`; what was sent stays sent.",
|
|
863
863
|
blast_radius: "Every open Enrollment of the Campaign."
|
|
864
864
|
},
|
|
865
|
-
errors: { CAMPAIGN_NOT_STARTABLE: "a gap stops it; each is listed.", CAMPAIGN_STATUS_CONFLICT: "only a paused Campaign resumes.", ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need
|
|
865
|
+
errors: { CAMPAIGN_NOT_STARTABLE: "a gap stops it; each is listed.", CAMPAIGN_STATUS_CONFLICT: "only a paused Campaign resumes.", ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need a subscription." },
|
|
866
866
|
seeAlso: SEE_LIFECYCLE
|
|
867
867
|
});
|
|
868
868
|
var archiveCmd = lifecycleCmd("archive", {
|
|
@@ -946,7 +946,7 @@ var placementCmd = defineCommand({
|
|
|
946
946
|
var membershipCmd = (kind) => defineCommand({
|
|
947
947
|
meta: {
|
|
948
948
|
name: kind,
|
|
949
|
-
description: kind === "add" ? "Enroll Leads directly, on an Account of the Campaign (--account) or one Curviate assigns. Every exclusion and filter applies; each Lead's outcome says what happened. Sent in requests of up to 1000 ids, in order. Needs
|
|
949
|
+
description: kind === "add" ? "Enroll Leads directly, on an Account of the Campaign (--account) or one Curviate assigns. Every exclusion and filter applies; each Lead's outcome says what happened. Sent in requests of up to 1000 ids, in order. Needs a subscription." : "Take Leads out of the Campaign: their open Enrollments end (removed). Sent in requests of up to 1000 ids, in order.",
|
|
950
950
|
risk: "high",
|
|
951
951
|
rules: kind === "add" ? {
|
|
952
952
|
changes: "Each queued Lead becomes a pending Enrollment; a running Campaign reaches it on its schedule.",
|
|
@@ -1013,7 +1013,7 @@ var initCmd = defineCommand({
|
|
|
1013
1013
|
var voiceClipUploadCmd = defineCommand({
|
|
1014
1014
|
meta: {
|
|
1015
1015
|
name: "upload",
|
|
1016
|
-
description: "Upload one audio file (MP3, WAV, M4A, WebM or Ogg) and print the clip: its `id` (vc_...) is the `clip_id` of a `voice.send` step. 1 to 120 seconds, up to 20 MiB, 100 uploads per Team per 24 hours. The file is converted once and the original is discarded. Nothing reaches LinkedIn. Needs
|
|
1016
|
+
description: "Upload one audio file (MP3, WAV, M4A, WebM or Ogg) and print the clip: its `id` (vc_...) is the `clip_id` of a `voice.send` step. 1 to 120 seconds, up to 20 MiB, 100 uploads per Team per 24 hours. The file is converted once and the original is discarded. Nothing reaches LinkedIn. Needs a subscription.",
|
|
1017
1017
|
risk: "write",
|
|
1018
1018
|
rules: {
|
|
1019
1019
|
changes: "Stores one converted clip for your Team. No Campaign changes and nothing is sent to anyone.",
|
|
@@ -1027,7 +1027,7 @@ var voiceClipUploadCmd = defineCommand({
|
|
|
1027
1027
|
VOICE_CLIP_INVALID: "the file is empty, is not audio, cannot be decoded, is under 1 second or is over 120 seconds; the message names the reason. A clip is never shortened.",
|
|
1028
1028
|
PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
|
|
1029
1029
|
RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
|
|
1030
|
-
TIER_REQUIRED: "Voice clips need
|
|
1030
|
+
TIER_REQUIRED: "Voice clips need a subscription.",
|
|
1031
1031
|
...ROLE_ERRORS
|
|
1032
1032
|
},
|
|
1033
1033
|
seeAlso: ["curviate campaign voice-clip get", "curviate campaign lint", "curviate campaign create"],
|
|
@@ -1056,14 +1056,14 @@ var voiceClipCommand = defineCommand({
|
|
|
1056
1056
|
meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
|
|
1057
1057
|
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
1058
1058
|
async run() {
|
|
1059
|
-
const { showHelp } = await import("./examples-
|
|
1059
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1060
1060
|
await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
1063
|
var attachmentUploadCmd = defineCommand({
|
|
1064
1064
|
meta: {
|
|
1065
1065
|
name: "upload",
|
|
1066
|
-
description: "Upload one file and print it: its `id` (cat_...) goes in an email step's `attachment_ids` (at most 10 a step, 20 MiB in total). Up to 20 MiB, 100 uploads per Team per 24 hours. Curviate reads the type from the file's bytes; executables, scripts, installers and macro-enabled Office files are refused. A link usually lands better than a file. Nothing is sent. Needs
|
|
1066
|
+
description: "Upload one file and print it: its `id` (cat_...) goes in an email step's `attachment_ids` (at most 10 a step, 20 MiB in total). Up to 20 MiB, 100 uploads per Team per 24 hours. Curviate reads the type from the file's bytes; executables, scripts, installers and macro-enabled Office files are refused. A link usually lands better than a file. Nothing is sent. Needs a subscription. The CLI reads the path here, on your machine, and streams it in one request; a file over 20 MiB is refused before it leaves (exit 2). Curviate never fetches a path or a URL. From a Microsoft sign-in Mailbox, files of about 2.2 MB in all go today; a step's files above that are refused at send (attachment_refused).",
|
|
1067
1067
|
risk: "write",
|
|
1068
1068
|
rules: {
|
|
1069
1069
|
changes: "Stores one file for your Team. No Campaign changes and nothing is sent to anyone.",
|
|
@@ -1077,7 +1077,7 @@ var attachmentUploadCmd = defineCommand({
|
|
|
1077
1077
|
UNSUPPORTED_MEDIA_TYPE: "an executable, a script, an installer, a shortcut, a disk image or a macro-enabled Office file; the message names the type. Nothing is stored.",
|
|
1078
1078
|
PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
|
|
1079
1079
|
RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
|
|
1080
|
-
TIER_REQUIRED: "Campaign attachments need
|
|
1080
|
+
TIER_REQUIRED: "Campaign attachments need a subscription.",
|
|
1081
1081
|
...ROLE_ERRORS
|
|
1082
1082
|
},
|
|
1083
1083
|
seeAlso: ["curviate campaign attachment get", "curviate campaign lint", "curviate campaign check"],
|
|
@@ -1106,7 +1106,7 @@ var attachmentCommand = defineCommand({
|
|
|
1106
1106
|
meta: { name: "attachment", description: DESCRIPTIONS.campaignAttachment },
|
|
1107
1107
|
subCommands: { upload: attachmentUploadCmd, get: attachmentGetCmd },
|
|
1108
1108
|
async run() {
|
|
1109
|
-
const { showHelp } = await import("./examples-
|
|
1109
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1110
1110
|
await showHelp(attachmentCommand, ["curviate", "campaign", "attachment"]);
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
@@ -1133,7 +1133,7 @@ var campaignCommand = defineCommand({
|
|
|
1133
1133
|
attachment: attachmentCommand
|
|
1134
1134
|
},
|
|
1135
1135
|
async run() {
|
|
1136
|
-
const { showHelp } = await import("./examples-
|
|
1136
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1137
1137
|
await showHelp(campaignCommand, ["curviate", "campaign"]);
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-65UHJVXP.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2NYGMKWI.js";
|
|
31
31
|
import {
|
|
32
32
|
renderSuccess,
|
|
33
33
|
writeNdjsonItem
|
|
34
34
|
} from "./chunk-QM57YDJE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
WRITE_SINGLE_FLAGS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-QLKGOIWS.js";
|
|
41
41
|
import {
|
|
42
42
|
DESCRIPTIONS
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GZMSX7CA.js";
|
|
44
44
|
import "./chunk-ZYURL5VK.js";
|
|
45
45
|
|
|
46
46
|
// src/commands/network.ts
|
|
@@ -200,7 +200,7 @@ var exportCmd = defineCommand({
|
|
|
200
200
|
var resyncCmd = defineCommand({
|
|
201
201
|
meta: {
|
|
202
202
|
name: "resync",
|
|
203
|
-
description: "Start a fresh walk of an Account's Connections now, or of every Account you may operate with --all. Once per Account per day; pages are read inside the Account's read window. Answers queued, cooldown, in_progress or paused per Account: answers, not errors. Needs
|
|
203
|
+
description: "Start a fresh walk of an Account's Connections now, or of every Account you may operate with --all. Once per Account per day; pages are read inside the Account's read window. Answers queued, cooldown, in_progress or paused per Account: answers, not errors. Needs a subscription.",
|
|
204
204
|
risk: "high",
|
|
205
205
|
rules: {
|
|
206
206
|
changes: "Opens a sync walk; Curviate reads the Account's Connections from LinkedIn over the next hours.",
|
|
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
|
|
|
225
225
|
meta: { name: "network", description: DESCRIPTIONS.network },
|
|
226
226
|
subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
|
|
227
227
|
async run() {
|
|
228
|
-
const { showHelp } = await import("./examples-
|
|
228
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
229
229
|
await showHelp(networkCommand, ["curviate", "network"]);
|
|
230
230
|
}
|
|
231
231
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-Q3ZPRFUX.js";
|
|
6
6
|
import {
|
|
7
7
|
requireAccount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KQMTZIXC.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readablePage,
|
|
17
17
|
rejectPaginationModifiersWithoutAll,
|
|
18
18
|
streamAll
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2NYGMKWI.js";
|
|
20
20
|
import {
|
|
21
21
|
renderError,
|
|
22
22
|
renderSuccess,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
createClient,
|
|
28
28
|
resolveEffectiveConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
30
30
|
import {
|
|
31
31
|
GLOBAL_FLAGS,
|
|
32
32
|
WRITE_SINGLE_FLAGS,
|
|
@@ -34,9 +34,9 @@ import {
|
|
|
34
34
|
} from "./chunk-QLKGOIWS.js";
|
|
35
35
|
import {
|
|
36
36
|
DESCRIPTIONS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GZMSX7CA.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-DLYVUDNF.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/notification.ts
|
|
42
42
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-65UHJVXP.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
readablePage,
|
|
20
20
|
rejectPaginationModifiersWithoutAll,
|
|
21
21
|
streamAll
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2NYGMKWI.js";
|
|
23
23
|
import {
|
|
24
24
|
renderSuccess,
|
|
25
25
|
writeNdjsonItem
|
|
26
26
|
} from "./chunk-QM57YDJE.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-QLKGOIWS.js";
|
|
34
34
|
import {
|
|
35
35
|
DESCRIPTIONS
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GZMSX7CA.js";
|
|
37
37
|
import "./chunk-ZYURL5VK.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/notifications.ts
|
|
@@ -107,7 +107,7 @@ var update = (body) => async (c, f) => {
|
|
|
107
107
|
if (notFoundError) {
|
|
108
108
|
process.stderr.write(`error: ${notFound.length} of ${all.length} notifications were not found (not yours, or already gone): ${notFound.join(", ")}. The others were applied.
|
|
109
109
|
`);
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
111
111
|
process.exit(getExitCode(notFoundError));
|
|
112
112
|
}
|
|
113
113
|
};
|
|
@@ -227,7 +227,7 @@ var notificationsCommand = defineCommand({
|
|
|
227
227
|
meta: { name: "notification", description: DESCRIPTIONS.notification },
|
|
228
228
|
subCommands: { list: listCmd, count: countCmd, read: readCmd, "read-all": readAllCmd, archive: archiveCmd, unarchive: unarchiveCmd },
|
|
229
229
|
async run() {
|
|
230
|
-
const { showHelp } = await import("./examples-
|
|
230
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
231
231
|
await showHelp(notificationsCommand, ["curviate", "notification"]);
|
|
232
232
|
}
|
|
233
233
|
});
|