ponch-mcp-server 1.0.91 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12168,7 +12168,6 @@ var SnapshotMetaSchema = import_zod28.z.object({
|
|
|
12168
12168
|
|
|
12169
12169
|
// ../packages/marketing-business-logic/dist/index.js
|
|
12170
12170
|
var import_firebase_admin2 = require("firebase-admin");
|
|
12171
|
-
var import_zod33 = require("zod");
|
|
12172
12171
|
|
|
12173
12172
|
// ../../../../packages/martin-core/dist/index.js
|
|
12174
12173
|
var import_zod29 = require("zod");
|
|
@@ -12968,6 +12967,7 @@ var listarRutinasContract2 = MartinContractSchema2.parse(
|
|
|
12968
12967
|
);
|
|
12969
12968
|
|
|
12970
12969
|
// ../packages/marketing-business-logic/dist/index.js
|
|
12970
|
+
var import_zod33 = require("zod");
|
|
12971
12971
|
var import_firebase_admin3 = require("firebase-admin");
|
|
12972
12972
|
var import_zod34 = require("zod");
|
|
12973
12973
|
var import_firebase_admin4 = require("firebase-admin");
|
|
@@ -13163,7 +13163,9 @@ async function brandBriefWriter(input) {
|
|
|
13163
13163
|
hint: "Revisa el ejemplo y corrige el campo indicado en path. Manda objeto/array nativo, NO string JSON."
|
|
13164
13164
|
};
|
|
13165
13165
|
}
|
|
13166
|
-
const brandRef = db.
|
|
13166
|
+
const brandRef = db.doc(
|
|
13167
|
+
docPath2({ kind: "brand-nested", tenantId, brandId }, "marketing_config", "main")
|
|
13168
|
+
);
|
|
13167
13169
|
const brandSnap = await brandRef.get();
|
|
13168
13170
|
if (!brandSnap.exists) {
|
|
13169
13171
|
return { ok: false, error: `Brand "${brandId}" no encontrada`, code: "BRAND_NOT_FOUND" };
|
|
@@ -13236,7 +13238,7 @@ var rawContract = {
|
|
|
13236
13238
|
});
|
|
13237
13239
|
},
|
|
13238
13240
|
auditAction: "marketing.brand_brief.guardar",
|
|
13239
|
-
extractTargetPath: (input) => `tenants/${input.tenantId}/
|
|
13241
|
+
extractTargetPath: (input) => `tenants/${input.tenantId}/brands/${input.brandId}/marketing_config/main`,
|
|
13240
13242
|
extractChanges: (input, output) => ({
|
|
13241
13243
|
before: null,
|
|
13242
13244
|
// El helper no lee el brief previo (set merge).
|
|
@@ -13473,7 +13475,9 @@ async function collectionSuggestionsWriter(input) {
|
|
|
13473
13475
|
};
|
|
13474
13476
|
}
|
|
13475
13477
|
const validSuggestions = validation.parsed;
|
|
13476
|
-
const brandRef = db.
|
|
13478
|
+
const brandRef = db.doc(
|
|
13479
|
+
docPath2({ kind: "brand-nested", tenantId, brandId }, "marketing_config", "main")
|
|
13480
|
+
);
|
|
13477
13481
|
const brandSnap = await brandRef.get();
|
|
13478
13482
|
if (!brandSnap.exists) {
|
|
13479
13483
|
return { ok: false, error: `Brand ${brandId} no encontrada`, code: "BRAND_NOT_FOUND" };
|
|
@@ -13559,7 +13563,7 @@ var rawContract3 = {
|
|
|
13559
13563
|
});
|
|
13560
13564
|
},
|
|
13561
13565
|
auditAction: "marketing.collection_suggestions.guardar",
|
|
13562
|
-
extractTargetPath: (input) => `tenants/${input.tenantId}/
|
|
13566
|
+
extractTargetPath: (input) => `tenants/${input.tenantId}/brands/${input.brandId}/marketing_config/main`,
|
|
13563
13567
|
extractChanges: (input, output) => ({
|
|
13564
13568
|
before: null,
|
|
13565
13569
|
// Helper hace merge sin leer estado previo.
|
|
@@ -17565,7 +17569,7 @@ async function contentFinder(input) {
|
|
|
17565
17569
|
const textThreshold = deps.thresholds?.text ?? DEFAULT_TEXT_THRESHOLD;
|
|
17566
17570
|
const imageThreshold = deps.thresholds?.image ?? DEFAULT_IMAGE_THRESHOLD;
|
|
17567
17571
|
const conflictThreshold = deps.thresholds?.conflictSimilarity ?? DEFAULT_CONFLICT_THRESHOLD;
|
|
17568
|
-
const configSnap = await db.
|
|
17572
|
+
const configSnap = await db.doc(docPath2({ kind: "brand-nested", tenantId, brandId }, "marketing_config", "main")).get();
|
|
17569
17573
|
const brand = configSnap.exists ? configSnap.data() : null;
|
|
17570
17574
|
const brandBrief = brand?.brandBrief ?? null;
|
|
17571
17575
|
const visualRules = brandBrief?.visualRules ?? {};
|