@methiu/raigal 0.2.4 → 0.2.5

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.js CHANGED
@@ -923,7 +923,7 @@ const createLogger = (deps = {}) => {
923
923
  const log = createLogger();
924
924
  //#endregion
925
925
  //#region src/version.ts
926
- const APP_VERSION = "0.2.4";
926
+ const APP_VERSION = "0.2.5";
927
927
  //#endregion
928
928
  //#region src/commands/agent-connect.ts
929
929
  const commandText = (status) => [status.provider.loginCommand.command, ...status.provider.loginCommand.args].join(" ");
@@ -1422,7 +1422,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
1422
1422
  const claims = parsed.data;
1423
1423
  const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
1424
1424
  if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
1425
- if (!isVersionAtLeast("0.2.4", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
1425
+ if (!isVersionAtLeast("0.2.5", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
1426
1426
  const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
1427
1427
  const grace = options.allowGraceSeconds ?? 0;
1428
1428
  if (now > claims.exp + grace) {
@@ -25030,7 +25030,7 @@ const maybeNotifyUpdate = async (now = Date.now()) => {
25030
25030
  if (!process.stderr.isTTY) return;
25031
25031
  const cachePath = resolveUpdateCachePath();
25032
25032
  const cache = readCache(cachePath);
25033
- if (cache && isOutdated("0.2.4", cache.latest)) process.stderr.write(formatUpdateNotice(APP_VERSION, cache.latest));
25033
+ if (cache && isOutdated("0.2.5", cache.latest)) process.stderr.write(formatUpdateNotice(APP_VERSION, cache.latest));
25034
25034
  if (!cache || now - cache.checkedAt > CHECK_INTERVAL_MS) {
25035
25035
  const latest = await fetchLatestVersion$1();
25036
25036
  if (latest) writeCache(cachePath, {
@@ -25550,7 +25550,7 @@ const renderCommandGroup = (group, commandWidth) => {
25550
25550
  return lines;
25551
25551
  };
25552
25552
  const renderCommandReference = (input = {}) => {
25553
- const version = input.version ?? "0.2.4";
25553
+ const version = input.version ?? "0.2.5";
25554
25554
  const commandWidth = Math.max(...COMMAND_REFERENCE.map((item) => item.command.length));
25555
25555
  const lines = [renderHeader({
25556
25556
  version,
@@ -25773,7 +25773,7 @@ const renderHelpDetails = () => [
25773
25773
  ].map((line) => highlightRaigal(line, theme)).join("\n");
25774
25774
  const renderHome = (input = {}) => {
25775
25775
  let out = renderHeader({
25776
- version: input.version ?? "0.2.4",
25776
+ version: input.version ?? "0.2.5",
25777
25777
  command: "--bare",
25778
25778
  context: []
25779
25779
  });
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as APP_VERSION } from "./version-CukuIVX4.js";
1
+ import { t as APP_VERSION } from "./version-BlgPglaO.js";
2
2
  import { a as getEngineLabel, i as ENGINE_INFO, r as scoreImpactForRule, t as summarizeFindingAssessments } from "./finding-assessment-CGpt5YUR.js";
3
3
  import { n as isSecretClassRule, r as maskSecrets, t as FIXED_SECRET_DIAGNOSTIC_MESSAGE } from "./mask-secrets-BXn-ZSEh.js";
4
4
  import { createRequire, isBuiltin } from "node:module";
@@ -16440,7 +16440,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
16440
16440
  const claims = parsed.data;
16441
16441
  const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
16442
16442
  if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
16443
- if (!isVersionAtLeast("0.2.4", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
16443
+ if (!isVersionAtLeast("0.2.5", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
16444
16444
  const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
16445
16445
  const grace = options.allowGraceSeconds ?? 0;
16446
16446
  if (now > claims.exp + grace) {
@@ -20486,12 +20486,12 @@ const runScanBody = async (resolvedDir, config, options, projectInfo, scanScope,
20486
20486
  scoreFileCount
20487
20487
  });
20488
20488
  if (options.sarif) {
20489
- const { buildSarifLog } = await import("./sarif-Lt31Ld5t.js");
20489
+ const { buildSarifLog } = await import("./sarif-DqH4dGEo.js");
20490
20490
  console.log(JSON.stringify(buildSarifLog(results), null, 2));
20491
20491
  return completion;
20492
20492
  }
20493
20493
  if (options.json) {
20494
- const { buildJsonOutput } = await import("./json-BBZKvm0E.js");
20494
+ const { buildJsonOutput } = await import("./json-B8XGYwMv.js");
20495
20495
  const jsonOut = buildJsonOutput(results, scoreResult, scoreFileCount, elapsedMs, scanCoverage);
20496
20496
  console.log(JSON.stringify(jsonOut, null, 2));
20497
20497
  return completion;
@@ -1,4 +1,4 @@
1
- import { t as APP_VERSION } from "./version-CukuIVX4.js";
1
+ import { t as APP_VERSION } from "./version-BlgPglaO.js";
2
2
  import { i as ENGINE_INFO, n as withFindingAssessments, t as summarizeFindingAssessments } from "./finding-assessment-CGpt5YUR.js";
3
3
  //#region src/output/json.ts
4
4
  const buildJsonOutput = (results, scoreResult, fileCount, elapsedMs, coverage) => {
package/dist/mcp.js CHANGED
@@ -84,7 +84,7 @@ const getActiveToken = () => {
84
84
  };
85
85
  //#endregion
86
86
  //#region src/version.ts
87
- const APP_VERSION = "0.2.4";
87
+ const APP_VERSION = "0.2.5";
88
88
  //#endregion
89
89
  //#region src/cloud/contract.ts
90
90
  const Severity = z.enum(["error", "warning"]);
@@ -359,7 +359,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
359
359
  const claims = parsed.data;
360
360
  const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
361
361
  if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
362
- if (!isVersionAtLeast("0.2.4", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
362
+ if (!isVersionAtLeast("0.2.5", claims.min_cli_version)) throw new JwtVerificationError(`CLI version ${APP_VERSION} is below required minimum ${claims.min_cli_version}. Run "raigal update" or "npm install -g @methiu/raigal@latest".`, "cli_version_unsupported");
363
363
  const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
364
364
  const grace = options.allowGraceSeconds ?? 0;
365
365
  if (now > claims.exp + grace) {
@@ -1,4 +1,4 @@
1
- import { t as APP_VERSION } from "./version-CukuIVX4.js";
1
+ import { t as APP_VERSION } from "./version-BlgPglaO.js";
2
2
  import { n as isSecretClassRule, t as FIXED_SECRET_DIAGNOSTIC_MESSAGE } from "./mask-secrets-BXn-ZSEh.js";
3
3
  import path from "node:path";
4
4
  //#region src/output/sarif.ts
@@ -1,6 +1,6 @@
1
1
  import "node:fs";
2
2
  import "node:url";
3
3
  //#region src/version.ts
4
- const APP_VERSION = "0.2.4";
4
+ const APP_VERSION = "0.2.5";
5
5
  //#endregion
6
6
  export { APP_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@methiu/raigal",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },