@methiu/raigal 0.16.3 → 1.0.0
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
|
@@ -863,7 +863,7 @@ const createLogger = (deps = {}) => {
|
|
|
863
863
|
const log = createLogger();
|
|
864
864
|
//#endregion
|
|
865
865
|
//#region src/version.ts
|
|
866
|
-
const APP_VERSION = "0.
|
|
866
|
+
const APP_VERSION = "1.0.0";
|
|
867
867
|
//#endregion
|
|
868
868
|
//#region src/commands/agent-connect.ts
|
|
869
869
|
const commandText = (status) => [status.provider.loginCommand.command, ...status.provider.loginCommand.args].join(" ");
|
|
@@ -1345,7 +1345,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
|
|
|
1345
1345
|
const claims = parsed.data;
|
|
1346
1346
|
const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
|
|
1347
1347
|
if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
|
|
1348
|
-
if (!isVersionAtLeast("0.
|
|
1348
|
+
if (!isVersionAtLeast("1.0.0", 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");
|
|
1349
1349
|
const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
|
|
1350
1350
|
const grace = options.allowGraceSeconds ?? 0;
|
|
1351
1351
|
if (now > claims.exp + grace) {
|
|
@@ -23984,7 +23984,7 @@ const maybeNotifyUpdate = async (now = Date.now()) => {
|
|
|
23984
23984
|
if (!process.stderr.isTTY) return;
|
|
23985
23985
|
const cachePath = resolveUpdateCachePath();
|
|
23986
23986
|
const cache = readCache(cachePath);
|
|
23987
|
-
if (cache && isOutdated("0.
|
|
23987
|
+
if (cache && isOutdated("1.0.0", cache.latest)) process.stderr.write(formatUpdateNotice(APP_VERSION, cache.latest));
|
|
23988
23988
|
if (!cache || now - cache.checkedAt > CHECK_INTERVAL_MS) {
|
|
23989
23989
|
const latest = await fetchLatestVersion$1();
|
|
23990
23990
|
if (latest) writeCache(cachePath, {
|
|
@@ -24504,7 +24504,7 @@ const renderCommandGroup = (group, commandWidth) => {
|
|
|
24504
24504
|
return lines;
|
|
24505
24505
|
};
|
|
24506
24506
|
const renderCommandReference = (input = {}) => {
|
|
24507
|
-
const version = input.version ?? "0.
|
|
24507
|
+
const version = input.version ?? "1.0.0";
|
|
24508
24508
|
const commandWidth = Math.max(...COMMAND_REFERENCE.map((item) => item.command.length));
|
|
24509
24509
|
const lines = [renderHeader({
|
|
24510
24510
|
version,
|
|
@@ -24727,7 +24727,7 @@ const renderHelpDetails = () => [
|
|
|
24727
24727
|
].map((line) => highlightRaigal(line, theme)).join("\n");
|
|
24728
24728
|
const renderHome = (input = {}) => {
|
|
24729
24729
|
let out = renderHeader({
|
|
24730
|
-
version: input.version ?? "0.
|
|
24730
|
+
version: input.version ?? "1.0.0",
|
|
24731
24731
|
command: "--bare",
|
|
24732
24732
|
context: []
|
|
24733
24733
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as APP_VERSION } from "./version-
|
|
1
|
+
import { t as APP_VERSION } from "./version-jXpvRNzx.js";
|
|
2
2
|
import { a as getEngineLabel, i as ENGINE_INFO, r as scoreImpactForRule, t as summarizeFindingAssessments } from "./finding-assessment-M5fUTE-C.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";
|
|
@@ -16051,7 +16051,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
|
|
|
16051
16051
|
const claims = parsed.data;
|
|
16052
16052
|
const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
|
|
16053
16053
|
if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
|
|
16054
|
-
if (!isVersionAtLeast("0.
|
|
16054
|
+
if (!isVersionAtLeast("1.0.0", 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");
|
|
16055
16055
|
const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
|
|
16056
16056
|
const grace = options.allowGraceSeconds ?? 0;
|
|
16057
16057
|
if (now > claims.exp + grace) {
|
|
@@ -19171,12 +19171,12 @@ const runScanBody = async (resolvedDir, config, options, projectInfo, scanScope,
|
|
|
19171
19171
|
scoreFileCount
|
|
19172
19172
|
});
|
|
19173
19173
|
if (options.sarif) {
|
|
19174
|
-
const { buildSarifLog } = await import("./sarif-
|
|
19174
|
+
const { buildSarifLog } = await import("./sarif-Dq4GV27y.js");
|
|
19175
19175
|
console.log(JSON.stringify(buildSarifLog(results), null, 2));
|
|
19176
19176
|
return completion;
|
|
19177
19177
|
}
|
|
19178
19178
|
if (options.json) {
|
|
19179
|
-
const { buildJsonOutput } = await import("./json-
|
|
19179
|
+
const { buildJsonOutput } = await import("./json-3Igei7x4.js");
|
|
19180
19180
|
const jsonOut = buildJsonOutput(results, scoreResult, scoreFileCount, elapsedMs, scanCoverage);
|
|
19181
19181
|
console.log(JSON.stringify(jsonOut, null, 2));
|
|
19182
19182
|
return completion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as APP_VERSION } from "./version-
|
|
1
|
+
import { t as APP_VERSION } from "./version-jXpvRNzx.js";
|
|
2
2
|
import { i as ENGINE_INFO, n as withFindingAssessments, t as summarizeFindingAssessments } from "./finding-assessment-M5fUTE-C.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.
|
|
87
|
+
const APP_VERSION = "1.0.0";
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/cloud/contract.ts
|
|
90
90
|
const Severity = z.enum(["error", "warning"]);
|
|
@@ -342,7 +342,7 @@ const verifyEntitlementJwt = (jwt, options = {}) => {
|
|
|
342
342
|
const claims = parsed.data;
|
|
343
343
|
const expectedIssuer = process.env.RAIGAL_ISSUER?.trim() || "https://app.raigal.dev";
|
|
344
344
|
if (claims.iss !== expectedIssuer) throw new JwtVerificationError(`Untrusted issuer: ${claims.iss}`, "invalid_issuer");
|
|
345
|
-
if (!isVersionAtLeast("0.
|
|
345
|
+
if (!isVersionAtLeast("1.0.0", 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");
|
|
346
346
|
const now = options.nowSeconds ?? Math.floor(Date.now() / 1e3);
|
|
347
347
|
const grace = options.allowGraceSeconds ?? 0;
|
|
348
348
|
if (now > claims.exp + grace) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as APP_VERSION } from "./version-
|
|
1
|
+
import { t as APP_VERSION } from "./version-jXpvRNzx.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
|