@productmaker/mcp 12.18.0 → 12.18.2
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/http.js +101 -15
- package/dist/stdio.js +101 -15
- package/package.json +1 -1
package/dist/http.js
CHANGED
|
@@ -8043,7 +8043,15 @@ var LandingResultsTimeframeSchema = z23.object({
|
|
|
8043
8043
|
label: z23.string().trim().min(1).max(40),
|
|
8044
8044
|
source: LandingResultsTimeframeSourceSchema
|
|
8045
8045
|
}).strict();
|
|
8046
|
+
var CodeLandingOfferItemOptionsSchema = z23.array(z23.object({
|
|
8047
|
+
name: z23.string().trim().min(1).max(80),
|
|
8048
|
+
values: z23.array(z23.string().trim().min(1).max(120)).max(16).refine((values) => new Set(values.map((value) => value.toLocaleLowerCase())).size === values.length, "Item option values must be distinct")
|
|
8049
|
+
}).strict()).max(3).refine((options) => new Set(options.map(({ name }) => name.toLocaleLowerCase())).size === options.length, "Item option names must be distinct");
|
|
8046
8050
|
var CodeLandingCommerceSnapshotSchema = z23.object({
|
|
8051
|
+
/** Fulfillment details chosen independently per physical item in a pack. */
|
|
8052
|
+
offerItemOptions: CodeLandingOfferItemOptionsSchema.optional(),
|
|
8053
|
+
/** Server-only publication proof scoped to one exact Shopify product. */
|
|
8054
|
+
itemOptionsReleasitExcludedProductId: z23.string().regex(/^[1-9]\d*$/u).optional(),
|
|
8047
8055
|
sellerPricingPolicyVersion: z23.literal(1).optional(),
|
|
8048
8056
|
sellerPromotionText: z23.string().max(240).optional(),
|
|
8049
8057
|
productVariantId: z23.string().trim().min(1).max(500).optional(),
|
|
@@ -8499,6 +8507,8 @@ var CodeLandingDeferredAuthorProviderResultSchema = z23.object({
|
|
|
8499
8507
|
providerResult: z23.record(z23.string(), z23.unknown())
|
|
8500
8508
|
});
|
|
8501
8509
|
var CodeLandingCommerceChangeSchema = z23.object({
|
|
8510
|
+
/** Omission preserves the options. An empty list removes them. */
|
|
8511
|
+
itemOptions: CodeLandingOfferItemOptionsSchema.optional(),
|
|
8502
8512
|
price: z23.string().trim().min(1).max(40).optional(),
|
|
8503
8513
|
compareAtPrice: z23.string().trim().min(1).max(40).nullable().optional(),
|
|
8504
8514
|
/** Remove offer quantities without deleting their Shopify variants. */
|
|
@@ -11446,6 +11456,25 @@ var CreativeEngineAudioSchema = z38.discriminatedUnion("source", [
|
|
|
11446
11456
|
text: z38.string().min(1),
|
|
11447
11457
|
speakerId: id2,
|
|
11448
11458
|
acting: z38.string().min(1),
|
|
11459
|
+
/**
|
|
11460
|
+
* Gender of the person whose voice this is (the visible speaker for
|
|
11461
|
+
* on-screen speech). The voice preset is always of this gender and the
|
|
11462
|
+
* measured TTS master is checked against it. Absent on plans authored
|
|
11463
|
+
* before it existed; those keep their preset's declared gender.
|
|
11464
|
+
*/
|
|
11465
|
+
speakerGender: z38.enum([
|
|
11466
|
+
"female",
|
|
11467
|
+
"male"
|
|
11468
|
+
]).optional(),
|
|
11469
|
+
/**
|
|
11470
|
+
* Apparent age of that person, so the voice fits who is seen (an older
|
|
11471
|
+
* woman never speaks with a girl's voice). Absent on older plans.
|
|
11472
|
+
*/
|
|
11473
|
+
speakerAge: z38.enum([
|
|
11474
|
+
"young_adult",
|
|
11475
|
+
"adult",
|
|
11476
|
+
"mature"
|
|
11477
|
+
]).optional(),
|
|
11449
11478
|
voicePreset: id2,
|
|
11450
11479
|
provider: z38.literal("kie"),
|
|
11451
11480
|
model: z38.literal("google/gemini-3-8-flash-tts"),
|
|
@@ -11766,9 +11795,16 @@ var CreativeEngineSceneDurationFitSchema = z38.object({
|
|
|
11766
11795
|
/**
|
|
11767
11796
|
* `shrink`: the measured master fits with excess silence, so its slot
|
|
11768
11797
|
* shrinks to the smallest admitted duration holding master + tail (spike
|
|
11769
|
-
* path: timing follows the real voice).
|
|
11798
|
+
* path: timing follows the real voice). `partition`: one shared
|
|
11799
|
+
* multi-scene narration master whose measured paragraph spans do not fit
|
|
11800
|
+
* the planned slots re-partitions every slot at once (515d5b39), before
|
|
11801
|
+
* any scene input or clip; `sceneId` is the take's first scene and
|
|
11802
|
+
* `measuredSec` the whole master. Absent: the historical growth fit.
|
|
11770
11803
|
*/
|
|
11771
|
-
direction: z38.
|
|
11804
|
+
direction: z38.enum([
|
|
11805
|
+
"shrink",
|
|
11806
|
+
"partition"
|
|
11807
|
+
]).optional()
|
|
11772
11808
|
}).strict();
|
|
11773
11809
|
var CreativeEngineSceneTimingSchema = z38.object({
|
|
11774
11810
|
version: z38.literal(1),
|
|
@@ -12755,10 +12791,33 @@ var ShopifyProductSummary = z42.object({
|
|
|
12755
12791
|
minPrice: z42.string(),
|
|
12756
12792
|
currencyCode: z42.string().min(3).max(3)
|
|
12757
12793
|
});
|
|
12794
|
+
var ShopifyProductGid = z42.string().max(120).regex(/^gid:\/\/shopify\/Product\/[1-9]\d*$/u);
|
|
12795
|
+
var ShopifyVariantGid = z42.string().max(120).regex(/^gid:\/\/shopify\/ProductVariant\/[1-9]\d*$/u);
|
|
12796
|
+
var ClassicPerItemCheckoutSchema = z42.object({
|
|
12797
|
+
productId: ShopifyProductGid,
|
|
12798
|
+
itemOptions: CodeLandingOfferItemOptionsSchema.refine((options) => options.length > 0),
|
|
12799
|
+
bindings: z42.array(z42.object({
|
|
12800
|
+
variantId: ShopifyVariantGid,
|
|
12801
|
+
units: z42.number().int().min(1).max(25)
|
|
12802
|
+
}).strict()).min(1).max(8)
|
|
12803
|
+
}).strict().refine(({ bindings }) => new Set(bindings.map(({ variantId }) => variantId)).size === bindings.length, {
|
|
12804
|
+
path: [
|
|
12805
|
+
"bindings"
|
|
12806
|
+
],
|
|
12807
|
+
message: "Cada variante puede vincularse una sola vez."
|
|
12808
|
+
});
|
|
12809
|
+
var ClassicVariantOptionsSchema = z42.object({
|
|
12810
|
+
productId: ShopifyProductGid,
|
|
12811
|
+
currency: z42.string().length(3),
|
|
12812
|
+
complete: z42.boolean(),
|
|
12813
|
+
candidates: z42.array(PublishVariantCandidateSchema).max(250),
|
|
12814
|
+
saved: ClassicPerItemCheckoutSchema.optional()
|
|
12815
|
+
}).strict();
|
|
12758
12816
|
var ShopifyProductsListResponse = z42.object({
|
|
12759
12817
|
products: z42.array(ShopifyProductSummary),
|
|
12760
12818
|
currentTarget: ShopifyProductSummary.nullable(),
|
|
12761
|
-
currentTargetMissing: z42.boolean()
|
|
12819
|
+
currentTargetMissing: z42.boolean(),
|
|
12820
|
+
classicVariantOptions: ClassicVariantOptionsSchema.optional()
|
|
12762
12821
|
});
|
|
12763
12822
|
var SelectedLandingImage = z42.object({
|
|
12764
12823
|
/** 0-based index of the image in the landing.images array */
|
|
@@ -12816,6 +12875,8 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12816
12875
|
/** Omitted keeps legacy publication behavior; null explicitly excludes the GIF. */
|
|
12817
12876
|
selectedLandingGif: LandingGifSelectionSchema.nullable().optional(),
|
|
12818
12877
|
classicSelection: ClassicLandingSelectionSnapshotSchema.optional(),
|
|
12878
|
+
/** Omission retains a verified same-target configuration. Null clears it. */
|
|
12879
|
+
classicPerItemCheckout: ClassicPerItemCheckoutSchema.nullable().optional(),
|
|
12819
12880
|
shopDomain: z42.string().min(3).max(120).optional(),
|
|
12820
12881
|
/**
|
|
12821
12882
|
* Landing images to include in the Shopify page with their selected variants.
|
|
@@ -12848,6 +12909,15 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12848
12909
|
*/
|
|
12849
12910
|
landingPixels: LandingPixelSelection.optional()
|
|
12850
12911
|
}).superRefine((data, ctx) => {
|
|
12912
|
+
if (data.classicPerItemCheckout && data.publicationMode === "new") {
|
|
12913
|
+
ctx.addIssue({
|
|
12914
|
+
code: z42.ZodIssueCode.custom,
|
|
12915
|
+
path: [
|
|
12916
|
+
"classicPerItemCheckout"
|
|
12917
|
+
],
|
|
12918
|
+
message: "Selecciona un producto existente para personalizar el pack."
|
|
12919
|
+
});
|
|
12920
|
+
}
|
|
12851
12921
|
if (data.publicationMode === "existing" && !data.targetProductId) {
|
|
12852
12922
|
ctx.addIssue({
|
|
12853
12923
|
code: z42.ZodIssueCode.custom,
|
|
@@ -12878,7 +12948,8 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12878
12948
|
});
|
|
12879
12949
|
var CodeLandingThemeSetupRequest = z42.object(ShopifyPublishRequest.shape).omit({
|
|
12880
12950
|
publishAttemptId: true,
|
|
12881
|
-
commerceCorrection: true
|
|
12951
|
+
commerceCorrection: true,
|
|
12952
|
+
classicPerItemCheckout: true
|
|
12882
12953
|
});
|
|
12883
12954
|
var ShopifyPublicationStatus = z42.enum([
|
|
12884
12955
|
"pending",
|
|
@@ -13055,6 +13126,8 @@ var ShopifyPublishErrorResponse = z42.discriminatedUnion("code", [
|
|
|
13055
13126
|
"SHOPIFY_NO_PUBLISHED_THEME",
|
|
13056
13127
|
"SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
|
|
13057
13128
|
"SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
13129
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
13130
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
13058
13131
|
/**
|
|
13059
13132
|
* A publish failure we understand (Shopify did not keep the offer's
|
|
13060
13133
|
* variants, another app rewrote the product, landing too large).
|
|
@@ -24759,7 +24832,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
24759
24832
|
// MCP 12.4.0: landingStrategy narrowed to classic + social_proof.
|
|
24760
24833
|
// MCP 12.5.0: pain_solution restored to landingStrategy.
|
|
24761
24834
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
24762
|
-
|
|
24835
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
24836
|
+
"3b87d6989fddb6aa11f2b4b719dec88fa304b0913a9cf217d8b8f0f71b1ff979",
|
|
24763
24837
|
"credit_consuming",
|
|
24764
24838
|
"creative",
|
|
24765
24839
|
[
|
|
@@ -25330,7 +25404,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
25330
25404
|
// MCP 8.10.0: storyteller family blocked (BLOCKED_NARRATIVE_STYLES).
|
|
25331
25405
|
// MCP 9.1.0: combine current animated-video controls and initial GIF choice.
|
|
25332
25406
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
25333
|
-
|
|
25407
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
25408
|
+
"36b556d187540506f5a86ae4471682c4976611b74159e7691e093b5b2898a292",
|
|
25334
25409
|
"credit_consuming",
|
|
25335
25410
|
"creative",
|
|
25336
25411
|
[
|
|
@@ -26119,7 +26194,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
26119
26194
|
"resolve_pending_action",
|
|
26120
26195
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
26121
26196
|
// MCP 12.12.1: angleEdits[].narrativeSelection documents the server market default.
|
|
26122
|
-
|
|
26197
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
26198
|
+
"51140c0f3120036078edd4a8d8c8444b147fe2e87689ce49eeeba9346cff25ec",
|
|
26123
26199
|
"credit_consuming",
|
|
26124
26200
|
"creative",
|
|
26125
26201
|
[
|
|
@@ -32789,7 +32865,7 @@ var ApiClient = class {
|
|
|
32789
32865
|
};
|
|
32790
32866
|
|
|
32791
32867
|
// src/index.ts
|
|
32792
|
-
var MCP_VERSION = "12.18.
|
|
32868
|
+
var MCP_VERSION = "12.18.2";
|
|
32793
32869
|
|
|
32794
32870
|
// src/meta-upload-app.ts
|
|
32795
32871
|
import { readFileSync } from "fs";
|
|
@@ -34232,6 +34308,8 @@ var McpErrorCode = {
|
|
|
34232
34308
|
SHOPIFY_THEME_STRUCTURE_UNSUPPORTED: "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
|
|
34233
34309
|
SHOPIFY_PUBLISH_INPUT_REQUIRED: "SHOPIFY_PUBLISH_INPUT_REQUIRED",
|
|
34234
34310
|
SHOPIFY_PUBLISH_CONTEXT_CHANGED: "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
34311
|
+
SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
34312
|
+
SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
34235
34313
|
SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
|
|
34236
34314
|
SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
|
|
34237
34315
|
SHOPIFY_PUBLISH_VERIFICATION_FAILED: "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
|
|
@@ -34334,6 +34412,8 @@ var CODE_MESSAGES = {
|
|
|
34334
34412
|
SHOPIFY_PUBLISH_FAILED: "Shopify did not confirm publication. Check the task and Shopify store before another attempt; a new product may already exist. Do not retry blindly or change the publication target.",
|
|
34335
34413
|
SHOPIFY_PUBLISH_INPUT_REQUIRED: "Review every recovery issue with the seller. Ask for missing prices and confirm the exact currency, unit price and pack totals before resending commerceCorrection with confirmed:true. Never invent amounts, convert currency or remove an offer.",
|
|
34336
34414
|
SHOPIFY_PUBLISH_CONTEXT_CHANGED: "The publication context changed. Reopen the task in ProductMaker, review the current store, product and landing revision, and obtain fresh confirmation. Do not reuse this correction.",
|
|
34415
|
+
SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "The saved pack setup no longer matches the selected Shopify product. Open the landing in ProductMaker, review the Shopify product and select the pack variants again before publishing.",
|
|
34416
|
+
SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "This product needs native Shopify checkout to keep the choices for each item in the pack. Verify native checkout for this product in Shopify, then open the landing in ProductMaker to finish publishing.",
|
|
34337
34417
|
SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "Open the landing editor in ProductMaker to reconcile the visible offer with checkout prices. The correction was not saved; do not retry it automatically or regenerate the landing without approval.",
|
|
34338
34418
|
SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "The seller confirmed exactly the suggested values and the offer still cannot publish \u2014 resending the same correction will loop. Read the error's reason to the user and send them to the landing editor in ProductMaker to adjust the offer, then publish again. Do not resend commerceCorrection.",
|
|
34339
34419
|
SHOPIFY_PUBLISH_VERIFICATION_FAILED: "Shopify did not keep what the publish wrote (offer variants, template or inventory), or the landing is too large. Read the error's reason to the user; retry the publish once, and if it repeats follow the step in the reason (map packs to existing variants, check apps that edit products, or trim the landing in the editor).",
|
|
@@ -34634,6 +34714,8 @@ var INVALID_PARAM_CODES = /* @__PURE__ */ new Set([
|
|
|
34634
34714
|
McpErrorCode.SHOPIFY_THEME_STRUCTURE_UNSUPPORTED,
|
|
34635
34715
|
McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
|
|
34636
34716
|
McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
|
|
34717
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
|
|
34718
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
|
|
34637
34719
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
|
|
34638
34720
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
|
|
34639
34721
|
McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
|
|
@@ -34673,6 +34755,8 @@ var PASSTHROUGH_CODES = /* @__PURE__ */ new Set([
|
|
|
34673
34755
|
// Shopify
|
|
34674
34756
|
McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
|
|
34675
34757
|
McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
|
|
34758
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
|
|
34759
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
|
|
34676
34760
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
|
|
34677
34761
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
|
|
34678
34762
|
McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
|
|
@@ -34864,7 +34948,7 @@ function translateError(err) {
|
|
|
34864
34948
|
const code2 = McpErrorCode[admission.data.code];
|
|
34865
34949
|
return mcp(code2, resolveMessage(code2, void 0));
|
|
34866
34950
|
}
|
|
34867
|
-
if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
|
|
34951
|
+
if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
|
|
34868
34952
|
const parsed = ShopifyPublishErrorResponse.safeParse(body);
|
|
34869
34953
|
if (!parsed.success) return mcp(McpErrorCode.INTERNAL, resolveMessage(McpErrorCode.INTERNAL, void 0));
|
|
34870
34954
|
const details = parsed.data;
|
|
@@ -36728,7 +36812,7 @@ var CreateProductTaskInput = z144.object({
|
|
|
36728
36812
|
paymentMethods: z144.string().min(1).max(240).optional().describe('Opcional. M\xE9todos de pago que puede mostrar la landing. Ej. "Tarjeta, PSE, Nequi, Contraentrega". Si se omite, la landing no muestra m\xE9todos de pago.'),
|
|
36729
36813
|
productContext: z144.string().max(PRODUCT_CONTEXT_MAX_CHARS).optional().describe("Opcional. Informacion adicional del producto que la IA debe usar como contexto prioritario: uso real, comprador, restricciones, diferenciadores o direccion creativa. No reemplaza la investigacion de competencia; si hay competencia, guia el primer angulo y los outputs no deben contradecirlo."),
|
|
36730
36814
|
productLabel: z144.string().trim().max(80).optional().describe('Opcional. Qu\xE9 es el producto, en pocas palabras (ej. "quita pelusas para ropa"). Es AUTORITATIVO: si lo env\xEDas, la IA usa esta identidad y no la reemplaza por otra categor\xEDa. Si lo omites, la IA detecta el producto desde la imagen.'),
|
|
36731
|
-
videoPreset: VideoPresetEnum.default("auto").describe('Opcional. Tipo/narrativa del video \u2014 \xFAnico campo de "estilo" que el usuario controla. Default "auto" (la IA escoge tras analizar el producto). Todos los presets salvo "viral"
|
|
36815
|
+
videoPreset: VideoPresetEnum.default("auto").describe('Opcional. Tipo/narrativa del video \u2014 \xFAnico campo de "estilo" que el usuario controla. Default "auto" (la IA escoge tras analizar el producto). Todos los presets funcionan a 15s (single_call) y 30s (Multiescena), salvo "viral", que solo existe a 15 s (Un solo clip o Multiescena); "problem_solution" en single_call abre sin el producto y el producto entra por referencia en su beat de soluci\xF3n. Opciones: "auto", "ugc_dynamic" (review con experiencia y prueba), "ugc_how_to" (tutorial con pasos y resultado visible), "ugc_unboxing_chaos" (apertura y primera prueba), "problem_solution" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase" (producto ejecutando una funci\xF3n real), "wearable_showcase" (prenda o accesorio modelado), "cinematic" (TV spot con receta cinematogr\xE1fica), "wild_card" (idea imposible: un truco visual que en la vida real no podr\xEDa pasar, y al cierre la invitaci\xF3n a comprar), "pixar_problem" (problema animado 3D), "pixar_sassy" (producto que habla), "viral" (video sin voz con r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones). Si el usuario pide algo fuera de esta lista, p\xEDdele una opci\xF3n v\xE1lida.'),
|
|
36732
36816
|
animationStyle: AnimationStyleEnum.optional().describe('Opcional. Estilo visual SOLO para presets animados ("pixar_problem" o "pixar_sassy") \u2014 la API lo rechaza con cualquier otro preset. Opciones: "pixar_3d" (default, look 3D de pel\xEDcula animada), "claymation" (plastilina stop-motion artesanal), "wes_anderson" (tableau sim\xE9trico pastel), "sci_fi" (futurista con HUDs y ne\xF3n), "realista" (fotorrealista, fiel al producto). Si el usuario pide un look animado sin nombrar el estilo, omite el campo.'),
|
|
36733
36817
|
durationSeconds: z144.union([
|
|
36734
36818
|
z144.literal(15),
|
|
@@ -36741,7 +36825,7 @@ var CreateProductTaskInput = z144.object({
|
|
|
36741
36825
|
videoQuality: VideoQualityEnum.default("economy").describe('Opcional. Calidad: "economy" = Econ\xF3mico, "medium" = Medio o "pro" = Pro. El proveedor se elige internamente. Default: economy.'),
|
|
36742
36826
|
videoResolution: VideoResolutionEnum.optional().describe('Opcional. Resoluci\xF3n del render. En la web se pregunta "\xBFResoluci\xF3n del video?". "480p" = excelente calidad y m\xE1s econ\xF3mico (RECOMENDADO, default si se omite); "720p" = m\xE1xima nitidez, entre 3% y 15% m\xE1s caro seg\xFAn formato y tier. Si el usuario no menciona resoluci\xF3n, OMITE este campo (el backend usa 480p).'),
|
|
36743
36827
|
videoAngleCount: z144.number().int().min(1).max(3).optional().describe("Cantidad de videos a renderizar: 1, 2 o 3. REQUERIDO cuando outputs incluye video (o se omite outputs, cuyo default incluye video); om\xEDtelo s\xF3lo cuando no se generar\xE1 video. Preg\xFAntalo incluso con aiDecidesAll=true porque cambia el costo."),
|
|
36744
|
-
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla
|
|
36828
|
+
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones), "market" (narrativa an\xE1lisis de mercado: adapta el video a los patrones ganadores estudiados de la competencia; requiere competitorScanEnabled: true). angleNarratives[i] fuerza la narrativa del \xE1ngulo i; las posiciones restantes las elige la IA. La lista no puede superar videoAngleCount.'),
|
|
36745
36829
|
outputs: z144.array(z144.enum([
|
|
36746
36830
|
"landing",
|
|
36747
36831
|
"video",
|
|
@@ -36851,7 +36935,7 @@ var PendingActionPayload = z144.discriminatedUnion("kind", [
|
|
|
36851
36935
|
// an opaque HTTP 400 after the model already believed it had been saved.
|
|
36852
36936
|
features: z144.array(z144.string().min(1).max(MCP_REVIEW_FEATURE_ITEM_MAX)).max(10).optional(),
|
|
36853
36937
|
buyerPersona: z144.string().min(1).max(360).optional(),
|
|
36854
|
-
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos
|
|
36938
|
+
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena) solo est\xE1 disponible para cuentas habilitadas y tareas del motor nuevo.'),
|
|
36855
36939
|
actor: z144.string().min(1).max(360).optional().describe("Nueva descripci\xF3n del presentador. Al enviarla sin actorId, se elimina autom\xE1ticamente cualquier actor guardado previo de esos \xE1ngulos."),
|
|
36856
36940
|
actorId: z144.string().max(120).nullable().optional(),
|
|
36857
36941
|
creativeDirection: z144.string().max(2e3).optional(),
|
|
@@ -36864,7 +36948,7 @@ var PendingActionPayload = z144.discriminatedUnion("kind", [
|
|
|
36864
36948
|
]).optional().describe("Elecci\xF3n expl\xEDcita: market usa el estudio disponible; guided usa la narrativa elegida para este \xE1ngulo. Si la omites y la tarea tiene un estudio de mercado listo, el \xE1ngulo sale en market; repetir la narrativeStyle que propuso la IA no cuenta como elecci\xF3n."),
|
|
36865
36949
|
angle: z144.string().min(1).max(480).optional(),
|
|
36866
36950
|
buyerPersona: z144.string().min(1).max(360).optional(),
|
|
36867
|
-
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos
|
|
36951
|
+
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena) solo est\xE1 disponible para cuentas habilitadas y tareas del motor nuevo.'),
|
|
36868
36952
|
actor: z144.string().min(1).max(360).optional(),
|
|
36869
36953
|
actorId: z144.string().max(120).nullable().optional(),
|
|
36870
36954
|
creativeDirection: z144.string().max(2e3).optional()
|
|
@@ -39024,7 +39108,7 @@ var VideoCreativeSetup = z148.discriminatedUnion("mode", [
|
|
|
39024
39108
|
}).strict(),
|
|
39025
39109
|
z148.object({
|
|
39026
39110
|
mode: z148.literal("guided"),
|
|
39027
|
-
videoPreset: VideoPresetEnum.default("auto").describe('Narrativa opcional. Con estudio de mercado no la preguntes: se usa "auto" y el estudio define la estructura. Sin estudio conserva la elecci\xF3n del usuario. Todas las narrativas
|
|
39111
|
+
videoPreset: VideoPresetEnum.default("auto").describe('Narrativa opcional. Con estudio de mercado no la preguntes: se usa "auto" y el estudio define la estructura. Sin estudio conserva la elecci\xF3n del usuario. Todas las narrativas funcionan en Un solo clip y Multiescena. "viral" es un video sin voz (r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena), solo de 15 s y solo para cuentas habilitadas; la API rechaza otras duraciones.'),
|
|
39028
39112
|
buyerPersona: z148.string().trim().min(1).max(360),
|
|
39029
39113
|
animationStyle: AnimationStyleEnum.optional().describe('Opcional. Estilo visual SOLO para presets animados ("pixar_problem" o "pixar_sassy") \u2014 la API lo rechaza con cualquier otro preset. Opciones: "pixar_3d" (default, look 3D de pel\xEDcula animada), "claymation" (plastilina stop-motion artesanal), "wes_anderson" (tableau sim\xE9trico pastel), "sci_fi" (futurista con HUDs y ne\xF3n), "realista" (fotorrealista, fiel al producto). Si el usuario pide un look animado sin nombrar el estilo, omite el campo.'),
|
|
39030
39114
|
presenter: VideoPresenter,
|
|
@@ -39046,7 +39130,7 @@ var VideoInput = z148.object({
|
|
|
39046
39130
|
generateAiEdit: AiEditRequestSchema.optional().describe('Opcional. Pide la Edici\xF3n con IA: una pasada que a\xF1ade texto, efectos y m\xFAsica sobre cada video entregado (variante with_ai_edit; se cobra al entregar, por video). Nivel: "economy" (Econ\xF3mica, Sonnet 5.5, m\xE1s barata) o "pro" (Opus 5.5, mejor calidad, ~10 min). true equivale a "pro"; false/omitido = sin edici\xF3n.'),
|
|
39047
39131
|
durationSeconds: z148.number().int().min(4).max(30).default(15).describe("Opcional. Duraci\xF3n objetivo: Un solo clip Econ\xF3mico o Medio usa 15s; Un solo clip Pro usa 15s o 30s; Multiescena usa 15s o 30s totales. La combinaci\xF3n de formato y calidad determina la ruta y el costo."),
|
|
39048
39132
|
videoAngleCount: z148.number().int().min(1).max(3).describe("Cantidad de videos a renderizar: 1, 2 o 3. Es una decisi\xF3n de costo obligatoria: preg\xFAntala incluso cuando creativeSetup.mode=automatic."),
|
|
39049
|
-
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla
|
|
39133
|
+
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones), "market" (narrativa an\xE1lisis de mercado: adapta el video a los patrones ganadores estudiados de la competencia; requiere competitorScanEnabled: true). angleNarratives[i] fuerza la narrativa del \xE1ngulo i; las posiciones restantes las elige la IA. La lista no puede superar videoAngleCount.'),
|
|
39050
39134
|
creativeSetup: VideoCreativeSetup.describe("Configuraci\xF3n creativa obligatoria. En guided pregunta narrativa, p\xFAblico, presentador y direcci\xF3n antes de confirmar. Usa automatic s\xF3lo si el usuario deleg\xF3 todo expl\xEDcitamente."),
|
|
39051
39135
|
videoStructure: VideoStructureEnum.default("single_take").describe('Opcional. Formato: "single_take" = Un solo clip (generado completo; puede incluir cambios de plano) o "multi_scene" = Multiescena (varias tomas concatenadas). Default: single_take.'),
|
|
39052
39136
|
videoQuality: VideoQualityEnum.default("economy").describe('Opcional. Calidad: "economy" = Econ\xF3mico, "medium" = Medio o "pro" = Pro. El sistema elige el proveedor internamente. Default: economy.'),
|
|
@@ -40848,6 +40932,8 @@ function registerPublishTools(server, api, opts = {}) {
|
|
|
40848
40932
|
if (isRecord3(error.data) && [
|
|
40849
40933
|
"SHOPIFY_PUBLISH_INPUT_REQUIRED",
|
|
40850
40934
|
"SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
40935
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
40936
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
40851
40937
|
"SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
|
|
40852
40938
|
"SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
|
|
40853
40939
|
"SHOPIFY_PUBLISH_VERIFICATION_FAILED",
|
package/dist/stdio.js
CHANGED
|
@@ -7818,7 +7818,15 @@ var LandingResultsTimeframeSchema = z23.object({
|
|
|
7818
7818
|
label: z23.string().trim().min(1).max(40),
|
|
7819
7819
|
source: LandingResultsTimeframeSourceSchema
|
|
7820
7820
|
}).strict();
|
|
7821
|
+
var CodeLandingOfferItemOptionsSchema = z23.array(z23.object({
|
|
7822
|
+
name: z23.string().trim().min(1).max(80),
|
|
7823
|
+
values: z23.array(z23.string().trim().min(1).max(120)).max(16).refine((values) => new Set(values.map((value) => value.toLocaleLowerCase())).size === values.length, "Item option values must be distinct")
|
|
7824
|
+
}).strict()).max(3).refine((options) => new Set(options.map(({ name }) => name.toLocaleLowerCase())).size === options.length, "Item option names must be distinct");
|
|
7821
7825
|
var CodeLandingCommerceSnapshotSchema = z23.object({
|
|
7826
|
+
/** Fulfillment details chosen independently per physical item in a pack. */
|
|
7827
|
+
offerItemOptions: CodeLandingOfferItemOptionsSchema.optional(),
|
|
7828
|
+
/** Server-only publication proof scoped to one exact Shopify product. */
|
|
7829
|
+
itemOptionsReleasitExcludedProductId: z23.string().regex(/^[1-9]\d*$/u).optional(),
|
|
7822
7830
|
sellerPricingPolicyVersion: z23.literal(1).optional(),
|
|
7823
7831
|
sellerPromotionText: z23.string().max(240).optional(),
|
|
7824
7832
|
productVariantId: z23.string().trim().min(1).max(500).optional(),
|
|
@@ -8274,6 +8282,8 @@ var CodeLandingDeferredAuthorProviderResultSchema = z23.object({
|
|
|
8274
8282
|
providerResult: z23.record(z23.string(), z23.unknown())
|
|
8275
8283
|
});
|
|
8276
8284
|
var CodeLandingCommerceChangeSchema = z23.object({
|
|
8285
|
+
/** Omission preserves the options. An empty list removes them. */
|
|
8286
|
+
itemOptions: CodeLandingOfferItemOptionsSchema.optional(),
|
|
8277
8287
|
price: z23.string().trim().min(1).max(40).optional(),
|
|
8278
8288
|
compareAtPrice: z23.string().trim().min(1).max(40).nullable().optional(),
|
|
8279
8289
|
/** Remove offer quantities without deleting their Shopify variants. */
|
|
@@ -11221,6 +11231,25 @@ var CreativeEngineAudioSchema = z38.discriminatedUnion("source", [
|
|
|
11221
11231
|
text: z38.string().min(1),
|
|
11222
11232
|
speakerId: id2,
|
|
11223
11233
|
acting: z38.string().min(1),
|
|
11234
|
+
/**
|
|
11235
|
+
* Gender of the person whose voice this is (the visible speaker for
|
|
11236
|
+
* on-screen speech). The voice preset is always of this gender and the
|
|
11237
|
+
* measured TTS master is checked against it. Absent on plans authored
|
|
11238
|
+
* before it existed; those keep their preset's declared gender.
|
|
11239
|
+
*/
|
|
11240
|
+
speakerGender: z38.enum([
|
|
11241
|
+
"female",
|
|
11242
|
+
"male"
|
|
11243
|
+
]).optional(),
|
|
11244
|
+
/**
|
|
11245
|
+
* Apparent age of that person, so the voice fits who is seen (an older
|
|
11246
|
+
* woman never speaks with a girl's voice). Absent on older plans.
|
|
11247
|
+
*/
|
|
11248
|
+
speakerAge: z38.enum([
|
|
11249
|
+
"young_adult",
|
|
11250
|
+
"adult",
|
|
11251
|
+
"mature"
|
|
11252
|
+
]).optional(),
|
|
11224
11253
|
voicePreset: id2,
|
|
11225
11254
|
provider: z38.literal("kie"),
|
|
11226
11255
|
model: z38.literal("google/gemini-3-8-flash-tts"),
|
|
@@ -11541,9 +11570,16 @@ var CreativeEngineSceneDurationFitSchema = z38.object({
|
|
|
11541
11570
|
/**
|
|
11542
11571
|
* `shrink`: the measured master fits with excess silence, so its slot
|
|
11543
11572
|
* shrinks to the smallest admitted duration holding master + tail (spike
|
|
11544
|
-
* path: timing follows the real voice).
|
|
11573
|
+
* path: timing follows the real voice). `partition`: one shared
|
|
11574
|
+
* multi-scene narration master whose measured paragraph spans do not fit
|
|
11575
|
+
* the planned slots re-partitions every slot at once (515d5b39), before
|
|
11576
|
+
* any scene input or clip; `sceneId` is the take's first scene and
|
|
11577
|
+
* `measuredSec` the whole master. Absent: the historical growth fit.
|
|
11545
11578
|
*/
|
|
11546
|
-
direction: z38.
|
|
11579
|
+
direction: z38.enum([
|
|
11580
|
+
"shrink",
|
|
11581
|
+
"partition"
|
|
11582
|
+
]).optional()
|
|
11547
11583
|
}).strict();
|
|
11548
11584
|
var CreativeEngineSceneTimingSchema = z38.object({
|
|
11549
11585
|
version: z38.literal(1),
|
|
@@ -12530,10 +12566,33 @@ var ShopifyProductSummary = z42.object({
|
|
|
12530
12566
|
minPrice: z42.string(),
|
|
12531
12567
|
currencyCode: z42.string().min(3).max(3)
|
|
12532
12568
|
});
|
|
12569
|
+
var ShopifyProductGid = z42.string().max(120).regex(/^gid:\/\/shopify\/Product\/[1-9]\d*$/u);
|
|
12570
|
+
var ShopifyVariantGid = z42.string().max(120).regex(/^gid:\/\/shopify\/ProductVariant\/[1-9]\d*$/u);
|
|
12571
|
+
var ClassicPerItemCheckoutSchema = z42.object({
|
|
12572
|
+
productId: ShopifyProductGid,
|
|
12573
|
+
itemOptions: CodeLandingOfferItemOptionsSchema.refine((options) => options.length > 0),
|
|
12574
|
+
bindings: z42.array(z42.object({
|
|
12575
|
+
variantId: ShopifyVariantGid,
|
|
12576
|
+
units: z42.number().int().min(1).max(25)
|
|
12577
|
+
}).strict()).min(1).max(8)
|
|
12578
|
+
}).strict().refine(({ bindings }) => new Set(bindings.map(({ variantId }) => variantId)).size === bindings.length, {
|
|
12579
|
+
path: [
|
|
12580
|
+
"bindings"
|
|
12581
|
+
],
|
|
12582
|
+
message: "Cada variante puede vincularse una sola vez."
|
|
12583
|
+
});
|
|
12584
|
+
var ClassicVariantOptionsSchema = z42.object({
|
|
12585
|
+
productId: ShopifyProductGid,
|
|
12586
|
+
currency: z42.string().length(3),
|
|
12587
|
+
complete: z42.boolean(),
|
|
12588
|
+
candidates: z42.array(PublishVariantCandidateSchema).max(250),
|
|
12589
|
+
saved: ClassicPerItemCheckoutSchema.optional()
|
|
12590
|
+
}).strict();
|
|
12533
12591
|
var ShopifyProductsListResponse = z42.object({
|
|
12534
12592
|
products: z42.array(ShopifyProductSummary),
|
|
12535
12593
|
currentTarget: ShopifyProductSummary.nullable(),
|
|
12536
|
-
currentTargetMissing: z42.boolean()
|
|
12594
|
+
currentTargetMissing: z42.boolean(),
|
|
12595
|
+
classicVariantOptions: ClassicVariantOptionsSchema.optional()
|
|
12537
12596
|
});
|
|
12538
12597
|
var SelectedLandingImage = z42.object({
|
|
12539
12598
|
/** 0-based index of the image in the landing.images array */
|
|
@@ -12591,6 +12650,8 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12591
12650
|
/** Omitted keeps legacy publication behavior; null explicitly excludes the GIF. */
|
|
12592
12651
|
selectedLandingGif: LandingGifSelectionSchema.nullable().optional(),
|
|
12593
12652
|
classicSelection: ClassicLandingSelectionSnapshotSchema.optional(),
|
|
12653
|
+
/** Omission retains a verified same-target configuration. Null clears it. */
|
|
12654
|
+
classicPerItemCheckout: ClassicPerItemCheckoutSchema.nullable().optional(),
|
|
12594
12655
|
shopDomain: z42.string().min(3).max(120).optional(),
|
|
12595
12656
|
/**
|
|
12596
12657
|
* Landing images to include in the Shopify page with their selected variants.
|
|
@@ -12623,6 +12684,15 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12623
12684
|
*/
|
|
12624
12685
|
landingPixels: LandingPixelSelection.optional()
|
|
12625
12686
|
}).superRefine((data, ctx) => {
|
|
12687
|
+
if (data.classicPerItemCheckout && data.publicationMode === "new") {
|
|
12688
|
+
ctx.addIssue({
|
|
12689
|
+
code: z42.ZodIssueCode.custom,
|
|
12690
|
+
path: [
|
|
12691
|
+
"classicPerItemCheckout"
|
|
12692
|
+
],
|
|
12693
|
+
message: "Selecciona un producto existente para personalizar el pack."
|
|
12694
|
+
});
|
|
12695
|
+
}
|
|
12626
12696
|
if (data.publicationMode === "existing" && !data.targetProductId) {
|
|
12627
12697
|
ctx.addIssue({
|
|
12628
12698
|
code: z42.ZodIssueCode.custom,
|
|
@@ -12653,7 +12723,8 @@ var ShopifyPublishRequest = z42.object({
|
|
|
12653
12723
|
});
|
|
12654
12724
|
var CodeLandingThemeSetupRequest = z42.object(ShopifyPublishRequest.shape).omit({
|
|
12655
12725
|
publishAttemptId: true,
|
|
12656
|
-
commerceCorrection: true
|
|
12726
|
+
commerceCorrection: true,
|
|
12727
|
+
classicPerItemCheckout: true
|
|
12657
12728
|
});
|
|
12658
12729
|
var ShopifyPublicationStatus = z42.enum([
|
|
12659
12730
|
"pending",
|
|
@@ -12830,6 +12901,8 @@ var ShopifyPublishErrorResponse = z42.discriminatedUnion("code", [
|
|
|
12830
12901
|
"SHOPIFY_NO_PUBLISHED_THEME",
|
|
12831
12902
|
"SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
|
|
12832
12903
|
"SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
12904
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
12905
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
12833
12906
|
/**
|
|
12834
12907
|
* A publish failure we understand (Shopify did not keep the offer's
|
|
12835
12908
|
* variants, another app rewrote the product, landing too large).
|
|
@@ -24534,7 +24607,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
24534
24607
|
// MCP 12.4.0: landingStrategy narrowed to classic + social_proof.
|
|
24535
24608
|
// MCP 12.5.0: pain_solution restored to landingStrategy.
|
|
24536
24609
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
24537
|
-
|
|
24610
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
24611
|
+
"3b87d6989fddb6aa11f2b4b719dec88fa304b0913a9cf217d8b8f0f71b1ff979",
|
|
24538
24612
|
"credit_consuming",
|
|
24539
24613
|
"creative",
|
|
24540
24614
|
[
|
|
@@ -25105,7 +25179,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
25105
25179
|
// MCP 8.10.0: storyteller family blocked (BLOCKED_NARRATIVE_STYLES).
|
|
25106
25180
|
// MCP 9.1.0: combine current animated-video controls and initial GIF choice.
|
|
25107
25181
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
25108
|
-
|
|
25182
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
25183
|
+
"36b556d187540506f5a86ae4471682c4976611b74159e7691e093b5b2898a292",
|
|
25109
25184
|
"credit_consuming",
|
|
25110
25185
|
"creative",
|
|
25111
25186
|
[
|
|
@@ -25894,7 +25969,8 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
25894
25969
|
"resolve_pending_action",
|
|
25895
25970
|
// MCP 12.8.0: + manual-only, cohort-gated «viral» preset/angle narrative.
|
|
25896
25971
|
// MCP 12.12.1: angleEdits[].narrativeSelection documents the server market default.
|
|
25897
|
-
|
|
25972
|
+
// MCP 12.18.1: «viral» prose admits Un solo clip (15 s).
|
|
25973
|
+
"51140c0f3120036078edd4a8d8c8444b147fe2e87689ce49eeeba9346cff25ec",
|
|
25898
25974
|
"credit_consuming",
|
|
25899
25975
|
"creative",
|
|
25900
25976
|
[
|
|
@@ -31116,7 +31192,7 @@ var ApiClient = class {
|
|
|
31116
31192
|
};
|
|
31117
31193
|
|
|
31118
31194
|
// src/index.ts
|
|
31119
|
-
var MCP_VERSION = "12.18.
|
|
31195
|
+
var MCP_VERSION = "12.18.2";
|
|
31120
31196
|
|
|
31121
31197
|
// src/meta-upload-app.ts
|
|
31122
31198
|
import { readFileSync } from "fs";
|
|
@@ -32563,6 +32639,8 @@ var McpErrorCode = {
|
|
|
32563
32639
|
SHOPIFY_THEME_STRUCTURE_UNSUPPORTED: "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
|
|
32564
32640
|
SHOPIFY_PUBLISH_INPUT_REQUIRED: "SHOPIFY_PUBLISH_INPUT_REQUIRED",
|
|
32565
32641
|
SHOPIFY_PUBLISH_CONTEXT_CHANGED: "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
32642
|
+
SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
32643
|
+
SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
32566
32644
|
SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
|
|
32567
32645
|
SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
|
|
32568
32646
|
SHOPIFY_PUBLISH_VERIFICATION_FAILED: "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
|
|
@@ -32665,6 +32743,8 @@ var CODE_MESSAGES = {
|
|
|
32665
32743
|
SHOPIFY_PUBLISH_FAILED: "Shopify did not confirm publication. Check the task and Shopify store before another attempt; a new product may already exist. Do not retry blindly or change the publication target.",
|
|
32666
32744
|
SHOPIFY_PUBLISH_INPUT_REQUIRED: "Review every recovery issue with the seller. Ask for missing prices and confirm the exact currency, unit price and pack totals before resending commerceCorrection with confirmed:true. Never invent amounts, convert currency or remove an offer.",
|
|
32667
32745
|
SHOPIFY_PUBLISH_CONTEXT_CHANGED: "The publication context changed. Reopen the task in ProductMaker, review the current store, product and landing revision, and obtain fresh confirmation. Do not reuse this correction.",
|
|
32746
|
+
SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "The saved pack setup no longer matches the selected Shopify product. Open the landing in ProductMaker, review the Shopify product and select the pack variants again before publishing.",
|
|
32747
|
+
SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "This product needs native Shopify checkout to keep the choices for each item in the pack. Verify native checkout for this product in Shopify, then open the landing in ProductMaker to finish publishing.",
|
|
32668
32748
|
SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "Open the landing editor in ProductMaker to reconcile the visible offer with checkout prices. The correction was not saved; do not retry it automatically or regenerate the landing without approval.",
|
|
32669
32749
|
SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "The seller confirmed exactly the suggested values and the offer still cannot publish \u2014 resending the same correction will loop. Read the error's reason to the user and send them to the landing editor in ProductMaker to adjust the offer, then publish again. Do not resend commerceCorrection.",
|
|
32670
32750
|
SHOPIFY_PUBLISH_VERIFICATION_FAILED: "Shopify did not keep what the publish wrote (offer variants, template or inventory), or the landing is too large. Read the error's reason to the user; retry the publish once, and if it repeats follow the step in the reason (map packs to existing variants, check apps that edit products, or trim the landing in the editor).",
|
|
@@ -32965,6 +33045,8 @@ var INVALID_PARAM_CODES = /* @__PURE__ */ new Set([
|
|
|
32965
33045
|
McpErrorCode.SHOPIFY_THEME_STRUCTURE_UNSUPPORTED,
|
|
32966
33046
|
McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
|
|
32967
33047
|
McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
|
|
33048
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
|
|
33049
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
|
|
32968
33050
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
|
|
32969
33051
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
|
|
32970
33052
|
McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
|
|
@@ -33004,6 +33086,8 @@ var PASSTHROUGH_CODES = /* @__PURE__ */ new Set([
|
|
|
33004
33086
|
// Shopify
|
|
33005
33087
|
McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
|
|
33006
33088
|
McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
|
|
33089
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
|
|
33090
|
+
McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
|
|
33007
33091
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
|
|
33008
33092
|
McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
|
|
33009
33093
|
McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
|
|
@@ -33195,7 +33279,7 @@ function translateError(err) {
|
|
|
33195
33279
|
const code2 = McpErrorCode[admission.data.code];
|
|
33196
33280
|
return mcp(code2, resolveMessage(code2, void 0));
|
|
33197
33281
|
}
|
|
33198
|
-
if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
|
|
33282
|
+
if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
|
|
33199
33283
|
const parsed = ShopifyPublishErrorResponse.safeParse(body);
|
|
33200
33284
|
if (!parsed.success) return mcp(McpErrorCode.INTERNAL, resolveMessage(McpErrorCode.INTERNAL, void 0));
|
|
33201
33285
|
const details = parsed.data;
|
|
@@ -35213,7 +35297,7 @@ var CreateProductTaskInput = z143.object({
|
|
|
35213
35297
|
paymentMethods: z143.string().min(1).max(240).optional().describe('Opcional. M\xE9todos de pago que puede mostrar la landing. Ej. "Tarjeta, PSE, Nequi, Contraentrega". Si se omite, la landing no muestra m\xE9todos de pago.'),
|
|
35214
35298
|
productContext: z143.string().max(PRODUCT_CONTEXT_MAX_CHARS).optional().describe("Opcional. Informacion adicional del producto que la IA debe usar como contexto prioritario: uso real, comprador, restricciones, diferenciadores o direccion creativa. No reemplaza la investigacion de competencia; si hay competencia, guia el primer angulo y los outputs no deben contradecirlo."),
|
|
35215
35299
|
productLabel: z143.string().trim().max(80).optional().describe('Opcional. Qu\xE9 es el producto, en pocas palabras (ej. "quita pelusas para ropa"). Es AUTORITATIVO: si lo env\xEDas, la IA usa esta identidad y no la reemplaza por otra categor\xEDa. Si lo omites, la IA detecta el producto desde la imagen.'),
|
|
35216
|
-
videoPreset: VideoPresetEnum.default("auto").describe('Opcional. Tipo/narrativa del video \u2014 \xFAnico campo de "estilo" que el usuario controla. Default "auto" (la IA escoge tras analizar el producto). Todos los presets salvo "viral"
|
|
35300
|
+
videoPreset: VideoPresetEnum.default("auto").describe('Opcional. Tipo/narrativa del video \u2014 \xFAnico campo de "estilo" que el usuario controla. Default "auto" (la IA escoge tras analizar el producto). Todos los presets funcionan a 15s (single_call) y 30s (Multiescena), salvo "viral", que solo existe a 15 s (Un solo clip o Multiescena); "problem_solution" en single_call abre sin el producto y el producto entra por referencia en su beat de soluci\xF3n. Opciones: "auto", "ugc_dynamic" (review con experiencia y prueba), "ugc_how_to" (tutorial con pasos y resultado visible), "ugc_unboxing_chaos" (apertura y primera prueba), "problem_solution" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase" (producto ejecutando una funci\xF3n real), "wearable_showcase" (prenda o accesorio modelado), "cinematic" (TV spot con receta cinematogr\xE1fica), "wild_card" (idea imposible: un truco visual que en la vida real no podr\xEDa pasar, y al cierre la invitaci\xF3n a comprar), "pixar_problem" (problema animado 3D), "pixar_sassy" (producto que habla), "viral" (video sin voz con r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones). Si el usuario pide algo fuera de esta lista, p\xEDdele una opci\xF3n v\xE1lida.'),
|
|
35217
35301
|
animationStyle: AnimationStyleEnum.optional().describe('Opcional. Estilo visual SOLO para presets animados ("pixar_problem" o "pixar_sassy") \u2014 la API lo rechaza con cualquier otro preset. Opciones: "pixar_3d" (default, look 3D de pel\xEDcula animada), "claymation" (plastilina stop-motion artesanal), "wes_anderson" (tableau sim\xE9trico pastel), "sci_fi" (futurista con HUDs y ne\xF3n), "realista" (fotorrealista, fiel al producto). Si el usuario pide un look animado sin nombrar el estilo, omite el campo.'),
|
|
35218
35302
|
durationSeconds: z143.union([
|
|
35219
35303
|
z143.literal(15),
|
|
@@ -35226,7 +35310,7 @@ var CreateProductTaskInput = z143.object({
|
|
|
35226
35310
|
videoQuality: VideoQualityEnum.default("economy").describe('Opcional. Calidad: "economy" = Econ\xF3mico, "medium" = Medio o "pro" = Pro. El proveedor se elige internamente. Default: economy.'),
|
|
35227
35311
|
videoResolution: VideoResolutionEnum.optional().describe('Opcional. Resoluci\xF3n del render. En la web se pregunta "\xBFResoluci\xF3n del video?". "480p" = excelente calidad y m\xE1s econ\xF3mico (RECOMENDADO, default si se omite); "720p" = m\xE1xima nitidez, entre 3% y 15% m\xE1s caro seg\xFAn formato y tier. Si el usuario no menciona resoluci\xF3n, OMITE este campo (el backend usa 480p).'),
|
|
35228
35312
|
videoAngleCount: z143.number().int().min(1).max(3).optional().describe("Cantidad de videos a renderizar: 1, 2 o 3. REQUERIDO cuando outputs incluye video (o se omite outputs, cuyo default incluye video); om\xEDtelo s\xF3lo cuando no se generar\xE1 video. Preg\xFAntalo incluso con aiDecidesAll=true porque cambia el costo."),
|
|
35229
|
-
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla
|
|
35313
|
+
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones), "market" (narrativa an\xE1lisis de mercado: adapta el video a los patrones ganadores estudiados de la competencia; requiere competitorScanEnabled: true). angleNarratives[i] fuerza la narrativa del \xE1ngulo i; las posiciones restantes las elige la IA. La lista no puede superar videoAngleCount.'),
|
|
35230
35314
|
outputs: z143.array(z143.enum([
|
|
35231
35315
|
"landing",
|
|
35232
35316
|
"video",
|
|
@@ -35336,7 +35420,7 @@ var PendingActionPayload = z143.discriminatedUnion("kind", [
|
|
|
35336
35420
|
// an opaque HTTP 400 after the model already believed it had been saved.
|
|
35337
35421
|
features: z143.array(z143.string().min(1).max(MCP_REVIEW_FEATURE_ITEM_MAX)).max(10).optional(),
|
|
35338
35422
|
buyerPersona: z143.string().min(1).max(360).optional(),
|
|
35339
|
-
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos
|
|
35423
|
+
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena) solo est\xE1 disponible para cuentas habilitadas y tareas del motor nuevo.'),
|
|
35340
35424
|
actor: z143.string().min(1).max(360).optional().describe("Nueva descripci\xF3n del presentador. Al enviarla sin actorId, se elimina autom\xE1ticamente cualquier actor guardado previo de esos \xE1ngulos."),
|
|
35341
35425
|
actorId: z143.string().max(120).nullable().optional(),
|
|
35342
35426
|
creativeDirection: z143.string().max(2e3).optional(),
|
|
@@ -35349,7 +35433,7 @@ var PendingActionPayload = z143.discriminatedUnion("kind", [
|
|
|
35349
35433
|
]).optional().describe("Elecci\xF3n expl\xEDcita: market usa el estudio disponible; guided usa la narrativa elegida para este \xE1ngulo. Si la omites y la tarea tiene un estudio de mercado listo, el \xE1ngulo sale en market; repetir la narrativeStyle que propuso la IA no cuenta como elecci\xF3n."),
|
|
35350
35434
|
angle: z143.string().min(1).max(480).optional(),
|
|
35351
35435
|
buyerPersona: z143.string().min(1).max(360).optional(),
|
|
35352
|
-
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos
|
|
35436
|
+
narrativeStyle: PublicNarrativeStyleEnum.optional().describe('Narrativa del video. "problem_product_cta" (Problema y Soluci\xF3n) funciona en ambos formatos \u2014 en Un solo clip abre sin producto y el producto entra por referencia en su beat. La familia storyteller ("animated_storyteller", "animated_inner_journey", "animated_object_soul", "animated_timeline") no est\xE1 disponible por ahora. "viral" (sin voz, r\xF3tulos; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena) solo est\xE1 disponible para cuentas habilitadas y tareas del motor nuevo.'),
|
|
35353
35437
|
actor: z143.string().min(1).max(360).optional(),
|
|
35354
35438
|
actorId: z143.string().max(120).nullable().optional(),
|
|
35355
35439
|
creativeDirection: z143.string().max(2e3).optional()
|
|
@@ -37509,7 +37593,7 @@ var VideoCreativeSetup = z147.discriminatedUnion("mode", [
|
|
|
37509
37593
|
}).strict(),
|
|
37510
37594
|
z147.object({
|
|
37511
37595
|
mode: z147.literal("guided"),
|
|
37512
|
-
videoPreset: VideoPresetEnum.default("auto").describe('Narrativa opcional. Con estudio de mercado no la preguntes: se usa "auto" y el estudio define la estructura. Sin estudio conserva la elecci\xF3n del usuario. Todas las narrativas
|
|
37596
|
+
videoPreset: VideoPresetEnum.default("auto").describe('Narrativa opcional. Con estudio de mercado no la preguntes: se usa "auto" y el estudio define la estructura. Sin estudio conserva la elecci\xF3n del usuario. Todas las narrativas funcionan en Un solo clip y Multiescena. "viral" es un video sin voz (r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena), solo de 15 s y solo para cuentas habilitadas; la API rechaza otras duraciones.'),
|
|
37513
37597
|
buyerPersona: z147.string().trim().min(1).max(360),
|
|
37514
37598
|
animationStyle: AnimationStyleEnum.optional().describe('Opcional. Estilo visual SOLO para presets animados ("pixar_problem" o "pixar_sassy") \u2014 la API lo rechaza con cualquier otro preset. Opciones: "pixar_3d" (default, look 3D de pel\xEDcula animada), "claymation" (plastilina stop-motion artesanal), "wes_anderson" (tableau sim\xE9trico pastel), "sci_fi" (futurista con HUDs y ne\xF3n), "realista" (fotorrealista, fiel al producto). Si el usuario pide un look animado sin nombrar el estilo, omite el campo.'),
|
|
37515
37599
|
presenter: VideoPresenter,
|
|
@@ -37531,7 +37615,7 @@ var VideoInput = z147.object({
|
|
|
37531
37615
|
generateAiEdit: AiEditRequestSchema.optional().describe('Opcional. Pide la Edici\xF3n con IA: una pasada que a\xF1ade texto, efectos y m\xFAsica sobre cada video entregado (variante with_ai_edit; se cobra al entregar, por video). Nivel: "economy" (Econ\xF3mica, Sonnet 5.5, m\xE1s barata) o "pro" (Opus 5.5, mejor calidad, ~10 min). true equivale a "pro"; false/omitido = sin edici\xF3n.'),
|
|
37532
37616
|
durationSeconds: z147.number().int().min(4).max(30).default(15).describe("Opcional. Duraci\xF3n objetivo: Un solo clip Econ\xF3mico o Medio usa 15s; Un solo clip Pro usa 15s o 30s; Multiescena usa 15s o 30s totales. La combinaci\xF3n de formato y calidad determina la ruta y el costo."),
|
|
37533
37617
|
videoAngleCount: z147.number().int().min(1).max(3).describe("Cantidad de videos a renderizar: 1, 2 o 3. Es una decisi\xF3n de costo obligatoria: preg\xFAntala incluso cuando creativeSetup.mode=automatic."),
|
|
37534
|
-
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla
|
|
37618
|
+
angleNarratives: PublicNarrativeStyleEnum.array().max(3).optional().describe('Opcional. Narrativa POR \xC1NGULO (posicional). Valores actuales: "review", "ugc_how_to", "ugc_unboxing_chaos", "problem_product_cta" (problema concreto, producto como soluci\xF3n y CTA), "product_showcase", "wearable_showcase", "cinematic", "wild_card", "animated_problem_pixar", "sassy_product_pixar", "viral" (video sin voz: r\xF3tulos en pantalla; antes/despu\xE9s solo en Multiescena; solo 15 s, Un solo clip o Multiescena, y solo para cuentas habilitadas; la API rechaza otras duraciones), "market" (narrativa an\xE1lisis de mercado: adapta el video a los patrones ganadores estudiados de la competencia; requiere competitorScanEnabled: true). angleNarratives[i] fuerza la narrativa del \xE1ngulo i; las posiciones restantes las elige la IA. La lista no puede superar videoAngleCount.'),
|
|
37535
37619
|
creativeSetup: VideoCreativeSetup.describe("Configuraci\xF3n creativa obligatoria. En guided pregunta narrativa, p\xFAblico, presentador y direcci\xF3n antes de confirmar. Usa automatic s\xF3lo si el usuario deleg\xF3 todo expl\xEDcitamente."),
|
|
37536
37620
|
videoStructure: VideoStructureEnum.default("single_take").describe('Opcional. Formato: "single_take" = Un solo clip (generado completo; puede incluir cambios de plano) o "multi_scene" = Multiescena (varias tomas concatenadas). Default: single_take.'),
|
|
37537
37621
|
videoQuality: VideoQualityEnum.default("economy").describe('Opcional. Calidad: "economy" = Econ\xF3mico, "medium" = Medio o "pro" = Pro. El sistema elige el proveedor internamente. Default: economy.'),
|
|
@@ -39333,6 +39417,8 @@ function registerPublishTools(server, api, opts = {}) {
|
|
|
39333
39417
|
if (isRecord3(error.data) && [
|
|
39334
39418
|
"SHOPIFY_PUBLISH_INPUT_REQUIRED",
|
|
39335
39419
|
"SHOPIFY_PUBLISH_CONTEXT_CHANGED",
|
|
39420
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
|
|
39421
|
+
"SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
|
|
39336
39422
|
"SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
|
|
39337
39423
|
"SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
|
|
39338
39424
|
"SHOPIFY_PUBLISH_VERIFICATION_FAILED",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.18.
|
|
3
|
+
"version": "12.18.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ProductMaker MCP server — cost products, generate landing pages, UGC videos, and ad creatives, and publish to Shopify, Meta Ads, and TikTok Ads.",
|