ceddcozum 0.1.0
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 +70 -0
- package/dist/index.js +27467 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# ceddcozum
|
|
2
|
+
|
|
3
|
+
Pediatric clinical calculators from the terminal. 32 tools for growth, neonatal, bone mineral, diabetes, puberty, organ size, blood pressure, and more.
|
|
4
|
+
|
|
5
|
+
All calculations run locally — no API keys, no network requests, no patient data transmitted.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Run directly (no install)
|
|
11
|
+
npx ceddcozum --list
|
|
12
|
+
|
|
13
|
+
# Or install globally
|
|
14
|
+
npm install -g ceddcozum
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Run a calculator
|
|
21
|
+
ceddcozum auxology --args '{"sex":"male","age":5.5,"height":110,"weight":19}'
|
|
22
|
+
|
|
23
|
+
# JSON output (for piping / LLM agents)
|
|
24
|
+
ceddcozum auxology --args '{"sex":"male","age":5.5,"height":110}' --format json
|
|
25
|
+
|
|
26
|
+
# View tool schema (OpenAI function format)
|
|
27
|
+
ceddcozum auxology --schema
|
|
28
|
+
|
|
29
|
+
# Export all schemas for LLM tool-calling
|
|
30
|
+
ceddcozum --schemas
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
| Command | Description |
|
|
36
|
+
|---------|-------------|
|
|
37
|
+
| `ceddcozum --list` | List all 32 available tools |
|
|
38
|
+
| `ceddcozum <tool> --args '{...}'` | Run a calculator with JSON args |
|
|
39
|
+
| `ceddcozum <tool> --schema` | Show tool schema (OpenAI format) |
|
|
40
|
+
| `ceddcozum --schemas` | Dump all schemas |
|
|
41
|
+
| `--format human` | Human-readable output (default) |
|
|
42
|
+
| `--format json` | JSON `ToolResult[]` array |
|
|
43
|
+
|
|
44
|
+
## LLM Agent Integration
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# 1. Get schemas for your LLM system prompt
|
|
48
|
+
ceddcozum --schemas > tools.json
|
|
49
|
+
|
|
50
|
+
# 2. Agent decides to call a tool
|
|
51
|
+
ceddcozum auxology --args '{"sex":"female","age":3,"height":92}' --format json
|
|
52
|
+
|
|
53
|
+
# 3. Parse JSON array — each item has: label, value, unit?, sds?, percentile?
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## ToolResult Schema
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
interface ToolResult {
|
|
60
|
+
label: string // Human-readable label
|
|
61
|
+
value: string // Computed value
|
|
62
|
+
unit?: string // Unit of measurement
|
|
63
|
+
sds?: number // Standard deviation score
|
|
64
|
+
percentile?: number // Percentile (0-100)
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT
|