blitzreels 0.1.35 → 0.1.37
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/README.md +50 -0
- package/dist/cli-runtime.d.ts +6 -1
- package/dist/cli-runtime.d.ts.map +1 -1
- package/dist/cli-runtime.js +9 -4
- package/dist/cli-runtime.js.map +1 -1
- package/dist/command-metadata.d.ts +1 -1
- package/dist/command-metadata.d.ts.map +1 -1
- package/dist/command-metadata.js +4 -1
- package/dist/command-metadata.js.map +1 -1
- package/dist/command-registry.d.ts.map +1 -1
- package/dist/command-registry.js +4 -0
- package/dist/command-registry.js.map +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/carousels.d.ts.map +1 -1
- package/dist/commands/carousels.js +374 -1
- package/dist/commands/carousels.js.map +1 -1
- package/dist/commands/characters.d.ts.map +1 -1
- package/dist/commands/characters.js +77 -10
- package/dist/commands/characters.js.map +1 -1
- package/dist/commands/clips.d.ts.map +1 -1
- package/dist/commands/clips.js +262 -4
- package/dist/commands/clips.js.map +1 -1
- package/dist/commands/credits.d.ts +9 -0
- package/dist/commands/credits.d.ts.map +1 -1
- package/dist/commands/credits.js +101 -7
- package/dist/commands/credits.js.map +1 -1
- package/dist/commands/exports.js +1 -1
- package/dist/commands/exports.js.map +1 -1
- package/dist/commands/faceless.d.ts.map +1 -1
- package/dist/commands/faceless.js +166 -10
- package/dist/commands/faceless.js.map +1 -1
- package/dist/commands/generation.d.ts.map +1 -1
- package/dist/commands/generation.js +6 -1
- package/dist/commands/generation.js.map +1 -1
- package/dist/commands/hooks.d.ts +22 -0
- package/dist/commands/hooks.d.ts.map +1 -0
- package/dist/commands/hooks.js +48 -0
- package/dist/commands/hooks.js.map +1 -0
- package/dist/commands/jobs.d.ts.map +1 -1
- package/dist/commands/jobs.js +43 -0
- package/dist/commands/jobs.js.map +1 -1
- package/dist/commands/projects.d.ts.map +1 -1
- package/dist/commands/projects.js +46 -0
- package/dist/commands/projects.js.map +1 -1
- package/dist/commands/trends.d.ts +26 -0
- package/dist/commands/trends.d.ts.map +1 -0
- package/dist/commands/trends.js +588 -0
- package/dist/commands/trends.js.map +1 -0
- package/dist/index.js +34 -1
- package/dist/index.js.map +1 -1
- package/dist/preview-first-edit.d.ts +10 -0
- package/dist/preview-first-edit.d.ts.map +1 -1
- package/dist/preview-first-edit.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Flags } from "../cli-types.js";
|
|
2
|
+
import type { CommandOperation } from "./command-operation.js";
|
|
3
|
+
export declare const TRENDS_COMMAND_SPECS: import("../command-metadata.js").CommandSpec[];
|
|
4
|
+
export declare function createTrendsCommandOperation({ helpers, }: {
|
|
5
|
+
helpers: {
|
|
6
|
+
requireStringFlag: (input: {
|
|
7
|
+
flags: Flags;
|
|
8
|
+
name: string;
|
|
9
|
+
}) => string;
|
|
10
|
+
getStringFlag: (input: {
|
|
11
|
+
flags: Flags;
|
|
12
|
+
name: string;
|
|
13
|
+
}) => string | undefined;
|
|
14
|
+
getNumberFlag: (input: {
|
|
15
|
+
flags: Flags;
|
|
16
|
+
name: string;
|
|
17
|
+
}) => number | undefined;
|
|
18
|
+
printResult: (input: {
|
|
19
|
+
json: boolean;
|
|
20
|
+
value: unknown;
|
|
21
|
+
human: string[];
|
|
22
|
+
fields: string[] | undefined;
|
|
23
|
+
}) => void;
|
|
24
|
+
};
|
|
25
|
+
}): CommandOperation;
|
|
26
|
+
//# sourceMappingURL=trends.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trends.d.ts","sourceRoot":"","sources":["../../src/commands/trends.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,eAAO,MAAM,oBAAoB,gDAyRhC,CAAC;AA6HF,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,GACR,EAAE;IACD,OAAO,EAAE;QACP,iBAAiB,EAAE,CAAC,KAAK,EAAE;YAAE,KAAK,EAAE,KAAK,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAC;QACrE,aAAa,EAAE,CAAC,KAAK,EAAE;YACrB,KAAK,EAAE,KAAK,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACd,KAAK,MAAM,GAAG,SAAS,CAAC;QACzB,aAAa,EAAE,CAAC,KAAK,EAAE;YACrB,KAAK,EAAE,KAAK,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACd,KAAK,MAAM,GAAG,SAAS,CAAC;QACzB,WAAW,EAAE,CAAC,KAAK,EAAE;YACnB,IAAI,EAAE,OAAO,CAAC;YACd,KAAK,EAAE,OAAO,CAAC;YACf,KAAK,EAAE,MAAM,EAAE,CAAC;YAChB,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;SAC9B,KAAK,IAAI,CAAC;KACZ,CAAC;CACH,GAAG,gBAAgB,CA0NnB"}
|
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { trendsWriteRequest } from "@blitzreels/sdk";
|
|
2
|
+
import { CliUsageError } from "../cli-errors.js";
|
|
3
|
+
import { commandSpec } from "../command-metadata.js";
|
|
4
|
+
import { buildDryRunRequest } from "../preview-first-edit.js";
|
|
5
|
+
export const TRENDS_COMMAND_SPECS = [
|
|
6
|
+
commandSpec({
|
|
7
|
+
discovery: "detail",
|
|
8
|
+
command: ["trends", "overview"],
|
|
9
|
+
usage: "blitzreels trends overview [--json]",
|
|
10
|
+
description: "Read saved niche metrics and breakouts. Pilot access required.",
|
|
11
|
+
flags: [],
|
|
12
|
+
mutates: false,
|
|
13
|
+
}),
|
|
14
|
+
commandSpec({
|
|
15
|
+
discovery: "detail",
|
|
16
|
+
command: ["trends", "search"],
|
|
17
|
+
usage: "blitzreels trends search [--niche SLUG] [--sort outlier] [--limit 24] [--json]",
|
|
18
|
+
description: "Search saved posts. Outliers compare views with creator usual views; analyses are hypotheses.",
|
|
19
|
+
flags: [
|
|
20
|
+
"source",
|
|
21
|
+
"niche",
|
|
22
|
+
"platform",
|
|
23
|
+
"kind",
|
|
24
|
+
"hook-type",
|
|
25
|
+
"format",
|
|
26
|
+
"query",
|
|
27
|
+
"sort",
|
|
28
|
+
"cursor",
|
|
29
|
+
{ name: "limit", type: "number" },
|
|
30
|
+
{ name: "days", type: "number" },
|
|
31
|
+
{ name: "min-outlier", type: "number" },
|
|
32
|
+
{ name: "analyzed-only", type: "boolean" },
|
|
33
|
+
],
|
|
34
|
+
mutates: false,
|
|
35
|
+
}),
|
|
36
|
+
commandSpec({
|
|
37
|
+
discovery: "detail",
|
|
38
|
+
command: ["trends", "post"],
|
|
39
|
+
usage: "blitzreels trends post --post-id ID [--json]",
|
|
40
|
+
description: "Read one post and its analysis hypotheses, history and related posts.",
|
|
41
|
+
flags: [{ name: "post-id", required: true }],
|
|
42
|
+
mutates: false,
|
|
43
|
+
}),
|
|
44
|
+
commandSpec({
|
|
45
|
+
discovery: "detail",
|
|
46
|
+
command: ["trends", "creator"],
|
|
47
|
+
usage: "blitzreels trends creator --creator-id ID [--json]",
|
|
48
|
+
description: "Read a saved creator with up to 24 top posts.",
|
|
49
|
+
flags: [{ name: "creator-id", required: true }],
|
|
50
|
+
mutates: false,
|
|
51
|
+
}),
|
|
52
|
+
commandSpec({
|
|
53
|
+
discovery: "detail",
|
|
54
|
+
command: ["trends", "patterns"],
|
|
55
|
+
usage: "blitzreels trends patterns [--niche SLUG] [--kind hook|format|topic] [--limit 24] [--json]",
|
|
56
|
+
description: "Read up to 60 observed niche patterns. Analyses are hypotheses.",
|
|
57
|
+
flags: ["niche", "kind", { name: "limit", type: "number" }],
|
|
58
|
+
mutates: false,
|
|
59
|
+
}),
|
|
60
|
+
commandSpec({
|
|
61
|
+
discovery: "detail",
|
|
62
|
+
command: ["trends", "ideas"],
|
|
63
|
+
usage: "blitzreels trends ideas [--json]",
|
|
64
|
+
description: "Read saved trend ideas without model usage; returns null before generation.",
|
|
65
|
+
flags: [],
|
|
66
|
+
mutates: false,
|
|
67
|
+
}),
|
|
68
|
+
commandSpec({
|
|
69
|
+
discovery: "detail",
|
|
70
|
+
command: ["trends", "write-ideas"],
|
|
71
|
+
usage: "blitzreels trends write-ideas --idempotency-key KEY [--dry-run] [--json]",
|
|
72
|
+
description: "Generate and replace saved trend ideas. Spends model usage; identical keys replay the result.",
|
|
73
|
+
flags: [{ name: "idempotency-key", required: true }],
|
|
74
|
+
mutates: true,
|
|
75
|
+
destructive: true,
|
|
76
|
+
dryRunSupported: true,
|
|
77
|
+
}),
|
|
78
|
+
commandSpec({
|
|
79
|
+
discovery: "detail",
|
|
80
|
+
command: ["trends", "niches"],
|
|
81
|
+
usage: "blitzreels trends niches [--json]",
|
|
82
|
+
description: "List niche corpus counts and workspace follow state.",
|
|
83
|
+
flags: [],
|
|
84
|
+
mutates: false,
|
|
85
|
+
}),
|
|
86
|
+
commandSpec({
|
|
87
|
+
discovery: "detail",
|
|
88
|
+
command: ["trends", "follow"],
|
|
89
|
+
usage: "blitzreels trends follow --niche SLUG [--dry-run] [--json]",
|
|
90
|
+
description: "Follow a niche. Requires workspace settings permission.",
|
|
91
|
+
flags: [{ name: "niche", required: true }],
|
|
92
|
+
mutates: true,
|
|
93
|
+
dryRunSupported: true,
|
|
94
|
+
}),
|
|
95
|
+
commandSpec({
|
|
96
|
+
discovery: "detail",
|
|
97
|
+
command: ["trends", "unfollow"],
|
|
98
|
+
usage: "blitzreels trends unfollow --niche SLUG [--dry-run] [--json]",
|
|
99
|
+
description: "Unfollow a niche. Requires workspace settings permission.",
|
|
100
|
+
flags: [{ name: "niche", required: true }],
|
|
101
|
+
mutates: true,
|
|
102
|
+
dryRunSupported: true,
|
|
103
|
+
}),
|
|
104
|
+
commandSpec({
|
|
105
|
+
discovery: "detail",
|
|
106
|
+
command: ["trends", "watchlist", "list"],
|
|
107
|
+
usage: "blitzreels trends watchlist list [--json]",
|
|
108
|
+
description: "watchlist. Pilot access required.",
|
|
109
|
+
flags: [],
|
|
110
|
+
mutates: false,
|
|
111
|
+
}),
|
|
112
|
+
commandSpec({
|
|
113
|
+
discovery: "detail",
|
|
114
|
+
command: ["trends", "watchlist", "add"],
|
|
115
|
+
usage: "blitzreels trends watchlist add --idempotency-key KEY [--dry-run] [--json]",
|
|
116
|
+
description: "addWatchlist. Pilot access required.",
|
|
117
|
+
flags: [
|
|
118
|
+
{ name: "platform", required: true },
|
|
119
|
+
{ name: "handle", required: true },
|
|
120
|
+
{ name: "idempotency-key", required: true },
|
|
121
|
+
],
|
|
122
|
+
mutates: true,
|
|
123
|
+
dryRunSupported: true,
|
|
124
|
+
}),
|
|
125
|
+
commandSpec({
|
|
126
|
+
discovery: "detail",
|
|
127
|
+
command: ["trends", "watchlist", "remove"],
|
|
128
|
+
usage: "blitzreels trends watchlist remove --idempotency-key KEY [--dry-run] [--json]",
|
|
129
|
+
description: "removeWatchlist. Pilot access required.",
|
|
130
|
+
flags: [
|
|
131
|
+
{ name: "creator-id", required: true },
|
|
132
|
+
{ name: "idempotency-key", required: true },
|
|
133
|
+
],
|
|
134
|
+
mutates: true,
|
|
135
|
+
dryRunSupported: true,
|
|
136
|
+
}),
|
|
137
|
+
commandSpec({
|
|
138
|
+
discovery: "detail",
|
|
139
|
+
command: ["trends", "saved", "list"],
|
|
140
|
+
usage: "blitzreels trends saved list [--json]",
|
|
141
|
+
description: "savedPosts. Pilot access required.",
|
|
142
|
+
flags: ["collection-id", "cursor", { name: "limit", type: "number" }],
|
|
143
|
+
mutates: false,
|
|
144
|
+
}),
|
|
145
|
+
commandSpec({
|
|
146
|
+
discovery: "detail",
|
|
147
|
+
command: ["trends", "saved", "refs"],
|
|
148
|
+
usage: "blitzreels trends saved refs [--json]",
|
|
149
|
+
description: "savedPostRefs. Pilot access required.",
|
|
150
|
+
flags: [],
|
|
151
|
+
mutates: false,
|
|
152
|
+
}),
|
|
153
|
+
commandSpec({
|
|
154
|
+
discovery: "detail",
|
|
155
|
+
command: ["trends", "saved", "save"],
|
|
156
|
+
usage: "blitzreels trends saved save --idempotency-key KEY [--dry-run] [--json]",
|
|
157
|
+
description: "savePost. Pilot access required.",
|
|
158
|
+
flags: [
|
|
159
|
+
{ name: "post-id", required: true },
|
|
160
|
+
"collection-id",
|
|
161
|
+
"note",
|
|
162
|
+
{ name: "idempotency-key", required: true },
|
|
163
|
+
],
|
|
164
|
+
mutates: true,
|
|
165
|
+
dryRunSupported: true,
|
|
166
|
+
}),
|
|
167
|
+
commandSpec({
|
|
168
|
+
discovery: "detail",
|
|
169
|
+
command: ["trends", "saved", "unsave"],
|
|
170
|
+
usage: "blitzreels trends saved unsave --idempotency-key KEY [--dry-run] [--json]",
|
|
171
|
+
description: "unsavePost. Pilot access required.",
|
|
172
|
+
flags: [
|
|
173
|
+
{ name: "post-id", required: true },
|
|
174
|
+
"collection-id",
|
|
175
|
+
{ name: "idempotency-key", required: true },
|
|
176
|
+
],
|
|
177
|
+
mutates: true,
|
|
178
|
+
dryRunSupported: true,
|
|
179
|
+
}),
|
|
180
|
+
commandSpec({
|
|
181
|
+
discovery: "detail",
|
|
182
|
+
command: ["trends", "saved", "collections"],
|
|
183
|
+
usage: "blitzreels trends saved collections [--json]",
|
|
184
|
+
description: "collections. Pilot access required.",
|
|
185
|
+
flags: [],
|
|
186
|
+
mutates: false,
|
|
187
|
+
}),
|
|
188
|
+
commandSpec({
|
|
189
|
+
discovery: "detail",
|
|
190
|
+
command: ["trends", "saved", "create"],
|
|
191
|
+
usage: "blitzreels trends saved create --idempotency-key KEY [--dry-run] [--json]",
|
|
192
|
+
description: "createCollection. Pilot access required.",
|
|
193
|
+
flags: [
|
|
194
|
+
{ name: "name", required: true },
|
|
195
|
+
{ name: "idempotency-key", required: true },
|
|
196
|
+
],
|
|
197
|
+
mutates: true,
|
|
198
|
+
dryRunSupported: true,
|
|
199
|
+
}),
|
|
200
|
+
commandSpec({
|
|
201
|
+
discovery: "detail",
|
|
202
|
+
command: ["trends", "saved", "rename"],
|
|
203
|
+
usage: "blitzreels trends saved rename --idempotency-key KEY [--dry-run] [--json]",
|
|
204
|
+
description: "renameCollection. Pilot access required.",
|
|
205
|
+
flags: [
|
|
206
|
+
{ name: "collection-id", required: true },
|
|
207
|
+
{ name: "name", required: true },
|
|
208
|
+
{ name: "idempotency-key", required: true },
|
|
209
|
+
],
|
|
210
|
+
mutates: true,
|
|
211
|
+
dryRunSupported: true,
|
|
212
|
+
}),
|
|
213
|
+
commandSpec({
|
|
214
|
+
discovery: "detail",
|
|
215
|
+
command: ["trends", "saved", "delete"],
|
|
216
|
+
usage: "blitzreels trends saved delete --idempotency-key KEY [--dry-run] [--json]",
|
|
217
|
+
description: "deleteCollection. Pilot access required.",
|
|
218
|
+
flags: [
|
|
219
|
+
{ name: "collection-id", required: true },
|
|
220
|
+
{ name: "idempotency-key", required: true },
|
|
221
|
+
],
|
|
222
|
+
mutates: true,
|
|
223
|
+
dryRunSupported: true,
|
|
224
|
+
}),
|
|
225
|
+
commandSpec({
|
|
226
|
+
discovery: "detail",
|
|
227
|
+
command: ["trends", "saved", "export"],
|
|
228
|
+
usage: "blitzreels trends saved export [--json]",
|
|
229
|
+
description: "exportCollection. Pilot access required.",
|
|
230
|
+
flags: ["collection-id"],
|
|
231
|
+
mutates: false,
|
|
232
|
+
}),
|
|
233
|
+
commandSpec({
|
|
234
|
+
discovery: "detail",
|
|
235
|
+
command: ["trends", "settings", "get"],
|
|
236
|
+
usage: "blitzreels trends settings get [--json]",
|
|
237
|
+
description: "settings. Pilot access required.",
|
|
238
|
+
flags: [],
|
|
239
|
+
mutates: false,
|
|
240
|
+
}),
|
|
241
|
+
commandSpec({
|
|
242
|
+
discovery: "detail",
|
|
243
|
+
command: ["trends", "settings", "update"],
|
|
244
|
+
usage: "blitzreels trends settings update --idempotency-key KEY [--dry-run] [--json]",
|
|
245
|
+
description: "updateSettings. Pilot access required.",
|
|
246
|
+
flags: [
|
|
247
|
+
"autopilot-enabled",
|
|
248
|
+
{ name: "drafts-per-week", type: "number" },
|
|
249
|
+
"digest-enabled",
|
|
250
|
+
{ name: "idempotency-key", required: true },
|
|
251
|
+
],
|
|
252
|
+
mutates: true,
|
|
253
|
+
dryRunSupported: true,
|
|
254
|
+
}),
|
|
255
|
+
commandSpec({
|
|
256
|
+
discovery: "detail",
|
|
257
|
+
command: ["trends", "draft"],
|
|
258
|
+
usage: "blitzreels trends draft --idea-id IDEA_ID --kind video|carousel --idempotency-key KEY [--dry-run] [--json]",
|
|
259
|
+
description: "draftIdea. Pilot access required.",
|
|
260
|
+
flags: [
|
|
261
|
+
{ name: "idea-id", required: true },
|
|
262
|
+
{ name: "kind", required: true },
|
|
263
|
+
{ name: "idempotency-key", required: true },
|
|
264
|
+
],
|
|
265
|
+
mutates: true,
|
|
266
|
+
dryRunSupported: true,
|
|
267
|
+
}),
|
|
268
|
+
];
|
|
269
|
+
function workflowRequest({ command, text, num, }) {
|
|
270
|
+
const required = (name) => {
|
|
271
|
+
const value = text(name);
|
|
272
|
+
if (!value)
|
|
273
|
+
throw new CliUsageError({
|
|
274
|
+
code: "invalid_flag_value",
|
|
275
|
+
message: `Missing --${name}`,
|
|
276
|
+
});
|
|
277
|
+
return value;
|
|
278
|
+
};
|
|
279
|
+
const key = command.slice(1, 3).join(" ");
|
|
280
|
+
const collectionId = text("collection-id") ?? null;
|
|
281
|
+
const bool = (name) => {
|
|
282
|
+
const v = text(name);
|
|
283
|
+
if (v === undefined)
|
|
284
|
+
return undefined;
|
|
285
|
+
if (v !== "true" && v !== "false")
|
|
286
|
+
throw new CliUsageError({
|
|
287
|
+
code: "invalid_flag_value",
|
|
288
|
+
message: `--${name} must be true or false`,
|
|
289
|
+
});
|
|
290
|
+
return v === "true";
|
|
291
|
+
};
|
|
292
|
+
const requests = {
|
|
293
|
+
"watchlist list": { method: "GET", path: "watchlist", input: {} },
|
|
294
|
+
"saved list": {
|
|
295
|
+
method: "GET",
|
|
296
|
+
path: "saved",
|
|
297
|
+
input: {
|
|
298
|
+
collectionId,
|
|
299
|
+
cursor: text("cursor") ?? null,
|
|
300
|
+
limit: num("limit") ?? 24,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
"saved refs": { method: "GET", path: "saved/refs", input: {} },
|
|
304
|
+
"saved collections": { method: "GET", path: "collections", input: {} },
|
|
305
|
+
"saved export": {
|
|
306
|
+
method: "GET",
|
|
307
|
+
path: "collections/export",
|
|
308
|
+
input: { collectionId },
|
|
309
|
+
},
|
|
310
|
+
"settings get": { method: "GET", path: "settings", input: {} },
|
|
311
|
+
};
|
|
312
|
+
if (key === "watchlist add")
|
|
313
|
+
requests[key] = {
|
|
314
|
+
method: "POST",
|
|
315
|
+
path: "watchlist",
|
|
316
|
+
input: { platform: required("platform"), handle: required("handle") },
|
|
317
|
+
};
|
|
318
|
+
if (key === "watchlist remove")
|
|
319
|
+
requests[key] = {
|
|
320
|
+
method: "DELETE",
|
|
321
|
+
path: `watchlist/${required("creator-id")}`,
|
|
322
|
+
input: { creatorId: required("creator-id") },
|
|
323
|
+
};
|
|
324
|
+
if (key === "saved save" || key === "saved unsave")
|
|
325
|
+
requests[key] = {
|
|
326
|
+
method: key === "saved save" ? "PUT" : "DELETE",
|
|
327
|
+
path: "saved",
|
|
328
|
+
input: {
|
|
329
|
+
postId: required("post-id"),
|
|
330
|
+
collectionId,
|
|
331
|
+
...(key === "saved save" ? { note: text("note") ?? null } : {}),
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
if (key === "saved create")
|
|
335
|
+
requests[key] = {
|
|
336
|
+
method: "POST",
|
|
337
|
+
path: "collections",
|
|
338
|
+
input: { name: required("name") },
|
|
339
|
+
};
|
|
340
|
+
if (key === "saved rename" || key === "saved delete")
|
|
341
|
+
requests[key] = {
|
|
342
|
+
method: key === "saved rename" ? "PUT" : "DELETE",
|
|
343
|
+
path: `collections/${required("collection-id")}`,
|
|
344
|
+
input: {
|
|
345
|
+
collectionId: required("collection-id"),
|
|
346
|
+
...(key === "saved rename" ? { name: required("name") } : {}),
|
|
347
|
+
},
|
|
348
|
+
};
|
|
349
|
+
if (key === "settings update")
|
|
350
|
+
requests[key] = {
|
|
351
|
+
method: "PUT",
|
|
352
|
+
path: "settings",
|
|
353
|
+
input: {
|
|
354
|
+
autopilotEnabled: bool("autopilot-enabled"),
|
|
355
|
+
autopilotDraftsPerWeek: num("drafts-per-week"),
|
|
356
|
+
digestEnabled: bool("digest-enabled"),
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
if (command[1] === "draft")
|
|
360
|
+
requests[key] = {
|
|
361
|
+
method: "POST",
|
|
362
|
+
path: "drafts",
|
|
363
|
+
input: {
|
|
364
|
+
ideaId: command[2] ?? required("idea-id"),
|
|
365
|
+
kind: required("kind"),
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
const r = requests[key];
|
|
369
|
+
if (!r)
|
|
370
|
+
return null;
|
|
371
|
+
return {
|
|
372
|
+
...r,
|
|
373
|
+
path: `/workspace/trends/${r.path}`,
|
|
374
|
+
body: r.method === "GET" ? undefined : r.input,
|
|
375
|
+
query: r.method === "GET" ? r.input : undefined,
|
|
376
|
+
idempotencyKey: r.method === "GET" ? undefined : required("idempotency-key"),
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
export function createTrendsCommandOperation({ helpers, }) {
|
|
380
|
+
return {
|
|
381
|
+
name: "trends",
|
|
382
|
+
matches: ({ command }) => command[0] === "trends",
|
|
383
|
+
buildDryRun: ({ context, spec }) => {
|
|
384
|
+
const flags = context.args.flags;
|
|
385
|
+
const workflow = workflowRequest({
|
|
386
|
+
command: context.args.command,
|
|
387
|
+
text: (name) => helpers.getStringFlag({ flags, name }),
|
|
388
|
+
num: (name) => helpers.getNumberFlag({ flags, name }),
|
|
389
|
+
});
|
|
390
|
+
if (workflow)
|
|
391
|
+
return buildDryRunRequest({
|
|
392
|
+
spec,
|
|
393
|
+
...workflow,
|
|
394
|
+
headers: workflow.idempotencyKey
|
|
395
|
+
? { "Idempotency-Key": workflow.idempotencyKey }
|
|
396
|
+
: undefined,
|
|
397
|
+
followUpRequests: undefined,
|
|
398
|
+
notes: undefined,
|
|
399
|
+
});
|
|
400
|
+
const request = context.args.command[1] === "write-ideas"
|
|
401
|
+
? trendsWriteRequest({
|
|
402
|
+
idempotencyKey: helpers.requireStringFlag({
|
|
403
|
+
flags,
|
|
404
|
+
name: "idempotency-key",
|
|
405
|
+
}),
|
|
406
|
+
})
|
|
407
|
+
: {
|
|
408
|
+
method: "PUT",
|
|
409
|
+
path: `/workspace/trends/niches/${encodeURIComponent(helpers.requireStringFlag({ flags, name: "niche" }))}`,
|
|
410
|
+
body: { followed: context.args.command[1] === "follow" },
|
|
411
|
+
idempotencyKey: undefined,
|
|
412
|
+
};
|
|
413
|
+
return buildDryRunRequest({
|
|
414
|
+
spec,
|
|
415
|
+
...request,
|
|
416
|
+
query: undefined,
|
|
417
|
+
headers: request.idempotencyKey
|
|
418
|
+
? { "Idempotency-Key": request.idempotencyKey }
|
|
419
|
+
: undefined,
|
|
420
|
+
followUpRequests: undefined,
|
|
421
|
+
notes: undefined,
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
handle: async ({ context }) => {
|
|
425
|
+
const { flags, command } = context.args;
|
|
426
|
+
const text = (name) => helpers.getStringFlag({ flags, name });
|
|
427
|
+
const num = (name) => helpers.getNumberFlag({ flags, name });
|
|
428
|
+
const required = (name) => helpers.requireStringFlag({ flags, name });
|
|
429
|
+
const list = (name) => text(name)?.split(",");
|
|
430
|
+
const client = context.client.trends;
|
|
431
|
+
let value;
|
|
432
|
+
try {
|
|
433
|
+
const r = workflowRequest({ command, text, num });
|
|
434
|
+
if (r) {
|
|
435
|
+
switch (command.slice(1, 3).join(" ")) {
|
|
436
|
+
case "watchlist list":
|
|
437
|
+
value = await client.watchlist();
|
|
438
|
+
break;
|
|
439
|
+
case "watchlist add":
|
|
440
|
+
value = await client.addWatchlist({
|
|
441
|
+
...r.input,
|
|
442
|
+
idempotencyKey: required("idempotency-key"),
|
|
443
|
+
});
|
|
444
|
+
break;
|
|
445
|
+
case "watchlist remove":
|
|
446
|
+
value = await client.removeWatchlist({
|
|
447
|
+
...r.input,
|
|
448
|
+
idempotencyKey: required("idempotency-key"),
|
|
449
|
+
});
|
|
450
|
+
break;
|
|
451
|
+
case "saved list":
|
|
452
|
+
value = await client.savedPosts({ ...r.input });
|
|
453
|
+
break;
|
|
454
|
+
case "saved refs":
|
|
455
|
+
value = await client.savedPostRefs();
|
|
456
|
+
break;
|
|
457
|
+
case "saved save":
|
|
458
|
+
value = await client.savePost({
|
|
459
|
+
...r.input,
|
|
460
|
+
idempotencyKey: required("idempotency-key"),
|
|
461
|
+
});
|
|
462
|
+
break;
|
|
463
|
+
case "saved unsave":
|
|
464
|
+
value = await client.unsavePost({
|
|
465
|
+
...r.input,
|
|
466
|
+
idempotencyKey: required("idempotency-key"),
|
|
467
|
+
});
|
|
468
|
+
break;
|
|
469
|
+
case "saved collections":
|
|
470
|
+
value = await client.collections();
|
|
471
|
+
break;
|
|
472
|
+
case "saved create":
|
|
473
|
+
value = await client.createCollection({
|
|
474
|
+
...r.input,
|
|
475
|
+
idempotencyKey: required("idempotency-key"),
|
|
476
|
+
});
|
|
477
|
+
break;
|
|
478
|
+
case "saved rename":
|
|
479
|
+
value = await client.renameCollection({
|
|
480
|
+
...r.input,
|
|
481
|
+
idempotencyKey: required("idempotency-key"),
|
|
482
|
+
});
|
|
483
|
+
break;
|
|
484
|
+
case "saved delete":
|
|
485
|
+
value = await client.deleteCollection({
|
|
486
|
+
...r.input,
|
|
487
|
+
idempotencyKey: required("idempotency-key"),
|
|
488
|
+
});
|
|
489
|
+
break;
|
|
490
|
+
case "saved export":
|
|
491
|
+
value = await client.exportCollection({
|
|
492
|
+
...r.input,
|
|
493
|
+
});
|
|
494
|
+
break;
|
|
495
|
+
case "settings get":
|
|
496
|
+
value = await client.settings();
|
|
497
|
+
break;
|
|
498
|
+
case "settings update":
|
|
499
|
+
value = await client.updateSettings({
|
|
500
|
+
...r.input,
|
|
501
|
+
idempotencyKey: required("idempotency-key"),
|
|
502
|
+
});
|
|
503
|
+
break;
|
|
504
|
+
default:
|
|
505
|
+
value = await client.draftIdea({
|
|
506
|
+
...r.input,
|
|
507
|
+
idempotencyKey: required("idempotency-key"),
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
else
|
|
512
|
+
switch (command[1]) {
|
|
513
|
+
case "overview":
|
|
514
|
+
value = await client.overview();
|
|
515
|
+
break;
|
|
516
|
+
case "search":
|
|
517
|
+
value = await client.search({
|
|
518
|
+
source: text("source"),
|
|
519
|
+
niches: list("niche"),
|
|
520
|
+
platforms: list("platform"),
|
|
521
|
+
kinds: list("kind"),
|
|
522
|
+
hookTypes: list("hook-type"),
|
|
523
|
+
formatKeys: list("format"),
|
|
524
|
+
sort: text("sort"),
|
|
525
|
+
query: text("query"),
|
|
526
|
+
cursor: text("cursor"),
|
|
527
|
+
limit: num("limit"),
|
|
528
|
+
publishedWithinDays: num("days"),
|
|
529
|
+
minOutlier: num("min-outlier"),
|
|
530
|
+
analyzedOnly: flags["analyzed-only"] === true,
|
|
531
|
+
});
|
|
532
|
+
break;
|
|
533
|
+
case "post":
|
|
534
|
+
value = await client.post({ postId: required("post-id") });
|
|
535
|
+
break;
|
|
536
|
+
case "creator":
|
|
537
|
+
value = await client.creator({
|
|
538
|
+
creatorId: required("creator-id"),
|
|
539
|
+
});
|
|
540
|
+
break;
|
|
541
|
+
case "patterns":
|
|
542
|
+
value = await client.patterns({
|
|
543
|
+
niches: list("niche"),
|
|
544
|
+
kind: text("kind"),
|
|
545
|
+
limit: num("limit"),
|
|
546
|
+
});
|
|
547
|
+
break;
|
|
548
|
+
case "ideas":
|
|
549
|
+
value = await client.ideas();
|
|
550
|
+
break;
|
|
551
|
+
case "write-ideas":
|
|
552
|
+
value = await client.writeIdeas({
|
|
553
|
+
idempotencyKey: required("idempotency-key"),
|
|
554
|
+
});
|
|
555
|
+
break;
|
|
556
|
+
case "niches":
|
|
557
|
+
value = await client.niches();
|
|
558
|
+
break;
|
|
559
|
+
case "follow":
|
|
560
|
+
case "unfollow":
|
|
561
|
+
value = await client.followNiche({
|
|
562
|
+
niche: required("niche"),
|
|
563
|
+
followed: command[1] === "follow",
|
|
564
|
+
});
|
|
565
|
+
break;
|
|
566
|
+
default:
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
catch (error) {
|
|
571
|
+
if (error instanceof Error && error.name === "ZodError")
|
|
572
|
+
throw new CliUsageError({
|
|
573
|
+
code: "invalid_flag_value",
|
|
574
|
+
message: error.message,
|
|
575
|
+
});
|
|
576
|
+
throw error;
|
|
577
|
+
}
|
|
578
|
+
helpers.printResult({
|
|
579
|
+
json: context.json,
|
|
580
|
+
value,
|
|
581
|
+
human: [JSON.stringify(value)],
|
|
582
|
+
fields: context.fields,
|
|
583
|
+
});
|
|
584
|
+
return true;
|
|
585
|
+
},
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
//# sourceMappingURL=trends.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trends.js","sourceRoot":"","sources":["../../src/commands/trends.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,CAAC;QACV,SAAS,EAAE,QAAQ;QACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;QAC/B,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EACT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