@betterness/cli 1.1.1 → 1.2.2
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 +62 -7
- package/dist/index.js +742 -137
- package/package.json +1 -1
- package/CLI_REFERENCE.md +0 -493
package/README.md
CHANGED
|
@@ -12,6 +12,17 @@ Requires Node.js 20+.
|
|
|
12
12
|
|
|
13
13
|
## Authentication
|
|
14
14
|
|
|
15
|
+
### OAuth (default)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
betterness auth login # Opens browser for OAuth login
|
|
19
|
+
betterness auth whoami # Verify
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The CLI opens a browser window for secure authentication via OAuth. Tokens are stored in `~/.betterness/tokens.json` and refreshed automatically.
|
|
23
|
+
|
|
24
|
+
### API Key
|
|
25
|
+
|
|
15
26
|
Get your API key from either:
|
|
16
27
|
|
|
17
28
|
- [app.betti.bot/settings/betterness-mcp](https://app.betti.bot/settings/betterness-mcp)
|
|
@@ -26,7 +37,11 @@ betterness auth whoami # verify
|
|
|
26
37
|
|
|
27
38
|
You can also set the `BETTERNESS_API_KEY` environment variable instead of storing credentials.
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
### Credential priority
|
|
41
|
+
|
|
42
|
+
`--api-key` flag > `BETTERNESS_API_KEY` env var > OAuth tokens > stored API key.
|
|
43
|
+
|
|
44
|
+
Only one auth method is active at a time — logging in with one clears the other.
|
|
30
45
|
|
|
31
46
|
## Quick Start
|
|
32
47
|
|
|
@@ -131,6 +146,18 @@ betterness lab-results update-biomarker --biomarker-id <id> --result 5.2 --unit
|
|
|
131
146
|
betterness lab-results update-metadata --result-id <id> --patient-name "Jane Doe"
|
|
132
147
|
```
|
|
133
148
|
|
|
149
|
+
### Health Profile
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
betterness health-profile schema # List all sections
|
|
153
|
+
betterness health-profile schema --section HWP # Questions in a section
|
|
154
|
+
betterness health-profile get # Full profile (flat map)
|
|
155
|
+
betterness health-profile get-section --section DA # Single section answers
|
|
156
|
+
betterness health-profile summary # Human-readable summary
|
|
157
|
+
betterness health-profile update --data '{"HWP_HAB_do_you_smoke_cigarettes_or_use_tobacco_products": false}'
|
|
158
|
+
betterness health-profile reset-section --section DA
|
|
159
|
+
```
|
|
160
|
+
|
|
134
161
|
### Smart Listings (Wellness Providers)
|
|
135
162
|
|
|
136
163
|
```bash
|
|
@@ -165,12 +192,40 @@ The CLI is designed to be consumed by AI agents. Key features:
|
|
|
165
192
|
|
|
166
193
|
### Skills
|
|
167
194
|
|
|
168
|
-
Agent skills teach your AI coding agent the Betterness API surface — endpoints, schemas, and workflows — so it can build integrations without guessing. Available in the [betterness-cli](https://github.com/Betterness/betterness-cli) repo under
|
|
195
|
+
Agent skills teach your AI coding agent the Betterness API surface — endpoints, schemas, and workflows — so it can build integrations without guessing. Available in the [betterness-cli](https://github.com/Betterness/betterness-cli) repo under [`skills/`](https://github.com/Betterness/betterness-cli/tree/main/skills):
|
|
196
|
+
|
|
197
|
+
**Core skills:**
|
|
198
|
+
|
|
199
|
+
| Skill | Description |
|
|
200
|
+
|-------|-------------|
|
|
201
|
+
| [betterness-shared](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-shared) | Shared CLI setup, auth, and output format patterns |
|
|
202
|
+
| [betterness-auth](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-auth) | Authentication and credential management |
|
|
203
|
+
| [betterness-profile](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-profile) | User profile access and updates |
|
|
204
|
+
| [betterness-biomarkers](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-biomarkers) | Biomarker results and biological age |
|
|
205
|
+
| [betterness-health-data](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-health-data) | Activity, sleep, vitals, body composition |
|
|
206
|
+
| [betterness-connected-devices](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-connected-devices) | Wearable device integrations |
|
|
207
|
+
| [betterness-lab-tests](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-tests) | Lab test catalog and browsing |
|
|
208
|
+
| [betterness-lab-orders](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-orders) | Lab order scheduling and booking |
|
|
209
|
+
| [betterness-lab-records](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-records) | Lab record management |
|
|
210
|
+
| [betterness-lab-results](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-results) | Lab result uploads and updates |
|
|
211
|
+
| [betterness-purchases](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-purchases) | Purchases and Stripe checkout |
|
|
212
|
+
| [betterness-smart-listings](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-smart-listings) | Wellness provider search |
|
|
213
|
+
| [betterness-workflow](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-workflow) | Composite commands (daily brief, next actions) |
|
|
214
|
+
|
|
215
|
+
**Persona skills:**
|
|
216
|
+
|
|
217
|
+
| Skill | Description |
|
|
218
|
+
|-------|-------------|
|
|
219
|
+
| [persona-health-coach](https://github.com/Betterness/betterness-cli/tree/main/skills/persona-health-coach) | Health coach persona for wellness guidance |
|
|
220
|
+
| [persona-lab-manager](https://github.com/Betterness/betterness-cli/tree/main/skills/persona-lab-manager) | Lab manager persona for test ordering workflows |
|
|
221
|
+
|
|
222
|
+
**Recipe skills:**
|
|
169
223
|
|
|
170
224
|
| Skill | Description |
|
|
171
225
|
|-------|-------------|
|
|
172
|
-
| [
|
|
173
|
-
| [
|
|
226
|
+
| [recipe-health-checkup](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-health-checkup) | Step-by-step health checkup workflow |
|
|
227
|
+
| [recipe-order-lab-test](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-order-lab-test) | End-to-end lab test ordering |
|
|
228
|
+
| [recipe-track-biomarker](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-track-biomarker) | Biomarker tracking over time |
|
|
174
229
|
|
|
175
230
|
#### Installing skills
|
|
176
231
|
|
|
@@ -183,11 +238,11 @@ npx skills add https://github.com/Betterness/betterness-cli
|
|
|
183
238
|
Or install a specific skill:
|
|
184
239
|
|
|
185
240
|
```bash
|
|
186
|
-
npx skills add https://github.com/Betterness/betterness-cli --skill biomarkers
|
|
187
|
-
npx skills add https://github.com/Betterness/betterness-cli --skill
|
|
241
|
+
npx skills add https://github.com/Betterness/betterness-cli --skill betterness-biomarkers
|
|
242
|
+
npx skills add https://github.com/Betterness/betterness-cli --skill persona-health-coach
|
|
188
243
|
```
|
|
189
244
|
|
|
190
|
-
Each skill folder contains a `SKILL.md`
|
|
245
|
+
Each skill folder contains a `SKILL.md` with activation rules, patterns, and API reference.
|
|
191
246
|
|
|
192
247
|
## Full CLI Reference
|
|
193
248
|
|