@fragments-sdk/cli 0.17.0 → 0.17.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/bin.js CHANGED
@@ -7517,15 +7517,15 @@ governCmd.command("report").description("Summarize governance audit log").action
7517
7517
  });
7518
7518
  governCmd.command("scan").description("Scan JSX/TSX codebase for governance violations").option("-d, --dir <path>", "Root directory (default: auto-detect)").option("-c, --config <path>", "Path to govern.config.ts").option("-f, --format <format>", "Output format: summary, json, sarif", "summary").option("-r, --report <path>", "Write an aggregated machine-readable JSON report").option("-q, --quiet", "Suppress non-error output").option("--api-key <key>", "Fragments Cloud API key \u2014 report findings to Cloud").option("--cloud-url <url>", "Fragments Cloud URL (default: https://app.usefragments.com)").option("--diff [base]", "Only scan files changed vs a base ref (default: auto-detect merge base)").action(async (options) => {
7519
7519
  try {
7520
- const { governScan } = await import("./govern-scan-X6UEIOSV.js");
7520
+ const { governScan } = await import("./govern-scan-KTGPDZVK.js");
7521
7521
  const { exitCode } = await governScan({
7522
7522
  dir: options.dir,
7523
7523
  config: options.config,
7524
7524
  format: options.format,
7525
7525
  report: options.report,
7526
7526
  quiet: options.quiet,
7527
- apiKey: options.apiKey ?? process.env.FRAGMENTS_API_KEY,
7528
- cloudUrl: options.cloudUrl ?? process.env.FRAGMENTS_CLOUD_URL,
7527
+ apiKey: options.apiKey || process.env.FRAGMENTS_API_KEY || void 0,
7528
+ cloudUrl: options.cloudUrl || process.env.FRAGMENTS_CLOUD_URL || void 0,
7529
7529
  diff: options.diff
7530
7530
  });
7531
7531
  process.exit(exitCode);
@@ -7536,7 +7536,7 @@ governCmd.command("scan").description("Scan JSX/TSX codebase for governance viol
7536
7536
  });
7537
7537
  governCmd.command("watch").description("Watch JSX/TSX files and re-check on changes").option("-d, --dir <path>", "Root directory (default: auto-detect)").option("-c, --config <path>", "Path to govern.config.ts").option("-q, --quiet", "Suppress non-error output").option("--debounce <ms>", "Debounce interval in ms", "300").action(async (options) => {
7538
7538
  try {
7539
- const { governWatch } = await import("./govern-scan-X6UEIOSV.js");
7539
+ const { governWatch } = await import("./govern-scan-KTGPDZVK.js");
7540
7540
  await governWatch({
7541
7541
  dir: options.dir,
7542
7542
  config: options.config,