@curviate/cli 0.11.0 → 0.13.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 +60 -1
- package/README.md +75 -5
- package/dist/{account-P5K5UDWF.js → account-7AUDAMIK.js} +226 -131
- package/dist/{chunk-OSQ643UW.js → chunk-HMAGEMF7.js} +1 -0
- package/dist/cli.js +12 -12
- package/dist/company-RU2CA5DY.js +337 -0
- package/dist/{connect-J5NPWKAQ.js → connect-QT6ZOS75.js} +8 -8
- package/dist/{exit-codes-2ASIFXGR.js → exit-codes-ZTY2NY3X.js} +1 -1
- package/dist/{inbox-5P5TB6AI.js → inbox-DN7X7CM2.js} +1 -1
- package/dist/{job-EIXYBDF6.js → job-FGGQEXSU.js} +1 -1
- package/dist/{message-646BIYRH.js → message-6K5E3CUF.js} +1 -1
- package/dist/{post-TI6KV26J.js → post-2JQZ3OSF.js} +4 -4
- package/dist/{profile-TUIZZKM7.js → profile-DD5GMGNL.js} +8 -8
- package/dist/{recruiter-7K56E2QA.js → recruiter-XHVMQWK6.js} +4 -4
- package/dist/{sales-nav-I2KMQFFF.js → sales-nav-QTSTJMKA.js} +290 -12
- package/dist/{search-TF6OOEUE.js → search-ZGTS45BT.js} +5 -5
- package/dist/{webhook-VHREWB56.js → webhook-XPWBI675.js} +4 -4
- package/package.json +2 -2
- package/dist/company-IMAVQBZL.js +0 -92
package/dist/cli.js
CHANGED
|
@@ -144,18 +144,18 @@ var main = defineCommand({
|
|
|
144
144
|
// ---------------------------------------------------------------------------
|
|
145
145
|
// Noun groups — lazy-loaded on first invocation.
|
|
146
146
|
// ---------------------------------------------------------------------------
|
|
147
|
-
profile: () => import("./profile-
|
|
148
|
-
company: () => import("./company-
|
|
149
|
-
job: () => import("./job-
|
|
150
|
-
connect: () => import("./connect-
|
|
151
|
-
search: () => import("./search-
|
|
152
|
-
inbox: () => import("./inbox-
|
|
153
|
-
message: () => import("./message-
|
|
154
|
-
post: () => import("./post-
|
|
155
|
-
account: () => import("./account-
|
|
156
|
-
webhook: () => import("./webhook-
|
|
157
|
-
"sales-nav": () => import("./sales-nav-
|
|
158
|
-
recruiter: () => import("./recruiter-
|
|
147
|
+
profile: () => import("./profile-DD5GMGNL.js").then((m) => m.profileCommand),
|
|
148
|
+
company: () => import("./company-RU2CA5DY.js").then((m) => m.companyCommand),
|
|
149
|
+
job: () => import("./job-FGGQEXSU.js").then((m) => m.jobCommand),
|
|
150
|
+
connect: () => import("./connect-QT6ZOS75.js").then((m) => m.connectCommand),
|
|
151
|
+
search: () => import("./search-ZGTS45BT.js").then((m) => m.searchCommand),
|
|
152
|
+
inbox: () => import("./inbox-DN7X7CM2.js").then((m) => m.inboxCommand),
|
|
153
|
+
message: () => import("./message-6K5E3CUF.js").then((m) => m.messageCommand),
|
|
154
|
+
post: () => import("./post-2JQZ3OSF.js").then((m) => m.postCommand),
|
|
155
|
+
account: () => import("./account-7AUDAMIK.js").then((m) => m.accountCommand),
|
|
156
|
+
webhook: () => import("./webhook-XPWBI675.js").then((m) => m.webhookCommand),
|
|
157
|
+
"sales-nav": () => import("./sales-nav-QTSTJMKA.js").then((m) => m.salesNavCommand),
|
|
158
|
+
recruiter: () => import("./recruiter-XHVMQWK6.js").then((m) => m.recruiterCommand)
|
|
159
159
|
},
|
|
160
160
|
async run() {
|
|
161
161
|
const { runMain } = await import("citty");
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
streamAll
|
|
4
|
+
} from "./chunk-GXTZION6.js";
|
|
5
|
+
import {
|
|
6
|
+
slimCompany,
|
|
7
|
+
slimSearchJobs,
|
|
8
|
+
slimSearchPeople,
|
|
9
|
+
slimSearchPosts
|
|
10
|
+
} from "./chunk-SSPILTKF.js";
|
|
11
|
+
import {
|
|
12
|
+
resolveIdentifier
|
|
13
|
+
} from "./chunk-DMQZEPQE.js";
|
|
14
|
+
import {
|
|
15
|
+
createClient,
|
|
16
|
+
renderError,
|
|
17
|
+
renderSuccess,
|
|
18
|
+
renderUnexpectedError,
|
|
19
|
+
resolveEffectiveConfig
|
|
20
|
+
} from "./chunk-JXF47TRY.js";
|
|
21
|
+
import {
|
|
22
|
+
GLOBAL_FLAGS
|
|
23
|
+
} from "./chunk-4JHGVY7R.js";
|
|
24
|
+
|
|
25
|
+
// src/commands/company.ts
|
|
26
|
+
import { defineCommand } from "citty";
|
|
27
|
+
function buildOutputStreams() {
|
|
28
|
+
return {
|
|
29
|
+
stdout: { write: (s) => process.stdout.write(s) },
|
|
30
|
+
stderr: { write: (s) => process.stderr.write(s) }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function requireAccount(account, out) {
|
|
34
|
+
if (!account) {
|
|
35
|
+
out.stderr.write("error: --account is required for this command. Set it via --account, CURVIATE_ACCOUNT, or `curviate config set-account`.\n");
|
|
36
|
+
process.exit(2);
|
|
37
|
+
}
|
|
38
|
+
return account;
|
|
39
|
+
}
|
|
40
|
+
function rejectPreviewOnRead(preview, out) {
|
|
41
|
+
if (preview) {
|
|
42
|
+
out.stderr.write("error: --preview is only valid on write commands (mutations). Reads just run.\n");
|
|
43
|
+
process.exit(2);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function resolveOutputOpts(flags) {
|
|
47
|
+
return {
|
|
48
|
+
json: (flags.json ?? false) || !process.stdout.isTTY,
|
|
49
|
+
isTTY: process.stdout.isTTY ?? false,
|
|
50
|
+
fields: flags.fields,
|
|
51
|
+
verbose: flags.verbose ?? false
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
async function handleSdkError(err, outOpts, out) {
|
|
55
|
+
const { CurviateError } = await import("@curviate/sdk");
|
|
56
|
+
if (err instanceof CurviateError) {
|
|
57
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
58
|
+
renderError(err, outOpts, out);
|
|
59
|
+
process.exit(getExitCode(err.code));
|
|
60
|
+
}
|
|
61
|
+
renderUnexpectedError(err, out);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
async function runCompanyGet(client, flags, out) {
|
|
65
|
+
rejectPreviewOnRead(flags.preview, out);
|
|
66
|
+
if (flags.all) {
|
|
67
|
+
out.stderr.write("error: --all is not supported on non-paginated commands.\n");
|
|
68
|
+
process.exit(2);
|
|
69
|
+
}
|
|
70
|
+
if (flags.sections !== void 0) {
|
|
71
|
+
out.stderr.write("error: --sections is not supported on company commands.\n");
|
|
72
|
+
process.exit(2);
|
|
73
|
+
}
|
|
74
|
+
const accountId = requireAccount(flags.account, out);
|
|
75
|
+
const rawId = flags.id ?? "";
|
|
76
|
+
const resolvedId = resolveIdentifier(rawId);
|
|
77
|
+
const outOpts = { ...resolveOutputOpts(flags), slim: slimCompany };
|
|
78
|
+
try {
|
|
79
|
+
const result = await client.account(accountId).companies.get(resolvedId);
|
|
80
|
+
renderSuccess(result, outOpts, out);
|
|
81
|
+
} catch (err) {
|
|
82
|
+
await handleSdkError(err, outOpts, out);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
async function runCompanyEmployees(client, flags, out) {
|
|
86
|
+
rejectPreviewOnRead(flags.preview, out);
|
|
87
|
+
const accountId = requireAccount(flags.account, out);
|
|
88
|
+
const identifier = flags.id ?? "";
|
|
89
|
+
const ns = client.account(accountId);
|
|
90
|
+
const outOpts = resolveOutputOpts(flags);
|
|
91
|
+
const params = {};
|
|
92
|
+
if (flags.limit) params["limit"] = parseInt(flags.limit, 10);
|
|
93
|
+
if (flags.cursor) params["cursor"] = flags.cursor;
|
|
94
|
+
if (flags.keywords) params["keywords"] = flags.keywords;
|
|
95
|
+
if (flags.location) params["location"] = flags.location;
|
|
96
|
+
try {
|
|
97
|
+
if (flags.all) {
|
|
98
|
+
const maxPages = flags["max-pages"] ? parseInt(flags["max-pages"], 10) : 100;
|
|
99
|
+
const fn = (p) => ns.companies.employees(identifier, p);
|
|
100
|
+
for await (const item of streamAll(fn, params, {
|
|
101
|
+
maxPages,
|
|
102
|
+
onTruncated: (n) => out.stderr.write(`Streaming truncated at ${n} page(s). Use --all --max-pages or --cursor for manual paging.
|
|
103
|
+
`)
|
|
104
|
+
})) {
|
|
105
|
+
out.stdout.write(JSON.stringify(item) + "\n");
|
|
106
|
+
}
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const result = await ns.companies.employees(identifier, params);
|
|
110
|
+
renderSuccess(result, { ...outOpts, slim: slimSearchPeople }, out);
|
|
111
|
+
} catch (err) {
|
|
112
|
+
await handleSdkError(err, outOpts, out);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
async function runCompanyPosts(client, flags, out) {
|
|
116
|
+
rejectPreviewOnRead(flags.preview, out);
|
|
117
|
+
const accountId = requireAccount(flags.account, out);
|
|
118
|
+
const identifier = flags.id ?? "";
|
|
119
|
+
const ns = client.account(accountId);
|
|
120
|
+
const outOpts = resolveOutputOpts(flags);
|
|
121
|
+
const params = {};
|
|
122
|
+
if (flags.limit) params["limit"] = parseInt(flags.limit, 10);
|
|
123
|
+
if (flags.cursor) params["cursor"] = flags.cursor;
|
|
124
|
+
try {
|
|
125
|
+
if (flags.all) {
|
|
126
|
+
const maxPages = flags["max-pages"] ? parseInt(flags["max-pages"], 10) : 100;
|
|
127
|
+
const fn = (p) => ns.companies.posts(identifier, p);
|
|
128
|
+
for await (const item of streamAll(fn, params, {
|
|
129
|
+
maxPages,
|
|
130
|
+
onTruncated: (n) => out.stderr.write(`Streaming truncated at ${n} page(s). Use --all --max-pages or --cursor for manual paging.
|
|
131
|
+
`)
|
|
132
|
+
})) {
|
|
133
|
+
out.stdout.write(JSON.stringify(item) + "\n");
|
|
134
|
+
}
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const result = await ns.companies.posts(identifier, params);
|
|
138
|
+
renderSuccess(result, { ...outOpts, slim: slimSearchPosts }, out);
|
|
139
|
+
} catch (err) {
|
|
140
|
+
await handleSdkError(err, outOpts, out);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
async function runCompanyJobs(client, flags, out) {
|
|
144
|
+
rejectPreviewOnRead(flags.preview, out);
|
|
145
|
+
const accountId = requireAccount(flags.account, out);
|
|
146
|
+
const identifier = flags.id ?? "";
|
|
147
|
+
const ns = client.account(accountId);
|
|
148
|
+
const outOpts = resolveOutputOpts(flags);
|
|
149
|
+
const params = {};
|
|
150
|
+
if (flags.limit) params["limit"] = parseInt(flags.limit, 10);
|
|
151
|
+
if (flags.cursor) params["cursor"] = flags.cursor;
|
|
152
|
+
if (flags.keywords) params["keywords"] = flags.keywords;
|
|
153
|
+
try {
|
|
154
|
+
if (flags.all) {
|
|
155
|
+
const maxPages = flags["max-pages"] ? parseInt(flags["max-pages"], 10) : 100;
|
|
156
|
+
const fn = (p) => ns.companies.jobs(identifier, p);
|
|
157
|
+
for await (const item of streamAll(fn, params, {
|
|
158
|
+
maxPages,
|
|
159
|
+
onTruncated: (n) => out.stderr.write(`Streaming truncated at ${n} page(s). Use --all --max-pages or --cursor for manual paging.
|
|
160
|
+
`)
|
|
161
|
+
})) {
|
|
162
|
+
out.stdout.write(JSON.stringify(item) + "\n");
|
|
163
|
+
}
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const result = await ns.companies.jobs(identifier, params);
|
|
167
|
+
renderSuccess(result, { ...outOpts, slim: slimSearchJobs }, out);
|
|
168
|
+
} catch (err) {
|
|
169
|
+
await handleSdkError(err, outOpts, out);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
async function runCompanyFollowers(client, flags, out) {
|
|
173
|
+
rejectPreviewOnRead(flags.preview, out);
|
|
174
|
+
const accountId = requireAccount(flags.account, out);
|
|
175
|
+
const identifier = flags.id ?? "";
|
|
176
|
+
const ns = client.account(accountId);
|
|
177
|
+
const outOpts = resolveOutputOpts(flags);
|
|
178
|
+
const params = {};
|
|
179
|
+
if (flags.limit) params["limit"] = parseInt(flags.limit, 10);
|
|
180
|
+
if (flags.cursor) params["cursor"] = flags.cursor;
|
|
181
|
+
try {
|
|
182
|
+
if (flags.all) {
|
|
183
|
+
const maxPages = flags["max-pages"] ? parseInt(flags["max-pages"], 10) : 100;
|
|
184
|
+
const fn = (p) => ns.companies.followers(identifier, p);
|
|
185
|
+
for await (const item of streamAll(fn, params, {
|
|
186
|
+
maxPages,
|
|
187
|
+
onTruncated: (n) => out.stderr.write(`Streaming truncated at ${n} page(s). Use --all --max-pages or --cursor for manual paging.
|
|
188
|
+
`)
|
|
189
|
+
})) {
|
|
190
|
+
out.stdout.write(JSON.stringify(item) + "\n");
|
|
191
|
+
}
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const result = await ns.companies.followers(identifier, params);
|
|
195
|
+
renderSuccess(result, outOpts, out);
|
|
196
|
+
} catch (err) {
|
|
197
|
+
await handleSdkError(err, outOpts, out);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
var companyEmployeesCommand = defineCommand({
|
|
201
|
+
meta: { name: "employees", description: "List people who currently work at the company." },
|
|
202
|
+
args: {
|
|
203
|
+
...GLOBAL_FLAGS,
|
|
204
|
+
id: { type: "positional", description: "The company's numeric provider_id (the id field of `company <id>`)." },
|
|
205
|
+
keywords: { type: "string", description: "Free-text keyword filter across employee profile fields." },
|
|
206
|
+
location: { type: "string", description: "Opaque location id from `search parameters --type LOCATION`." }
|
|
207
|
+
},
|
|
208
|
+
async run({ args }) {
|
|
209
|
+
const flags = args;
|
|
210
|
+
const cfg = await resolveEffectiveConfig({
|
|
211
|
+
apiKey: flags["api-key"],
|
|
212
|
+
baseUrl: flags["base-url"],
|
|
213
|
+
timeout: flags.timeout,
|
|
214
|
+
account: flags.account,
|
|
215
|
+
profile: flags.profile
|
|
216
|
+
});
|
|
217
|
+
if (!cfg.apiKey) {
|
|
218
|
+
process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
|
|
219
|
+
process.exit(3);
|
|
220
|
+
}
|
|
221
|
+
const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
|
|
222
|
+
const out = buildOutputStreams();
|
|
223
|
+
await runCompanyEmployees(client, { ...flags, account: flags.account ?? cfg.account }, out);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
var companyPostsCommand = defineCommand({
|
|
227
|
+
meta: { name: "posts", description: "List the company's posts." },
|
|
228
|
+
args: {
|
|
229
|
+
...GLOBAL_FLAGS,
|
|
230
|
+
id: { type: "positional", description: "The company's numeric provider_id (the id field of `company <id>`)." }
|
|
231
|
+
},
|
|
232
|
+
async run({ args }) {
|
|
233
|
+
const flags = args;
|
|
234
|
+
const cfg = await resolveEffectiveConfig({
|
|
235
|
+
apiKey: flags["api-key"],
|
|
236
|
+
baseUrl: flags["base-url"],
|
|
237
|
+
timeout: flags.timeout,
|
|
238
|
+
account: flags.account,
|
|
239
|
+
profile: flags.profile
|
|
240
|
+
});
|
|
241
|
+
if (!cfg.apiKey) {
|
|
242
|
+
process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
|
|
243
|
+
process.exit(3);
|
|
244
|
+
}
|
|
245
|
+
const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
|
|
246
|
+
const out = buildOutputStreams();
|
|
247
|
+
await runCompanyPosts(client, { ...flags, account: flags.account ?? cfg.account }, out);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
var companyJobsCommand = defineCommand({
|
|
251
|
+
meta: { name: "jobs", description: "List the company's open job postings." },
|
|
252
|
+
args: {
|
|
253
|
+
...GLOBAL_FLAGS,
|
|
254
|
+
id: { type: "positional", description: "The company's numeric provider_id (the id field of `company <id>`)." },
|
|
255
|
+
keywords: { type: "string", description: "Free-text keyword filter across job postings." }
|
|
256
|
+
},
|
|
257
|
+
async run({ args }) {
|
|
258
|
+
const flags = args;
|
|
259
|
+
const cfg = await resolveEffectiveConfig({
|
|
260
|
+
apiKey: flags["api-key"],
|
|
261
|
+
baseUrl: flags["base-url"],
|
|
262
|
+
timeout: flags.timeout,
|
|
263
|
+
account: flags.account,
|
|
264
|
+
profile: flags.profile
|
|
265
|
+
});
|
|
266
|
+
if (!cfg.apiKey) {
|
|
267
|
+
process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
|
|
268
|
+
process.exit(3);
|
|
269
|
+
}
|
|
270
|
+
const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
|
|
271
|
+
const out = buildOutputStreams();
|
|
272
|
+
await runCompanyJobs(client, { ...flags, account: flags.account ?? cfg.account }, out);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
var companyFollowersCommand = defineCommand({
|
|
276
|
+
meta: { name: "followers", description: "List the company's followers. Requires page-admin permission." },
|
|
277
|
+
args: {
|
|
278
|
+
...GLOBAL_FLAGS,
|
|
279
|
+
id: { type: "positional", description: "The company's numeric provider_id (the id field of `company <id>`)." }
|
|
280
|
+
},
|
|
281
|
+
async run({ args }) {
|
|
282
|
+
const flags = args;
|
|
283
|
+
const cfg = await resolveEffectiveConfig({
|
|
284
|
+
apiKey: flags["api-key"],
|
|
285
|
+
baseUrl: flags["base-url"],
|
|
286
|
+
timeout: flags.timeout,
|
|
287
|
+
account: flags.account,
|
|
288
|
+
profile: flags.profile
|
|
289
|
+
});
|
|
290
|
+
if (!cfg.apiKey) {
|
|
291
|
+
process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
|
|
292
|
+
process.exit(3);
|
|
293
|
+
}
|
|
294
|
+
const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
|
|
295
|
+
const out = buildOutputStreams();
|
|
296
|
+
await runCompanyFollowers(client, { ...flags, account: flags.account ?? cfg.account }, out);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
var companyCommand = defineCommand({
|
|
300
|
+
meta: { name: "company", description: "Fetch a company profile by URL, slug, or numeric id, and its sub-resources." },
|
|
301
|
+
args: {
|
|
302
|
+
...GLOBAL_FLAGS,
|
|
303
|
+
id: { type: "positional", description: "Company identifier (URL, slug, or native id)." },
|
|
304
|
+
sections: { type: "string", description: "Not supported on company commands \u2014 usage error (exit 2) if supplied." }
|
|
305
|
+
},
|
|
306
|
+
subCommands: {
|
|
307
|
+
employees: companyEmployeesCommand,
|
|
308
|
+
posts: companyPostsCommand,
|
|
309
|
+
jobs: companyJobsCommand,
|
|
310
|
+
followers: companyFollowersCommand
|
|
311
|
+
},
|
|
312
|
+
async run({ args }) {
|
|
313
|
+
const flags = args;
|
|
314
|
+
const cfg = await resolveEffectiveConfig({
|
|
315
|
+
apiKey: flags["api-key"],
|
|
316
|
+
baseUrl: flags["base-url"],
|
|
317
|
+
timeout: flags.timeout,
|
|
318
|
+
account: flags.account,
|
|
319
|
+
profile: flags.profile
|
|
320
|
+
});
|
|
321
|
+
if (!cfg.apiKey) {
|
|
322
|
+
process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
|
|
323
|
+
process.exit(3);
|
|
324
|
+
}
|
|
325
|
+
const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
|
|
326
|
+
const out = buildOutputStreams();
|
|
327
|
+
await runCompanyGet(client, { ...flags, account: flags.account ?? cfg.account }, out);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
export {
|
|
331
|
+
companyCommand,
|
|
332
|
+
runCompanyEmployees,
|
|
333
|
+
runCompanyFollowers,
|
|
334
|
+
runCompanyGet,
|
|
335
|
+
runCompanyJobs,
|
|
336
|
+
runCompanyPosts
|
|
337
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
streamAll
|
|
4
|
-
} from "./chunk-GXTZION6.js";
|
|
5
2
|
import {
|
|
6
3
|
buildPreviewOutput
|
|
7
4
|
} from "./chunk-R3VLWLVV.js";
|
|
5
|
+
import {
|
|
6
|
+
streamAll
|
|
7
|
+
} from "./chunk-GXTZION6.js";
|
|
8
8
|
import {
|
|
9
9
|
slimInviteReceived,
|
|
10
10
|
slimInviteReceivedItem,
|
|
@@ -79,7 +79,7 @@ async function runConnectSend(client, flags, out) {
|
|
|
79
79
|
} catch (err) {
|
|
80
80
|
const { CurviateError } = await import("@curviate/sdk");
|
|
81
81
|
if (err instanceof CurviateError) {
|
|
82
|
-
const { getExitCode } = await import("./exit-codes-
|
|
82
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
83
83
|
renderError(err, outOpts, out);
|
|
84
84
|
process.exit(getExitCode(err.code));
|
|
85
85
|
}
|
|
@@ -117,7 +117,7 @@ async function runConnectSent(client, flags, out) {
|
|
|
117
117
|
} catch (err) {
|
|
118
118
|
const { CurviateError } = await import("@curviate/sdk");
|
|
119
119
|
if (err instanceof CurviateError) {
|
|
120
|
-
const { getExitCode } = await import("./exit-codes-
|
|
120
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
121
121
|
renderError(err, outOpts, out);
|
|
122
122
|
process.exit(getExitCode(err.code));
|
|
123
123
|
}
|
|
@@ -155,7 +155,7 @@ async function runConnectReceived(client, flags, out) {
|
|
|
155
155
|
} catch (err) {
|
|
156
156
|
const { CurviateError } = await import("@curviate/sdk");
|
|
157
157
|
if (err instanceof CurviateError) {
|
|
158
|
-
const { getExitCode } = await import("./exit-codes-
|
|
158
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
159
159
|
renderError(err, outOpts, out);
|
|
160
160
|
process.exit(getExitCode(err.code));
|
|
161
161
|
}
|
|
@@ -193,7 +193,7 @@ async function runConnectRespond(client, flags, out) {
|
|
|
193
193
|
} catch (err) {
|
|
194
194
|
const { CurviateError } = await import("@curviate/sdk");
|
|
195
195
|
if (err instanceof CurviateError) {
|
|
196
|
-
const { getExitCode } = await import("./exit-codes-
|
|
196
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
197
197
|
renderError(err, outOpts, out);
|
|
198
198
|
process.exit(getExitCode(err.code));
|
|
199
199
|
}
|
|
@@ -222,7 +222,7 @@ async function runConnectCancel(client, flags, out) {
|
|
|
222
222
|
} catch (err) {
|
|
223
223
|
const { CurviateError } = await import("@curviate/sdk");
|
|
224
224
|
if (err instanceof CurviateError) {
|
|
225
|
-
const { getExitCode } = await import("./exit-codes-
|
|
225
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
226
226
|
renderError(err, outOpts, out);
|
|
227
227
|
process.exit(getExitCode(err.code));
|
|
228
228
|
}
|
|
@@ -69,7 +69,7 @@ function validateIsoZTimestamp(value, flagName, out) {
|
|
|
69
69
|
async function handleSdkError(err, outOpts, out) {
|
|
70
70
|
const { CurviateError } = await import("@curviate/sdk");
|
|
71
71
|
if (err instanceof CurviateError) {
|
|
72
|
-
const { getExitCode } = await import("./exit-codes-
|
|
72
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
73
73
|
renderError(err, outOpts, out);
|
|
74
74
|
process.exit(getExitCode(err.code));
|
|
75
75
|
}
|
|
@@ -55,7 +55,7 @@ async function runJobGet(client, flags, out) {
|
|
|
55
55
|
} catch (err) {
|
|
56
56
|
const { CurviateError } = await import("@curviate/sdk");
|
|
57
57
|
if (err instanceof CurviateError) {
|
|
58
|
-
const { getExitCode } = await import("./exit-codes-
|
|
58
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
59
59
|
renderError(err, outOpts, out);
|
|
60
60
|
process.exit(getExitCode(err.code));
|
|
61
61
|
}
|
|
@@ -73,7 +73,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
73
73
|
async function handleSdkError(err, outOpts, out) {
|
|
74
74
|
const { CurviateError } = await import("@curviate/sdk");
|
|
75
75
|
if (err instanceof CurviateError) {
|
|
76
|
-
const { getExitCode } = await import("./exit-codes-
|
|
76
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
77
77
|
renderError(err, outOpts, out);
|
|
78
78
|
process.exit(getExitCode(err.code));
|
|
79
79
|
}
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
resolveTextOrStdin
|
|
8
8
|
} from "./chunk-U7Y4EXHT.js";
|
|
9
|
-
import {
|
|
10
|
-
streamAll
|
|
11
|
-
} from "./chunk-GXTZION6.js";
|
|
12
9
|
import {
|
|
13
10
|
buildPreviewOutput
|
|
14
11
|
} from "./chunk-R3VLWLVV.js";
|
|
12
|
+
import {
|
|
13
|
+
streamAll
|
|
14
|
+
} from "./chunk-GXTZION6.js";
|
|
15
15
|
import {
|
|
16
16
|
createClient,
|
|
17
17
|
renderError,
|
|
@@ -72,7 +72,7 @@ function normalizeAttachPaths(attach) {
|
|
|
72
72
|
async function handleSdkError(err, outOpts, out) {
|
|
73
73
|
const { CurviateError } = await import("@curviate/sdk");
|
|
74
74
|
if (err instanceof CurviateError) {
|
|
75
|
-
const { getExitCode } = await import("./exit-codes-
|
|
75
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
76
76
|
renderError(err, outOpts, out);
|
|
77
77
|
process.exit(getExitCode(err.code));
|
|
78
78
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
streamAll
|
|
4
|
-
} from "./chunk-GXTZION6.js";
|
|
5
2
|
import {
|
|
6
3
|
buildPreviewOutput
|
|
7
4
|
} from "./chunk-R3VLWLVV.js";
|
|
5
|
+
import {
|
|
6
|
+
streamAll
|
|
7
|
+
} from "./chunk-GXTZION6.js";
|
|
8
8
|
import {
|
|
9
9
|
slimProfile,
|
|
10
10
|
slimProfileMe
|
|
@@ -141,7 +141,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
141
141
|
} catch (err) {
|
|
142
142
|
const { CurviateError } = await import("@curviate/sdk");
|
|
143
143
|
if (err instanceof CurviateError) {
|
|
144
|
-
const { getExitCode } = await import("./exit-codes-
|
|
144
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
145
145
|
renderError(err, outOpts, out);
|
|
146
146
|
process.exit(getExitCode(err.code));
|
|
147
147
|
}
|
|
@@ -161,7 +161,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
161
161
|
} catch (err) {
|
|
162
162
|
const { CurviateError } = await import("@curviate/sdk");
|
|
163
163
|
if (err instanceof CurviateError) {
|
|
164
|
-
const { getExitCode } = await import("./exit-codes-
|
|
164
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
165
165
|
renderError(err, outOpts, out);
|
|
166
166
|
process.exit(getExitCode(err.code));
|
|
167
167
|
}
|
|
@@ -278,7 +278,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
278
278
|
} catch (err) {
|
|
279
279
|
const { CurviateError } = await import("@curviate/sdk");
|
|
280
280
|
if (err instanceof CurviateError) {
|
|
281
|
-
const { getExitCode } = await import("./exit-codes-
|
|
281
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
282
282
|
renderError(err, outOpts, out);
|
|
283
283
|
process.exit(getExitCode(err.code));
|
|
284
284
|
}
|
|
@@ -315,7 +315,7 @@ async function runProfileConnections(client, flags, out) {
|
|
|
315
315
|
} catch (err) {
|
|
316
316
|
const { CurviateError } = await import("@curviate/sdk");
|
|
317
317
|
if (err instanceof CurviateError) {
|
|
318
|
-
const { getExitCode } = await import("./exit-codes-
|
|
318
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
319
319
|
renderError(err, outOpts, out);
|
|
320
320
|
process.exit(getExitCode(err.code));
|
|
321
321
|
}
|
|
@@ -346,7 +346,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
346
346
|
} catch (err) {
|
|
347
347
|
const { CurviateError } = await import("@curviate/sdk");
|
|
348
348
|
if (err instanceof CurviateError) {
|
|
349
|
-
const { getExitCode } = await import("./exit-codes-
|
|
349
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
350
350
|
renderError(err, outOpts, out);
|
|
351
351
|
process.exit(getExitCode(err.code));
|
|
352
352
|
}
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
AttachError,
|
|
13
13
|
readAttachment
|
|
14
14
|
} from "./chunk-Q43HZUN3.js";
|
|
15
|
-
import {
|
|
16
|
-
streamAll
|
|
17
|
-
} from "./chunk-GXTZION6.js";
|
|
18
15
|
import {
|
|
19
16
|
buildPreviewOutput
|
|
20
17
|
} from "./chunk-R3VLWLVV.js";
|
|
18
|
+
import {
|
|
19
|
+
streamAll
|
|
20
|
+
} from "./chunk-GXTZION6.js";
|
|
21
21
|
import {
|
|
22
22
|
slimJob
|
|
23
23
|
} from "./chunk-SSPILTKF.js";
|
|
@@ -75,7 +75,7 @@ function normalizeAttachPaths(attach) {
|
|
|
75
75
|
async function handleSdkError(err, outOpts, out) {
|
|
76
76
|
const { CurviateError } = await import("@curviate/sdk");
|
|
77
77
|
if (err instanceof CurviateError) {
|
|
78
|
-
const { getExitCode } = await import("./exit-codes-
|
|
78
|
+
const { getExitCode } = await import("./exit-codes-ZTY2NY3X.js");
|
|
79
79
|
renderError(err, outOpts, out);
|
|
80
80
|
process.exit(getExitCode(err.code));
|
|
81
81
|
}
|