ceddcozum 0.1.2 → 0.1.4

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 (2) hide show
  1. package/dist/index.js +13 -12
  2. package/package.json +8 -3
package/dist/index.js CHANGED
@@ -24988,10 +24988,9 @@ function executeIGFSds(args) {
24988
24988
  sex: String(args.sex),
24989
24989
  igf1Value: args.igf1Value != null ? Number(args.igf1Value) : void 0,
24990
24990
  igfbp3Value: args.igfbp3Value != null ? Number(args.igfbp3Value) : void 0,
24991
- igfbp3Unit: String(args.igfbp3Unit || "mcgPerML"),
24992
- tannerStage: args.tannerStage ? String(args.tannerStage) : void 0,
24991
+ igfbp3Unit: String(args.igfbp3Unit || "mcg/mL") === "ng/mL" ? "ngPerML" : "mcgPerML",
24993
24992
  igf1Database: String(args.igf1Database || "elmlinger"),
24994
- igfbp3Database: String(args.igfbp3Database || "elmlinger")
24993
+ igfbp3Database: String(args.igfbp3Database || "elmlinger") === "ria-bc" ? "riaBc" : String(args.igfbp3Database || "elmlinger")
24995
24994
  };
24996
24995
  const result = calculateIGFSds(input);
24997
24996
  if (!result) return [{ label: "Error", value: "Could not calculate IGF SDS. Check age range.", severity: "severe" }];
@@ -26130,10 +26129,9 @@ var toolSchemas = [
26130
26129
  sex: { type: "string", description: "Sex", enum: ["male", "female"] },
26131
26130
  igf1Value: { type: "number", description: "IGF-1 concentration in ng/mL [optional]" },
26132
26131
  igfbp3Value: { type: "number", description: "IGFBP-3 concentration [optional]" },
26133
- igfbp3Unit: { type: "string", description: "IGFBP-3 unit [default: mcgPerML]", enum: ["mcgPerML", "ngPerML"] },
26134
- tannerStage: { type: "string", description: "Tanner puberty stage [optional, default: I]", enum: ["I", "II", "III", "IV", "V"] },
26132
+ igfbp3Unit: { type: "string", description: "IGFBP-3 unit [default: mcg/mL]", enum: ["mcg/mL", "ng/mL"] },
26135
26133
  igf1Database: { type: "string", description: "IGF-1 reference kit. elmlinger = CLIA / IMMULITE / Siemens Immulite (default). eclia = ECLIA / Roche / Elecsys / Cobas. guven = G\xFCven (Turkish reference). When user mentions a kit/assay name, match to the correct enum.", enum: ["elmlinger", "eclia", "guven"] },
26136
- igfbp3Database: { type: "string", description: "IGFBP-3 reference kit. elmlinger = CLIA / IMMULITE / Siemens Immulite (default). riaBc = RIA / Beckman Coulter / RIA-BC. guven = G\xFCven (Turkish reference). When user mentions a kit/assay name, match to the correct enum.", enum: ["elmlinger", "riaBc", "guven"] }
26134
+ igfbp3Database: { type: "string", description: "IGFBP-3 reference kit. elmlinger = CLIA / IMMULITE / Siemens Immulite (default). ria-bc = RIA / Beckman Coulter / RIA-BC. guven = G\xFCven (Turkish reference). When user mentions a kit/assay name, match to the correct enum.", enum: ["elmlinger", "ria-bc", "guven"] }
26137
26135
  },
26138
26136
  required: ["age", "sex"]
26139
26137
  }
@@ -26524,7 +26522,7 @@ var toolSchemas = [
26524
26522
  type: "function",
26525
26523
  function: {
26526
26524
  name: "point-blood-pressure",
26527
- description: "Blood pressure percentile for children (1-18 years). Uses Rosner 2008 methodology. Requires sex, age, height, and measured BP.",
26525
+ description: "Blood pressure percentile for children (1-18 years). Requires sex, age, height, and measured BP.",
26528
26526
  parameters: {
26529
26527
  type: "object",
26530
26528
  properties: {
@@ -27022,7 +27020,7 @@ var toolsMetadata = [
27022
27020
  titleKey: "tools.point-blood-pressure.title",
27023
27021
  subtitleKey: "tools.point-blood-pressure.subtitle",
27024
27022
  titleFallback: "Point Blood Pressure",
27025
- subtitleFallback: "Clinic percentiles by age and height (Rosner 2008)",
27023
+ subtitleFallback: "Clinic percentiles by age and height",
27026
27024
  searchKeywords: ["tansiyon", "blood pressure", "kan bas\u0131nc\u0131", "Rosner", "persentil", "percentile", "hipertansiyon", "hypertension"]
27027
27025
  },
27028
27026
  {
@@ -27170,7 +27168,7 @@ var HIDDEN_TOOL_IDS = [
27170
27168
  "gfr",
27171
27169
  "leptin-sds"
27172
27170
  ];
27173
- var VERSION = "0.1.2";
27171
+ var VERSION = "0.1.4";
27174
27172
  var visibleSchemas = toolSchemas.filter(
27175
27173
  (s) => !HIDDEN_TOOL_IDS.includes(s.function.name)
27176
27174
  );
@@ -27243,7 +27241,10 @@ function printList() {
27243
27241
  byCategory.get(category).push({ id: name, subtitle });
27244
27242
  }
27245
27243
  console.log(`
27246
- ${bold2("ceddcozum")} \u2014 ${cyan2(String(visibleSchemas.length))} tools available
27244
+ ${bold2("ceddcozum")} v${VERSION} ${dim2("\u2014 Pediatric clinical calculators")}
27245
+ ${dim2("All calculations run locally \u2014 no API keys, no network requests.")}
27246
+
27247
+ ${cyan2(String(visibleSchemas.length))} tools available:
27247
27248
  `);
27248
27249
  const printed = /* @__PURE__ */ new Set();
27249
27250
  for (const cat of CATEGORY_ORDER) {
@@ -27422,7 +27423,7 @@ function main() {
27422
27423
  format: { type: "string", short: "f", default: "human" }
27423
27424
  }
27424
27425
  });
27425
- if (values.help || positionals.length === 0 && !values.list && !values.schemas && !values.version) {
27426
+ if (values.help) {
27426
27427
  printHelp();
27427
27428
  return;
27428
27429
  }
@@ -27430,7 +27431,7 @@ function main() {
27430
27431
  console.log(`ceddcozum v${VERSION}`);
27431
27432
  return;
27432
27433
  }
27433
- if (values.list) {
27434
+ if (values.list || positionals.length === 0 && !values.schemas) {
27434
27435
  printList();
27435
27436
  return;
27436
27437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ceddcozum",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CEDD Cozum pediatric clinical calculators - CLI interface",
5
5
  "license": "MIT",
6
6
  "author": "Bora Ulukapı",
@@ -18,10 +18,15 @@
18
18
  "percentile",
19
19
  "WHO",
20
20
  "CDC",
21
- "Neyzi"
21
+ "Neyzi",
22
+ "child-metrics",
23
+ "childmetrics",
24
+ "z-score",
25
+ "anthropometry"
22
26
  ],
23
27
  "bin": {
24
- "ceddcozum": "dist/index.js"
28
+ "ceddcozum": "dist/index.js",
29
+ "childmetrics": "dist/index.js"
25
30
  },
26
31
  "main": "dist/index.js",
27
32
  "files": [