@productmaker/mcp 12.30.0 → 12.32.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 +1 -0
- package/dist/http.js +164 -3
- package/dist/stdio.js +164 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -243,6 +243,7 @@ its service-page editor, including its generation progress.
|
|
|
243
243
|
| `get_dropi_status` | Read whether the seller's Dropi account is connected and how far its order read got. Connecting or disconnecting is NOT done here — the Dropi key is pasted in Integrations, and saying so is part of the answer when `connected: false` comes back |
|
|
244
244
|
| `sync_dropi_orders` | Pull real orders from the seller's connected Dropi account into the ledger. Idempotent: re-reading the same window updates lines instead of duplicating them. If the answer stays `pending`, the read continues in the background — say so and offer `get_dropi_status` again instead of claiming a total that has not finished |
|
|
245
245
|
| `cancel_dropi_order` | Cancel in Dropi an order that has no guide yet (PENDIENTE CONFIRMACION or PENDIENTE). Reads the order before writing: `already_cancelled` without a write, `not_cancellable` with `blockedBy: has_guide | status`(with a guide the path is the novedad «devolver al remitente»). Destructive, cannot be undone;`financial-control` gate |
|
|
246
|
+
| `save_order_amounts` | Save the real money of Dropi orders already in the ledger, as read in the order's «Información de la Orden» panel (supplier, shipping, return shipping, commission, Dropi «monto a ganar»; the sale total stays from the API). Never creates an order or changes its status; a missing amount keeps the stored one. Returns `updated`, `notFound` (run `sync_dropi_orders` first) and `multiProduct` (amounts are not split across products). `financial-control` gate |
|
|
246
247
|
| `create_manual_product` | Create a product by hand in financial control: no store, no file, no task. Ask for ALL the data first — supplier cost and freight without inventing (a zero would make it infinitely profitable); the two rates are 0–1 proportions and the seller's estimate. Retrying with the same data returns the same product; the derived `requestId` never duplicates |
|
|
247
248
|
| `list_unmatched_products` | Read the products an import brought that still have no owner in the ledger. Their orders are already stored — this lists who needs `resolve_unmatched_product` next |
|
|
248
249
|
| `resolve_unmatched_product` | Give an owner to an unrecognized imported product: with `productControlId` the alias hangs off that record and its orders move there; without it a new record is created under `label`. Neither path discards orders — there is no "not mine" route because the information already came in |
|
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,8 @@ 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.literal("provisional_v1").optional(),
|
|
6250
6254
|
/** New final reviews explicitly account for selected critical technical findings. */
|
|
6251
6255
|
finalReviewContextPolicy: z14.literal("selected_candidate_findings_v1").optional(),
|
|
6252
6256
|
/** New voice requests after localized lengthening override stale timing only. */
|
|
@@ -6594,6 +6598,8 @@ var CreativeEngineReviewSchema = z14.object({
|
|
|
6594
6598
|
"base_routing",
|
|
6595
6599
|
"candidate_quality"
|
|
6596
6600
|
]).optional(),
|
|
6601
|
+
/** Runtime detector veto. The model response schema does not expose it. */
|
|
6602
|
+
provisionalSpeechIsolationVeto: z14.literal(true).optional(),
|
|
6597
6603
|
speechWindows: z14.array(CreativeEngineSpeechObservationSchema).max(3).optional(),
|
|
6598
6604
|
subjectHash: hash,
|
|
6599
6605
|
planRevision: z14.number().int().positive(),
|
|
@@ -6666,6 +6672,8 @@ var CreativeEngineSpeechRoutingSchema = z14.object({
|
|
|
6666
6672
|
"reviewed",
|
|
6667
6673
|
"plan_fallback"
|
|
6668
6674
|
]).optional(),
|
|
6675
|
+
/** Full-frame attempt whose speaker identity needs candidate QA. */
|
|
6676
|
+
unverifiedSpeaker: z14.literal(true).optional(),
|
|
6669
6677
|
/** Why a plan_fallback routing exists: the review's unavailability, or an
|
|
6670
6678
|
* explicit routing rejection accepted degraded with planned windows. */
|
|
6671
6679
|
unavailabilityReason: z14.enum([
|
|
@@ -6802,6 +6810,9 @@ var CreativeEngineCandidateSchema = z14.object({
|
|
|
6802
6810
|
]).optional(),
|
|
6803
6811
|
baseOutputHash: hash.optional(),
|
|
6804
6812
|
routingHash: hash.optional(),
|
|
6813
|
+
speechBaseFallback: z14.literal(true).optional(),
|
|
6814
|
+
/** Provisional windows actually composited into this candidate. */
|
|
6815
|
+
speechPatchedWindowIds: z14.array(id2).min(1).max(3).optional(),
|
|
6805
6816
|
inheritanceHash: hash.optional(),
|
|
6806
6817
|
id: id2,
|
|
6807
6818
|
sceneId: id2,
|
|
@@ -6982,7 +6993,18 @@ var CreativeEngineSpeechWindowRepairStateSchema = z14.object({
|
|
|
6982
6993
|
* the same index; historical receipts pin 2.
|
|
6983
6994
|
*/
|
|
6984
6995
|
attempt: z14.number().int().min(1).max(CREATIVE_ENGINE_MEDIA_RECOVERY_POLICY.paidRetakesMax + 1),
|
|
6985
|
-
supersededCandidateIds: z14.array(id2).max(128).optional()
|
|
6996
|
+
supersededCandidateIds: z14.array(id2).max(128).optional(),
|
|
6997
|
+
/** Exact rejected final that admitted the repair; absent for asset failures and older journals. */
|
|
6998
|
+
sourceFinal: z14.object({
|
|
6999
|
+
reviewId: id2,
|
|
7000
|
+
outputHash: hash,
|
|
7001
|
+
manifestHash: hash,
|
|
7002
|
+
planHash: hash,
|
|
7003
|
+
planRevision: z14.number().int().positive(),
|
|
7004
|
+
selectedCandidateId: id2,
|
|
7005
|
+
/** Same selected takes with confirmed issues outside the paid window. */
|
|
7006
|
+
retainedSelection: z14.record(z14.string(), id2).optional()
|
|
7007
|
+
}).strict().optional()
|
|
6986
7008
|
}).strict();
|
|
6987
7009
|
var CreativeEngineFinalRepairFallbackSchema = z14.object({
|
|
6988
7010
|
owner: CreativeEngineOwnerSchema,
|
|
@@ -7029,6 +7051,18 @@ var CreativeEngineStateSchema = z14.object({
|
|
|
7029
7051
|
retainedSceneCandidates: z14.array(CreativeEngineRetainedSceneCandidateBindingSchema).optional(),
|
|
7030
7052
|
inheritedSceneOutputs: z14.array(CreativeEngineInheritedSceneOutputSchema).optional(),
|
|
7031
7053
|
speechRoutings: z14.array(CreativeEngineSpeechRoutingSchema).optional(),
|
|
7054
|
+
provisionalFinalSpeech: z14.object({
|
|
7055
|
+
reviewId: id2,
|
|
7056
|
+
candidateIds: z14.array(id2).min(1),
|
|
7057
|
+
planHash: hash,
|
|
7058
|
+
final: CreativeEngineFinalSchema,
|
|
7059
|
+
selection: z14.record(z14.string(), id2),
|
|
7060
|
+
active: z14.boolean()
|
|
7061
|
+
}).strict().optional(),
|
|
7062
|
+
speechFallbackAdmissionRefusals: z14.record(hash, z14.enum([
|
|
7063
|
+
"cost_budget_exhausted",
|
|
7064
|
+
"post_budget_exhausted"
|
|
7065
|
+
])).optional(),
|
|
7032
7066
|
speechWindowRepair: CreativeEngineSpeechWindowRepairStateSchema.optional(),
|
|
7033
7067
|
selection: z14.record(z14.string(), id2),
|
|
7034
7068
|
selectionManifestHash: hash.optional(),
|
|
@@ -7202,6 +7236,23 @@ var CreativeEngineEventSchema = z14.discriminatedUnion("type", [
|
|
|
7202
7236
|
type: z14.literal("repair_requested"),
|
|
7203
7237
|
sceneId: id2
|
|
7204
7238
|
}).strict(),
|
|
7239
|
+
z14.object({
|
|
7240
|
+
type: z14.literal("provisional_final_speech_decided"),
|
|
7241
|
+
reviewId: id2,
|
|
7242
|
+
candidateIds: z14.array(id2).min(1),
|
|
7243
|
+
admitted: z14.boolean()
|
|
7244
|
+
}).strict(),
|
|
7245
|
+
z14.object({
|
|
7246
|
+
type: z14.literal("provisional_final_speech_restored")
|
|
7247
|
+
}).strict(),
|
|
7248
|
+
z14.object({
|
|
7249
|
+
type: z14.literal("speech_fallback_admission_refused"),
|
|
7250
|
+
operation: CreativeEngineOperationSchema,
|
|
7251
|
+
reason: z14.enum([
|
|
7252
|
+
"cost_budget_exhausted",
|
|
7253
|
+
"post_budget_exhausted"
|
|
7254
|
+
])
|
|
7255
|
+
}).strict(),
|
|
7205
7256
|
z14.object({
|
|
7206
7257
|
type: z14.literal("plan_repair_admission_denied"),
|
|
7207
7258
|
planHash: hash,
|
|
@@ -13036,6 +13087,11 @@ var ShopifyLandingPixelsResponse = z42.object({
|
|
|
13036
13087
|
* could not be read (password, timeout): the selection works the same.
|
|
13037
13088
|
*/
|
|
13038
13089
|
appPixels: z42.array(ShopifyAppPixel).default([]),
|
|
13090
|
+
/**
|
|
13091
|
+
* False when the storefront could not be read, so an empty `appPixels`
|
|
13092
|
+
* means "unknown", not "no app pixels". Absent (older API) means true.
|
|
13093
|
+
*/
|
|
13094
|
+
appPixelsChecked: z42.boolean().default(true),
|
|
13039
13095
|
/** The theme holds tracking code we do not recognize and never copy. */
|
|
13040
13096
|
unrecognizedCodeDetected: z42.boolean()
|
|
13041
13097
|
});
|
|
@@ -23941,6 +23997,21 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
23941
23997
|
"autoridad expl\xEDcita del comprador o vendedor; no se deshace"
|
|
23942
23998
|
]
|
|
23943
23999
|
},
|
|
24000
|
+
save_order_amounts: {
|
|
24001
|
+
summary: "Guarda los montos reales de pedidos Dropi que ya est\xE1n en el libro.",
|
|
24002
|
+
useWhen: [
|
|
24003
|
+
"le\xEDste los montos de un pedido en el panel de Dropi"
|
|
24004
|
+
],
|
|
24005
|
+
avoidWhen: [
|
|
24006
|
+
"el pedido no est\xE1 en el libro: primero sync_dropi_orders"
|
|
24007
|
+
],
|
|
24008
|
+
defaults: [
|
|
24009
|
+
"proveedor dropi"
|
|
24010
|
+
],
|
|
24011
|
+
disclosures: [
|
|
24012
|
+
"autoridad expl\xEDcita del vendedor; solo cifras, no crea pedidos"
|
|
24013
|
+
]
|
|
24014
|
+
},
|
|
23944
24015
|
sync_dropi_orders: {
|
|
23945
24016
|
summary: "Trae los pedidos reales de su cuenta Dropi al libro de cuentas.",
|
|
23946
24017
|
useWhen: [
|
|
@@ -24766,6 +24837,44 @@ var SyncShopifyOrdersSchema = z105.object({
|
|
|
24766
24837
|
since: z105.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
|
|
24767
24838
|
until: z105.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional()
|
|
24768
24839
|
}).strict();
|
|
24840
|
+
var ORDER_AMOUNTS_BATCH_MAX = 200;
|
|
24841
|
+
var OrderAmountsSchema = z105.object({
|
|
24842
|
+
externalOrderId: z105.string().trim().min(1).max(64),
|
|
24843
|
+
supplierAmount: z105.number().finite().min(0).optional(),
|
|
24844
|
+
shippingAmount: z105.number().finite().min(0).optional(),
|
|
24845
|
+
returnShippingAmount: z105.number().finite().min(0).optional(),
|
|
24846
|
+
commissionAmount: z105.number().finite().min(0).optional(),
|
|
24847
|
+
providerProfitAmount: z105.number().finite().optional()
|
|
24848
|
+
}).strict().refine((order) => [
|
|
24849
|
+
order.supplierAmount,
|
|
24850
|
+
order.shippingAmount,
|
|
24851
|
+
order.returnShippingAmount,
|
|
24852
|
+
order.commissionAmount,
|
|
24853
|
+
order.providerProfitAmount
|
|
24854
|
+
].some((amount) => amount !== void 0), {
|
|
24855
|
+
message: "order_amounts_empty",
|
|
24856
|
+
path: [
|
|
24857
|
+
"externalOrderId"
|
|
24858
|
+
]
|
|
24859
|
+
});
|
|
24860
|
+
var SaveOrderAmountsSchema = z105.object({
|
|
24861
|
+
operationId: z105.string().guid().optional(),
|
|
24862
|
+
provider: z105.literal("dropi").default("dropi"),
|
|
24863
|
+
orders: z105.array(OrderAmountsSchema).min(1).max(ORDER_AMOUNTS_BATCH_MAX)
|
|
24864
|
+
}).strict().refine((input) => new Set(input.orders.map((order) => order.externalOrderId)).size === input.orders.length, {
|
|
24865
|
+
message: "order_amounts_duplicate_order",
|
|
24866
|
+
path: [
|
|
24867
|
+
"orders"
|
|
24868
|
+
]
|
|
24869
|
+
});
|
|
24870
|
+
var SaveOrderAmountsResultSchema = z105.object({
|
|
24871
|
+
/** Pedidos cuyos montos quedaron guardados. */
|
|
24872
|
+
updated: z105.array(z105.string()),
|
|
24873
|
+
/** No están en el libro: primero hay que sincronizar el proveedor. */
|
|
24874
|
+
notFound: z105.array(z105.string()),
|
|
24875
|
+
/** Tienen varios productos y la lupa da montos del pedido entero. */
|
|
24876
|
+
multiProduct: z105.array(z105.string())
|
|
24877
|
+
});
|
|
24769
24878
|
|
|
24770
24879
|
// ../../packages/types/src/product-control.ts
|
|
24771
24880
|
import { z as z106 } from "zod";
|
|
@@ -27473,6 +27582,31 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27473
27582
|
],
|
|
27474
27583
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27475
27584
|
),
|
|
27585
|
+
defineCapability(
|
|
27586
|
+
"save_order_amounts",
|
|
27587
|
+
// Filled by the MCP schema fingerprint test.
|
|
27588
|
+
"6a98473ad145a9e3f18487333cbf348e6a4bc4dab78f1f59639518a183c2f4a5",
|
|
27589
|
+
"state_change",
|
|
27590
|
+
"business",
|
|
27591
|
+
[
|
|
27592
|
+
"state_change"
|
|
27593
|
+
],
|
|
27594
|
+
[
|
|
27595
|
+
slot("order_amounts", true, [
|
|
27596
|
+
"orders"
|
|
27597
|
+
]),
|
|
27598
|
+
slot("operation", false, [
|
|
27599
|
+
"operationId"
|
|
27600
|
+
])
|
|
27601
|
+
],
|
|
27602
|
+
[
|
|
27603
|
+
"product_order_line"
|
|
27604
|
+
],
|
|
27605
|
+
[
|
|
27606
|
+
"product_order_line"
|
|
27607
|
+
],
|
|
27608
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27609
|
+
),
|
|
27476
27610
|
defineCapability(
|
|
27477
27611
|
"create_manual_product",
|
|
27478
27612
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -35010,7 +35144,7 @@ var ApiClient = class {
|
|
|
35010
35144
|
};
|
|
35011
35145
|
|
|
35012
35146
|
// src/index.ts
|
|
35013
|
-
var MCP_VERSION = "12.
|
|
35147
|
+
var MCP_VERSION = "12.32.0";
|
|
35014
35148
|
|
|
35015
35149
|
// src/meta-upload-app.ts
|
|
35016
35150
|
import { readFileSync } from "fs";
|
|
@@ -42768,7 +42902,7 @@ function registerConnectionTools(server, api) {
|
|
|
42768
42902
|
}
|
|
42769
42903
|
});
|
|
42770
42904
|
server.registerTool("list_shopify_landing_pixels", {
|
|
42771
|
-
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.',
|
|
42905
|
+
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.',
|
|
42772
42906
|
inputSchema: z162.object({
|
|
42773
42907
|
shopDomain: z162.string().min(3).max(120)
|
|
42774
42908
|
}).shape,
|
|
@@ -45697,6 +45831,7 @@ var importOrdersFileGuidance = getProductMakerCapabilityModelGuidance("import_or
|
|
|
45697
45831
|
var getDropiStatusGuidance = getProductMakerCapabilityModelGuidance("get_dropi_status");
|
|
45698
45832
|
var syncDropiOrdersGuidance = getProductMakerCapabilityModelGuidance("sync_dropi_orders");
|
|
45699
45833
|
var cancelDropiOrderGuidance = getProductMakerCapabilityModelGuidance("cancel_dropi_order");
|
|
45834
|
+
var saveOrderAmountsGuidance = getProductMakerCapabilityModelGuidance("save_order_amounts");
|
|
45700
45835
|
var createManualProductGuidance = getProductMakerCapabilityModelGuidance("create_manual_product");
|
|
45701
45836
|
var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatched_products");
|
|
45702
45837
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
@@ -45800,6 +45935,18 @@ var CancelDropiOrderInput = z173.strictObject({
|
|
|
45800
45935
|
dropiOrderId: DropiOrderIdSchema.describe("N\xFAmero del pedido en Dropi (solo d\xEDgitos), el que muestra \xABMis pedidos\xBB."),
|
|
45801
45936
|
...CancelDropiOrderSchema.shape
|
|
45802
45937
|
});
|
|
45938
|
+
var Amount = z173.number().finite().min(0);
|
|
45939
|
+
var SaveOrderAmountsInput = z173.strictObject({
|
|
45940
|
+
operationId: z173.string().uuid().optional().describe("Solo si tiene m\xE1s de una operaci\xF3n (pa\xEDs)."),
|
|
45941
|
+
orders: z173.array(z173.strictObject({
|
|
45942
|
+
externalOrderId: z173.string().trim().min(1).max(64).describe("N\xFAmero del pedido en Dropi, tal como sale en \xABMis pedidos\xBB."),
|
|
45943
|
+
supplierAmount: Amount.optional().describe("Precio del proveedor."),
|
|
45944
|
+
shippingAmount: Amount.optional().describe("Costo del env\xEDo."),
|
|
45945
|
+
returnShippingAmount: Amount.optional().describe("Flete de devoluci\xF3n, si lo hubo."),
|
|
45946
|
+
commissionAmount: Amount.optional().describe("Comisi\xF3n de la plataforma."),
|
|
45947
|
+
providerProfitAmount: z173.number().finite().optional().describe("\xABMonto a ganar\xBB que muestra Dropi.")
|
|
45948
|
+
})).min(1).max(ORDER_AMOUNTS_BATCH_MAX)
|
|
45949
|
+
});
|
|
45803
45950
|
var CreateManualProductInput = z173.strictObject(CreateManualProductControlSchema.shape).omit({
|
|
45804
45951
|
requestId: true
|
|
45805
45952
|
});
|
|
@@ -46100,6 +46247,20 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
46100
46247
|
throw translateError(error);
|
|
46101
46248
|
}
|
|
46102
46249
|
});
|
|
46250
|
+
server.registerTool("save_order_amounts", {
|
|
46251
|
+
description: saveOrderAmountsGuidance.summary + " \xDAsala con las cifras que le\xEDste en la lupa \xABInformaci\xF3n de la Orden\xBB de Dropi, en unidades de la moneda (79000, no 7900000). Solo completa pedidos que ya est\xE1n en el libro: nunca crea uno ni cambia su estado. Un monto que no mandas no borra el que hab\xEDa. Responde `updated`, `notFound` (sincroniza con sync_dropi_orders y vuelve a intentar) y `multiProduct` (pedidos con varios productos: no se reparten montos).",
|
|
46252
|
+
inputSchema: SaveOrderAmountsInput.shape,
|
|
46253
|
+
annotations: OVERWRITES_INTERNAL
|
|
46254
|
+
}, async (input) => {
|
|
46255
|
+
try {
|
|
46256
|
+
return asText(await api.postJson("/v1/product-control/order-lines/amounts", {
|
|
46257
|
+
...input,
|
|
46258
|
+
provider: "dropi"
|
|
46259
|
+
}));
|
|
46260
|
+
} catch (error) {
|
|
46261
|
+
throw translateError(error);
|
|
46262
|
+
}
|
|
46263
|
+
});
|
|
46103
46264
|
server.registerTool("create_manual_product", {
|
|
46104
46265
|
description: createManualProductGuidance.summary + " Pide TODOS los datos antes de llamarla: el costo del proveedor y el flete sin inventar \u2014 un cero volver\xEDa infinitamente rentable el producto. Las dos tasas son proporciones 0\u20131 y SU estimaci\xF3n, no una medici\xF3n. Reintentar con los mismos datos devuelve el mismo producto; no duplica.",
|
|
46105
46266
|
inputSchema: CreateManualProductInput.shape,
|
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,8 @@ 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.literal("provisional_v1").optional(),
|
|
6025
6029
|
/** New final reviews explicitly account for selected critical technical findings. */
|
|
6026
6030
|
finalReviewContextPolicy: z14.literal("selected_candidate_findings_v1").optional(),
|
|
6027
6031
|
/** New voice requests after localized lengthening override stale timing only. */
|
|
@@ -6369,6 +6373,8 @@ var CreativeEngineReviewSchema = z14.object({
|
|
|
6369
6373
|
"base_routing",
|
|
6370
6374
|
"candidate_quality"
|
|
6371
6375
|
]).optional(),
|
|
6376
|
+
/** Runtime detector veto. The model response schema does not expose it. */
|
|
6377
|
+
provisionalSpeechIsolationVeto: z14.literal(true).optional(),
|
|
6372
6378
|
speechWindows: z14.array(CreativeEngineSpeechObservationSchema).max(3).optional(),
|
|
6373
6379
|
subjectHash: hash,
|
|
6374
6380
|
planRevision: z14.number().int().positive(),
|
|
@@ -6441,6 +6447,8 @@ var CreativeEngineSpeechRoutingSchema = z14.object({
|
|
|
6441
6447
|
"reviewed",
|
|
6442
6448
|
"plan_fallback"
|
|
6443
6449
|
]).optional(),
|
|
6450
|
+
/** Full-frame attempt whose speaker identity needs candidate QA. */
|
|
6451
|
+
unverifiedSpeaker: z14.literal(true).optional(),
|
|
6444
6452
|
/** Why a plan_fallback routing exists: the review's unavailability, or an
|
|
6445
6453
|
* explicit routing rejection accepted degraded with planned windows. */
|
|
6446
6454
|
unavailabilityReason: z14.enum([
|
|
@@ -6577,6 +6585,9 @@ var CreativeEngineCandidateSchema = z14.object({
|
|
|
6577
6585
|
]).optional(),
|
|
6578
6586
|
baseOutputHash: hash.optional(),
|
|
6579
6587
|
routingHash: hash.optional(),
|
|
6588
|
+
speechBaseFallback: z14.literal(true).optional(),
|
|
6589
|
+
/** Provisional windows actually composited into this candidate. */
|
|
6590
|
+
speechPatchedWindowIds: z14.array(id2).min(1).max(3).optional(),
|
|
6580
6591
|
inheritanceHash: hash.optional(),
|
|
6581
6592
|
id: id2,
|
|
6582
6593
|
sceneId: id2,
|
|
@@ -6757,7 +6768,18 @@ var CreativeEngineSpeechWindowRepairStateSchema = z14.object({
|
|
|
6757
6768
|
* the same index; historical receipts pin 2.
|
|
6758
6769
|
*/
|
|
6759
6770
|
attempt: z14.number().int().min(1).max(CREATIVE_ENGINE_MEDIA_RECOVERY_POLICY.paidRetakesMax + 1),
|
|
6760
|
-
supersededCandidateIds: z14.array(id2).max(128).optional()
|
|
6771
|
+
supersededCandidateIds: z14.array(id2).max(128).optional(),
|
|
6772
|
+
/** Exact rejected final that admitted the repair; absent for asset failures and older journals. */
|
|
6773
|
+
sourceFinal: z14.object({
|
|
6774
|
+
reviewId: id2,
|
|
6775
|
+
outputHash: hash,
|
|
6776
|
+
manifestHash: hash,
|
|
6777
|
+
planHash: hash,
|
|
6778
|
+
planRevision: z14.number().int().positive(),
|
|
6779
|
+
selectedCandidateId: id2,
|
|
6780
|
+
/** Same selected takes with confirmed issues outside the paid window. */
|
|
6781
|
+
retainedSelection: z14.record(z14.string(), id2).optional()
|
|
6782
|
+
}).strict().optional()
|
|
6761
6783
|
}).strict();
|
|
6762
6784
|
var CreativeEngineFinalRepairFallbackSchema = z14.object({
|
|
6763
6785
|
owner: CreativeEngineOwnerSchema,
|
|
@@ -6804,6 +6826,18 @@ var CreativeEngineStateSchema = z14.object({
|
|
|
6804
6826
|
retainedSceneCandidates: z14.array(CreativeEngineRetainedSceneCandidateBindingSchema).optional(),
|
|
6805
6827
|
inheritedSceneOutputs: z14.array(CreativeEngineInheritedSceneOutputSchema).optional(),
|
|
6806
6828
|
speechRoutings: z14.array(CreativeEngineSpeechRoutingSchema).optional(),
|
|
6829
|
+
provisionalFinalSpeech: z14.object({
|
|
6830
|
+
reviewId: id2,
|
|
6831
|
+
candidateIds: z14.array(id2).min(1),
|
|
6832
|
+
planHash: hash,
|
|
6833
|
+
final: CreativeEngineFinalSchema,
|
|
6834
|
+
selection: z14.record(z14.string(), id2),
|
|
6835
|
+
active: z14.boolean()
|
|
6836
|
+
}).strict().optional(),
|
|
6837
|
+
speechFallbackAdmissionRefusals: z14.record(hash, z14.enum([
|
|
6838
|
+
"cost_budget_exhausted",
|
|
6839
|
+
"post_budget_exhausted"
|
|
6840
|
+
])).optional(),
|
|
6807
6841
|
speechWindowRepair: CreativeEngineSpeechWindowRepairStateSchema.optional(),
|
|
6808
6842
|
selection: z14.record(z14.string(), id2),
|
|
6809
6843
|
selectionManifestHash: hash.optional(),
|
|
@@ -6977,6 +7011,23 @@ var CreativeEngineEventSchema = z14.discriminatedUnion("type", [
|
|
|
6977
7011
|
type: z14.literal("repair_requested"),
|
|
6978
7012
|
sceneId: id2
|
|
6979
7013
|
}).strict(),
|
|
7014
|
+
z14.object({
|
|
7015
|
+
type: z14.literal("provisional_final_speech_decided"),
|
|
7016
|
+
reviewId: id2,
|
|
7017
|
+
candidateIds: z14.array(id2).min(1),
|
|
7018
|
+
admitted: z14.boolean()
|
|
7019
|
+
}).strict(),
|
|
7020
|
+
z14.object({
|
|
7021
|
+
type: z14.literal("provisional_final_speech_restored")
|
|
7022
|
+
}).strict(),
|
|
7023
|
+
z14.object({
|
|
7024
|
+
type: z14.literal("speech_fallback_admission_refused"),
|
|
7025
|
+
operation: CreativeEngineOperationSchema,
|
|
7026
|
+
reason: z14.enum([
|
|
7027
|
+
"cost_budget_exhausted",
|
|
7028
|
+
"post_budget_exhausted"
|
|
7029
|
+
])
|
|
7030
|
+
}).strict(),
|
|
6980
7031
|
z14.object({
|
|
6981
7032
|
type: z14.literal("plan_repair_admission_denied"),
|
|
6982
7033
|
planHash: hash,
|
|
@@ -12811,6 +12862,11 @@ var ShopifyLandingPixelsResponse = z42.object({
|
|
|
12811
12862
|
* could not be read (password, timeout): the selection works the same.
|
|
12812
12863
|
*/
|
|
12813
12864
|
appPixels: z42.array(ShopifyAppPixel).default([]),
|
|
12865
|
+
/**
|
|
12866
|
+
* False when the storefront could not be read, so an empty `appPixels`
|
|
12867
|
+
* means "unknown", not "no app pixels". Absent (older API) means true.
|
|
12868
|
+
*/
|
|
12869
|
+
appPixelsChecked: z42.boolean().default(true),
|
|
12814
12870
|
/** The theme holds tracking code we do not recognize and never copy. */
|
|
12815
12871
|
unrecognizedCodeDetected: z42.boolean()
|
|
12816
12872
|
});
|
|
@@ -23716,6 +23772,21 @@ var CAPABILITY_MODEL_GUIDANCE = {
|
|
|
23716
23772
|
"autoridad expl\xEDcita del comprador o vendedor; no se deshace"
|
|
23717
23773
|
]
|
|
23718
23774
|
},
|
|
23775
|
+
save_order_amounts: {
|
|
23776
|
+
summary: "Guarda los montos reales de pedidos Dropi que ya est\xE1n en el libro.",
|
|
23777
|
+
useWhen: [
|
|
23778
|
+
"le\xEDste los montos de un pedido en el panel de Dropi"
|
|
23779
|
+
],
|
|
23780
|
+
avoidWhen: [
|
|
23781
|
+
"el pedido no est\xE1 en el libro: primero sync_dropi_orders"
|
|
23782
|
+
],
|
|
23783
|
+
defaults: [
|
|
23784
|
+
"proveedor dropi"
|
|
23785
|
+
],
|
|
23786
|
+
disclosures: [
|
|
23787
|
+
"autoridad expl\xEDcita del vendedor; solo cifras, no crea pedidos"
|
|
23788
|
+
]
|
|
23789
|
+
},
|
|
23719
23790
|
sync_dropi_orders: {
|
|
23720
23791
|
summary: "Trae los pedidos reales de su cuenta Dropi al libro de cuentas.",
|
|
23721
23792
|
useWhen: [
|
|
@@ -24541,6 +24612,44 @@ var SyncShopifyOrdersSchema = z105.object({
|
|
|
24541
24612
|
since: z105.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
|
|
24542
24613
|
until: z105.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional()
|
|
24543
24614
|
}).strict();
|
|
24615
|
+
var ORDER_AMOUNTS_BATCH_MAX = 200;
|
|
24616
|
+
var OrderAmountsSchema = z105.object({
|
|
24617
|
+
externalOrderId: z105.string().trim().min(1).max(64),
|
|
24618
|
+
supplierAmount: z105.number().finite().min(0).optional(),
|
|
24619
|
+
shippingAmount: z105.number().finite().min(0).optional(),
|
|
24620
|
+
returnShippingAmount: z105.number().finite().min(0).optional(),
|
|
24621
|
+
commissionAmount: z105.number().finite().min(0).optional(),
|
|
24622
|
+
providerProfitAmount: z105.number().finite().optional()
|
|
24623
|
+
}).strict().refine((order) => [
|
|
24624
|
+
order.supplierAmount,
|
|
24625
|
+
order.shippingAmount,
|
|
24626
|
+
order.returnShippingAmount,
|
|
24627
|
+
order.commissionAmount,
|
|
24628
|
+
order.providerProfitAmount
|
|
24629
|
+
].some((amount) => amount !== void 0), {
|
|
24630
|
+
message: "order_amounts_empty",
|
|
24631
|
+
path: [
|
|
24632
|
+
"externalOrderId"
|
|
24633
|
+
]
|
|
24634
|
+
});
|
|
24635
|
+
var SaveOrderAmountsSchema = z105.object({
|
|
24636
|
+
operationId: z105.string().guid().optional(),
|
|
24637
|
+
provider: z105.literal("dropi").default("dropi"),
|
|
24638
|
+
orders: z105.array(OrderAmountsSchema).min(1).max(ORDER_AMOUNTS_BATCH_MAX)
|
|
24639
|
+
}).strict().refine((input) => new Set(input.orders.map((order) => order.externalOrderId)).size === input.orders.length, {
|
|
24640
|
+
message: "order_amounts_duplicate_order",
|
|
24641
|
+
path: [
|
|
24642
|
+
"orders"
|
|
24643
|
+
]
|
|
24644
|
+
});
|
|
24645
|
+
var SaveOrderAmountsResultSchema = z105.object({
|
|
24646
|
+
/** Pedidos cuyos montos quedaron guardados. */
|
|
24647
|
+
updated: z105.array(z105.string()),
|
|
24648
|
+
/** No están en el libro: primero hay que sincronizar el proveedor. */
|
|
24649
|
+
notFound: z105.array(z105.string()),
|
|
24650
|
+
/** Tienen varios productos y la lupa da montos del pedido entero. */
|
|
24651
|
+
multiProduct: z105.array(z105.string())
|
|
24652
|
+
});
|
|
24544
24653
|
|
|
24545
24654
|
// ../../packages/types/src/product-control.ts
|
|
24546
24655
|
import { z as z106 } from "zod";
|
|
@@ -27248,6 +27357,31 @@ var PRODUCTMAKER_CAPABILITY_REGISTRY = deepFreeze([
|
|
|
27248
27357
|
],
|
|
27249
27358
|
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27250
27359
|
),
|
|
27360
|
+
defineCapability(
|
|
27361
|
+
"save_order_amounts",
|
|
27362
|
+
// Filled by the MCP schema fingerprint test.
|
|
27363
|
+
"6a98473ad145a9e3f18487333cbf348e6a4bc4dab78f1f59639518a183c2f4a5",
|
|
27364
|
+
"state_change",
|
|
27365
|
+
"business",
|
|
27366
|
+
[
|
|
27367
|
+
"state_change"
|
|
27368
|
+
],
|
|
27369
|
+
[
|
|
27370
|
+
slot("order_amounts", true, [
|
|
27371
|
+
"orders"
|
|
27372
|
+
]),
|
|
27373
|
+
slot("operation", false, [
|
|
27374
|
+
"operationId"
|
|
27375
|
+
])
|
|
27376
|
+
],
|
|
27377
|
+
[
|
|
27378
|
+
"product_order_line"
|
|
27379
|
+
],
|
|
27380
|
+
[
|
|
27381
|
+
"product_order_line"
|
|
27382
|
+
],
|
|
27383
|
+
MCP_ONLY_CHANNEL_EXPOSURE
|
|
27384
|
+
),
|
|
27251
27385
|
defineCapability(
|
|
27252
27386
|
"create_manual_product",
|
|
27253
27387
|
// Filled by the MCP schema fingerprint test.
|
|
@@ -33337,7 +33471,7 @@ var ApiClient = class {
|
|
|
33337
33471
|
};
|
|
33338
33472
|
|
|
33339
33473
|
// src/index.ts
|
|
33340
|
-
var MCP_VERSION = "12.
|
|
33474
|
+
var MCP_VERSION = "12.32.0";
|
|
33341
33475
|
|
|
33342
33476
|
// src/meta-upload-app.ts
|
|
33343
33477
|
import { readFileSync } from "fs";
|
|
@@ -41253,7 +41387,7 @@ function registerConnectionTools(server, api) {
|
|
|
41253
41387
|
}
|
|
41254
41388
|
});
|
|
41255
41389
|
server.registerTool("list_shopify_landing_pixels", {
|
|
41256
|
-
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.',
|
|
41390
|
+
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.',
|
|
41257
41391
|
inputSchema: z161.object({
|
|
41258
41392
|
shopDomain: z161.string().min(3).max(120)
|
|
41259
41393
|
}).shape,
|
|
@@ -44182,6 +44316,7 @@ var importOrdersFileGuidance = getProductMakerCapabilityModelGuidance("import_or
|
|
|
44182
44316
|
var getDropiStatusGuidance = getProductMakerCapabilityModelGuidance("get_dropi_status");
|
|
44183
44317
|
var syncDropiOrdersGuidance = getProductMakerCapabilityModelGuidance("sync_dropi_orders");
|
|
44184
44318
|
var cancelDropiOrderGuidance = getProductMakerCapabilityModelGuidance("cancel_dropi_order");
|
|
44319
|
+
var saveOrderAmountsGuidance = getProductMakerCapabilityModelGuidance("save_order_amounts");
|
|
44185
44320
|
var createManualProductGuidance = getProductMakerCapabilityModelGuidance("create_manual_product");
|
|
44186
44321
|
var listUnmatchedGuidance = getProductMakerCapabilityModelGuidance("list_unmatched_products");
|
|
44187
44322
|
var resolveUnmatchedGuidance = getProductMakerCapabilityModelGuidance("resolve_unmatched_product");
|
|
@@ -44285,6 +44420,18 @@ var CancelDropiOrderInput = z172.strictObject({
|
|
|
44285
44420
|
dropiOrderId: DropiOrderIdSchema.describe("N\xFAmero del pedido en Dropi (solo d\xEDgitos), el que muestra \xABMis pedidos\xBB."),
|
|
44286
44421
|
...CancelDropiOrderSchema.shape
|
|
44287
44422
|
});
|
|
44423
|
+
var Amount = z172.number().finite().min(0);
|
|
44424
|
+
var SaveOrderAmountsInput = z172.strictObject({
|
|
44425
|
+
operationId: z172.string().uuid().optional().describe("Solo si tiene m\xE1s de una operaci\xF3n (pa\xEDs)."),
|
|
44426
|
+
orders: z172.array(z172.strictObject({
|
|
44427
|
+
externalOrderId: z172.string().trim().min(1).max(64).describe("N\xFAmero del pedido en Dropi, tal como sale en \xABMis pedidos\xBB."),
|
|
44428
|
+
supplierAmount: Amount.optional().describe("Precio del proveedor."),
|
|
44429
|
+
shippingAmount: Amount.optional().describe("Costo del env\xEDo."),
|
|
44430
|
+
returnShippingAmount: Amount.optional().describe("Flete de devoluci\xF3n, si lo hubo."),
|
|
44431
|
+
commissionAmount: Amount.optional().describe("Comisi\xF3n de la plataforma."),
|
|
44432
|
+
providerProfitAmount: z172.number().finite().optional().describe("\xABMonto a ganar\xBB que muestra Dropi.")
|
|
44433
|
+
})).min(1).max(ORDER_AMOUNTS_BATCH_MAX)
|
|
44434
|
+
});
|
|
44288
44435
|
var CreateManualProductInput = z172.strictObject(CreateManualProductControlSchema.shape).omit({
|
|
44289
44436
|
requestId: true
|
|
44290
44437
|
});
|
|
@@ -44585,6 +44732,20 @@ function registerProductControlTools(server, api, { transport = "http" } = {}) {
|
|
|
44585
44732
|
throw translateError(error);
|
|
44586
44733
|
}
|
|
44587
44734
|
});
|
|
44735
|
+
server.registerTool("save_order_amounts", {
|
|
44736
|
+
description: saveOrderAmountsGuidance.summary + " \xDAsala con las cifras que le\xEDste en la lupa \xABInformaci\xF3n de la Orden\xBB de Dropi, en unidades de la moneda (79000, no 7900000). Solo completa pedidos que ya est\xE1n en el libro: nunca crea uno ni cambia su estado. Un monto que no mandas no borra el que hab\xEDa. Responde `updated`, `notFound` (sincroniza con sync_dropi_orders y vuelve a intentar) y `multiProduct` (pedidos con varios productos: no se reparten montos).",
|
|
44737
|
+
inputSchema: SaveOrderAmountsInput.shape,
|
|
44738
|
+
annotations: OVERWRITES_INTERNAL
|
|
44739
|
+
}, async (input) => {
|
|
44740
|
+
try {
|
|
44741
|
+
return asText(await api.postJson("/v1/product-control/order-lines/amounts", {
|
|
44742
|
+
...input,
|
|
44743
|
+
provider: "dropi"
|
|
44744
|
+
}));
|
|
44745
|
+
} catch (error) {
|
|
44746
|
+
throw translateError(error);
|
|
44747
|
+
}
|
|
44748
|
+
});
|
|
44588
44749
|
server.registerTool("create_manual_product", {
|
|
44589
44750
|
description: createManualProductGuidance.summary + " Pide TODOS los datos antes de llamarla: el costo del proveedor y el flete sin inventar \u2014 un cero volver\xEDa infinitamente rentable el producto. Las dos tasas son proporciones 0\u20131 y SU estimaci\xF3n, no una medici\xF3n. Reintentar con los mismos datos devuelve el mismo producto; no duplica.",
|
|
44590
44751
|
inputSchema: CreateManualProductInput.shape,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.32.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.",
|