@axiomify/cli 6.3.0 → 6.3.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.
package/dist/index.js CHANGED
@@ -10937,7 +10937,7 @@ var {
10937
10937
 
10938
10938
  // package.json
10939
10939
  var package_default = {
10940
- version: "6.3.0"};
10940
+ version: "6.3.1"};
10941
10941
  var ALWAYS_EXTERNAL = ["uWebSockets.js"];
10942
10942
  function getUserExternals(cwd) {
10943
10943
  let pkgExternals = [];
@@ -11735,7 +11735,7 @@ var Analyzer = class {
11735
11735
  for (const req of ep.security || []) {
11736
11736
  if (!this.schema.securitySchemes.has(req.schemeName)) {
11737
11737
  this.diagnostics.push({
11738
- severity: "error",
11738
+ severity: "warning",
11739
11739
  code: "MISSING_SECURITY_SCHEME",
11740
11740
  message: `Endpoint "${ep.operationId}" references security scheme "${req.schemeName}" which is not defined.`
11741
11741
  });
@@ -11745,7 +11745,7 @@ var Analyzer = class {
11745
11745
  for (const req of this.schema.globalSecurity || []) {
11746
11746
  if (!this.schema.securitySchemes.has(req.schemeName)) {
11747
11747
  this.diagnostics.push({
11748
- severity: "error",
11748
+ severity: "warning",
11749
11749
  code: "MISSING_GLOBAL_SECURITY_SCHEME",
11750
11750
  message: `Global security references scheme "${req.schemeName}" which is not defined.`
11751
11751
  });
@@ -16953,11 +16953,16 @@ ${symbols.info} Initializing SDK compilation...
16953
16953
  console.log(` ${symbols.bullet} Compiling IR schema...`);
16954
16954
  const compiler = new CompilerPipeline();
16955
16955
  const compilation = await compiler.compile(ingestionResult.schema);
16956
- if (compilation.hasErrors) {
16956
+ if (compilation.diagnostics.length > 0) {
16957
16957
  for (const d of compilation.diagnostics) {
16958
- if (d.severity === "error")
16958
+ if (d.severity === "error") {
16959
16959
  console.error(pc__default.default.red(` [Error] ${d.code}: ${d.message}`));
16960
+ } else if (d.severity === "warning") {
16961
+ console.warn(pc__default.default.yellow(` [Warn] ${d.code}: ${d.message}`));
16962
+ }
16960
16963
  }
16964
+ }
16965
+ if (compilation.hasErrors) {
16961
16966
  console.error(pc__default.default.red(`
16962
16967
  \u2717 Compilation failed.`));
16963
16968
  if (opts.exitOnError !== false) process.exit(1);
package/dist/index.mjs CHANGED
@@ -10493,7 +10493,7 @@ var {
10493
10493
 
10494
10494
  // package.json
10495
10495
  var package_default = {
10496
- version: "6.3.0"};
10496
+ version: "6.3.1"};
10497
10497
  var ALWAYS_EXTERNAL = ["uWebSockets.js"];
10498
10498
  function getUserExternals(cwd) {
10499
10499
  let pkgExternals = [];
@@ -11291,7 +11291,7 @@ var Analyzer = class {
11291
11291
  for (const req of ep.security || []) {
11292
11292
  if (!this.schema.securitySchemes.has(req.schemeName)) {
11293
11293
  this.diagnostics.push({
11294
- severity: "error",
11294
+ severity: "warning",
11295
11295
  code: "MISSING_SECURITY_SCHEME",
11296
11296
  message: `Endpoint "${ep.operationId}" references security scheme "${req.schemeName}" which is not defined.`
11297
11297
  });
@@ -11301,7 +11301,7 @@ var Analyzer = class {
11301
11301
  for (const req of this.schema.globalSecurity || []) {
11302
11302
  if (!this.schema.securitySchemes.has(req.schemeName)) {
11303
11303
  this.diagnostics.push({
11304
- severity: "error",
11304
+ severity: "warning",
11305
11305
  code: "MISSING_GLOBAL_SECURITY_SCHEME",
11306
11306
  message: `Global security references scheme "${req.schemeName}" which is not defined.`
11307
11307
  });
@@ -16509,11 +16509,16 @@ ${symbols.info} Initializing SDK compilation...
16509
16509
  console.log(` ${symbols.bullet} Compiling IR schema...`);
16510
16510
  const compiler = new CompilerPipeline();
16511
16511
  const compilation = await compiler.compile(ingestionResult.schema);
16512
- if (compilation.hasErrors) {
16512
+ if (compilation.diagnostics.length > 0) {
16513
16513
  for (const d of compilation.diagnostics) {
16514
- if (d.severity === "error")
16514
+ if (d.severity === "error") {
16515
16515
  console.error(pc.red(` [Error] ${d.code}: ${d.message}`));
16516
+ } else if (d.severity === "warning") {
16517
+ console.warn(pc.yellow(` [Warn] ${d.code}: ${d.message}`));
16518
+ }
16516
16519
  }
16520
+ }
16521
+ if (compilation.hasErrors) {
16517
16522
  console.error(pc.red(`
16518
16523
  \u2717 Compilation failed.`));
16519
16524
  if (opts.exitOnError !== false) process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomify/cli",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "Official CLI for Axiomify — scaffold, dev, build, route inspection, OpenAPI generation, production-readiness checks, host diagnostics, codemod migrations.",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {