@cdot65/prisma-airs-cli 5.8.1 → 5.8.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/cli/index.js CHANGED
@@ -9960,10 +9960,12 @@ async function planDlpResourcesRestore(api, input2, destinationTsgId, options =
9960
9960
  for (const source of backup.patterns) {
9961
9961
  if (!source.id || !source.name) throw new Error("Backup data pattern lacks identity");
9962
9962
  const retired = (record) => RETIRED_PATTERN.has(record.status ?? "active");
9963
- if (source.type === "predefined") {
9963
+ if (source.type === "predefined" && !Object.hasOwn(patternMap2, source.name)) {
9964
9964
  const match2 = matchByName(destination.patterns, source.name, retired, "data pattern");
9965
9965
  if (!match2?.id || match2.type !== "predefined")
9966
- throw new Error(`Missing predefined destination data pattern: ${source.name}`);
9966
+ throw new Error(
9967
+ `Missing predefined destination data pattern: ${source.name}; bind an equivalent destination pattern with --pattern-map "${source.name}=<destination-name>"`
9968
+ );
9967
9969
  patternPlans.push({
9968
9970
  sourceId: source.id,
9969
9971
  name: source.name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cdot65/prisma-airs-cli",
3
3
  "packageManager": "pnpm@10.6.5",
4
- "version": "5.8.1",
4
+ "version": "5.8.2",
5
5
  "description": "CLI and library for Palo Alto Prisma AIRS — guardrail refinement, AI red teaming, model security scanning, profile audits",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",