@productmaker/mcp 12.31.0 → 12.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.js +86 -7
- package/dist/stdio.js +86 -7
- package/package.json +1 -1
package/dist/http.js
CHANGED
|
@@ -6144,6 +6144,8 @@ var CreativeEngineRecipeSchema = z14.object({
|
|
|
6144
6144
|
repairPlanReviewPolicy: z14.literal("frozen_contract_v1").optional(),
|
|
6145
6145
|
/** Root-only visual patch wire contract; absent preserves historic full-plan recovery. */
|
|
6146
6146
|
repairAuthoring: z14.literal("scene_patch_v1").optional(),
|
|
6147
|
+
/** Scope physical-use repair instructions to freshly bound director requests. */
|
|
6148
|
+
groundedPhysicalRepair: z14.literal("scene_v1").optional(),
|
|
6147
6149
|
/** New requests maximize output inside model and measured input headroom. */
|
|
6148
6150
|
outputTokenPolicy: z14.literal("model_max_v1").optional(),
|
|
6149
6151
|
/**
|
|
@@ -6247,6 +6249,11 @@ var CreativeEngineRecipeSchema = z14.object({
|
|
|
6247
6249
|
* keeps the prepared wire byte-identical for operations in flight.
|
|
6248
6250
|
*/
|
|
6249
6251
|
promptCacheLayout: z14.literal("stable_prefix_v1").optional(),
|
|
6252
|
+
/** New Multiescena admissions may try on-camera speech without an isolated speaker. */
|
|
6253
|
+
unidentifiedSpeakerLipSync: z14.enum([
|
|
6254
|
+
"provisional_v1",
|
|
6255
|
+
"provisional_v2"
|
|
6256
|
+
]).optional(),
|
|
6250
6257
|
/** New final reviews explicitly account for selected critical technical findings. */
|
|
6251
6258
|
finalReviewContextPolicy: z14.literal("selected_candidate_findings_v1").optional(),
|
|
6252
6259
|
/** New voice requests after localized lengthening override stale timing only. */
|
|
@@ -6594,6 +6601,8 @@ var CreativeEngineReviewSchema = z14.object({
|
|
|
6594
6601
|
"base_routing",
|
|
6595
6602
|
"candidate_quality"
|
|
6596
6603
|
]).optional(),
|
|
6604
|
+
/** Runtime detector veto. The model response schema does not expose it. */
|
|
6605
|
+
provisionalSpeechIsolationVeto: z14.literal(true).optional(),
|
|
6597
6606
|
speechWindows: z14.array(CreativeEngineSpeechObservationSchema).max(3).optional(),
|
|
6598
6607
|
subjectHash: hash,
|
|
6599
6608
|
planRevision: z14.number().int().positive(),
|
|
@@ -6666,6 +6675,8 @@ var CreativeEngineSpeechRoutingSchema = z14.object({
|
|
|
6666
6675
|
"reviewed",
|
|
6667
6676
|
"plan_fallback"
|
|
6668
6677
|
]).optional(),
|
|
6678
|
+
/** Full-frame attempt whose speaker identity needs candidate QA. */
|
|
6679
|
+
unverifiedSpeaker: z14.literal(true).optional(),
|
|
6669
6680
|
/** Why a plan_fallback routing exists: the review's unavailability, or an
|
|
6670
6681
|
* explicit routing rejection accepted degraded with planned windows. */
|
|
6671
6682
|
unavailabilityReason: z14.enum([
|
|
@@ -6802,6 +6813,9 @@ var CreativeEngineCandidateSchema = z14.object({
|
|
|
6802
6813
|
]).optional(),
|
|
6803
6814
|
baseOutputHash: hash.optional(),
|
|
6804
6815
|
routingHash: hash.optional(),
|
|
6816
|
+
speechBaseFallback: z14.literal(true).optional(),
|
|
6817
|
+
/** Provisional windows actually composited into this candidate. */
|
|
6818
|
+
speechPatchedWindowIds: z14.array(id2).min(1).max(3).optional(),
|
|
6805
6819
|
inheritanceHash: hash.optional(),
|
|
6806
6820
|
id: id2,
|
|
6807
6821
|
sceneId: id2,
|
|
@@ -6899,6 +6913,12 @@ var CreativeEngineOperationSchema = z14.object({
|
|
|
6899
6913
|
]),
|
|
6900
6914
|
/** Exact unavailable QA review that abandons optional ASR evidence, never its liability. */
|
|
6901
6915
|
assessmentUnavailableReviewId: id2.optional(),
|
|
6916
|
+
/** Canonical closed ASR read confirmed no request or no owned provider outcome.
|
|
6917
|
+
* Historical evidence only; never zero spend or an assessment waiver. */
|
|
6918
|
+
asrOutcomeUnavailable: z14.enum([
|
|
6919
|
+
"request_absent_v1",
|
|
6920
|
+
"outcome_unknown_v1"
|
|
6921
|
+
]).optional(),
|
|
6902
6922
|
acceptedId: id2.optional(),
|
|
6903
6923
|
reservedUsdMicros: z14.number().int().positive(),
|
|
6904
6924
|
/** Frozen maximum number of physical provider posts covered by this operation. */
|
|
@@ -6982,7 +7002,18 @@ var CreativeEngineSpeechWindowRepairStateSchema = z14.object({
|
|
|
6982
7002
|
* the same index; historical receipts pin 2.
|
|
6983
7003
|
*/
|
|
6984
7004
|
attempt: z14.number().int().min(1).max(CREATIVE_ENGINE_MEDIA_RECOVERY_POLICY.paidRetakesMax + 1),
|
|
6985
|
-
supersededCandidateIds: z14.array(id2).max(128).optional()
|
|
7005
|
+
supersededCandidateIds: z14.array(id2).max(128).optional(),
|
|
7006
|
+
/** Exact rejected final that admitted the repair; absent for asset failures and older journals. */
|
|
7007
|
+
sourceFinal: z14.object({
|
|
7008
|
+
reviewId: id2,
|
|
7009
|
+
outputHash: hash,
|
|
7010
|
+
manifestHash: hash,
|
|
7011
|
+
planHash: hash,
|
|
7012
|
+
planRevision: z14.number().int().positive(),
|
|
7013
|
+
selectedCandidateId: id2,
|
|
7014
|
+
/** Same selected takes with confirmed issues outside the paid window. */
|
|
7015
|
+
retainedSelection: z14.record(z14.string(), id2).optional()
|
|
7016
|
+
}).strict().optional()
|
|
6986
7017
|
}).strict();
|
|
6987
7018
|
var CreativeEngineFinalRepairFallbackSchema = z14.object({
|
|
6988
7019
|
owner: CreativeEngineOwnerSchema,
|
|
@@ -7029,6 +7060,18 @@ var CreativeEngineStateSchema = z14.object({
|
|
|
7029
7060
|
retainedSceneCandidates: z14.array(CreativeEngineRetainedSceneCandidateBindingSchema).optional(),
|
|
7030
7061
|
inheritedSceneOutputs: z14.array(CreativeEngineInheritedSceneOutputSchema).optional(),
|
|
7031
7062
|
speechRoutings: z14.array(CreativeEngineSpeechRoutingSchema).optional(),
|
|
7063
|
+
provisionalFinalSpeech: z14.object({
|
|
7064
|
+
reviewId: id2,
|
|
7065
|
+
candidateIds: z14.array(id2).min(1),
|
|
7066
|
+
planHash: hash,
|
|
7067
|
+
final: CreativeEngineFinalSchema,
|
|
7068
|
+
selection: z14.record(z14.string(), id2),
|
|
7069
|
+
active: z14.boolean()
|
|
7070
|
+
}).strict().optional(),
|
|
7071
|
+
speechFallbackAdmissionRefusals: z14.record(hash, z14.enum([
|
|
7072
|
+
"cost_budget_exhausted",
|
|
7073
|
+
"post_budget_exhausted"
|
|
7074
|
+
])).optional(),
|
|
7032
7075
|
speechWindowRepair: CreativeEngineSpeechWindowRepairStateSchema.optional(),
|
|
7033
7076
|
selection: z14.record(z14.string(), id2),
|
|
7034
7077
|
selectionManifestHash: hash.optional(),
|
|
@@ -7202,6 +7245,23 @@ var CreativeEngineEventSchema = z14.discriminatedUnion("type", [
|
|
|
7202
7245
|
type: z14.literal("repair_requested"),
|
|
7203
7246
|
sceneId: id2
|
|
7204
7247
|
}).strict(),
|
|
7248
|
+
z14.object({
|
|
7249
|
+
type: z14.literal("provisional_final_speech_decided"),
|
|
7250
|
+
reviewId: id2,
|
|
7251
|
+
candidateIds: z14.array(id2).min(1),
|
|
7252
|
+
admitted: z14.boolean()
|
|
7253
|
+
}).strict(),
|
|
7254
|
+
z14.object({
|
|
7255
|
+
type: z14.literal("provisional_final_speech_restored")
|
|
7256
|
+
}).strict(),
|
|
7257
|
+
z14.object({
|
|
7258
|
+
type: z14.literal("speech_fallback_admission_refused"),
|
|
7259
|
+
operation: CreativeEngineOperationSchema,
|
|
7260
|
+
reason: z14.enum([
|
|
7261
|
+
"cost_budget_exhausted",
|
|
7262
|
+
"post_budget_exhausted"
|
|
7263
|
+
])
|
|
7264
|
+
}).strict(),
|
|
7205
7265
|
z14.object({
|
|
7206
7266
|
type: z14.literal("plan_repair_admission_denied"),
|
|
7207
7267
|
planHash: hash,
|
|
@@ -10781,12 +10841,13 @@ var GetLandingConfigResponse = z28.union([
|
|
|
10781
10841
|
var UpdateLandingConfigResponse = z28.object({
|
|
10782
10842
|
ok: z28.boolean()
|
|
10783
10843
|
});
|
|
10844
|
+
var LANDING_EDIT_MESSAGE_MAX_CHARS = 2e3;
|
|
10784
10845
|
var LegacyLandingEditRequest = z28.object({
|
|
10785
10846
|
message: z28.string().min(3).max(1e3),
|
|
10786
10847
|
sectionId: z28.string().optional()
|
|
10787
10848
|
});
|
|
10788
10849
|
var QuotedLandingEditRequest = z28.object({
|
|
10789
|
-
message: z28.string().trim().min(3).max(
|
|
10850
|
+
message: z28.string().trim().min(3).max(LANDING_EDIT_MESSAGE_MAX_CHARS),
|
|
10790
10851
|
expectedRevision: z28.number().int().nonnegative(),
|
|
10791
10852
|
scope: z28.enum([
|
|
10792
10853
|
"patch",
|
|
@@ -10931,7 +10992,7 @@ var LandingEditScopeSchema = z28.enum([
|
|
|
10931
10992
|
"full"
|
|
10932
10993
|
]);
|
|
10933
10994
|
var LandingEditQuoteRequest = z28.object({
|
|
10934
|
-
message: z28.string().trim().min(3).max(
|
|
10995
|
+
message: z28.string().trim().min(3).max(LANDING_EDIT_MESSAGE_MAX_CHARS),
|
|
10935
10996
|
expectedRevision: z28.number().int().nonnegative(),
|
|
10936
10997
|
scope: LandingEditScopeSchema,
|
|
10937
10998
|
attachmentIds: z28.array(CodeLandingIdSchema).max(4).default([])
|
|
@@ -13036,6 +13097,11 @@ var ShopifyLandingPixelsResponse = z42.object({
|
|
|
13036
13097
|
* could not be read (password, timeout): the selection works the same.
|
|
13037
13098
|
*/
|
|
13038
13099
|
appPixels: z42.array(ShopifyAppPixel).default([]),
|
|
13100
|
+
/**
|
|
13101
|
+
* False when the storefront could not be read, so an empty `appPixels`
|
|
13102
|
+
* means "unknown", not "no app pixels". Absent (older API) means true.
|
|
13103
|
+
*/
|
|
13104
|
+
appPixelsChecked: z42.boolean().default(true),
|
|
13039
13105
|
/** The theme holds tracking code we do not recognize and never copy. */
|
|
13040
13106
|
unrecognizedCodeDetected: z42.boolean()
|
|
13041
13107
|
});
|
|
@@ -25318,6 +25384,14 @@ var PRODUCT_CONTROL_AD_REASONS = [
|
|
|
25318
25384
|
];
|
|
25319
25385
|
var ProductControlAdReasonSchema = z106.enum(PRODUCT_CONTROL_AD_REASONS);
|
|
25320
25386
|
var metric = z106.number().finite().nonnegative().nullable();
|
|
25387
|
+
var ProductControlAdCreativeSchema = z106.object({
|
|
25388
|
+
videoId: z106.string().nullable(),
|
|
25389
|
+
taskId: z106.string().nullable(),
|
|
25390
|
+
angle: z106.string().nullable(),
|
|
25391
|
+
format: z106.string().nullable(),
|
|
25392
|
+
videoFormat: z106.string().nullable(),
|
|
25393
|
+
tags: z106.array(z106.string())
|
|
25394
|
+
});
|
|
25321
25395
|
var ProductControlAdSchema = z106.object({
|
|
25322
25396
|
adId: z106.string(),
|
|
25323
25397
|
campaignId: z106.string(),
|
|
@@ -25357,7 +25431,12 @@ var ProductControlAdSchema = z106.object({
|
|
|
25357
25431
|
/** p100 / reproducciones; `null` si no es vídeo o no hubo reproducciones. */
|
|
25358
25432
|
completionRate: z106.number().finite().min(0).max(1).nullable(),
|
|
25359
25433
|
verdict: ProductControlAdVerdictSchema,
|
|
25360
|
-
reason: ProductControlAdReasonSchema
|
|
25434
|
+
reason: ProductControlAdReasonSchema,
|
|
25435
|
+
/**
|
|
25436
|
+
* `null` si el anuncio no está en el registro y no se pudo ligar por las 8
|
|
25437
|
+
* letras de su nombre. Una respuesta anterior sin el campo se lee `null`.
|
|
25438
|
+
*/
|
|
25439
|
+
creative: ProductControlAdCreativeSchema.nullable().default(null)
|
|
25361
25440
|
});
|
|
25362
25441
|
var ProductControlAdsStatusSchema = z106.enum([
|
|
25363
25442
|
"ok",
|
|
@@ -35088,7 +35167,7 @@ var ApiClient = class {
|
|
|
35088
35167
|
};
|
|
35089
35168
|
|
|
35090
35169
|
// src/index.ts
|
|
35091
|
-
var MCP_VERSION = "12.
|
|
35170
|
+
var MCP_VERSION = "12.33.0";
|
|
35092
35171
|
|
|
35093
35172
|
// src/meta-upload-app.ts
|
|
35094
35173
|
import { readFileSync } from "fs";
|
|
@@ -42846,7 +42925,7 @@ function registerConnectionTools(server, api) {
|
|
|
42846
42925
|
}
|
|
42847
42926
|
});
|
|
42848
42927
|
server.registerTool("list_shopify_landing_pixels", {
|
|
42849
|
-
description: listShopifyLandingPixelsGuidance.summary + ' Cada pixel trae `key`, `provider`, `pixelId`, `source` ("theme" = est\xE1 en el tema, "landing" = solo en la landing, "manual" = lo agreg\xF3 la persona) y `selected` (si quedar\xE1 en la landing). Mu\xE9straselos en lenguaje simple antes de `publish_to_shopify` y pregunta cu\xE1les quitar o si agrega uno nuevo; luego pasa la elecci\xF3n en `landingPixels`. `appPixels` son los p\xEDxeles que una app de Shopify carga en toda la tienda (`provider`, `pixelId`, `appName`): mu\xE9stralos como "viene de la app <appName>", sin ofrecer quitarlos (solo se quitan desde esa app) y nunca los pongas en `landingPixels`. Si `unrecognizedCodeDetected` es true, avisa que hay c\xF3digo de seguimiento que no se pudo leer y no se copia. No modifica Shopify.',
|
|
42928
|
+
description: listShopifyLandingPixelsGuidance.summary + ' Cada pixel trae `key`, `provider`, `pixelId`, `source` ("theme" = est\xE1 en el tema, "landing" = solo en la landing, "manual" = lo agreg\xF3 la persona) y `selected` (si quedar\xE1 en la landing). Mu\xE9straselos en lenguaje simple antes de `publish_to_shopify` y pregunta cu\xE1les quitar o si agrega uno nuevo; luego pasa la elecci\xF3n en `landingPixels`. `appPixels` son los p\xEDxeles que una app de Shopify carga en toda la tienda (`provider`, `pixelId`, `appName`): mu\xE9stralos como "viene de la app <appName>", sin ofrecer quitarlos (solo se quitan desde esa app) y nunca los pongas en `landingPixels`. Si `appPixelsChecked` es false, no se pudo leer la tienda: `appPixels` vac\xEDo NO significa que ninguna app cargue p\xEDxeles; di que no se pudo confirmar (una app como Facebook & Instagram puede cargar Meta) en vez de afirmar que no hay. Si `unrecognizedCodeDetected` es true, avisa que hay c\xF3digo de seguimiento que no se pudo leer y no se copia. No modifica Shopify.',
|
|
42850
42929
|
inputSchema: z162.object({
|
|
42851
42930
|
shopDomain: z162.string().min(3).max(120)
|
|
42852
42931
|
}).shape,
|
|
@@ -45949,7 +46028,7 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
45949
46028
|
}
|
|
45950
46029
|
});
|
|
45951
46030
|
server.registerTool("get_product_ads", {
|
|
45952
|
-
description: getProductAdsGuidance.summary + " Devuelve cada anuncio de las campa\xF1as de Meta enlazadas al producto, con sus cifras DE META ese d\xEDa: gasto, impresiones, clics, CTR, visitas a la landing, view content, inicios de pago, compras del p\xEDxel, costo por compra y retenci\xF3n del v\xEDdeo (reproducciones, 25/75/100 % y `completionRate`). `verdict` es lo que la pantalla le sugiere: `keep` (mantener), `turn_off` (apagar), `review` (revisar) y `no_data` (todav\xEDa no hay con qu\xE9 juzgarlo); `reason` dice por qu\xE9, y el umbral es `breakEvenCpa`, la publicidad m\xE1xima por compra para no perder. Las compras del p\xEDxel NO son los pedidos de la tienda: el producto se decide con get_product_control y los anuncios se comparan entre s\xED con esto, porque un pedido contraentrega no dice de qu\xE9 anuncio vino. `status` distinto de `ok` no trae anuncios: `meta_not_connected` (conectar Meta), `no_meta_campaign` (enlazar campa\xF1a) o `unavailable` (Meta no respondi\xF3). Si falta un dato o Meta no respondi\xF3 y el usuario tiene su propio MCP de Meta, complementa ah\xED y di de d\xF3nde sale cada cifra. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.",
|
|
46031
|
+
description: getProductAdsGuidance.summary + " Devuelve cada anuncio de las campa\xF1as de Meta enlazadas al producto, con sus cifras DE META ese d\xEDa: gasto, impresiones, clics, CTR, visitas a la landing, view content, inicios de pago, compras del p\xEDxel, costo por compra y retenci\xF3n del v\xEDdeo (reproducciones, 25/75/100 % y `completionRate`). `verdict` es lo que la pantalla le sugiere: `keep` (mantener), `turn_off` (apagar), `review` (revisar) y `no_data` (todav\xEDa no hay con qu\xE9 juzgarlo); `reason` dice por qu\xE9, y el umbral es `breakEvenCpa`, la publicidad m\xE1xima por compra para no perder. Las compras del p\xEDxel NO son los pedidos de la tienda: el producto se decide con get_product_control y los anuncios se comparan entre s\xED con esto, porque un pedido contraentrega no dice de qu\xE9 anuncio vino. `status` distinto de `ok` no trae anuncios: `meta_not_connected` (conectar Meta), `no_meta_campaign` (enlazar campa\xF1a) o `unavailable` (Meta no respondi\xF3). Si falta un dato o Meta no respondi\xF3 y el usuario tiene su propio MCP de Meta, complementa ah\xED y di de d\xF3nde sale cada cifra. Cada anuncio trae `creative` con el video (`videoId`), su tarea (`taskId`), el \xE1ngulo (`angle`), el formato creativo (`format`: `ugc`, `viral`, `pixar`, `demo-manos`\u2026) y la duraci\xF3n del video (`videoFormat`) con que se public\xF3 (formatos `null` en una imagen); `tags` viene vac\xEDo por ahora. `creative: null` significa que ProductMaker no sabe qu\xE9 video lleva ese anuncio (no lo public\xF3 ProductMaker o su nombre no lo dice): no lo adivines. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.",
|
|
45953
46032
|
inputSchema: ProductAdsInput.shape,
|
|
45954
46033
|
annotations: READS_EXTERNAL
|
|
45955
46034
|
}, async (input) => {
|
package/dist/stdio.js
CHANGED
|
@@ -5919,6 +5919,8 @@ var CreativeEngineRecipeSchema = z14.object({
|
|
|
5919
5919
|
repairPlanReviewPolicy: z14.literal("frozen_contract_v1").optional(),
|
|
5920
5920
|
/** Root-only visual patch wire contract; absent preserves historic full-plan recovery. */
|
|
5921
5921
|
repairAuthoring: z14.literal("scene_patch_v1").optional(),
|
|
5922
|
+
/** Scope physical-use repair instructions to freshly bound director requests. */
|
|
5923
|
+
groundedPhysicalRepair: z14.literal("scene_v1").optional(),
|
|
5922
5924
|
/** New requests maximize output inside model and measured input headroom. */
|
|
5923
5925
|
outputTokenPolicy: z14.literal("model_max_v1").optional(),
|
|
5924
5926
|
/**
|
|
@@ -6022,6 +6024,11 @@ var CreativeEngineRecipeSchema = z14.object({
|
|
|
6022
6024
|
* keeps the prepared wire byte-identical for operations in flight.
|
|
6023
6025
|
*/
|
|
6024
6026
|
promptCacheLayout: z14.literal("stable_prefix_v1").optional(),
|
|
6027
|
+
/** New Multiescena admissions may try on-camera speech without an isolated speaker. */
|
|
6028
|
+
unidentifiedSpeakerLipSync: z14.enum([
|
|
6029
|
+
"provisional_v1",
|
|
6030
|
+
"provisional_v2"
|
|
6031
|
+
]).optional(),
|
|
6025
6032
|
/** New final reviews explicitly account for selected critical technical findings. */
|
|
6026
6033
|
finalReviewContextPolicy: z14.literal("selected_candidate_findings_v1").optional(),
|
|
6027
6034
|
/** New voice requests after localized lengthening override stale timing only. */
|
|
@@ -6369,6 +6376,8 @@ var CreativeEngineReviewSchema = z14.object({
|
|
|
6369
6376
|
"base_routing",
|
|
6370
6377
|
"candidate_quality"
|
|
6371
6378
|
]).optional(),
|
|
6379
|
+
/** Runtime detector veto. The model response schema does not expose it. */
|
|
6380
|
+
provisionalSpeechIsolationVeto: z14.literal(true).optional(),
|
|
6372
6381
|
speechWindows: z14.array(CreativeEngineSpeechObservationSchema).max(3).optional(),
|
|
6373
6382
|
subjectHash: hash,
|
|
6374
6383
|
planRevision: z14.number().int().positive(),
|
|
@@ -6441,6 +6450,8 @@ var CreativeEngineSpeechRoutingSchema = z14.object({
|
|
|
6441
6450
|
"reviewed",
|
|
6442
6451
|
"plan_fallback"
|
|
6443
6452
|
]).optional(),
|
|
6453
|
+
/** Full-frame attempt whose speaker identity needs candidate QA. */
|
|
6454
|
+
unverifiedSpeaker: z14.literal(true).optional(),
|
|
6444
6455
|
/** Why a plan_fallback routing exists: the review's unavailability, or an
|
|
6445
6456
|
* explicit routing rejection accepted degraded with planned windows. */
|
|
6446
6457
|
unavailabilityReason: z14.enum([
|
|
@@ -6577,6 +6588,9 @@ var CreativeEngineCandidateSchema = z14.object({
|
|
|
6577
6588
|
]).optional(),
|
|
6578
6589
|
baseOutputHash: hash.optional(),
|
|
6579
6590
|
routingHash: hash.optional(),
|
|
6591
|
+
speechBaseFallback: z14.literal(true).optional(),
|
|
6592
|
+
/** Provisional windows actually composited into this candidate. */
|
|
6593
|
+
speechPatchedWindowIds: z14.array(id2).min(1).max(3).optional(),
|
|
6580
6594
|
inheritanceHash: hash.optional(),
|
|
6581
6595
|
id: id2,
|
|
6582
6596
|
sceneId: id2,
|
|
@@ -6674,6 +6688,12 @@ var CreativeEngineOperationSchema = z14.object({
|
|
|
6674
6688
|
]),
|
|
6675
6689
|
/** Exact unavailable QA review that abandons optional ASR evidence, never its liability. */
|
|
6676
6690
|
assessmentUnavailableReviewId: id2.optional(),
|
|
6691
|
+
/** Canonical closed ASR read confirmed no request or no owned provider outcome.
|
|
6692
|
+
* Historical evidence only; never zero spend or an assessment waiver. */
|
|
6693
|
+
asrOutcomeUnavailable: z14.enum([
|
|
6694
|
+
"request_absent_v1",
|
|
6695
|
+
"outcome_unknown_v1"
|
|
6696
|
+
]).optional(),
|
|
6677
6697
|
acceptedId: id2.optional(),
|
|
6678
6698
|
reservedUsdMicros: z14.number().int().positive(),
|
|
6679
6699
|
/** Frozen maximum number of physical provider posts covered by this operation. */
|
|
@@ -6757,7 +6777,18 @@ var CreativeEngineSpeechWindowRepairStateSchema = z14.object({
|
|
|
6757
6777
|
* the same index; historical receipts pin 2.
|
|
6758
6778
|
*/
|
|
6759
6779
|
attempt: z14.number().int().min(1).max(CREATIVE_ENGINE_MEDIA_RECOVERY_POLICY.paidRetakesMax + 1),
|
|
6760
|
-
supersededCandidateIds: z14.array(id2).max(128).optional()
|
|
6780
|
+
supersededCandidateIds: z14.array(id2).max(128).optional(),
|
|
6781
|
+
/** Exact rejected final that admitted the repair; absent for asset failures and older journals. */
|
|
6782
|
+
sourceFinal: z14.object({
|
|
6783
|
+
reviewId: id2,
|
|
6784
|
+
outputHash: hash,
|
|
6785
|
+
manifestHash: hash,
|
|
6786
|
+
planHash: hash,
|
|
6787
|
+
planRevision: z14.number().int().positive(),
|
|
6788
|
+
selectedCandidateId: id2,
|
|
6789
|
+
/** Same selected takes with confirmed issues outside the paid window. */
|
|
6790
|
+
retainedSelection: z14.record(z14.string(), id2).optional()
|
|
6791
|
+
}).strict().optional()
|
|
6761
6792
|
}).strict();
|
|
6762
6793
|
var CreativeEngineFinalRepairFallbackSchema = z14.object({
|
|
6763
6794
|
owner: CreativeEngineOwnerSchema,
|
|
@@ -6804,6 +6835,18 @@ var CreativeEngineStateSchema = z14.object({
|
|
|
6804
6835
|
retainedSceneCandidates: z14.array(CreativeEngineRetainedSceneCandidateBindingSchema).optional(),
|
|
6805
6836
|
inheritedSceneOutputs: z14.array(CreativeEngineInheritedSceneOutputSchema).optional(),
|
|
6806
6837
|
speechRoutings: z14.array(CreativeEngineSpeechRoutingSchema).optional(),
|
|
6838
|
+
provisionalFinalSpeech: z14.object({
|
|
6839
|
+
reviewId: id2,
|
|
6840
|
+
candidateIds: z14.array(id2).min(1),
|
|
6841
|
+
planHash: hash,
|
|
6842
|
+
final: CreativeEngineFinalSchema,
|
|
6843
|
+
selection: z14.record(z14.string(), id2),
|
|
6844
|
+
active: z14.boolean()
|
|
6845
|
+
}).strict().optional(),
|
|
6846
|
+
speechFallbackAdmissionRefusals: z14.record(hash, z14.enum([
|
|
6847
|
+
"cost_budget_exhausted",
|
|
6848
|
+
"post_budget_exhausted"
|
|
6849
|
+
])).optional(),
|
|
6807
6850
|
speechWindowRepair: CreativeEngineSpeechWindowRepairStateSchema.optional(),
|
|
6808
6851
|
selection: z14.record(z14.string(), id2),
|
|
6809
6852
|
selectionManifestHash: hash.optional(),
|
|
@@ -6977,6 +7020,23 @@ var CreativeEngineEventSchema = z14.discriminatedUnion("type", [
|
|
|
6977
7020
|
type: z14.literal("repair_requested"),
|
|
6978
7021
|
sceneId: id2
|
|
6979
7022
|
}).strict(),
|
|
7023
|
+
z14.object({
|
|
7024
|
+
type: z14.literal("provisional_final_speech_decided"),
|
|
7025
|
+
reviewId: id2,
|
|
7026
|
+
candidateIds: z14.array(id2).min(1),
|
|
7027
|
+
admitted: z14.boolean()
|
|
7028
|
+
}).strict(),
|
|
7029
|
+
z14.object({
|
|
7030
|
+
type: z14.literal("provisional_final_speech_restored")
|
|
7031
|
+
}).strict(),
|
|
7032
|
+
z14.object({
|
|
7033
|
+
type: z14.literal("speech_fallback_admission_refused"),
|
|
7034
|
+
operation: CreativeEngineOperationSchema,
|
|
7035
|
+
reason: z14.enum([
|
|
7036
|
+
"cost_budget_exhausted",
|
|
7037
|
+
"post_budget_exhausted"
|
|
7038
|
+
])
|
|
7039
|
+
}).strict(),
|
|
6980
7040
|
z14.object({
|
|
6981
7041
|
type: z14.literal("plan_repair_admission_denied"),
|
|
6982
7042
|
planHash: hash,
|
|
@@ -10556,12 +10616,13 @@ var GetLandingConfigResponse = z28.union([
|
|
|
10556
10616
|
var UpdateLandingConfigResponse = z28.object({
|
|
10557
10617
|
ok: z28.boolean()
|
|
10558
10618
|
});
|
|
10619
|
+
var LANDING_EDIT_MESSAGE_MAX_CHARS = 2e3;
|
|
10559
10620
|
var LegacyLandingEditRequest = z28.object({
|
|
10560
10621
|
message: z28.string().min(3).max(1e3),
|
|
10561
10622
|
sectionId: z28.string().optional()
|
|
10562
10623
|
});
|
|
10563
10624
|
var QuotedLandingEditRequest = z28.object({
|
|
10564
|
-
message: z28.string().trim().min(3).max(
|
|
10625
|
+
message: z28.string().trim().min(3).max(LANDING_EDIT_MESSAGE_MAX_CHARS),
|
|
10565
10626
|
expectedRevision: z28.number().int().nonnegative(),
|
|
10566
10627
|
scope: z28.enum([
|
|
10567
10628
|
"patch",
|
|
@@ -10706,7 +10767,7 @@ var LandingEditScopeSchema = z28.enum([
|
|
|
10706
10767
|
"full"
|
|
10707
10768
|
]);
|
|
10708
10769
|
var LandingEditQuoteRequest = z28.object({
|
|
10709
|
-
message: z28.string().trim().min(3).max(
|
|
10770
|
+
message: z28.string().trim().min(3).max(LANDING_EDIT_MESSAGE_MAX_CHARS),
|
|
10710
10771
|
expectedRevision: z28.number().int().nonnegative(),
|
|
10711
10772
|
scope: LandingEditScopeSchema,
|
|
10712
10773
|
attachmentIds: z28.array(CodeLandingIdSchema).max(4).default([])
|
|
@@ -12811,6 +12872,11 @@ var ShopifyLandingPixelsResponse = z42.object({
|
|
|
12811
12872
|
* could not be read (password, timeout): the selection works the same.
|
|
12812
12873
|
*/
|
|
12813
12874
|
appPixels: z42.array(ShopifyAppPixel).default([]),
|
|
12875
|
+
/**
|
|
12876
|
+
* False when the storefront could not be read, so an empty `appPixels`
|
|
12877
|
+
* means "unknown", not "no app pixels". Absent (older API) means true.
|
|
12878
|
+
*/
|
|
12879
|
+
appPixelsChecked: z42.boolean().default(true),
|
|
12814
12880
|
/** The theme holds tracking code we do not recognize and never copy. */
|
|
12815
12881
|
unrecognizedCodeDetected: z42.boolean()
|
|
12816
12882
|
});
|
|
@@ -25093,6 +25159,14 @@ var PRODUCT_CONTROL_AD_REASONS = [
|
|
|
25093
25159
|
];
|
|
25094
25160
|
var ProductControlAdReasonSchema = z106.enum(PRODUCT_CONTROL_AD_REASONS);
|
|
25095
25161
|
var metric = z106.number().finite().nonnegative().nullable();
|
|
25162
|
+
var ProductControlAdCreativeSchema = z106.object({
|
|
25163
|
+
videoId: z106.string().nullable(),
|
|
25164
|
+
taskId: z106.string().nullable(),
|
|
25165
|
+
angle: z106.string().nullable(),
|
|
25166
|
+
format: z106.string().nullable(),
|
|
25167
|
+
videoFormat: z106.string().nullable(),
|
|
25168
|
+
tags: z106.array(z106.string())
|
|
25169
|
+
});
|
|
25096
25170
|
var ProductControlAdSchema = z106.object({
|
|
25097
25171
|
adId: z106.string(),
|
|
25098
25172
|
campaignId: z106.string(),
|
|
@@ -25132,7 +25206,12 @@ var ProductControlAdSchema = z106.object({
|
|
|
25132
25206
|
/** p100 / reproducciones; `null` si no es vídeo o no hubo reproducciones. */
|
|
25133
25207
|
completionRate: z106.number().finite().min(0).max(1).nullable(),
|
|
25134
25208
|
verdict: ProductControlAdVerdictSchema,
|
|
25135
|
-
reason: ProductControlAdReasonSchema
|
|
25209
|
+
reason: ProductControlAdReasonSchema,
|
|
25210
|
+
/**
|
|
25211
|
+
* `null` si el anuncio no está en el registro y no se pudo ligar por las 8
|
|
25212
|
+
* letras de su nombre. Una respuesta anterior sin el campo se lee `null`.
|
|
25213
|
+
*/
|
|
25214
|
+
creative: ProductControlAdCreativeSchema.nullable().default(null)
|
|
25136
25215
|
});
|
|
25137
25216
|
var ProductControlAdsStatusSchema = z106.enum([
|
|
25138
25217
|
"ok",
|
|
@@ -33415,7 +33494,7 @@ var ApiClient = class {
|
|
|
33415
33494
|
};
|
|
33416
33495
|
|
|
33417
33496
|
// src/index.ts
|
|
33418
|
-
var MCP_VERSION = "12.
|
|
33497
|
+
var MCP_VERSION = "12.33.0";
|
|
33419
33498
|
|
|
33420
33499
|
// src/meta-upload-app.ts
|
|
33421
33500
|
import { readFileSync } from "fs";
|
|
@@ -41331,7 +41410,7 @@ function registerConnectionTools(server, api) {
|
|
|
41331
41410
|
}
|
|
41332
41411
|
});
|
|
41333
41412
|
server.registerTool("list_shopify_landing_pixels", {
|
|
41334
|
-
description: listShopifyLandingPixelsGuidance.summary + ' Cada pixel trae `key`, `provider`, `pixelId`, `source` ("theme" = est\xE1 en el tema, "landing" = solo en la landing, "manual" = lo agreg\xF3 la persona) y `selected` (si quedar\xE1 en la landing). Mu\xE9straselos en lenguaje simple antes de `publish_to_shopify` y pregunta cu\xE1les quitar o si agrega uno nuevo; luego pasa la elecci\xF3n en `landingPixels`. `appPixels` son los p\xEDxeles que una app de Shopify carga en toda la tienda (`provider`, `pixelId`, `appName`): mu\xE9stralos como "viene de la app <appName>", sin ofrecer quitarlos (solo se quitan desde esa app) y nunca los pongas en `landingPixels`. Si `unrecognizedCodeDetected` es true, avisa que hay c\xF3digo de seguimiento que no se pudo leer y no se copia. No modifica Shopify.',
|
|
41413
|
+
description: listShopifyLandingPixelsGuidance.summary + ' Cada pixel trae `key`, `provider`, `pixelId`, `source` ("theme" = est\xE1 en el tema, "landing" = solo en la landing, "manual" = lo agreg\xF3 la persona) y `selected` (si quedar\xE1 en la landing). Mu\xE9straselos en lenguaje simple antes de `publish_to_shopify` y pregunta cu\xE1les quitar o si agrega uno nuevo; luego pasa la elecci\xF3n en `landingPixels`. `appPixels` son los p\xEDxeles que una app de Shopify carga en toda la tienda (`provider`, `pixelId`, `appName`): mu\xE9stralos como "viene de la app <appName>", sin ofrecer quitarlos (solo se quitan desde esa app) y nunca los pongas en `landingPixels`. Si `appPixelsChecked` es false, no se pudo leer la tienda: `appPixels` vac\xEDo NO significa que ninguna app cargue p\xEDxeles; di que no se pudo confirmar (una app como Facebook & Instagram puede cargar Meta) en vez de afirmar que no hay. Si `unrecognizedCodeDetected` es true, avisa que hay c\xF3digo de seguimiento que no se pudo leer y no se copia. No modifica Shopify.',
|
|
41335
41414
|
inputSchema: z161.object({
|
|
41336
41415
|
shopDomain: z161.string().min(3).max(120)
|
|
41337
41416
|
}).shape,
|
|
@@ -44434,7 +44513,7 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44434
44513
|
}
|
|
44435
44514
|
});
|
|
44436
44515
|
server.registerTool("get_product_ads", {
|
|
44437
|
-
description: getProductAdsGuidance.summary + " Devuelve cada anuncio de las campa\xF1as de Meta enlazadas al producto, con sus cifras DE META ese d\xEDa: gasto, impresiones, clics, CTR, visitas a la landing, view content, inicios de pago, compras del p\xEDxel, costo por compra y retenci\xF3n del v\xEDdeo (reproducciones, 25/75/100 % y `completionRate`). `verdict` es lo que la pantalla le sugiere: `keep` (mantener), `turn_off` (apagar), `review` (revisar) y `no_data` (todav\xEDa no hay con qu\xE9 juzgarlo); `reason` dice por qu\xE9, y el umbral es `breakEvenCpa`, la publicidad m\xE1xima por compra para no perder. Las compras del p\xEDxel NO son los pedidos de la tienda: el producto se decide con get_product_control y los anuncios se comparan entre s\xED con esto, porque un pedido contraentrega no dice de qu\xE9 anuncio vino. `status` distinto de `ok` no trae anuncios: `meta_not_connected` (conectar Meta), `no_meta_campaign` (enlazar campa\xF1a) o `unavailable` (Meta no respondi\xF3). Si falta un dato o Meta no respondi\xF3 y el usuario tiene su propio MCP de Meta, complementa ah\xED y di de d\xF3nde sale cada cifra. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.",
|
|
44516
|
+
description: getProductAdsGuidance.summary + " Devuelve cada anuncio de las campa\xF1as de Meta enlazadas al producto, con sus cifras DE META ese d\xEDa: gasto, impresiones, clics, CTR, visitas a la landing, view content, inicios de pago, compras del p\xEDxel, costo por compra y retenci\xF3n del v\xEDdeo (reproducciones, 25/75/100 % y `completionRate`). `verdict` es lo que la pantalla le sugiere: `keep` (mantener), `turn_off` (apagar), `review` (revisar) y `no_data` (todav\xEDa no hay con qu\xE9 juzgarlo); `reason` dice por qu\xE9, y el umbral es `breakEvenCpa`, la publicidad m\xE1xima por compra para no perder. Las compras del p\xEDxel NO son los pedidos de la tienda: el producto se decide con get_product_control y los anuncios se comparan entre s\xED con esto, porque un pedido contraentrega no dice de qu\xE9 anuncio vino. `status` distinto de `ok` no trae anuncios: `meta_not_connected` (conectar Meta), `no_meta_campaign` (enlazar campa\xF1a) o `unavailable` (Meta no respondi\xF3). Si falta un dato o Meta no respondi\xF3 y el usuario tiene su propio MCP de Meta, complementa ah\xED y di de d\xF3nde sale cada cifra. Cada anuncio trae `creative` con el video (`videoId`), su tarea (`taskId`), el \xE1ngulo (`angle`), el formato creativo (`format`: `ugc`, `viral`, `pixar`, `demo-manos`\u2026) y la duraci\xF3n del video (`videoFormat`) con que se public\xF3 (formatos `null` en una imagen); `tags` viene vac\xEDo por ahora. `creative: null` significa que ProductMaker no sabe qu\xE9 video lleva ese anuncio (no lo public\xF3 ProductMaker o su nombre no lo dice): no lo adivines. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.",
|
|
44438
44517
|
inputSchema: ProductAdsInput.shape,
|
|
44439
44518
|
annotations: READS_EXTERNAL
|
|
44440
44519
|
}, async (input) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.33.0",
|
|
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.",
|