@genfeedai/cli 0.7.1 → 0.7.3
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/dist/index.js +741 -127
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56494,6 +56494,9 @@ async function adminRequest(method, path, body, baseUrl) {
|
|
|
56494
56494
|
}
|
|
56495
56495
|
throw new ApiError(message, response.status);
|
|
56496
56496
|
}
|
|
56497
|
+
if (response.status === 204) {
|
|
56498
|
+
return;
|
|
56499
|
+
}
|
|
56497
56500
|
return await response.json();
|
|
56498
56501
|
}
|
|
56499
56502
|
function adminGet(path, baseUrl) {
|
|
@@ -56502,6 +56505,9 @@ function adminGet(path, baseUrl) {
|
|
|
56502
56505
|
function adminPost(path, body, baseUrl) {
|
|
56503
56506
|
return adminRequest("POST", path, body ?? {}, baseUrl);
|
|
56504
56507
|
}
|
|
56508
|
+
function adminDelete(path) {
|
|
56509
|
+
return adminRequest("DELETE", path);
|
|
56510
|
+
}
|
|
56505
56511
|
function adminPatch(path, body) {
|
|
56506
56512
|
return adminRequest("PATCH", path, body);
|
|
56507
56513
|
}
|
|
@@ -56519,58 +56525,6 @@ async function revokeAdminSession(apiUrl, cookie) {
|
|
|
56519
56525
|
}
|
|
56520
56526
|
}
|
|
56521
56527
|
|
|
56522
|
-
// src/operations/admin-brand-os.ts
|
|
56523
|
-
async function approveOrganizationBrandOs(organizationId, brandId, kit) {
|
|
56524
|
-
const response = await adminPost(`/admin/organizations/${encodeURIComponent(organizationId)}/brands/${encodeURIComponent(brandId)}/brand-os/approve`, kit);
|
|
56525
|
-
return response.data;
|
|
56526
|
-
}
|
|
56527
|
-
|
|
56528
|
-
// src/commands/admin/brand-os.ts
|
|
56529
|
-
function collect(value, previous = []) {
|
|
56530
|
-
return [...previous, value];
|
|
56531
|
-
}
|
|
56532
|
-
function toKit(options) {
|
|
56533
|
-
const kit = {
|
|
56534
|
-
description: options.description,
|
|
56535
|
-
promptGuidelines: options.guidelines,
|
|
56536
|
-
voiceAudience: options.audience,
|
|
56537
|
-
voiceDoNotSoundLike: options.doNotSoundLike,
|
|
56538
|
-
voiceMessagingPillars: options.messagingPillars,
|
|
56539
|
-
voiceSampleOutput: options.sample,
|
|
56540
|
-
voiceStyle: options.style,
|
|
56541
|
-
voiceTone: options.tone,
|
|
56542
|
-
voiceValues: options.values
|
|
56543
|
-
};
|
|
56544
|
-
return Object.fromEntries(Object.entries(kit).filter(([, value]) => value !== undefined));
|
|
56545
|
-
}
|
|
56546
|
-
function createBrandOsApproveCommand() {
|
|
56547
|
-
return new Command("os-approve").description("Set the voice and guidelines of a brand in any organization and approve its Brand OS (preview unless --yes)").requiredOption("--org <organizationId>", "Organization id").requiredOption("--brand <brandId>", "Brand id").option("--description <text>", "Brand description").option("--tone <text>", "Voice tone").option("--style <text>", "Voice style").option("--sample <text>", "Sample output in the brand voice").option("--guidelines <text>", "Prompt guidelines").option("--audience <text>", "Audience (repeat for several)", collect).option("--values <text>", "Voice value (repeat for several)", collect).option("--messaging-pillars <text>", "Messaging pillar (repeat for several)", collect).option("--do-not-sound-like <text>", "What the voice must not sound like (repeat)", collect).option("--yes", "Apply the fields and approve the revision").action(async (options) => {
|
|
56548
|
-
try {
|
|
56549
|
-
const kit = toKit(options);
|
|
56550
|
-
if (Object.keys(kit).length === 0) {
|
|
56551
|
-
throw new GenfeedError("Pass at least one kit field.", 'Example: --tone "Bold and punchy" --style "Very short lines"');
|
|
56552
|
-
}
|
|
56553
|
-
if (!options.yes) {
|
|
56554
|
-
print(formatHeader(`Brand OS approval (preview)
|
|
56555
|
-
`));
|
|
56556
|
-
print(formatLabel("Organization", options.org));
|
|
56557
|
-
print(formatLabel("Brand", options.brand));
|
|
56558
|
-
for (const [field, value] of Object.entries(kit)) {
|
|
56559
|
-
print(formatLabel(field, Array.isArray(value) ? value.join(" | ") : String(value)));
|
|
56560
|
-
}
|
|
56561
|
-
print(formatWarning("Re-run with --yes to apply these fields and approve the Brand OS."));
|
|
56562
|
-
return;
|
|
56563
|
-
}
|
|
56564
|
-
const result = await approveOrganizationBrandOs(options.org, options.brand, kit);
|
|
56565
|
-
print(formatSuccess(`Approved Brand OS revision ${result.revisionId} (v${result.version})`));
|
|
56566
|
-
print(formatLabel("Status", result.status));
|
|
56567
|
-
print(formatLabel("Applied", result.appliedFields.join(", ") || "none"));
|
|
56568
|
-
} catch (error) {
|
|
56569
|
-
handleError(error);
|
|
56570
|
-
}
|
|
56571
|
-
});
|
|
56572
|
-
}
|
|
56573
|
-
|
|
56574
56528
|
// ../contracts/src/enums/credit.enum.ts
|
|
56575
56529
|
var CreditTransactionCategory;
|
|
56576
56530
|
((CreditTransactionCategory) => {
|
|
@@ -59161,6 +59115,17 @@ async function mintPartnerApiKey(organizationId, input) {
|
|
|
59161
59115
|
const response = await adminPost(`/admin/organizations/${encodeURIComponent(organizationId)}/api-keys`, input);
|
|
59162
59116
|
return response.data;
|
|
59163
59117
|
}
|
|
59118
|
+
async function mintOperatorKey(input) {
|
|
59119
|
+
const response = await adminPost("/admin/operator-keys", input);
|
|
59120
|
+
return response.data;
|
|
59121
|
+
}
|
|
59122
|
+
async function listOperatorKeys() {
|
|
59123
|
+
const response = await adminGet("/admin/operator-keys");
|
|
59124
|
+
return response.data;
|
|
59125
|
+
}
|
|
59126
|
+
async function revokeOperatorKey(id) {
|
|
59127
|
+
await adminDelete(`/admin/operator-keys/${encodeURIComponent(id)}`);
|
|
59128
|
+
}
|
|
59164
59129
|
async function addOrganizationMember(organizationId, input) {
|
|
59165
59130
|
const response = await adminPost(`/admin/organizations/${encodeURIComponent(organizationId)}/members`, input);
|
|
59166
59131
|
return response.data;
|
|
@@ -59375,6 +59340,161 @@ function parseIntegerInRange(value, minimum, maximum) {
|
|
|
59375
59340
|
return parsed;
|
|
59376
59341
|
}
|
|
59377
59342
|
|
|
59343
|
+
// src/commands/admin/api-keys.ts
|
|
59344
|
+
function createPartnerKeyCommand() {
|
|
59345
|
+
return new Command("partner-key").description("Mint partner API keys (scopes a user cannot grant to their own key)").addCommand(new Command("create").description("Mint a partner key for an organization (preview unless --yes). Default: images=write, brands=write").requiredOption("--org <organizationId>", "Organization id").requiredOption("--label <label>", "Key name shown in the organization settings").option("--level <resource=level...>", "Override the levels, e.g. images=write brands=read (none, read or write)").option("--brand <brandId>", "Default brand for generation calls").option("--allowed-brand <brandId...>", "Limit the key to these brands (default: every brand in the organization)").option("--description <text>", "What the key is for").option("--expires-in-days <days>", "Expire the key after N days", Number).option("--yes", "Mint the key").option("--json", "Output as JSON").action(async (options, command) => {
|
|
59346
|
+
try {
|
|
59347
|
+
const levels = options.level ? parsePartnerKeyLevels(options.level) : undefined;
|
|
59348
|
+
if (!options.yes) {
|
|
59349
|
+
print(formatHeader(`Partner key (preview)
|
|
59350
|
+
`));
|
|
59351
|
+
print(formatLabel("Organization", options.org));
|
|
59352
|
+
print(formatLabel("Label", options.label));
|
|
59353
|
+
print(formatLabel("Levels", levels ? Object.entries(levels).map(([resource, level]) => `${resource}=${level}`).join(", ") : "images=write, brands=write (partner default)"));
|
|
59354
|
+
if (options.brand)
|
|
59355
|
+
print(formatLabel("Default brand", options.brand));
|
|
59356
|
+
print(formatLabel("Brands", options.allowedBrand ? options.allowedBrand.join(", ") : "every brand"));
|
|
59357
|
+
print(formatWarning("Re-run with --yes to mint the key. It is shown once."));
|
|
59358
|
+
return;
|
|
59359
|
+
}
|
|
59360
|
+
const minted = await mintPartnerApiKey(options.org, {
|
|
59361
|
+
allowedBrandIds: options.allowedBrand,
|
|
59362
|
+
defaultBrandId: options.brand,
|
|
59363
|
+
description: options.description,
|
|
59364
|
+
expiresInDays: options.expiresInDays,
|
|
59365
|
+
label: options.label,
|
|
59366
|
+
levels
|
|
59367
|
+
});
|
|
59368
|
+
if (wantsJson(command)) {
|
|
59369
|
+
printJson(minted);
|
|
59370
|
+
return;
|
|
59371
|
+
}
|
|
59372
|
+
print(formatSuccess(`Minted partner key ${minted.apiKeyId}`));
|
|
59373
|
+
print(formatLabel("Scopes", minted.scopes.join(", ")));
|
|
59374
|
+
print(formatLabel("Owner", minted.userId));
|
|
59375
|
+
if (minted.allowedBrandIds) {
|
|
59376
|
+
print(formatLabel("Brands", minted.allowedBrandIds.join(", ")));
|
|
59377
|
+
}
|
|
59378
|
+
if (minted.expiresAt)
|
|
59379
|
+
print(formatLabel("Expires", minted.expiresAt));
|
|
59380
|
+
print(formatLabel("Key", minted.key));
|
|
59381
|
+
print(formatWarning("Store this key now. It will not be shown again."));
|
|
59382
|
+
} catch (error) {
|
|
59383
|
+
handleError(error);
|
|
59384
|
+
}
|
|
59385
|
+
}));
|
|
59386
|
+
}
|
|
59387
|
+
function createOperatorKeyCommand() {
|
|
59388
|
+
return new Command("operator-key").description("Read-only keys for headless agents on the admin MCP (/mcp/admin). Revocable, shown once").addCommand(new Command("create").description("Mint a key bound to the organization you are signed in to (preview unless --yes)").requiredOption("--label <label>", "Key name, e.g. the agent that will use it").option("--expires-in-days <days>", "Expire the key after N days (default 90, at most 365)", Number).option("--allowed-ip <ip...>", "Accept the key only from these IP addresses (default: any)").option("--yes", "Mint the key").option("--json", "Output as JSON").action(async (options, command) => {
|
|
59389
|
+
try {
|
|
59390
|
+
if (!options.yes) {
|
|
59391
|
+
print(formatHeader(`Operator key (preview)
|
|
59392
|
+
`));
|
|
59393
|
+
print(formatLabel("Label", options.label));
|
|
59394
|
+
print(formatLabel("Access", "read only, reviewed operator routes"));
|
|
59395
|
+
print(formatLabel("Expires", `${options.expiresInDays ?? 90} days`));
|
|
59396
|
+
print(formatLabel("IPs", options.allowedIp ? options.allowedIp.join(", ") : "any"));
|
|
59397
|
+
print(formatWarning("Re-run with --yes to mint the key. It is shown once."));
|
|
59398
|
+
return;
|
|
59399
|
+
}
|
|
59400
|
+
const minted = await mintOperatorKey({
|
|
59401
|
+
allowedIps: options.allowedIp,
|
|
59402
|
+
expiresInDays: options.expiresInDays,
|
|
59403
|
+
label: options.label
|
|
59404
|
+
});
|
|
59405
|
+
if (wantsJson(command)) {
|
|
59406
|
+
printJson(minted);
|
|
59407
|
+
return;
|
|
59408
|
+
}
|
|
59409
|
+
print(formatSuccess(`Minted operator key ${minted.id}`));
|
|
59410
|
+
print(formatLabel("Organization", minted.organizationId));
|
|
59411
|
+
if (minted.expiresAt)
|
|
59412
|
+
print(formatLabel("Expires", minted.expiresAt));
|
|
59413
|
+
print(formatLabel("Key", minted.key));
|
|
59414
|
+
print(formatWarning("Store this key now. It will not be shown again."));
|
|
59415
|
+
} catch (error) {
|
|
59416
|
+
handleError(error);
|
|
59417
|
+
}
|
|
59418
|
+
})).addCommand(new Command("list").description("List the operator keys you minted in this organization").option("--json", "Output as JSON").action(async (_options, command) => {
|
|
59419
|
+
try {
|
|
59420
|
+
const keys = await listOperatorKeys();
|
|
59421
|
+
if (wantsJson(command)) {
|
|
59422
|
+
printJson(keys);
|
|
59423
|
+
return;
|
|
59424
|
+
}
|
|
59425
|
+
if (keys.length === 0) {
|
|
59426
|
+
print("No operator keys");
|
|
59427
|
+
return;
|
|
59428
|
+
}
|
|
59429
|
+
for (const key of keys) {
|
|
59430
|
+
const state = key.isRevoked ? "revoked" : "active";
|
|
59431
|
+
print(`${key.id} ${key.label} …${key.lastFour} ${state} last used ${key.lastUsedAt ?? "never"}`);
|
|
59432
|
+
}
|
|
59433
|
+
} catch (error) {
|
|
59434
|
+
handleError(error);
|
|
59435
|
+
}
|
|
59436
|
+
})).addCommand(new Command("revoke").description("Revoke a key. The next call with it is refused").argument("<keyId>", "Operator key id").action(async (keyId) => {
|
|
59437
|
+
try {
|
|
59438
|
+
await revokeOperatorKey(keyId);
|
|
59439
|
+
print(formatSuccess(`Revoked operator key ${keyId}`));
|
|
59440
|
+
} catch (error) {
|
|
59441
|
+
handleError(error);
|
|
59442
|
+
}
|
|
59443
|
+
}));
|
|
59444
|
+
}
|
|
59445
|
+
|
|
59446
|
+
// src/operations/admin-brand-os.ts
|
|
59447
|
+
async function approveOrganizationBrandOs(organizationId, brandId, kit) {
|
|
59448
|
+
const response = await adminPost(`/admin/organizations/${encodeURIComponent(organizationId)}/brands/${encodeURIComponent(brandId)}/brand-os/approve`, kit);
|
|
59449
|
+
return response.data;
|
|
59450
|
+
}
|
|
59451
|
+
|
|
59452
|
+
// src/commands/admin/brand-os.ts
|
|
59453
|
+
function collect(value, previous = []) {
|
|
59454
|
+
return [...previous, value];
|
|
59455
|
+
}
|
|
59456
|
+
function toKit(options) {
|
|
59457
|
+
const kit = {
|
|
59458
|
+
description: options.description,
|
|
59459
|
+
promptGuidelines: options.guidelines,
|
|
59460
|
+
voiceAudience: options.audience,
|
|
59461
|
+
voiceDoNotSoundLike: options.doNotSoundLike,
|
|
59462
|
+
voiceMessagingPillars: options.messagingPillars,
|
|
59463
|
+
voiceSampleOutput: options.sample,
|
|
59464
|
+
voiceStyle: options.style,
|
|
59465
|
+
voiceTone: options.tone,
|
|
59466
|
+
voiceValues: options.values
|
|
59467
|
+
};
|
|
59468
|
+
return Object.fromEntries(Object.entries(kit).filter(([, value]) => value !== undefined));
|
|
59469
|
+
}
|
|
59470
|
+
function createBrandOsApproveCommand() {
|
|
59471
|
+
return new Command("os-approve").description("Set the voice and guidelines of a brand in any organization and approve its Brand OS (preview unless --yes)").requiredOption("--org <organizationId>", "Organization id").requiredOption("--brand <brandId>", "Brand id").option("--description <text>", "Brand description").option("--tone <text>", "Voice tone").option("--style <text>", "Voice style").option("--sample <text>", "Sample output in the brand voice").option("--guidelines <text>", "Prompt guidelines").option("--audience <text>", "Audience (repeat for several)", collect).option("--values <text>", "Voice value (repeat for several)", collect).option("--messaging-pillars <text>", "Messaging pillar (repeat for several)", collect).option("--do-not-sound-like <text>", "What the voice must not sound like (repeat)", collect).option("--yes", "Apply the fields and approve the revision").action(async (options) => {
|
|
59472
|
+
try {
|
|
59473
|
+
const kit = toKit(options);
|
|
59474
|
+
if (Object.keys(kit).length === 0) {
|
|
59475
|
+
throw new GenfeedError("Pass at least one kit field.", 'Example: --tone "Bold and punchy" --style "Very short lines"');
|
|
59476
|
+
}
|
|
59477
|
+
if (!options.yes) {
|
|
59478
|
+
print(formatHeader(`Brand OS approval (preview)
|
|
59479
|
+
`));
|
|
59480
|
+
print(formatLabel("Organization", options.org));
|
|
59481
|
+
print(formatLabel("Brand", options.brand));
|
|
59482
|
+
for (const [field, value] of Object.entries(kit)) {
|
|
59483
|
+
print(formatLabel(field, Array.isArray(value) ? value.join(" | ") : String(value)));
|
|
59484
|
+
}
|
|
59485
|
+
print(formatWarning("Re-run with --yes to apply these fields and approve the Brand OS."));
|
|
59486
|
+
return;
|
|
59487
|
+
}
|
|
59488
|
+
const result = await approveOrganizationBrandOs(options.org, options.brand, kit);
|
|
59489
|
+
print(formatSuccess(`Approved Brand OS revision ${result.revisionId} (v${result.version})`));
|
|
59490
|
+
print(formatLabel("Status", result.status));
|
|
59491
|
+
print(formatLabel("Applied", result.appliedFields.join(", ") || "none"));
|
|
59492
|
+
} catch (error) {
|
|
59493
|
+
handleError(error);
|
|
59494
|
+
}
|
|
59495
|
+
});
|
|
59496
|
+
}
|
|
59497
|
+
|
|
59378
59498
|
// src/commands/admin/brand-scan.ts
|
|
59379
59499
|
function createBrandScanCommand() {
|
|
59380
59500
|
return new Command("scan").description("Scan a website or social profile into the brand kit (preview unless --yes)").requiredOption("--org <organizationId>", "Organization id").requiredOption("--brand <brandId>", "Brand id").requiredOption("--url <url>", "Website or social profile URL to scan").option("--yes", "Run the scan").option("--json", "Output as JSON").action(async (options, command) => {
|
|
@@ -60356,6 +60476,95 @@ var PRESET_CATALOG = WITHOUT_EXAMPLES.map((preset) => ({
|
|
|
60356
60476
|
examples: PRESET_EXAMPLE_DATA[preset.key] ?? []
|
|
60357
60477
|
}));
|
|
60358
60478
|
|
|
60479
|
+
// ../contracts/src/constants/prompt-catalog.generated.ts
|
|
60480
|
+
var PROMPT_CATALOG_DATA = [
|
|
60481
|
+
{ key: "ad-screen-demo", label: "Screen demo prompt", description: "A narrated screen demonstration: a voiceover walks through the screen content you provide.", text: `Create a {{aspectRatio}} video lasting {{duration}} seconds.
|
|
60482
|
+
|
|
60483
|
+
Do not add captions, titles, logos or other generated words on screen.
|
|
60484
|
+
|
|
60485
|
+
{{referenceRoles}}
|
|
60486
|
+
|
|
60487
|
+
Say "{{dialogue}}". Use the same words, same number of words, same order.
|
|
60488
|
+
|
|
60489
|
+
Show the referenced screen content clearly while the voiceover explains it.
|
|
60490
|
+
|
|
60491
|
+
Keep human anatomy, objects and surroundings at realistic proportions.
|
|
60492
|
+
|
|
60493
|
+
{{lensMm}} mm lens; compose for {{aspectRatio}}.
|
|
60494
|
+
|
|
60495
|
+
{{qualityLook}}
|
|
60496
|
+
|
|
60497
|
+
Use believable, consistent light that suits the setting.
|
|
60498
|
+
|
|
60499
|
+
Speak naturally with restrained gestures and expressions.
|
|
60500
|
+
|
|
60501
|
+
Start with an attentive look, deliver the dialogue, then settle naturally.
|
|
60502
|
+
|
|
60503
|
+
Reference audio steers the voice. There is no unchanged-audio guarantee.
|
|
60504
|
+
|
|
60505
|
+
Maintain identity, wardrobe, setting and lighting throughout.`, cover: "https://cdn.genfeed.ai/assets/cards/presets/ad-screen-demo.webp", mediaType: "video" },
|
|
60506
|
+
{ key: "ad-talking-head", label: "Talking head prompt", description: "A direct-to-camera presentation: one person speaks your script in a steady, clean frame.", text: `Create a {{aspectRatio}} video lasting {{duration}} seconds.
|
|
60507
|
+
|
|
60508
|
+
Do not add captions, titles, logos or other generated words on screen.
|
|
60509
|
+
|
|
60510
|
+
{{referenceRoles}}
|
|
60511
|
+
|
|
60512
|
+
Say "{{dialogue}}". Use the same words, same number of words, same order.
|
|
60513
|
+
|
|
60514
|
+
Keep the referenced person recognizable and interacting naturally with the setting.
|
|
60515
|
+
|
|
60516
|
+
Keep human anatomy, objects and surroundings at realistic proportions.
|
|
60517
|
+
|
|
60518
|
+
{{lensMm}} mm lens; compose for {{aspectRatio}}.
|
|
60519
|
+
|
|
60520
|
+
{{qualityLook}}
|
|
60521
|
+
|
|
60522
|
+
Use believable, consistent light that suits the setting.
|
|
60523
|
+
|
|
60524
|
+
Speak naturally with restrained gestures and expressions.
|
|
60525
|
+
|
|
60526
|
+
Start with an attentive look, deliver the dialogue, then settle naturally.
|
|
60527
|
+
|
|
60528
|
+
Reference audio steers the voice. There is no unchanged-audio guarantee.
|
|
60529
|
+
|
|
60530
|
+
Maintain identity, wardrobe, setting and lighting throughout.`, cover: "https://cdn.genfeed.ai/assets/cards/presets/ad-talking-head.webp", mediaType: "video" },
|
|
60531
|
+
{ key: "ad-ugc-selfie", label: "UGC selfie ad prompt", description: "A casual handheld selfie ad: one person talks straight to their phone camera, in the setting you choose.", text: `Create a {{aspectRatio}} video lasting {{duration}} seconds.
|
|
60532
|
+
|
|
60533
|
+
Do not add captions, titles, logos or other generated words on screen.
|
|
60534
|
+
|
|
60535
|
+
{{referenceRoles}}
|
|
60536
|
+
|
|
60537
|
+
Say "{{dialogue}}". Use the same words, same number of words, same order.
|
|
60538
|
+
|
|
60539
|
+
Keep the referenced person recognizable and interacting naturally with the setting.
|
|
60540
|
+
|
|
60541
|
+
Keep human anatomy, objects and surroundings at realistic proportions.
|
|
60542
|
+
|
|
60543
|
+
Handheld phone selfie, {{lensMm}} mm lens, {{aspectRatio}}; subtle natural movement.
|
|
60544
|
+
|
|
60545
|
+
{{qualityLook}}
|
|
60546
|
+
|
|
60547
|
+
Use believable, consistent light that suits the setting.
|
|
60548
|
+
|
|
60549
|
+
Speak naturally with restrained gestures and expressions.
|
|
60550
|
+
|
|
60551
|
+
Start with an attentive look, deliver the dialogue, then settle naturally.
|
|
60552
|
+
|
|
60553
|
+
Reference audio steers the voice. There is no unchanged-audio guarantee.
|
|
60554
|
+
|
|
60555
|
+
Maintain identity, wardrobe, setting and lighting throughout.`, cover: "https://cdn.genfeed.ai/assets/cards/presets/ad-ugc-selfie.webp", mediaType: "video" },
|
|
60556
|
+
{ key: "studio-animation", label: "Animation prompt", description: "A playful animated scene with clear movement.", text: "Animate your subject in a short playful scene.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-animation.webp", mediaType: "video", examples: [{ url: "https://cdn.genfeed.ai/assets/prompts/studio-animation/paper-fox.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf7r101440gmnknbkoef8.jpg", alt: "A paper-folded fox exploring a tiny cardboard city", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-animation/coffee-cup.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf8cl01480gmn545edgjb.jpg", alt: "A cartoon coffee cup that wakes up and stretches", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-animation/clay-astronaut.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf8yk014c0gmnl5v82lg8.jpg", alt: "A clay astronaut planting a flag on a cheese moon", aspectRatio: "9:16", mediaType: "video" }] },
|
|
60557
|
+
{ key: "studio-banner", label: "Banner prompt", description: "A wide composition with space for your headline.", text: "Create a wide banner for your topic or brand.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-banner.webp", mediaType: "image", examples: [{ url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcon6012d0gmnaij9ghb0.jpg", alt: "A banner for an artisanal coffee roaster, with a wooden shop sign and baristas at work", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcpj9012h0gmn613no1rd.jpg", alt: "A banner for a running club's autumn half marathon, with runners on a leaf-covered road", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcq5g012l0gmn8yxd0rf8.jpg", alt: "A banner for a cozy indie farming game studio, with a farmer, a dog and a garden", aspectRatio: "1:1", mediaType: "image" }] },
|
|
60558
|
+
{ key: "studio-dance", label: "Dance prompt", description: "A full-body performance with room to move.", text: "Create a short dance performance featuring your subject.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-dance.webp", mediaType: "video", examples: [{ url: "https://cdn.genfeed.ai/assets/prompts/studio-dance/chrome-robot.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf9kk014g0gmnlh0gqa5g.jpg", alt: "A chrome robot dancing in a neon-lit parking garage", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-dance/retriever.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jfa74014k0gmnw17h95ge.jpg", alt: "A golden retriever dancing in a sunny kitchen", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-dance/flamenco.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jfbdw014s0gmnvmtl1pm3.jpg", alt: "A flamenco dancer on a whitewashed rooftop at sunset", aspectRatio: "9:16", mediaType: "video" }] },
|
|
60559
|
+
{ key: "studio-edit-enhance", label: "Enhance photo prompt", description: "Better light, color and sharpness, same subject.", text: "Improve the lighting, color balance and sharpness of this photo. Keep the subject, composition and details the same.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-edit-enhance.webp", mediaType: "image-edit" },
|
|
60560
|
+
{ key: "studio-edit-remove-background", label: "Remove background prompt", description: "Cut out the subject on a clean white background.", text: "Remove the background and place the subject on a clean, plain white background. Keep the subject unchanged.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-edit-remove-background.webp", mediaType: "image-edit" },
|
|
60561
|
+
{ key: "studio-edit-restyle", label: "Change style prompt", description: "Redraw the image as an illustration, same composition.", text: "Restyle this image as a clean, modern illustration. Keep the composition and subject recognizable.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-edit-restyle.webp", mediaType: "image-edit" },
|
|
60562
|
+
{ key: "studio-edit-retouch", label: "Retouch prompt", description: "Remove blemishes and distractions, change nothing else.", text: "Remove blemishes, dust and small distractions. Leave everything else exactly as it is.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-edit-retouch.webp", mediaType: "image-edit" },
|
|
60563
|
+
{ key: "studio-meme", label: "Meme prompt", description: "A short reaction with a quick setup and punchline.", text: "Create a short reaction meme about your topic.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-meme.webp", mediaType: "video", examples: [{ url: "https://cdn.genfeed.ai/assets/prompts/studio-meme/first-try.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf5wt013s0gmnvkwmhen8.jpg", alt: "A reaction meme of a developer celebrating code that works on the first try", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-meme/meeting.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf6j6013w0gmn57xzo1m9.jpg", alt: "A reaction meme about finding out the meeting could have been an email", aspectRatio: "9:16", mediaType: "video" }, { url: "https://cdn.genfeed.ai/assets/prompts/studio-meme/cat.mp4", posterUrl: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jf75601400gmndf27wg4w.jpg", alt: "A reaction meme of a cat that just heard the fridge open", aspectRatio: "9:16", mediaType: "video" }] },
|
|
60564
|
+
{ key: "studio-profile-picture", label: "Profile picture prompt", description: "A clean portrait with room for a circular crop.", text: "Create a professional profile picture of your subject.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-profile-picture.webp", mediaType: "image", examples: [{ url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcqr7012p0gmnconcwg3h.jpg", alt: "A profile picture of a founder", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcrdk012t0gmnoetxoqtd.jpg", alt: "A profile picture of a chef", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcs5e012x0gmno8f2ziqw.jpg", alt: "A profile picture of a saxophonist", aspectRatio: "1:1", mediaType: "image" }] },
|
|
60565
|
+
{ key: "studio-youtube-thumbnail", label: "YouTube thumbnail prompt", description: "A bold focal point that reads at small sizes.", text: "Create a YouTube thumbnail for your video topic.", cover: "https://cdn.genfeed.ai/assets/cards/presets/studio-youtube-thumbnail.webp", mediaType: "image", examples: [{ url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jc96o011z0gmnvv8tfg16.jpg", alt: "A YouTube thumbnail for a video about building a SaaS product in a weekend", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcnaf01250gmnkncls3kq.jpg", alt: "A YouTube thumbnail for a video about a daily cold plunge routine", aspectRatio: "1:1", mediaType: "image" }, { url: "https://cdn.genfeed.ai/assets/articles/ka4p0pcnf7urmc40ro1ui41s/cmx4jcnyq01290gmnhxqg4ykr.jpg", alt: "A YouTube thumbnail for a video about editing YouTube videos twice as fast", aspectRatio: "1:1", mediaType: "image" }] }
|
|
60566
|
+
];
|
|
60567
|
+
|
|
60359
60568
|
// ../contracts/src/constants/workflow-catalog.generated.ts
|
|
60360
60569
|
var WORKFLOW_CATALOG_DATA = [
|
|
60361
60570
|
{ key: "ad-remix-review", label: "Ad Remix And Review", category: "ads", description: "Inspect a winning ad, adapt the angle to your brand, draft an ad pack, and prepare a paused campaign for human review.", icon: "megaphone", inputVariables: [{ defaultValue: "", key: "brandName", label: "Brand Name", required: true, type: "text" }, { defaultValue: "", key: "industry", label: "Industry / Niche", required: true, type: "text" }, { defaultValue: "", key: "objective", label: "Campaign Objective", required: true, type: "text" }, { defaultValue: "", key: "sourceHeadline", label: "Source Headline", required: false, type: "text" }, { defaultValue: "", key: "sourceBody", label: "Source Body", required: false, type: "text" }, { defaultValue: "", key: "sourceCta", label: "Source CTA", required: false, type: "text" }], nodes: [{ data: { config: { inputName: "brandName", inputType: "text", required: true }, label: "Brand Name" }, id: "workflow-input-brand-name", position: { x: 0, y: 40 }, type: "workflowInput" }, { data: { config: { inputName: "industry", inputType: "text", required: true }, label: "Niche" }, id: "workflow-input-industry", position: { x: 0, y: 180 }, type: "workflowInput" }, { data: { config: { inputName: "objective", inputType: "text", required: true }, label: "Objective" }, id: "workflow-input-objective", position: { x: 0, y: 320 }, type: "workflowInput" }, { data: { config: { actionId: "promptConstructor", parameters: { template: "Analyze the source ad angle. Preserve the conversion mechanics, simplify the promise, adapt the offer to {{brandName}}, and rewrite it for a {{industry}} audience with a {{objective}} objective. Use the source signals as inspiration, not as copy.", variables: {} } }, inputVariableKeys: [], label: "Pattern Extraction" }, id: "ai-prompt-constructor-ad-pattern", position: { x: 320, y: 180 }, type: "genfeedAction" }, { data: { config: { actionId: "workflow.collect-output", parameters: { outputName: "adPack" } }, inputVariableKeys: [], label: "Ad Pack Output" }, id: "workflow-output-ad-pack", position: { x: 720, y: 120 }, type: "genfeedAction" }, { data: { config: { actionId: "workflow.collect-output", parameters: { outputName: "launchPrep" } }, inputVariableKeys: [], label: "Launch Prep Output" }, id: "workflow-output-launch-prep", position: { x: 720, y: 280 }, type: "genfeedAction" }] },
|
|
@@ -60416,6 +60625,7 @@ X post:
|
|
|
60416
60625
|
|
|
60417
60626
|
// src/operations/admin-marketplace-sync.ts
|
|
60418
60627
|
var PRESET_LISTING_SOURCE = "genfeedai/presets";
|
|
60628
|
+
var PROMPT_LISTING_SOURCE = "genfeedai/prompts";
|
|
60419
60629
|
var WORKFLOW_LISTING_SOURCE = "genfeedai/workflows";
|
|
60420
60630
|
var SKILL_LISTING_SOURCE = "genfeedai/skills";
|
|
60421
60631
|
var OFFICIAL_SELLER_NAME = "Genfeed Official";
|
|
@@ -60494,6 +60704,42 @@ A built-in Genfeed ${kind} preset for ${preset.type} generation. It is free and
|
|
|
60494
60704
|
function buildPresetListings(catalog = PRESET_CATALOG) {
|
|
60495
60705
|
return catalog.map(buildPresetListing);
|
|
60496
60706
|
}
|
|
60707
|
+
function promptCategory(mediaType) {
|
|
60708
|
+
return mediaType === "video" ? "video-generation" : "image-generation";
|
|
60709
|
+
}
|
|
60710
|
+
function buildPromptListing(prompt) {
|
|
60711
|
+
const examples = prompt.examples ?? [];
|
|
60712
|
+
const { previewData: exampleData, ...exampleMedia } = listingMedia(examples);
|
|
60713
|
+
const needsCover = !exampleMedia.thumbnail && Boolean(prompt.cover);
|
|
60714
|
+
const media = needsCover ? { ...exampleMedia, thumbnail: prompt.cover } : exampleMedia;
|
|
60715
|
+
const mediaPreviewData = needsCover && !exampleData.aspectRatio ? { ...exampleData, aspectRatio: COVER_ASPECT_RATIO } : exampleData;
|
|
60716
|
+
return {
|
|
60717
|
+
...media,
|
|
60718
|
+
description: `${prompt.description}
|
|
60719
|
+
|
|
60720
|
+
${prompt.text}`,
|
|
60721
|
+
downloadData: {
|
|
60722
|
+
category: promptCategory(prompt.mediaType),
|
|
60723
|
+
template: prompt.text
|
|
60724
|
+
},
|
|
60725
|
+
packageSlug: prompt.key,
|
|
60726
|
+
packageSource: PROMPT_LISTING_SOURCE,
|
|
60727
|
+
previewData: {
|
|
60728
|
+
...prompt.mediaType ? { mediaType: prompt.mediaType } : {},
|
|
60729
|
+
...mediaPreviewData,
|
|
60730
|
+
...examples.length > 0 ? { examples: plain(examples) } : {}
|
|
60731
|
+
},
|
|
60732
|
+
price: 0,
|
|
60733
|
+
shortDescription: truncate(prompt.description, SHORT_DESCRIPTION_MAX),
|
|
60734
|
+
tags: ["prompt", ...prompt.mediaType ? [prompt.mediaType] : []],
|
|
60735
|
+
title: prompt.label,
|
|
60736
|
+
type: "prompt",
|
|
60737
|
+
version: "1.0.0"
|
|
60738
|
+
};
|
|
60739
|
+
}
|
|
60740
|
+
function buildPromptListings(catalog = PROMPT_CATALOG_DATA) {
|
|
60741
|
+
return catalog.map(buildPromptListing);
|
|
60742
|
+
}
|
|
60497
60743
|
function buildWorkflowListing(workflow) {
|
|
60498
60744
|
const inputs = workflow.inputVariables ?? [];
|
|
60499
60745
|
return {
|
|
@@ -60560,7 +60806,9 @@ async function buildSkillListing(skillDir, moduleName, slug) {
|
|
|
60560
60806
|
if (!files.some((file) => file.path === SKILL_FILE_NAME)) {
|
|
60561
60807
|
throw new Error(`${SKILL_FILE_NAME} is missing`);
|
|
60562
60808
|
}
|
|
60809
|
+
const cover = typeof metadata.cover === "string" && metadata.cover ? metadata.cover : undefined;
|
|
60563
60810
|
const draft = {
|
|
60811
|
+
...cover ? { thumbnail: cover } : {},
|
|
60564
60812
|
description: `${description}
|
|
60565
60813
|
|
|
60566
60814
|
A free Genfeed skill from the open-source skills repository (module: ${moduleName}). It works in any agent that reads Agent Skills.`,
|
|
@@ -60568,6 +60816,7 @@ A free Genfeed skill from the open-source skills repository (module: ${moduleNam
|
|
|
60568
60816
|
packageSlug: slug,
|
|
60569
60817
|
packageSource: SKILL_LISTING_SOURCE,
|
|
60570
60818
|
previewData: {
|
|
60819
|
+
...cover ? { aspectRatio: COVER_ASPECT_RATIO } : {},
|
|
60571
60820
|
fileCount: files.length,
|
|
60572
60821
|
module: moduleName,
|
|
60573
60822
|
triggers: readStrings(metadata.triggers)
|
|
@@ -60690,9 +60939,9 @@ async function applySyncPlan(marketplaceApiUrl, plan) {
|
|
|
60690
60939
|
|
|
60691
60940
|
// src/commands/admin/marketplace.ts
|
|
60692
60941
|
function parseSyncSelection(value) {
|
|
60693
|
-
if (value === "all" || value === "presets" || value === "skills" || value === "workflows")
|
|
60942
|
+
if (value === "all" || value === "presets" || value === "prompts" || value === "skills" || value === "workflows")
|
|
60694
60943
|
return value;
|
|
60695
|
-
throw new GenfeedError(`Unknown selection "${value}"`, "Use one of: all, presets, skills, workflows");
|
|
60944
|
+
throw new GenfeedError(`Unknown selection "${value}"`, "Use one of: all, presets, prompts, skills, workflows");
|
|
60696
60945
|
}
|
|
60697
60946
|
function describeMedia(draft) {
|
|
60698
60947
|
return {
|
|
@@ -60718,12 +60967,14 @@ async function runSync(options, command) {
|
|
|
60718
60967
|
let skipped = [];
|
|
60719
60968
|
if (options.only === "all" || options.only === "presets")
|
|
60720
60969
|
drafts.push(...buildPresetListings());
|
|
60970
|
+
if (options.only === "all" || options.only === "prompts")
|
|
60971
|
+
drafts.push(...buildPromptListings());
|
|
60721
60972
|
if (options.only === "all" || options.only === "workflows") {
|
|
60722
60973
|
drafts.push(...buildWorkflowListings());
|
|
60723
60974
|
}
|
|
60724
60975
|
if (options.only === "all" || options.only === "skills") {
|
|
60725
60976
|
if (!options.skillsDir) {
|
|
60726
|
-
throw new GenfeedError("Skills need a checkout of genfeedai/skills", "Pass --skills-dir <path>, or --only presets or
|
|
60977
|
+
throw new GenfeedError("Skills need a checkout of genfeedai/skills", "Pass --skills-dir <path>, or --only presets, prompts or workflows");
|
|
60727
60978
|
}
|
|
60728
60979
|
const skills = await readSkillListings(options.skillsDir);
|
|
60729
60980
|
drafts.push(...skills.drafts);
|
|
@@ -60760,7 +61011,7 @@ async function runSync(options, command) {
|
|
|
60760
61011
|
const withMedia = plan.entries.filter((entry) => entry.draft.thumbnail || entry.draft.previewVideo || entry.draft.previewImages?.length);
|
|
60761
61012
|
print(formatLabel("Media", `${withMedia.length} of ${plan.entries.length} items set a picture or a clip`));
|
|
60762
61013
|
for (const entry of plan.entries) {
|
|
60763
|
-
if (entry.draft.type === "preset")
|
|
61014
|
+
if (entry.draft.type === "preset" || entry.draft.type === "prompt")
|
|
60764
61015
|
print(` ${formatMediaLine(entry.draft)}`);
|
|
60765
61016
|
}
|
|
60766
61017
|
print(formatLabel("Plan", `${counts.create} to create, ${counts.update} to update, ${counts["finish-review"]} to publish, ${counts.unchanged} unchanged, ${counts.rejected} rejected earlier (left alone)`));
|
|
@@ -60841,7 +61092,7 @@ function createMarketplaceCommand() {
|
|
|
60841
61092
|
} catch (error) {
|
|
60842
61093
|
handleError(error);
|
|
60843
61094
|
}
|
|
60844
|
-
})).addCommand(new Command("sync").description("Create or update the free Genfeed preset, workflow and skill listings from their sources (preview unless --yes)").option("--only <what>", "all | presets | workflows | skills", parseSyncSelection, "all").option("--skills-dir <path>", "A checkout of genfeedai/skills").option("--yes", "Write the changes to the store").option("--json", "Output as JSON").action(async (options, command) => {
|
|
61095
|
+
})).addCommand(new Command("sync").description("Create or update the free Genfeed preset, prompt, workflow and skill listings from their sources (preview unless --yes)").option("--only <what>", "all | presets | prompts | workflows | skills", parseSyncSelection, "all").option("--skills-dir <path>", "A checkout of genfeedai/skills").option("--yes", "Write the changes to the store").option("--json", "Output as JSON").action(async (options, command) => {
|
|
60845
61096
|
try {
|
|
60846
61097
|
await runSync(options, command);
|
|
60847
61098
|
} catch (error) {
|
|
@@ -61662,60 +61913,17 @@ function createMemberCommand() {
|
|
|
61662
61913
|
`));
|
|
61663
61914
|
print(formatLabel("Organization", options.org));
|
|
61664
61915
|
print(formatLabel("Email", options.email));
|
|
61665
|
-
print(formatLabel("Role", options.role));
|
|
61666
|
-
print(formatWarning("No email is sent. Re-run with --yes to add the member."));
|
|
61667
|
-
return;
|
|
61668
|
-
}
|
|
61669
|
-
const added = await addOrganizationMember(options.org, {
|
|
61670
|
-
email: options.email,
|
|
61671
|
-
firstName: options.firstName,
|
|
61672
|
-
lastName: options.lastName,
|
|
61673
|
-
roleKey: options.role
|
|
61674
|
-
});
|
|
61675
|
-
print(formatSuccess(`${added.isMemberCreated ? "Added" : "Updated"} member ${added.memberId} as ${added.roleKey} (${added.isUserCreated ? "new user" : "existing user"} ${added.userId})`));
|
|
61676
|
-
} catch (error) {
|
|
61677
|
-
handleError(error);
|
|
61678
|
-
}
|
|
61679
|
-
}));
|
|
61680
|
-
}
|
|
61681
|
-
function createPartnerKeyCommand() {
|
|
61682
|
-
return new Command("partner-key").description("Mint partner API keys (scopes a user cannot grant to their own key)").addCommand(new Command("create").description("Mint a partner key for an organization (preview unless --yes). Default: images=write, brands=write").requiredOption("--org <organizationId>", "Organization id").requiredOption("--label <label>", "Key name shown in the organization settings").option("--level <resource=level...>", "Override the levels, e.g. images=write brands=read (none, read or write)").option("--brand <brandId>", "Default brand for generation calls").option("--allowed-brand <brandId...>", "Limit the key to these brands (default: every brand in the organization)").option("--description <text>", "What the key is for").option("--expires-in-days <days>", "Expire the key after N days", Number).option("--yes", "Mint the key").option("--json", "Output as JSON").action(async (options, command) => {
|
|
61683
|
-
try {
|
|
61684
|
-
const levels = options.level ? parsePartnerKeyLevels(options.level) : undefined;
|
|
61685
|
-
if (!options.yes) {
|
|
61686
|
-
print(formatHeader(`Partner key (preview)
|
|
61687
|
-
`));
|
|
61688
|
-
print(formatLabel("Organization", options.org));
|
|
61689
|
-
print(formatLabel("Label", options.label));
|
|
61690
|
-
print(formatLabel("Levels", levels ? Object.entries(levels).map(([resource, level]) => `${resource}=${level}`).join(", ") : "images=write, brands=write (partner default)"));
|
|
61691
|
-
if (options.brand)
|
|
61692
|
-
print(formatLabel("Default brand", options.brand));
|
|
61693
|
-
print(formatLabel("Brands", options.allowedBrand ? options.allowedBrand.join(", ") : "every brand"));
|
|
61694
|
-
print(formatWarning("Re-run with --yes to mint the key. It is shown once."));
|
|
61695
|
-
return;
|
|
61696
|
-
}
|
|
61697
|
-
const minted = await mintPartnerApiKey(options.org, {
|
|
61698
|
-
allowedBrandIds: options.allowedBrand,
|
|
61699
|
-
defaultBrandId: options.brand,
|
|
61700
|
-
description: options.description,
|
|
61701
|
-
expiresInDays: options.expiresInDays,
|
|
61702
|
-
label: options.label,
|
|
61703
|
-
levels
|
|
61704
|
-
});
|
|
61705
|
-
if (wantsJson(command)) {
|
|
61706
|
-
printJson(minted);
|
|
61916
|
+
print(formatLabel("Role", options.role));
|
|
61917
|
+
print(formatWarning("No email is sent. Re-run with --yes to add the member."));
|
|
61707
61918
|
return;
|
|
61708
61919
|
}
|
|
61709
|
-
|
|
61710
|
-
|
|
61711
|
-
|
|
61712
|
-
|
|
61713
|
-
|
|
61714
|
-
}
|
|
61715
|
-
|
|
61716
|
-
print(formatLabel("Expires", minted.expiresAt));
|
|
61717
|
-
print(formatLabel("Key", minted.key));
|
|
61718
|
-
print(formatWarning("Store this key now. It will not be shown again."));
|
|
61920
|
+
const added = await addOrganizationMember(options.org, {
|
|
61921
|
+
email: options.email,
|
|
61922
|
+
firstName: options.firstName,
|
|
61923
|
+
lastName: options.lastName,
|
|
61924
|
+
roleKey: options.role
|
|
61925
|
+
});
|
|
61926
|
+
print(formatSuccess(`${added.isMemberCreated ? "Added" : "Updated"} member ${added.memberId} as ${added.roleKey} (${added.isUserCreated ? "new user" : "existing user"} ${added.userId})`));
|
|
61719
61927
|
} catch (error) {
|
|
61720
61928
|
handleError(error);
|
|
61721
61929
|
}
|
|
@@ -61777,7 +61985,7 @@ var adminCommand = new Command("admin").description("Super admin one-offs over t
|
|
|
61777
61985
|
} catch (error) {
|
|
61778
61986
|
handleError(error);
|
|
61779
61987
|
}
|
|
61780
|
-
})).addCommand(createPricingCommand()).addCommand(createSeedCommand()).addCommand(createBrandCommand()).addCommand(createCreditsCommand()).addCommand(createMemberCommand()).addCommand(createPartnerKeyCommand()).addCommand(createWarmupCommand()).addCommand(createMarketplaceCommand());
|
|
61988
|
+
})).addCommand(createPricingCommand()).addCommand(createSeedCommand()).addCommand(createBrandCommand()).addCommand(createCreditsCommand()).addCommand(createMemberCommand()).addCommand(createPartnerKeyCommand()).addCommand(createOperatorKeyCommand()).addCommand(createWarmupCommand()).addCommand(createMarketplaceCommand());
|
|
61781
61989
|
|
|
61782
61990
|
// src/commands/auth-status.ts
|
|
61783
61991
|
async function readAuthStatus() {
|
|
@@ -64143,6 +64351,22 @@ var REVIEWED_RATE_SHEET_ENTRIES = [
|
|
|
64143
64351
|
resolution: "2K"
|
|
64144
64352
|
},
|
|
64145
64353
|
isPerOutput: true
|
|
64354
|
+
},
|
|
64355
|
+
{
|
|
64356
|
+
component: "input-second",
|
|
64357
|
+
unit: "input-second",
|
|
64358
|
+
unitPriceUsd: 0.08,
|
|
64359
|
+
when: {
|
|
64360
|
+
resolution: "768P"
|
|
64361
|
+
}
|
|
64362
|
+
},
|
|
64363
|
+
{
|
|
64364
|
+
component: "input-second",
|
|
64365
|
+
unit: "input-second",
|
|
64366
|
+
unitPriceUsd: 0.13,
|
|
64367
|
+
when: {
|
|
64368
|
+
resolution: "2K"
|
|
64369
|
+
}
|
|
64146
64370
|
}
|
|
64147
64371
|
],
|
|
64148
64372
|
sourceUrl: "https://replicate.com/minimax/h3",
|
|
@@ -64169,6 +64393,22 @@ var REVIEWED_RATE_SHEET_ENTRIES = [
|
|
|
64169
64393
|
resolution: "768P"
|
|
64170
64394
|
},
|
|
64171
64395
|
isPerOutput: true
|
|
64396
|
+
},
|
|
64397
|
+
{
|
|
64398
|
+
component: "input-second",
|
|
64399
|
+
unit: "input-second",
|
|
64400
|
+
unitPriceUsd: 0.025,
|
|
64401
|
+
when: {
|
|
64402
|
+
resolution: "480P"
|
|
64403
|
+
}
|
|
64404
|
+
},
|
|
64405
|
+
{
|
|
64406
|
+
component: "input-second",
|
|
64407
|
+
unit: "input-second",
|
|
64408
|
+
unitPriceUsd: 0.04,
|
|
64409
|
+
when: {
|
|
64410
|
+
resolution: "768P"
|
|
64411
|
+
}
|
|
64172
64412
|
}
|
|
64173
64413
|
],
|
|
64174
64414
|
sourceUrl: "https://replicate.com/minimax/h3-lite",
|
|
@@ -64184,6 +64424,12 @@ var REVIEWED_RATE_SHEET_ENTRIES = [
|
|
|
64184
64424
|
unitPriceUsd: 0.06,
|
|
64185
64425
|
when: {},
|
|
64186
64426
|
isPerOutput: true
|
|
64427
|
+
},
|
|
64428
|
+
{
|
|
64429
|
+
component: "input-second",
|
|
64430
|
+
unit: "input-second",
|
|
64431
|
+
unitPriceUsd: 0.06,
|
|
64432
|
+
when: {}
|
|
64187
64433
|
}
|
|
64188
64434
|
],
|
|
64189
64435
|
sourceUrl: "https://replicate.com/minimax/h3-highspeed",
|
|
@@ -71659,7 +71905,7 @@ var package_default = {
|
|
|
71659
71905
|
"type-check": "bun run ../../scripts/architecture/check-typecheck-prerequisites.ts && bun check --no-script"
|
|
71660
71906
|
},
|
|
71661
71907
|
type: "module",
|
|
71662
|
-
version: "0.7.
|
|
71908
|
+
version: "0.7.3"
|
|
71663
71909
|
};
|
|
71664
71910
|
|
|
71665
71911
|
// src/commands/host/catalog.ts
|
|
@@ -72271,12 +72517,25 @@ var INSTAGRAM_VIDEO_VOLUME_SETTING = {
|
|
|
72271
72517
|
label: "Reel sound volume",
|
|
72272
72518
|
type: "number"
|
|
72273
72519
|
};
|
|
72520
|
+
var INSTAGRAM_TRIAL_REEL_SETTING_KEY = "trialReel";
|
|
72521
|
+
var INSTAGRAM_TRIAL_REEL_SETTING = {
|
|
72522
|
+
description: "Publishes the Reel as a Trial Reel, shown to people who do not follow the account. Only applies to Reels with the Reel placement.",
|
|
72523
|
+
key: INSTAGRAM_TRIAL_REEL_SETTING_KEY,
|
|
72524
|
+
label: "Trial Reel",
|
|
72525
|
+
options: [
|
|
72526
|
+
{ label: "Off", value: "off" },
|
|
72527
|
+
{ label: "Graduate by hand", value: "manual" },
|
|
72528
|
+
{ label: "Graduate when it performs well", value: "auto" }
|
|
72529
|
+
],
|
|
72530
|
+
type: "select"
|
|
72531
|
+
};
|
|
72274
72532
|
var INSTAGRAM_PUBLISHING_SETTINGS = [
|
|
72275
72533
|
INSTAGRAM_AI_GENERATED_SETTING,
|
|
72276
72534
|
INSTAGRAM_COVER_IMAGE_SETTING,
|
|
72277
72535
|
INSTAGRAM_AUDIO_ID_SETTING,
|
|
72278
72536
|
INSTAGRAM_AUDIO_VOLUME_SETTING,
|
|
72279
|
-
INSTAGRAM_VIDEO_VOLUME_SETTING
|
|
72537
|
+
INSTAGRAM_VIDEO_VOLUME_SETTING,
|
|
72538
|
+
INSTAGRAM_TRIAL_REEL_SETTING
|
|
72280
72539
|
];
|
|
72281
72540
|
|
|
72282
72541
|
// ../contracts/src/api-types/contracts/channel-setting-validation.contract.ts
|
|
@@ -72415,6 +72674,7 @@ var DEVTO_TAGS_SETTING_KEY = "tags";
|
|
|
72415
72674
|
var DEVTO_CANONICAL_URL_SETTING_KEY = "canonicalUrl";
|
|
72416
72675
|
var DEVTO_SERIES_SETTING_KEY = "series";
|
|
72417
72676
|
var DEVTO_SAVE_AS_DRAFT_SETTING_KEY = "saveAsDraft";
|
|
72677
|
+
var DEVTO_ORGANIZATION_ID_SETTING_KEY = "organizationId";
|
|
72418
72678
|
var DEVTO_PUBLISHING_SETTINGS = [
|
|
72419
72679
|
{
|
|
72420
72680
|
description: "Up to 4 comma-separated tags. Later tags are dropped.",
|
|
@@ -72434,6 +72694,12 @@ var DEVTO_PUBLISHING_SETTINGS = [
|
|
|
72434
72694
|
label: "Series",
|
|
72435
72695
|
type: "string"
|
|
72436
72696
|
},
|
|
72697
|
+
{
|
|
72698
|
+
description: "Numeric id of a Dev.to organization the API key owner belongs to. The article is published under that organization instead of the personal profile. Leave empty to publish as the author.",
|
|
72699
|
+
key: DEVTO_ORGANIZATION_ID_SETTING_KEY,
|
|
72700
|
+
label: "Organization id",
|
|
72701
|
+
type: "number"
|
|
72702
|
+
},
|
|
72437
72703
|
{
|
|
72438
72704
|
defaultValue: false,
|
|
72439
72705
|
description: "Create the article as a private Dev.to draft (published: false) instead of publishing it. Open it in the Dev.to editor to review and publish.",
|
|
@@ -76768,7 +77034,7 @@ var MCP_CATALOG_TOOLS = [
|
|
|
76768
77034
|
{
|
|
76769
77035
|
action: "visual_code_quote",
|
|
76770
77036
|
executes: "quote_visual_code_generation",
|
|
76771
|
-
summary:
|
|
77037
|
+
summary: 'Quote a visual-code request without spending credits; show the model, inspection uncertainty, formats and maximum credits before requesting approval. A create quote takes input={operation:"create", input:{brandId, ...}}: brandId goes inside the inner input.'
|
|
76772
77038
|
}
|
|
76773
77039
|
]
|
|
76774
77040
|
},
|
|
@@ -76949,7 +77215,7 @@ var MCP_CATALOG_TOOLS = [
|
|
|
76949
77215
|
},
|
|
76950
77216
|
{
|
|
76951
77217
|
name: "control_release",
|
|
76952
|
-
description: "Control a release. control requests cancel, reopen (undo a cancel on the same release), pause, resume or publish-now of a scheduled release; publish publishes an owned, reviewed article publicly; remove_post deletes a post from Genfeed, a published one included,
|
|
77218
|
+
description: "Control a release. control requests cancel, reopen (undo a cancel on the same release), pause, resume or publish-now of a scheduled release; publish publishes an owned, reviewed article publicly; remove_post deletes a post from Genfeed, a published one included, with deleteMedia the Library media only it uses, and with deleteOnPlatform the copy on its network first (X and Mastodon only, refused elsewhere; without it the network copy stays live); remove_asset deletes one Library asset by assetId from every post that uses it. Review first with get_content, and check_channel(action=validate) before publish-now. publish-now, resume, publish, remove_post and remove_asset change nothing on the first call: show the person what returns, and after they agree in this conversation repeat it with confirmed true in the input. cancel and pause need no confirmation. After a delete read back with get_content(action=posts) and get_assets.",
|
|
76953
77219
|
claudeActions: ["control", "publish"],
|
|
76954
77220
|
operations: [
|
|
76955
77221
|
{ action: "control", executes: "control_scheduled_release" },
|
|
@@ -77034,7 +77300,7 @@ var MCP_CATALOG_TOOLS = [
|
|
|
77034
77300
|
},
|
|
77035
77301
|
{
|
|
77036
77302
|
name: "setup_brand",
|
|
77037
|
-
description: "Set a brand up. onboard creates a brand from a URL or details; interview_start, interview_answer and interview_skip run the brand interview; connect_account and connect_oauth link a social account; brand_kit manages the kit: the brand name, visual identity, writing voice and strategy sections, and approving the draft (input.action picks what); voice_draft and voice_save draft and save the brand voice; generation_settings sets the brand defaults for generation.",
|
|
77303
|
+
description: "Set a brand up. onboard creates a brand from a URL or details; interview_start, interview_answer and interview_skip run the brand interview; connect_account and connect_oauth link a social account; brand_kit manages the kit: the brand name, visual identity, writing voice and strategy sections, and approving the draft (input.action picks what); brand_settings changes the handle, description, active state and default models or deletes it (owner or admin, brand-settings:write); channel_settings disconnects a connected channel or reads and replaces its posting times (input.action picks what); voice_draft and voice_save draft and save the brand voice; generation_settings sets the brand defaults for generation.",
|
|
77038
77304
|
claudeActions: [
|
|
77039
77305
|
"onboard",
|
|
77040
77306
|
"interview_start",
|
|
@@ -77049,6 +77315,8 @@ var MCP_CATALOG_TOOLS = [
|
|
|
77049
77315
|
{ action: "connect_account", executes: "connect_social_account" },
|
|
77050
77316
|
{ action: "connect_oauth", executes: "initiate_oauth_connect" },
|
|
77051
77317
|
{ action: "brand_kit", executes: "manage_brand_kit" },
|
|
77318
|
+
{ action: "brand_settings", executes: "manage_brand_settings" },
|
|
77319
|
+
{ action: "channel_settings", executes: "manage_channel_settings" },
|
|
77052
77320
|
{ action: "voice_draft", executes: "draft_brand_voice_profile" },
|
|
77053
77321
|
{ action: "voice_save", executes: "save_brand_voice_profile" },
|
|
77054
77322
|
{ action: "generation_settings", executes: "set_generation_settings" }
|
|
@@ -77119,9 +77387,10 @@ var MCP_CATALOG_TOOLS = [
|
|
|
77119
77387
|
},
|
|
77120
77388
|
{
|
|
77121
77389
|
name: "manage_workspace",
|
|
77122
|
-
description: "Work in the workspace. new_task records a task and task updates, comments on or completes one; neither starts work. new_chat and chat_message talk to the agent.",
|
|
77390
|
+
description: "Work in the workspace. new_task records a task and task updates, comments on or completes one; neither starts work. new_chat and chat_message talk to the agent. organization reads or changes the organization settings an owner or admin edits in Settings (input.action read or update); it needs the organization-settings:write scope and an owner or admin role.",
|
|
77123
77391
|
operations: [
|
|
77124
77392
|
{ action: "new_task", executes: "create_task" },
|
|
77393
|
+
{ action: "organization", executes: "manage_organization_settings" },
|
|
77125
77394
|
{ action: "task", executes: "manage_task" },
|
|
77126
77395
|
{ action: "new_chat", executes: "create_chat" },
|
|
77127
77396
|
{ action: "chat_message", executes: "send_chat_message" }
|
|
@@ -77393,6 +77662,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
77393
77662
|
{
|
|
77394
77663
|
actionClass: "brand-context",
|
|
77395
77664
|
category: "other",
|
|
77665
|
+
isOpenWorld: true,
|
|
77396
77666
|
mutationPolicy: "direct",
|
|
77397
77667
|
name: "capture_knowledge",
|
|
77398
77668
|
surfaces: ["agent", "mcp", "workflow"],
|
|
@@ -77442,6 +77712,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
77442
77712
|
{
|
|
77443
77713
|
annotationHint: "non-destructive-write",
|
|
77444
77714
|
category: "content",
|
|
77715
|
+
isOpenWorld: true,
|
|
77445
77716
|
mcpCardKind: "media",
|
|
77446
77717
|
mutationPolicy: "direct",
|
|
77447
77718
|
name: "complete_media_upload",
|
|
@@ -78077,7 +78348,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78077
78348
|
{
|
|
78078
78349
|
category: "other",
|
|
78079
78350
|
name: "get_clipper_projects",
|
|
78080
|
-
surfaces: ["mcp"],
|
|
78351
|
+
surfaces: ["agent", "mcp"],
|
|
78081
78352
|
toolset: "clipper"
|
|
78082
78353
|
},
|
|
78083
78354
|
{
|
|
@@ -78126,13 +78397,13 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78126
78397
|
{
|
|
78127
78398
|
category: "other",
|
|
78128
78399
|
name: "get_editor_project",
|
|
78129
|
-
surfaces: ["mcp"],
|
|
78400
|
+
surfaces: ["agent", "mcp"],
|
|
78130
78401
|
toolset: "editor"
|
|
78131
78402
|
},
|
|
78132
78403
|
{
|
|
78133
78404
|
category: "other",
|
|
78134
78405
|
name: "get_editor_projects",
|
|
78135
|
-
surfaces: ["mcp"],
|
|
78406
|
+
surfaces: ["agent", "mcp"],
|
|
78136
78407
|
toolset: "editor"
|
|
78137
78408
|
},
|
|
78138
78409
|
{
|
|
@@ -78297,6 +78568,13 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78297
78568
|
surfaces: ["mcp"],
|
|
78298
78569
|
toolset: "models3d"
|
|
78299
78570
|
},
|
|
78571
|
+
{
|
|
78572
|
+
category: "other",
|
|
78573
|
+
isReadOnly: true,
|
|
78574
|
+
name: "get_operator",
|
|
78575
|
+
surfaces: ["mcp"],
|
|
78576
|
+
toolset: "core"
|
|
78577
|
+
},
|
|
78300
78578
|
{
|
|
78301
78579
|
category: "other",
|
|
78302
78580
|
mcpCardKind: "summary",
|
|
@@ -78573,6 +78851,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78573
78851
|
},
|
|
78574
78852
|
{
|
|
78575
78853
|
category: "other",
|
|
78854
|
+
isOpenWorld: true,
|
|
78576
78855
|
mutationPolicy: "approval-required",
|
|
78577
78856
|
name: "install_skills_pro_skill",
|
|
78578
78857
|
surfaces: ["mcp"],
|
|
@@ -78601,6 +78880,15 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78601
78880
|
surfaces: ["mcp"],
|
|
78602
78881
|
toolset: "brand-kit"
|
|
78603
78882
|
},
|
|
78883
|
+
{
|
|
78884
|
+
actionClass: "brand-context",
|
|
78885
|
+
category: "social",
|
|
78886
|
+
mcpBrandRequired: true,
|
|
78887
|
+
mutationPolicy: "direct",
|
|
78888
|
+
name: "manage_brand_settings",
|
|
78889
|
+
surfaces: ["mcp"],
|
|
78890
|
+
toolset: "brand"
|
|
78891
|
+
},
|
|
78604
78892
|
{
|
|
78605
78893
|
category: "campaign",
|
|
78606
78894
|
mcpCardKind: "summary",
|
|
@@ -78609,6 +78897,13 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78609
78897
|
surfaces: ["mcp"],
|
|
78610
78898
|
toolset: "content"
|
|
78611
78899
|
},
|
|
78900
|
+
{
|
|
78901
|
+
category: "social",
|
|
78902
|
+
mutationPolicy: "direct",
|
|
78903
|
+
name: "manage_channel_settings",
|
|
78904
|
+
surfaces: ["mcp"],
|
|
78905
|
+
toolset: "brand"
|
|
78906
|
+
},
|
|
78612
78907
|
{
|
|
78613
78908
|
category: "other",
|
|
78614
78909
|
name: "manage_knowledge",
|
|
@@ -78622,6 +78917,21 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78622
78917
|
surfaces: ["agent"],
|
|
78623
78918
|
toolset: "engagement"
|
|
78624
78919
|
},
|
|
78920
|
+
{
|
|
78921
|
+
annotationHint: "destructive",
|
|
78922
|
+
category: "other",
|
|
78923
|
+
mutationPolicy: "direct",
|
|
78924
|
+
name: "manage_operator",
|
|
78925
|
+
surfaces: ["mcp"],
|
|
78926
|
+
toolset: "core"
|
|
78927
|
+
},
|
|
78928
|
+
{
|
|
78929
|
+
category: "other",
|
|
78930
|
+
mutationPolicy: "direct",
|
|
78931
|
+
name: "manage_organization_settings",
|
|
78932
|
+
surfaces: ["mcp"],
|
|
78933
|
+
toolset: "workspace"
|
|
78934
|
+
},
|
|
78625
78935
|
{
|
|
78626
78936
|
category: "other",
|
|
78627
78937
|
name: "manage_skill",
|
|
@@ -78676,7 +78986,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78676
78986
|
category: "other",
|
|
78677
78987
|
mutationPolicy: "direct",
|
|
78678
78988
|
name: "open_in_editor",
|
|
78679
|
-
surfaces: ["mcp"],
|
|
78989
|
+
surfaces: ["agent", "mcp"],
|
|
78680
78990
|
toolset: "editor"
|
|
78681
78991
|
},
|
|
78682
78992
|
{
|
|
@@ -78769,6 +79079,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78769
79079
|
},
|
|
78770
79080
|
{
|
|
78771
79081
|
category: "other",
|
|
79082
|
+
isOpenWorld: true,
|
|
78772
79083
|
mutationPolicy: "direct",
|
|
78773
79084
|
name: "publish_skill",
|
|
78774
79085
|
surfaces: ["mcp"],
|
|
@@ -78898,6 +79209,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78898
79209
|
{
|
|
78899
79210
|
annotationHint: "non-destructive-write",
|
|
78900
79211
|
category: "content",
|
|
79212
|
+
isOpenWorld: true,
|
|
78901
79213
|
mcpBrandRequiredWhenMultiple: true,
|
|
78902
79214
|
mcpCardKind: "summary",
|
|
78903
79215
|
mutationPolicy: "direct",
|
|
@@ -78965,7 +79277,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
78965
79277
|
isOpenWorld: true,
|
|
78966
79278
|
mutationPolicy: "approval-required",
|
|
78967
79279
|
name: "run_clipper",
|
|
78968
|
-
surfaces: ["mcp"],
|
|
79280
|
+
surfaces: ["agent", "mcp"],
|
|
78969
79281
|
toolset: "clipper"
|
|
78970
79282
|
},
|
|
78971
79283
|
{
|
|
@@ -79161,7 +79473,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
79161
79473
|
category: "other",
|
|
79162
79474
|
mutationPolicy: "direct",
|
|
79163
79475
|
name: "start_editor_render",
|
|
79164
|
-
surfaces: ["mcp"],
|
|
79476
|
+
surfaces: ["agent", "mcp"],
|
|
79165
79477
|
toolset: "editor"
|
|
79166
79478
|
},
|
|
79167
79479
|
{
|
|
@@ -79368,7 +79680,7 @@ var CURATED_ACTION_CATALOG = [
|
|
|
79368
79680
|
annotationOverride: {
|
|
79369
79681
|
destructiveHint: false,
|
|
79370
79682
|
idempotentHint: true,
|
|
79371
|
-
openWorldHint:
|
|
79683
|
+
openWorldHint: true,
|
|
79372
79684
|
readOnlyHint: false
|
|
79373
79685
|
},
|
|
79374
79686
|
category: "other",
|
|
@@ -84532,6 +84844,156 @@ var MCP_ONBOARDING_TOOLS = [
|
|
|
84532
84844
|
}
|
|
84533
84845
|
];
|
|
84534
84846
|
|
|
84847
|
+
// ../actions/src/registry/source/mcp-only/operator.tools.ts
|
|
84848
|
+
var OPERATOR_READ_ACTIONS = [
|
|
84849
|
+
"organizations",
|
|
84850
|
+
"apps",
|
|
84851
|
+
"organization",
|
|
84852
|
+
"brands",
|
|
84853
|
+
"members",
|
|
84854
|
+
"credit_usage",
|
|
84855
|
+
"credit_ledger"
|
|
84856
|
+
];
|
|
84857
|
+
var OPERATOR_WRITE_ACTIONS = [
|
|
84858
|
+
"credit_grant",
|
|
84859
|
+
"member_add",
|
|
84860
|
+
"brand_create",
|
|
84861
|
+
"brand_update",
|
|
84862
|
+
"brand_os_approve"
|
|
84863
|
+
];
|
|
84864
|
+
var MCP_OPERATOR_TOOLS = [
|
|
84865
|
+
{
|
|
84866
|
+
creditCost: 0,
|
|
84867
|
+
description: "Platform operators: read any organization. organizations lists every organization with owner, tier and member count; apps lists the apps each organization sees; organization returns one organization with its brands, members and credit usage; brands lists the brands of an organization (pass brandId for one); members lists its members; credit_usage returns the last 30 days; credit_ledger returns the ledger rows between from and to (at most 31 days). Read-only.",
|
|
84868
|
+
name: "get_operator",
|
|
84869
|
+
parameters: {
|
|
84870
|
+
properties: {
|
|
84871
|
+
action: {
|
|
84872
|
+
description: "What to read.",
|
|
84873
|
+
enum: [...OPERATOR_READ_ACTIONS],
|
|
84874
|
+
type: "string"
|
|
84875
|
+
},
|
|
84876
|
+
brandId: {
|
|
84877
|
+
description: "With action brands: read one brand of the organization.",
|
|
84878
|
+
type: "string"
|
|
84879
|
+
},
|
|
84880
|
+
from: {
|
|
84881
|
+
description: "With action credit_ledger: window start, an ISO timestamp with offset.",
|
|
84882
|
+
type: "string"
|
|
84883
|
+
},
|
|
84884
|
+
includeDeleted: {
|
|
84885
|
+
description: "With action organizations: also list deleted ones.",
|
|
84886
|
+
type: "boolean"
|
|
84887
|
+
},
|
|
84888
|
+
limit: {
|
|
84889
|
+
description: "Rows per page for organizations and apps (up to 100), or ledger rows (up to 500).",
|
|
84890
|
+
type: "number"
|
|
84891
|
+
},
|
|
84892
|
+
organizationId: {
|
|
84893
|
+
description: "The organization to read. Required for every action except organizations and apps.",
|
|
84894
|
+
type: "string"
|
|
84895
|
+
},
|
|
84896
|
+
page: {
|
|
84897
|
+
description: "Page number for organizations and apps, from 1.",
|
|
84898
|
+
type: "number"
|
|
84899
|
+
},
|
|
84900
|
+
to: {
|
|
84901
|
+
description: "With action credit_ledger: window end, an ISO timestamp with offset.",
|
|
84902
|
+
type: "string"
|
|
84903
|
+
}
|
|
84904
|
+
},
|
|
84905
|
+
required: ["action"],
|
|
84906
|
+
type: "object"
|
|
84907
|
+
},
|
|
84908
|
+
requiredRole: "admin"
|
|
84909
|
+
},
|
|
84910
|
+
{
|
|
84911
|
+
creditCost: 0,
|
|
84912
|
+
description: "Platform operators: change any organization. credit_grant adds credits (amount, reason, optional expiresInDays), member_add adds a person without sending email (email, roleKey admin or member), brand_create makes a brand (label), brand_update edits kit fields, brand_os_approve applies kit fields and approves the brand’s Brand OS draft. The first call changes nothing and returns a preview; call again with the same arguments and confirmed true to apply it. A repeat of a confirmed call never applies twice. Every change is logged with the acting operator.",
|
|
84913
|
+
name: "manage_operator",
|
|
84914
|
+
parameters: {
|
|
84915
|
+
properties: {
|
|
84916
|
+
action: {
|
|
84917
|
+
description: "What to change.",
|
|
84918
|
+
enum: [...OPERATOR_WRITE_ACTIONS],
|
|
84919
|
+
type: "string"
|
|
84920
|
+
},
|
|
84921
|
+
amount: {
|
|
84922
|
+
description: "With credit_grant: whole credits to add, 1 to 100000.",
|
|
84923
|
+
type: "number"
|
|
84924
|
+
},
|
|
84925
|
+
brandId: {
|
|
84926
|
+
description: "With brand_update and brand_os_approve: the brand to change.",
|
|
84927
|
+
type: "string"
|
|
84928
|
+
},
|
|
84929
|
+
confirmed: {
|
|
84930
|
+
description: "Apply the change. Leave unset to get the preview; set true only after the operator has seen it.",
|
|
84931
|
+
type: "boolean"
|
|
84932
|
+
},
|
|
84933
|
+
email: {
|
|
84934
|
+
description: "With member_add: the person’s email.",
|
|
84935
|
+
type: "string"
|
|
84936
|
+
},
|
|
84937
|
+
expiresInDays: {
|
|
84938
|
+
description: "With credit_grant: days until the credits expire.",
|
|
84939
|
+
type: "number"
|
|
84940
|
+
},
|
|
84941
|
+
fields: {
|
|
84942
|
+
additionalProperties: false,
|
|
84943
|
+
description: "With brand_create and brand_update: the kit fields to set. With brand_os_approve: the voice and guideline fields to apply before approving.",
|
|
84944
|
+
properties: {
|
|
84945
|
+
backgroundColor: { type: "string" },
|
|
84946
|
+
description: { type: "string" },
|
|
84947
|
+
fontFamily: { type: "string" },
|
|
84948
|
+
label: { type: "string" },
|
|
84949
|
+
primaryColor: { type: "string" },
|
|
84950
|
+
promptGuidelines: { type: "string" },
|
|
84951
|
+
secondaryColor: { type: "string" },
|
|
84952
|
+
voiceAudience: { items: { type: "string" }, type: "array" },
|
|
84953
|
+
voiceDoNotSoundLike: { items: { type: "string" }, type: "array" },
|
|
84954
|
+
voiceMessagingPillars: { items: { type: "string" }, type: "array" },
|
|
84955
|
+
voiceSampleOutput: { type: "string" },
|
|
84956
|
+
voiceStyle: { type: "string" },
|
|
84957
|
+
voiceTone: { type: "string" },
|
|
84958
|
+
voiceValues: { items: { type: "string" }, type: "array" },
|
|
84959
|
+
watermarkOpacity: { type: "number" },
|
|
84960
|
+
watermarkPosition: {
|
|
84961
|
+
enum: ["top-left", "top-right", "bottom-left", "bottom-right"],
|
|
84962
|
+
type: "string"
|
|
84963
|
+
},
|
|
84964
|
+
watermarkText: { type: "string" }
|
|
84965
|
+
},
|
|
84966
|
+
type: "object"
|
|
84967
|
+
},
|
|
84968
|
+
firstName: {
|
|
84969
|
+
description: "With member_add: first name for a new account.",
|
|
84970
|
+
type: "string"
|
|
84971
|
+
},
|
|
84972
|
+
lastName: {
|
|
84973
|
+
description: "With member_add: last name for a new account.",
|
|
84974
|
+
type: "string"
|
|
84975
|
+
},
|
|
84976
|
+
organizationId: {
|
|
84977
|
+
description: "The organization to change.",
|
|
84978
|
+
type: "string"
|
|
84979
|
+
},
|
|
84980
|
+
reason: {
|
|
84981
|
+
description: "With credit_grant: why, at least 8 characters. It is kept on the ledger and keys the retry guard, so a second grant of the same size needs a different reason.",
|
|
84982
|
+
type: "string"
|
|
84983
|
+
},
|
|
84984
|
+
roleKey: {
|
|
84985
|
+
description: "With member_add: admin (default) or member.",
|
|
84986
|
+
enum: ["admin", "member"],
|
|
84987
|
+
type: "string"
|
|
84988
|
+
}
|
|
84989
|
+
},
|
|
84990
|
+
required: ["action", "organizationId"],
|
|
84991
|
+
type: "object"
|
|
84992
|
+
},
|
|
84993
|
+
requiredRole: "admin"
|
|
84994
|
+
}
|
|
84995
|
+
];
|
|
84996
|
+
|
|
84535
84997
|
// ../actions/src/registry/source/mcp-only/other.tools.ts
|
|
84536
84998
|
var MCP_OTHER_TOOLS = [
|
|
84537
84999
|
{
|
|
@@ -84574,6 +85036,146 @@ var MCP_OTHER_TOOLS = [
|
|
|
84574
85036
|
}
|
|
84575
85037
|
];
|
|
84576
85038
|
|
|
85039
|
+
// ../actions/src/registry/source/mcp-only/owner-settings.tools.ts
|
|
85040
|
+
var bool = { type: "boolean" };
|
|
85041
|
+
var text2 = { type: "string" };
|
|
85042
|
+
var texts2 = { type: "array", items: text2 };
|
|
85043
|
+
var MCP_OWNER_SETTINGS_TOOLS = [
|
|
85044
|
+
{
|
|
85045
|
+
name: "manage_organization_settings",
|
|
85046
|
+
description: "Read or change the organization settings an owner or admin edits in Settings: MCP approvals, notification channels, watermark, generation and verification toggles, enabled models, default models, timezone, locale and daily publishing caps. read returns the stored settings. update changes only the fields sent and returns the stored settings; owners and admins only. The server keeps refusing plan limits, subscription tier, release access and onboarding state, and the tool adds no rule of its own. Provider keys and webhook secrets are never read or written here; those stay in the Genfeed app. Turning MCP approvals off (isMcpApprovalRequired false) changes nothing on the first call and returns what to confirm; after the person agrees in this conversation, repeat it with confirmed true.",
|
|
85047
|
+
creditCost: 0,
|
|
85048
|
+
requiredRole: "user",
|
|
85049
|
+
parameters: {
|
|
85050
|
+
type: "object",
|
|
85051
|
+
additionalProperties: false,
|
|
85052
|
+
properties: {
|
|
85053
|
+
action: { type: "string", enum: ["read", "update"] },
|
|
85054
|
+
confirmed: {
|
|
85055
|
+
type: "boolean",
|
|
85056
|
+
description: "For update only, when isMcpApprovalRequired is false. Set true only after the person has explicitly agreed, in this conversation, to let credit-spending MCP requests run without waiting in the approvals queue."
|
|
85057
|
+
},
|
|
85058
|
+
settings: {
|
|
85059
|
+
type: "object",
|
|
85060
|
+
description: "For update: the fields to change. Send only what changes.",
|
|
85061
|
+
properties: {
|
|
85062
|
+
agentReplyStyle: text2,
|
|
85063
|
+
defaultImageModel: text2,
|
|
85064
|
+
defaultImageToVideoModel: text2,
|
|
85065
|
+
defaultLocale: text2,
|
|
85066
|
+
defaultModel: text2,
|
|
85067
|
+
defaultModelReview: text2,
|
|
85068
|
+
defaultModelUpdate: text2,
|
|
85069
|
+
defaultMusicModel: text2,
|
|
85070
|
+
defaultVideoModel: text2,
|
|
85071
|
+
defaultVoiceProvider: text2,
|
|
85072
|
+
enabledModelIds: texts2,
|
|
85073
|
+
isAutoEvaluateEnabled: bool,
|
|
85074
|
+
isBrandVisionChecksEnabled: bool,
|
|
85075
|
+
isBreakoutAutoPublishEnabled: bool,
|
|
85076
|
+
isBreakoutResponsesEnabled: bool,
|
|
85077
|
+
isGenerateArticlesEnabled: bool,
|
|
85078
|
+
isGenerateImagesEnabled: bool,
|
|
85079
|
+
isGenerateMusicEnabled: bool,
|
|
85080
|
+
isGenerateVideosEnabled: bool,
|
|
85081
|
+
isMcpApprovalRequired: {
|
|
85082
|
+
...bool,
|
|
85083
|
+
description: "Whether MCP requests that spend credits wait in the approvals queue. Turning it off needs confirmed true."
|
|
85084
|
+
},
|
|
85085
|
+
isNotificationsDiscordEnabled: bool,
|
|
85086
|
+
isNotificationsEmailEnabled: bool,
|
|
85087
|
+
isNotificationsTelegramEnabled: bool,
|
|
85088
|
+
isVerifyIngredientEnabled: bool,
|
|
85089
|
+
isVerifyScriptEnabled: bool,
|
|
85090
|
+
isVerifyVideoEnabled: bool,
|
|
85091
|
+
isVoiceControlEnabled: bool,
|
|
85092
|
+
isWatermarkEnabled: bool,
|
|
85093
|
+
isWhitelabelEnabled: bool,
|
|
85094
|
+
quotaInstagram: { type: "number" },
|
|
85095
|
+
quotaTiktok: { type: "number" },
|
|
85096
|
+
quotaTwitter: { type: "number" },
|
|
85097
|
+
quotaYoutube: { type: "number" },
|
|
85098
|
+
timezone: text2
|
|
85099
|
+
}
|
|
85100
|
+
}
|
|
85101
|
+
},
|
|
85102
|
+
required: ["action"]
|
|
85103
|
+
}
|
|
85104
|
+
},
|
|
85105
|
+
{
|
|
85106
|
+
name: "manage_brand_settings",
|
|
85107
|
+
description: "Change the settings an owner or admin edits in Brand Settings, for one explicit brand: update changes the handle (slug), description, active state, public analytics and default image, video and music models; delete removes the brand. Name, voice, colors and fonts are the Brand Kit (manage_brand_kit), not this. Owners and admins only, inside the brand limit chosen at consent. delete changes nothing on the first call and returns what to confirm; after the person agrees in this conversation, repeat it with confirmed true. Moving a brand to another organization stays in the Genfeed app.",
|
|
85108
|
+
creditCost: 0,
|
|
85109
|
+
requiredRole: "user",
|
|
85110
|
+
parameters: {
|
|
85111
|
+
type: "object",
|
|
85112
|
+
additionalProperties: false,
|
|
85113
|
+
properties: {
|
|
85114
|
+
action: { type: "string", enum: ["update", "delete"] },
|
|
85115
|
+
brandId: { type: "string", description: "The ID of the brand." },
|
|
85116
|
+
confirmed: {
|
|
85117
|
+
type: "boolean",
|
|
85118
|
+
description: "For delete only. Set true only after the person has explicitly agreed, in this conversation, to delete this brand."
|
|
85119
|
+
},
|
|
85120
|
+
settings: {
|
|
85121
|
+
type: "object",
|
|
85122
|
+
description: "For update: the fields to change. Send only what changes.",
|
|
85123
|
+
additionalProperties: false,
|
|
85124
|
+
properties: {
|
|
85125
|
+
defaultImageModel: text2,
|
|
85126
|
+
defaultImageToVideoModel: text2,
|
|
85127
|
+
defaultMusicModel: text2,
|
|
85128
|
+
defaultVideoModel: text2,
|
|
85129
|
+
description: text2,
|
|
85130
|
+
isActive: bool,
|
|
85131
|
+
isPublicAnalyticsEnabled: bool,
|
|
85132
|
+
slug: {
|
|
85133
|
+
...text2,
|
|
85134
|
+
description: "The brand handle used in its public address."
|
|
85135
|
+
}
|
|
85136
|
+
}
|
|
85137
|
+
}
|
|
85138
|
+
},
|
|
85139
|
+
required: ["action", "brandId"]
|
|
85140
|
+
}
|
|
85141
|
+
},
|
|
85142
|
+
{
|
|
85143
|
+
name: "manage_channel_settings",
|
|
85144
|
+
description: "Change the settings of one connected channel (a social account), by credentialId from get_context or check_channel: disconnect removes it from its brand (owner or admin, brand-settings:write, inside the brand limit chosen at consent; posts already published stay); posting_times reads the preferred posting times, or replaces them when times is sent (the same route the app uses, so it needs a posting scope, not an owner). disconnect changes nothing on the first call: it returns the scheduled posts that would lose their channel, and after the person agrees in this conversation, repeat it with confirmed true. Tokens and secrets are never read or written here. Connecting a channel is connect_account or connect_oauth.",
|
|
85145
|
+
creditCost: 0,
|
|
85146
|
+
requiredRole: "user",
|
|
85147
|
+
parameters: {
|
|
85148
|
+
type: "object",
|
|
85149
|
+
additionalProperties: false,
|
|
85150
|
+
properties: {
|
|
85151
|
+
action: { type: "string", enum: ["disconnect", "posting_times"] },
|
|
85152
|
+
confirmed: {
|
|
85153
|
+
type: "boolean",
|
|
85154
|
+
description: "For disconnect only. Set true only after the person has explicitly agreed, in this conversation, to disconnect this channel."
|
|
85155
|
+
},
|
|
85156
|
+
credentialId: {
|
|
85157
|
+
type: "string",
|
|
85158
|
+
description: "The ID of the connected channel."
|
|
85159
|
+
},
|
|
85160
|
+
times: {
|
|
85161
|
+
type: "array",
|
|
85162
|
+
description: "For posting_times: the full list that replaces the stored one (hour 0-23, minute 0-59, in the brand timezone). Omit to read. An empty list clears them.",
|
|
85163
|
+
items: {
|
|
85164
|
+
type: "object",
|
|
85165
|
+
additionalProperties: false,
|
|
85166
|
+
properties: {
|
|
85167
|
+
hour: { type: "integer", minimum: 0, maximum: 23 },
|
|
85168
|
+
minute: { type: "integer", minimum: 0, maximum: 59 }
|
|
85169
|
+
},
|
|
85170
|
+
required: ["hour", "minute"]
|
|
85171
|
+
}
|
|
85172
|
+
}
|
|
85173
|
+
},
|
|
85174
|
+
required: ["action", "credentialId"]
|
|
85175
|
+
}
|
|
85176
|
+
}
|
|
85177
|
+
];
|
|
85178
|
+
|
|
84577
85179
|
// ../actions/src/registry/source/mcp-only/presets.tools.ts
|
|
84578
85180
|
var presetKinds = [
|
|
84579
85181
|
"image",
|
|
@@ -86711,6 +87313,7 @@ var MCP_ONLY_TOOLS = [
|
|
|
86711
87313
|
...MCP_WORKFLOW_TOOLS,
|
|
86712
87314
|
...MCP_SOCIAL_TOOLS,
|
|
86713
87315
|
...MCP_ADMIN_TOOLS,
|
|
87316
|
+
...MCP_OPERATOR_TOOLS,
|
|
86714
87317
|
...MCP_AGENT_CONTROL_TOOLS,
|
|
86715
87318
|
...MCP_ADS_TOOLS,
|
|
86716
87319
|
...MCP_CAMPAIGN_TOOLS,
|
|
@@ -86723,7 +87326,8 @@ var MCP_ONLY_TOOLS = [
|
|
|
86723
87326
|
...MCP_STORYBOARD_CAPABILITY_TOOLS,
|
|
86724
87327
|
...MCP_STORYBOARD_VIDEO_TOOLS,
|
|
86725
87328
|
...MCP_SKILLS_PRO_TOOLS,
|
|
86726
|
-
...MCP_WORKSPACE_TOOLS
|
|
87329
|
+
...MCP_WORKSPACE_TOOLS,
|
|
87330
|
+
...MCP_OWNER_SETTINGS_TOOLS
|
|
86727
87331
|
];
|
|
86728
87332
|
|
|
86729
87333
|
// ../actions/src/registry/media-generation.ts
|
|
@@ -87504,14 +88108,24 @@ var OVERLAP_QUERY_TOOLS = [
|
|
|
87504
88108
|
},
|
|
87505
88109
|
{
|
|
87506
88110
|
creditCost: 0,
|
|
87507
|
-
description: "Get trending topics and content ideas
|
|
88111
|
+
description: "Get trending topics and content ideas for the brand's niche (its keywords, hashtags, categories or description), across social media and news. A brand with no niche, or no match, gets an empty list and a note saying what to fill in, never the shared market feed; pass relevance=market for that feed. Also returns the outlier library: public TikTok and Instagram videos that beat their creator's typical post, with the multiple, a link and the date the counts were read. Outliers ignore timeframe.",
|
|
87508
88112
|
name: "get_trends",
|
|
87509
88113
|
parameters: {
|
|
87510
88114
|
properties: {
|
|
88115
|
+
brandId: {
|
|
88116
|
+
description: "Brand whose niche to read. Omit to use the thread's brand, or the organization's only brand; with several brands and no thread brand, the call asks for one.",
|
|
88117
|
+
type: "string"
|
|
88118
|
+
},
|
|
87511
88119
|
platform: {
|
|
87512
88120
|
description: "Limit to one platform (instagram, linkedin, pinterest, reddit, tiktok, twitter, youtube). Omit to get trends from every platform.",
|
|
87513
88121
|
type: "string"
|
|
87514
88122
|
},
|
|
88123
|
+
relevance: {
|
|
88124
|
+
default: "brand",
|
|
88125
|
+
description: "brand (default) returns only trends that match the brand's niche. market returns the shared feed every brand sees, whatever the niche.",
|
|
88126
|
+
enum: ["brand", "market"],
|
|
88127
|
+
type: "string"
|
|
88128
|
+
},
|
|
87515
88129
|
timeframe: {
|
|
87516
88130
|
default: "24h",
|
|
87517
88131
|
description: "Only trends refreshed within this window. Every trend carries its updatedAt.",
|
|
@@ -88098,7 +88712,7 @@ var OVERLAP_TOOLS = [
|
|
|
88098
88712
|
{
|
|
88099
88713
|
creditCost: 0,
|
|
88100
88714
|
description: "Create a post draft from supplied text for review. On MCP this never publishes or schedules: confirmed and existing-content publishing are rejected, and scheduledAt is ignored. Use create_scheduled_release for release drafts or confirmed scheduling. Existing-content publishing is available only in the Genfeed app.",
|
|
88101
|
-
mcpDescription: "Save a reviewable draft from text or media. To attach Library media to a generated draft, pass its postId, the same brandId, and mediaUrls. This replaces the ordered media and keeps the draft’s text and generation receipt. This tool never publishes or schedules.",
|
|
88715
|
+
mcpDescription: "Save a reviewable draft from text or media. To attach Library media to a generated draft, pass its postId, the same brandId, and mediaUrls. This replaces the ordered media and keeps the draft’s text and generation receipt; an empty mediaUrls list removes the media. This tool never publishes or schedules.",
|
|
88102
88716
|
mcpHiddenParameters: [
|
|
88103
88717
|
"caption",
|
|
88104
88718
|
"confirmed",
|
|
@@ -88145,7 +88759,7 @@ var OVERLAP_TOOLS = [
|
|
|
88145
88759
|
type: "string"
|
|
88146
88760
|
},
|
|
88147
88761
|
mediaUrls: {
|
|
88148
|
-
description: "Hosted Library asset URLs in slide order. Required when passing postId; the list becomes that draft’s media.",
|
|
88762
|
+
description: "Hosted Library asset URLs in slide order. Required when passing postId; the list becomes that draft’s media, and an empty list removes it.",
|
|
88149
88763
|
items: { type: "string" },
|
|
88150
88764
|
type: "array"
|
|
88151
88765
|
},
|
package/package.json
CHANGED