@rigour-labs/core 4.3.5 → 4.3.6

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.
@@ -208,7 +208,11 @@ export async function checkForUpdates(onProgress) {
208
208
  clearTimeout(timeout);
209
209
  if (response.ok) {
210
210
  const data = await response.json();
211
- const latestVersion = String(data.version || BUNDLED_MODEL_VERSION);
211
+ // Handle both legacy integer versions (5 → "5.0.0") and SemVer strings ("2.0.0")
212
+ let rawVersion = data.version ?? BUNDLED_MODEL_VERSION;
213
+ const latestVersion = typeof rawVersion === 'number'
214
+ ? `${rawVersion}.0.0`
215
+ : String(rawVersion);
212
216
  // Cache the result locally
213
217
  await fs.writeJson(VERSION_CACHE_PATH, {
214
218
  version: latestVersion,
@@ -83,8 +83,13 @@ export interface ModelInfo {
83
83
  * publishes new versions to HuggingFace and updates latest_version.json.
84
84
  * At startup, model-manager checks HF for the latest version and downloads
85
85
  * it automatically (like antivirus signature updates).
86
+ *
87
+ * Version format: SemVer (MAJOR.MINOR.PATCH)
88
+ * - MAJOR: Training data format change, base model change, pipeline architecture
89
+ * - MINOR: New training repos, updated dataset, hyperparameter improvements
90
+ * - PATCH: Bug fixes, retraining with same data/format
86
91
  */
87
- export declare const BUNDLED_MODEL_VERSION = "1";
92
+ export declare const BUNDLED_MODEL_VERSION = "2.0.0";
88
93
  /** HuggingFace dataset repo where latest_version.json lives */
89
94
  export declare const VERSION_CHECK_URL = "https://huggingface.co/datasets/rigour-labs/rigour-rlaif-data/resolve/main/latest_version.json";
90
95
  /** Build model info for a given tier and version */
@@ -4,8 +4,13 @@
4
4
  * publishes new versions to HuggingFace and updates latest_version.json.
5
5
  * At startup, model-manager checks HF for the latest version and downloads
6
6
  * it automatically (like antivirus signature updates).
7
+ *
8
+ * Version format: SemVer (MAJOR.MINOR.PATCH)
9
+ * - MAJOR: Training data format change, base model change, pipeline architecture
10
+ * - MINOR: New training repos, updated dataset, hyperparameter improvements
11
+ * - PATCH: Bug fixes, retraining with same data/format
7
12
  */
8
- export const BUNDLED_MODEL_VERSION = '1';
13
+ export const BUNDLED_MODEL_VERSION = '2.0.0';
9
14
  /** HuggingFace dataset repo where latest_version.json lives */
10
15
  export const VERSION_CHECK_URL = 'https://huggingface.co/datasets/rigour-labs/rigour-rlaif-data/resolve/main/latest_version.json';
11
16
  /** Build model info for a given tier and version */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/core",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "Deterministic quality gate engine for AI-generated code. AST analysis, drift detection, and Fix Packet generation across TypeScript, JavaScript, Python, Go, Ruby, and C#.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rigour.run",
@@ -59,11 +59,11 @@
59
59
  "@xenova/transformers": "^2.17.2",
60
60
  "better-sqlite3": "^11.0.0",
61
61
  "openai": "^4.104.0",
62
- "@rigour-labs/brain-darwin-arm64": "4.3.5",
63
- "@rigour-labs/brain-darwin-x64": "4.3.5",
64
- "@rigour-labs/brain-win-x64": "4.3.5",
65
- "@rigour-labs/brain-linux-x64": "4.3.5",
66
- "@rigour-labs/brain-linux-arm64": "4.3.5"
62
+ "@rigour-labs/brain-darwin-arm64": "4.3.6",
63
+ "@rigour-labs/brain-darwin-x64": "4.3.6",
64
+ "@rigour-labs/brain-linux-arm64": "4.3.6",
65
+ "@rigour-labs/brain-win-x64": "4.3.6",
66
+ "@rigour-labs/brain-linux-x64": "4.3.6"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/better-sqlite3": "^7.6.12",