@workos/oagen 0.10.0 → 0.10.1

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.
@@ -6661,7 +6661,7 @@ async function compatExtractCommand(opts) {
6661
6661
  if (opts.spec) {
6662
6662
  const specContent = readFileSync(opts.spec, "utf-8");
6663
6663
  snapshot.source.specSha = createHash("sha256").update(specContent).digest("hex");
6664
- enrichWithSpecContext(snapshot, await parseSpec(opts.spec));
6664
+ enrichWithSpecContext(snapshot, await parseSpec(opts.spec, { schemaNameTransform: opts.schemaNameTransform }));
6665
6665
  }
6666
6666
  const outputPath = resolve(opts.output, SNAPSHOT_FILENAME);
6667
6667
  writeFileSync(outputPath, JSON.stringify(snapshot, null, 2));
@@ -8402,7 +8402,10 @@ program.command("extract").description("Extract public API surface from a live S
8402
8402
  });
8403
8403
  program.command("compat-extract").description("Extract a compat snapshot from a live SDK and write .oagen-compat-snapshot.json").requiredOption("--sdk-path <path>", "Path to the live SDK").requiredOption("--lang <language>", "Target language").requiredOption("--output <dir>", "Directory to write .oagen-compat-snapshot.json into").option("--spec <path>", "Path to OpenAPI spec — enriches symbols with operationId, route, and specSha").action((opts) => {
8404
8404
  opts.spec ??= process.env.OPENAPI_SPEC_PATH;
8405
- compatExtractCommand(opts).catch(handleError);
8405
+ compatExtractCommand({
8406
+ ...opts,
8407
+ schemaNameTransform: configSchemaNameTransform
8408
+ }).catch(handleError);
8406
8409
  });
8407
8410
  program.command("compat-diff").description("Diff two compat snapshot files and produce a classified change report").requiredOption("--baseline <path>", "Path to the baseline compat snapshot JSON").requiredOption("--candidate <path>", "Path to the candidate compat snapshot JSON").option("--output <path>", "Write machine-readable report to this path").option("--fail-on <level>", "Fail threshold: none, breaking, or soft-risk", "breaking").option("--explain", "Include provenance explanations in output").action((opts) => {
8408
8411
  compatDiffCommand(opts).catch(handleError);