@fastino-ai/pioneer-cli 0.2.2 → 0.2.3

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 (40) hide show
  1. package/.claude/settings.local.json +7 -1
  2. package/.cursor/rules/api-documentation.mdc +14 -0
  3. package/.cursor/rules/backend-location-rule.mdc +5 -0
  4. package/Medical_NER_Dataset_1.jsonl +50 -0
  5. package/README.md +4 -1
  6. package/bun.lock +52 -0
  7. package/package.json +5 -2
  8. package/src/api.ts +551 -22
  9. package/src/chat/ChatApp.tsx +548 -263
  10. package/src/client/ToolExecutor.ts +175 -0
  11. package/src/client/WebSocketClient.ts +333 -0
  12. package/src/client/index.ts +2 -0
  13. package/src/config.ts +49 -139
  14. package/src/index.tsx +796 -106
  15. package/src/telemetry.ts +173 -0
  16. package/src/tests/config.test.ts +19 -0
  17. package/src/tools/bash.ts +1 -1
  18. package/src/tools/filesystem.ts +1 -1
  19. package/src/tools/index.ts +2 -9
  20. package/src/tools/sandbox.ts +1 -1
  21. package/src/tools/types.ts +25 -0
  22. package/src/utils/index.ts +6 -0
  23. package/fastino-ai-pioneer-cli-0.2.0.tgz +0 -0
  24. package/ner_dataset.json +0 -111
  25. package/src/agent/Agent.ts +0 -342
  26. package/src/agent/BudgetManager.ts +0 -167
  27. package/src/agent/LLMClient.ts +0 -435
  28. package/src/agent/ToolRegistry.ts +0 -97
  29. package/src/agent/index.ts +0 -15
  30. package/src/agent/types.ts +0 -84
  31. package/src/evolution/EvalRunner.ts +0 -301
  32. package/src/evolution/EvolutionEngine.ts +0 -319
  33. package/src/evolution/FeedbackCollector.ts +0 -197
  34. package/src/evolution/ModelTrainer.ts +0 -371
  35. package/src/evolution/index.ts +0 -18
  36. package/src/evolution/types.ts +0 -110
  37. package/src/tools/modal.ts +0 -269
  38. package/src/tools/training.ts +0 -443
  39. package/src/tools/wandb.ts +0 -348
  40. /package/src/{agent → utils}/FileResolver.ts +0 -0
@@ -5,7 +5,13 @@
5
5
  "Bash(bun run build:*)",
6
6
  "WebFetch(domain:localhost)",
7
7
  "Bash(bun run:*)",
8
- "Bash(cat:*)"
8
+ "Bash(cat:*)",
9
+ "Bash(grep:*)",
10
+ "Bash(PIONEER_API_URL=http://localhost:5001 bun run:*)",
11
+ "Bash(PIONEER_API_URL=http://localhost:5001 bun:*)",
12
+ "Bash(bun pm:*)",
13
+ "Bash(npm ls:*)",
14
+ "Bash(git log:*)"
9
15
  ]
10
16
  }
11
17
  }
@@ -0,0 +1,14 @@
1
+ ---
2
+ alwaysApply: true
3
+ ---
4
+ # API Documentation
5
+
6
+ The Pioneer API schema and documentation is available at http://localhost:5001/openapi.json
7
+
8
+ **ALWAYS check this endpoint when you need information about:**
9
+ - Available API endpoints
10
+ - Request/response formats
11
+ - API capabilities
12
+ - Any question mentioning "api" or "API"
13
+
14
+ Before answering ANY question about the API, you MUST read the documentation at http://localhost:5001/openapi.json
@@ -0,0 +1,5 @@
1
+ ---
2
+ alwaysApply: true
3
+ ---
4
+
5
+ backend doc is at http://localhost:5001/docs#
@@ -0,0 +1,50 @@
1
+ {"data": {"text": "The patient presented with persistent joint stiffness and muscle weakness, later confirmed to be due to rheumatoid arthritis. Prednisone was prescribed to manage inflammation, along with physical therapy to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["muscle weakness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Prednisone", "MEDICATION"], ["physical therapy", "TREATMENT"]]}, "text": "The patient presented with persistent joint stiffness and muscle weakness, later confirmed to be due to rheumatoid arthritis. Prednisone was prescribed to manage inflammation, along with physical therapy to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["muscle weakness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Prednisone", "MEDICATION"], ["physical therapy", "TREATMENT"]]}
2
+ {"data": {"text": "The patient reports experiencing persistent fatigue and occasional dizziness. Recent blood tests confirmed anemia. She was started on iron supplementation and advised to increase dietary intake of leafy greens.", "entities": [["fatigue", "SYMPTOM"], ["dizziness", "SYMPTOM"], ["anemia", "DISEASE"], ["iron supplementation", "TREATMENT"]]}, "text": "The patient reports experiencing persistent fatigue and occasional dizziness. Recent blood tests confirmed anemia. She was started on iron supplementation and advised to increase dietary intake of leafy greens.", "entities": [["fatigue", "SYMPTOM"], ["dizziness", "SYMPTOM"], ["anemia", "DISEASE"], ["iron supplementation", "TREATMENT"]]}
3
+ {"data": {"text": "On physical assessment, the patient reported persistent fatigue and shortness of breath. A diagnosis of congestive heart failure was made. Management included a low-sodium diet and initiation of carvedilol.", "entities": [["fatigue", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["congestive heart failure", "DISEASE"], ["low-sodium diet", "TREATMENT"], ["carvedilol", "MEDICATION"]]}, "text": "On physical assessment, the patient reported persistent fatigue and shortness of breath. A diagnosis of congestive heart failure was made. Management included a low-sodium diet and initiation of carvedilol.", "entities": [["fatigue", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["congestive heart failure", "DISEASE"], ["low-sodium diet", "TREATMENT"], ["carvedilol", "MEDICATION"]]}
4
+ {"data": {"text": "Upon examination, the patient demonstrated persistent cough and shortness of breath. Diagnostic imaging indicated early-stage bronchitis. Nebulizer therapy was initiated, and azithromycin was prescribed for five days.", "entities": [["persistent cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["bronchitis", "DISEASE"], ["Nebulizer therapy", "TREATMENT"], ["azithromycin", "MEDICATION"]]}, "text": "Upon examination, the patient demonstrated persistent cough and shortness of breath. Diagnostic imaging indicated early-stage bronchitis. Nebulizer therapy was initiated, and azithromycin was prescribed for five days.", "entities": [["persistent cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["bronchitis", "DISEASE"], ["Nebulizer therapy", "TREATMENT"], ["azithromycin", "MEDICATION"]]}
5
+ {"data": {"text": "The patient arrived with persistent chest discomfort and was diagnosed with acute myocardial infarction. Aspirin was administered immediately as part of initial therapy, followed by a heparin infusion. Cardiac catheterization was scheduled for further evaluation.", "entities": [["chest discomfort", "SYMPTOM"], ["acute myocardial infarction", "DISEASE"], ["Aspirin", "MEDICATION"], ["heparin infusion", "TREATMENT"], ["Cardiac catheterization", "TREATMENT"]]}, "text": "The patient arrived with persistent chest discomfort and was diagnosed with acute myocardial infarction. Aspirin was administered immediately as part of initial therapy, followed by a heparin infusion. Cardiac catheterization was scheduled for further evaluation.", "entities": [["chest discomfort", "SYMPTOM"], ["acute myocardial infarction", "DISEASE"], ["Aspirin", "MEDICATION"], ["heparin infusion", "TREATMENT"], ["Cardiac catheterization", "TREATMENT"]]}
6
+ {"data": {"text": "Mr. Patel presented with persistent chest discomfort and was diagnosed with coronary artery disease. He was prescribed atenolol to manage his blood pressure and enrolled in a cardiac rehabilitation program to improve cardiovascular health.", "entities": [["chest discomfort", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["atenolol", "MEDICATION"], ["cardiac rehabilitation program", "TREATMENT"]]}, "text": "Mr. Patel presented with persistent chest discomfort and was diagnosed with coronary artery disease. He was prescribed atenolol to manage his blood pressure and enrolled in a cardiac rehabilitation program to improve cardiovascular health.", "entities": [["chest discomfort", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["atenolol", "MEDICATION"], ["cardiac rehabilitation program", "TREATMENT"]]}
7
+ {"data": {"text": "The patient reports persistent joint pain and morning stiffness. Laboratory results indicate elevated rheumatoid factor, supporting the diagnosis of rheumatoid arthritis. She has been started on methotrexate and advised to attend physiotherapy sessions to manage symptoms.", "entities": [["joint pain", "SYMPTOM"], ["morning stiffness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physiotherapy sessions", "TREATMENT"]]}, "text": "The patient reports persistent joint pain and morning stiffness. Laboratory results indicate elevated rheumatoid factor, supporting the diagnosis of rheumatoid arthritis. She has been started on methotrexate and advised to attend physiotherapy sessions to manage symptoms.", "entities": [["joint pain", "SYMPTOM"], ["morning stiffness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physiotherapy sessions", "TREATMENT"]]}
8
+ {"data": {"text": "Mr. Lawson presented with persistent shortness of breath and was subsequently diagnosed with chronic obstructive pulmonary disease. He currently uses inhaled salmeterol twice daily and has started a pulmonary rehabilitation program.", "entities": [["shortness of breath", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["salmeterol", "MEDICATION"], ["pulmonary rehabilitation program", "TREATMENT"]]}, "text": "Mr. Lawson presented with persistent shortness of breath and was subsequently diagnosed with chronic obstructive pulmonary disease. He currently uses inhaled salmeterol twice daily and has started a pulmonary rehabilitation program.", "entities": [["shortness of breath", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["salmeterol", "MEDICATION"], ["pulmonary rehabilitation program", "TREATMENT"]]}
9
+ {"data": {"text": "Ms. Rivera reports ongoing fatigue and joint discomfort. She has a previous diagnosis of rheumatoid arthritis and is being managed with weekly methotrexate. Physical therapy sessions have been recommended to improve mobility.", "entities": [["fatigue", "SYMPTOM"], ["joint discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}, "text": "Ms. Rivera reports ongoing fatigue and joint discomfort. She has a previous diagnosis of rheumatoid arthritis and is being managed with weekly methotrexate. Physical therapy sessions have been recommended to improve mobility.", "entities": [["fatigue", "SYMPTOM"], ["joint discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}
10
+ {"data": {"text": "The patient complained of persistent cough and breathlessness, leading to a diagnosis of chronic bronchitis. Albuterol inhaler was prescribed as needed for symptom relief. Pulmonary rehabilitation was also recommended to improve lung function.", "entities": [["cough", "SYMPTOM"], ["breathlessness", "SYMPTOM"], ["chronic bronchitis", "DISEASE"], ["Albuterol inhaler", "MEDICATION"], ["Pulmonary rehabilitation", "TREATMENT"]]}, "text": "The patient complained of persistent cough and breathlessness, leading to a diagnosis of chronic bronchitis. Albuterol inhaler was prescribed as needed for symptom relief. Pulmonary rehabilitation was also recommended to improve lung function.", "entities": [["cough", "SYMPTOM"], ["breathlessness", "SYMPTOM"], ["chronic bronchitis", "DISEASE"], ["Albuterol inhaler", "MEDICATION"], ["Pulmonary rehabilitation", "TREATMENT"]]}
11
+ {"data": {"text": "Mr. Jackson reports persistent headaches and blurred vision, which began after his diagnosis of migraine. He has been prescribed sumatriptan to alleviate symptoms, and is also receiving acupuncture as an adjunct therapy.", "entities": [["headaches", "SYMPTOM"], ["blurred vision", "SYMPTOM"], ["migraine", "DISEASE"], ["sumatriptan", "MEDICATION"], ["acupuncture", "TREATMENT"]]}, "text": "Mr. Jackson reports persistent headaches and blurred vision, which began after his diagnosis of migraine. He has been prescribed sumatriptan to alleviate symptoms, and is also receiving acupuncture as an adjunct therapy.", "entities": [["headaches", "SYMPTOM"], ["blurred vision", "SYMPTOM"], ["migraine", "DISEASE"], ["sumatriptan", "MEDICATION"], ["acupuncture", "TREATMENT"]]}
12
+ {"data": {"text": "On examination, the patient reported persistent shortness of breath and occasional wheezing. Spirometry confirmed the diagnosis of chronic obstructive pulmonary disease. Inhaled tiotropium was started as maintenance therapy, and pulmonary rehabilitation was recommended.", "entities": [["shortness of breath", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["tiotropium", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}, "text": "On examination, the patient reported persistent shortness of breath and occasional wheezing. Spirometry confirmed the diagnosis of chronic obstructive pulmonary disease. Inhaled tiotropium was started as maintenance therapy, and pulmonary rehabilitation was recommended.", "entities": [["shortness of breath", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["tiotropium", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}
13
+ {"data": {"text": "The patient has a history of chronic kidney disease and presented today with persistent fatigue and swelling in the lower extremities. Blood tests were ordered and she was started on furosemide to manage fluid retention. Dietary counseling was provided to help control sodium intake.", "entities": [["chronic kidney disease", "DISEASE"], ["fatigue", "SYMPTOM"], ["swelling in the lower extremities", "SYMPTOM"], ["furosemide", "MEDICATION"], ["Dietary counseling", "TREATMENT"]]}, "text": "The patient has a history of chronic kidney disease and presented today with persistent fatigue and swelling in the lower extremities. Blood tests were ordered and she was started on furosemide to manage fluid retention. Dietary counseling was provided to help control sodium intake.", "entities": [["chronic kidney disease", "DISEASE"], ["fatigue", "SYMPTOM"], ["swelling in the lower extremities", "SYMPTOM"], ["furosemide", "MEDICATION"], ["Dietary counseling", "TREATMENT"]]}
14
+ {"data": {"text": "Ms. Patel reports ongoing fatigue and joint discomfort, with a prior diagnosis of rheumatoid arthritis. She has been prescribed methotrexate and receives physical therapy weekly. No recent fever or weight loss.", "entities": [["fatigue", "SYMPTOM"], ["joint discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}, "text": "Ms. Patel reports ongoing fatigue and joint discomfort, with a prior diagnosis of rheumatoid arthritis. She has been prescribed methotrexate and receives physical therapy weekly. No recent fever or weight loss.", "entities": [["fatigue", "SYMPTOM"], ["joint discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}
15
+ {"data": {"text": "Mr. Lee visited the clinic today with persistent joint swelling and reported morning stiffness lasting over an hour. The rheumatologist suspects rheumatoid arthritis and has started him on methotrexate. Physical therapy sessions have also been recommended to improve mobility.", "entities": [["joint swelling", "SYMPTOM"], ["morning stiffness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}, "text": "Mr. Lee visited the clinic today with persistent joint swelling and reported morning stiffness lasting over an hour. The rheumatologist suspects rheumatoid arthritis and has started him on methotrexate. Physical therapy sessions have also been recommended to improve mobility.", "entities": [["joint swelling", "SYMPTOM"], ["morning stiffness", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}
16
+ {"data": {"text": "Upon examination, the patient reported experiencing persistent fatigue and mild chest discomfort. Medical history includes chronic kidney disease and hypertension. The care team initiated lisinopril to manage blood pressure and scheduled routine hemodialysis sessions.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["chronic kidney disease", "DISEASE"], ["hypertension", "DISEASE"], ["lisinopril", "MEDICATION"], ["hemodialysis", "TREATMENT"]]}, "text": "Upon examination, the patient reported experiencing persistent fatigue and mild chest discomfort. Medical history includes chronic kidney disease and hypertension. The care team initiated lisinopril to manage blood pressure and scheduled routine hemodialysis sessions.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["chronic kidney disease", "DISEASE"], ["hypertension", "DISEASE"], ["lisinopril", "MEDICATION"], ["hemodialysis", "TREATMENT"]]}
17
+ {"data": {"text": "The patient presented with persistent joint stiffness and swelling, later confirmed as rheumatoid arthritis. She began a regimen of methotrexate and was advised to attend weekly physical therapy sessions.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}, "text": "The patient presented with persistent joint stiffness and swelling, later confirmed as rheumatoid arthritis. She began a regimen of methotrexate and was advised to attend weekly physical therapy sessions.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}
18
+ {"data": {"text": "Ms. Lewis presented with persistent joint stiffness and swelling, especially in the early morning. Laboratory analysis confirmed the diagnosis of rheumatoid arthritis. The patient was started on methotrexate and received a corticosteroid injection to manage inflammation.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["corticosteroid injection", "TREATMENT"]]}, "text": "Ms. Lewis presented with persistent joint stiffness and swelling, especially in the early morning. Laboratory analysis confirmed the diagnosis of rheumatoid arthritis. The patient was started on methotrexate and received a corticosteroid injection to manage inflammation.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["corticosteroid injection", "TREATMENT"]]}
19
+ {"data": {"text": "Upon examination, the patient described persistent fatigue and occasional joint swelling. She was previously diagnosed with rheumatoid arthritis and is currently managed with adalimumab injections every two weeks. Physical therapy has also been implemented to improve mobility.", "entities": [["fatigue", "SYMPTOM"], ["joint swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["adalimumab", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}, "text": "Upon examination, the patient described persistent fatigue and occasional joint swelling. She was previously diagnosed with rheumatoid arthritis and is currently managed with adalimumab injections every two weeks. Physical therapy has also been implemented to improve mobility.", "entities": [["fatigue", "SYMPTOM"], ["joint swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["adalimumab", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}
20
+ {"data": {"text": "The patient presented with persistent cough and shortness of breath. Imaging revealed bilateral infiltrates consistent with pneumonia. She was prescribed levofloxacin and advised to use a humidifier to ease respiratory discomfort.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["levofloxacin", "MEDICATION"], ["humidifier", "TREATMENT"]]}, "text": "The patient presented with persistent cough and shortness of breath. Imaging revealed bilateral infiltrates consistent with pneumonia. She was prescribed levofloxacin and advised to use a humidifier to ease respiratory discomfort.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["levofloxacin", "MEDICATION"], ["humidifier", "TREATMENT"]]}
21
+ {"data": {"text": "Mr. Keller presents with persistent cough and occasional shortness of breath. Examination suggests possible bronchitis. Prescribed azithromycin for five days. Advised to increase fluid intake and rest.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["bronchitis", "DISEASE"], ["azithromycin", "MEDICATION"], ["increase fluid intake", "TREATMENT"], ["rest", "TREATMENT"]]}, "text": "Mr. Keller presents with persistent cough and occasional shortness of breath. Examination suggests possible bronchitis. Prescribed azithromycin for five days. Advised to increase fluid intake and rest.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["bronchitis", "DISEASE"], ["azithromycin", "MEDICATION"], ["increase fluid intake", "TREATMENT"], ["rest", "TREATMENT"]]}
22
+ {"data": {"text": "Mr. Chen reports frequent headaches and blurry vision over the past week. His medical history includes hypertension. Lisinopril was continued, and acetaminophen was advised for symptomatic relief. Blood pressure monitoring was recommended.", "entities": [["headaches", "SYMPTOM"], ["blurry vision", "SYMPTOM"], ["hypertension", "DISEASE"], ["Lisinopril", "MEDICATION"], ["acetaminophen", "MEDICATION"], ["Blood pressure monitoring", "TREATMENT"]]}, "text": "Mr. Chen reports frequent headaches and blurry vision over the past week. His medical history includes hypertension. Lisinopril was continued, and acetaminophen was advised for symptomatic relief. Blood pressure monitoring was recommended.", "entities": [["headaches", "SYMPTOM"], ["blurry vision", "SYMPTOM"], ["hypertension", "DISEASE"], ["Lisinopril", "MEDICATION"], ["acetaminophen", "MEDICATION"], ["Blood pressure monitoring", "TREATMENT"]]}
23
+ {"data": {"text": "On examination, the patient reported ongoing fatigue and intermittent chest discomfort. History revealed poorly controlled type 2 diabetes and recent episodes of blurred vision. Metformin was continued, and insulin therapy was initiated to improve glycemic control.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["type 2 diabetes", "DISEASE"], ["blurred vision", "SYMPTOM"], ["Metformin", "MEDICATION"], ["insulin therapy", "TREATMENT"]]}, "text": "On examination, the patient reported ongoing fatigue and intermittent chest discomfort. History revealed poorly controlled type 2 diabetes and recent episodes of blurred vision. Metformin was continued, and insulin therapy was initiated to improve glycemic control.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["type 2 diabetes", "DISEASE"], ["blurred vision", "SYMPTOM"], ["Metformin", "MEDICATION"], ["insulin therapy", "TREATMENT"]]}
24
+ {"data": {"text": "Ms. Jordan presented with persistent cough and shortness of breath. Chest X-ray was consistent with pneumonia. She was started on azithromycin and supportive care, and advised to increase fluid intake.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["azithromycin", "MEDICATION"], ["supportive care", "TREATMENT"]]}, "text": "Ms. Jordan presented with persistent cough and shortness of breath. Chest X-ray was consistent with pneumonia. She was started on azithromycin and supportive care, and advised to increase fluid intake.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["azithromycin", "MEDICATION"], ["supportive care", "TREATMENT"]]}
25
+ {"data": {"text": "Ms. Ortega presented with persistent fatigue and swollen joints. She has a history of rheumatoid arthritis and is currently managed with methotrexate. Physical therapy has been recommended to alleviate stiffness.", "entities": [["fatigue", "SYMPTOM"], ["swollen joints", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"], ["stiffness", "SYMPTOM"]]}, "text": "Ms. Ortega presented with persistent fatigue and swollen joints. She has a history of rheumatoid arthritis and is currently managed with methotrexate. Physical therapy has been recommended to alleviate stiffness.", "entities": [["fatigue", "SYMPTOM"], ["swollen joints", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["Physical therapy", "TREATMENT"], ["stiffness", "SYMPTOM"]]}
26
+ {"data": {"text": "The patient arrived with persistent cough and mild wheezing. After examination, a diagnosis of bronchitis was made. Prescribed amoxicillin 500mg twice daily and advised use of an inhaler for symptom control.", "entities": [["cough", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["bronchitis", "DISEASE"], ["amoxicillin", "MEDICATION"], ["inhaler", "TREATMENT"]]}, "text": "The patient arrived with persistent cough and mild wheezing. After examination, a diagnosis of bronchitis was made. Prescribed amoxicillin 500mg twice daily and advised use of an inhaler for symptom control.", "entities": [["cough", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["bronchitis", "DISEASE"], ["amoxicillin", "MEDICATION"], ["inhaler", "TREATMENT"]]}
27
+ {"data": {"text": "Mr. Lang presented with persistent fatigue and shortness of breath, reporting increased swelling in his ankles over the past week. His history reveals chronic obstructive pulmonary disease. Echocardiogram was performed, and furosemide was prescribed to manage fluid retention.", "entities": [["fatigue", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["swelling in his ankles", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["Echocardiogram", "TREATMENT"], ["furosemide", "MEDICATION"]]}, "text": "Mr. Lang presented with persistent fatigue and shortness of breath, reporting increased swelling in his ankles over the past week. His history reveals chronic obstructive pulmonary disease. Echocardiogram was performed, and furosemide was prescribed to manage fluid retention.", "entities": [["fatigue", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["swelling in his ankles", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["Echocardiogram", "TREATMENT"], ["furosemide", "MEDICATION"]]}
28
+ {"data": {"text": "Patient reports experiencing persistent chest pressure and difficulty breathing over the past week. Echocardiogram indicates mild cardiomyopathy. Furosemide was initiated for fluid control, and sodium intake restriction was advised.", "entities": [["chest pressure", "SYMPTOM"], ["difficulty breathing", "SYMPTOM"], ["cardiomyopathy", "DISEASE"], ["Furosemide", "MEDICATION"], ["sodium intake restriction", "TREATMENT"]]}, "text": "Patient reports experiencing persistent chest pressure and difficulty breathing over the past week. Echocardiogram indicates mild cardiomyopathy. Furosemide was initiated for fluid control, and sodium intake restriction was advised.", "entities": [["chest pressure", "SYMPTOM"], ["difficulty breathing", "SYMPTOM"], ["cardiomyopathy", "DISEASE"], ["Furosemide", "MEDICATION"], ["sodium intake restriction", "TREATMENT"]]}
29
+ {"data": {"text": "Mr. Walker presented with persistent cough and noted fatigue. On evaluation, he was diagnosed with bronchitis and started on azithromycin. Instructed to increase fluid intake and rest as part of his recovery plan.", "entities": [["persistent cough", "SYMPTOM"], ["fatigue", "SYMPTOM"], ["bronchitis", "DISEASE"], ["azithromycin", "MEDICATION"], ["increase fluid intake", "TREATMENT"], ["rest", "TREATMENT"]]}, "text": "Mr. Walker presented with persistent cough and noted fatigue. On evaluation, he was diagnosed with bronchitis and started on azithromycin. Instructed to increase fluid intake and rest as part of his recovery plan.", "entities": [["persistent cough", "SYMPTOM"], ["fatigue", "SYMPTOM"], ["bronchitis", "DISEASE"], ["azithromycin", "MEDICATION"], ["increase fluid intake", "TREATMENT"], ["rest", "TREATMENT"]]}
30
+ {"data": {"text": "Mr. Lee reports experiencing persistent cough and occasional chest discomfort. He was diagnosed with chronic bronchitis and started on formoterol inhaler. Pulmonary rehabilitation was recommended to improve his respiratory function.", "entities": [["persistent cough", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["chronic bronchitis", "DISEASE"], ["formoterol inhaler", "MEDICATION"], ["Pulmonary rehabilitation", "TREATMENT"]]}, "text": "Mr. Lee reports experiencing persistent cough and occasional chest discomfort. He was diagnosed with chronic bronchitis and started on formoterol inhaler. Pulmonary rehabilitation was recommended to improve his respiratory function.", "entities": [["persistent cough", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["chronic bronchitis", "DISEASE"], ["formoterol inhaler", "MEDICATION"], ["Pulmonary rehabilitation", "TREATMENT"]]}
31
+ {"data": {"text": "Mr. Johnson presented with persistent cough and mild fever. Physical examination revealed bilateral wheezing. Chest X-ray confirmed the presence of pneumonia. He was started on clarithromycin and advised bed rest along with increased fluid intake.", "entities": [["persistent cough", "SYMPTOM"], ["mild fever", "SYMPTOM"], ["bilateral wheezing", "SYMPTOM"], ["pneumonia", "DISEASE"], ["clarithromycin", "MEDICATION"], ["bed rest", "TREATMENT"], ["increased fluid intake", "TREATMENT"]]}, "text": "Mr. Johnson presented with persistent cough and mild fever. Physical examination revealed bilateral wheezing. Chest X-ray confirmed the presence of pneumonia. He was started on clarithromycin and advised bed rest along with increased fluid intake.", "entities": [["persistent cough", "SYMPTOM"], ["mild fever", "SYMPTOM"], ["bilateral wheezing", "SYMPTOM"], ["pneumonia", "DISEASE"], ["clarithromycin", "MEDICATION"], ["bed rest", "TREATMENT"], ["increased fluid intake", "TREATMENT"]]}
32
+ {"data": {"text": "The patient presented with persistent cough and mild chest discomfort. On examination, wheezing was noted. Spirometry indicated reduced airflow, confirming a diagnosis of asthma. Albuterol inhaler was prescribed as a rescue MEDICATION, and the patient was advised to avoid known triggers as part of management.", "entities": [["persistent cough", "SYMPTOM"], ["mild chest discomfort", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["asthma", "DISEASE"], ["Albuterol inhaler", "MEDICATION"], ["avoid known triggers", "TREATMENT"]]}, "text": "The patient presented with persistent cough and mild chest discomfort. On examination, wheezing was noted. Spirometry indicated reduced airflow, confirming a diagnosis of asthma. Albuterol inhaler was prescribed as a rescue MEDICATION, and the patient was advised to avoid known triggers as part of management.", "entities": [["persistent cough", "SYMPTOM"], ["mild chest discomfort", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["asthma", "DISEASE"], ["Albuterol inhaler", "MEDICATION"], ["avoid known triggers", "TREATMENT"]]}
33
+ {"data": {"text": "The patient presented with persistent shortness of breath and chest discomfort, later confirmed as congestive heart failure. Metoprolol was prescribed to manage blood pressure, alongside dietary sodium restriction and daily exercise as part of the treatment plan.", "entities": [["shortness of breath", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["congestive heart failure", "DISEASE"], ["Metoprolol", "MEDICATION"], ["dietary sodium restriction", "TREATMENT"], ["daily exercise", "TREATMENT"]]}, "text": "The patient presented with persistent shortness of breath and chest discomfort, later confirmed as congestive heart failure. Metoprolol was prescribed to manage blood pressure, alongside dietary sodium restriction and daily exercise as part of the treatment plan.", "entities": [["shortness of breath", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["congestive heart failure", "DISEASE"], ["Metoprolol", "MEDICATION"], ["dietary sodium restriction", "TREATMENT"], ["daily exercise", "TREATMENT"]]}
34
+ {"data": {"text": "The patient arrived with complaints of persistent nausea and severe abdominal cramps. After examination, she was diagnosed with irritable bowel syndrome and prescribed dicyclomine. Dietary modification was recommended as part of her ongoing care plan.", "entities": [["nausea", "SYMPTOM"], ["abdominal cramps", "SYMPTOM"], ["irritable bowel syndrome", "DISEASE"], ["dicyclomine", "MEDICATION"], ["Dietary modification", "TREATMENT"]]}, "text": "The patient arrived with complaints of persistent nausea and severe abdominal cramps. After examination, she was diagnosed with irritable bowel syndrome and prescribed dicyclomine. Dietary modification was recommended as part of her ongoing care plan.", "entities": [["nausea", "SYMPTOM"], ["abdominal cramps", "SYMPTOM"], ["irritable bowel syndrome", "DISEASE"], ["dicyclomine", "MEDICATION"], ["Dietary modification", "TREATMENT"]]}
35
+ {"data": {"text": "Mr. Patterson arrived complaining of persistent chest discomfort and shortness of breath. He has a previous history of coronary artery disease. An ECG was performed and he was started on aspirin and atorvastatin. Cardiac rehabilitation was recommended as part of his ongoing management.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["ECG", "TREATMENT"], ["aspirin", "MEDICATION"], ["atorvastatin", "MEDICATION"], ["Cardiac rehabilitation", "TREATMENT"]]}, "text": "Mr. Patterson arrived complaining of persistent chest discomfort and shortness of breath. He has a previous history of coronary artery disease. An ECG was performed and he was started on aspirin and atorvastatin. Cardiac rehabilitation was recommended as part of his ongoing management.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["ECG", "TREATMENT"], ["aspirin", "MEDICATION"], ["atorvastatin", "MEDICATION"], ["Cardiac rehabilitation", "TREATMENT"]]}
36
+ {"data": {"text": "Upon examination, the patient reported persistent chest discomfort and occasional shortness of breath. A diagnosis of chronic obstructive pulmonary disease was confirmed. The individual was prescribed tiotropium inhaler and advised to enroll in a pulmonary rehabilitation program.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["tiotropium inhaler", "MEDICATION"], ["pulmonary rehabilitation program", "TREATMENT"]]}, "text": "Upon examination, the patient reported persistent chest discomfort and occasional shortness of breath. A diagnosis of chronic obstructive pulmonary disease was confirmed. The individual was prescribed tiotropium inhaler and advised to enroll in a pulmonary rehabilitation program.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["tiotropium inhaler", "MEDICATION"], ["pulmonary rehabilitation program", "TREATMENT"]]}
37
+ {"data": {"text": "The patient reports persistent dry cough and occasional wheezing for the last two weeks. Physical examination revealed decreased breath sounds. Chest X-ray confirmed early signs of bronchitis. Nebulized albuterol was administered to alleviate symptoms, and the patient was prescribed clarithromycin for seven days.", "entities": [["dry cough", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["bronchitis", "DISEASE"], ["Nebulized albuterol", "TREATMENT"], ["clarithromycin", "MEDICATION"]]}, "text": "The patient reports persistent dry cough and occasional wheezing for the last two weeks. Physical examination revealed decreased breath sounds. Chest X-ray confirmed early signs of bronchitis. Nebulized albuterol was administered to alleviate symptoms, and the patient was prescribed clarithromycin for seven days.", "entities": [["dry cough", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["bronchitis", "DISEASE"], ["Nebulized albuterol", "TREATMENT"], ["clarithromycin", "MEDICATION"]]}
38
+ {"data": {"text": "The patient reported persistent shortness of breath and occasional wheezing. Spirometry confirmed a diagnosis of chronic obstructive pulmonary disease. Inhaled salmeterol was started to manage symptoms, along with a recommendation for pulmonary rehabilitation sessions.", "entities": [["shortness of breath", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["salmeterol", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}, "text": "The patient reported persistent shortness of breath and occasional wheezing. Spirometry confirmed a diagnosis of chronic obstructive pulmonary disease. Inhaled salmeterol was started to manage symptoms, along with a recommendation for pulmonary rehabilitation sessions.", "entities": [["shortness of breath", "SYMPTOM"], ["wheezing", "SYMPTOM"], ["chronic obstructive pulmonary disease", "DISEASE"], ["salmeterol", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}
39
+ {"data": {"text": "Mr. Patel presented with persistent cough and shortness of breath. Examination and chest imaging confirmed pneumonia. He was started on levofloxacin to address the infection, and supplemental oxygen was provided to assist with respiratory distress.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["levofloxacin", "MEDICATION"], ["supplemental oxygen", "TREATMENT"], ["respiratory distress", "SYMPTOM"]]}, "text": "Mr. Patel presented with persistent cough and shortness of breath. Examination and chest imaging confirmed pneumonia. He was started on levofloxacin to address the infection, and supplemental oxygen was provided to assist with respiratory distress.", "entities": [["cough", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["pneumonia", "DISEASE"], ["levofloxacin", "MEDICATION"], ["supplemental oxygen", "TREATMENT"], ["respiratory distress", "SYMPTOM"]]}
40
+ {"data": {"text": "Upon review, the patient reports persistent fatigue and intermittent chest discomfort. He was diagnosed with coronary artery disease last year and is currently managed with atenolol and low-dose aspirin. Dietary modifications and regular physical activity have also been recommended.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["atenolol", "MEDICATION"], ["aspirin", "MEDICATION"], ["Dietary modifications", "TREATMENT"], ["regular physical activity", "TREATMENT"]]}, "text": "Upon review, the patient reports persistent fatigue and intermittent chest discomfort. He was diagnosed with coronary artery disease last year and is currently managed with atenolol and low-dose aspirin. Dietary modifications and regular physical activity have also been recommended.", "entities": [["fatigue", "SYMPTOM"], ["chest discomfort", "SYMPTOM"], ["coronary artery disease", "DISEASE"], ["atenolol", "MEDICATION"], ["aspirin", "MEDICATION"], ["Dietary modifications", "TREATMENT"], ["regular physical activity", "TREATMENT"]]}
41
+ {"data": {"text": "Ms. Taylor was admitted for evaluation of persistent joint stiffness and swelling. She reported morning discomfort that lasted over an hour. Laboratory tests revealed elevated levels of rheumatoid factor, supporting a diagnosis of rheumatoid arthritis. Low-dose methotrexate was initiated, along with folic acid supplementation. Physical therapy sessions were scheduled to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["morning discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["folic acid", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}, "text": "Ms. Taylor was admitted for evaluation of persistent joint stiffness and swelling. She reported morning discomfort that lasted over an hour. Laboratory tests revealed elevated levels of rheumatoid factor, supporting a diagnosis of rheumatoid arthritis. Low-dose methotrexate was initiated, along with folic acid supplementation. Physical therapy sessions were scheduled to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["morning discomfort", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["folic acid", "MEDICATION"], ["Physical therapy", "TREATMENT"]]}
42
+ {"data": {"text": "Upon evaluation, the patient reports persistent fatigue and intermittent dizziness over the last two weeks. Laboratory results indicate hypothyroidism. She has been advised to begin levothyroxine therapy and follow up in four weeks to monitor response.", "entities": [["fatigue", "SYMPTOM"], ["dizziness", "SYMPTOM"], ["hypothyroidism", "DISEASE"], ["levothyroxine therapy", "TREATMENT"]]}, "text": "Upon evaluation, the patient reports persistent fatigue and intermittent dizziness over the last two weeks. Laboratory results indicate hypothyroidism. She has been advised to begin levothyroxine therapy and follow up in four weeks to monitor response.", "entities": [["fatigue", "SYMPTOM"], ["dizziness", "SYMPTOM"], ["hypothyroidism", "DISEASE"], ["levothyroxine therapy", "TREATMENT"]]}
43
+ {"data": {"text": "Upon examination, the patient complained of persistent wheezing and shortness of breath. Spirometry confirmed a diagnosis of asthma. Fluticasone inhaler was prescribed as a daily controller. The patient was advised to avoid allergens and begin pulmonary rehabilitation sessions.", "entities": [["wheezing", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["asthma", "DISEASE"], ["Fluticasone inhaler", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}, "text": "Upon examination, the patient complained of persistent wheezing and shortness of breath. Spirometry confirmed a diagnosis of asthma. Fluticasone inhaler was prescribed as a daily controller. The patient was advised to avoid allergens and begin pulmonary rehabilitation sessions.", "entities": [["wheezing", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["asthma", "DISEASE"], ["Fluticasone inhaler", "MEDICATION"], ["pulmonary rehabilitation", "TREATMENT"]]}
44
+ {"data": {"text": "During the visit, Mr. Lee reported persistent joint stiffness and intermittent swelling in his knees. Laboratory tests confirmed a diagnosis of rheumatoid arthritis. The patient was started on methotrexate and advised to attend weekly physical therapy sessions to help manage symptoms.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling in his knees", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}, "text": "During the visit, Mr. Lee reported persistent joint stiffness and intermittent swelling in his knees. Laboratory tests confirmed a diagnosis of rheumatoid arthritis. The patient was started on methotrexate and advised to attend weekly physical therapy sessions to help manage symptoms.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling in his knees", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}
45
+ {"data": {"text": "The patient describes experiencing persistent joint stiffness and swelling, which began two weeks ago. Laboratory tests confirmed the presence of rheumatoid arthritis. Methotrexate was initiated to control the disease activity, and physical therapy sessions were recommended to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}, "text": "The patient describes experiencing persistent joint stiffness and swelling, which began two weeks ago. Laboratory tests confirmed the presence of rheumatoid arthritis. Methotrexate was initiated to control the disease activity, and physical therapy sessions were recommended to improve mobility.", "entities": [["joint stiffness", "SYMPTOM"], ["swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Methotrexate", "MEDICATION"], ["physical therapy", "TREATMENT"]]}
46
+ {"data": {"text": "The patient reported persistent chest discomfort and shortness of breath over the last week. Echocardiogram indicated early signs of hypertrophic cardiomyopathy. Nebivolol was initiated as part of the management plan, along with dietary sodium restriction and regular aerobic exercise.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["hypertrophic cardiomyopathy", "DISEASE"], ["Nebivolol", "MEDICATION"], ["dietary sodium restriction", "TREATMENT"], ["regular aerobic exercise", "TREATMENT"]]}, "text": "The patient reported persistent chest discomfort and shortness of breath over the last week. Echocardiogram indicated early signs of hypertrophic cardiomyopathy. Nebivolol was initiated as part of the management plan, along with dietary sodium restriction and regular aerobic exercise.", "entities": [["chest discomfort", "SYMPTOM"], ["shortness of breath", "SYMPTOM"], ["hypertrophic cardiomyopathy", "DISEASE"], ["Nebivolol", "MEDICATION"], ["dietary sodium restriction", "TREATMENT"], ["regular aerobic exercise", "TREATMENT"]]}
47
+ {"data": {"text": "The patient was admitted for worsening shortness of breath and persistent cough. A diagnosis of pneumonia was established after review of chest imaging. She was started on intravenous ceftriaxone and azithromycin. Supportive care included supplemental oxygen and frequent monitoring of vital signs.", "entities": [["shortness of breath", "SYMPTOM"], ["persistent cough", "SYMPTOM"], ["pneumonia", "DISEASE"], ["ceftriaxone", "MEDICATION"], ["azithromycin", "MEDICATION"], ["supplemental oxygen", "TREATMENT"]]}, "text": "The patient was admitted for worsening shortness of breath and persistent cough. A diagnosis of pneumonia was established after review of chest imaging. She was started on intravenous ceftriaxone and azithromycin. Supportive care included supplemental oxygen and frequent monitoring of vital signs.", "entities": [["shortness of breath", "SYMPTOM"], ["persistent cough", "SYMPTOM"], ["pneumonia", "DISEASE"], ["ceftriaxone", "MEDICATION"], ["azithromycin", "MEDICATION"], ["supplemental oxygen", "TREATMENT"]]}
48
+ {"data": {"text": "The patient reports experiencing frequent headaches and blurry vision over the last two weeks. Neurological examination revealed no focal deficits. She was diagnosed with migraine and prescribed sumatriptan for acute episodes. Lifestyle adjustments, including regular sleep patterns and reduced caffeine intake, were recommended.", "entities": [["headaches", "SYMPTOM"], ["blurry vision", "SYMPTOM"], ["migraine", "DISEASE"], ["sumatriptan", "MEDICATION"], ["Lifestyle adjustments", "TREATMENT"], ["regular sleep patterns", "TREATMENT"], ["reduced caffeine intake", "TREATMENT"]]}, "text": "The patient reports experiencing frequent headaches and blurry vision over the last two weeks. Neurological examination revealed no focal deficits. She was diagnosed with migraine and prescribed sumatriptan for acute episodes. Lifestyle adjustments, including regular sleep patterns and reduced caffeine intake, were recommended.", "entities": [["headaches", "SYMPTOM"], ["blurry vision", "SYMPTOM"], ["migraine", "DISEASE"], ["sumatriptan", "MEDICATION"], ["Lifestyle adjustments", "TREATMENT"], ["regular sleep patterns", "TREATMENT"], ["reduced caffeine intake", "TREATMENT"]]}
49
+ {"data": {"text": "Ms. Lin reported persistent shortness of breath and chest tightness. She was diagnosed with asthma and prescribed salmeterol to manage her symptoms. Inhalation therapy was recommended as part of her ongoing treatment.", "entities": [["shortness of breath", "SYMPTOM"], ["chest tightness", "SYMPTOM"], ["asthma", "DISEASE"], ["salmeterol", "MEDICATION"], ["Inhalation therapy", "TREATMENT"]]}, "text": "Ms. Lin reported persistent shortness of breath and chest tightness. She was diagnosed with asthma and prescribed salmeterol to manage her symptoms. Inhalation therapy was recommended as part of her ongoing treatment.", "entities": [["shortness of breath", "SYMPTOM"], ["chest tightness", "SYMPTOM"], ["asthma", "DISEASE"], ["salmeterol", "MEDICATION"], ["Inhalation therapy", "TREATMENT"]]}
50
+ {"data": {"text": "The patient arrived with persistent nausea and reported joint swelling over the past week. Examination revealed signs consistent with rheumatoid arthritis. Naproxen was prescribed to manage inflammation, and physical therapy sessions were recommended to improve mobility.", "entities": [["nausea", "SYMPTOM"], ["joint swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Naproxen", "MEDICATION"], ["physical therapy sessions", "TREATMENT"]]}, "text": "The patient arrived with persistent nausea and reported joint swelling over the past week. Examination revealed signs consistent with rheumatoid arthritis. Naproxen was prescribed to manage inflammation, and physical therapy sessions were recommended to improve mobility.", "entities": [["nausea", "SYMPTOM"], ["joint swelling", "SYMPTOM"], ["rheumatoid arthritis", "DISEASE"], ["Naproxen", "MEDICATION"], ["physical therapy sessions", "TREATMENT"]]}
package/README.md CHANGED
@@ -51,6 +51,9 @@ pioneer auth login # Enter API key interactively
51
51
  pioneer auth logout # Clear stored API key
52
52
  pioneer auth status # Check if logged in
53
53
 
54
+ # Chat (interactive agent)
55
+ pioneer chat # Start chat with AI agent
56
+
54
57
  # Datasets
55
58
  pioneer dataset list
56
59
  pioneer dataset get <id>
@@ -184,7 +187,7 @@ pioneer dataset list
184
187
  ## Development
185
188
 
186
189
  ```bash
187
- cd pioneer
190
+ cd pioneer-cli
188
191
  bun install
189
192
  bun run dev # Hot reload
190
193
  bun run typecheck # Type checking
package/bun.lock CHANGED
@@ -6,6 +6,7 @@
6
6
  "name": "pioneer",
7
7
  "dependencies": {
8
8
  "@anthropic-ai/sdk": "^0.39.0",
9
+ "@inkkit/ink-markdown": "^1.0.0",
9
10
  "ink": "^4.4.1",
10
11
  "ink-spinner": "^5.0.0",
11
12
  "ink-text-input": "^5.0.1",
@@ -15,6 +16,7 @@
15
16
  "devDependencies": {
16
17
  "@types/node": "^22.0.0",
17
18
  "@types/react": "^18.3.0",
19
+ "@types/ws": "^8.18.1",
18
20
  "typescript": "^5.6.3",
19
21
  },
20
22
  },
@@ -24,6 +26,12 @@
24
26
 
25
27
  "@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.39.0", "", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" } }, "sha512-eMyDIPRZbt1CCLErRCi3exlAvNkBtRe+kW5vvJyef93PmNr/clstYgHhtvmkxN82nlKgzyGPCyGxrm0JQ1ZIdg=="],
26
28
 
29
+ "@colors/colors": ["@colors/colors@1.5.0", "", {}, "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="],
30
+
31
+ "@inkkit/ink-markdown": ["@inkkit/ink-markdown@1.0.0", "", { "dependencies": { "dedent": "1.5.1", "marked": "9.1.5", "marked-terminal": "6.0.0" } }, "sha512-E8zGJEME/XMWofpM7Oq7NFkUoE86EUNAqZZf72XiyeqZYlDaAGp/JBGkNUT+cLP5dMmzN4d1YkzheNhXNEbtRw=="],
32
+
33
+ "@sindresorhus/is": ["@sindresorhus/is@4.6.0", "", {}, "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="],
34
+
27
35
  "@types/node": ["@types/node@22.19.3", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-1N9SBnWYOJTrNZCdh/yJE+t910Y128BoyY+zBLWhL3r0TYzlTmFdXrPwHL9DyFZmlEXNQQolTZh3KHV31QDhyA=="],
28
36
 
29
37
  "@types/node-fetch": ["@types/node-fetch@2.6.13", "", { "dependencies": { "@types/node": "*", "form-data": "^4.0.4" } }, "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw=="],
@@ -32,6 +40,8 @@
32
40
 
33
41
  "@types/react": ["@types/react@18.3.27", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" } }, "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w=="],
34
42
 
43
+ "@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="],
44
+
35
45
  "abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="],
36
46
 
37
47
  "agentkeepalive": ["agentkeepalive@4.6.0", "", { "dependencies": { "humanize-ms": "^1.2.1" } }, "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ=="],
@@ -42,14 +52,20 @@
42
52
 
43
53
  "ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],
44
54
 
55
+ "ansicolors": ["ansicolors@0.3.2", "", {}, "sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg=="],
56
+
45
57
  "asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],
46
58
 
47
59
  "auto-bind": ["auto-bind@5.0.1", "", {}, "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg=="],
48
60
 
49
61
  "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
50
62
 
63
+ "cardinal": ["cardinal@2.1.1", "", { "dependencies": { "ansicolors": "~0.3.2", "redeyed": "~2.1.0" }, "bin": { "cdl": "./bin/cdl.js" } }, "sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw=="],
64
+
51
65
  "chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="],
52
66
 
67
+ "char-regex": ["char-regex@1.0.2", "", {}, "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw=="],
68
+
53
69
  "ci-info": ["ci-info@3.9.0", "", {}, "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ=="],
54
70
 
55
71
  "cli-boxes": ["cli-boxes@3.0.0", "", {}, "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g=="],
@@ -58,6 +74,8 @@
58
74
 
59
75
  "cli-spinners": ["cli-spinners@2.9.2", "", {}, "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="],
60
76
 
77
+ "cli-table3": ["cli-table3@0.6.5", "", { "dependencies": { "string-width": "^4.2.0" }, "optionalDependencies": { "@colors/colors": "1.5.0" } }, "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ=="],
78
+
61
79
  "cli-truncate": ["cli-truncate@3.1.0", "", { "dependencies": { "slice-ansi": "^5.0.0", "string-width": "^5.0.0" } }, "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA=="],
62
80
 
63
81
  "code-excerpt": ["code-excerpt@4.0.0", "", { "dependencies": { "convert-to-spaces": "^2.0.1" } }, "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA=="],
@@ -68,6 +86,8 @@
68
86
 
69
87
  "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
70
88
 
89
+ "dedent": ["dedent@1.5.1", "", { "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, "optionalPeers": ["babel-plugin-macros"] }, "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg=="],
90
+
71
91
  "delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="],
72
92
 
73
93
  "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
@@ -76,6 +96,8 @@
76
96
 
77
97
  "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],
78
98
 
99
+ "emojilib": ["emojilib@2.4.0", "", {}, "sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw=="],
100
+
79
101
  "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
80
102
 
81
103
  "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
@@ -86,6 +108,8 @@
86
108
 
87
109
  "escape-string-regexp": ["escape-string-regexp@2.0.0", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="],
88
110
 
111
+ "esprima": ["esprima@4.0.1", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="],
112
+
89
113
  "event-target-shim": ["event-target-shim@5.0.1", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="],
90
114
 
91
115
  "form-data": ["form-data@4.0.5", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "hasown": "^2.0.2", "mime-types": "^2.1.12" } }, "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w=="],
@@ -102,6 +126,8 @@
102
126
 
103
127
  "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
104
128
 
129
+ "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
130
+
105
131
  "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
106
132
 
107
133
  "has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="],
@@ -132,6 +158,10 @@
132
158
 
133
159
  "loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],
134
160
 
161
+ "marked": ["marked@9.1.5", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-14QG3shv8Kg/xc0Yh6TNkMj90wXH9mmldi5941I2OevfJ/FQAFLEwtwU2/FfgSAOMlWHrEukWSGQf8MiVYNG2A=="],
162
+
163
+ "marked-terminal": ["marked-terminal@6.0.0", "", { "dependencies": { "ansi-escapes": "^6.2.0", "cardinal": "^2.1.1", "chalk": "^5.3.0", "cli-table3": "^0.6.3", "node-emoji": "^2.1.0", "supports-hyperlinks": "^3.0.0" }, "peerDependencies": { "marked": ">=1 <10" } }, "sha512-6rruICvqRfA4N+Mvdc0UyDbLA0A0nI5omtARIlin3P2F+aNc3EbW91Rd9HTuD0v9qWyHmNIu8Bt40gAnPfldsg=="],
164
+
135
165
  "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
136
166
 
137
167
  "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
@@ -144,6 +174,8 @@
144
174
 
145
175
  "node-domexception": ["node-domexception@1.0.0", "", {}, "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="],
146
176
 
177
+ "node-emoji": ["node-emoji@2.2.0", "", { "dependencies": { "@sindresorhus/is": "^4.6.0", "char-regex": "^1.0.2", "emojilib": "^2.4.0", "skin-tone": "^2.0.0" } }, "sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw=="],
178
+
147
179
  "node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="],
148
180
 
149
181
  "onetime": ["onetime@5.1.2", "", { "dependencies": { "mimic-fn": "^2.1.0" } }, "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg=="],
@@ -156,12 +188,16 @@
156
188
 
157
189
  "react-reconciler": ["react-reconciler@0.29.2", "", { "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" }, "peerDependencies": { "react": "^18.3.1" } }, "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg=="],
158
190
 
191
+ "redeyed": ["redeyed@2.1.1", "", { "dependencies": { "esprima": "~4.0.0" } }, "sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ=="],
192
+
159
193
  "restore-cursor": ["restore-cursor@4.0.0", "", { "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" } }, "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg=="],
160
194
 
161
195
  "scheduler": ["scheduler@0.23.2", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ=="],
162
196
 
163
197
  "signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
164
198
 
199
+ "skin-tone": ["skin-tone@2.0.0", "", { "dependencies": { "unicode-emoji-modifier-base": "^1.0.0" } }, "sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA=="],
200
+
165
201
  "slice-ansi": ["slice-ansi@6.0.0", "", { "dependencies": { "ansi-styles": "^6.2.1", "is-fullwidth-code-point": "^4.0.0" } }, "sha512-6bn4hRfkTvDfUoEQYkERg0BVF1D0vrX9HEkMl08uDiNWvVvjylLHvZFZWkDo6wjT8tUctbYl1nCOuE66ZTaUtA=="],
166
202
 
167
203
  "stack-utils": ["stack-utils@2.0.6", "", { "dependencies": { "escape-string-regexp": "^2.0.0" } }, "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ=="],
@@ -170,6 +206,10 @@
170
206
 
171
207
  "strip-ansi": ["strip-ansi@7.1.2", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA=="],
172
208
 
209
+ "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
210
+
211
+ "supports-hyperlinks": ["supports-hyperlinks@3.2.0", "", { "dependencies": { "has-flag": "^4.0.0", "supports-color": "^7.0.0" } }, "sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig=="],
212
+
173
213
  "tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="],
174
214
 
175
215
  "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
@@ -180,6 +220,8 @@
180
220
 
181
221
  "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
182
222
 
223
+ "unicode-emoji-modifier-base": ["unicode-emoji-modifier-base@1.0.0", "", {}, "sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g=="],
224
+
183
225
  "web-streams-polyfill": ["web-streams-polyfill@4.0.0-beta.3", "", {}, "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug=="],
184
226
 
185
227
  "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],
@@ -196,6 +238,8 @@
196
238
 
197
239
  "@anthropic-ai/sdk/@types/node": ["@types/node@18.19.130", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="],
198
240
 
241
+ "cli-table3/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
242
+
199
243
  "cli-truncate/slice-ansi": ["slice-ansi@5.0.0", "", { "dependencies": { "ansi-styles": "^6.0.0", "is-fullwidth-code-point": "^4.0.0" } }, "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ=="],
200
244
 
201
245
  "ink-text-input/type-fest": ["type-fest@3.13.1", "", {}, "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g=="],
@@ -204,6 +248,14 @@
204
248
 
205
249
  "@anthropic-ai/sdk/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],
206
250
 
251
+ "cli-table3/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
252
+
253
+ "cli-table3/string-width/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
254
+
255
+ "cli-table3/string-width/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
256
+
207
257
  "openai/@types/node/undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],
258
+
259
+ "cli-table3/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
208
260
  }
209
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastino-ai/pioneer-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pioneer CLI - AI training platform with chat agent",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -13,10 +13,12 @@
13
13
  "start": "bun run src/index.tsx",
14
14
  "chat": "bun run src/index.tsx chat",
15
15
  "dev": "bun run --hot src/index.tsx",
16
- "typecheck": "tsc --noEmit"
16
+ "typecheck": "tsc --noEmit",
17
+ "test": "bun test"
17
18
  },
18
19
  "dependencies": {
19
20
  "@anthropic-ai/sdk": "^0.39.0",
21
+ "@inkkit/ink-markdown": "^1.0.0",
20
22
  "ink": "^4.4.1",
21
23
  "ink-spinner": "^5.0.0",
22
24
  "ink-text-input": "^5.0.1",
@@ -26,6 +28,7 @@
26
28
  "devDependencies": {
27
29
  "@types/node": "^22.0.0",
28
30
  "@types/react": "^18.3.0",
31
+ "@types/ws": "^8.18.1",
29
32
  "typescript": "^5.6.3"
30
33
  },
31
34
  "engines": {