@trainheroic-unofficial/cli 1.1.0 → 1.1.1

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/README.md +11 -11
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -22,7 +22,7 @@ Needs Node >= 18 and an existing TrainHeroic account.
22
22
 
23
23
  ## Usage
24
24
 
25
- Set your TrainHeroic login in the environment (stored in plaintext and shell history — treat
25
+ Set your TrainHeroic login in the environment (stored in plaintext and shell history, so treat
26
26
  it as a secret), then run a command. Every command prints JSON to stdout.
27
27
 
28
28
  ```bash
@@ -33,24 +33,24 @@ trainheroic whoami # confirm auth; prints your ac
33
33
  trainheroic coach exercise resolve "Back Squat" # name -> exercise (id, units)
34
34
  ```
35
35
 
36
- **Driving this from an AI agent?** Run `trainheroic skill` first — it prints the full
36
+ **Driving this from an AI agent?** Run `trainheroic skill` first. It prints the full
37
37
  workflow guide (with copy-paste workout-spec examples) to stdout, version-matched to the
38
- binary; `trainheroic skill --full` adds the API and workout-creation reference docs. It's the
39
- fastest way to get the spec shapes right instead of guessing from flags.
38
+ binary. `trainheroic skill --full` adds the API and workout-creation reference docs, which is
39
+ the quickest path to getting spec shapes right.
40
40
 
41
- Commands split into three groups. `whoami` and `request` are **shared** (role-agnostic).
42
- Everything for managing a roster lives under **`coach`** — reads (`coach athletes`,
43
- `coach programs`, `coach teams`, `coach program <id>`, …), the exercise library
41
+ `whoami` and `request` are role-agnostic shared commands. Roster management lives under
42
+ **`coach`**, covering reads (`coach athletes`, `coach programs`, `coach teams`,
43
+ `coach program <id>`, …), the exercise library
44
44
  (`coach exercise resolve|search|get|sync|create|forget|stats`), the workout lifecycle
45
45
  (`coach workout build|read|publish|remove`), and messaging
46
- (`coach message list|read|draft|send|delete`). Your own training lives under **`athlete`**.
46
+ (`coach message list|read|draft|send|delete`). Your own training data lives under **`athlete`**.
47
47
  Run `trainheroic` with no command for the full reference. Dates are `Y-M-D` with a 1-based
48
48
  month, e.g. `2026-6-22` or `2026-06-22` for 22 June 2026.
49
49
 
50
50
  ### Building a workout
51
51
 
52
- `coach workout build` reads a workout spec — a JSON file (`--file`), an inline argument, or
53
- stdin — and writes it into a program on a date. `--program` is a program id (find it in the
52
+ `coach workout build` reads a workout spec (a JSON file via `--file`, an inline argument, or
53
+ stdin) and writes it into a program on a date. `--program` is a program id (find it in the
54
54
  program's URL in the TrainHeroic web app, or run `trainheroic coach programs`). The spec is
55
55
  `{ blocks, instruction? }` (a bare blocks array is also accepted). Each exercise's `id` is a
56
56
  library id; get one with `coach exercise resolve`. `reps` and `weight` take a scalar or a
@@ -58,7 +58,7 @@ per-set array (`"reps": [5, 5, 3]`); loads use the exercise's configured unit. T
58
58
  is `WorkoutSpec` in [`@trainheroic-unofficial/dto`](../dto).
59
59
 
60
60
  ```jsonc
61
- // day.json — one block with one exercise (id 41822 is a library exercise id)
61
+ // day.json: one block with one exercise (id 41822 is a library exercise id)
62
62
  {
63
63
  "instruction": "Warm up first.",
64
64
  "blocks": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "zod": "^4.4.3",
24
- "@trainheroic-unofficial/dto": "1.1.0",
25
- "@trainheroic-unofficial/js": "1.1.0"
24
+ "@trainheroic-unofficial/dto": "1.1.1",
25
+ "@trainheroic-unofficial/js": "1.1.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.0.0",