ceddcozum 0.1.8 → 0.1.9
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 +22 -6
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
# ceddcozum
|
|
1
|
+
# ceddcozum / childmetrics
|
|
2
2
|
|
|
3
3
|
Pediatric clinical calculators from the terminal. 32 tools for growth, neonatal, bone mineral, diabetes, puberty, organ size, blood pressure, and more.
|
|
4
4
|
|
|
5
5
|
All calculations run locally — no API keys, no network requests, no patient data transmitted.
|
|
6
6
|
|
|
7
|
+
Also available as `childmetrics`:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx childmetrics --list
|
|
11
|
+
```
|
|
12
|
+
|
|
7
13
|
## Install
|
|
8
14
|
|
|
9
15
|
```bash
|
|
@@ -12,17 +18,22 @@ npx ceddcozum --list
|
|
|
12
18
|
|
|
13
19
|
# Or install globally
|
|
14
20
|
npm install -g ceddcozum
|
|
21
|
+
# or
|
|
22
|
+
npm install -g childmetrics
|
|
15
23
|
```
|
|
16
24
|
|
|
17
25
|
## Usage
|
|
18
26
|
|
|
19
27
|
```bash
|
|
20
|
-
#
|
|
21
|
-
ceddcozum auxology
|
|
28
|
+
# Simple key=value syntax
|
|
29
|
+
ceddcozum auxology sex=male age=5.5 height=110 weight=19
|
|
22
30
|
|
|
23
|
-
# JSON
|
|
31
|
+
# JSON args (for LLM agents)
|
|
24
32
|
ceddcozum auxology --args '{"sex":"male","age":5.5,"height":110}' --format json
|
|
25
33
|
|
|
34
|
+
# Growth hormone with brand name
|
|
35
|
+
ceddcozum growth-hormone weight=25 'usagePattern=her gün 2 mg' concentrationIU=30
|
|
36
|
+
|
|
26
37
|
# View tool schema (OpenAI function format)
|
|
27
38
|
ceddcozum auxology --schema
|
|
28
39
|
|
|
@@ -35,7 +46,8 @@ ceddcozum --schemas
|
|
|
35
46
|
| Command | Description |
|
|
36
47
|
|---------|-------------|
|
|
37
48
|
| `ceddcozum --list` | List all 32 available tools |
|
|
38
|
-
| `ceddcozum <tool>
|
|
49
|
+
| `ceddcozum <tool> key=value ...` | Run a calculator |
|
|
50
|
+
| `ceddcozum <tool> --args '{...}'` | Run with JSON args |
|
|
39
51
|
| `ceddcozum <tool> --schema` | Show tool schema (OpenAI format) |
|
|
40
52
|
| `ceddcozum --schemas` | Dump all schemas |
|
|
41
53
|
| `--format human` | Human-readable output (default) |
|
|
@@ -67,4 +79,8 @@ interface ToolResult {
|
|
|
67
79
|
|
|
68
80
|
## License
|
|
69
81
|
|
|
70
|
-
|
|
82
|
+
Apache License 2.0 — see [LICENSE](./LICENSE).
|
|
83
|
+
|
|
84
|
+
Copyright 2026 ÇEDD (Çocuk Endokrinolojisi ve Diyabet Derneği) / TSPED (Turkish Society for Pediatric Endocrinology and Diabetes).
|
|
85
|
+
|
|
86
|
+
Attribution is required when using or redistributing this software. See [NOTICE](./NOTICE) for details.
|
package/dist/index.js
CHANGED
|
@@ -25152,6 +25152,14 @@ function parseUsagePattern(raw) {
|
|
|
25152
25152
|
}
|
|
25153
25153
|
}
|
|
25154
25154
|
if (revEntries.length > 0) return revEntries;
|
|
25155
|
+
const dailyRegex = /(?:her\s*g[üu]n(?:de)?|herg[üu]n|g[üu]n(?:de|l[üu]k)|daily|every\s*day)\s*:?\s*([\d]+[.,]?\d*)\s*(?:mg)?/i;
|
|
25156
|
+
const dailyMatch = raw.match(dailyRegex);
|
|
25157
|
+
if (dailyMatch) {
|
|
25158
|
+
const doseMg = parseFloat(dailyMatch[1].replace(",", "."));
|
|
25159
|
+
if (!Number.isNaN(doseMg) && doseMg >= 0) {
|
|
25160
|
+
return [{ days: 7, doseMg }];
|
|
25161
|
+
}
|
|
25162
|
+
}
|
|
25155
25163
|
return [];
|
|
25156
25164
|
}
|
|
25157
25165
|
function executeGrowthHormone(args) {
|
|
@@ -26165,7 +26173,7 @@ var toolSchemas = [
|
|
|
26165
26173
|
properties: {
|
|
26166
26174
|
weight: { type: "number", description: "Weight in kg (extract from user text)" },
|
|
26167
26175
|
usagePattern: { type: "string", description: 'Compact format "days:doseMg,days:doseMg". Extract from user text and convert. Days can sum to 1-7 (supports off-day schedules like 6 days on / 1 day off).' },
|
|
26168
|
-
concentrationIU: { type: "number", description: 'Preparation concentration in IU
|
|
26176
|
+
concentrationIU: { type: "number", description: 'Preparation concentration in IU (mg\xD73). IMPORTANT for box calc. Brand\u2192IU: Genotropin 5mg\u219215, 12mg\u219236. Norditropin 5mg\u219215, 10mg\u219230, 15mg\u219245. Omnitrope 5mg\u219215, 10mg\u219230, 15mg\u219245. Humatrope 6mg\u219218, 12mg\u219236, 24mg\u219272. Saizen 6mg\u219218, 12mg\u219236, 20mg\u219260. Or direct "30 IU/ml".' }
|
|
26169
26177
|
},
|
|
26170
26178
|
required: ["weight", "usagePattern"]
|
|
26171
26179
|
}
|
|
@@ -27179,7 +27187,7 @@ var cyan2 = (s) => useColor2 ? `\x1B[36m${s}\x1B[0m` : s;
|
|
|
27179
27187
|
var green = (s) => useColor2 ? `\x1B[32m${s}\x1B[0m` : s;
|
|
27180
27188
|
var yellow2 = (s) => useColor2 ? `\x1B[33m${s}\x1B[0m` : s;
|
|
27181
27189
|
var magenta = (s) => useColor2 ? `\x1B[35m${s}\x1B[0m` : s;
|
|
27182
|
-
var VERSION = true ? "0.1.
|
|
27190
|
+
var VERSION = true ? "0.1.9" : "0.0.0-dev";
|
|
27183
27191
|
var visibleSchemas = toolSchemas.filter(
|
|
27184
27192
|
(s) => !HIDDEN_TOOL_IDS.includes(s.function.name)
|
|
27185
27193
|
);
|