bpmax-cli 0.2.1-beta.84 → 0.2.1-beta.85

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/bin.js CHANGED
@@ -540,7 +540,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
540
540
  // package.json
541
541
  var package_default = {
542
542
  name: "bpmax-cli",
543
- version: "0.2.1-beta.84",
543
+ version: "0.2.1-beta.85",
544
544
  description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
545
545
  type: "module",
546
546
  bin: {
@@ -6080,7 +6080,10 @@ function diffJsonNormalized(domain, before, after) {
6080
6080
  domain,
6081
6081
  before,
6082
6082
  after,
6083
- (value) => buildDomainSubmitPayload(domain, value)
6083
+ // Diffing raw/work/readback is a comparison, not a write. Use the same
6084
+ // gate-free projection as verify so legacy server configuration cannot
6085
+ // degrade one side into the raw shape and surface metadata as differences.
6086
+ (value) => buildComparableSubmitPayload(domain, value)
6084
6087
  );
6085
6088
  }
6086
6089
  function diffJsonComparable(domain, before, after, normalize) {
@@ -16550,6 +16553,16 @@ function canonicalFormTemplateValues(value) {
16550
16553
  return identity(left).localeCompare(identity(right));
16551
16554
  });
16552
16555
  }
16556
+ function buildComparableSubmitPayload(domain, value) {
16557
+ try {
16558
+ return buildDomainSubmitPayload(domain, value);
16559
+ } catch (error) {
16560
+ if (domain !== "flow-template" || !isRecord6(value)) {
16561
+ throw error;
16562
+ }
16563
+ return buildDomainSubmitPayload(domain, value, { prevalidatedFlowTemplateLint: true });
16564
+ }
16565
+ }
16553
16566
  function normalizeTypedReadbackComparable(domain, value) {
16554
16567
  let comparable2 = value;
16555
16568
  try {
@@ -16560,7 +16573,7 @@ function normalizeTypedReadbackComparable(domain, value) {
16560
16573
  comparable2.id = id;
16561
16574
  }
16562
16575
  } else {
16563
- comparable2 = buildDomainSubmitPayload(domain, value);
16576
+ comparable2 = buildComparableSubmitPayload(domain, value);
16564
16577
  }
16565
16578
  } catch {
16566
16579
  }