@rigour-labs/core 3.0.5 → 4.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.
Files changed (85) hide show
  1. package/dist/deep/fact-extractor.d.ts +80 -0
  2. package/dist/deep/fact-extractor.js +626 -0
  3. package/dist/deep/index.d.ts +14 -0
  4. package/dist/deep/index.js +12 -0
  5. package/dist/deep/prompts.d.ts +22 -0
  6. package/dist/deep/prompts.js +374 -0
  7. package/dist/deep/verifier.d.ts +16 -0
  8. package/dist/deep/verifier.js +388 -0
  9. package/dist/gates/deep-analysis.d.ts +28 -0
  10. package/dist/gates/deep-analysis.js +302 -0
  11. package/dist/gates/deprecated-apis-rules-lang.d.ts +21 -0
  12. package/dist/gates/deprecated-apis-rules-lang.js +311 -0
  13. package/dist/gates/deprecated-apis-rules-node.d.ts +19 -0
  14. package/dist/gates/deprecated-apis-rules-node.js +199 -0
  15. package/dist/gates/deprecated-apis-rules.d.ts +6 -0
  16. package/dist/gates/deprecated-apis-rules.js +6 -0
  17. package/dist/gates/deprecated-apis.js +1 -502
  18. package/dist/gates/hallucinated-imports-lang.d.ts +16 -0
  19. package/dist/gates/hallucinated-imports-lang.js +374 -0
  20. package/dist/gates/hallucinated-imports-stdlib.d.ts +12 -0
  21. package/dist/gates/hallucinated-imports-stdlib.js +228 -0
  22. package/dist/gates/hallucinated-imports.d.ts +0 -98
  23. package/dist/gates/hallucinated-imports.js +10 -678
  24. package/dist/gates/phantom-apis-data.d.ts +33 -0
  25. package/dist/gates/phantom-apis-data.js +398 -0
  26. package/dist/gates/phantom-apis.js +1 -393
  27. package/dist/gates/phantom-apis.test.js +52 -0
  28. package/dist/gates/promise-safety-helpers.d.ts +19 -0
  29. package/dist/gates/promise-safety-helpers.js +101 -0
  30. package/dist/gates/promise-safety-rules.d.ts +7 -0
  31. package/dist/gates/promise-safety-rules.js +19 -0
  32. package/dist/gates/promise-safety.d.ts +1 -21
  33. package/dist/gates/promise-safety.js +51 -257
  34. package/dist/gates/runner.d.ts +4 -2
  35. package/dist/gates/runner.js +46 -1
  36. package/dist/gates/test-quality-lang.d.ts +30 -0
  37. package/dist/gates/test-quality-lang.js +188 -0
  38. package/dist/gates/test-quality.d.ts +0 -14
  39. package/dist/gates/test-quality.js +13 -186
  40. package/dist/index.d.ts +10 -0
  41. package/dist/index.js +12 -2
  42. package/dist/inference/cloud-provider.d.ts +34 -0
  43. package/dist/inference/cloud-provider.js +126 -0
  44. package/dist/inference/index.d.ts +17 -0
  45. package/dist/inference/index.js +23 -0
  46. package/dist/inference/model-manager.d.ts +26 -0
  47. package/dist/inference/model-manager.js +106 -0
  48. package/dist/inference/sidecar-provider.d.ts +15 -0
  49. package/dist/inference/sidecar-provider.js +153 -0
  50. package/dist/inference/types.d.ts +77 -0
  51. package/dist/inference/types.js +19 -0
  52. package/dist/pattern-index/indexer-helpers.d.ts +38 -0
  53. package/dist/pattern-index/indexer-helpers.js +111 -0
  54. package/dist/pattern-index/indexer-lang.d.ts +13 -0
  55. package/dist/pattern-index/indexer-lang.js +244 -0
  56. package/dist/pattern-index/indexer-ts.d.ts +22 -0
  57. package/dist/pattern-index/indexer-ts.js +258 -0
  58. package/dist/pattern-index/indexer.d.ts +4 -106
  59. package/dist/pattern-index/indexer.js +58 -707
  60. package/dist/pattern-index/staleness-data.d.ts +6 -0
  61. package/dist/pattern-index/staleness-data.js +262 -0
  62. package/dist/pattern-index/staleness.js +1 -258
  63. package/dist/settings.d.ts +104 -0
  64. package/dist/settings.js +186 -0
  65. package/dist/storage/db.d.ts +16 -0
  66. package/dist/storage/db.js +132 -0
  67. package/dist/storage/findings.d.ts +14 -0
  68. package/dist/storage/findings.js +38 -0
  69. package/dist/storage/index.d.ts +9 -0
  70. package/dist/storage/index.js +8 -0
  71. package/dist/storage/patterns.d.ts +35 -0
  72. package/dist/storage/patterns.js +62 -0
  73. package/dist/storage/scans.d.ts +42 -0
  74. package/dist/storage/scans.js +55 -0
  75. package/dist/templates/index.d.ts +12 -16
  76. package/dist/templates/index.js +11 -527
  77. package/dist/templates/paradigms.d.ts +2 -0
  78. package/dist/templates/paradigms.js +46 -0
  79. package/dist/templates/presets.d.ts +14 -0
  80. package/dist/templates/presets.js +227 -0
  81. package/dist/templates/universal-config.d.ts +2 -0
  82. package/dist/templates/universal-config.js +190 -0
  83. package/dist/types/index.d.ts +438 -15
  84. package/dist/types/index.js +41 -1
  85. package/package.json +6 -2
@@ -44,102 +44,4 @@ export declare class HallucinatedImportsGate extends Gate {
44
44
  private resolveRelativeImport;
45
45
  private extractPackageName;
46
46
  private shouldIgnore;
47
- /**
48
- * Node.js built-in modules — covers Node.js 18/20/22 LTS
49
- * No third-party packages in this list (removed fs-extra hack).
50
- */
51
- private isNodeBuiltin;
52
- private isPythonStdlib;
53
- /**
54
- * Check Go imports — verify project-relative package paths exist.
55
- *
56
- * Strategy:
57
- * 1. Skip Go standard library (comprehensive list of 150+ packages)
58
- * 2. Skip external modules (any path containing a dot → domain name)
59
- * 3. Parse go.mod for the project module path
60
- * 4. Only flag imports that match the project module prefix but don't resolve
61
- *
62
- * @since v3.0.1 — fixed false positives on Go stdlib (encoding/json, net/http, etc.)
63
- */
64
- private checkGoImports;
65
- /**
66
- * Comprehensive Go standard library package list.
67
- * Includes all packages from Go 1.22+ (latest stable).
68
- * Go stdlib is identified by having NO dots in the import path.
69
- * We maintain an explicit list for packages with slashes (e.g. encoding/json).
70
- *
71
- * @since v3.0.1
72
- */
73
- private isGoStdlib;
74
- /**
75
- * Check Ruby imports — require, require_relative, Gemfile verification
76
- *
77
- * Strategy:
78
- * 1. require_relative: verify target .rb file exists in project
79
- * 2. require: skip stdlib, skip gems from Gemfile/gemspec, flag unknown local requires
80
- *
81
- * @since v3.0.1 — strengthened with stdlib whitelist and Gemfile parsing
82
- */
83
- private checkRubyImports;
84
- /** Load gem names from Gemfile */
85
- private loadRubyGems;
86
- /**
87
- * Ruby standard library — covers Ruby 3.3+ (MRI)
88
- * Includes both the default gems and bundled gems that ship with Ruby.
89
- */
90
- private isRubyStdlib;
91
- /**
92
- * Check C# imports — using directives against .NET framework, NuGet, and project
93
- *
94
- * Strategy:
95
- * 1. Skip .NET framework namespaces (System.*, Microsoft.*, etc.)
96
- * 2. Skip NuGet packages from .csproj PackageReference
97
- * 3. Flag project-relative namespaces that don't resolve
98
- *
99
- * @since v3.0.1 — .csproj NuGet parsing, comprehensive framework namespace list
100
- */
101
- private checkCSharpImports;
102
- /** Check if any .csproj file exists in the project root */
103
- private hasCsprojFile;
104
- /** Parse .csproj files for PackageReference names */
105
- private loadNuGetPackages;
106
- /**
107
- * .NET 8 framework and common ecosystem namespaces
108
- * Covers BCL, ASP.NET, EF Core, and major ecosystem packages
109
- */
110
- private isDotNetFramework;
111
- /**
112
- * Check Rust imports — use/extern crate against std/core/alloc and Cargo.toml
113
- *
114
- * Strategy:
115
- * 1. Skip Rust std, core, alloc crates
116
- * 2. Skip crates listed in Cargo.toml [dependencies]
117
- * 3. Flag unknown extern crate and use statements for project modules that don't exist
118
- *
119
- * @since v3.0.1
120
- */
121
- private checkRustImports;
122
- /** Load dependency names from Cargo.toml */
123
- private loadCargoDeps;
124
- /** Rust standard crates — std, core, alloc, proc_macro, and common test crates */
125
- private isRustStdCrate;
126
- /**
127
- * Check Java/Kotlin imports — against stdlib and build dependencies
128
- *
129
- * Strategy:
130
- * 1. Skip java.*, javax.*, jakarta.* (Java stdlib/EE)
131
- * 2. Skip kotlin.*, kotlinx.* (Kotlin stdlib)
132
- * 3. Skip deps from build.gradle or pom.xml
133
- * 4. Flag project-relative imports that don't resolve
134
- *
135
- * @since v3.0.1
136
- */
137
- private checkJavaKotlinImports;
138
- /** Load dependency group IDs from build.gradle or pom.xml */
139
- private loadJavaDeps;
140
- /** Java standard library and Jakarta EE namespaces */
141
- private isJavaStdlib;
142
- /** Kotlin standard library namespaces */
143
- private isKotlinStdlib;
144
- private loadPackageJson;
145
47
  }