xploitscan-shared-rules 2.4.31 → 2.4.33

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.d.cts CHANGED
@@ -169,7 +169,7 @@ interface CustomRule {
169
169
  * before a scan can be saved without enough provenance to explain a changed
170
170
  * grade.
171
171
  */
172
- declare const SCANNER_VERSION = "2.4.31";
172
+ declare const SCANNER_VERSION = "2.4.33";
173
173
 
174
174
  /**
175
175
  * Line-oriented helpers shared by every rule. Pure string manipulation — no fs
@@ -667,6 +667,24 @@ interface SourceFile {
667
667
  * the CLI, the API and a test.
668
668
  */
669
669
  declare function extractRoutes(files: SourceFile[]): RouteTable;
670
+ /**
671
+ * One upload's route claims, for a browser scan split across several
672
+ * requests. A path belongs to the first file that claims it, with the
673
+ * TanStack manifest ahead of every file, so the parts' claims are merged by
674
+ * mergeRouteClaims rather than by joining each part's route table.
675
+ */
676
+ interface RouteClaims {
677
+ /** The first routeTree.gen.ts in a TanStack project, even when it lists nothing. */
678
+ manifest: {
679
+ source: string;
680
+ routes: AppRoute[];
681
+ } | null;
682
+ /** The file walk's claims in file order, first claim of each path only. */
683
+ declared: AppRoute[];
684
+ }
685
+ /** Same table extractRoutes builds over the parts' files in part order. */
686
+ declare function mergeRouteClaims(parts: readonly RouteClaims[]): RouteTable;
687
+ declare function collectRouteClaims(files: SourceFile[]): RouteClaims;
670
688
  /**
671
689
  * The route a given file is reachable at, if any.
672
690
  *
@@ -823,6 +841,20 @@ interface IntentReport {
823
841
  expectation: string;
824
842
  }>;
825
843
  }
844
+ /**
845
+ * What checkIntent otherwise derives from `files`. A browser scan split across
846
+ * several uploads passes the union of every part's statements and routes,
847
+ * because the last part holds only its own files.
848
+ */
849
+ interface IntentInputs {
850
+ statements?: IntentStatement[];
851
+ routes?: AppRoute[];
852
+ }
853
+ /**
854
+ * harvestIntent over every part's files in part order. Shared files are
855
+ * copied into each part, so a source is read from the first part that has it.
856
+ */
857
+ declare function mergeIntentStatements(parts: ReadonlyArray<readonly IntentStatement[]>): IntentStatement[];
826
858
  /**
827
859
  * Join stated intent against findings the scanner already produced.
828
860
  *
@@ -832,7 +864,7 @@ interface IntentReport {
832
864
  declare function checkIntent(files: Array<{
833
865
  path: string;
834
866
  content: string;
835
- }>, findings: Finding[]): IntentReport;
867
+ }>, findings: Finding[], inputs?: IntentInputs): IntentReport;
836
868
 
837
869
  /**
838
870
  * Browser-exposed environment variables: which names a framework ships to the
@@ -1466,6 +1498,14 @@ declare function packReviewBatches(fileFindings: Finding[], content: string): Fi
1466
1498
  */
1467
1499
  declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>, budgetMs?: number, options?: {
1468
1500
  surface?: AiSurface;
1501
+ /**
1502
+ * Hosted scans only (api / web / app). When true, a model call that
1503
+ * threw a retryable error gets one more attempt if the remaining budget
1504
+ * still fits a full per-call window. Ignored unless the surface is
1505
+ * hosted (api, web, app): a CLI, Action, or MCP scan runs on the user's
1506
+ * machine, should fail fast, and can simply be rerun.
1507
+ */
1508
+ retryTransient?: boolean;
1469
1509
  }): Promise<AIFilterResult>;
1470
1510
 
1471
1511
  /**
@@ -1572,7 +1612,48 @@ interface FileInfo {
1572
1612
  path: string;
1573
1613
  content: string;
1574
1614
  }
1575
- declare function scanMultiFile(files: FileInfo[]): Finding[];
1615
+ /**
1616
+ * Inputs for the last upload of a scan split across several requests. Both
1617
+ * are optional, and a call without them is the single-scan behaviour.
1618
+ */
1619
+ interface MultiFileOptions {
1620
+ /** Route files resolved over every part (resolveSecretGuardedRoutes). Replaces the local computation. */
1621
+ guardedRoutes?: ReadonlySet<string>;
1622
+ /** `process.env` names the earlier parts use, in part order (envVarNamesUsed). Read before this part's files. */
1623
+ priorEnvNames?: readonly string[];
1624
+ }
1625
+ /** `process.env` names scanMultiFile's Check 5 would see in these files, first use first. */
1626
+ declare function envVarNamesUsed(files: FileInfo[]): string[];
1627
+ declare function scanMultiFile(files: FileInfo[], opts?: MultiFileOptions): Finding[];
1628
+
1629
+ /** A route whose handlers all delegate (or self-guard). `callees` is empty when every handler opens with the guard itself. */
1630
+ interface RouteDelegationFact {
1631
+ path: string;
1632
+ callees: Array<{
1633
+ fn: string;
1634
+ spec: string | null;
1635
+ }>;
1636
+ }
1637
+ /** Names whose single definition in `path` opens with the shared-secret guard. */
1638
+ interface GuardedHelperFact {
1639
+ path: string;
1640
+ names: string[];
1641
+ }
1642
+ interface RouteDelegationFacts {
1643
+ routes: RouteDelegationFact[];
1644
+ helpers: GuardedHelperFact[];
1645
+ }
1646
+ /** One upload's half of secretGuardedRoutes. */
1647
+ declare function routeDelegationFacts(files: Array<{
1648
+ path: string;
1649
+ content: string;
1650
+ }>): RouteDelegationFacts;
1651
+ /**
1652
+ * secretGuardedRoutes over facts. `paths` is every scanned path in every
1653
+ * part: a callee must resolve to exactly one of them, as it must to exactly
1654
+ * one file in a single scan.
1655
+ */
1656
+ declare function resolveSecretGuardedRoutes(routes: readonly RouteDelegationFact[], helpers: readonly GuardedHelperFact[], paths: Iterable<string>): Set<string>;
1576
1657
 
1577
1658
  /**
1578
1659
  * URL recon — what can be learned about a deployed app from what it already
@@ -1868,4 +1949,4 @@ input: {
1868
1949
  content: string;
1869
1950
  }[] | QualityContext, rules?: QualityRule[]): Finding[];
1870
1951
 
1871
- export { type AIFilterResult, type AiDegraded, AiReason, AiStatus, AiSurface, type AppRoute, BILLING_WEBHOOK_UNMATCHED_KEYS, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, KEEP_SEVERITY_IN_TESTS, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PLAN_UNVERIFIED_NOTICE, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, PlanCause, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, SCANNER_VERSION, SCAN_AI_DEGRADED_KEYS, SCAN_TOKEN_NULL_KEYS, SERVER_ACTION_WRITE_RE, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, aiStatusLine, allRules, applyTestPathSeverity, assessHeaders, astMatch, authPrefixCovers, bearerProvenanceSafe, billingWebhookUnmatchedProps, bucketFiles, buildProjectContext, buildQualityContext, buildReviewPrompt, buildTaintMap, calculateGrade, callSpreads, capabilityTokenHandler, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, deduplicateFindings, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecretValues, hardcodedSecrets, hardenUntrustedPromptText, harvestIntent, insecureCookies, insecureRandomness, isAnchoredPublicAuthPath, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isOgRoutePath, isPrivateAddress, isProtectedFromAiRemoval, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, maskSecretValue, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, newDataFence, nextPublicSecret, noRateLimiting, normalizeScanPath, packReviewBatches, parseFile, parseScanTarget, parseSupabaseConfig, perCallTimeoutMs, planCause, prepareUntrustedSpan, publicHttpsUrl, publicReadOnlyHandler, qualityRules, refineDirectObjectFindings, replaceBlockComments, resetStructuralState, routeForFile, routePathFromFile, runCustomRules, sanitizePromptField, scanAiDegradedProps, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, scanTokenNullProps, setStructuralFaultForTest, sqlInjection, stripeWebhookUnprotected, structuralParseCount, supabaseFunctionName, supabaseNoRLS, testPathHold, toAiDegraded, todoLeftInCode, tryParse, unknownAiStatus, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, widenedAuthSuppresses, xssVulnerability };
1952
+ export { type AIFilterResult, type AiDegraded, AiReason, AiStatus, AiSurface, type AppRoute, BILLING_WEBHOOK_UNMATCHED_KEYS, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type GuardedHelperFact, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentInputs, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, KEEP_SEVERITY_IN_TESTS, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, type MultiFileOptions, NON_APP_PATH_PATTERNS, PLAN_UNVERIFIED_NOTICE, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, PlanCause, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteClaims, type RouteDelegationFact, type RouteDelegationFacts, type RouteFramework, type RouteTable, type RuleMatch, SCANNER_VERSION, SCAN_AI_DEGRADED_KEYS, SCAN_TOKEN_NULL_KEYS, SERVER_ACTION_WRITE_RE, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, aiStatusLine, allRules, applyTestPathSeverity, assessHeaders, astMatch, authPrefixCovers, bearerProvenanceSafe, billingWebhookUnmatchedProps, bucketFiles, buildProjectContext, buildQualityContext, buildReviewPrompt, buildTaintMap, calculateGrade, callSpreads, capabilityTokenHandler, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, collectRouteClaims, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, deduplicateFindings, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, envVarNamesUsed, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecretValues, hardcodedSecrets, hardenUntrustedPromptText, harvestIntent, insecureCookies, insecureRandomness, isAnchoredPublicAuthPath, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isOgRoutePath, isPrivateAddress, isProtectedFromAiRemoval, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, maskSecretValue, mergeIntentStatements, mergeRouteClaims, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, newDataFence, nextPublicSecret, noRateLimiting, normalizeScanPath, packReviewBatches, parseFile, parseScanTarget, parseSupabaseConfig, perCallTimeoutMs, planCause, prepareUntrustedSpan, publicHttpsUrl, publicReadOnlyHandler, qualityRules, refineDirectObjectFindings, replaceBlockComments, resetStructuralState, resolveSecretGuardedRoutes, routeDelegationFacts, routeForFile, routePathFromFile, runCustomRules, sanitizePromptField, scanAiDegradedProps, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, scanTokenNullProps, setStructuralFaultForTest, sqlInjection, stripeWebhookUnprotected, structuralParseCount, supabaseFunctionName, supabaseNoRLS, testPathHold, toAiDegraded, todoLeftInCode, tryParse, unknownAiStatus, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, widenedAuthSuppresses, xssVulnerability };
package/dist/index.d.ts CHANGED
@@ -169,7 +169,7 @@ interface CustomRule {
169
169
  * before a scan can be saved without enough provenance to explain a changed
170
170
  * grade.
171
171
  */
172
- declare const SCANNER_VERSION = "2.4.31";
172
+ declare const SCANNER_VERSION = "2.4.33";
173
173
 
174
174
  /**
175
175
  * Line-oriented helpers shared by every rule. Pure string manipulation — no fs
@@ -667,6 +667,24 @@ interface SourceFile {
667
667
  * the CLI, the API and a test.
668
668
  */
669
669
  declare function extractRoutes(files: SourceFile[]): RouteTable;
670
+ /**
671
+ * One upload's route claims, for a browser scan split across several
672
+ * requests. A path belongs to the first file that claims it, with the
673
+ * TanStack manifest ahead of every file, so the parts' claims are merged by
674
+ * mergeRouteClaims rather than by joining each part's route table.
675
+ */
676
+ interface RouteClaims {
677
+ /** The first routeTree.gen.ts in a TanStack project, even when it lists nothing. */
678
+ manifest: {
679
+ source: string;
680
+ routes: AppRoute[];
681
+ } | null;
682
+ /** The file walk's claims in file order, first claim of each path only. */
683
+ declared: AppRoute[];
684
+ }
685
+ /** Same table extractRoutes builds over the parts' files in part order. */
686
+ declare function mergeRouteClaims(parts: readonly RouteClaims[]): RouteTable;
687
+ declare function collectRouteClaims(files: SourceFile[]): RouteClaims;
670
688
  /**
671
689
  * The route a given file is reachable at, if any.
672
690
  *
@@ -823,6 +841,20 @@ interface IntentReport {
823
841
  expectation: string;
824
842
  }>;
825
843
  }
844
+ /**
845
+ * What checkIntent otherwise derives from `files`. A browser scan split across
846
+ * several uploads passes the union of every part's statements and routes,
847
+ * because the last part holds only its own files.
848
+ */
849
+ interface IntentInputs {
850
+ statements?: IntentStatement[];
851
+ routes?: AppRoute[];
852
+ }
853
+ /**
854
+ * harvestIntent over every part's files in part order. Shared files are
855
+ * copied into each part, so a source is read from the first part that has it.
856
+ */
857
+ declare function mergeIntentStatements(parts: ReadonlyArray<readonly IntentStatement[]>): IntentStatement[];
826
858
  /**
827
859
  * Join stated intent against findings the scanner already produced.
828
860
  *
@@ -832,7 +864,7 @@ interface IntentReport {
832
864
  declare function checkIntent(files: Array<{
833
865
  path: string;
834
866
  content: string;
835
- }>, findings: Finding[]): IntentReport;
867
+ }>, findings: Finding[], inputs?: IntentInputs): IntentReport;
836
868
 
837
869
  /**
838
870
  * Browser-exposed environment variables: which names a framework ships to the
@@ -1466,6 +1498,14 @@ declare function packReviewBatches(fileFindings: Finding[], content: string): Fi
1466
1498
  */
1467
1499
  declare function filterFalsePositives(findings: Finding[], fileContents: Map<string, string>, budgetMs?: number, options?: {
1468
1500
  surface?: AiSurface;
1501
+ /**
1502
+ * Hosted scans only (api / web / app). When true, a model call that
1503
+ * threw a retryable error gets one more attempt if the remaining budget
1504
+ * still fits a full per-call window. Ignored unless the surface is
1505
+ * hosted (api, web, app): a CLI, Action, or MCP scan runs on the user's
1506
+ * machine, should fail fast, and can simply be rerun.
1507
+ */
1508
+ retryTransient?: boolean;
1469
1509
  }): Promise<AIFilterResult>;
1470
1510
 
1471
1511
  /**
@@ -1572,7 +1612,48 @@ interface FileInfo {
1572
1612
  path: string;
1573
1613
  content: string;
1574
1614
  }
1575
- declare function scanMultiFile(files: FileInfo[]): Finding[];
1615
+ /**
1616
+ * Inputs for the last upload of a scan split across several requests. Both
1617
+ * are optional, and a call without them is the single-scan behaviour.
1618
+ */
1619
+ interface MultiFileOptions {
1620
+ /** Route files resolved over every part (resolveSecretGuardedRoutes). Replaces the local computation. */
1621
+ guardedRoutes?: ReadonlySet<string>;
1622
+ /** `process.env` names the earlier parts use, in part order (envVarNamesUsed). Read before this part's files. */
1623
+ priorEnvNames?: readonly string[];
1624
+ }
1625
+ /** `process.env` names scanMultiFile's Check 5 would see in these files, first use first. */
1626
+ declare function envVarNamesUsed(files: FileInfo[]): string[];
1627
+ declare function scanMultiFile(files: FileInfo[], opts?: MultiFileOptions): Finding[];
1628
+
1629
+ /** A route whose handlers all delegate (or self-guard). `callees` is empty when every handler opens with the guard itself. */
1630
+ interface RouteDelegationFact {
1631
+ path: string;
1632
+ callees: Array<{
1633
+ fn: string;
1634
+ spec: string | null;
1635
+ }>;
1636
+ }
1637
+ /** Names whose single definition in `path` opens with the shared-secret guard. */
1638
+ interface GuardedHelperFact {
1639
+ path: string;
1640
+ names: string[];
1641
+ }
1642
+ interface RouteDelegationFacts {
1643
+ routes: RouteDelegationFact[];
1644
+ helpers: GuardedHelperFact[];
1645
+ }
1646
+ /** One upload's half of secretGuardedRoutes. */
1647
+ declare function routeDelegationFacts(files: Array<{
1648
+ path: string;
1649
+ content: string;
1650
+ }>): RouteDelegationFacts;
1651
+ /**
1652
+ * secretGuardedRoutes over facts. `paths` is every scanned path in every
1653
+ * part: a callee must resolve to exactly one of them, as it must to exactly
1654
+ * one file in a single scan.
1655
+ */
1656
+ declare function resolveSecretGuardedRoutes(routes: readonly RouteDelegationFact[], helpers: readonly GuardedHelperFact[], paths: Iterable<string>): Set<string>;
1576
1657
 
1577
1658
  /**
1578
1659
  * URL recon — what can be learned about a deployed app from what it already
@@ -1868,4 +1949,4 @@ input: {
1868
1949
  content: string;
1869
1950
  }[] | QualityContext, rules?: QualityRule[]): Finding[];
1870
1951
 
1871
- export { type AIFilterResult, type AiDegraded, AiReason, AiStatus, AiSurface, type AppRoute, BILLING_WEBHOOK_UNMATCHED_KEYS, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, KEEP_SEVERITY_IN_TESTS, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, NON_APP_PATH_PATTERNS, PLAN_UNVERIFIED_NOTICE, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, PlanCause, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteFramework, type RouteTable, type RuleMatch, SCANNER_VERSION, SCAN_AI_DEGRADED_KEYS, SCAN_TOKEN_NULL_KEYS, SERVER_ACTION_WRITE_RE, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, aiStatusLine, allRules, applyTestPathSeverity, assessHeaders, astMatch, authPrefixCovers, bearerProvenanceSafe, billingWebhookUnmatchedProps, bucketFiles, buildProjectContext, buildQualityContext, buildReviewPrompt, buildTaintMap, calculateGrade, callSpreads, capabilityTokenHandler, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, deduplicateFindings, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecretValues, hardcodedSecrets, hardenUntrustedPromptText, harvestIntent, insecureCookies, insecureRandomness, isAnchoredPublicAuthPath, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isOgRoutePath, isPrivateAddress, isProtectedFromAiRemoval, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, maskSecretValue, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, newDataFence, nextPublicSecret, noRateLimiting, normalizeScanPath, packReviewBatches, parseFile, parseScanTarget, parseSupabaseConfig, perCallTimeoutMs, planCause, prepareUntrustedSpan, publicHttpsUrl, publicReadOnlyHandler, qualityRules, refineDirectObjectFindings, replaceBlockComments, resetStructuralState, routeForFile, routePathFromFile, runCustomRules, sanitizePromptField, scanAiDegradedProps, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, scanTokenNullProps, setStructuralFaultForTest, sqlInjection, stripeWebhookUnprotected, structuralParseCount, supabaseFunctionName, supabaseNoRLS, testPathHold, toAiDegraded, todoLeftInCode, tryParse, unknownAiStatus, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, widenedAuthSuppresses, xssVulnerability };
1952
+ export { type AIFilterResult, type AiDegraded, AiReason, AiStatus, AiSurface, type AppRoute, BILLING_WEBHOOK_UNMATCHED_KEYS, type BuilderFingerprint, CHECKABLE_CLAIMS, type Confidence, type CustomRule, DOTENV_ASSIGN_RE, type DetectedFramework, type ExposedConfig, type Exposure, FREE_RULE_COUNT, type FilteredFinding, type Finding, GRADE_FINDINGS_PER_RULE, type GradeOptions, type GradeResult, type GuardedHelperFact, type HeaderFinding, INTENT_EXPECTATIONS, type IntentExpectation, type IntentInputs, type IntentMismatch, type IntentOrigin, type IntentReport, type IntentStatement, KEEP_SEVERITY_IN_TESTS, MODEL_ANALYSIS, MODEL_POLICY_REVIEWED, MODEL_REVIEW_INTERVAL_DAYS, MODEL_TEMPERATURE, MODEL_TRIAGE, type MultiFileOptions, NON_APP_PATH_PATTERNS, PLAN_UNVERIFIED_NOTICE, PRO_RULE_COUNT, PUBLIC_ENV_PREFIX_RE, type ParsedFile, PlanCause, type ProjectContext, QUALITY_EXAMPLES, type QualityContext, type QualityExample, type QualityFile, type QualityHit, type QualityRule, RULE_IMPACTS, type RouteClaims, type RouteDelegationFact, type RouteDelegationFacts, type RouteFramework, type RouteTable, type RuleMatch, SCANNER_VERSION, SCAN_AI_DEGRADED_KEYS, SCAN_TOKEN_NULL_KEYS, SERVER_ACTION_WRITE_RE, type SecurityGrade, type Severity, TEST_FILE_PATTERN, TOTAL_RULE_COUNT, type TaintMap, type TargetCheck, type VibePlatform, aiStatusLine, allRules, applyTestPathSeverity, assessHeaders, astMatch, authPrefixCovers, bearerProvenanceSafe, billingWebhookUnmatchedProps, bucketFiles, buildProjectContext, buildQualityContext, buildReviewPrompt, buildTaintMap, calculateGrade, callSpreads, capabilityTokenHandler, checkIntent, classifyExposure, classifyPublicEnvVar, classifyStatement, clientSideAuth, collectRouteClaims, complianceMap, consoleLogProduction, corsWildcard, dangerousInnerHTML, deduplicateFindings, detectBuilder, detectExposedConfig, detectFramework, detectPlatform, disabledTLSVerification, dotenvValue, emptyCatchBlock, enclosingHandler, envNotGitignored, envVarNamesUsed, evalUsage, exposedAuthSecret, exposedDebugMode, exposedEnvFile, exposedStackTraces, extractRoutes, extractScriptUrls, filterFalsePositives, filterSilenced, findMatches, findMatchesAt, findSourceMapRefs, freeRules, getObjectProperty, getSnippet, gradeRuleFamily, hardcodedJWTSecret, hardcodedSecretValues, hardcodedSecrets, hardenUntrustedPromptText, harvestIntent, insecureCookies, insecureRandomness, isAnchoredPublicAuthPath, isCalleeNamed, isClientTarget, isCommentLine, isDotenvPath, isInlineSilenced, isInsideFixMessage, isLineSilenced, isLive, isMethodCall, isOgRoutePath, isPrivateAddress, isProtectedFromAiRemoval, isSbomPath, isServerSideFile, isServerTarget, isTestFile, isTestPath, isUngradedFinding, isVendoredFinding, isVendoredPath, lineNumberAt, lineTextAt, maskComments, maskOutboundAuthNoise, maskSecretValue, mergeIntentStatements, mergeRouteClaims, missingAuthMiddleware, missingCSP, missingErrorBoundary, missingHTTPS, missingLockFile, newDataFence, nextPublicSecret, noRateLimiting, normalizeScanPath, packReviewBatches, parseFile, parseScanTarget, parseSupabaseConfig, perCallTimeoutMs, planCause, prepareUntrustedSpan, publicHttpsUrl, publicReadOnlyHandler, qualityRules, refineDirectObjectFindings, replaceBlockComments, resetStructuralState, resolveSecretGuardedRoutes, routeDelegationFacts, routeForFile, routePathFromFile, runCustomRules, sanitizePromptField, scanAiDegradedProps, scanConfigs, scanDependencies, scanEntropy, scanMultiFile, scanQuality, scanTokenNullProps, setStructuralFaultForTest, sqlInjection, stripeWebhookUnprotected, structuralParseCount, supabaseFunctionName, supabaseNoRLS, testPathHold, toAiDegraded, todoLeftInCode, tryParse, unknownAiStatus, unmeasuredQualityRules, unvalidatedRedirect, vendoredReason, visitBinary, visitCalls, weakHashing, widenedAuthSuppresses, xssVulnerability };