@curviate/cli 0.54.0 → 0.56.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 +57 -0
- package/README.md +35 -17
- package/dist/{account-DW5N5MJ6.js → account-ZF5NEMID.js} +132 -125
- package/dist/{analytics-T2K3OWVQ.js → analytics-M7JWS67A.js} +5 -5
- package/dist/{beta-consent-O736ONE7.js → beta-consent-4Q2LZZQC.js} +4 -4
- package/dist/{billing-NTBL32EX.js → billing-LYPSX5SR.js} +78 -6
- package/dist/{chunk-N76WNJ5T.js → chunk-7PLTQHNO.js} +1 -1
- package/dist/{chunk-N4IYTFIY.js → chunk-AMTKGO37.js} +1 -1
- package/dist/{chunk-ACKKHLUH.js → chunk-CRO7PJ4I.js} +2 -2
- package/dist/chunk-DENWYJK2.js +94 -0
- package/dist/{chunk-FBLCSVIU.js → chunk-EI64VFBE.js} +47 -47
- package/dist/{chunk-ENBIMEKS.js → chunk-IB6ARI3R.js} +1 -1
- package/dist/{chunk-Q57PZJLX.js → chunk-J4SFOFMT.js} +90 -88
- package/dist/{chunk-FUX3BRYP.js → chunk-JXDEV33Z.js} +1 -1
- package/dist/{chunk-5B4T6BMN.js → chunk-L3RJU7C3.js} +44 -44
- package/dist/{chunk-KXJJFHSD.js → chunk-MIOEYSBQ.js} +1 -1
- package/dist/{chunk-R4HS2MWM.js → chunk-MWVTFTWV.js} +15 -13
- package/dist/{chunk-QW5K5DTC.js → chunk-RDKTHFQ6.js} +25 -6
- package/dist/{chunk-62YAYAUI.js → chunk-RKNW4UX4.js} +51 -9
- package/dist/{chunk-V3HHYTBY.js → chunk-UOWOKEB2.js} +1 -1
- package/dist/{chunk-HOMRAZ6S.js → chunk-UWRWZG4N.js} +2 -2
- package/dist/{chunk-A3UNS44U.js → chunk-VEMK4MJM.js} +10 -10
- package/dist/{chunk-UFHT2KZG.js → chunk-XP6S6E55.js} +2 -2
- package/dist/cli.js +33 -25
- package/dist/{comment-ATVJOTWV.js → comment-D6RSZTVK.js} +8 -8
- package/dist/{company-BRKFROPE.js → company-3Z6PXGTW.js} +11 -11
- package/dist/{config-E223SS5K.js → config-VY5MCJMN.js} +2 -2
- package/dist/{connect-XVDQ5FTT.js → connect-G2RTLV7G.js} +15 -15
- package/dist/{contact-4HOUOVD7.js → contact-QSLJCBDE.js} +8 -8
- package/dist/{contact-groups-ENA3VGGL.js → contact-groups-OITAD73K.js} +85 -85
- package/dist/{contact-import-4EKVDFPV.js → contact-import-LT7BKESC.js} +10 -10
- package/dist/core-RFTNNB6P.js +46 -0
- package/dist/{do-not-contact-S2WGHSQL.js → do-not-contact-ZA7KS5WD.js} +59 -33
- package/dist/{doctor-OFIUGRUG.js → doctor-JQT3DO6G.js} +4 -4
- package/dist/{document-MDE2WJYX.js → document-H65EXU4L.js} +1 -1
- package/dist/domain-7EX4E34B.js +70 -0
- package/dist/{draft-DD3DTXBM.js → draft-7U6H4BPF.js} +4 -4
- package/dist/{enrollment-ESCHKQ5X.js → enrollment-AZ6XGVVL.js} +40 -38
- package/dist/{examples-KAMXHRLE.js → examples-IGQJCSNL.js} +2 -2
- package/dist/{exit-codes-CYQHN4NE.js → exit-codes-ZSOLAXQO.js} +1 -1
- package/dist/{export-GUAGB7TF.js → export-OYMQXL62.js} +5 -5
- package/dist/{feed-ZC4FY4BA.js → feed-M5D4SJW7.js} +6 -6
- package/dist/{group-42ZE7K3K.js → group-UTC3YBKE.js} +6 -6
- package/dist/{inbox-2YS7CTXH.js → inbox-VSGNHSLG.js} +9 -9
- package/dist/{inboxes-5RB3BGCQ.js → inboxes-23C2MJK4.js} +6 -6
- package/dist/{incoming-ATZN6JJA.js → incoming-QVPP32K7.js} +13 -13
- package/dist/{job-WD3Z3P3Q.js → job-ZHVFFRWE.js} +10 -10
- package/dist/{login-JQ57YHEJ.js → login-6OTNXEJZ.js} +4 -4
- package/dist/mailbox-HD2UXZCA.js +405 -0
- package/dist/{message-WGS2IIDC.js → message-PIV77W47.js} +7 -7
- package/dist/{motion-BRVBJJJP.js → motion-AHYF34DP.js} +224 -149
- package/dist/{network-CODIWCJQ.js → network-RJHJFZEY.js} +5 -5
- package/dist/{notification-RLVF4NLJ.js → notification-XGR4NT3S.js} +6 -6
- package/dist/{notifications-HGEHM5KW.js → notifications-BHRWSHPR.js} +6 -6
- package/dist/{post-3GH2IPO6.js → post-Z7AVDDKA.js} +8 -8
- package/dist/{profile-6RFJQMIB.js → profile-YZNBX2RP.js} +15 -15
- package/dist/{recruiter-GK3UNS62.js → recruiter-EXM4P7X7.js} +17 -17
- package/dist/{sales-nav-SLS3ABF4.js → sales-nav-CKDSEXV2.js} +15 -15
- package/dist/{search-45WRT5T3.js → search-B7FB6674.js} +17 -17
- package/dist/{setup-5QZOM2Q2.js → setup-VZVPLJ4V.js} +5 -5
- package/dist/{team-WM3RKOQ2.js → team-PYABBUHO.js} +6 -6
- package/dist/{tier-5AMLO5KE.js → tier-PRK4WQKR.js} +4 -4
- package/dist/{unibox-TTCF7YVO.js → unibox-ZNKX2EKL.js} +34 -34
- package/dist/{webhook-UCCCSKDO.js → webhook-V74EV4E2.js} +18 -18
- package/package.json +2 -2
- package/dist/core-6VDDV2NM.js +0 -46
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
online,
|
|
4
4
|
preview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J4SFOFMT.js";
|
|
6
6
|
import {
|
|
7
7
|
sendChunked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XP6S6E55.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UWRWZG4N.js";
|
|
15
15
|
import {
|
|
16
16
|
intFlag
|
|
17
17
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
27
27
|
import {
|
|
28
28
|
renderSuccess,
|
|
29
29
|
writeNdjsonItem
|
|
30
30
|
} from "./chunk-QM57YDJE.js";
|
|
31
31
|
import {
|
|
32
32
|
withWireNotes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7PLTQHNO.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
WRITE_SINGLE_FLAGS,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-QLKGOIWS.js";
|
|
39
39
|
import {
|
|
40
40
|
readFileFlag
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RKNW4UX4.js";
|
|
42
42
|
import {
|
|
43
43
|
isStdinToken
|
|
44
44
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -109,7 +109,7 @@ function split(text, format) {
|
|
|
109
109
|
} catch (err) {
|
|
110
110
|
usage(`--file: not valid JSON, at ${whereJson(text, err)}.`);
|
|
111
111
|
}
|
|
112
|
-
if (!Array.isArray(doc)) usage("--file: a JSON import is an array of objects, one per
|
|
112
|
+
if (!Array.isArray(doc)) usage("--file: a JSON import is an array of objects, one per Lead.");
|
|
113
113
|
objs = doc;
|
|
114
114
|
} else {
|
|
115
115
|
objs = text.split("\n").flatMap((line, i) => {
|
|
@@ -152,18 +152,18 @@ async function createChunk(c, body, rows, seen, k, n) {
|
|
|
152
152
|
const notes = {};
|
|
153
153
|
const started = Date.now();
|
|
154
154
|
try {
|
|
155
|
-
return readableObject(await withWireNotes(notes, () => c.
|
|
155
|
+
return readableObject(await withWireNotes(notes, () => c.leads.imports.create(body)));
|
|
156
156
|
} catch (err) {
|
|
157
157
|
if (!(err instanceof CurviateError)) throw err;
|
|
158
158
|
if (err.code === "RATE_LIMIT_TENANT") {
|
|
159
159
|
const wait = notes.retryAfterS ?? RETRY_DEFAULT_S;
|
|
160
160
|
const d = err.details;
|
|
161
|
-
const holder = typeof d?.import_id === "string" ? ` Import ${d.import_id} (started ${String(d.started_at)}) holds the Team's write lock: read it with \`curviate
|
|
161
|
+
const holder = typeof d?.import_id === "string" ? ` Import ${d.import_id} (started ${String(d.started_at)}) holds the Team's write lock: read it with \`curviate lead imports get ${d.import_id}\`.` : "";
|
|
162
162
|
if (wait > RETRY_AFTER_BOUND_S || sends >= MAX_SENDS) {
|
|
163
163
|
const why = wait > RETRY_AFTER_BOUND_S ? ` The API asked to wait ${wait} s, more than the ${RETRY_AFTER_BOUND_S} s the CLI waits.` : "";
|
|
164
164
|
throw new CurviateError({ code: err.code, message: `${err.message}${why} Nothing in this chunk was imported; send it again later.${holder}`, httpStatus: 429, userFixable: false, retryLikelyToSucceed: true, ...err.details ? { details: err.details } : {} });
|
|
165
165
|
}
|
|
166
|
-
say(`Import ${k} of ${n}: the Team has other
|
|
166
|
+
say(`Import ${k} of ${n}: the Team has other Lead writes running (nothing was imported); waiting ${wait} s, then sending it again.${holder}`);
|
|
167
167
|
await sleep(wait * 1e3);
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
@@ -180,17 +180,17 @@ async function recover(c, body, rows, seen, started, notes, err, k, n) {
|
|
|
180
180
|
let found;
|
|
181
181
|
for (let tries = 0; ; tries++) {
|
|
182
182
|
try {
|
|
183
|
-
const page = await c.
|
|
183
|
+
const page = await c.leads.imports.list({ limit: 20 });
|
|
184
184
|
found = (page.items ?? []).find(
|
|
185
185
|
(i) => !seen.includes(String(i.id)) && i.total_rows === rows && i.format === (body["csv"] !== void 0 ? "csv" : "rows") && (body["list_id"] === void 0 || i.list_id === body["list_id"]) && Date.parse(i.created_at ?? "") >= started - CLOCK_SKEW_MS
|
|
186
186
|
);
|
|
187
187
|
} catch {
|
|
188
|
-
throw fresh(`${err.message} The check for an import it made failed too: read \`curviate
|
|
188
|
+
throw fresh(`${err.message} The check for an import it made failed too: read \`curviate lead imports list\` before running this again, it may have been imported.`);
|
|
189
189
|
}
|
|
190
190
|
if (found || tries >= RELIST_TRIES) break;
|
|
191
191
|
await sleep(relistMs());
|
|
192
192
|
}
|
|
193
|
-
if (!found) throw fresh(`${err.message} No import from this request appeared within 30 s, so nothing was imported so far. If the API is only slow, one may still appear: read \`curviate
|
|
193
|
+
if (!found) throw fresh(`${err.message} No import from this request appeared within 30 s, so nothing was imported so far. If the API is only slow, one may still appear: read \`curviate lead imports list\` before running this again.`);
|
|
194
194
|
say(`Import ${k} of ${n}: the API did apply it. Import ${found.id} is ${found.status}${found.status === "completed" ? ` (${COUNTS.map((x) => `${x} ${found.counts?.[x] ?? 0}`).join(", ")})` : ""}.`);
|
|
195
195
|
return found;
|
|
196
196
|
}
|
|
@@ -225,12 +225,12 @@ async function runImport(c, f) {
|
|
|
225
225
|
const { header, chunks } = split(text, format);
|
|
226
226
|
const bodyOf = (rows) => ({ ...base, ...header !== void 0 ? { csv: [header, ...rows].join("\n") } : { rows } });
|
|
227
227
|
const total = chunks.reduce((n, x) => n + x.length, 0);
|
|
228
|
-
if (f.preview) return preview("
|
|
228
|
+
if (f.preview) return preview("leads.imports.create", chunks.length > 1 ? { imports: chunks.length, rows: total } : {}, bodyOf(chunks[0]));
|
|
229
229
|
const wait = !(f["no-wait"] === true || f.wait === false || f.async === true);
|
|
230
230
|
const poll = async (made) => {
|
|
231
231
|
let imp = made;
|
|
232
232
|
while (wait && imp.status !== "completed" && imp.status !== "failed") {
|
|
233
|
-
imp = readableObject(await c.
|
|
233
|
+
imp = readableObject(await c.leads.imports.get(String(imp.id)));
|
|
234
234
|
if (imp.status !== "completed" && imp.status !== "failed") await sleep(POLL_MS);
|
|
235
235
|
}
|
|
236
236
|
return imp;
|
|
@@ -247,7 +247,7 @@ async function runImport(c, f) {
|
|
|
247
247
|
at += rows.length;
|
|
248
248
|
done.push(imp);
|
|
249
249
|
if (imp.status === "failed") throw await failedImport(imp);
|
|
250
|
-
if (!wait && imp.status !== "completed") say(`Import ${done.length} of ${chunks.length}: ${imp.id} is ${imp.status}; read its progress with \`curviate
|
|
250
|
+
if (!wait && imp.status !== "completed") say(`Import ${done.length} of ${chunks.length}: ${imp.id} is ${imp.status}; read its progress with \`curviate lead imports get ${imp.id}\`.`);
|
|
251
251
|
return imp;
|
|
252
252
|
},
|
|
253
253
|
f,
|
|
@@ -271,7 +271,7 @@ async function skippedRows(c, imp) {
|
|
|
271
271
|
const rows = [];
|
|
272
272
|
let cursor;
|
|
273
273
|
do {
|
|
274
|
-
const page = await c.
|
|
274
|
+
const page = await c.leads.imports.rows(String(imp.id), { outcome: "skipped", limit: 100, ...cursor ? { cursor } : {} });
|
|
275
275
|
rows.push(...page.items ?? []);
|
|
276
276
|
cursor = page.cursor;
|
|
277
277
|
} while (cursor);
|
|
@@ -280,49 +280,49 @@ async function skippedRows(c, imp) {
|
|
|
280
280
|
var importCmd = defineCommand({
|
|
281
281
|
meta: {
|
|
282
282
|
name: "import",
|
|
283
|
-
description: `Import
|
|
283
|
+
description: `Import Leads from a CSV, JSON (an array of objects) or NDJSON file. The format comes from the extension; with --file - pass --format. A file above ${IMPORT_MAX_ROWS} rows or ${(IMPORT_MAX_BODY_BYTES / 1048576).toFixed(0)} MiB is split into several imports, run one after the other (a CSV's header is repeated), each awaited unless --async (or --no-wait); the first refused or failed import stops the run. Only the file's structure is checked here; the server skips bad rows and reports why. Re-importing merges: a Lead already there is updated or left as it is. If the request times out or the connection drops, the CLI looks up the Team's newest imports, again every 2 s for up to 30 s while none shows, and reports the one this request made (id and status; it waits on a running one); it says nothing was imported only when none appeared. A busy-Team 429 (RATE_LIMIT_TENANT) waits the advertised Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends that import again, naming the import holding the Team's write lock when the API names one; a longer wait fails. Needs Automate.`,
|
|
284
284
|
risk: "write",
|
|
285
285
|
rules: {
|
|
286
|
-
changes: "
|
|
286
|
+
changes: "Leads are created or updated, joined to --list (and, with --apply-lists, to the lists their `lists` column names) and tagged with --tag. Nothing is sent to LinkedIn or to the people.",
|
|
287
287
|
visible_to: "Your Team.",
|
|
288
288
|
budget_rows: [],
|
|
289
|
-
retry: "After a timeout the CLI reports the import it made; do not run it again then. Otherwise
|
|
290
|
-
undo: "Cannot be undone as a whole. `curviate
|
|
289
|
+
retry: "After a timeout the CLI reports the import it made; do not run it again then. Otherwise Leads converge: a second run reports them `unchanged`. A run stopped part way: read `curviate lead imports list`, then import the rest.",
|
|
290
|
+
undo: "Cannot be undone as a whole. `curviate lead delete --import IMPORT_ID` deletes every Lead in its report, those it only updated included; Tags and list membership are undone with `curviate lead tags remove` and `curviate lead lists remove`."
|
|
291
291
|
},
|
|
292
292
|
errors: {
|
|
293
|
-
|
|
293
|
+
LEAD_LIMIT_REACHED: "the Team is at its Lead cap; rows past it are skipped.",
|
|
294
294
|
IMPORT_QUEUE_FULL: "too many imports are queued (429); wait, then run it again.",
|
|
295
|
-
RATE_LIMIT_TENANT: `the Team has other
|
|
296
|
-
CLIENT_TIMEOUT: "no answer within --timeout; the CLI reads the Team's newest imports (again for up to 30 s while none shows) and reports the import this request made. None found: nothing was imported so far, but read `curviate
|
|
295
|
+
RATE_LIMIT_TENANT: `the Team has other Lead or Campaign writes running (429, nothing imported); the CLI waits Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends again, a longer wait stops the run. When an import holds the Team's write lock, the message and \`details.import_id\` name it: read it with \`curviate lead imports get\`.`,
|
|
296
|
+
CLIENT_TIMEOUT: "no answer within --timeout; the CLI reads the Team's newest imports (again for up to 30 s while none shows) and reports the import this request made. None found: nothing was imported so far, but read `curviate lead imports list` before running it again.",
|
|
297
297
|
NAME_TAKEN: "--list-name names a list that exists."
|
|
298
298
|
},
|
|
299
|
-
output: ["With --json stdout is exactly one JSON document; progress and waits go to stderr. One report: `imports` (id and status each), `total_rows`, summed `counts` (created, updated, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field. With --async (or --no-wait): the imports' ids and statuses only, printed as soon as each is accepted; a queued one's progress is `curviate
|
|
300
|
-
seeAlso: ["curviate
|
|
299
|
+
output: ["With --json stdout is exactly one JSON document; progress and waits go to stderr. One report: `imports` (id and status each), `total_rows`, summed `counts` (created, updated, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field. With --async (or --no-wait): the imports' ids and statuses only, printed as soon as each is accepted; a queued one's progress is `curviate lead imports get IMPORT_ID` (stderr names it)."],
|
|
300
|
+
seeAlso: ["curviate lead imports get", "curviate lead list"],
|
|
301
301
|
examples: [
|
|
302
|
-
'curviate
|
|
303
|
-
"curviate
|
|
304
|
-
"curviate
|
|
302
|
+
'curviate lead import --file prospects.csv --list-name "Q4 prospects" --tag conference',
|
|
303
|
+
"curviate lead import --file leads-export.csv --apply-lists --async",
|
|
304
|
+
"curviate lead import --file - --format ndjson --list cl_YOUR_LIST_ID"
|
|
305
305
|
]
|
|
306
306
|
},
|
|
307
307
|
args: {
|
|
308
308
|
...WRITE_SINGLE_FLAGS,
|
|
309
309
|
file: { type: "string", stdinArg: true, required: true, description: "The file: a path, or - to read it from stdin (then --format is required)." },
|
|
310
310
|
format: { type: "string", description: "csv | json | ndjson. Default: from the file extension (.csv, .json, .ndjson)." },
|
|
311
|
-
list: { type: "string", description: "Add every imported
|
|
311
|
+
list: { type: "string", description: "Add every imported Lead to this Lead list (cl_...)." },
|
|
312
312
|
"list-name": { type: "string", description: "Add them to the list of this name (up to 100 characters), creating it. Not with --list." },
|
|
313
|
-
tag: { type: "string", description: "Put this Tag on every imported
|
|
314
|
-
"remove-tag": { type: "string", description: "Take this Tag off every imported
|
|
315
|
-
"apply-lists": { type: "boolean", description: "Add each
|
|
316
|
-
map: { type: "string", description: 'Map a file header to a
|
|
313
|
+
tag: { type: "string", description: "Put this Tag on every imported Lead (up to 64 characters); repeatable." },
|
|
314
|
+
"remove-tag": { type: "string", description: "Take this Tag off every imported Lead; repeatable." },
|
|
315
|
+
"apply-lists": { type: "boolean", description: "Add each Lead to the Lead lists named in its `lists` (an export's column), creating a missing list by name. Only adds. A row past the Team's list limit is skipped (list_limit_reached). Default: the column is ignored." },
|
|
316
|
+
map: { type: "string", description: 'Map a file header to a Lead field: header=target, for example "LinkedIn Profile=linkedin_url"; repeatable.' },
|
|
317
317
|
delimiter: { type: "string", description: "A CSV's separator: comma, semicolon or tab. Default: found by the server." },
|
|
318
|
-
async: { type: "boolean", description: "Print the imports' ids as soon as each is accepted and exit 0, without waiting for them to finish; follow one with `curviate
|
|
318
|
+
async: { type: "boolean", description: "Print the imports' ids as soon as each is accepted and exit 0, without waiting for them to finish; follow one with `curviate lead imports get IMPORT_ID`. Stops only on a refused request." },
|
|
319
319
|
"no-wait": { type: "boolean", description: "Same as --async." }
|
|
320
320
|
},
|
|
321
321
|
run: online(runImport)
|
|
322
322
|
});
|
|
323
323
|
var ID = { type: "positional", description: "Import id (imp_...)." };
|
|
324
324
|
var importsList = defineCommand({
|
|
325
|
-
meta: { name: "list", description: "List your Team's imports, newest first: status, counts and failure.", risk: "read", examples: ["curviate
|
|
325
|
+
meta: { name: "list", description: "List your Team's imports, newest first: status, counts and failure.", risk: "read", examples: ["curviate lead imports list"] },
|
|
326
326
|
args: { ...readOnly(GLOBAL_FLAGS) },
|
|
327
327
|
run: online(async (c, f) => {
|
|
328
328
|
rejectPaginationModifiersWithoutAll(f, process);
|
|
@@ -332,10 +332,10 @@ var importsList = defineCommand({
|
|
|
332
332
|
if (cursor) params["cursor"] = cursor;
|
|
333
333
|
try {
|
|
334
334
|
if (f.all) {
|
|
335
|
-
const next = (p) => c.
|
|
335
|
+
const next = (p) => c.leads.imports.list(p);
|
|
336
336
|
for await (const item of streamAll(next, params, { maxPages: readMaxPagesFlag(f, process), out: process, pageDelayMs: pageDelayFromFlags(f) })) writeNdjsonItem(process, item, f.fields);
|
|
337
337
|
} else {
|
|
338
|
-
renderSuccess(readablePage(await c.
|
|
338
|
+
renderSuccess(readablePage(await c.leads.imports.list(params)), outputOpts(f), process);
|
|
339
339
|
}
|
|
340
340
|
} catch (err) {
|
|
341
341
|
await fail(err, f);
|
|
@@ -347,7 +347,7 @@ var importsGet = defineCommand({
|
|
|
347
347
|
name: "get",
|
|
348
348
|
description: "One import: its status, counts, the columns it mapped or ignored, and its failure. With --outcome, its rows instead: one per row of the file with what happened (created, updated, unchanged, skipped), the reason and the field. Import records are kept for a limited time.",
|
|
349
349
|
risk: "read",
|
|
350
|
-
examples: ["curviate
|
|
350
|
+
examples: ["curviate lead imports get imp_YOUR_IMPORT_ID", "curviate lead imports get imp_YOUR_IMPORT_ID --outcome skipped"]
|
|
351
351
|
},
|
|
352
352
|
args: {
|
|
353
353
|
...readOnly(GLOBAL_FLAGS),
|
|
@@ -357,17 +357,17 @@ var importsGet = defineCommand({
|
|
|
357
357
|
run: online(async (c, f) => {
|
|
358
358
|
const id = String(f.id ?? "");
|
|
359
359
|
try {
|
|
360
|
-
if (f.outcome === void 0) return renderSuccess(readableObject(await c.
|
|
360
|
+
if (f.outcome === void 0) return renderSuccess(readableObject(await c.leads.imports.get(id)), outputOpts(f), process);
|
|
361
361
|
rejectPaginationModifiersWithoutAll(f, process);
|
|
362
362
|
const params = { outcome: listFlag("outcome", f.outcome).join(",") };
|
|
363
363
|
if (f.limit !== void 0) params["limit"] = intFlag("limit", f.limit, 1, 100);
|
|
364
364
|
const cursor = readCursorFlag(f, process);
|
|
365
365
|
if (cursor) params["cursor"] = cursor;
|
|
366
366
|
if (f.all) {
|
|
367
|
-
const next = (p) => c.
|
|
367
|
+
const next = (p) => c.leads.imports.rows(id, p);
|
|
368
368
|
for await (const item of streamAll(next, params, { maxPages: readMaxPagesFlag(f, process), out: process, pageDelayMs: pageDelayFromFlags(f) })) writeNdjsonItem(process, item, f.fields);
|
|
369
369
|
} else {
|
|
370
|
-
renderSuccess(readablePage(await c.
|
|
370
|
+
renderSuccess(readablePage(await c.leads.imports.rows(id, params)), outputOpts(f), process);
|
|
371
371
|
}
|
|
372
372
|
} catch (err) {
|
|
373
373
|
await fail(err, f);
|
|
@@ -379,8 +379,8 @@ var contactImportsCommand = defineCommand({
|
|
|
379
379
|
meta: { name: "imports", description: "Your Team's import records." },
|
|
380
380
|
subCommands: { list: importsList, get: importsGet },
|
|
381
381
|
async run() {
|
|
382
|
-
const { showHelp } = await import("./examples-
|
|
383
|
-
await showHelp(contactImportsCommand, ["curviate", "
|
|
382
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
383
|
+
await showHelp(contactImportsCommand, ["curviate", "lead", "imports"]);
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
|
|
@@ -7,23 +7,25 @@ var DESCRIPTIONS = {
|
|
|
7
7
|
login: "Save an API key to a local profile. Run `curviate core profile me` to verify.",
|
|
8
8
|
config: "Manage CLI profiles and settings.",
|
|
9
9
|
account: "LinkedIn account connection management.",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enrollment: "Enrollments: one
|
|
13
|
-
|
|
14
|
-
"do-not-contact": "Do-not-contact: your Team's one list of people no
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
campaign: "Campaigns: one Sequence run for the Leads of your Team's Lead lists, from its sending Accounts, paced on a schedule. Create and edit drafts, preview, start, pause, resume, archive, add or remove Leads; lint a Sequence and write a template offline; upload the audio of a voice note step (`curviate campaign voice-clip`). Your Team's data: every role reads; writes need send access to each sending Account, and Campaigns need the Automate plan.",
|
|
11
|
+
campaignVoiceClip: "Voice clips: the audio a `voice.send` step plays. Upload one audio file (1 to 120 seconds, up to 20 MiB), then put its id in a Sequence as `clip_id`; read one back. Nothing reaches LinkedIn until a Campaign that uses it is started. Uploads need the Automate plan.",
|
|
12
|
+
enrollment: "Enrollments: one Lead in one Campaign on one Account. List and read them; pause, resume, retry a failed Step, stop, send a custom event, reassign, or act on many at once. Your Team's data: every role reads; writes need operate on the Enrollment's Account.",
|
|
13
|
+
lead: "Leads: the people in your Team's lists, not LinkedIn actions. List, read, add, change and delete them; import and export; enrich from LinkedIn profiles. Subgroups: `curviate lead lists` (Lead lists, including combining lists), `curviate lead tags`, `curviate lead imports`. Your Team's data: every role reads and writes; deleting is for Owners and Managers.",
|
|
14
|
+
"do-not-contact": "Do-not-contact: your Team's one list of people no Campaign contacts and no write reaches (a write toward them exits 10). List, read, add, change the reason, remove, export and import a file. Any member adds and imports; removing and exporting are for Owners and Managers.",
|
|
15
|
+
mailbox: "Mailboxes: your Team's own email Mailboxes, the addresses Campaigns send from. List, read, set who a Mailbox sends for, its daily cap and signature, pause, resume, remove, find the settings for an address (discover), connect and reconnect (a password goes in only through --password-stdin). Every role reads; Owners and Managers change any Mailbox, a Member the ones they connected. A Mailbox takes no seat and is never billed.",
|
|
16
|
+
domain: "Domains: the DNS health of a sending domain (MX, SPF, DKIM, DMARC, tracking). `curviate domain check`, with --now to run the checks now.",
|
|
17
|
+
billing: "Billing: the price of seats, the spending cap, the change log and your Team's invoices (listed and downloaded as PDFs). Owners only. Seats and the Tier are under `curviate account seats`, `curviate team` and `curviate tier`.",
|
|
18
|
+
contactImport: "Import Leads from a CSV, JSON or NDJSON file into a Lead list, splitting a large file into several imports.",
|
|
17
19
|
contactImports: "Read your Team's import records: the counts, the failure, and the rows an import skipped and why.",
|
|
18
|
-
contactLists: "
|
|
19
|
-
contactTags: "Tags: labels on
|
|
20
|
-
unibox: "Unibox: one inbox over the chats of every Account you may operate, served from Curviate's store. List, read and count chats; reply, mark, tag the person, enroll them in a
|
|
20
|
+
contactLists: "Lead lists: named sets of Leads a Campaign enrolls from. List, read, create, combine lists into a new one, rename, delete, add and remove Leads.",
|
|
21
|
+
contactTags: "Tags: labels on Leads. List, rename, delete, and add or remove one on Leads named by id or by filter.",
|
|
22
|
+
unibox: "Unibox: one inbox over the chats of every Account you may operate, served from Curviate's store. List, read and count chats; reply, mark, tag the person, enroll them in a Campaign; refresh. An Account shows its whole inbox only with Sync full inbox, which its own person turns on (`curviate unibox consent`); otherwise only its Campaign chats.",
|
|
21
23
|
network: "Network: each Account's LinkedIn Connections, synced and stored by Curviate. List, export, read the sync status, ask for a resync. Your Team's data, for the Accounts you may operate.",
|
|
22
|
-
analytics: "
|
|
24
|
+
analytics: "Campaign outcomes and the budget your Accounts used. Read-only; Campaign numbers cover your Accounts and your team's shared Accounts, core activity the Accounts you may operate.",
|
|
23
25
|
export: "Background export jobs started by `curviate analytics export --job`: read the status, download the file. Only the person who started one can.",
|
|
24
26
|
tier: "Your Team's Tier now, what it bought, any trial or override, and the features it includes. Every role may read it.",
|
|
25
27
|
team: "Teams: list yours and switch the one calls act in, read or rename it, manage members and invites, set its logo, create a Team, lend seats between your Teams. Owners and Managers manage (a Manager invites Members only); every role reads.",
|
|
26
|
-
incoming: "Incoming events: a private URL any tool posts to. Curviate finds the
|
|
28
|
+
incoming: "Incoming events: a private URL any tool posts to. Curviate finds the Lead in the post and moves the Enrollments waiting for that event (`until event.<name>`). Your Team's data.",
|
|
27
29
|
beta: "Beta consent for your Team: whether beta operations run without --beta on each call. Owners change it.",
|
|
28
30
|
webhook: "Webhook management and signature verification.",
|
|
29
31
|
core: "Curviate core: LinkedIn building blocks. Each command runs one action now, from one Account, and counts against that Account's budgets. Nothing is queued, paced or retried for you, except a Draft scheduled with `--schedule-at`, which Curviate publishes at that time (`curviate core draft create`).",
|
|
@@ -41,7 +43,7 @@ var DESCRIPTIONS = {
|
|
|
41
43
|
recruiter: "Beta. LinkedIn Recruiter operations. Needs the LinkedIn account's own Recruiter subscription; no Curviate add-on. Beta operations can require consent: an Owner enables beta with `curviate beta update --enabled true`, or pass --beta for this call.",
|
|
42
44
|
group: "Read LinkedIn groups: your own membership list, one group's detail, and its member roster.",
|
|
43
45
|
feed: "Read the connected account's LinkedIn home feed as agent-actionable posts.",
|
|
44
|
-
notification: "Curviate Notifications: an account that needs reconnecting, a paused
|
|
46
|
+
notification: "Curviate Notifications: an account that needs reconnecting, a paused Campaign, a finished import, a member who left. Yours alone, per Team; list, count, mark read, archive. LinkedIn's own notification cards are under `curviate core notification`.",
|
|
45
47
|
coreNotification: "Read and act on LinkedIn notification cards. Curviate's own Notifications are `curviate notification`.",
|
|
46
48
|
draft: "Drafts and scheduled posts."
|
|
47
49
|
};
|
|
@@ -192,25 +192,44 @@ var EXIT_CODE_MAP = {
|
|
|
192
192
|
CONNECT_REQUEST_NOT_PENDING: 8,
|
|
193
193
|
CONNECT_REQUEST_IN_USE: 8,
|
|
194
194
|
LINKEDIN_ACCOUNT_MISMATCH: 8,
|
|
195
|
-
//
|
|
195
|
+
// Mailboxes and sending domains. A missing one is 4; a state that forbids the action (pause of a
|
|
196
|
+
// paused Mailbox, an address already connected, a provider or host refusing) is 8, the same input
|
|
197
|
+
// works in another state; a Team past its Mailbox allowance, or a private Gmail address sent
|
|
198
|
+
// through sign-in, never succeeds as sent (2). An administrator's approval is someone else's
|
|
199
|
+
// act first (5). The Mailbox Connect request carries the same codes as its `error_code`.
|
|
200
|
+
MAILBOX_NOT_FOUND: 4,
|
|
201
|
+
DOMAIN_NOT_FOUND: 4,
|
|
202
|
+
MAILBOX_STATE_CONFLICT: 8,
|
|
203
|
+
MAILBOX_ALREADY_CONNECTED: 8,
|
|
204
|
+
MAILBOX_CREDENTIAL_REJECTED: 8,
|
|
205
|
+
MAILBOX_TLS_FAILED: 8,
|
|
206
|
+
MAILBOX_ADDRESS_MISMATCH: 8,
|
|
207
|
+
MAILBOX_LIMIT_REACHED: 2,
|
|
208
|
+
MAILBOX_APP_PASSWORD_REQUIRED: 2,
|
|
209
|
+
MAILBOX_ADMIN_APPROVAL_REQUIRED: 5,
|
|
210
|
+
// Seat calls: only an Owner raises the spending cap or cancels in the dashboard (5, someone else acts first).
|
|
211
|
+
SPENDING_CAP_REACHED: 5,
|
|
212
|
+
CANCEL_IN_DASHBOARD: 5,
|
|
213
|
+
// Leads: a cap or a name clash never succeeds as sent; a full import queue drains (6).
|
|
196
214
|
NAME_TAKEN: 2,
|
|
197
215
|
RESOURCE_IN_USE: 2,
|
|
198
|
-
|
|
216
|
+
LEAD_LIMIT_REACHED: 2,
|
|
199
217
|
IMPORT_QUEUE_FULL: 6,
|
|
200
|
-
//
|
|
218
|
+
// Campaigns and Enrollments. Every refusal but one never succeeds as
|
|
201
219
|
// sent (2): fix the document, merge the newer Sequence, or pick another
|
|
202
220
|
// Enrollment or Account. STEP_IN_FLIGHT settles within a minute (7, the
|
|
203
221
|
// DRAFT_PUBLISHING precedent: read again, then retry).
|
|
204
222
|
SEQUENCE_INVALID: 2,
|
|
205
223
|
SEQUENCE_CONFLICT: 2,
|
|
206
|
-
|
|
207
|
-
|
|
224
|
+
CAMPAIGN_NOT_STARTABLE: 2,
|
|
225
|
+
CAMPAIGN_STATUS_CONFLICT: 2,
|
|
208
226
|
ENROLLMENT_NOT_ACTIVE: 2,
|
|
209
227
|
NOTHING_TO_RETRY: 2,
|
|
210
228
|
ACCOUNT_ALREADY_ENGAGED: 2,
|
|
229
|
+
ACCOUNT_NOT_IN_CAMPAIGN: 2,
|
|
211
230
|
ALREADY_ENROLLED_ON_ACCOUNT: 2,
|
|
212
231
|
KNOWN_CHAT: 2,
|
|
213
|
-
|
|
232
|
+
LEAD_NOT_ENROLLABLE: 2,
|
|
214
233
|
CHAT_NOT_ONE_TO_ONE: 2,
|
|
215
234
|
STEP_IN_FLIGHT: 7,
|
|
216
235
|
// Voice clips: the file is empty, not audio, undecodable or outside 1 to 120 seconds; it never succeeds as sent.
|
|
@@ -895,7 +895,7 @@ var documents_default = {
|
|
|
895
895
|
},
|
|
896
896
|
additionalProperties: false
|
|
897
897
|
},
|
|
898
|
-
"
|
|
898
|
+
"campaign create": {
|
|
899
899
|
type: "object",
|
|
900
900
|
properties: {
|
|
901
901
|
name: {
|
|
@@ -903,7 +903,7 @@ var documents_default = {
|
|
|
903
903
|
minLength: 1,
|
|
904
904
|
maxLength: 100
|
|
905
905
|
},
|
|
906
|
-
|
|
906
|
+
lead_list_ids: {
|
|
907
907
|
type: "array",
|
|
908
908
|
items: {
|
|
909
909
|
type: "string",
|
|
@@ -927,6 +927,14 @@ var documents_default = {
|
|
|
927
927
|
maxLength: 64
|
|
928
928
|
}
|
|
929
929
|
},
|
|
930
|
+
shared_mailbox_ids: {
|
|
931
|
+
type: "array",
|
|
932
|
+
items: {
|
|
933
|
+
type: "string",
|
|
934
|
+
minLength: 1,
|
|
935
|
+
maxLength: 64
|
|
936
|
+
}
|
|
937
|
+
},
|
|
930
938
|
schedule: {
|
|
931
939
|
type: "object",
|
|
932
940
|
properties: {
|
|
@@ -973,6 +981,11 @@ var documents_default = {
|
|
|
973
981
|
end_at: {
|
|
974
982
|
type: "string",
|
|
975
983
|
nullable: true
|
|
984
|
+
},
|
|
985
|
+
min_email_gap_minutes: {
|
|
986
|
+
type: "integer",
|
|
987
|
+
minimum: 0,
|
|
988
|
+
maximum: 10080
|
|
976
989
|
}
|
|
977
990
|
},
|
|
978
991
|
additionalProperties: false
|
|
@@ -987,7 +1000,7 @@ var documents_default = {
|
|
|
987
1000
|
"prioritized"
|
|
988
1001
|
]
|
|
989
1002
|
},
|
|
990
|
-
|
|
1003
|
+
accounts_per_lead: {
|
|
991
1004
|
type: "integer",
|
|
992
1005
|
minimum: 1,
|
|
993
1006
|
maximum: 10
|
|
@@ -1008,7 +1021,7 @@ var documents_default = {
|
|
|
1008
1021
|
exclude: {
|
|
1009
1022
|
type: "object",
|
|
1010
1023
|
properties: {
|
|
1011
|
-
|
|
1024
|
+
other_campaigns: {
|
|
1012
1025
|
type: "boolean"
|
|
1013
1026
|
},
|
|
1014
1027
|
known_chats: {
|
|
@@ -1045,6 +1058,13 @@ var documents_default = {
|
|
|
1045
1058
|
nullable: true
|
|
1046
1059
|
}
|
|
1047
1060
|
},
|
|
1061
|
+
reply_scope: {
|
|
1062
|
+
type: "string",
|
|
1063
|
+
enum: [
|
|
1064
|
+
"both",
|
|
1065
|
+
"own_channel"
|
|
1066
|
+
]
|
|
1067
|
+
},
|
|
1048
1068
|
on_reply_elsewhere: {
|
|
1049
1069
|
type: "string",
|
|
1050
1070
|
enum: [
|
|
@@ -1082,6 +1102,7 @@ var documents_default = {
|
|
|
1082
1102
|
"sequence_version",
|
|
1083
1103
|
"sequence_revision",
|
|
1084
1104
|
"sequence_updated_by_user_id",
|
|
1105
|
+
"lead_check",
|
|
1085
1106
|
"counts",
|
|
1086
1107
|
"warnings",
|
|
1087
1108
|
"created_by_user_id",
|
|
@@ -1092,7 +1113,7 @@ var documents_default = {
|
|
|
1092
1113
|
"archived_at"
|
|
1093
1114
|
]
|
|
1094
1115
|
},
|
|
1095
|
-
"
|
|
1116
|
+
"campaign update": {
|
|
1096
1117
|
type: "object",
|
|
1097
1118
|
properties: {
|
|
1098
1119
|
name: {
|
|
@@ -1100,7 +1121,7 @@ var documents_default = {
|
|
|
1100
1121
|
minLength: 1,
|
|
1101
1122
|
maxLength: 100
|
|
1102
1123
|
},
|
|
1103
|
-
|
|
1124
|
+
lead_list_ids: {
|
|
1104
1125
|
type: "array",
|
|
1105
1126
|
items: {
|
|
1106
1127
|
type: "string",
|
|
@@ -1124,6 +1145,14 @@ var documents_default = {
|
|
|
1124
1145
|
maxLength: 64
|
|
1125
1146
|
}
|
|
1126
1147
|
},
|
|
1148
|
+
shared_mailbox_ids: {
|
|
1149
|
+
type: "array",
|
|
1150
|
+
items: {
|
|
1151
|
+
type: "string",
|
|
1152
|
+
minLength: 1,
|
|
1153
|
+
maxLength: 64
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1127
1156
|
schedule: {
|
|
1128
1157
|
type: "object",
|
|
1129
1158
|
properties: {
|
|
@@ -1170,6 +1199,11 @@ var documents_default = {
|
|
|
1170
1199
|
end_at: {
|
|
1171
1200
|
type: "string",
|
|
1172
1201
|
nullable: true
|
|
1202
|
+
},
|
|
1203
|
+
min_email_gap_minutes: {
|
|
1204
|
+
type: "integer",
|
|
1205
|
+
minimum: 0,
|
|
1206
|
+
maximum: 10080
|
|
1173
1207
|
}
|
|
1174
1208
|
},
|
|
1175
1209
|
additionalProperties: false
|
|
@@ -1184,7 +1218,7 @@ var documents_default = {
|
|
|
1184
1218
|
"prioritized"
|
|
1185
1219
|
]
|
|
1186
1220
|
},
|
|
1187
|
-
|
|
1221
|
+
accounts_per_lead: {
|
|
1188
1222
|
type: "integer",
|
|
1189
1223
|
minimum: 1,
|
|
1190
1224
|
maximum: 10
|
|
@@ -1205,7 +1239,7 @@ var documents_default = {
|
|
|
1205
1239
|
exclude: {
|
|
1206
1240
|
type: "object",
|
|
1207
1241
|
properties: {
|
|
1208
|
-
|
|
1242
|
+
other_campaigns: {
|
|
1209
1243
|
type: "boolean"
|
|
1210
1244
|
},
|
|
1211
1245
|
known_chats: {
|
|
@@ -1242,6 +1276,13 @@ var documents_default = {
|
|
|
1242
1276
|
nullable: true
|
|
1243
1277
|
}
|
|
1244
1278
|
},
|
|
1279
|
+
reply_scope: {
|
|
1280
|
+
type: "string",
|
|
1281
|
+
enum: [
|
|
1282
|
+
"both",
|
|
1283
|
+
"own_channel"
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1245
1286
|
on_reply_elsewhere: {
|
|
1246
1287
|
type: "string",
|
|
1247
1288
|
enum: [
|
|
@@ -1280,6 +1321,7 @@ var documents_default = {
|
|
|
1280
1321
|
"sequence_version",
|
|
1281
1322
|
"sequence_revision",
|
|
1282
1323
|
"sequence_updated_by_user_id",
|
|
1324
|
+
"lead_check",
|
|
1283
1325
|
"counts",
|
|
1284
1326
|
"warnings",
|
|
1285
1327
|
"created_by_user_id",
|
|
@@ -1298,7 +1340,7 @@ var ANNOTATIONS = /* @__PURE__ */ new Set(["description", "title", "default", "d
|
|
|
1298
1340
|
function documentSchema(key) {
|
|
1299
1341
|
const s = documents_default[key];
|
|
1300
1342
|
if (!s) throw new Error(`no document schema for ${key}`);
|
|
1301
|
-
return key === "
|
|
1343
|
+
return key === "campaign create" || key === "campaign update" ? withoutScheduleTimezone(s) : s;
|
|
1302
1344
|
}
|
|
1303
1345
|
function withoutScheduleTimezone(s) {
|
|
1304
1346
|
const copy = structuredClone(s);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createClient,
|
|
8
8
|
resolveEffectiveConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7PLTQHNO.js";
|
|
10
10
|
|
|
11
11
|
// src/lib/root-command.ts
|
|
12
12
|
var outputOpts = (f) => ({
|
|
@@ -35,7 +35,7 @@ async function rootClient(f) {
|
|
|
35
35
|
async function fail(err, f) {
|
|
36
36
|
const { CurviateError } = await import("@curviate/sdk");
|
|
37
37
|
if (err instanceof CurviateError) {
|
|
38
|
-
const { getExitCode } = await import("./exit-codes-
|
|
38
|
+
const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
|
|
39
39
|
renderError(err, outputOpts(f), process);
|
|
40
40
|
process.exit(getExitCode(err));
|
|
41
41
|
}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
BinaryOutputError,
|
|
4
4
|
writeBinaryOutput
|
|
5
5
|
} from "./chunk-UWO2D4HW.js";
|
|
6
|
-
import {
|
|
7
|
-
AS_ACCOUNT,
|
|
8
|
-
BUDGET,
|
|
9
|
-
TARGET
|
|
10
|
-
} from "./chunk-Q3ZPRFUX.js";
|
|
11
6
|
import {
|
|
12
7
|
normalizeChatId,
|
|
13
8
|
resolveIdentifier,
|
|
14
9
|
resolveJobIdentifier
|
|
15
10
|
} from "./chunk-UEAX6KUB.js";
|
|
11
|
+
import {
|
|
12
|
+
AS_ACCOUNT,
|
|
13
|
+
BUDGET,
|
|
14
|
+
TARGET
|
|
15
|
+
} from "./chunk-Q3ZPRFUX.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachError,
|
|
18
18
|
isAudioFile,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-VHNF6OZD.js";
|
|
22
22
|
import {
|
|
23
23
|
requireAccount
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
25
25
|
import {
|
|
26
26
|
buildPreviewOutput
|
|
27
27
|
} from "./chunk-TCUYH5GO.js";
|
|
28
28
|
import {
|
|
29
29
|
readableId,
|
|
30
30
|
readableObject
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
32
32
|
import {
|
|
33
33
|
renderError,
|
|
34
34
|
renderSuccess,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
createClient,
|
|
39
39
|
downloadBinary,
|
|
40
40
|
resolveEffectiveConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-7PLTQHNO.js";
|
|
42
42
|
import {
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
44
44
|
WRITE_FLAGS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "./chunk-QLKGOIWS.js";
|
|
47
47
|
import {
|
|
48
48
|
DESCRIPTIONS
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-MWVTFTWV.js";
|
|
50
50
|
import {
|
|
51
51
|
looksLikeCommandWord,
|
|
52
52
|
nearestSubcommand
|
|
@@ -153,7 +153,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
153
153
|
async function handleSdkError(err, outOpts, out) {
|
|
154
154
|
const { CurviateError } = await import("@curviate/sdk");
|
|
155
155
|
if (err instanceof CurviateError) {
|
|
156
|
-
const { getExitCode } = await import("./exit-codes-
|
|
156
|
+
const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
|
|
157
157
|
renderError(err, outOpts, out);
|
|
158
158
|
process.exit(getExitCode(err));
|
|
159
159
|
}
|