@curviate/cli 0.49.0 → 0.50.0-next.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 +15 -0
- package/README.md +12 -5
- package/dist/{account-2BH2Q6VG.js → account-KGCGUYKF.js} +668 -116
- package/dist/analytics-HRAD4ABO.js +27 -0
- package/dist/beta-consent-364JI6IL.js +81 -0
- package/dist/billing-3SSVRS2Y.js +124 -0
- package/dist/{chunk-V7FJWTZW.js → chunk-25MO7BYN.js} +4 -4
- package/dist/{chunk-RXWODUWA.js → chunk-2W4RN5ON.js} +18 -2
- package/dist/chunk-5S3MJVI5.js +22 -0
- package/dist/chunk-67S4JHZZ.js +339 -0
- package/dist/chunk-73DJ3KNE.js +54 -0
- package/dist/chunk-CQGDMARG.js +525 -0
- package/dist/{chunk-JYKYD57J.js → chunk-DOHBOYXN.js} +1 -1
- package/dist/{chunk-3RCW7URJ.js → chunk-DSGKYZDK.js} +1 -1
- package/dist/{chunk-YLSJ4HKU.js → chunk-ENBIMEKS.js} +26 -1
- package/dist/{chunk-LCGXJGPB.js → chunk-GHMRPX5H.js} +7 -1
- package/dist/chunk-GOICALYQ.js +28 -0
- package/dist/chunk-L4CIJT6F.js +144 -0
- package/dist/{chunk-PQWDDSV7.js → chunk-L7JH3W56.js} +1 -1
- package/dist/{chunk-Z7OQSWBD.js → chunk-OE6YFYUM.js} +85 -10
- package/dist/chunk-PPGKQJKU.js +38 -0
- package/dist/{chunk-SA2QHAXG.js → chunk-QM57YDJE.js} +13 -201
- package/dist/{chunk-Y7MZZRYR.js → chunk-RYWWSZUH.js} +14 -2
- package/dist/{chunk-MGB6FE4A.js → chunk-T6GBS5SS.js} +6 -6
- package/dist/{chunk-TEAWYLPO.js → chunk-TE3WBPW6.js} +43 -17
- package/dist/chunk-UL53T4O6.js +52 -0
- package/dist/chunk-UWQPX4AE.js +20 -0
- package/dist/{chunk-5ZGTU4VD.js → chunk-YXVF5UST.js} +77 -4
- package/dist/cli.js +34 -18
- package/dist/{comment-MRDPDA33.js → comment-5JKGNYOY.js} +90 -11
- package/dist/{company-2AEHSGHA.js → company-TXST2VXW.js} +65 -15
- package/dist/{config-NRBKHXES.js → config-TVIQUVNK.js} +53 -4
- package/dist/{connect-4XEBV5V3.js → connect-RBL6U4KV.js} +63 -18
- package/dist/contact-YAHC5QFX.js +32 -0
- package/dist/contact-groups-DKOIBC57.js +399 -0
- package/dist/contact-import-ITSJQV7K.js +336 -0
- package/dist/core-PWMJPPRG.js +46 -0
- package/dist/do-not-contact-WDYIBWYA.js +200 -0
- package/dist/{doctor-BZ4DA7DV.js → doctor-F7JLPTED.js} +65 -11
- package/dist/{document-RKHRWXNT.js → document-BHYAUJ6F.js} +1 -1
- package/dist/{draft-C5N6EOO5.js → draft-TDJJUXLH.js} +60 -14
- package/dist/{enrollment-BNQOUKI7.js → enrollment-Q6UOKHPY.js} +31 -19
- package/dist/{examples-NIMSIXMV.js → examples-DQSVIIXZ.js} +2 -2
- package/dist/{exit-codes-TLMKTLRI.js → exit-codes-7DBETBDT.js} +1 -1
- package/dist/export-HIJSCJS6.js +96 -0
- package/dist/{feed-DFUU7SUJ.js → feed-W56ZTA4Z.js} +13 -10
- package/dist/{group-CSD2OWOZ.js → group-AUALYK5H.js} +18 -10
- package/dist/{inbox-SNSPWI7J.js → inbox-HLZR2ZPV.js} +31 -12
- package/dist/{inboxes-RIRHPS4H.js → inboxes-IZTRD6FE.js} +14 -10
- package/dist/incoming-ULB2RNV4.js +218 -0
- package/dist/{job-6PNXXZNF.js → job-55IKS6LP.js} +65 -13
- package/dist/{login-Y7JBAHCW.js → login-DPZ6CXNO.js} +13 -4
- package/dist/{message-2IK4MBBG.js → message-J44YKRDS.js} +9 -7
- package/dist/{motion-7ATUXO6R.js → motion-SQI5F2EK.js} +39 -117
- package/dist/network-K4QD7APQ.js +235 -0
- package/dist/{notification-VYK5NDEB.js → notification-SEDXZHXO.js} +38 -11
- package/dist/notifications-HGIBRUNQ.js +231 -0
- package/dist/{post-AN6T2OJF.js → post-L467SKIG.js} +92 -12
- package/dist/{profile-UQY64642.js → profile-A2N6RMR2.js} +76 -20
- package/dist/{recruiter-OY4RN5HH.js → recruiter-AR75RHBO.js} +133 -22
- package/dist/{sales-nav-KLODLYMW.js → sales-nav-C2AYFXPV.js} +74 -19
- package/dist/{search-NWP5S6CF.js → search-Z4DZIG4X.js} +55 -23
- package/dist/{setup-YPPFLH2N.js → setup-45BEVX6B.js} +69 -17
- package/dist/team-6QWY4IFP.js +450 -0
- package/dist/tier-2HS3BXDF.js +61 -0
- package/dist/unibox-DHUKG65Z.js +402 -0
- package/dist/{webhook-OHKBL3YS.js → webhook-Q53WUAI2.js} +257 -27
- package/package.json +2 -2
- package/dist/chunk-D2S5OCYU.js +0 -38
- package/dist/core-RGU2SCBN.js +0 -46
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
readablePage
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
getExitCode
|
|
8
|
-
} from "./chunk-RXWODUWA.js";
|
|
3
|
+
readablePage
|
|
4
|
+
} from "./chunk-L4CIJT6F.js";
|
|
5
|
+
import "./chunk-QM57YDJE.js";
|
|
9
6
|
import {
|
|
10
7
|
createClient,
|
|
11
8
|
getConfigPath,
|
|
12
9
|
isPlainObject,
|
|
13
10
|
readConfigFile,
|
|
11
|
+
resolveEffectiveConfig,
|
|
14
12
|
withoutUserinfo
|
|
15
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YXVF5UST.js";
|
|
16
14
|
import {
|
|
17
15
|
GLOBAL_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RYWWSZUH.js";
|
|
19
17
|
import {
|
|
20
18
|
DESCRIPTIONS
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-73DJ3KNE.js";
|
|
22
20
|
import "./chunk-ZYURL5VK.js";
|
|
21
|
+
import {
|
|
22
|
+
getExitCode
|
|
23
|
+
} from "./chunk-2W4RN5ON.js";
|
|
23
24
|
|
|
24
25
|
// src/commands/doctor.ts
|
|
25
26
|
import { defineCommand } from "citty";
|
|
@@ -41,12 +42,21 @@ function defaultVersion() {
|
|
|
41
42
|
async function defaultListAccounts(apiKey, baseUrl, timeout) {
|
|
42
43
|
return createClient({ apiKey, baseUrl, timeout }).accounts.list();
|
|
43
44
|
}
|
|
45
|
+
async function defaultListTeams(apiKey, baseUrl, timeout) {
|
|
46
|
+
return createClient({ apiKey, baseUrl, timeout, team: null }).teams.list({ limit: 100 });
|
|
47
|
+
}
|
|
48
|
+
var ALL_TEAMS_KEY_PREFIX = "cvt_all_";
|
|
49
|
+
function teamRows(payload) {
|
|
50
|
+
const items = isPlainObject(payload) ? payload["items"] : void 0;
|
|
51
|
+
return Array.isArray(items) ? items.filter((t) => isPlainObject(t) && typeof t["team_id"] === "string") : [];
|
|
52
|
+
}
|
|
44
53
|
function resolveDoctorIO(io = {}) {
|
|
45
54
|
return {
|
|
46
55
|
stdout: io.stdout ?? { write: (s) => void process.stdout.write(s) },
|
|
47
56
|
stderr: io.stderr ?? { write: (s) => void process.stderr.write(s) },
|
|
48
57
|
isOutputTTY: io.isOutputTTY ?? (process.stdout.isTTY ?? false),
|
|
49
58
|
listAccounts: io.listAccounts ?? defaultListAccounts,
|
|
59
|
+
listTeams: io.listTeams ?? defaultListTeams,
|
|
50
60
|
version: io.version ?? defaultVersion
|
|
51
61
|
};
|
|
52
62
|
}
|
|
@@ -87,7 +97,17 @@ async function runDoctor(args, io) {
|
|
|
87
97
|
let reachable = false;
|
|
88
98
|
let valid = false;
|
|
89
99
|
let accounts = [];
|
|
90
|
-
|
|
100
|
+
const keyScope = credentialResolved ? effective.apiKey.startsWith(ALL_TEAMS_KEY_PREFIX) ? "all_teams" : "team" : null;
|
|
101
|
+
const named = effective.team;
|
|
102
|
+
let team = named === void 0 ? null : { team_id: named, name: null, source: effective.teamSource };
|
|
103
|
+
if (keyScope === "all_teams" && named === void 0) {
|
|
104
|
+
checks.push({
|
|
105
|
+
name: "team",
|
|
106
|
+
ok: false,
|
|
107
|
+
detail: "a key for all your Teams needs a Team: pass --team, set CURVIATE_TEAM, or run `curviate team switch <team_id>` (`curviate team list` shows them)",
|
|
108
|
+
exit: 2
|
|
109
|
+
});
|
|
110
|
+
} else if (credentialResolved) {
|
|
91
111
|
try {
|
|
92
112
|
const payload = await io.listAccounts(
|
|
93
113
|
effective.apiKey,
|
|
@@ -111,6 +131,7 @@ async function runDoctor(args, io) {
|
|
|
111
131
|
detail: `${accounts.length} connected`,
|
|
112
132
|
exit: 8
|
|
113
133
|
});
|
|
134
|
+
team = await checkTeam(io, effective.apiKey, effective.baseUrl, effective.timeout, keyScope, team, checks);
|
|
114
135
|
} catch (err) {
|
|
115
136
|
const error = err;
|
|
116
137
|
const code = typeof error.code === "string" ? error.code : void 0;
|
|
@@ -133,6 +154,7 @@ async function runDoctor(args, io) {
|
|
|
133
154
|
detail: responded ? code === "PLATFORM_ERROR" ? `not verified: ${error.message ?? code}` : code ? `rejected: ${code}` : error.message ?? "the call did not succeed" : transportFault ? `not checked: ${shownBaseUrl} could not be reached` : error.message ?? "the request was refused before it was sent",
|
|
134
155
|
exit: responded ? codeExit : transportFault ? 3 : codeExit
|
|
135
156
|
});
|
|
157
|
+
if (code === "TEAM_ACCESS_DENIED") team = await checkTeam(io, effective.apiKey, effective.baseUrl, effective.timeout, keyScope, team, checks);
|
|
136
158
|
}
|
|
137
159
|
}
|
|
138
160
|
const tenant = effective.tenant ?? null;
|
|
@@ -145,15 +167,42 @@ async function runDoctor(args, io) {
|
|
|
145
167
|
credential_source: effective.apiKeySource,
|
|
146
168
|
credential_resolved: credentialResolved,
|
|
147
169
|
tenant,
|
|
170
|
+
key_scope: keyScope,
|
|
171
|
+
team,
|
|
148
172
|
api_reachable: reachable,
|
|
149
173
|
credential_valid: valid,
|
|
150
174
|
accounts,
|
|
175
|
+
// doctor's own count: every Account the list returns, whatever its status, so one needing a reconnect is not zero.
|
|
176
|
+
...valid && accounts.length === 0 ? { next_step: "curviate account connect-request create" } : {},
|
|
151
177
|
checks: checks.map(({ name, ok, detail }) => ({ name, ok, detail })),
|
|
152
178
|
ok: firstFailure === void 0,
|
|
153
179
|
exit: firstFailure?.exit ?? 0
|
|
154
180
|
};
|
|
155
181
|
return report;
|
|
156
182
|
}
|
|
183
|
+
async function checkTeam(io, apiKey, baseUrl, timeout, scope, team, checks) {
|
|
184
|
+
let rows;
|
|
185
|
+
try {
|
|
186
|
+
rows = teamRows(await io.listTeams(apiKey, baseUrl, timeout));
|
|
187
|
+
} catch {
|
|
188
|
+
return team;
|
|
189
|
+
}
|
|
190
|
+
if (team === null) {
|
|
191
|
+
const own = rows.find((t) => t.is_current);
|
|
192
|
+
return own ? { team_id: own.team_id, name: own.name, source: "key" } : null;
|
|
193
|
+
}
|
|
194
|
+
const row = rows.find((t) => t.team_id === team.team_id);
|
|
195
|
+
const ok = row !== void 0 && (scope === "all_teams" || row.is_current);
|
|
196
|
+
checks.push({
|
|
197
|
+
name: "team",
|
|
198
|
+
ok,
|
|
199
|
+
detail: ok ? `${row?.name ?? team.team_id} (from ${team.source})` : row === void 0 ? `${team.team_id} (from ${team.source}) is not one of your Teams: run \`curviate team list\`, then \`curviate team switch <team_id>\`` : `${team.team_id} (from ${team.source}) is not this key's Team: a Team key acts only in its own Team. Remove the Team, or run \`curviate setup --team ${team.team_id}\``,
|
|
200
|
+
// TEAM_ACCESS_DENIED's class: the credential does not reach that Team.
|
|
201
|
+
exit: 3
|
|
202
|
+
});
|
|
203
|
+
return { ...team, name: row?.name ?? null };
|
|
204
|
+
}
|
|
205
|
+
var NO_ACCOUNT = "No Account connected: ask your user to connect one in the dashboard, or create a Connect request.";
|
|
157
206
|
function renderHuman(report, io) {
|
|
158
207
|
const lines = [
|
|
159
208
|
`version ${report.version}`,
|
|
@@ -161,7 +210,9 @@ function renderHuman(report, io) {
|
|
|
161
210
|
`profile ${report.profile}`,
|
|
162
211
|
`base url ${report.base_url}`,
|
|
163
212
|
`credential ${report.credential_resolved ? `resolved from ${report.credential_source}` : "not found"}`,
|
|
164
|
-
`workspace ${report.tenant ?? "unknown (only a key `curviate setup` wrote carries it)"}
|
|
213
|
+
`workspace ${report.tenant ?? "unknown (only a key `curviate setup` wrote carries it)"}`,
|
|
214
|
+
`key scope ${report.key_scope === "all_teams" ? "all your Teams" : report.key_scope === "team" ? "one Team" : "unknown"}`,
|
|
215
|
+
`team ${report.team ? `${report.team.name ?? report.team.team_id} (${report.team.team_id}, from ${report.team.source})` : "none"}`
|
|
165
216
|
];
|
|
166
217
|
for (const check of report.checks) {
|
|
167
218
|
lines.push(`${check.ok ? "PASS" : "FAIL"} ${check.name}: ${check.detail}`);
|
|
@@ -169,12 +220,14 @@ function renderHuman(report, io) {
|
|
|
169
220
|
for (const account of report.accounts) {
|
|
170
221
|
lines.push(`account ${account.account_id} ${account.status}`);
|
|
171
222
|
}
|
|
223
|
+
if (report.next_step) lines.push(NO_ACCOUNT);
|
|
172
224
|
io.stdout.write(lines.join("\n") + "\n");
|
|
173
225
|
}
|
|
174
226
|
var doctorCommand = defineCommand({
|
|
175
227
|
meta: {
|
|
176
228
|
name: "doctor",
|
|
177
229
|
description: DESCRIPTIONS.doctor,
|
|
230
|
+
risk: "read",
|
|
178
231
|
examples: [
|
|
179
232
|
"curviate doctor",
|
|
180
233
|
"curviate doctor --json"
|
|
@@ -185,6 +238,7 @@ var doctorCommand = defineCommand({
|
|
|
185
238
|
"api-key": GLOBAL_FLAGS["api-key"],
|
|
186
239
|
"base-url": GLOBAL_FLAGS["base-url"],
|
|
187
240
|
timeout: GLOBAL_FLAGS.timeout,
|
|
241
|
+
team: GLOBAL_FLAGS.team,
|
|
188
242
|
json: GLOBAL_FLAGS.json
|
|
189
243
|
},
|
|
190
244
|
async run({ args }) {
|
|
@@ -5,6 +5,10 @@ import {
|
|
|
5
5
|
readAttachment,
|
|
6
6
|
toAttachmentPayload
|
|
7
7
|
} from "./chunk-5I6JJJIV.js";
|
|
8
|
+
import {
|
|
9
|
+
AS_ACCOUNT,
|
|
10
|
+
BUDGET
|
|
11
|
+
} from "./chunk-UWQPX4AE.js";
|
|
8
12
|
import {
|
|
9
13
|
buildPreviewOutput
|
|
10
14
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -15,25 +19,27 @@ import {
|
|
|
15
19
|
readableObject,
|
|
16
20
|
readablePage,
|
|
17
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
|
+
streamAll
|
|
23
|
+
} from "./chunk-L4CIJT6F.js";
|
|
24
|
+
import {
|
|
18
25
|
renderError,
|
|
19
26
|
renderSuccess,
|
|
20
27
|
renderUnexpectedError,
|
|
21
|
-
resolveEffectiveConfig,
|
|
22
|
-
streamAll,
|
|
23
28
|
writeNdjsonItem
|
|
24
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QM57YDJE.js";
|
|
25
30
|
import {
|
|
26
|
-
createClient
|
|
27
|
-
|
|
31
|
+
createClient,
|
|
32
|
+
resolveEffectiveConfig
|
|
33
|
+
} from "./chunk-YXVF5UST.js";
|
|
28
34
|
import {
|
|
29
35
|
GLOBAL_FLAGS,
|
|
30
36
|
READ_SINGLE_FLAGS,
|
|
31
37
|
WRITE_SINGLE_FLAGS,
|
|
32
38
|
readOnly
|
|
33
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RYWWSZUH.js";
|
|
34
40
|
import {
|
|
35
41
|
DESCRIPTIONS
|
|
36
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-73DJ3KNE.js";
|
|
37
43
|
import {
|
|
38
44
|
resolveTextOrStdin
|
|
39
45
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -67,7 +73,7 @@ function rejectAllOnNonPaginated(all, out) {
|
|
|
67
73
|
async function handleError(err, outOpts, out) {
|
|
68
74
|
const { CurviateError } = await import("@curviate/sdk");
|
|
69
75
|
if (err instanceof CurviateError) {
|
|
70
|
-
const { getExitCode } = await import("./exit-codes-
|
|
76
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
71
77
|
renderError(err, outOpts, out);
|
|
72
78
|
process.exit(getExitCode(err));
|
|
73
79
|
}
|
|
@@ -322,12 +328,13 @@ async function withClient(flags, fn) {
|
|
|
322
328
|
await fn(client, flags, buildOutputStreams());
|
|
323
329
|
}
|
|
324
330
|
var ACCOUNT_DESC = "Account the Draft publishes as (acc_...). Never defaulted: omit it for a Draft with no account yet.";
|
|
325
|
-
var SCHEDULE_DESC = "Publish at this time: ISO 8601 with an offset (e.g. 2026-10-12T09:00:00+02:00), passed through unchanged.
|
|
326
|
-
var ATTACH_DESC = "File to attach, repeatable; keeps the order given.
|
|
331
|
+
var SCHEDULE_DESC = "Publish at this time: ISO 8601 with an offset (e.g. 2026-10-12T09:00:00+02:00), passed through unchanged. A time in the future, not too close to another scheduled Draft on the same account (SCHEDULE_CONFLICT). Needs an account and text.";
|
|
332
|
+
var ATTACH_DESC = "File to attach, repeatable; keeps the order given. Several images (JPEG, PNG, GIF, WEBP), or one MP4 video, or one PDF, never mixed. A file over its size limit is refused.";
|
|
327
333
|
var draftListCommand = defineCommand({
|
|
328
334
|
meta: {
|
|
329
335
|
name: "list",
|
|
330
336
|
description: "List Drafts, newest first. With --status published it lists publish records instead (post id, account, time; never Drafts).",
|
|
337
|
+
risk: "read",
|
|
331
338
|
examples: [
|
|
332
339
|
"curviate core draft list",
|
|
333
340
|
"curviate core draft list --status scheduled --account acc_YOUR_ACCOUNT_ID --order asc",
|
|
@@ -349,7 +356,8 @@ var draftListCommand = defineCommand({
|
|
|
349
356
|
var draftGetCommand = defineCommand({
|
|
350
357
|
meta: {
|
|
351
358
|
name: "get",
|
|
352
|
-
description: "Get one Draft, with a fresh signed link
|
|
359
|
+
description: "Get one Draft, with a fresh signed link for each attachment. The links expire: fetch the Draft again for new ones.",
|
|
360
|
+
risk: "read",
|
|
353
361
|
examples: ["curviate core draft get drf_YOUR_DRAFT_ID"]
|
|
354
362
|
},
|
|
355
363
|
args: {
|
|
@@ -363,7 +371,16 @@ var draftGetCommand = defineCommand({
|
|
|
363
371
|
var draftCreateCommand = defineCommand({
|
|
364
372
|
meta: {
|
|
365
373
|
name: "create",
|
|
366
|
-
description: "Store a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time.
|
|
374
|
+
description: "Store a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time. Each account, and the no-account bucket, has a Draft limit and a media quota (DRAFT_LIMIT_REACHED, MEDIA_QUOTA_EXCEEDED). A retry creates a second Draft. Needs Automate.",
|
|
375
|
+
risk: "write",
|
|
376
|
+
rules: {
|
|
377
|
+
changes: "Stores a Draft; with --schedule-at, an account and text, Curviate publishes it at that time.",
|
|
378
|
+
visible_to: "You and your Team; nothing reaches LinkedIn until it is published.",
|
|
379
|
+
budget_rows: [],
|
|
380
|
+
retry: "Not safe: each call creates another Draft.",
|
|
381
|
+
undo: "`curviate core draft delete <draft_id>`."
|
|
382
|
+
},
|
|
383
|
+
errors: { TIER_REQUIRED: "your plan does not include Drafts (Automate).", DRAFT_LIMIT_REACHED: "the bucket already holds as many Drafts as it may.", MEDIA_QUOTA_EXCEEDED: "the media quota is used.", SCHEDULE_CONFLICT: "another Draft is scheduled too close to this time." },
|
|
367
384
|
examples: [
|
|
368
385
|
'curviate core draft create "Three things we learned shipping our first agent integration."',
|
|
369
386
|
'curviate core draft create "Launch day." --account acc_YOUR_ACCOUNT_ID --schedule-at 2026-10-12T09:00:00+02:00',
|
|
@@ -384,7 +401,16 @@ var draftCreateCommand = defineCommand({
|
|
|
384
401
|
var draftUpdateCommand = defineCommand({
|
|
385
402
|
meta: {
|
|
386
403
|
name: "update",
|
|
387
|
-
description: "Change a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds.",
|
|
404
|
+
description: "Change a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds. Needs Automate.",
|
|
405
|
+
risk: "write",
|
|
406
|
+
rules: {
|
|
407
|
+
changes: "Changes the parts of the Draft you pass; --schedule-at schedules or reschedules it, --unschedule cancels.",
|
|
408
|
+
visible_to: "You and your Team; nothing reaches LinkedIn until it is published.",
|
|
409
|
+
budget_rows: [],
|
|
410
|
+
retry: "Safe for the text and schedule: the same values written again leave the Draft the same. --attach appends the files again.",
|
|
411
|
+
undo: "Run it again with the previous values."
|
|
412
|
+
},
|
|
413
|
+
errors: { TIER_REQUIRED: "your plan does not include Drafts (Automate).", DRAFT_PUBLISHING: "the Draft is being published: read it again in a few seconds.", MEDIA_QUOTA_EXCEEDED: "the media quota is used.", SCHEDULE_CONFLICT: "another Draft is scheduled too close to this time." },
|
|
388
414
|
examples: [
|
|
389
415
|
'curviate core draft update drf_YOUR_DRAFT_ID --text "New wording."',
|
|
390
416
|
"curviate core draft update drf_YOUR_DRAFT_ID --schedule-at 2026-10-12T09:00:00+02:00",
|
|
@@ -408,6 +434,17 @@ var draftDeleteCommand = defineCommand({
|
|
|
408
434
|
meta: {
|
|
409
435
|
name: "delete",
|
|
410
436
|
description: "Delete a Draft and its stored media.",
|
|
437
|
+
risk: "high",
|
|
438
|
+
rules: {
|
|
439
|
+
changes: "Deletes the Draft and its stored media.",
|
|
440
|
+
visible_to: "You and your Team.",
|
|
441
|
+
budget_rows: [],
|
|
442
|
+
retry: "Safe: a deleted Draft is gone, so a repeat has nothing to delete.",
|
|
443
|
+
undo: "Cannot be undone.",
|
|
444
|
+
blast_radius: "One Draft, with its stored media."
|
|
445
|
+
},
|
|
446
|
+
errors: { RESOURCE_NOT_FOUND: "no such Draft." },
|
|
447
|
+
seeAlso: ["curviate core draft list"],
|
|
411
448
|
examples: ["curviate core draft delete drf_YOUR_DRAFT_ID"]
|
|
412
449
|
},
|
|
413
450
|
args: {
|
|
@@ -421,7 +458,16 @@ var draftDeleteCommand = defineCommand({
|
|
|
421
458
|
var draftPublishCommand = defineCommand({
|
|
422
459
|
meta: {
|
|
423
460
|
name: "publish",
|
|
424
|
-
description: "Publish a Draft now, under the same rules and safety limits as `curviate core post create`. Success deletes the Draft and prints the post id; a known failure leaves the Draft unchanged. If the error says the outcome is unknown, the post may be live: check the account's posts before retrying.",
|
|
461
|
+
description: "Publish a Draft now, under the same rules and safety limits as `curviate core post create`. Success deletes the Draft and prints the post id; a known failure leaves the Draft unchanged. If the error says the outcome is unknown, the post may be live: check the account's posts before retrying. Needs Automate.",
|
|
462
|
+
risk: "write",
|
|
463
|
+
rules: {
|
|
464
|
+
changes: "Publishes the Draft as a post now and deletes the Draft.",
|
|
465
|
+
visible_to: "Everyone who can see your posts on LinkedIn.",
|
|
466
|
+
budget_rows: ["posts"],
|
|
467
|
+
retry: "A known failure leaves the Draft unchanged and is safe to retry. If the error says the outcome is unknown, read `curviate core post user-posts me` first.",
|
|
468
|
+
undo: "`curviate core post delete <post_id>`."
|
|
469
|
+
},
|
|
470
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, TIER_REQUIRED: "your plan does not include Drafts (Automate).", DRAFT_NOT_PUBLISHABLE: "the Draft lacks what a post needs.", DRAFT_PUBLISHING: "the Draft is already being published." },
|
|
425
471
|
examples: ["curviate core draft publish drf_YOUR_DRAFT_ID"]
|
|
426
472
|
},
|
|
427
473
|
args: {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
intFlag
|
|
11
|
-
} from "./chunk-NNV2OYEF.js";
|
|
8
|
+
} from "./chunk-T6GBS5SS.js";
|
|
12
9
|
import {
|
|
13
10
|
buildPreviewOutput
|
|
14
11
|
} from "./chunk-TCUYH5GO.js";
|
|
12
|
+
import {
|
|
13
|
+
intFlag
|
|
14
|
+
} from "./chunk-NNV2OYEF.js";
|
|
15
15
|
import {
|
|
16
16
|
pageDelayFromFlags,
|
|
17
17
|
readCursorFlag,
|
|
@@ -19,20 +19,22 @@ import {
|
|
|
19
19
|
readableObject,
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
|
+
streamAll
|
|
23
|
+
} from "./chunk-L4CIJT6F.js";
|
|
24
|
+
import {
|
|
22
25
|
renderSuccess,
|
|
23
|
-
streamAll,
|
|
24
26
|
writeNdjsonItem
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-QM57YDJE.js";
|
|
28
|
+
import "./chunk-YXVF5UST.js";
|
|
27
29
|
import {
|
|
28
30
|
GLOBAL_FLAGS,
|
|
29
31
|
READ_SINGLE_FLAGS,
|
|
30
32
|
WRITE_SINGLE_FLAGS,
|
|
31
33
|
readOnly
|
|
32
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RYWWSZUH.js";
|
|
33
35
|
import {
|
|
34
36
|
DESCRIPTIONS
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-73DJ3KNE.js";
|
|
36
38
|
import "./chunk-ZYURL5VK.js";
|
|
37
39
|
|
|
38
40
|
// src/commands/enrollment.ts
|
|
@@ -53,10 +55,10 @@ function filters(f) {
|
|
|
53
55
|
};
|
|
54
56
|
one("motion", "motion_id");
|
|
55
57
|
one("contact", "contact_id");
|
|
56
|
-
one("step", "step_id");
|
|
57
58
|
one("done-step", "done_step");
|
|
58
59
|
one("outcome", "outcome");
|
|
59
60
|
one("variant", "variant_id");
|
|
61
|
+
if (f.step !== void 0) q["step_id"] = listFlag("step", f.step);
|
|
60
62
|
if (f.status !== void 0) q["status"] = listFlag("status", f.status);
|
|
61
63
|
if (f.reason !== void 0) q["reason"] = listFlag("reason", f.reason);
|
|
62
64
|
if (f.relationship !== void 0) q["relationship_at_enrollment"] = listFlag("relationship", f.relationship);
|
|
@@ -88,6 +90,8 @@ function show(result, f) {
|
|
|
88
90
|
async function runList(c, f) {
|
|
89
91
|
rejectPaginationModifiersWithoutAll(f, process);
|
|
90
92
|
const params = filters(f);
|
|
93
|
+
const accounts = f.accounts ?? f.account;
|
|
94
|
+
if (accounts !== void 0) params["account_id"] = listFlag("accounts", accounts);
|
|
91
95
|
if (f.limit !== void 0) params["limit"] = intFlag("limit", f.limit, 1, 100);
|
|
92
96
|
const cursor = readCursorFlag(f, process);
|
|
93
97
|
if (cursor) params["cursor"] = cursor;
|
|
@@ -104,7 +108,11 @@ async function runList(c, f) {
|
|
|
104
108
|
}
|
|
105
109
|
async function runGet(c, f) {
|
|
106
110
|
try {
|
|
107
|
-
|
|
111
|
+
const e = readableObject(await c.enrollments.get(String(f.id ?? "")));
|
|
112
|
+
show(e, f);
|
|
113
|
+
if (e.history_truncated && !outputOpts(f).json) {
|
|
114
|
+
process.stderr.write("history_truncated: Steps older than about 12 months are no longer stored in detail; the history lists the later ones only.\n");
|
|
115
|
+
}
|
|
108
116
|
} catch (err) {
|
|
109
117
|
await fail(err, f);
|
|
110
118
|
}
|
|
@@ -198,7 +206,7 @@ async function runBulk(c, f) {
|
|
|
198
206
|
}
|
|
199
207
|
const firstError = results.find((r) => r.outcome !== "ok");
|
|
200
208
|
if (firstError) {
|
|
201
|
-
const { getExitCode } = await import("./exit-codes-
|
|
209
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
202
210
|
process.stderr.write(`error: ${results.filter((r) => r.outcome !== "ok").length} of ${results.length} Enrollments were refused; each refusal is listed.
|
|
203
211
|
`);
|
|
204
212
|
process.exit(getExitCode(firstError.error?.code ?? "INTERNAL"));
|
|
@@ -217,7 +225,7 @@ var FILTER_ARGS = {
|
|
|
217
225
|
motion: { type: "string", description: "Only this Motion's Enrollments (mot_...)." },
|
|
218
226
|
contact: { type: "string", description: "Only this Contact's Enrollments (con_...)." },
|
|
219
227
|
status: { type: "string", description: "Comma list of pending, active, paused, finished, skipped." },
|
|
220
|
-
step: { type: "string", description: "Only Enrollments now at
|
|
228
|
+
step: { type: "string", description: "Only Enrollments now at one of these Step ids: repeatable or a comma list." },
|
|
221
229
|
version: { type: "string", description: "Only Enrollments running this Sequence version (1 or more)." },
|
|
222
230
|
"done-step": { type: "string", description: "Only Enrollments that ran this Step id. With --outcome: how it ended." },
|
|
223
231
|
outcome: { type: "string", description: "With --done-step: executed, skipped, failed, accepted, not_accepted, replied, no_reply or seen." },
|
|
@@ -237,7 +245,11 @@ var listCmd = defineCommand({
|
|
|
237
245
|
"curviate enrollment list --motion mot_YOUR_MOTION_ID --reason already_connected,known_chat --relationship connected"
|
|
238
246
|
]
|
|
239
247
|
},
|
|
240
|
-
args: {
|
|
248
|
+
args: {
|
|
249
|
+
...readOnly(GLOBAL_FLAGS),
|
|
250
|
+
...FILTER_ARGS,
|
|
251
|
+
accounts: { type: "string", description: "Only Enrollments on one of these Accounts: a comma list of ids (acc_...). --account a,b is accepted as the same filter." }
|
|
252
|
+
},
|
|
241
253
|
run: online(runList)
|
|
242
254
|
});
|
|
243
255
|
var getCmd = defineCommand({
|
|
@@ -271,7 +283,7 @@ var pauseCmd = defineCommand({
|
|
|
271
283
|
var resumeCmd = defineCommand({
|
|
272
284
|
meta: {
|
|
273
285
|
name: "resume",
|
|
274
|
-
description: "Without --at: lift your own pause; the Enrollment continues where it was. With --at: jump to that Step of its Sequence version. The jump is not guarded: it re-enters the Step even when that Step already sent, so a message can go out again. To retry a failed Step use `curviate enrollment retry <enrollment_id>`, which acts only on a failure.",
|
|
286
|
+
description: "Without --at: lift your own pause; the Enrollment continues where it was. With --at: jump to that Step of its Sequence version. The jump is not guarded: it re-enters the Step even when that Step already sent, so a message can go out again. To retry a failed Step use `curviate enrollment retry <enrollment_id>`, which acts only on a failure. Needs Automate.",
|
|
275
287
|
risk: "high",
|
|
276
288
|
rules: {
|
|
277
289
|
changes: "The Enrollment runs again from its Account; with --at, from the named Step.",
|
|
@@ -363,7 +375,7 @@ var eventMeta = (name, description, example) => ({
|
|
|
363
375
|
var eventCmd = defineCommand({
|
|
364
376
|
meta: eventMeta(
|
|
365
377
|
"event",
|
|
366
|
-
"Send a custom event to an active or paused Enrollment whose Sequence waits for it, for example once your agent wrote the researched text to the Contact's custom fields. Input only: fires no webhook.",
|
|
378
|
+
"Send a custom event to an active or paused Enrollment whose Sequence waits for it, for example once your agent wrote the researched text to the Contact's custom fields. Input only: fires no webhook. Needs Automate.",
|
|
367
379
|
"curviate enrollment event enr_YOUR_ENROLLMENT_ID research_ready"
|
|
368
380
|
),
|
|
369
381
|
args: EVENT_ARGS,
|
|
@@ -372,7 +384,7 @@ var eventCmd = defineCommand({
|
|
|
372
384
|
var signalCmd = defineCommand({
|
|
373
385
|
meta: eventMeta(
|
|
374
386
|
"signal",
|
|
375
|
-
"Deprecated alias of `curviate enrollment event`, accepted until 2027-01-19. Sends the same event.",
|
|
387
|
+
"Deprecated alias of `curviate enrollment event`, accepted until 2027-01-19. Sends the same event. Needs Automate.",
|
|
376
388
|
"curviate enrollment signal enr_YOUR_ENROLLMENT_ID research_ready"
|
|
377
389
|
),
|
|
378
390
|
args: EVENT_ARGS,
|
|
@@ -384,7 +396,7 @@ var signalCmd = defineCommand({
|
|
|
384
396
|
var reassignCmd = defineCommand({
|
|
385
397
|
meta: {
|
|
386
398
|
name: "reassign",
|
|
387
|
-
description: "Move an Enrollment to another sending Account of its Motion; it restarts there at the first Step of its version (one you paused stays paused). Refused, nothing changed, when its Account already engaged the person, the target already holds them, or the target has a chat with them.",
|
|
399
|
+
description: "Move an Enrollment to another sending Account of its Motion; it restarts there at the first Step of its version (one you paused stays paused). Refused, nothing changed, when its Account already engaged the person, the target already holds them, or the target has a chat with them. Needs Automate.",
|
|
388
400
|
risk: "high",
|
|
389
401
|
rules: {
|
|
390
402
|
changes: "The Enrollment restarts on the target Account; Steps already skipped are named in warnings.",
|
|
@@ -461,7 +473,7 @@ var enrollmentCommand = defineCommand({
|
|
|
461
473
|
bulk: bulkCmd
|
|
462
474
|
},
|
|
463
475
|
async run() {
|
|
464
|
-
const { showHelp } = await import("./examples-
|
|
476
|
+
const { showHelp } = await import("./examples-DQSVIIXZ.js");
|
|
465
477
|
await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
|
|
466
478
|
}
|
|
467
479
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
EXIT_CODE_MAP
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2W4RN5ON.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/examples.ts
|
|
7
7
|
import { renderUsage } from "citty";
|
|
@@ -22,7 +22,7 @@ function renderRules(rules) {
|
|
|
22
22
|
}
|
|
23
23
|
async function renderSections(cmd) {
|
|
24
24
|
const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
|
|
25
|
-
const { renderDocument } = meta?.document ? await import("./document-
|
|
25
|
+
const { renderDocument } = meta?.document ? await import("./document-BHYAUJ6F.js") : { renderDocument: () => [] };
|
|
26
26
|
const body = {
|
|
27
27
|
DOCUMENT: meta?.document ? renderDocument(meta.document) : void 0,
|
|
28
28
|
RULES: renderRules(meta?.rules),
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
writeExport
|
|
4
|
+
} from "./chunk-PPGKQJKU.js";
|
|
5
|
+
import {
|
|
6
|
+
fail,
|
|
7
|
+
outputOpts,
|
|
8
|
+
rootClient,
|
|
9
|
+
usage
|
|
10
|
+
} from "./chunk-T6GBS5SS.js";
|
|
11
|
+
import {
|
|
12
|
+
renderSuccess
|
|
13
|
+
} from "./chunk-QM57YDJE.js";
|
|
14
|
+
import {
|
|
15
|
+
downloadBinary
|
|
16
|
+
} from "./chunk-YXVF5UST.js";
|
|
17
|
+
import {
|
|
18
|
+
GLOBAL_FLAGS,
|
|
19
|
+
READ_SINGLE_FLAGS,
|
|
20
|
+
readOnly
|
|
21
|
+
} from "./chunk-RYWWSZUH.js";
|
|
22
|
+
import {
|
|
23
|
+
DESCRIPTIONS
|
|
24
|
+
} from "./chunk-73DJ3KNE.js";
|
|
25
|
+
import "./chunk-ZYURL5VK.js";
|
|
26
|
+
|
|
27
|
+
// src/commands/export.ts
|
|
28
|
+
import { defineCommand } from "citty";
|
|
29
|
+
var ERRORS = {
|
|
30
|
+
EXPORT_NOT_READY: "the export is queued, running or failed: read its status with `curviate export get <export_id>`.",
|
|
31
|
+
EXPORT_EXPIRED: "the file has expired: run the export again.",
|
|
32
|
+
EXPORT_REMOVED: "the export was removed because a Contact was deleted: run it again."
|
|
33
|
+
};
|
|
34
|
+
async function runGet(c, f) {
|
|
35
|
+
try {
|
|
36
|
+
renderSuccess(await c.exports.get(String(f.id ?? "")), outputOpts(f), process);
|
|
37
|
+
} catch (err) {
|
|
38
|
+
await fail(err, f);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async function runDownload(c, f) {
|
|
42
|
+
if (f.output === void 0 && process.stdout.isTTY) usage("pass -o <file> to save the export, or redirect stdout.");
|
|
43
|
+
try {
|
|
44
|
+
const bytes = await downloadBinary(() => c.exports.download(String(f.id ?? "")));
|
|
45
|
+
await writeExport(f.output, new Uint8Array(bytes));
|
|
46
|
+
} catch (err) {
|
|
47
|
+
await fail(err, f);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
var online = (fn) => async ({ args }) => {
|
|
51
|
+
const f = args;
|
|
52
|
+
await fn(await rootClient(f), f);
|
|
53
|
+
};
|
|
54
|
+
var ID = { type: "positional", description: "The export id (exp_...), from `curviate analytics export --job`." };
|
|
55
|
+
var getCmd = defineCommand({
|
|
56
|
+
meta: {
|
|
57
|
+
name: "get",
|
|
58
|
+
description: "One export job: status (queued, running, ready, failed, expired, removed), rows, bytes and when the file expires.",
|
|
59
|
+
risk: "read",
|
|
60
|
+
errors: { RESOURCE_NOT_FOUND: "no export with this id that you started." },
|
|
61
|
+
examples: ["curviate export get exp_YOUR_EXPORT_ID"]
|
|
62
|
+
},
|
|
63
|
+
args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
|
|
64
|
+
run: online(runGet)
|
|
65
|
+
});
|
|
66
|
+
var downloadCmd = defineCommand({
|
|
67
|
+
meta: {
|
|
68
|
+
name: "download",
|
|
69
|
+
description: "Download a ready export's file, byte for byte, to a file (mode 0600) or stdout.",
|
|
70
|
+
risk: "read",
|
|
71
|
+
errors: ERRORS,
|
|
72
|
+
output: ["The file's bytes only: CSV, JSON, NDJSON or a ZIP of several tables."],
|
|
73
|
+
examples: ["curviate export download exp_YOUR_EXPORT_ID -o analytics.zip"]
|
|
74
|
+
},
|
|
75
|
+
args: {
|
|
76
|
+
"api-key": GLOBAL_FLAGS["api-key"],
|
|
77
|
+
profile: GLOBAL_FLAGS.profile,
|
|
78
|
+
team: GLOBAL_FLAGS.team,
|
|
79
|
+
"base-url": GLOBAL_FLAGS["base-url"],
|
|
80
|
+
timeout: GLOBAL_FLAGS.timeout,
|
|
81
|
+
id: ID,
|
|
82
|
+
output: { type: "string", alias: "o", description: "File to write (mode 0600), or - for stdout." }
|
|
83
|
+
},
|
|
84
|
+
run: online(runDownload)
|
|
85
|
+
});
|
|
86
|
+
var exportCommand = defineCommand({
|
|
87
|
+
meta: { name: "export", description: DESCRIPTIONS.export },
|
|
88
|
+
subCommands: { get: getCmd, download: downloadCmd },
|
|
89
|
+
async run() {
|
|
90
|
+
const { showHelp } = await import("./examples-DQSVIIXZ.js");
|
|
91
|
+
await showHelp(exportCommand, ["curviate", "export"]);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
exportCommand
|
|
96
|
+
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-25MO7BYN.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
8
8
|
readMaxPagesFlag,
|
|
9
9
|
readablePage,
|
|
10
10
|
rejectPaginationModifiersWithoutAll,
|
|
11
|
+
streamAll
|
|
12
|
+
} from "./chunk-L4CIJT6F.js";
|
|
13
|
+
import {
|
|
11
14
|
renderError,
|
|
12
15
|
renderSuccess,
|
|
13
16
|
renderUnexpectedError,
|
|
14
|
-
resolveEffectiveConfig,
|
|
15
|
-
streamAll,
|
|
16
17
|
writeNdjsonItem
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-RXWODUWA.js";
|
|
18
|
+
} from "./chunk-QM57YDJE.js";
|
|
19
19
|
import {
|
|
20
|
-
createClient
|
|
21
|
-
|
|
20
|
+
createClient,
|
|
21
|
+
resolveEffectiveConfig
|
|
22
|
+
} from "./chunk-YXVF5UST.js";
|
|
22
23
|
import {
|
|
23
24
|
GLOBAL_FLAGS,
|
|
24
25
|
readOnly
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RYWWSZUH.js";
|
|
26
27
|
import {
|
|
27
28
|
DESCRIPTIONS
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-73DJ3KNE.js";
|
|
29
30
|
import "./chunk-ZYURL5VK.js";
|
|
31
|
+
import "./chunk-2W4RN5ON.js";
|
|
30
32
|
|
|
31
33
|
// src/commands/feed.ts
|
|
32
34
|
import { defineCommand } from "citty";
|
|
@@ -47,7 +49,7 @@ function resolveOutputOpts(flags) {
|
|
|
47
49
|
async function handleSdkError(err, outOpts, out) {
|
|
48
50
|
const { CurviateError } = await import("@curviate/sdk");
|
|
49
51
|
if (err instanceof CurviateError) {
|
|
50
|
-
const { getExitCode } = await import("./exit-codes-
|
|
52
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
51
53
|
renderError(err, outOpts, out);
|
|
52
54
|
process.exit(getExitCode(err));
|
|
53
55
|
}
|
|
@@ -96,6 +98,7 @@ var feedHomeCommand = defineCommand({
|
|
|
96
98
|
meta: {
|
|
97
99
|
name: "home",
|
|
98
100
|
description: "Read the connected account's LinkedIn home feed as agent-actionable posts. Every post carries its text and created_at. On the default recent sort every engagement count is null (unknown, not zero) and only the author's name resolves; --sort relevant fills engagement and the author's ids.",
|
|
101
|
+
risk: "read",
|
|
99
102
|
examples: [
|
|
100
103
|
"curviate core feed home",
|
|
101
104
|
"curviate core feed home --sort relevant",
|