@erosolaraijs/cure 3.0.3 → 3.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erosolaraijs/cure",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "AI-powered unified cancer treatment framework with multi-provider support for medical research and patient care",
5
5
  "main": "dist/bin/cure.js",
6
6
  "type": "module",
package/src/bin/cure.ts CHANGED
@@ -32,15 +32,19 @@ import {
32
32
  type ToolReport
33
33
  } from '../tools/index.js';
34
34
 
35
- const VERSION = '2.5.2';
35
+ // Read version from package.json to avoid hardcoded version mismatch
36
+ import { createRequire } from 'module';
37
+ const require = createRequire(import.meta.url);
38
+ const pkg = require('../../package.json');
39
+ const VERSION = pkg.version;
36
40
  const PACKAGE_NAME = '@erosolaraijs/cure';
37
41
  const UPDATE_CHECK_INTERVAL = 24 * 60 * 60 * 1000; // 24 hours
38
42
 
39
43
  // AI Model Configuration
40
44
  type AIProvider = 'xai' | 'openai';
41
45
  let currentProvider: AIProvider = (process.env.AI_PROVIDER as AIProvider) || 'xai';
42
- const XAI_MODEL = 'grok-4-1-fast-reasoning';
43
- const OPENAI_MODEL = 'gpt-5.1';
46
+ const XAI_MODEL = 'grok-4-1-fast-reasoning'; // xAI's Grok 4.1 Fast model
47
+ const OPENAI_MODEL = 'gpt-4o'; // OpenAI's latest model (gpt-5 does not exist)
44
48
 
45
49
  function getActiveModel(): string {
46
50
  return currentProvider === 'openai' ? OPENAI_MODEL : XAI_MODEL;
@@ -917,11 +921,13 @@ async function generateCureProtocol(cancerType: string, stage: string, mutations
917
921
  console.log(` Drugs: ${result.immunotherapy.drugs.join(', ')}`);
918
922
  }
919
923
 
920
- console.log(`\n${colors.bold}Projected Outcomes${colors.reset}`);
924
+ console.log(`\n${colors.bold}Projected Outcomes${colors.reset} ${colors.dim}(model estimates, not clinical data)${colors.reset}`);
921
925
  console.log(` Response Rate: ${colors.green}${(result.projectedOutcome.responseRate * 100).toFixed(1)}%${colors.reset}`);
922
926
  console.log(` 5-Year Survival: ${colors.green}${(result.projectedOutcome.fiveYearSurvival * 100).toFixed(1)}%${colors.reset}`);
923
927
  console.log(` Quality of Life: ${colors.green}${(result.projectedOutcome.qualityOfLife * 100).toFixed(1)}%${colors.reset}`);
924
928
  console.log(` Cure Confidence: ${colors.green}${colors.bold}${(result.projectedOutcome.cureConfidence * 100).toFixed(1)}%${colors.reset}`);
929
+ console.log(` ${colors.dim}⚠ These projections are algorithmic estimates based on published data.${colors.reset}`);
930
+ console.log(` ${colors.dim} Actual outcomes vary. Consult oncologist for personalized prognosis.${colors.reset}`);
925
931
 
926
932
  console.log(`\n${colors.bold}Breakthroughs${colors.reset}`);
927
933
  result.breakthroughs.forEach((bt) => {