@workos/oagen 0.10.0 → 0.10.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.
@@ -6628,7 +6628,8 @@ function filterSurfaceByManifest(surface, manifest) {
6628
6628
  else methodsExcluded++;
6629
6629
  filteredClasses[name] = {
6630
6630
  ...cls,
6631
- methods
6631
+ methods,
6632
+ constructorParams: []
6632
6633
  };
6633
6634
  } else filteredClasses[name] = cls;
6634
6635
  }
@@ -6661,7 +6662,7 @@ async function compatExtractCommand(opts) {
6661
6662
  if (opts.spec) {
6662
6663
  const specContent = readFileSync(opts.spec, "utf-8");
6663
6664
  snapshot.source.specSha = createHash("sha256").update(specContent).digest("hex");
6664
- enrichWithSpecContext(snapshot, await parseSpec(opts.spec));
6665
+ enrichWithSpecContext(snapshot, await parseSpec(opts.spec, { schemaNameTransform: opts.schemaNameTransform }));
6665
6666
  }
6666
6667
  const outputPath = resolve(opts.output, SNAPSHOT_FILENAME);
6667
6668
  writeFileSync(outputPath, JSON.stringify(snapshot, null, 2));
@@ -8402,7 +8403,10 @@ program.command("extract").description("Extract public API surface from a live S
8402
8403
  });
8403
8404
  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
8405
  opts.spec ??= process.env.OPENAPI_SPEC_PATH;
8405
- compatExtractCommand(opts).catch(handleError);
8406
+ compatExtractCommand({
8407
+ ...opts,
8408
+ schemaNameTransform: configSchemaNameTransform
8409
+ }).catch(handleError);
8406
8410
  });
8407
8411
  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
8412
  compatDiffCommand(opts).catch(handleError);