@erosolaraijs/cure 2.5.0 → 2.5.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cure
2
2
 
3
- AI-powered precision oncology platform for cancer treatment, clinical decision support, and research.
3
+ AI-powered precision oncology and comprehensive health platform for cancer treatment, clinical decision support, and wellness optimization.
4
4
 
5
5
  ```
6
6
  ██████╗██╗ ██╗██████╗ ███████╗
@@ -20,170 +20,215 @@ npm install -g @erosolaraijs/cure
20
20
  ## Quick Start
21
21
 
22
22
  ```bash
23
- # Launch interactive AI oncologist
23
+ # Launch interactive mode
24
24
  cure
25
25
 
26
- # Set your AI provider (xAI or OpenAI)
27
- /model openai
28
- /key YOUR_API_KEY
26
+ # Or run specific commands directly
27
+ cure --selftest # Run health checks
28
+ cure --tools # List all 70+ health tools
29
+ cure --tool=preventive-screening # Run a specific tool
30
+ cure --cure --cancer=NSCLC --stage=IV --mutations=KRAS_G12C
31
+ ```
32
+
33
+ ## Interactive Mode
34
+
35
+ Just run `cure` to enter interactive mode:
29
36
 
30
- # Generate a cure protocol
31
- /cure NSCLC IV KRAS_G12C
32
37
  ```
38
+ $ cure
33
39
 
34
- ## Features
40
+ ██████╗██╗ ██╗██████╗ ███████╗
41
+ ██╔════╝██║ ██║██╔══██╗██╔════╝
42
+ ...
35
43
 
36
- ### Interactive AI Oncologist
44
+ cure> /help # Show all commands
45
+ cure> /tools # List all 70+ health tools
46
+ cure> /tool preventive-screening # Run preventive screening
47
+ cure> /cure Lung IV EGFR # Generate cure protocol
48
+ cure> What treatments are available for KRAS G12C lung cancer?
49
+ ```
37
50
 
38
- Chat with an AI-powered oncology assistant for:
39
- - Treatment recommendations based on cancer type, stage, and biomarkers
40
- - Drug mechanism explanations
41
- - Clinical trial guidance
42
- - Biomarker interpretation
51
+ ## Features
43
52
 
44
- **Multi-Provider Support:**
45
- - **xAI Grok** (`grok-4-1-fast-reasoning`) - Default
46
- - **OpenAI GPT-5.1** (`gpt-5.1`) - Alternative
53
+ ### 70+ Health & Wellness Tools
54
+
55
+ Run `/tools` to see all available tools, or `/tool <id>` to run a specific tool.
56
+
57
+ #### Cancer & Oncology Tools
58
+ | Tool | Description |
59
+ |------|-------------|
60
+ | `selftest` | Core capability smoke tests |
61
+ | `validate` | Retrospective validation |
62
+ | `cancer-core` | Treatment dataset summary |
63
+ | `cancer-analyze` | Patient analysis |
64
+ | `cancer-plan` | Treatment planning |
65
+ | `cancer-cure` | Cure protocol generation |
66
+ | `cancer-discover` | Drug target discovery |
67
+ | `universal-cure` | Universal cancer cure engine |
68
+ | `global-coverage` | Global guideline coverage |
69
+ | `treatment-sequencing` | Next-line therapy |
70
+ | `precision-medicine` | Precision medicine report |
71
+ | `emerging-therapeutics` | Emerging therapies |
72
+ | `multimodal-oncology` | Multimodal oncology |
73
+ | `special-populations` | Pediatric/geriatric care |
74
+ | `resistance-management` | Resistance analysis |
75
+ | `cure-verification` | Cure status verification |
76
+ | `cure-validation` | Coverage validation |
77
+ | `clinical-trial-matching` | Trial matching |
78
+ | `palliative-care` | Pain and opioid management |
79
+ | `emergency-oncology` | Oncology emergencies |
80
+ | `survivorship-care` | Survivorship planning |
81
+
82
+ #### Preventive Health Tools
83
+ | Tool | Description |
84
+ |------|-------------|
85
+ | `preventive-screening` | Age/gender-specific screenings |
86
+ | `immunization-schedule` | Vaccine recommendations |
87
+ | `genetic-risk` | Hereditary condition assessment |
88
+ | `skin-health` | Skin cancer prevention |
89
+
90
+ #### Chronic Disease Management
91
+ | Tool | Description |
92
+ |------|-------------|
93
+ | `cardiovascular-risk` | ASCVD/Framingham risk |
94
+ | `diabetes-management` | Diabetes care |
95
+ | `hypertension-management` | Blood pressure management |
96
+ | `kidney-health` | CKD screening/staging |
97
+ | `liver-health` | Liver disease assessment |
98
+ | `respiratory-health` | COPD/asthma evaluation |
99
+ | `thyroid-screening` | Thyroid disorders |
100
+ | `bone-health` | Osteoporosis assessment |
101
+
102
+ #### Mental Health & Wellness
103
+ | Tool | Description |
104
+ |------|-------------|
105
+ | `mental-health-screening` | Depression/anxiety screening |
106
+ | `cognitive-screening` | Dementia risk assessment |
107
+ | `sleep-assessment` | Sleep disorders |
108
+ | `substance-screening` | Alcohol/tobacco/drug screening |
109
+ | `stress-management` | Stress coping strategies |
110
+
111
+ #### Nutrition & Lifestyle
112
+ | Tool | Description |
113
+ |------|-------------|
114
+ | `nutrition-assessment` | Dietary recommendations |
115
+ | `exercise-prescription` | Exercise guidelines |
116
+ | `weight-management` | Obesity management |
117
+ | `longevity-assessment` | Healthy aging strategies |
118
+ | `health-optimization` | Comprehensive wellness |
119
+
120
+ #### Specialized Care
121
+ | Tool | Description |
122
+ |------|-------------|
123
+ | `sexual-health` | STI screening, contraception |
124
+ | `infectious-disease` | HIV, hepatitis, TB screening |
125
+ | `autoimmune-screening` | Autoimmune markers |
126
+ | `allergy-assessment` | Allergy testing |
127
+ | `pain-management` | Chronic pain options |
128
+ | `medication-review` | Polypharmacy review |
129
+ | `fall-risk` | Fall risk assessment |
130
+ | `functional-status` | ADL/IADL assessment |
131
+
132
+ #### Life Stage Care
133
+ | Tool | Description |
134
+ |------|-------------|
135
+ | `pediatric-wellness` | Child development |
136
+ | `prenatal-care` | Pregnancy care |
137
+ | `menopause-management` | Menopause symptoms |
138
+ | `prostate-health` | Prostate screening |
139
+
140
+ #### Specialized Settings
141
+ | Tool | Description |
142
+ |------|-------------|
143
+ | `travel-health` | Travel vaccines/malaria |
144
+ | `occupational-health` | Workplace hazards |
145
+ | `environmental-health` | Environmental exposures |
146
+ | `vision-screening` | Eye health |
147
+ | `hearing-screening` | Audiological care |
148
+ | `dental-health` | Oral health |
149
+
150
+ ### AI Chat
151
+
152
+ Chat with an AI oncologist using xAI Grok or OpenAI GPT-5.1:
47
153
 
48
- Switch providers at runtime with `/model xai` or `/model openai`.
154
+ ```bash
155
+ cure> /model openai
156
+ cure> /key YOUR_API_KEY
157
+ cure> What is the best treatment for HER2+ breast cancer?
158
+ ```
49
159
 
50
160
  ### Comprehensive Cancer Coverage
51
161
 
52
162
  | Category | Coverage |
53
163
  |----------|----------|
54
- | Cancer Types | 200+ types and histological subtypes |
164
+ | Cancer Types | 200+ types and subtypes |
55
165
  | Biomarkers | 500+ actionable targets |
56
- | Protocols | 100+ (NCCN, ESMO, ASCO, FDA) |
57
- | Patient Populations | Pediatric, AYA, adult, elderly, frail |
58
- | Special Circumstances | Pregnancy, transplant, autoimmune, HIV |
59
- | Stages | Localized, locally advanced, metastatic, recurrent |
60
-
61
- ### Core Capabilities
62
-
63
- #### Patient Analysis (`/analyze`)
64
- - Genomic profiling and biomarker assessment
65
- - Risk stratification and survival prediction
66
- - Treatment response modeling
67
- - MSI/TMB/HRD status analysis
68
-
69
- #### Treatment Planning (`/plan`)
70
- - NCCN, ESMO, ASCO protocol integration
71
- - Personalized treatment recommendations
72
- - Multi-modality planning (surgery, radiation, systemic)
73
- - Timeline and monitoring schedules
74
-
75
- #### Cure Protocol Generation (`/cure`)
76
- - Comprehensive cure strategies by cancer type and stage
77
- - Drug target prioritization with evidence levels
78
- - Immunotherapy protocol matching
79
- - Projected outcomes (response rate, 5-year survival, cure confidence)
80
-
81
- #### Drug Target Discovery (`/discover`)
82
- - AI-driven target identification
83
- - Evidence-based prioritization (FDA-approved, clinical trials, preclinical)
84
- - Pathway analysis
85
- - Approved drug matching
86
-
87
- #### Clinical Trial Matching (`/trials`)
88
- - ClinicalTrials.gov integration
89
- - Biomarker-based eligibility matching
90
- - Location-aware search
91
- - Phase and status filtering
92
-
93
- #### Drug Safety (`/safety`)
94
- - Drug-drug interaction checking
95
- - Black box warning alerts
96
- - QT prolongation risk assessment
97
- - Pharmacogenomic considerations (DPYD, UGT1A1, TPMT/NUDT15)
98
-
99
- #### ML Outcome Prediction (`/predict`)
100
- - Response prediction (CR, PR, SD, PD)
101
- - Survival estimates (PFS, OS with confidence intervals)
102
- - Toxicity risk assessment
103
- - Resistance prediction
166
+ | Protocols | 154+ (NCCN, ESMO, ASCO, FDA) |
167
+ | Drug Targets | 185+ with approved therapies |
104
168
 
105
169
  ### EHR Integration
106
170
 
107
- Connect to hospital systems via HL7 FHIR R4:
108
-
109
171
  ```bash
110
- /ehr connect epic
111
- /ehr connect cerner
172
+ cure> /ehr connect epic
173
+ cure> /ehr connect cerner
112
174
  ```
113
175
 
114
- **Supported Systems:**
115
- - Epic
116
- - Cerner
176
+ ### Genomic Platforms
117
177
 
118
- **Data Exchange:**
119
- - Patient demographics
120
- - Cancer diagnoses (ICD-10)
121
- - Biomarker results
122
- - Treatment history
123
- - Medication records
124
-
125
- ### Genomic Platform Integration
126
-
127
- ```bash
128
- /genomics platforms
129
- ```
130
-
131
- **Supported Platforms:**
132
- - **Foundation Medicine** (FoundationOne CDx)
133
- - **Guardant Health** (Guardant360, GuardantOMNI)
134
- - **Tempus** (xT, xF, xR)
135
-
136
- **Analysis Types:**
137
- - Somatic variant detection
138
- - Copy number alterations
139
- - Gene fusions
140
- - MSI/TMB analysis
141
- - Therapy matching
142
-
143
- ### HIPAA Compliance
144
-
145
- - End-to-end encryption
146
- - PHI masking and de-identification
147
- - Audit logging with 7-year retention
148
- - Role-based access control
149
- - Consent management
178
+ - Foundation Medicine (FoundationOne CDx)
179
+ - Guardant Health (Guardant360)
180
+ - Tempus (xT, xF, xR)
150
181
 
151
182
  ## CLI Commands
152
183
 
153
- ### AI Chat Commands
184
+ ### Quick Commands
154
185
  | Command | Description |
155
186
  |---------|-------------|
156
- | `/key [provider] [key]` | Set API key (xai or openai) |
157
- | `/model [xai\|openai]` | Show/switch AI provider |
158
- | `/clear` | Clear conversation history |
187
+ | `/help` | Show all commands |
188
+ | `/tools` | List all 70+ health tools |
189
+ | `/tool <id>` | Run a specific tool |
190
+ | `/tool all` | Run all tools |
191
+ | `/selftest` | Run self-tests |
159
192
 
160
- ### Clinical Commands
161
- | Command | Description |
162
- |---------|-------------|
163
- | `/analyze [patient]` | Analyze patient data |
164
- | `/plan [patient]` | Design treatment plan |
165
- | `/cure [cancer] [stage] [mutations...]` | Generate cure protocol |
166
- | `/discover [gene] [cancer]` | Drug target discovery |
167
- | `/trials [cancer] [biomarkers...]` | Find clinical trials |
168
- | `/safety [drug1] [drug2...]` | Check drug interactions |
169
- | `/predict [patient]` | ML outcome predictions |
170
-
171
- ### System Commands
193
+ ### Cancer Commands
172
194
  | Command | Description |
173
195
  |---------|-------------|
174
- | `/status` | System health check |
175
- | `/ehr [connect\|status]` | EHR integration |
176
- | `/genomics [platforms]` | Genomic platforms status |
177
- | `/demo` | Run framework demonstration |
178
- | `/version` | Show version |
179
- | `/update` | Check for updates |
180
-
181
- ### Tool Commands
196
+ | `/analyze [patient]` | Analyze patient |
197
+ | `/plan [patient]` | Treatment plan |
198
+ | `/cure [cancer] [stage] [mutations...]` | Cure protocol |
199
+ | `/discover [gene] [cancer]` | Drug discovery |
200
+ | `/trials [cancer] [biomarkers...]` | Clinical trials |
201
+ | `/safety [drug1] [drug2...]` | Drug interactions |
202
+ | `/predict [patient]` | ML predictions |
203
+
204
+ ### AI Commands
182
205
  | Command | Description |
183
206
  |---------|-------------|
184
- | `/tools` | List diagnostic tools |
185
- | `/tool <id>` | Run a tool (see `/tools`) |
186
- | `/tool all` | Run all tools |
207
+ | `/key [provider] [key]` | Set API key |
208
+ | `/model [xai\|openai]` | Switch AI provider |
209
+ | `/clear` | Clear conversation |
210
+
211
+ ## Command Line Usage
212
+
213
+ ```bash
214
+ # Run tools directly
215
+ cure --selftest
216
+ cure --tools
217
+ cure --tool=preventive-screening
218
+ cure --tool=cardiovascular-risk
219
+
220
+ # Cancer commands
221
+ cure --cure --cancer=NSCLC --stage=IV --mutations=KRAS_G12C,TP53
222
+ cure --trials --cancer=Melanoma --biomarkers=BRAF_V600E
223
+ cure --safety --drugs=pembrolizumab,ipilimumab
224
+ cure --analyze-patient --patient=P001 --genomics
225
+ cure --drug-discovery --target=BRAF --cancer=Melanoma
226
+
227
+ # System
228
+ cure --status
229
+ cure --version
230
+ cure --help
231
+ ```
187
232
 
188
233
  ## Programmatic API
189
234
 
@@ -192,167 +237,38 @@ import {
192
237
  CancerTreatmentCapabilityModule,
193
238
  createOncologyPlatform,
194
239
  FHIRClient,
195
- ClinicalTrialsGovClient,
196
- OutcomePredictorService,
197
- DrugSafetyService,
198
- HIPAAComplianceService
240
+ ClinicalTrialsGovClient
199
241
  } from '@erosolaraijs/cure';
200
242
 
201
- // Quick start with full platform
243
+ // Quick start
202
244
  const platform = await createOncologyPlatform({
203
- ehr: {
204
- enabled: true,
205
- vendor: 'epic',
206
- baseUrl: 'https://epic.hospital.org/fhir',
207
- clientId: 'your-client-id'
208
- },
209
- genomics: {
210
- enabled: true,
211
- platforms: ['foundation', 'guardant', 'tempus']
212
- },
213
- clinicalTrials: {
214
- enabled: true,
215
- maxDistance: 100
216
- },
217
- ml: {
218
- enabled: true,
219
- modelVersion: '1.0.0'
220
- },
221
- safety: {
222
- enabled: true,
223
- strictMode: true
224
- },
225
- compliance: {
226
- enabled: true,
227
- auditRetentionDays: 2555
228
- }
245
+ genomics: { enabled: true, platforms: ['foundation', 'guardant', 'tempus'] },
246
+ clinicalTrials: { enabled: true },
247
+ ml: { enabled: true },
248
+ safety: { enabled: true, strictMode: true },
249
+ compliance: { enabled: true }
229
250
  });
230
251
 
231
- // Generate comprehensive treatment plan
232
- const plan = await platform.generateComprehensivePlan(patient, 'DR001');
233
- ```
234
-
235
- ### Core Module Usage
236
-
237
- ```typescript
238
- // Cancer treatment capability
239
- const capability = new CancerTreatmentCapabilityModule();
240
-
241
- // Analyze patient
242
- const analysis = await capability.analyzePatient('P001', true);
243
-
244
252
  // Generate cure protocol
245
- const cure = await capability.cureCancer('P001', 'Lung', 'IV', {
253
+ const cure = await platform.cureCancer('P001', 'Lung', 'IV', {
246
254
  mutations: ['EGFR', 'TP53'],
247
255
  biomarkers: ['PD-L1'],
248
256
  msiStatus: 'MSS',
249
257
  tmbLevel: 'High'
250
258
  });
251
-
252
- // Discover drug targets
253
- const targets = await capability.discoverDrugTargets('Melanoma', 'BRAF');
254
- ```
255
-
256
- ### Individual Services
257
-
258
- ```typescript
259
- // EHR Integration
260
- const fhir = new FHIRClient(config);
261
- const patient = await fhir.getPatient('12345');
262
- const conditions = await fhir.getConditions('12345');
263
-
264
- // Clinical Trials
265
- const trials = new ClinicalTrialsGovClient();
266
- const matches = await trials.searchTrials({
267
- condition: 'Non-Small Cell Lung Cancer',
268
- intervention: 'pembrolizumab',
269
- status: 'RECRUITING'
270
- });
271
-
272
- // ML Predictions
273
- const predictor = new OutcomePredictorService();
274
- const response = await predictor.predictResponse(patientFeatures, treatmentFeatures);
275
-
276
- // Drug Safety
277
- const safety = new DrugSafetyService();
278
- const interactions = await safety.checkInteractions(['pembrolizumab', 'ipilimumab']);
279
-
280
- // HIPAA Compliance
281
- const hipaa = new HIPAAComplianceService();
282
- await hipaa.logAccess(userId, patientId, 'VIEW', 'Clinical review');
283
259
  ```
284
260
 
285
261
  ## Environment Variables
286
262
 
287
263
  | Variable | Description |
288
264
  |----------|-------------|
289
- | `AI_PROVIDER` | AI provider: `xai` or `openai` (default: xai) |
265
+ | `AI_PROVIDER` | `xai` or `openai` (default: xai) |
290
266
  | `XAI_API_KEY` | xAI API key |
291
267
  | `OPENAI_API_KEY` | OpenAI API key |
292
268
  | `FHIR_BASE_URL` | FHIR server URL |
293
269
  | `FHIR_CLIENT_ID` | FHIR OAuth client ID |
294
270
  | `FHIR_CLIENT_SECRET` | FHIR OAuth client secret |
295
271
 
296
- ## Supported Cancer Types
297
-
298
- <details>
299
- <summary>Click to expand full list</summary>
300
-
301
- **Solid Tumors:**
302
- - Lung (NSCLC, SCLC, mesothelioma)
303
- - Breast (HR+, HER2+, TNBC)
304
- - Colorectal
305
- - Prostate
306
- - Melanoma
307
- - Pancreatic
308
- - Hepatocellular
309
- - Gastric/Esophageal
310
- - Ovarian
311
- - Endometrial
312
- - Cervical
313
- - Bladder/Urothelial
314
- - Renal Cell
315
- - Head and Neck
316
- - Thyroid
317
- - Sarcomas
318
- - Brain (GBM, meningioma)
319
- - And 150+ more subtypes
320
-
321
- **Hematologic Malignancies:**
322
- - Acute Myeloid Leukemia (AML)
323
- - Acute Lymphoblastic Leukemia (ALL)
324
- - Chronic Myeloid Leukemia (CML)
325
- - Chronic Lymphocytic Leukemia (CLL)
326
- - Diffuse Large B-Cell Lymphoma
327
- - Follicular Lymphoma
328
- - Hodgkin Lymphoma
329
- - Multiple Myeloma
330
- - Myelodysplastic Syndromes
331
- - Myeloproliferative Neoplasms
332
-
333
- **Rare Cancers:**
334
- - Cholangiocarcinoma
335
- - Neuroendocrine Tumors
336
- - GIST
337
- - Adrenocortical Carcinoma
338
- - Thymoma
339
- - And more
340
-
341
- </details>
342
-
343
- ## Emerging Therapeutics
344
-
345
- The platform includes cutting-edge treatment modalities:
346
-
347
- - **Antibody-Drug Conjugates (ADCs):** T-DXd, sacituzumab govitecan
348
- - **Bispecific Antibodies:** teclistamab, glofitamab
349
- - **CAR-T Therapies:** axi-cel, liso-cel, ide-cel
350
- - **Tumor-Infiltrating Lymphocytes (TILs):** lifileucel
351
- - **KRAS Inhibitors:** sotorasib, adagrasib
352
- - **Protein Degraders:** PROTACs, molecular glues
353
- - **Radiopharmaceuticals:** Lu-177 PSMA, I-131 MIBG
354
- - **Cancer Vaccines:** mRNA-4157, personalized neoantigen vaccines
355
-
356
272
  ## Requirements
357
273
 
358
274
  - Node.js >= 18.0.0
@@ -364,4 +280,3 @@ MIT
364
280
  ## Links
365
281
 
366
282
  - [npm Package](https://www.npmjs.com/package/@erosolaraijs/cure)
367
- - [Report Issues](https://github.com/anthropics/claude-code/issues)
package/dist/bin/cure.js CHANGED
@@ -20,7 +20,7 @@ import * as os from 'os';
20
20
  import { CancerTreatmentCapabilityModule } from '../capabilities/cancerTreatmentCapability.js';
21
21
  import { createRealWorldOncologyService } from '../orchestrator/realWorldOncology.js';
22
22
  import { getCliTool, listCliTools } from '../tools/index.js';
23
- const VERSION = '2.5.0';
23
+ const VERSION = '2.5.1';
24
24
  const PACKAGE_NAME = '@erosolaraijs/cure';
25
25
  const UPDATE_CHECK_INTERVAL = 24 * 60 * 60 * 1000; // 24 hours
26
26
  let currentProvider = process.env.AI_PROVIDER || 'xai';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erosolaraijs/cure",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
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,7 +32,7 @@ import {
32
32
  type ToolReport
33
33
  } from '../tools/index.js';
34
34
 
35
- const VERSION = '2.5.0';
35
+ const VERSION = '2.5.1';
36
36
  const PACKAGE_NAME = '@erosolaraijs/cure';
37
37
  const UPDATE_CHECK_INTERVAL = 24 * 60 * 60 * 1000; // 24 hours
38
38