@productmaker/mcp 12.33.0 → 12.35.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/README.md +3 -2
- package/dist/http.js +161 -6
- package/dist/stdio.js +161 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -233,8 +233,8 @@ its service-page editor, including its generation progress.
|
|
|
233
233
|
| `set_monthly_expense` | Save one FIXED cost of the month (rent, salaries, accountant). Writing the same label again REPLACES the amount — it does not add a second expense. Without fixed costs written, the month's profit always reads HIGHER than it is. Not for ad spend: that is `set_ad_spend` |
|
|
234
234
|
| `set_ad_spend` | Correct by hand what was spent on ads that month. `amount: 0` ASSERTS "I did not advertise"; `null` WITHDRAWS the correction and gives the campaigns back the say. They are not the same |
|
|
235
235
|
| `prepare_winning_product_image` | Prepare and show the exact photo of a user-selected winning-product candidate for free; securely stages it before the next photo choice. |
|
|
236
|
-
| `get_product_control` | Read-only daily profitability verdicts and measurement status per store product. Incomplete samples or unmeasured delivered sales must remain explicit; never changes campaigns.
|
|
237
|
-
| `get_product_ads` | Read-only Meta figures for each ad (sales angle) of one product on one day: spend, pixel purchases, cost per purchase, video retention and a keep/turn off/review suggestion against the break-even. Pixel purchases are not store orders; never changes ads.
|
|
236
|
+
| `get_product_control` | Read-only daily profitability verdicts and measurement status per store product. Incomplete samples or unmeasured delivered sales must remain explicit; never changes campaigns. Each row carries `creativeMemory`: angles/formats that won or lost and the ordered next-creative suggestions. |
|
|
237
|
+
| `get_product_ads` | Read-only Meta figures for each ad (sales angle) of one product on one day: spend, pixel purchases, cost per purchase, video retention and a keep/turn off/review suggestion against the break-even. Each ad's `creative.tags` says «Ganador» when its angle or format won, and «Etiquetado por IA» on an ad made outside ProductMaker whose angle and format the AI set (fix it with `correct_product_ad_creative`). Pixel purchases are not store orders; never changes ads. |
|
|
238
238
|
| `get_product_scoreboard` | Read-only scoreboard of one product test (from the first day its campaigns spent): ad spend and funnel, unique orders, store orders missing from Dropi, duplicates, confirmation/delivery/return rates, measured or estimated money, open-order range and maturity. Missing sources are reported, never zero. |
|
|
239
239
|
| `list_importable_products` | Read one page of store products eligible for financial control; preserve `hasNextPage` and already-imported markers. |
|
|
240
240
|
| `import_product_controls` | Add selected store products to financial control. They remain `no_costing` until their real costs are saved. |
|
|
@@ -250,6 +250,7 @@ its service-page editor, including its generation progress.
|
|
|
250
250
|
| `list_linkable_campaigns` | Read the Meta/TikTok campaigns available to tie to a product, so identifiers never have to be typed. Empty means the ad account is not connected or has no campaigns — connecting happens in Integrations, not here |
|
|
251
251
|
| `link_product_campaign` | Tie an ad campaign to a product in financial control; its spend then feeds the product's cost-per-sale. The identifiers come from `list_linkable_campaigns` — never invent them. The product is said ONE way: `productControlId`, or `shopDomain` + `shopifyProductId` |
|
|
252
252
|
| `unlink_product_campaign` | Untie a campaign from a product in financial control; its spend stops counting for that product. The campaign itself stays as it is in Meta or TikTok and can be linked again. Ids come from `get_product_control` — confirm with the person first |
|
|
253
|
+
| `correct_product_ad_creative` | Correct the sales angle and creative format (always sent together) ProductMaker counts for one ad in the product memory (for example one tagged «Etiquetado por IA»). The correction belongs to the seller and the AI never overwrites it; only the ProductMaker registry changes, never the ad in Meta. The `adId` comes from `get_product_ads` — confirm with the person first |
|
|
253
254
|
| `delete_monthly_expense` | Delete one fixed expense of the month by month + label. To change the amount do NOT delete — `set_monthly_expense` with the new value is the correction |
|
|
254
255
|
| `remove_product_control` | Remove a product from financial control together with its costs and its linked campaign. The id comes from `get_product_control` — confirm by NAME which product leaves |
|
|
255
256
|
| `get_agent_memory_brief` | Read the Drop Maker agent's memory at the start of a run: latest playbook, product sheets (stage, target CPA, verdict, links), open experiments, open pending items and recent notes. Business numbers are NOT here — read them from financial control |
|
package/dist/http.js
CHANGED
|
@@ -11632,8 +11632,9 @@ var AnchoredIntel = z30.object({
|
|
|
11632
11632
|
marketProvenanceIds: z30.array(z30.string().min(1)).max(30).optional(),
|
|
11633
11633
|
marketSnapshotHash: z30.string().min(1).optional()
|
|
11634
11634
|
});
|
|
11635
|
+
var ANGLE_TEXT_MAX_CHARS = 480;
|
|
11635
11636
|
var Angle = z30.object({
|
|
11636
|
-
angle: z30.string().min(1).max(
|
|
11637
|
+
angle: z30.string().min(1).max(ANGLE_TEXT_MAX_CHARS),
|
|
11637
11638
|
buyerPersona: z30.string().min(1).max(360),
|
|
11638
11639
|
/** Character description for video (role + appearance + attitude). Drives voice selection and Frame0Spec. */
|
|
11639
11640
|
actor: z30.string().min(1).max(360).optional(),
|
|
@@ -13634,6 +13635,10 @@ var ShopifyBillingCallbackQuery = z43.object({
|
|
|
13634
13635
|
charge_id: z43.string().regex(/^\d+$/),
|
|
13635
13636
|
transactionId: z43.string().guid()
|
|
13636
13637
|
});
|
|
13638
|
+
var ShopifySubscriptionCallbackQuery = z43.object({
|
|
13639
|
+
charge_id: z43.string().regex(/^\d+$/).optional(),
|
|
13640
|
+
subscriptionId: z43.string().guid()
|
|
13641
|
+
});
|
|
13637
13642
|
var CancelShopifySubscriptionRequest = z43.object({
|
|
13638
13643
|
subscriptionId: z43.string().min(1)
|
|
13639
13644
|
});
|
|
@@ -20480,6 +20485,7 @@ var RegenerateEditRequestSchema = z83.object({
|
|
|
20480
20485
|
comment: z83.string().min(1).max(2e3)
|
|
20481
20486
|
});
|
|
20482
20487
|
var SECTION_PROMPT_MAX_CHARS = 4e3;
|
|
20488
|
+
var FRAME_REGEN_PROMPT_MAX_CHARS = 1500;
|
|
20483
20489
|
var RegenerateResolvedSectionSchema = z83.object({
|
|
20484
20490
|
surfaceDarkening: SurfaceDarkeningSchema.optional(),
|
|
20485
20491
|
surfaceLightening: VideoEditSurfaceSchema.optional(),
|
|
@@ -20493,7 +20499,7 @@ var RegenerateResolvedSectionSchema = z83.object({
|
|
|
20493
20499
|
// in Fase 1. `frameRegen` mirrors the router's Zod limit; `scriptEdit` uses
|
|
20494
20500
|
// SCRIPT_EDIT_MAX_CHARS, the same ceiling the router clarifies on.
|
|
20495
20501
|
frameRegen: z83.object({
|
|
20496
|
-
framePrompt: z83.string().trim().min(1).max(
|
|
20502
|
+
framePrompt: z83.string().trim().min(1).max(FRAME_REGEN_PROMPT_MAX_CHARS),
|
|
20497
20503
|
reason: z83.enum([
|
|
20498
20504
|
"scenario",
|
|
20499
20505
|
"appearance",
|
|
@@ -24134,6 +24140,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
24134
24140
|
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
24135
24141
|
]
|
|
24136
24142
|
},
|
|
24143
|
+
correct_product_ad_creative: {
|
|
24144
|
+
summary: "Corrige el \xE1ngulo y el formato con que ProductMaker cuenta un anuncio del producto.",
|
|
24145
|
+
useWhen: [
|
|
24146
|
+
"ese anuncio no es de ese \xE1ngulo",
|
|
24147
|
+
"la IA le puso mal el formato a mi video"
|
|
24148
|
+
],
|
|
24149
|
+
avoidWhen: [
|
|
24150
|
+
"quiere apagar o editar el anuncio en Meta: lo hace ella"
|
|
24151
|
+
],
|
|
24152
|
+
defaults: [
|
|
24153
|
+
"el adId sale de get_product_ads, nunca se inventa; manda siempre \xE1ngulo y formato, el que no cambia con su valor actual"
|
|
24154
|
+
],
|
|
24155
|
+
disclosures: [
|
|
24156
|
+
"requiere confirmaci\xF3n; queda como correcci\xF3n suya y la IA no la pisa; no toca Meta"
|
|
24157
|
+
]
|
|
24158
|
+
},
|
|
24137
24159
|
delete_monthly_expense: {
|
|
24138
24160
|
summary: "Borra un gasto fijo del mes.",
|
|
24139
24161
|
useWhen: [
|
|
@@ -24927,7 +24949,59 @@ var ProductControlCampaignEvidenceSchema = z106.object({
|
|
|
24927
24949
|
"adsets"
|
|
24928
24950
|
]).nullable(),
|
|
24929
24951
|
/** Exact current provider day, compatible currency and operation timezone. */
|
|
24930
|
-
budgetVerified: z106.boolean()
|
|
24952
|
+
budgetVerified: z106.boolean(),
|
|
24953
|
+
/**
|
|
24954
|
+
* La atención del día (regla del día 1): impresiones, clics y
|
|
24955
|
+
* reproducciones de 3 s (`actions` de tipo `video_view`). Opcionales para
|
|
24956
|
+
* respuestas anteriores; `null` si Meta no los mandó, nunca cero.
|
|
24957
|
+
*/
|
|
24958
|
+
impressions: z106.number().finite().nonnegative().nullable().optional(),
|
|
24959
|
+
clicks: z106.number().finite().nonnegative().nullable().optional(),
|
|
24960
|
+
video3sViews: z106.number().finite().nonnegative().nullable().optional(),
|
|
24961
|
+
/** Cuándo empezó la campaña (`start_time`, o `created_time`), ISO. */
|
|
24962
|
+
startedAt: z106.string().nullable().optional()
|
|
24963
|
+
});
|
|
24964
|
+
var PRODUCT_ANGLE_STATUSES = [
|
|
24965
|
+
"testing",
|
|
24966
|
+
"winner",
|
|
24967
|
+
"loser",
|
|
24968
|
+
"no_data"
|
|
24969
|
+
];
|
|
24970
|
+
var ProductAngleStatusSchema = z106.enum(PRODUCT_ANGLE_STATUSES);
|
|
24971
|
+
var ProductCreativeMemoryFormatSchema = z106.object({
|
|
24972
|
+
format: z106.string(),
|
|
24973
|
+
status: ProductAngleStatusSchema,
|
|
24974
|
+
/** Un perdedor no se sugiere hasta este instante (ISO). */
|
|
24975
|
+
restUntil: z106.string().nullable(),
|
|
24976
|
+
/** true hasta que las entregas reales lo confirman o lo corrigen. */
|
|
24977
|
+
provisional: z106.boolean(),
|
|
24978
|
+
tags: z106.array(z106.string())
|
|
24979
|
+
});
|
|
24980
|
+
var ProductCreativeMemoryAngleSchema = z106.object({
|
|
24981
|
+
/** A1, A2… en orden de aparición; estable. */
|
|
24982
|
+
code: z106.string(),
|
|
24983
|
+
label: z106.string(),
|
|
24984
|
+
status: ProductAngleStatusSchema,
|
|
24985
|
+
restUntil: z106.string().nullable(),
|
|
24986
|
+
provisional: z106.boolean(),
|
|
24987
|
+
tags: z106.array(z106.string()),
|
|
24988
|
+
formats: z106.array(ProductCreativeMemoryFormatSchema)
|
|
24989
|
+
});
|
|
24990
|
+
var ProductCreativeSuggestionSchema = z106.object({
|
|
24991
|
+
kind: z106.enum([
|
|
24992
|
+
"angle",
|
|
24993
|
+
"new_format",
|
|
24994
|
+
"new_angle"
|
|
24995
|
+
]),
|
|
24996
|
+
angleCode: z106.string().nullable(),
|
|
24997
|
+
angleLabel: z106.string().nullable(),
|
|
24998
|
+
format: z106.string().nullable(),
|
|
24999
|
+
excludeFormats: z106.array(z106.string()),
|
|
25000
|
+
exploration: z106.boolean()
|
|
25001
|
+
});
|
|
25002
|
+
var ProductCreativeMemorySchema = z106.object({
|
|
25003
|
+
angles: z106.array(ProductCreativeMemoryAngleSchema),
|
|
25004
|
+
suggestions: z106.array(ProductCreativeSuggestionSchema)
|
|
24931
25005
|
});
|
|
24932
25006
|
var ProductControlRowSchema = z106.object({
|
|
24933
25007
|
/** `null` hasta que la vendedora toca el producto por primera vez. */
|
|
@@ -24980,6 +25054,12 @@ var ProductControlRowSchema = z106.object({
|
|
|
24980
25054
|
campaignId: z106.string()
|
|
24981
25055
|
})),
|
|
24982
25056
|
campaignEvidence: z106.array(ProductControlCampaignEvidenceSchema).optional(),
|
|
25057
|
+
/**
|
|
25058
|
+
* Qué ángulos y formatos ganaron o perdieron, y en qué orden sugerir el
|
|
25059
|
+
* próximo creativo. `null` (o ausente en una respuesta anterior) mientras
|
|
25060
|
+
* la memoria no tenga ángulos.
|
|
25061
|
+
*/
|
|
25062
|
+
creativeMemory: ProductCreativeMemorySchema.nullable().optional(),
|
|
24983
25063
|
status: DailyControlStatusSchema,
|
|
24984
25064
|
statusMessage: z106.string().nullable(),
|
|
24985
25065
|
light: DailyControlLightSchema,
|
|
@@ -25353,6 +25433,19 @@ var CreateManualProductControlResponseSchema = z106.object({
|
|
|
25353
25433
|
var ProductControlAdsQuerySchema = z106.object({
|
|
25354
25434
|
date: z106.string().regex(/^\d{4}-\d{2}-\d{2}$/)
|
|
25355
25435
|
});
|
|
25436
|
+
var CorrectProductAdCreativeSchema = z106.object({
|
|
25437
|
+
angle: z106.string().trim().min(1).max(ANGLE_TEXT_MAX_CHARS),
|
|
25438
|
+
format: z106.string().trim().toLowerCase().regex(/^[a-z0-9-]{1,24}$/).nullable()
|
|
25439
|
+
}).strict();
|
|
25440
|
+
var CorrectProductAdCreativeResultSchema = z106.object({
|
|
25441
|
+
adId: z106.string(),
|
|
25442
|
+
angle: z106.string().nullable(),
|
|
25443
|
+
format: z106.string().nullable(),
|
|
25444
|
+
tagSource: z106.enum([
|
|
25445
|
+
"ai",
|
|
25446
|
+
"seller"
|
|
25447
|
+
]).nullable()
|
|
25448
|
+
});
|
|
25356
25449
|
var ScoreboardDay = z106.string().regex(/^\d{4}-\d{2}-\d{2}$/).refine((day) => {
|
|
25357
25450
|
const date2 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
25358
25451
|
return !Number.isNaN(date2.getTime()) && date2.toISOString().slice(0, 10) === day;
|
|
@@ -25424,7 +25517,13 @@ var ProductControlAdSchema = z106.object({
|
|
|
25424
25517
|
/** Compras del píxel (`offsite_conversion.fb_pixel_purchase`). */
|
|
25425
25518
|
purchases: metric,
|
|
25426
25519
|
costPerPurchase: metric,
|
|
25520
|
+
/** Arranques del video (`video_play_actions`). */
|
|
25427
25521
|
videoPlays: metric,
|
|
25522
|
+
/**
|
|
25523
|
+
* Reproducciones de 3 s (`actions` de tipo `video_view`): el gancho. `null`
|
|
25524
|
+
* en una imagen o si Meta no lo mandó. Ausente en respuestas anteriores.
|
|
25525
|
+
*/
|
|
25526
|
+
video3sViews: metric.default(null),
|
|
25428
25527
|
videoP25: metric,
|
|
25429
25528
|
videoP75: metric,
|
|
25430
25529
|
videoP100: metric,
|
|
@@ -27811,6 +27910,38 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27811
27910
|
],
|
|
27812
27911
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27813
27912
|
),
|
|
27913
|
+
defineCapability(
|
|
27914
|
+
"correct_product_ad_creative",
|
|
27915
|
+
// Filled by the MCP schema fingerprint test.
|
|
27916
|
+
"7a83571a5444efd3a21012ad18260d25750172d09a6537055b4f0751ab4bf362",
|
|
27917
|
+
"state_change",
|
|
27918
|
+
"business",
|
|
27919
|
+
[
|
|
27920
|
+
"state_change"
|
|
27921
|
+
],
|
|
27922
|
+
[
|
|
27923
|
+
slot("product_control", true, [
|
|
27924
|
+
"productControlId"
|
|
27925
|
+
]),
|
|
27926
|
+
slot("ad", true, [
|
|
27927
|
+
"adId"
|
|
27928
|
+
]),
|
|
27929
|
+
slot("sales_angle", true, [
|
|
27930
|
+
"angle"
|
|
27931
|
+
]),
|
|
27932
|
+
slot("creative_format", true, [
|
|
27933
|
+
"format"
|
|
27934
|
+
])
|
|
27935
|
+
],
|
|
27936
|
+
[
|
|
27937
|
+
"product_control",
|
|
27938
|
+
"product_control_ads"
|
|
27939
|
+
],
|
|
27940
|
+
[
|
|
27941
|
+
"product_control_ads"
|
|
27942
|
+
],
|
|
27943
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27944
|
+
),
|
|
27814
27945
|
defineCapability(
|
|
27815
27946
|
"delete_monthly_expense",
|
|
27816
27947
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -35167,7 +35298,7 @@ var ApiClient = class {
|
|
|
35167
35298
|
};
|
|
35168
35299
|
|
|
35169
35300
|
// src/index.ts
|
|
35170
|
-
var MCP_VERSION = "12.
|
|
35301
|
+
var MCP_VERSION = "12.35.0";
|
|
35171
35302
|
|
|
35172
35303
|
// src/meta-upload-app.ts
|
|
35173
35304
|
import { readFileSync } from "fs";
|
|
@@ -36581,6 +36712,7 @@ var McpErrorCode = {
|
|
|
36581
36712
|
// Drop Maker agent memory
|
|
36582
36713
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
36583
36714
|
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
36715
|
+
PRODUCT_AD_NOT_FOUND: "PRODUCT_AD_NOT_FOUND",
|
|
36584
36716
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
36585
36717
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
36586
36718
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -36849,6 +36981,7 @@ var CODE_MESSAGES = {
|
|
|
36849
36981
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "That campaign was not found in any of this user's connected ad accounts. Verify the `campaignId` (and `accountId` for TikTok).",
|
|
36850
36982
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
36851
36983
|
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
36984
|
+
PRODUCT_AD_NOT_FOUND: "That ad is not in this product's ad registry yet. Read get_product_ads for this product and use an `adId` from it.",
|
|
36852
36985
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
36853
36986
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
36854
36987
|
AGENT_EXPERIMENT_NOT_FOUND: "No experiment with that id in this account's agent memory. Read the brief or search experiments for the right id.",
|
|
@@ -36909,6 +37042,7 @@ var CODE_MESSAGES = {
|
|
|
36909
37042
|
var AGENT_MEMORY_CODES = [
|
|
36910
37043
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
36911
37044
|
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
37045
|
+
McpErrorCode.PRODUCT_AD_NOT_FOUND,
|
|
36912
37046
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
36913
37047
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
36914
37048
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -45863,6 +45997,7 @@ var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_p
|
|
|
45863
45997
|
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
45864
45998
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
45865
45999
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
46000
|
+
var correctProductAdCreativeGuidance = getProductMakerCapabilityModelGuidance("correct_product_ad_creative");
|
|
45866
46001
|
var DateOnly2 = z173.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
45867
46002
|
var IMPORT_BATCH_MAX2 = 50;
|
|
45868
46003
|
var ProductControlListInput = z173.object({
|
|
@@ -45990,6 +46125,12 @@ var LinkProductCampaignInput = z173.object({
|
|
|
45990
46125
|
shopifyProductId: z173.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
45991
46126
|
}).strict();
|
|
45992
46127
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
46128
|
+
var CorrectProductAdCreativeInput = z173.object({
|
|
46129
|
+
productControlId: z173.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
46130
|
+
adId: z173.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("El `adId` del anuncio, tal como sale de get_product_ads; nunca se inventa."),
|
|
46131
|
+
angle: z173.string().trim().min(1).max(ANGLE_TEXT_MAX_CHARS).describe("El \xE1ngulo de venta correcto, con las palabras de la persona (p. ej. \xABSin taladro\xBB). Siempre va, aunque solo cambie el formato: manda el que ya tiene si est\xE1 bien."),
|
|
46132
|
+
format: z173.string().trim().toLowerCase().regex(/^[a-z0-9-]{1,24}$/).nullable().describe("El formato creativo correcto (`ugc`, `viral`, `pixar`, `demo-manos`\u2026); `null` lo deja sin formato (una imagen). Siempre va, aunque solo cambie el \xE1ngulo: manda el que ya tiene si est\xE1 bien.")
|
|
46133
|
+
}).strict();
|
|
45993
46134
|
var UnlinkProductCampaignInput = z173.object({
|
|
45994
46135
|
productControlId: z173.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
45995
46136
|
campaignId: z173.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("La campa\xF1a vinculada que se suelta. Sale de get_product_control; nunca se inventa.")
|
|
@@ -46013,7 +46154,7 @@ function manualProductRequestId(input) {
|
|
|
46013
46154
|
__name(manualProductRequestId, "manualProductRequestId");
|
|
46014
46155
|
function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
46015
46156
|
server.registerTool("get_product_control", {
|
|
46016
|
-
description: getProductControlGuidance.summary + ' Responde la pregunta que de verdad importa \u2014cu\xE1les dejo correr y cu\xE1les apago\u2014 con `verdict` por producto: `scale` (escalar), `hold` (mantener), `kill` (matar) e `insufficient_sample` (muestra insuficiente). `insufficient_sample` NO es `kill`: significa que todav\xEDa no hay pedidos suficientes para decidir, y tratarlo como \xABap\xE1galo\xBB mata productos que nunca se midieron. `light` (`green`/`amber`/`red`/`none`) es el mismo juicio en color; `none` es \xABno hay juicio\xBB, no \xABneutro\xBB. Un d\xEDa con `cancelledSource: "shopify_settling"` est\xE1 medido pero NO cerrado \u2014las cancelaciones de contra-entrega llegan d\xEDas despu\xE9s\u2014, as\xED que ese veredicto solo puede empeorar: dilo antes de que alguien escale con \xE9l. Es READ-ONLY: nunca pausa ni modifica una campa\xF1a. Cada fila trae `productControlId`, que es lo que piden las dem\xE1s herramientas del control \u2014 \xFAsalo tal cual, nunca lo construyas. Un producto con `status` distinto de `ok` NO tiene m\xE9tricas: explica el `statusMessage` y no inventes n\xFAmeros para reemplazarlo. `status: "no_costing"` significa que falta decir cu\xE1nto cuesta (set_product_costing); `sales_unavailable` significa que no podemos leer los pedidos de la tienda \u2014 ah\xED la salida es report_product_counts, no reconectar. Y cuando un d\xEDa trae `effectiveSalesSource` distinto de `"user"`, esa cifra de ventas entregadas NO fue medida: sale de una resta que da por entregado lo que a\xFAn va en camino, as\xED que dilo y no la presentes como un hecho.',
|
|
46157
|
+
description: getProductControlGuidance.summary + ' Responde la pregunta que de verdad importa \u2014cu\xE1les dejo correr y cu\xE1les apago\u2014 con `verdict` por producto: `scale` (escalar), `hold` (mantener), `kill` (matar) e `insufficient_sample` (muestra insuficiente). `insufficient_sample` NO es `kill`: significa que todav\xEDa no hay pedidos suficientes para decidir, y tratarlo como \xABap\xE1galo\xBB mata productos que nunca se midieron. `light` (`green`/`amber`/`red`/`none`) es el mismo juicio en color; `none` es \xABno hay juicio\xBB, no \xABneutro\xBB. Un d\xEDa con `cancelledSource: "shopify_settling"` est\xE1 medido pero NO cerrado \u2014las cancelaciones de contra-entrega llegan d\xEDas despu\xE9s\u2014, as\xED que ese veredicto solo puede empeorar: dilo antes de que alguien escale con \xE9l. Es READ-ONLY: nunca pausa ni modifica una campa\xF1a. Cada fila trae `productControlId`, que es lo que piden las dem\xE1s herramientas del control \u2014 \xFAsalo tal cual, nunca lo construyas. Un producto con `status` distinto de `ok` NO tiene m\xE9tricas: explica el `statusMessage` y no inventes n\xFAmeros para reemplazarlo. `status: "no_costing"` significa que falta decir cu\xE1nto cuesta (set_product_costing); `sales_unavailable` significa que no podemos leer los pedidos de la tienda \u2014 ah\xED la salida es report_product_counts, no reconectar. Y cuando un d\xEDa trae `effectiveSalesSource` distinto de `"user"`, esa cifra de ventas entregadas NO fue medida: sale de una resta que da por entregado lo que a\xFAn va en camino, as\xED que dilo y no la presentes como un hecho. Cada fila trae `creativeMemory`, la memoria del producto: `angles` con su `code` (A1, A2\u2026 estable), `label`, `status` (`testing` probando, `winner` ganador, `loser` perdedor, `no_data` sin dato), `provisional` (true hasta que los pedidos entregados lo confirman), `restUntil` (un perdedor descansa 60 d\xEDas y no se sugiere antes), `tags` (`"Ganador"`) y sus `formats` con el mismo estado; y `suggestions`, el orden para el pr\xF3ximo creativo (`kind`: `angle` = ese \xE1ngulo en `format`, `new_format` = el \xE1ngulo ganador en un formato que no est\xE9 en `excludeFormats`, `new_angle` = un \xE1ngulo nuevo; `exploration: true` marca el hueco de exploraci\xF3n). \xDAsalas en ese orden y nunca propongas un perdedor que descansa. `creativeMemory: null` = el producto todav\xEDa no tiene \xE1ngulos medidos: sugiere 3 \xE1ngulos distintos en un solo formato. La memoria se recalcula cada noche con las cifras de Meta y es gu\xEDa: nunca apaga ni cambia nada en Meta.',
|
|
46017
46158
|
inputSchema: ProductControlListInput.shape,
|
|
46018
46159
|
annotations: READS_EXTERNAL
|
|
46019
46160
|
}, async (input) => {
|
|
@@ -46028,7 +46169,7 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
46028
46169
|
}
|
|
46029
46170
|
});
|
|
46030
46171
|
server.registerTool("get_product_ads", {
|
|
46031
|
-
description: getProductAdsGuidance.summary +
|
|
46172
|
+
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` trae `"Ganador"` cuando la memoria del producto dice que el \xE1ngulo o el formato de ese anuncio gan\xF3 (solo la palabra; las cifras se ven aqu\xED y en `get_product_control`) y viene vac\xEDo si no. Un anuncio hecho por fuera de ProductMaker cuyo \xE1ngulo y formato puso la IA trae `"Etiquetado por IA"` en `tags`: dilo as\xED y, si la persona dice que est\xE1 mal, corr\xEDgelo con correct_product_ad_creative. `creative: null` significa que ProductMaker todav\xEDa no sabe qu\xE9 video lleva ese anuncio (no lo public\xF3 ProductMaker, su nombre no lo dice y el cierre de la noche a\xFAn no lo reconoci\xF3 ni lo etiquet\xF3): no lo adivines. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.',
|
|
46032
46173
|
inputSchema: ProductAdsInput.shape,
|
|
46033
46174
|
annotations: READS_EXTERNAL
|
|
46034
46175
|
}, async (input) => {
|
|
@@ -46375,6 +46516,20 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
46375
46516
|
throw translateError(error);
|
|
46376
46517
|
}
|
|
46377
46518
|
});
|
|
46519
|
+
server.registerTool("correct_product_ad_creative", {
|
|
46520
|
+
description: correctProductAdCreativeGuidance.summary + " Cambia el \xE1ngulo (`angle`) y el formato creativo (`format`) con que ProductMaker cuenta un anuncio en la memoria del producto, por ejemplo uno \xABEtiquetado por IA\xBB que la IA ley\xF3 mal. Manda SIEMPRE los dos (el que no cambia, con su valor de get_product_ads): la persona confirma el creativo entero. La correcci\xF3n queda como de la persona: ni la IA ni el reconocimiento autom\xE1tico la vuelven a pisar, y desde el pr\xF3ximo cierre de la noche cuenta en la memoria con ese \xE1ngulo. Solo cambia el registro de ProductMaker: NO toca nada en Meta (ni el anuncio, ni su nombre, ni su estado). El anuncio debe haber salido antes en get_product_ads; si no, responde que no lo encuentra. Confirma con la persona el \xE1ngulo y el formato antes de llamarla.",
|
|
46521
|
+
inputSchema: CorrectProductAdCreativeInput.shape,
|
|
46522
|
+
annotations: OVERWRITES_INTERNAL
|
|
46523
|
+
}, async ({ productControlId, adId, angle, format }) => {
|
|
46524
|
+
try {
|
|
46525
|
+
return asText(await api.putJson(`/v1/product-control/${encodeURIComponent(productControlId)}/ads/${encodeURIComponent(adId)}/creative`, {
|
|
46526
|
+
angle,
|
|
46527
|
+
format
|
|
46528
|
+
}));
|
|
46529
|
+
} catch (error) {
|
|
46530
|
+
throw translateError(error);
|
|
46531
|
+
}
|
|
46532
|
+
});
|
|
46378
46533
|
server.registerTool("delete_monthly_expense", {
|
|
46379
46534
|
description: deleteMonthlyExpenseGuidance.summary + " Borra por mes + etiqueta, los dos datos que la persona ve en su lista. Para cambiar el monto NO se borra: set_monthly_expense con el valor nuevo es la correcci\xF3n.",
|
|
46380
46535
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/dist/stdio.js
CHANGED
|
@@ -11407,8 +11407,9 @@ var AnchoredIntel = z30.object({
|
|
|
11407
11407
|
marketProvenanceIds: z30.array(z30.string().min(1)).max(30).optional(),
|
|
11408
11408
|
marketSnapshotHash: z30.string().min(1).optional()
|
|
11409
11409
|
});
|
|
11410
|
+
var ANGLE_TEXT_MAX_CHARS = 480;
|
|
11410
11411
|
var Angle = z30.object({
|
|
11411
|
-
angle: z30.string().min(1).max(
|
|
11412
|
+
angle: z30.string().min(1).max(ANGLE_TEXT_MAX_CHARS),
|
|
11412
11413
|
buyerPersona: z30.string().min(1).max(360),
|
|
11413
11414
|
/** Character description for video (role + appearance + attitude). Drives voice selection and Frame0Spec. */
|
|
11414
11415
|
actor: z30.string().min(1).max(360).optional(),
|
|
@@ -13409,6 +13410,10 @@ var ShopifyBillingCallbackQuery = z43.object({
|
|
|
13409
13410
|
charge_id: z43.string().regex(/^\d+$/),
|
|
13410
13411
|
transactionId: z43.string().guid()
|
|
13411
13412
|
});
|
|
13413
|
+
var ShopifySubscriptionCallbackQuery = z43.object({
|
|
13414
|
+
charge_id: z43.string().regex(/^\d+$/).optional(),
|
|
13415
|
+
subscriptionId: z43.string().guid()
|
|
13416
|
+
});
|
|
13412
13417
|
var CancelShopifySubscriptionRequest = z43.object({
|
|
13413
13418
|
subscriptionId: z43.string().min(1)
|
|
13414
13419
|
});
|
|
@@ -20255,6 +20260,7 @@ var RegenerateEditRequestSchema = z83.object({
|
|
|
20255
20260
|
comment: z83.string().min(1).max(2e3)
|
|
20256
20261
|
});
|
|
20257
20262
|
var SECTION_PROMPT_MAX_CHARS = 4e3;
|
|
20263
|
+
var FRAME_REGEN_PROMPT_MAX_CHARS = 1500;
|
|
20258
20264
|
var RegenerateResolvedSectionSchema = z83.object({
|
|
20259
20265
|
surfaceDarkening: SurfaceDarkeningSchema.optional(),
|
|
20260
20266
|
surfaceLightening: VideoEditSurfaceSchema.optional(),
|
|
@@ -20268,7 +20274,7 @@ var RegenerateResolvedSectionSchema = z83.object({
|
|
|
20268
20274
|
// in Fase 1. `frameRegen` mirrors the router's Zod limit; `scriptEdit` uses
|
|
20269
20275
|
// SCRIPT_EDIT_MAX_CHARS, the same ceiling the router clarifies on.
|
|
20270
20276
|
frameRegen: z83.object({
|
|
20271
|
-
framePrompt: z83.string().trim().min(1).max(
|
|
20277
|
+
framePrompt: z83.string().trim().min(1).max(FRAME_REGEN_PROMPT_MAX_CHARS),
|
|
20272
20278
|
reason: z83.enum([
|
|
20273
20279
|
"scenario",
|
|
20274
20280
|
"appearance",
|
|
@@ -23909,6 +23915,22 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
23909
23915
|
"requiere confirmaci\xF3n; su gasto, tambi\xE9n el pasado, deja de contar para ese producto y para el balance del mes"
|
|
23910
23916
|
]
|
|
23911
23917
|
},
|
|
23918
|
+
correct_product_ad_creative: {
|
|
23919
|
+
summary: "Corrige el \xE1ngulo y el formato con que ProductMaker cuenta un anuncio del producto.",
|
|
23920
|
+
useWhen: [
|
|
23921
|
+
"ese anuncio no es de ese \xE1ngulo",
|
|
23922
|
+
"la IA le puso mal el formato a mi video"
|
|
23923
|
+
],
|
|
23924
|
+
avoidWhen: [
|
|
23925
|
+
"quiere apagar o editar el anuncio en Meta: lo hace ella"
|
|
23926
|
+
],
|
|
23927
|
+
defaults: [
|
|
23928
|
+
"el adId sale de get_product_ads, nunca se inventa; manda siempre \xE1ngulo y formato, el que no cambia con su valor actual"
|
|
23929
|
+
],
|
|
23930
|
+
disclosures: [
|
|
23931
|
+
"requiere confirmaci\xF3n; queda como correcci\xF3n suya y la IA no la pisa; no toca Meta"
|
|
23932
|
+
]
|
|
23933
|
+
},
|
|
23912
23934
|
delete_monthly_expense: {
|
|
23913
23935
|
summary: "Borra un gasto fijo del mes.",
|
|
23914
23936
|
useWhen: [
|
|
@@ -24702,7 +24724,59 @@ var ProductControlCampaignEvidenceSchema = z106.object({
|
|
|
24702
24724
|
"adsets"
|
|
24703
24725
|
]).nullable(),
|
|
24704
24726
|
/** Exact current provider day, compatible currency and operation timezone. */
|
|
24705
|
-
budgetVerified: z106.boolean()
|
|
24727
|
+
budgetVerified: z106.boolean(),
|
|
24728
|
+
/**
|
|
24729
|
+
* La atención del día (regla del día 1): impresiones, clics y
|
|
24730
|
+
* reproducciones de 3 s (`actions` de tipo `video_view`). Opcionales para
|
|
24731
|
+
* respuestas anteriores; `null` si Meta no los mandó, nunca cero.
|
|
24732
|
+
*/
|
|
24733
|
+
impressions: z106.number().finite().nonnegative().nullable().optional(),
|
|
24734
|
+
clicks: z106.number().finite().nonnegative().nullable().optional(),
|
|
24735
|
+
video3sViews: z106.number().finite().nonnegative().nullable().optional(),
|
|
24736
|
+
/** Cuándo empezó la campaña (`start_time`, o `created_time`), ISO. */
|
|
24737
|
+
startedAt: z106.string().nullable().optional()
|
|
24738
|
+
});
|
|
24739
|
+
var PRODUCT_ANGLE_STATUSES = [
|
|
24740
|
+
"testing",
|
|
24741
|
+
"winner",
|
|
24742
|
+
"loser",
|
|
24743
|
+
"no_data"
|
|
24744
|
+
];
|
|
24745
|
+
var ProductAngleStatusSchema = z106.enum(PRODUCT_ANGLE_STATUSES);
|
|
24746
|
+
var ProductCreativeMemoryFormatSchema = z106.object({
|
|
24747
|
+
format: z106.string(),
|
|
24748
|
+
status: ProductAngleStatusSchema,
|
|
24749
|
+
/** Un perdedor no se sugiere hasta este instante (ISO). */
|
|
24750
|
+
restUntil: z106.string().nullable(),
|
|
24751
|
+
/** true hasta que las entregas reales lo confirman o lo corrigen. */
|
|
24752
|
+
provisional: z106.boolean(),
|
|
24753
|
+
tags: z106.array(z106.string())
|
|
24754
|
+
});
|
|
24755
|
+
var ProductCreativeMemoryAngleSchema = z106.object({
|
|
24756
|
+
/** A1, A2… en orden de aparición; estable. */
|
|
24757
|
+
code: z106.string(),
|
|
24758
|
+
label: z106.string(),
|
|
24759
|
+
status: ProductAngleStatusSchema,
|
|
24760
|
+
restUntil: z106.string().nullable(),
|
|
24761
|
+
provisional: z106.boolean(),
|
|
24762
|
+
tags: z106.array(z106.string()),
|
|
24763
|
+
formats: z106.array(ProductCreativeMemoryFormatSchema)
|
|
24764
|
+
});
|
|
24765
|
+
var ProductCreativeSuggestionSchema = z106.object({
|
|
24766
|
+
kind: z106.enum([
|
|
24767
|
+
"angle",
|
|
24768
|
+
"new_format",
|
|
24769
|
+
"new_angle"
|
|
24770
|
+
]),
|
|
24771
|
+
angleCode: z106.string().nullable(),
|
|
24772
|
+
angleLabel: z106.string().nullable(),
|
|
24773
|
+
format: z106.string().nullable(),
|
|
24774
|
+
excludeFormats: z106.array(z106.string()),
|
|
24775
|
+
exploration: z106.boolean()
|
|
24776
|
+
});
|
|
24777
|
+
var ProductCreativeMemorySchema = z106.object({
|
|
24778
|
+
angles: z106.array(ProductCreativeMemoryAngleSchema),
|
|
24779
|
+
suggestions: z106.array(ProductCreativeSuggestionSchema)
|
|
24706
24780
|
});
|
|
24707
24781
|
var ProductControlRowSchema = z106.object({
|
|
24708
24782
|
/** `null` hasta que la vendedora toca el producto por primera vez. */
|
|
@@ -24755,6 +24829,12 @@ var ProductControlRowSchema = z106.object({
|
|
|
24755
24829
|
campaignId: z106.string()
|
|
24756
24830
|
})),
|
|
24757
24831
|
campaignEvidence: z106.array(ProductControlCampaignEvidenceSchema).optional(),
|
|
24832
|
+
/**
|
|
24833
|
+
* Qué ángulos y formatos ganaron o perdieron, y en qué orden sugerir el
|
|
24834
|
+
* próximo creativo. `null` (o ausente en una respuesta anterior) mientras
|
|
24835
|
+
* la memoria no tenga ángulos.
|
|
24836
|
+
*/
|
|
24837
|
+
creativeMemory: ProductCreativeMemorySchema.nullable().optional(),
|
|
24758
24838
|
status: DailyControlStatusSchema,
|
|
24759
24839
|
statusMessage: z106.string().nullable(),
|
|
24760
24840
|
light: DailyControlLightSchema,
|
|
@@ -25128,6 +25208,19 @@ var CreateManualProductControlResponseSchema = z106.object({
|
|
|
25128
25208
|
var ProductControlAdsQuerySchema = z106.object({
|
|
25129
25209
|
date: z106.string().regex(/^\d{4}-\d{2}-\d{2}$/)
|
|
25130
25210
|
});
|
|
25211
|
+
var CorrectProductAdCreativeSchema = z106.object({
|
|
25212
|
+
angle: z106.string().trim().min(1).max(ANGLE_TEXT_MAX_CHARS),
|
|
25213
|
+
format: z106.string().trim().toLowerCase().regex(/^[a-z0-9-]{1,24}$/).nullable()
|
|
25214
|
+
}).strict();
|
|
25215
|
+
var CorrectProductAdCreativeResultSchema = z106.object({
|
|
25216
|
+
adId: z106.string(),
|
|
25217
|
+
angle: z106.string().nullable(),
|
|
25218
|
+
format: z106.string().nullable(),
|
|
25219
|
+
tagSource: z106.enum([
|
|
25220
|
+
"ai",
|
|
25221
|
+
"seller"
|
|
25222
|
+
]).nullable()
|
|
25223
|
+
});
|
|
25131
25224
|
var ScoreboardDay = z106.string().regex(/^\d{4}-\d{2}-\d{2}$/).refine((day) => {
|
|
25132
25225
|
const date2 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
|
|
25133
25226
|
return !Number.isNaN(date2.getTime()) && date2.toISOString().slice(0, 10) === day;
|
|
@@ -25199,7 +25292,13 @@ var ProductControlAdSchema = z106.object({
|
|
|
25199
25292
|
/** Compras del píxel (`offsite_conversion.fb_pixel_purchase`). */
|
|
25200
25293
|
purchases: metric,
|
|
25201
25294
|
costPerPurchase: metric,
|
|
25295
|
+
/** Arranques del video (`video_play_actions`). */
|
|
25202
25296
|
videoPlays: metric,
|
|
25297
|
+
/**
|
|
25298
|
+
* Reproducciones de 3 s (`actions` de tipo `video_view`): el gancho. `null`
|
|
25299
|
+
* en una imagen o si Meta no lo mandó. Ausente en respuestas anteriores.
|
|
25300
|
+
*/
|
|
25301
|
+
video3sViews: metric.default(null),
|
|
25203
25302
|
videoP25: metric,
|
|
25204
25303
|
videoP75: metric,
|
|
25205
25304
|
videoP100: metric,
|
|
@@ -27586,6 +27685,38 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27586
27685
|
],
|
|
27587
27686
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27588
27687
|
),
|
|
27688
|
+
defineCapability(
|
|
27689
|
+
"correct_product_ad_creative",
|
|
27690
|
+
// Filled by the MCP schema fingerprint test.
|
|
27691
|
+
"7a83571a5444efd3a21012ad18260d25750172d09a6537055b4f0751ab4bf362",
|
|
27692
|
+
"state_change",
|
|
27693
|
+
"business",
|
|
27694
|
+
[
|
|
27695
|
+
"state_change"
|
|
27696
|
+
],
|
|
27697
|
+
[
|
|
27698
|
+
slot("product_control", true, [
|
|
27699
|
+
"productControlId"
|
|
27700
|
+
]),
|
|
27701
|
+
slot("ad", true, [
|
|
27702
|
+
"adId"
|
|
27703
|
+
]),
|
|
27704
|
+
slot("sales_angle", true, [
|
|
27705
|
+
"angle"
|
|
27706
|
+
]),
|
|
27707
|
+
slot("creative_format", true, [
|
|
27708
|
+
"format"
|
|
27709
|
+
])
|
|
27710
|
+
],
|
|
27711
|
+
[
|
|
27712
|
+
"product_control",
|
|
27713
|
+
"product_control_ads"
|
|
27714
|
+
],
|
|
27715
|
+
[
|
|
27716
|
+
"product_control_ads"
|
|
27717
|
+
],
|
|
27718
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27719
|
+
),
|
|
27589
27720
|
defineCapability(
|
|
27590
27721
|
"delete_monthly_expense",
|
|
27591
27722
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -33494,7 +33625,7 @@ var ApiClient = class {
|
|
|
33494
33625
|
};
|
|
33495
33626
|
|
|
33496
33627
|
// src/index.ts
|
|
33497
|
-
var MCP_VERSION = "12.
|
|
33628
|
+
var MCP_VERSION = "12.35.0";
|
|
33498
33629
|
|
|
33499
33630
|
// src/meta-upload-app.ts
|
|
33500
33631
|
import { readFileSync } from "fs";
|
|
@@ -34912,6 +35043,7 @@ var McpErrorCode = {
|
|
|
34912
35043
|
// Drop Maker agent memory
|
|
34913
35044
|
PRODUCT_CONTROL_NOT_FOUND: "PRODUCT_CONTROL_NOT_FOUND",
|
|
34914
35045
|
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED",
|
|
35046
|
+
PRODUCT_AD_NOT_FOUND: "PRODUCT_AD_NOT_FOUND",
|
|
34915
35047
|
AGENT_PRODUCT_NOT_FOUND: "AGENT_PRODUCT_NOT_FOUND",
|
|
34916
35048
|
AGENT_PRODUCT_NAME_REQUIRED: "AGENT_PRODUCT_NAME_REQUIRED",
|
|
34917
35049
|
AGENT_EXPERIMENT_NOT_FOUND: "AGENT_EXPERIMENT_NOT_FOUND",
|
|
@@ -35180,6 +35312,7 @@ var CODE_MESSAGES = {
|
|
|
35180
35312
|
DROPSHIPPING_PROJECT_CAMPAIGN_NOT_FOUND: "That campaign was not found in any of this user's connected ad accounts. Verify the `campaignId` (and `accountId` for TikTok).",
|
|
35181
35313
|
PRODUCT_CONTROL_NOT_FOUND: "That product is not in this account's financial control. Read get_product_control for the right `productControlId`.",
|
|
35182
35314
|
PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED: "That campaign is not linked to this product. Read get_product_control to see which campaigns it has.",
|
|
35315
|
+
PRODUCT_AD_NOT_FOUND: "That ad is not in this product's ad registry yet. Read get_product_ads for this product and use an `adId` from it.",
|
|
35183
35316
|
AGENT_PRODUCT_NOT_FOUND: 'No product with that code in the agent memory. Save it first with save_agent_memory type "product".',
|
|
35184
35317
|
AGENT_PRODUCT_NAME_REQUIRED: "That product code is new: send its `name` the first time you save it.",
|
|
35185
35318
|
AGENT_EXPERIMENT_NOT_FOUND: "No experiment with that id in this account's agent memory. Read the brief or search experiments for the right id.",
|
|
@@ -35240,6 +35373,7 @@ var CODE_MESSAGES = {
|
|
|
35240
35373
|
var AGENT_MEMORY_CODES = [
|
|
35241
35374
|
McpErrorCode.PRODUCT_CONTROL_NOT_FOUND,
|
|
35242
35375
|
McpErrorCode.PRODUCT_CONTROL_CAMPAIGN_NOT_LINKED,
|
|
35376
|
+
McpErrorCode.PRODUCT_AD_NOT_FOUND,
|
|
35243
35377
|
McpErrorCode.AGENT_PRODUCT_NOT_FOUND,
|
|
35244
35378
|
McpErrorCode.AGENT_PRODUCT_NAME_REQUIRED,
|
|
35245
35379
|
McpErrorCode.AGENT_EXPERIMENT_NOT_FOUND,
|
|
@@ -44348,6 +44482,7 @@ var linkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("link_p
|
|
|
44348
44482
|
var unlinkProductCampaignGuidance = getProductMakerCapabilityModelGuidance("unlink_product_campaign");
|
|
44349
44483
|
var deleteMonthlyExpenseGuidance = getProductMakerCapabilityModelGuidance("delete_monthly_expense");
|
|
44350
44484
|
var removeProductControlGuidance = getProductMakerCapabilityModelGuidance("remove_product_control");
|
|
44485
|
+
var correctProductAdCreativeGuidance = getProductMakerCapabilityModelGuidance("correct_product_ad_creative");
|
|
44351
44486
|
var DateOnly2 = z172.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
44352
44487
|
var IMPORT_BATCH_MAX2 = 50;
|
|
44353
44488
|
var ProductControlListInput = z172.object({
|
|
@@ -44475,6 +44610,12 @@ var LinkProductCampaignInput = z172.object({
|
|
|
44475
44610
|
shopifyProductId: z172.string().min(1).optional().describe("El id del producto en su tienda. Va junto a shopDomain.")
|
|
44476
44611
|
}).strict();
|
|
44477
44612
|
var DeleteMonthlyExpenseInput = DeleteMonthlyExpenseSchema;
|
|
44613
|
+
var CorrectProductAdCreativeInput = z172.object({
|
|
44614
|
+
productControlId: z172.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
44615
|
+
adId: z172.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("El `adId` del anuncio, tal como sale de get_product_ads; nunca se inventa."),
|
|
44616
|
+
angle: z172.string().trim().min(1).max(ANGLE_TEXT_MAX_CHARS).describe("El \xE1ngulo de venta correcto, con las palabras de la persona (p. ej. \xABSin taladro\xBB). Siempre va, aunque solo cambie el formato: manda el que ya tiene si est\xE1 bien."),
|
|
44617
|
+
format: z172.string().trim().toLowerCase().regex(/^[a-z0-9-]{1,24}$/).nullable().describe("El formato creativo correcto (`ugc`, `viral`, `pixar`, `demo-manos`\u2026); `null` lo deja sin formato (una imagen). Siempre va, aunque solo cambie el \xE1ngulo: manda el que ya tiene si est\xE1 bien.")
|
|
44618
|
+
}).strict();
|
|
44478
44619
|
var UnlinkProductCampaignInput = z172.object({
|
|
44479
44620
|
productControlId: z172.string().guid().describe("El id del producto en su control. Sale de get_product_control; nunca se inventa."),
|
|
44480
44621
|
campaignId: z172.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).describe("La campa\xF1a vinculada que se suelta. Sale de get_product_control; nunca se inventa.")
|
|
@@ -44498,7 +44639,7 @@ function manualProductRequestId(input) {
|
|
|
44498
44639
|
__name(manualProductRequestId, "manualProductRequestId");
|
|
44499
44640
|
function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
44500
44641
|
server.registerTool("get_product_control", {
|
|
44501
|
-
description: getProductControlGuidance.summary + ' Responde la pregunta que de verdad importa \u2014cu\xE1les dejo correr y cu\xE1les apago\u2014 con `verdict` por producto: `scale` (escalar), `hold` (mantener), `kill` (matar) e `insufficient_sample` (muestra insuficiente). `insufficient_sample` NO es `kill`: significa que todav\xEDa no hay pedidos suficientes para decidir, y tratarlo como \xABap\xE1galo\xBB mata productos que nunca se midieron. `light` (`green`/`amber`/`red`/`none`) es el mismo juicio en color; `none` es \xABno hay juicio\xBB, no \xABneutro\xBB. Un d\xEDa con `cancelledSource: "shopify_settling"` est\xE1 medido pero NO cerrado \u2014las cancelaciones de contra-entrega llegan d\xEDas despu\xE9s\u2014, as\xED que ese veredicto solo puede empeorar: dilo antes de que alguien escale con \xE9l. Es READ-ONLY: nunca pausa ni modifica una campa\xF1a. Cada fila trae `productControlId`, que es lo que piden las dem\xE1s herramientas del control \u2014 \xFAsalo tal cual, nunca lo construyas. Un producto con `status` distinto de `ok` NO tiene m\xE9tricas: explica el `statusMessage` y no inventes n\xFAmeros para reemplazarlo. `status: "no_costing"` significa que falta decir cu\xE1nto cuesta (set_product_costing); `sales_unavailable` significa que no podemos leer los pedidos de la tienda \u2014 ah\xED la salida es report_product_counts, no reconectar. Y cuando un d\xEDa trae `effectiveSalesSource` distinto de `"user"`, esa cifra de ventas entregadas NO fue medida: sale de una resta que da por entregado lo que a\xFAn va en camino, as\xED que dilo y no la presentes como un hecho.',
|
|
44642
|
+
description: getProductControlGuidance.summary + ' Responde la pregunta que de verdad importa \u2014cu\xE1les dejo correr y cu\xE1les apago\u2014 con `verdict` por producto: `scale` (escalar), `hold` (mantener), `kill` (matar) e `insufficient_sample` (muestra insuficiente). `insufficient_sample` NO es `kill`: significa que todav\xEDa no hay pedidos suficientes para decidir, y tratarlo como \xABap\xE1galo\xBB mata productos que nunca se midieron. `light` (`green`/`amber`/`red`/`none`) es el mismo juicio en color; `none` es \xABno hay juicio\xBB, no \xABneutro\xBB. Un d\xEDa con `cancelledSource: "shopify_settling"` est\xE1 medido pero NO cerrado \u2014las cancelaciones de contra-entrega llegan d\xEDas despu\xE9s\u2014, as\xED que ese veredicto solo puede empeorar: dilo antes de que alguien escale con \xE9l. Es READ-ONLY: nunca pausa ni modifica una campa\xF1a. Cada fila trae `productControlId`, que es lo que piden las dem\xE1s herramientas del control \u2014 \xFAsalo tal cual, nunca lo construyas. Un producto con `status` distinto de `ok` NO tiene m\xE9tricas: explica el `statusMessage` y no inventes n\xFAmeros para reemplazarlo. `status: "no_costing"` significa que falta decir cu\xE1nto cuesta (set_product_costing); `sales_unavailable` significa que no podemos leer los pedidos de la tienda \u2014 ah\xED la salida es report_product_counts, no reconectar. Y cuando un d\xEDa trae `effectiveSalesSource` distinto de `"user"`, esa cifra de ventas entregadas NO fue medida: sale de una resta que da por entregado lo que a\xFAn va en camino, as\xED que dilo y no la presentes como un hecho. Cada fila trae `creativeMemory`, la memoria del producto: `angles` con su `code` (A1, A2\u2026 estable), `label`, `status` (`testing` probando, `winner` ganador, `loser` perdedor, `no_data` sin dato), `provisional` (true hasta que los pedidos entregados lo confirman), `restUntil` (un perdedor descansa 60 d\xEDas y no se sugiere antes), `tags` (`"Ganador"`) y sus `formats` con el mismo estado; y `suggestions`, el orden para el pr\xF3ximo creativo (`kind`: `angle` = ese \xE1ngulo en `format`, `new_format` = el \xE1ngulo ganador en un formato que no est\xE9 en `excludeFormats`, `new_angle` = un \xE1ngulo nuevo; `exploration: true` marca el hueco de exploraci\xF3n). \xDAsalas en ese orden y nunca propongas un perdedor que descansa. `creativeMemory: null` = el producto todav\xEDa no tiene \xE1ngulos medidos: sugiere 3 \xE1ngulos distintos en un solo formato. La memoria se recalcula cada noche con las cifras de Meta y es gu\xEDa: nunca apaga ni cambia nada en Meta.',
|
|
44502
44643
|
inputSchema: ProductControlListInput.shape,
|
|
44503
44644
|
annotations: READS_EXTERNAL
|
|
44504
44645
|
}, async (input) => {
|
|
@@ -44513,7 +44654,7 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44513
44654
|
}
|
|
44514
44655
|
});
|
|
44515
44656
|
server.registerTool("get_product_ads", {
|
|
44516
|
-
description: getProductAdsGuidance.summary +
|
|
44657
|
+
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` trae `"Ganador"` cuando la memoria del producto dice que el \xE1ngulo o el formato de ese anuncio gan\xF3 (solo la palabra; las cifras se ven aqu\xED y en `get_product_control`) y viene vac\xEDo si no. Un anuncio hecho por fuera de ProductMaker cuyo \xE1ngulo y formato puso la IA trae `"Etiquetado por IA"` en `tags`: dilo as\xED y, si la persona dice que est\xE1 mal, corr\xEDgelo con correct_product_ad_creative. `creative: null` significa que ProductMaker todav\xEDa no sabe qu\xE9 video lleva ese anuncio (no lo public\xF3 ProductMaker, su nombre no lo dice y el cierre de la noche a\xFAn no lo reconoci\xF3 ni lo etiquet\xF3): no lo adivines. Es READ-ONLY: nunca pausa ni modifica un anuncio; apagar lo decide y lo hace ella en Meta.',
|
|
44517
44658
|
inputSchema: ProductAdsInput.shape,
|
|
44518
44659
|
annotations: READS_EXTERNAL
|
|
44519
44660
|
}, async (input) => {
|
|
@@ -44860,6 +45001,20 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44860
45001
|
throw translateError(error);
|
|
44861
45002
|
}
|
|
44862
45003
|
});
|
|
45004
|
+
server.registerTool("correct_product_ad_creative", {
|
|
45005
|
+
description: correctProductAdCreativeGuidance.summary + " Cambia el \xE1ngulo (`angle`) y el formato creativo (`format`) con que ProductMaker cuenta un anuncio en la memoria del producto, por ejemplo uno \xABEtiquetado por IA\xBB que la IA ley\xF3 mal. Manda SIEMPRE los dos (el que no cambia, con su valor de get_product_ads): la persona confirma el creativo entero. La correcci\xF3n queda como de la persona: ni la IA ni el reconocimiento autom\xE1tico la vuelven a pisar, y desde el pr\xF3ximo cierre de la noche cuenta en la memoria con ese \xE1ngulo. Solo cambia el registro de ProductMaker: NO toca nada en Meta (ni el anuncio, ni su nombre, ni su estado). El anuncio debe haber salido antes en get_product_ads; si no, responde que no lo encuentra. Confirma con la persona el \xE1ngulo y el formato antes de llamarla.",
|
|
45006
|
+
inputSchema: CorrectProductAdCreativeInput.shape,
|
|
45007
|
+
annotations: OVERWRITES_INTERNAL
|
|
45008
|
+
}, async ({ productControlId, adId, angle, format }) => {
|
|
45009
|
+
try {
|
|
45010
|
+
return asText(await api.putJson(`/v1/product-control/${encodeURIComponent(productControlId)}/ads/${encodeURIComponent(adId)}/creative`, {
|
|
45011
|
+
angle,
|
|
45012
|
+
format
|
|
45013
|
+
}));
|
|
45014
|
+
} catch (error) {
|
|
45015
|
+
throw translateError(error);
|
|
45016
|
+
}
|
|
45017
|
+
});
|
|
44863
45018
|
server.registerTool("delete_monthly_expense", {
|
|
44864
45019
|
description: deleteMonthlyExpenseGuidance.summary + " Borra por mes + etiqueta, los dos datos que la persona ve en su lista. Para cambiar el monto NO se borra: set_monthly_expense con el valor nuevo es la correcci\xF3n.",
|
|
44865
45020
|
inputSchema: DeleteMonthlyExpenseInput.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.35.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.",
|