@betterness/cli 1.1.0 → 1.1.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 +34 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -165,12 +165,40 @@ The CLI is designed to be consumed by AI agents. Key features:
|
|
|
165
165
|
|
|
166
166
|
### Skills
|
|
167
167
|
|
|
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
|
|
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 [`skills/`](https://github.com/Betterness/betterness-cli/tree/main/skills):
|
|
169
|
+
|
|
170
|
+
**Core skills:**
|
|
171
|
+
|
|
172
|
+
| Skill | Description |
|
|
173
|
+
|-------|-------------|
|
|
174
|
+
| [betterness-shared](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-shared) | Shared CLI setup, auth, and output format patterns |
|
|
175
|
+
| [betterness-auth](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-auth) | Authentication and credential management |
|
|
176
|
+
| [betterness-profile](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-profile) | User profile access and updates |
|
|
177
|
+
| [betterness-biomarkers](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-biomarkers) | Biomarker results and biological age |
|
|
178
|
+
| [betterness-health-data](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-health-data) | Activity, sleep, vitals, body composition |
|
|
179
|
+
| [betterness-connected-devices](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-connected-devices) | Wearable device integrations |
|
|
180
|
+
| [betterness-lab-tests](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-tests) | Lab test catalog and browsing |
|
|
181
|
+
| [betterness-lab-orders](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-orders) | Lab order scheduling and booking |
|
|
182
|
+
| [betterness-lab-records](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-records) | Lab record management |
|
|
183
|
+
| [betterness-lab-results](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-lab-results) | Lab result uploads and updates |
|
|
184
|
+
| [betterness-purchases](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-purchases) | Purchases and Stripe checkout |
|
|
185
|
+
| [betterness-smart-listings](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-smart-listings) | Wellness provider search |
|
|
186
|
+
| [betterness-workflow](https://github.com/Betterness/betterness-cli/tree/main/skills/betterness-workflow) | Composite commands (daily brief, next actions) |
|
|
187
|
+
|
|
188
|
+
**Persona skills:**
|
|
189
|
+
|
|
190
|
+
| Skill | Description |
|
|
191
|
+
|-------|-------------|
|
|
192
|
+
| [persona-health-coach](https://github.com/Betterness/betterness-cli/tree/main/skills/persona-health-coach) | Health coach persona for wellness guidance |
|
|
193
|
+
| [persona-lab-manager](https://github.com/Betterness/betterness-cli/tree/main/skills/persona-lab-manager) | Lab manager persona for test ordering workflows |
|
|
194
|
+
|
|
195
|
+
**Recipe skills:**
|
|
169
196
|
|
|
170
197
|
| Skill | Description |
|
|
171
198
|
|-------|-------------|
|
|
172
|
-
| [
|
|
173
|
-
| [
|
|
199
|
+
| [recipe-health-checkup](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-health-checkup) | Step-by-step health checkup workflow |
|
|
200
|
+
| [recipe-order-lab-test](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-order-lab-test) | End-to-end lab test ordering |
|
|
201
|
+
| [recipe-track-biomarker](https://github.com/Betterness/betterness-cli/tree/main/skills/recipe-track-biomarker) | Biomarker tracking over time |
|
|
174
202
|
|
|
175
203
|
#### Installing skills
|
|
176
204
|
|
|
@@ -183,11 +211,11 @@ npx skills add https://github.com/Betterness/betterness-cli
|
|
|
183
211
|
Or install a specific skill:
|
|
184
212
|
|
|
185
213
|
```bash
|
|
186
|
-
npx skills add https://github.com/Betterness/betterness-cli --skill biomarkers
|
|
187
|
-
npx skills add https://github.com/Betterness/betterness-cli --skill
|
|
214
|
+
npx skills add https://github.com/Betterness/betterness-cli --skill betterness-biomarkers
|
|
215
|
+
npx skills add https://github.com/Betterness/betterness-cli --skill persona-health-coach
|
|
188
216
|
```
|
|
189
217
|
|
|
190
|
-
Each skill folder contains a `SKILL.md`
|
|
218
|
+
Each skill folder contains a `SKILL.md` with activation rules, patterns, and API reference.
|
|
191
219
|
|
|
192
220
|
## Full CLI Reference
|
|
193
221
|
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ var ApiClient = class {
|
|
|
92
92
|
constructor(options = {}) {
|
|
93
93
|
const credentials = resolveCredentials(options.apiKey);
|
|
94
94
|
this.apiKey = credentials.apiKey;
|
|
95
|
-
const apiUrl = "https://api.betterness.
|
|
95
|
+
const apiUrl = "https://api.betterness.ai";
|
|
96
96
|
if (!apiUrl) {
|
|
97
97
|
throw new CliError(
|
|
98
98
|
"No API URL configured. This is a build error \u2014 BETTERNESS_API_URL should be baked in at build time.",
|
|
@@ -125,7 +125,7 @@ var ApiClient = class {
|
|
|
125
125
|
headers: {
|
|
126
126
|
"Authorization": `Bearer ${this.apiKey}`,
|
|
127
127
|
"Content-Type": "application/json",
|
|
128
|
-
"User-Agent": `betterness-cli/${"1.1.
|
|
128
|
+
"User-Agent": `betterness-cli/${"1.1.2"}`,
|
|
129
129
|
"Accept": "application/json"
|
|
130
130
|
},
|
|
131
131
|
body: body ? JSON.stringify(body) : void 0,
|
|
@@ -189,7 +189,7 @@ var ApiClient = class {
|
|
|
189
189
|
method: "POST",
|
|
190
190
|
headers: {
|
|
191
191
|
"Authorization": `Bearer ${this.apiKey}`,
|
|
192
|
-
"User-Agent": `betterness-cli/${"1.1.
|
|
192
|
+
"User-Agent": `betterness-cli/${"1.1.2"}`,
|
|
193
193
|
"Accept": "application/json"
|
|
194
194
|
},
|
|
195
195
|
body: formData,
|
|
@@ -1819,8 +1819,8 @@ function registerDebugCommands(program2) {
|
|
|
1819
1819
|
const parentOpts = cmd.optsWithGlobals();
|
|
1820
1820
|
const authSource = parentOpts.apiKey ? "--api-key flag" : envKey ? "BETTERNESS_API_KEY env" : stored ? "~/.betterness/credentials.json" : "none";
|
|
1821
1821
|
const config = {
|
|
1822
|
-
version: "1.1.
|
|
1823
|
-
apiUrl: "https://api.betterness.
|
|
1822
|
+
version: "1.1.2",
|
|
1823
|
+
apiUrl: "https://api.betterness.ai",
|
|
1824
1824
|
authSource,
|
|
1825
1825
|
credentialsFile: credentialsPath,
|
|
1826
1826
|
credentialsExists: String(existsSync2(credentialsPath))
|
|
@@ -1846,7 +1846,7 @@ function registerDebugCommands(program2) {
|
|
|
1846
1846
|
// src/program.ts
|
|
1847
1847
|
function createProgram() {
|
|
1848
1848
|
const program2 = new Command();
|
|
1849
|
-
program2.name("betterness").description("Betterness CLI - Agent-first terminal interface for the Betterness platform").version("1.1.
|
|
1849
|
+
program2.name("betterness").description("Betterness CLI - Agent-first terminal interface for the Betterness platform").version("1.1.2").option("--api-key <key>", "API key (overrides env and stored credentials)").option("--json", "Output as JSON").option("--markdown", "Output as Markdown").option("--quiet", "Suppress output (exit code only)");
|
|
1850
1850
|
registerAuthCommands(program2);
|
|
1851
1851
|
registerProfileCommands(program2);
|
|
1852
1852
|
registerBiomarkersCommands(program2);
|