@productmaker/mcp 12.18.1 → 12.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/http.js CHANGED
@@ -8043,7 +8043,15 @@ var LandingResultsTimeframeSchema = z23.object({
8043
8043
  label: z23.string().trim().min(1).max(40),
8044
8044
  source: LandingResultsTimeframeSourceSchema
8045
8045
  }).strict();
8046
+ var CodeLandingOfferItemOptionsSchema = z23.array(z23.object({
8047
+ name: z23.string().trim().min(1).max(80),
8048
+ values: z23.array(z23.string().trim().min(1).max(120)).max(16).refine((values) => new Set(values.map((value) => value.toLocaleLowerCase())).size === values.length, "Item option values must be distinct")
8049
+ }).strict()).max(3).refine((options) => new Set(options.map(({ name }) => name.toLocaleLowerCase())).size === options.length, "Item option names must be distinct");
8046
8050
  var CodeLandingCommerceSnapshotSchema = z23.object({
8051
+ /** Fulfillment details chosen independently per physical item in a pack. */
8052
+ offerItemOptions: CodeLandingOfferItemOptionsSchema.optional(),
8053
+ /** Server-only publication proof scoped to one exact Shopify product. */
8054
+ itemOptionsReleasitExcludedProductId: z23.string().regex(/^[1-9]\d*$/u).optional(),
8047
8055
  sellerPricingPolicyVersion: z23.literal(1).optional(),
8048
8056
  sellerPromotionText: z23.string().max(240).optional(),
8049
8057
  productVariantId: z23.string().trim().min(1).max(500).optional(),
@@ -8499,6 +8507,8 @@ var CodeLandingDeferredAuthorProviderResultSchema = z23.object({
8499
8507
  providerResult: z23.record(z23.string(), z23.unknown())
8500
8508
  });
8501
8509
  var CodeLandingCommerceChangeSchema = z23.object({
8510
+ /** Omission preserves the options. An empty list removes them. */
8511
+ itemOptions: CodeLandingOfferItemOptionsSchema.optional(),
8502
8512
  price: z23.string().trim().min(1).max(40).optional(),
8503
8513
  compareAtPrice: z23.string().trim().min(1).max(40).nullable().optional(),
8504
8514
  /** Remove offer quantities without deleting their Shopify variants. */
@@ -12781,10 +12791,33 @@ var ShopifyProductSummary = z42.object({
12781
12791
  minPrice: z42.string(),
12782
12792
  currencyCode: z42.string().min(3).max(3)
12783
12793
  });
12794
+ var ShopifyProductGid = z42.string().max(120).regex(/^gid:\/\/shopify\/Product\/[1-9]\d*$/u);
12795
+ var ShopifyVariantGid = z42.string().max(120).regex(/^gid:\/\/shopify\/ProductVariant\/[1-9]\d*$/u);
12796
+ var ClassicPerItemCheckoutSchema = z42.object({
12797
+ productId: ShopifyProductGid,
12798
+ itemOptions: CodeLandingOfferItemOptionsSchema.refine((options) => options.length > 0),
12799
+ bindings: z42.array(z42.object({
12800
+ variantId: ShopifyVariantGid,
12801
+ units: z42.number().int().min(1).max(25)
12802
+ }).strict()).min(1).max(8)
12803
+ }).strict().refine(({ bindings }) => new Set(bindings.map(({ variantId }) => variantId)).size === bindings.length, {
12804
+ path: [
12805
+ "bindings"
12806
+ ],
12807
+ message: "Cada variante puede vincularse una sola vez."
12808
+ });
12809
+ var ClassicVariantOptionsSchema = z42.object({
12810
+ productId: ShopifyProductGid,
12811
+ currency: z42.string().length(3),
12812
+ complete: z42.boolean(),
12813
+ candidates: z42.array(PublishVariantCandidateSchema).max(250),
12814
+ saved: ClassicPerItemCheckoutSchema.optional()
12815
+ }).strict();
12784
12816
  var ShopifyProductsListResponse = z42.object({
12785
12817
  products: z42.array(ShopifyProductSummary),
12786
12818
  currentTarget: ShopifyProductSummary.nullable(),
12787
- currentTargetMissing: z42.boolean()
12819
+ currentTargetMissing: z42.boolean(),
12820
+ classicVariantOptions: ClassicVariantOptionsSchema.optional()
12788
12821
  });
12789
12822
  var SelectedLandingImage = z42.object({
12790
12823
  /** 0-based index of the image in the landing.images array */
@@ -12842,6 +12875,8 @@ var ShopifyPublishRequest = z42.object({
12842
12875
  /** Omitted keeps legacy publication behavior; null explicitly excludes the GIF. */
12843
12876
  selectedLandingGif: LandingGifSelectionSchema.nullable().optional(),
12844
12877
  classicSelection: ClassicLandingSelectionSnapshotSchema.optional(),
12878
+ /** Omission retains a verified same-target configuration. Null clears it. */
12879
+ classicPerItemCheckout: ClassicPerItemCheckoutSchema.nullable().optional(),
12845
12880
  shopDomain: z42.string().min(3).max(120).optional(),
12846
12881
  /**
12847
12882
  * Landing images to include in the Shopify page with their selected variants.
@@ -12874,6 +12909,15 @@ var ShopifyPublishRequest = z42.object({
12874
12909
  */
12875
12910
  landingPixels: LandingPixelSelection.optional()
12876
12911
  }).superRefine((data, ctx) => {
12912
+ if (data.classicPerItemCheckout && data.publicationMode === "new") {
12913
+ ctx.addIssue({
12914
+ code: z42.ZodIssueCode.custom,
12915
+ path: [
12916
+ "classicPerItemCheckout"
12917
+ ],
12918
+ message: "Selecciona un producto existente para personalizar el pack."
12919
+ });
12920
+ }
12877
12921
  if (data.publicationMode === "existing" && !data.targetProductId) {
12878
12922
  ctx.addIssue({
12879
12923
  code: z42.ZodIssueCode.custom,
@@ -12904,7 +12948,8 @@ var ShopifyPublishRequest = z42.object({
12904
12948
  });
12905
12949
  var CodeLandingThemeSetupRequest = z42.object(ShopifyPublishRequest.shape).omit({
12906
12950
  publishAttemptId: true,
12907
- commerceCorrection: true
12951
+ commerceCorrection: true,
12952
+ classicPerItemCheckout: true
12908
12953
  });
12909
12954
  var ShopifyPublicationStatus = z42.enum([
12910
12955
  "pending",
@@ -13081,6 +13126,8 @@ var ShopifyPublishErrorResponse = z42.discriminatedUnion("code", [
13081
13126
  "SHOPIFY_NO_PUBLISHED_THEME",
13082
13127
  "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
13083
13128
  "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
13129
+ "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
13130
+ "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
13084
13131
  /**
13085
13132
  * A publish failure we understand (Shopify did not keep the offer's
13086
13133
  * variants, another app rewrote the product, landing too large).
@@ -32818,7 +32865,7 @@ var ApiClient = class {
32818
32865
  };
32819
32866
 
32820
32867
  // src/index.ts
32821
- var MCP_VERSION = "12.18.1";
32868
+ var MCP_VERSION = "12.18.2";
32822
32869
 
32823
32870
  // src/meta-upload-app.ts
32824
32871
  import { readFileSync } from "fs";
@@ -34261,6 +34308,8 @@ var McpErrorCode = {
34261
34308
  SHOPIFY_THEME_STRUCTURE_UNSUPPORTED: "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
34262
34309
  SHOPIFY_PUBLISH_INPUT_REQUIRED: "SHOPIFY_PUBLISH_INPUT_REQUIRED",
34263
34310
  SHOPIFY_PUBLISH_CONTEXT_CHANGED: "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
34311
+ SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
34312
+ SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
34264
34313
  SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
34265
34314
  SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
34266
34315
  SHOPIFY_PUBLISH_VERIFICATION_FAILED: "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
@@ -34363,6 +34412,8 @@ var CODE_MESSAGES = {
34363
34412
  SHOPIFY_PUBLISH_FAILED: "Shopify did not confirm publication. Check the task and Shopify store before another attempt; a new product may already exist. Do not retry blindly or change the publication target.",
34364
34413
  SHOPIFY_PUBLISH_INPUT_REQUIRED: "Review every recovery issue with the seller. Ask for missing prices and confirm the exact currency, unit price and pack totals before resending commerceCorrection with confirmed:true. Never invent amounts, convert currency or remove an offer.",
34365
34414
  SHOPIFY_PUBLISH_CONTEXT_CHANGED: "The publication context changed. Reopen the task in ProductMaker, review the current store, product and landing revision, and obtain fresh confirmation. Do not reuse this correction.",
34415
+ SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "The saved pack setup no longer matches the selected Shopify product. Open the landing in ProductMaker, review the Shopify product and select the pack variants again before publishing.",
34416
+ SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "This product needs native Shopify checkout to keep the choices for each item in the pack. Verify native checkout for this product in Shopify, then open the landing in ProductMaker to finish publishing.",
34366
34417
  SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "Open the landing editor in ProductMaker to reconcile the visible offer with checkout prices. The correction was not saved; do not retry it automatically or regenerate the landing without approval.",
34367
34418
  SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "The seller confirmed exactly the suggested values and the offer still cannot publish \u2014 resending the same correction will loop. Read the error's reason to the user and send them to the landing editor in ProductMaker to adjust the offer, then publish again. Do not resend commerceCorrection.",
34368
34419
  SHOPIFY_PUBLISH_VERIFICATION_FAILED: "Shopify did not keep what the publish wrote (offer variants, template or inventory), or the landing is too large. Read the error's reason to the user; retry the publish once, and if it repeats follow the step in the reason (map packs to existing variants, check apps that edit products, or trim the landing in the editor).",
@@ -34663,6 +34714,8 @@ var INVALID_PARAM_CODES = /* @__PURE__ */ new Set([
34663
34714
  McpErrorCode.SHOPIFY_THEME_STRUCTURE_UNSUPPORTED,
34664
34715
  McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
34665
34716
  McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
34717
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
34718
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
34666
34719
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
34667
34720
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
34668
34721
  McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
@@ -34702,6 +34755,8 @@ var PASSTHROUGH_CODES = /* @__PURE__ */ new Set([
34702
34755
  // Shopify
34703
34756
  McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
34704
34757
  McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
34758
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
34759
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
34705
34760
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
34706
34761
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
34707
34762
  McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
@@ -34893,7 +34948,7 @@ function translateError(err) {
34893
34948
  const code2 = McpErrorCode[admission.data.code];
34894
34949
  return mcp(code2, resolveMessage(code2, void 0));
34895
34950
  }
34896
- if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
34951
+ if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
34897
34952
  const parsed = ShopifyPublishErrorResponse.safeParse(body);
34898
34953
  if (!parsed.success) return mcp(McpErrorCode.INTERNAL, resolveMessage(McpErrorCode.INTERNAL, void 0));
34899
34954
  const details = parsed.data;
@@ -40877,6 +40932,8 @@ function registerPublishTools(server, api, opts = {}) {
40877
40932
  if (isRecord3(error.data) && [
40878
40933
  "SHOPIFY_PUBLISH_INPUT_REQUIRED",
40879
40934
  "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
40935
+ "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
40936
+ "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
40880
40937
  "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
40881
40938
  "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
40882
40939
  "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
package/dist/stdio.js CHANGED
@@ -7818,7 +7818,15 @@ var LandingResultsTimeframeSchema = z23.object({
7818
7818
  label: z23.string().trim().min(1).max(40),
7819
7819
  source: LandingResultsTimeframeSourceSchema
7820
7820
  }).strict();
7821
+ var CodeLandingOfferItemOptionsSchema = z23.array(z23.object({
7822
+ name: z23.string().trim().min(1).max(80),
7823
+ values: z23.array(z23.string().trim().min(1).max(120)).max(16).refine((values) => new Set(values.map((value) => value.toLocaleLowerCase())).size === values.length, "Item option values must be distinct")
7824
+ }).strict()).max(3).refine((options) => new Set(options.map(({ name }) => name.toLocaleLowerCase())).size === options.length, "Item option names must be distinct");
7821
7825
  var CodeLandingCommerceSnapshotSchema = z23.object({
7826
+ /** Fulfillment details chosen independently per physical item in a pack. */
7827
+ offerItemOptions: CodeLandingOfferItemOptionsSchema.optional(),
7828
+ /** Server-only publication proof scoped to one exact Shopify product. */
7829
+ itemOptionsReleasitExcludedProductId: z23.string().regex(/^[1-9]\d*$/u).optional(),
7822
7830
  sellerPricingPolicyVersion: z23.literal(1).optional(),
7823
7831
  sellerPromotionText: z23.string().max(240).optional(),
7824
7832
  productVariantId: z23.string().trim().min(1).max(500).optional(),
@@ -8274,6 +8282,8 @@ var CodeLandingDeferredAuthorProviderResultSchema = z23.object({
8274
8282
  providerResult: z23.record(z23.string(), z23.unknown())
8275
8283
  });
8276
8284
  var CodeLandingCommerceChangeSchema = z23.object({
8285
+ /** Omission preserves the options. An empty list removes them. */
8286
+ itemOptions: CodeLandingOfferItemOptionsSchema.optional(),
8277
8287
  price: z23.string().trim().min(1).max(40).optional(),
8278
8288
  compareAtPrice: z23.string().trim().min(1).max(40).nullable().optional(),
8279
8289
  /** Remove offer quantities without deleting their Shopify variants. */
@@ -12556,10 +12566,33 @@ var ShopifyProductSummary = z42.object({
12556
12566
  minPrice: z42.string(),
12557
12567
  currencyCode: z42.string().min(3).max(3)
12558
12568
  });
12569
+ var ShopifyProductGid = z42.string().max(120).regex(/^gid:\/\/shopify\/Product\/[1-9]\d*$/u);
12570
+ var ShopifyVariantGid = z42.string().max(120).regex(/^gid:\/\/shopify\/ProductVariant\/[1-9]\d*$/u);
12571
+ var ClassicPerItemCheckoutSchema = z42.object({
12572
+ productId: ShopifyProductGid,
12573
+ itemOptions: CodeLandingOfferItemOptionsSchema.refine((options) => options.length > 0),
12574
+ bindings: z42.array(z42.object({
12575
+ variantId: ShopifyVariantGid,
12576
+ units: z42.number().int().min(1).max(25)
12577
+ }).strict()).min(1).max(8)
12578
+ }).strict().refine(({ bindings }) => new Set(bindings.map(({ variantId }) => variantId)).size === bindings.length, {
12579
+ path: [
12580
+ "bindings"
12581
+ ],
12582
+ message: "Cada variante puede vincularse una sola vez."
12583
+ });
12584
+ var ClassicVariantOptionsSchema = z42.object({
12585
+ productId: ShopifyProductGid,
12586
+ currency: z42.string().length(3),
12587
+ complete: z42.boolean(),
12588
+ candidates: z42.array(PublishVariantCandidateSchema).max(250),
12589
+ saved: ClassicPerItemCheckoutSchema.optional()
12590
+ }).strict();
12559
12591
  var ShopifyProductsListResponse = z42.object({
12560
12592
  products: z42.array(ShopifyProductSummary),
12561
12593
  currentTarget: ShopifyProductSummary.nullable(),
12562
- currentTargetMissing: z42.boolean()
12594
+ currentTargetMissing: z42.boolean(),
12595
+ classicVariantOptions: ClassicVariantOptionsSchema.optional()
12563
12596
  });
12564
12597
  var SelectedLandingImage = z42.object({
12565
12598
  /** 0-based index of the image in the landing.images array */
@@ -12617,6 +12650,8 @@ var ShopifyPublishRequest = z42.object({
12617
12650
  /** Omitted keeps legacy publication behavior; null explicitly excludes the GIF. */
12618
12651
  selectedLandingGif: LandingGifSelectionSchema.nullable().optional(),
12619
12652
  classicSelection: ClassicLandingSelectionSnapshotSchema.optional(),
12653
+ /** Omission retains a verified same-target configuration. Null clears it. */
12654
+ classicPerItemCheckout: ClassicPerItemCheckoutSchema.nullable().optional(),
12620
12655
  shopDomain: z42.string().min(3).max(120).optional(),
12621
12656
  /**
12622
12657
  * Landing images to include in the Shopify page with their selected variants.
@@ -12649,6 +12684,15 @@ var ShopifyPublishRequest = z42.object({
12649
12684
  */
12650
12685
  landingPixels: LandingPixelSelection.optional()
12651
12686
  }).superRefine((data, ctx) => {
12687
+ if (data.classicPerItemCheckout && data.publicationMode === "new") {
12688
+ ctx.addIssue({
12689
+ code: z42.ZodIssueCode.custom,
12690
+ path: [
12691
+ "classicPerItemCheckout"
12692
+ ],
12693
+ message: "Selecciona un producto existente para personalizar el pack."
12694
+ });
12695
+ }
12652
12696
  if (data.publicationMode === "existing" && !data.targetProductId) {
12653
12697
  ctx.addIssue({
12654
12698
  code: z42.ZodIssueCode.custom,
@@ -12679,7 +12723,8 @@ var ShopifyPublishRequest = z42.object({
12679
12723
  });
12680
12724
  var CodeLandingThemeSetupRequest = z42.object(ShopifyPublishRequest.shape).omit({
12681
12725
  publishAttemptId: true,
12682
- commerceCorrection: true
12726
+ commerceCorrection: true,
12727
+ classicPerItemCheckout: true
12683
12728
  });
12684
12729
  var ShopifyPublicationStatus = z42.enum([
12685
12730
  "pending",
@@ -12856,6 +12901,8 @@ var ShopifyPublishErrorResponse = z42.discriminatedUnion("code", [
12856
12901
  "SHOPIFY_NO_PUBLISHED_THEME",
12857
12902
  "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
12858
12903
  "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
12904
+ "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
12905
+ "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
12859
12906
  /**
12860
12907
  * A publish failure we understand (Shopify did not keep the offer's
12861
12908
  * variants, another app rewrote the product, landing too large).
@@ -31145,7 +31192,7 @@ var ApiClient = class {
31145
31192
  };
31146
31193
 
31147
31194
  // src/index.ts
31148
- var MCP_VERSION = "12.18.1";
31195
+ var MCP_VERSION = "12.18.2";
31149
31196
 
31150
31197
  // src/meta-upload-app.ts
31151
31198
  import { readFileSync } from "fs";
@@ -32592,6 +32639,8 @@ var McpErrorCode = {
32592
32639
  SHOPIFY_THEME_STRUCTURE_UNSUPPORTED: "SHOPIFY_THEME_STRUCTURE_UNSUPPORTED",
32593
32640
  SHOPIFY_PUBLISH_INPUT_REQUIRED: "SHOPIFY_PUBLISH_INPUT_REQUIRED",
32594
32641
  SHOPIFY_PUBLISH_CONTEXT_CHANGED: "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
32642
+ SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
32643
+ SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
32595
32644
  SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
32596
32645
  SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
32597
32646
  SHOPIFY_PUBLISH_VERIFICATION_FAILED: "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
@@ -32694,6 +32743,8 @@ var CODE_MESSAGES = {
32694
32743
  SHOPIFY_PUBLISH_FAILED: "Shopify did not confirm publication. Check the task and Shopify store before another attempt; a new product may already exist. Do not retry blindly or change the publication target.",
32695
32744
  SHOPIFY_PUBLISH_INPUT_REQUIRED: "Review every recovery issue with the seller. Ask for missing prices and confirm the exact currency, unit price and pack totals before resending commerceCorrection with confirmed:true. Never invent amounts, convert currency or remove an offer.",
32696
32745
  SHOPIFY_PUBLISH_CONTEXT_CHANGED: "The publication context changed. Reopen the task in ProductMaker, review the current store, product and landing revision, and obtain fresh confirmation. Do not reuse this correction.",
32746
+ SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED: "The saved pack setup no longer matches the selected Shopify product. Open the landing in ProductMaker, review the Shopify product and select the pack variants again before publishing.",
32747
+ SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED: "This product needs native Shopify checkout to keep the choices for each item in the pack. Verify native checkout for this product in Shopify, then open the landing in ProductMaker to finish publishing.",
32697
32748
  SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR: "Open the landing editor in ProductMaker to reconcile the visible offer with checkout prices. The correction was not saved; do not retry it automatically or regenerate the landing without approval.",
32698
32749
  SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED: "The seller confirmed exactly the suggested values and the offer still cannot publish \u2014 resending the same correction will loop. Read the error's reason to the user and send them to the landing editor in ProductMaker to adjust the offer, then publish again. Do not resend commerceCorrection.",
32699
32750
  SHOPIFY_PUBLISH_VERIFICATION_FAILED: "Shopify did not keep what the publish wrote (offer variants, template or inventory), or the landing is too large. Read the error's reason to the user; retry the publish once, and if it repeats follow the step in the reason (map packs to existing variants, check apps that edit products, or trim the landing in the editor).",
@@ -32994,6 +33045,8 @@ var INVALID_PARAM_CODES = /* @__PURE__ */ new Set([
32994
33045
  McpErrorCode.SHOPIFY_THEME_STRUCTURE_UNSUPPORTED,
32995
33046
  McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
32996
33047
  McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
33048
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
33049
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
32997
33050
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
32998
33051
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
32999
33052
  McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
@@ -33033,6 +33086,8 @@ var PASSTHROUGH_CODES = /* @__PURE__ */ new Set([
33033
33086
  // Shopify
33034
33087
  McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED,
33035
33088
  McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED,
33089
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED,
33090
+ McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED,
33036
33091
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR,
33037
33092
  McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED,
33038
33093
  McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED,
@@ -33224,7 +33279,7 @@ function translateError(err) {
33224
33279
  const code2 = McpErrorCode[admission.data.code];
33225
33280
  return mcp(code2, resolveMessage(code2, void 0));
33226
33281
  }
33227
- if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
33282
+ if (body.code === McpErrorCode.SHOPIFY_PUBLISH_INPUT_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CONTEXT_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED || body.code === McpErrorCode.SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR || body.code === McpErrorCode.SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED || body.code === McpErrorCode.SHOPIFY_PUBLISH_VERIFICATION_FAILED || body.code === McpErrorCode.SHOPIFY_PUBLISH_TARGET_INCOMPATIBLE || body.code === McpErrorCode.SHOPIFY_THEME_SETUP_REQUIRED || body.code === McpErrorCode.SHOPIFY_PUBLISH_FAILED) {
33228
33283
  const parsed = ShopifyPublishErrorResponse.safeParse(body);
33229
33284
  if (!parsed.success) return mcp(McpErrorCode.INTERNAL, resolveMessage(McpErrorCode.INTERNAL, void 0));
33230
33285
  const details = parsed.data;
@@ -39362,6 +39417,8 @@ function registerPublishTools(server, api, opts = {}) {
39362
39417
  if (isRecord3(error.data) && [
39363
39418
  "SHOPIFY_PUBLISH_INPUT_REQUIRED",
39364
39419
  "SHOPIFY_PUBLISH_CONTEXT_CHANGED",
39420
+ "SHOPIFY_CLASSIC_PER_ITEM_CATALOG_CHANGED",
39421
+ "SHOPIFY_CLASSIC_PER_ITEM_CHECKOUT_UNVERIFIED",
39365
39422
  "SHOPIFY_PUBLISH_CORRECTION_REQUIRES_EDITOR",
39366
39423
  "SHOPIFY_PUBLISH_CORRECTION_NOT_CONVERGED",
39367
39424
  "SHOPIFY_PUBLISH_VERIFICATION_FAILED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productmaker/mcp",
3
- "version": "12.18.1",
3
+ "version": "12.18.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "ProductMaker MCP server — cost products, generate landing pages, UGC videos, and ad creatives, and publish to Shopify, Meta Ads, and TikTok Ads.",