@sctg/openclaw-coach 0.1.0 → 2.0.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.
Files changed (61) hide show
  1. package/README.md +296 -66
  2. package/assets/fonts/Inter_400Regular.ttf +0 -0
  3. package/assets/fonts/Inter_600SemiBold.ttf +0 -0
  4. package/assets/fonts/LICENSE.txt +93 -0
  5. package/assets/logo.png +0 -0
  6. package/assets/logo.svg +62 -0
  7. package/dist/charts/build.d.ts +71 -0
  8. package/dist/charts/build.js +276 -0
  9. package/dist/charts/labels.d.ts +38 -0
  10. package/dist/charts/labels.js +73 -0
  11. package/dist/charts/render.d.ts +10 -0
  12. package/dist/charts/render.js +26 -0
  13. package/dist/charts/svg.d.ts +47 -0
  14. package/dist/charts/svg.js +92 -0
  15. package/dist/config.d.ts +25 -0
  16. package/dist/config.js +38 -0
  17. package/dist/dates.d.ts +22 -0
  18. package/dist/dates.js +71 -0
  19. package/dist/garmin/gc.d.ts +25 -0
  20. package/dist/garmin/gc.js +81 -0
  21. package/dist/garmin/normalize.d.ts +20 -0
  22. package/dist/garmin/normalize.js +132 -0
  23. package/dist/index.js +188 -163
  24. package/dist/profile.d.ts +4 -0
  25. package/dist/profile.js +43 -0
  26. package/dist/science/associations.d.ts +56 -0
  27. package/dist/science/associations.js +102 -0
  28. package/dist/science/healthspan.d.ts +25 -0
  29. package/dist/science/healthspan.js +89 -0
  30. package/dist/science/hrv.d.ts +61 -0
  31. package/dist/science/hrv.js +119 -0
  32. package/dist/science/load.d.ts +107 -0
  33. package/dist/science/load.js +228 -0
  34. package/dist/science/performance.d.ts +93 -0
  35. package/dist/science/performance.js +191 -0
  36. package/dist/science/readiness.d.ts +47 -0
  37. package/dist/science/readiness.js +97 -0
  38. package/dist/science/recovery.d.ts +74 -0
  39. package/dist/science/recovery.js +173 -0
  40. package/dist/science/sleep.d.ts +79 -0
  41. package/dist/science/sleep.js +165 -0
  42. package/dist/science/stats.d.ts +50 -0
  43. package/dist/science/stats.js +201 -0
  44. package/dist/science/strength.d.ts +47 -0
  45. package/dist/science/strength.js +120 -0
  46. package/dist/store.d.ts +36 -0
  47. package/dist/store.js +78 -0
  48. package/dist/sync.d.ts +36 -0
  49. package/dist/sync.js +145 -0
  50. package/dist/tools.d.ts +427 -0
  51. package/dist/tools.js +721 -0
  52. package/dist/types.d.ts +143 -0
  53. package/dist/types.js +2 -0
  54. package/docs/SCIENCE.md +717 -0
  55. package/examples/ATHLETE-fr.md +72 -0
  56. package/examples/ATHLETE.md +74 -0
  57. package/examples/PLAN-fr.md +55 -0
  58. package/examples/PLAN.md +55 -0
  59. package/openclaw.plugin.json +152 -5
  60. package/package.json +14 -3
  61. package/skills/coach/SKILL.md +283 -208
package/README.md CHANGED
@@ -1,38 +1,37 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/sctg-development/openclaw-coach/main/assets/logo.png" alt="OpenClaw Coach logo" width="160">
3
+ </p>
4
+
1
5
  # OpenClaw Coach
2
6
 
3
- An AI endurance coach plugin for [OpenClaw](https://github.com/openclaw/openclaw),
4
- built on top of [garmin-cli](https://github.com/sctg-development/garmin-cli)
5
- (the `gc` CLI for Garmin Connect).
6
-
7
- It ships:
8
-
9
- - A `coach` skill with real coaching methodology (HRV/readiness
10
- interpretation, training-zone recalibration, grade-adjusted pace and
11
- cardiac-drift analysis, trail/vertical periodization) and safety framing
12
- (see [`skills/coach/SKILL.md`](skills/coach/SKILL.md)).
13
- - `coach_garmin_digest`, aggregating the handful of `gc` commands a routine
14
- check-in needs (recent activities, training readiness/status, HRV, body
15
- battery, sleep, weight trend, race predictions) into one call.
16
- - `coach_activity_deep_dive`, a fine-grained bundle for one activity:
17
- elevation/grade-segmented splits, HR zones, and weather — the basis for
18
- grade-adjusted pace and cardiac-drift analysis.
19
-
20
- It deliberately does **not** ship its own scheduler or a bundled athlete
21
- profile. Proactive check-ins use OpenClaw's built-in
22
- [Automations](https://docs.openclaw.ai/automation/cron-jobs) (`openclaw
23
- automations create ...`), and the athlete's actual profile — bio, personal
24
- records, goal race, injury/medical history, current constraints — lives in a
25
- workspace `ATHLETE.md` file you maintain yourself, the same way OpenClaw
26
- already handles `AGENTS.md`/`SOUL.md`/`USER.md`. That file is never part of
27
- this repo: it's personal health data, and this plugin is public.
7
+ An endurance and recovery coach plugin for [OpenClaw](https://github.com/openclaw/openclaw), built on
8
+ [garmin-cli](https://github.com/sctg-development/garmin-cli) (the `gc` CLI for Garmin Connect).
9
+
10
+ Version 2 is a rewrite. Version 1 handed raw Garmin payloads to the model; version 2 **computes documented
11
+ physiological models in code** and gives the model compact, sourced results to interpret:
12
+
13
+ - **HRV** against the athlete's own baseline (ln rMSSD, 7-day trend, normal range, stability);
14
+ - a **recovery index** and its components (HRV, resting heart rate, sleep, respiratory rate, skin temperature);
15
+ - **early-warning** flags when several signals move together;
16
+ - **sleep** sufficiency, running debt and regularity;
17
+ - **training load** (Banister TRIMP, fitness, fatigue, form, monotony, intensity distribution) with
18
+ **projection of a plan**;
19
+ - a daily **training ceiling** (rest / easy / moderate / hard) with the rules behind it;
20
+ - activity analysis (grade-adjusted pace, aerobic decoupling), zones and paces, strength summaries,
21
+ a habit journal with association statistics, long-term health markers.
22
+
23
+ Every formula, constant, threshold, level of evidence and limit is in
24
+ [`docs/SCIENCE.md`](docs/SCIENCE.md) (written for review by sport-science and medical teams,
25
+ with a verified bibliography and LLM recommendations). The coaching behaviour and safety rules are in
26
+ [`skills/coach/SKILL.md`](skills/coach/SKILL.md).
27
+
28
+ This is a coaching aid for a healthy training adult. It is not a medical device and makes no diagnosis.
28
29
 
29
30
  ## Requirements
30
31
 
31
32
  - An OpenClaw Gateway (2026.8.2+).
32
- - [`gc`](https://github.com/sctg-development/garmin-cli) installed and
33
- authenticated (`gc login ...`) in the same environment the Gateway runs
34
- in. The bundled [`garmin`](https://github.com/openclaw/openclaw/tree/main/skills/garmin)
35
- skill already documents this.
33
+ - [`gc`](https://github.com/sctg-development/garmin-cli) **0.4.0 or later** (for `gc daily`), installed
34
+ and authenticated (`gc login ...`) in the environment the Gateway runs in.
36
35
 
37
36
  ## Install
38
37
 
@@ -40,66 +39,297 @@ this repo: it's personal health data, and this plugin is public.
40
39
  openclaw plugins install npm:@sctg/openclaw-coach
41
40
  ```
42
41
 
43
- Or as a git submodule alongside a local OpenClaw checkout, matching how this
44
- was originally built — see the parent deployment's plugin loading setup for
45
- the exact wiring.
42
+ ## Set up
46
43
 
47
- ## Publishing
44
+ 1. Check that `gc status` succeeds in the Gateway's environment.
45
+ 2. Configure the athlete's anchors (see Configuration). At least `timezone`, `sex` and a measured `hrMax`.
46
+ 3. Ask the coach to run `coach_data_status` with `sync: true`: it fetches 90 days of recovery signals and
47
+ 180 days of activities (about 25 Garmin requests), and says what is missing.
48
+ 4. Create `ATHLETE.md` (and, when you want the coach to follow a plan, `PLAN.md`) in the agent's workspace: see
49
+ [Workspace files](#workspace-files).
50
+ 5. Optionally schedule check-ins with OpenClaw Automations (recipes in the skill).
48
51
 
49
- `.github/workflows/publish.yml` publishes to npm when a GitHub Release is
50
- published (or manually via workflow dispatch). It expects an `NPM_TOKEN`
51
- repository secret with publish rights to the `@sctg` npm org:
52
+ Baselines need history: HRV and recovery are `calibrating` until 14 nights exist, and the load model
53
+ needs about a month to be usable and three months to be stable.
52
54
 
53
- ```bash
54
- gh secret set NPM_TOKEN --repo sctg-development/openclaw-coach
55
+ ## Workspace files
56
+
57
+ The coach computes from your watch data; what the watch cannot know (your goal, injuries, constraints,
58
+ availability, the plan) lives in two plain Markdown files in the **agent's workspace**, which the coach reads
59
+ at the start of its routines.
60
+
61
+ | File | Required | Who writes it | Role |
62
+ |---|---|---|---|
63
+ | `ATHLETE.md` | Strongly recommended | You, once, then when your situation changes | Bio, measured anchors, goal, injury and medical history, **binding constraints**, availability, preferences |
64
+ | `PLAN.md` | Optional | The coach (you can edit it too) | Phases, the next 7 days, adjustment rules, log of changes |
65
+
66
+ Examples with a fictional athlete are in [`examples/ATHLETE.md`](examples/ATHLETE.md) and
67
+ [`examples/PLAN.md`](examples/PLAN.md). The constraints in `ATHLETE.md` are never overridden by the coach or
68
+ by a model output; symptoms always come before signals.
69
+
70
+ ### Where they go
71
+
72
+ The workspace is `~/.openclaw/workspace/` of the user running the Gateway (`agents.defaults.workspace`
73
+ can move it). In the OpenClaw container image this is
74
+ `/home/node/.openclaw/workspace/`, on the persistent volume:
75
+
76
+ ```text
77
+ ~/.openclaw/workspace/ATHLETE.md
78
+ ~/.openclaw/workspace/PLAN.md
55
79
  ```
56
80
 
57
- The workflow checks that `package.json`'s version matches the release tag
58
- (`vX.Y.Z`) before building and publishing, so bump the version and tag
59
- together.
81
+ ### How to create them
60
82
 
61
- ## Set up
83
+ 1. **With the coach (simplest).** Say: "Create my ATHLETE.md; ask me the questions you need, one block at a
84
+ time, and show it to me before saving." The coach follows the template in
85
+ [`skills/coach/SKILL.md`](skills/coach/SKILL.md). For `PLAN.md`, give your goal and availability and ask
86
+ for a plan; the coach projects it with `coach_training_load` before saving it.
87
+ 2. **By hand.** Copy the examples and replace every value:
88
+
89
+ ```bash
90
+ cp examples/ATHLETE.md ~/.openclaw/workspace/ATHLETE.md
91
+ cp examples/PLAN.md ~/.openclaw/workspace/PLAN.md
92
+ ```
62
93
 
63
- 1. Confirm `gc status` succeeds in the Gateway's environment.
64
- 2. Create `ATHLETE.md` in your OpenClaw workspace from the template in
65
- [`skills/coach/SKILL.md`](skills/coach/SKILL.md#athletemd-template), or
66
- just ask the coach to create it with you.
67
- 3. Optionally, set up a proactive check-in — see
68
- [the skill's "Proactive check-ins" section](skills/coach/SKILL.md#proactive-check-ins)
69
- for the `openclaw automations create` recipe.
70
- 4. Ask the coach for a status update, a plan, or anything else — it reads
71
- `ATHLETE.md` and pulls Garmin data as needed.
94
+ On a Kubernetes deployment, copy into the pod instead
95
+ (`kubectl cp ATHLETE.md <namespace>/<pod>:/home/node/.openclaw/workspace/ATHLETE.md -c gateway`).
96
+ 3. **Seeded by the Helm chart** (`sctg-claw`): put the content under `openclaw.workspaceFiles.ATHLETE.md` in
97
+ your **private** values. The init container copies it on first boot only (an existing file on the volume
98
+ is kept), so later edits are made in the workspace, not in the values. Do not put health data in a public
99
+ chart.
100
+
101
+ Tips: keep `ATHLETE.md` under about one page (it is sent to the LLM provider in every session, see
102
+ [Data and privacy](#data-and-privacy)); write measured values with how and when they were measured; put every
103
+ restriction in *Current constraints* as an instruction ("no ...", "at most ..."), with the date of the next
104
+ review; remove a constraint only when the person who set it lifts it. Also set `hrMax` and `lthr` in the plugin
105
+ configuration: the files are for the coach, the configuration is for the models.
106
+
107
+ ## Tools
108
+
109
+ | Tool | Purpose | Writes |
110
+ |---|---|---|
111
+ | `coach_daily_briefing` | Ceiling for the day, recovery, HRV, sleep, early warning, load, yesterday's sessions | local store |
112
+ | `coach_trends` | Weekly aggregates, load indicators, long-term health markers | local store |
113
+ | `coach_training_load` | Load model and projection of a plan | local store |
114
+ | `coach_activity_deep_dive` | One activity: laps, grade-adjusted pace, decoupling, heat | — |
115
+ | `coach_zones_and_paces` | Heart-rate zones, VDOT paces, race equivalences | — |
116
+ | `coach_strength_analysis` | One strength session: volume, estimated 1RM | — |
117
+ | `coach_journal_log` | Subjective check-in, symptoms, habits | local journal |
118
+ | `coach_journal_insights` | Associations between habits and the following night | — |
119
+ | `coach_briefing_charts` | Render the day's figures as PNG images (gauge, ceiling, signals, HRV, load, sleep) for an email | PNG files in `dataDir/charts` |
120
+ | `coach_workout_push` | Create a workout in Garmin Connect (preview, then explicit confirmation) | **Garmin Connect** |
121
+ | `coach_data_status` | Coverage, sync errors, anchors in use | local store |
122
+
123
+ Version 1's `coach_garmin_digest` is gone: replace it with `coach_daily_briefing` in existing automations.
72
124
 
73
125
  ## Configuration
74
126
 
75
- | Key | Type | Default | Description |
76
- | ----------- | ------ | ------- | ------------------------------------------------ |
77
- | `gcBinary` | string | `"gc"` | Path to the garmin-cli binary, if not on `PATH`. |
127
+ | Key | Default | Description |
128
+ |---|---|---|
129
+ | `gcBinary` | `gc` | Path to the garmin-cli binary. |
130
+ | `timezone` | Gateway timezone | IANA timezone of the athlete (day boundaries). |
131
+ | `dataDir` | `~/.openclaw/coach` | Local store directory. |
132
+ | `sex` | — | `male` or `female`: training-load coefficients. |
133
+ | `birthYear` | — | Only used to estimate maximum heart rate when none is measured. |
134
+ | `hrMax` | observed, else age formula | Measured maximum heart rate (bpm). Strongly recommended. |
135
+ | `hrRest` | 60-day median | Resting heart rate (bpm). |
136
+ | `lthr` | Garmin's estimate | Lactate-threshold heart rate (bpm). |
137
+ | `sleepNeedHours` | `8` | Used when Garmin reports no personal sleep need. |
138
+ | `hrZoneFloorsPctMax` | `[50,60,70,80,90]` | Lower bound of zones 1-5, in percent of maximum heart rate. |
139
+ | `historyDays` | `90` | Days of recovery history kept in sync. |
140
+ | `loadHistoryDays` | `180` | Days of activities used by the load model. |
141
+ | `retentionDays` | `730` | Older stored data is deleted. |
142
+ | `cacheMinutes` | `15` | Minimum delay between two fetches of recent days. |
143
+ | `language` | `en` | Language of the chart labels: `en` or `fr`. |
144
+ | `allowWorkoutPush` | `false` | Allow `coach_workout_push` to write to Garmin Connect. |
78
145
 
79
146
  ```json5
80
147
  {
81
148
  plugins: {
82
149
  entries: {
83
150
  coach: {
84
- config: { gcBinary: "/usr/local/bin/gc" },
151
+ config: { timezone: "Europe/Paris", sex: "male", birthYear: 1975, hrMax: 182 },
85
152
  },
86
153
  },
87
154
  },
88
155
  }
89
156
  ```
90
157
 
91
- ## Why so little custom code?
158
+ ## Charts for emails
159
+
160
+ `coach_briefing_charts` draws the day's figures as PNG images, from the same model results as
161
+ `coach_daily_briefing` (it computes nothing of its own):
162
+
163
+ | Chart id | Size (px) | Shows |
164
+ |---|---|---|
165
+ | `recovery_gauge` | 280 x 210 | Recovery index 0-100 on a three-band gauge |
166
+ | `ceiling` | 280 x 210 | Today's ceiling (rest / easy / moderate / hard) and the suggested load |
167
+ | `signals` | 600 x 246 | Last night's HRV, resting heart rate, respiration, skin temperature and SpO2 against your own usual range |
168
+ | `hrv_trend` | 600 x 260 | 28 nights of HRV, the 7-day trend and the personal normal range |
169
+ | `load_curve` | 600 x 350 | 8 weeks of fitness (CTL), fatigue (ATL) and form (TSB) |
170
+ | `sleep_nights` | 600 x 260 | 14 nights, stacked by stage, against the sleep need |
171
+
172
+ Images are rendered at twice their display size (sharp on high-density screens) with a bundled font
173
+ ([Inter](assets/fonts/LICENSE.txt), SIL OFL), so the output does not depend on the fonts of the host. A chart
174
+ without enough data is skipped with the reason. Parameters: `charts` (subset), `lang` (`en` or `fr`, default
175
+ the `language` setting), `theme` (`light` or `dark`, default `light`: an email keeps its own opaque card).
176
+ Files are written to `<dataDir>/charts/<date>/<id>.png` (owner-only permissions) and folders older than 14
177
+ days are deleted.
178
+
179
+ To put them **inside** an email, the mail tool must send them as inline images: with the `sctg-mail`
180
+ plugin's `send_email`, pass each chart as `inlineImages: [{ cid, path }]` and reference it in the HTML:
181
+
182
+ ```html
183
+ <table role="presentation" width="600" cellpadding="0" cellspacing="0"><tr>
184
+ <td width="300"><img src="cid:coach-recovery_gauge" width="280" alt="Recovery 51/100 (moderate)"></td>
185
+ <td width="300"><img src="cid:coach-ceiling" width="280" alt="Today's ceiling: easy"></td>
186
+ </tr></table>
187
+ <img src="cid:coach-hrv_trend" width="600" alt="HRV trend" style="display:block;max-width:100%;height:auto">
188
+ ```
189
+
190
+ The tool result already contains, for each chart, the `cid` (`coach-<id>`), the `path`, the display size and a
191
+ ready-made `alt` text. `send_email` only reads image files from `~/.openclaw/coach/charts` (configurable with
192
+ its `inlineImageRoots`), refuses anything that is not a real PNG or JPEG, and falls back to a text-only
193
+ rendering on channels that cannot carry inline images. Always write the `alt` text: many mail clients block
194
+ images until the reader allows them.
195
+
196
+ ## Daily briefing e-mail
197
+
198
+ The plugin computes and draws; an OpenClaw automation (cron job) asks the agent to assemble and send the
199
+ e-mail. Create it as an **isolated agent turn** with delivery disabled, because the mail leaves through
200
+ `send_email`, not through a chat channel:
201
+
202
+ ```bash
203
+ openclaw cron add --name "Briefing entrainement" --cron "0 10 * * *" --tz Europe/Paris \
204
+ --session isolated --no-deliver --message "$(cat briefing-prompt.txt)"
205
+ ```
206
+
207
+ (The exact flags depend on your OpenClaw version: check `openclaw cron add --help`. To change an existing
208
+ job, use `openclaw cron edit <id> --message ...`.) A job that runs in the *main* session does not receive the
209
+ plugin's tools reliably: use an isolated one.
210
+
211
+ The prompt below is the one used for the sample result. It is shown in English; the original is in French
212
+ and the e-mail is written in the language you ask for (`lang` of `coach_briefing_charts`, or the plugin's
213
+ `language` setting). Replace `<my address>` before using it.
214
+
215
+ <details>
216
+ <summary>The prompt</summary>
217
+
218
+ ```text
219
+ You are the coach. Send me the morning briefing by e-mail, as HTML with charts.
220
+
221
+ DATA
222
+ 1. Read ATHLETE.md (goals, constraints, injuries) and PLAN.md if it exists.
223
+ 2. Call coach_daily_briefing. Use only its fields: do not invent any figure, nor any physiological or
224
+ nutritional advice that is not in it. A null field means "not measured": do not mention it, or write "n/a".
225
+ 3. If the briefing is an error, or if a block has a status other than "ready" with no usable explanation,
226
+ send a short mail saying so, without charts, instead of making things up.
227
+ 4. Call coach_briefing_charts with lang "fr" and sync false. Use only the charts it returns (a "skipped"
228
+ chart has no file: do not reference it).
229
+
230
+ E-MAIL
231
+ One message, sent with send_email:
232
+ - to: <my address>
233
+ - subject: "Briefing du <weekday> <date> : <ceiling>" (rest = Repos, easy = Facile, moderate = Modéré,
234
+ hard = Intense)
235
+ - bodyHtml: the HTML described below
236
+ - bodyText: short version, no Markdown (ceiling, one sentence, the 3 key figures)
237
+ - inlineImages: [{cid, path}] for EVERY chart used, exactly as returned by the tool. Each cid must appear
238
+ in the HTML as src="cid:CID".
239
+
240
+ HTML STRUCTURE (inline CSS only, column of at most 600 px, system font, white background, no script, no
241
+ external image, tables for layout, horizontally centred, working on mobile and desktop)
242
+ 1. Banner with today's ceiling: white text on a coloured background (Repos #64748b, Facile #d97706,
243
+ Modéré #2563eb, Intense #16a34a), then ONE sentence of at most 20 words saying what to do today, taking
244
+ the constraints of ATHLETE.md and PLAN.md into account.
245
+ 2. A table of 2 cells of 300 px: recovery_gauge | ceiling (image width 280).
246
+ 3. "Why": at most 3 bullets, main cause first, with the figures and their personal reference
247
+ (e.g. "7-day HRV: 29 ms, your normal range: 31-34 ms").
248
+ 4. Image signals (width 600).
249
+ 5. Image hrv_trend, then sleep_nights (width 600).
250
+ 6. Image load_curve (width 600) on Sundays only.
251
+ 7. "To watch": only the warnings of the briefing (early warning, symptoms, sleep debt, load, missing
252
+ data). Factual, calm tone: no shouting capitals, no "imperative".
253
+ 8. A small 3-row table, in text (images are not displayed by every client):
254
+ - Sleep: duration / need, efficiency, bedtime and wake-up
255
+ - Yesterday's session: type, duration, average heart rate, load
256
+ - Load: CTL, ATL, TSB, change over 7 days
257
+ 9. Footer: "Tell me how you feel (fatigue, pain, motivation)" + "This message is a training aid, not
258
+ medical advice."
259
+
260
+ EACH IMAGE
261
+ <img src="cid:CID" width="W" alt="ALT" style="display:block;max-width:100%;height:auto">
262
+ with CID, W (displayWidth, or 280 in the 2-cell table) and ALT taken from the tool result.
263
+ Also keep the key figures in the text: images may be blocked by the mail client.
264
+
265
+ STYLE
266
+ Informal "you" (tutoiement), French, short sentences, no emoji, no list of generic advice, no figure that
267
+ does not come from the tools.
268
+
269
+ Reply only "envoyé" or the error met. If send_email returns degraded: true, say so.
270
+ ```
271
+
272
+ </details>
273
+
274
+ How the prompt is built, and why:
275
+
276
+ - **Data first, then charts.** The model reads the athlete's context, calls `coach_daily_briefing`, and only
277
+ then asks for charts. A failed or incomplete briefing produces a short text mail instead of invented numbers.
278
+ - **Nothing is computed by the model.** Every figure comes from a tool result; `null` means "not measured".
279
+ Charts are drawn from the same results (see "Charts for emails").
280
+ - **One `send_email` call** carries the HTML, a plain-text alternative and the `inlineImages` list. Each `cid`
281
+ returned by `coach_briefing_charts` must be referenced as `src="cid:CID"` in the HTML.
282
+ - **Layout rules** are explicit (table layout, inline CSS, 600 px column, centred) because mail clients ignore
283
+ most modern CSS. Ceiling colours match the charts. The key figures are repeated as text, since many clients
284
+ block images by default.
285
+ - **The load curve** is only added on Sundays to keep the daily mail short.
286
+
287
+ First run: execute the job once by hand and check the received mail. If `send_email` reports
288
+ `degraded: true`, the images were replaced by their alt text (see `skills/sctg-mail`).
289
+
290
+ ## Sample result
291
+
292
+ Sent by an automation using the prompt above, with `Mistral Medium 3.5` as the model.
293
+ A raw, anonymised copy of the message is in
294
+ [`sample-output-mistral-medium-3-5.eml`](sample-output-mistral-medium-3-5.eml).
295
+
296
+ <p align="center">
297
+ <img width="651" alt="Sample daily briefing e-mail" src="https://github.com/user-attachments/assets/22106b8d-3b31-483d-89d9-446044804811">
298
+ </p>
299
+
300
+ ## Data and privacy
301
+
302
+ The plugin keeps a single JSON file (`coach-store.json`, owner-only permissions) with nightly aggregates,
303
+ the activity list and the journal: no intraday series, no GPS tracks, no credentials. Delete the file to
304
+ erase everything. Tool results, the journal and `ATHLETE.md` are sent to whichever LLM provider the
305
+ Gateway uses: that is health data, so choose the provider accordingly (see `docs/SCIENCE.md`, section 10).
306
+
307
+ ## Development
308
+
309
+ ```bash
310
+ npm ci
311
+ npm run typecheck
312
+ npm test # 40 tests, synthetic data, no Garmin access needed
313
+ npm run build
314
+ ```
315
+
316
+ The models are pure functions in `src/science/`; `src/tools.ts` takes its `gc` runner and clock as
317
+ arguments, so tests run against a fake `gc`. When a formula, constant or threshold changes, bump the
318
+ model's `version` and update `docs/SCIENCE.md` in the same commit.
319
+
320
+ To check which fields your watch and account return, without exposing any value:
321
+
322
+ ```bash
323
+ gc daily yesterday --keys
324
+ ```
325
+
326
+ ## Publishing
92
327
 
93
- Most of what an "AI coach" needs is already solved by OpenClaw itself: full
94
- Garmin data access (the `garmin` skill), scheduling (Automations), and
95
- durable per-athlete context (workspace files). This plugin's job is the one
96
- thing those don't cover well on their own — collapsing several Garmin calls
97
- into one coaching-shaped digest — plus the coaching methodology and safety
98
- framing as a skill. See [`skills/coach/SKILL.md`](skills/coach/SKILL.md) for
99
- the actual coaching logic; it lives in prose, not code, because a coach's
100
- judgment calls (how to weigh a good VO2max trend against a still-healing
101
- fracture, for instance) belong in reasoning, not a rigid algorithm.
328
+ `.github/workflows/publish.yml` publishes to npm when a GitHub Release is published. It checks that
329
+ `package.json`'s version matches the release tag (`vX.Y.Z`).
102
330
 
103
331
  ## License
104
332
 
105
- MIT — see [LICENSE](LICENSE).
333
+ MIT — see [LICENSE](LICENSE). The logo files in `assets/` (`logo.ai`, `logo.svg`, `logo.png`) are
334
+ copyright SCTG Development and licensed under CC BY-SA 4.0, not MIT. The Inter fonts keep their own
335
+ licence (`assets/fonts/LICENSE.txt`).
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
@@ -0,0 +1,62 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 597.05 594.81">
3
+ <!--
4
+ Copyright (c) 2026 SCTG Development - Ronan Le Meillat
5
+ Licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
6
+ -->
7
+ <defs>
8
+ <style>
9
+ .cls-1 {
10
+ fill: #f3997f;
11
+ }
12
+
13
+ .cls-2 {
14
+ fill: #359ba3;
15
+ }
16
+
17
+ .cls-3 {
18
+ fill: #29385a;
19
+ }
20
+
21
+ .cls-4 {
22
+ fill: #181b34;
23
+ }
24
+
25
+ .cls-5 {
26
+ fill: #192e51;
27
+ }
28
+
29
+ .cls-6 {
30
+ fill: #61c1c3;
31
+ }
32
+
33
+ .cls-7 {
34
+ fill: #ec675b;
35
+ }
36
+
37
+ .cls-8 {
38
+ fill: #d3ebef;
39
+ }
40
+
41
+ .cls-9 {
42
+ fill: #feffff;
43
+ }
44
+ </style>
45
+ </defs>
46
+ <path class="cls-3" d="M417.83.19c-2.11.07-3.63.32-4.58.74-16.91,7.62-30.84,18.95-41.78,34-10.79,14.84-20.19,30.02-28.2,45.54-7.38,14.33-14.28,27.12-20.7,38.37-10.68-2.18-21.47-2.84-32.37-1.97-55.73,4.48-103.28,39.8-121.93,92.64l-23.32-24.67c-1.12-1.45-2.77-3.09-4.97-4.91-24.22-20.11-37.26-30.86-39.11-32.24-.91-.66-1.88-1.35-3.53-1.78-1.69-.45-3.44.47-4.04,2.12-6.2,17.12-9.47,33.11-11,50.03-2.09,23.1-1.6,45.92,1.49,68.46l4.48,27.3L.03,293.96c-.07-51.28,0-102.67.18-154.17.05-14.44.68-25.22,1.88-32.34,5.08-29.85,19.03-55.15,41.86-75.88C66.64,10.96,93.69.58,125.09.43,222.67-.04,320.25-.13,417.83.19Z"/>
47
+ <path class="cls-5" d="M596.94,294.19l-4.75-.07c-21.35-22.81-42.56-45.39-63.63-67.75-10.36-11-20.98-23.13-29.55-32.35-2.39-2.57-4.63-6.37-7.42-9.53-10.6-12.01-20.95-23.04-32.15-34.19-2.5.62-3.56,1.17-4.85,2.04l17.67-51.36-4.95-.02c-23.48.35-46.73.68-69.74.97-4.72.07-8.94.33-12.66.8-10.3,12.01-19.14,25.21-28.42,38.01l-15.17-16.29c-5.54-2.76-11.8-4.63-18.76-5.61,6.42-11.25,13.32-24.04,20.7-38.37,8-15.53,17.4-30.71,28.2-45.54,10.94-15.05,24.87-26.38,41.78-34,.94-.42,2.47-.66,4.58-.74,14.98.05,29.97.09,44.95.11,11.72.02,25.38.48,36.81,2.84,28.97,5.99,54.55,23.66,72.32,47.19,16.35,21.64,24.66,46.23,24.92,73.76.24,25.16.27,81.86.1,170.1Z"/>
48
+ <path class="cls-2" d="M467.32,100.95c-8.67,3.3-17.06,6.6-25.17,9.92-23.89,9.77-45.2,23.51-63.93,41.22-14.36,13.59-35.67,33.08-63.92,58.47-1.14,1.03-2.38,2.01-3.73,2.93-.39-1.66-.32-2.98.18-3.96,2.51-4.81,6.7-11.71,12.56-20.7,10.65-16.33,21.71-32.36,33.19-48.09,9.28-12.81,18.12-26.01,28.42-38.01,3.72-.47,7.93-.73,12.66-.8,23.01-.3,46.26-.62,69.74-.97Z"/>
49
+ <path class="cls-6" d="M454.6,152.34l-48.9,33.44-37.45,25.87-3.75,2.82c-17.72.27-35.44.38-53.17.32-.43,0-.71-.11-.85-.33-.15-.26-.12-.58.09-.96,1.35-.92,2.59-1.89,3.73-2.93,28.25-25.39,49.56-44.88,63.92-58.47,18.73-17.72,40.04-31.46,63.93-41.22,8.11-3.31,16.5-6.62,25.17-9.92l4.95.02-17.67,51.36Z"/>
50
+ <path class="cls-9" d="M322.58,118.84c6.96.98,13.22,2.85,18.76,5.61l-26.78,36.89c-37.71-7.73-75.46,10.7-96.99,41.37-16.92,24.09-22.71,55.72-11.91,83.53.39,1,.35,2.11-.12,3.08l-18.95,39.24h-9.42c-19.08-38.29-22.04-77.98-8.88-119.06,18.65-52.84,66.2-88.16,121.93-92.64,10.9-.87,21.69-.21,32.37,1.97Z"/>
51
+ <path class="cls-4" d="M356.51,140.74c-11.48,15.73-22.55,31.76-33.19,48.09-5.86,9-10.05,15.9-12.56,20.7-.51.98-.57,2.3-.18,3.96-.21.38-.23.7-.09.96.14.22.42.33.85.33,17.73.06,35.45-.05,53.17-.32l3.75-2.82c11.71,15.49,14.95,32.19,14.89,51.45-.23,8.75-2.06,17.81-5.49,27.19-5.27,14.37-13.32,26.8-24.12,37.29l9.68,47.5c2.16.06,4.01-.43,5.56-1.46,15.09-9.98,27.43-24.24,37-39.9-2.02-.27-3.53-1.02-4.53-2.24,3.59-5.86,7.42-11.77,10.26-17.73,11.79-24.77,15.85-51.2,12.18-79.3-2.07-17.18-8.07-33.4-17.99-48.67l48.9-33.44c1.29-.87,2.35-1.43,4.85-2.04,11.2,11.15,21.54,22.18,32.15,34.19,2.79,3.16,5.03,6.96,7.42,9.53,8.57,9.23,19.19,21.36,29.55,32.35,21.07,22.36,42.28,44.94,63.63,67.75l-67.45.32c-6.02,7.68-10.95,15.84-14.8,24.47l86.95.07c.05,50.14-.02,100.4-.2,150.8-.07,18.51-3.95,35.6-11.63,51.26-21.18,43.19-61.02,73.76-110.3,73.76-179.44-.04-289.8-.05-331.08-.02-19.17,0-32.35-.57-39.56-1.73C46.72,583.84.22,526.16.15,467.94c-.07-49.73-.1-99.48-.1-149.23l101.53.15c5.98,19.07,13.35,37.36,26.66,53.71.01-2.79-.26-4.5-.59-6.13-3.52-17.14-8.21-36.32-14.07-57.54l-25.29-15.09-4.48-27.3,41.77,29.14c4.76,23.22,9.39,44.05,13.9,62.51.47,1.94,1.17,3.6,2.12,5.01.52.79,1.4,1.26,2.34,1.28,20.52.27,41.31.34,62.37.21,2.83-.02,4.55-.74,5.15-2.17.63-1.5,1.35-3.29,2.17-5.36,6.48-16.64,12.03-30.99,17.08-44.13,9.13,50.11,16.84,105.36,24.24,157.76,2.79,19.66,5.55,39.33,8.28,59.01.82,5.95,2.24,9.8,8.28,10.67,8.22,1.16,10.35-5.86,11.12-12.79,11.5-102.74,19.36-173.9,26.63-255.87,0-.03.03-.05.06-.04.02,0,.04.02.04.04l10.08,78.25c4.85,34.91,9.57,69.51,14.16,103.82.57,4.23,2.78,6.7,6.66,7.39,2.77.5,5.15.34,7.12-.49,3.6-1.51,8.02-3.16,13.26-4.95,61.47-21,111.57-69.19,133.63-130.85h-46.48c-1.17,0-2.23.7-2.68,1.77-18.75,44.57-54.49,78.11-99.84,95.07l-7.55-51.25c-6.49-43.05-12.51-85.84-18.06-128.37-.47-3.58-1.31-6.79-2.53-9.64-1.38-3.23-3.69-5.1-6.94-5.6-6.59-1.03-10.89,4.18-11.56,10.35-7.15,64.87-15.89,146.45-26.23,244.75h0c-.18,1.09-.29,1.76-.33,1.99,0,.03-.03.03-.06,0-.02-.02-.03-.04-.04-.07-.84-6.14-1.64-12.28-2.25-18.48-7.2-62.26-14.54-109.69-26.33-189.54-.87-5.93-5.35-8.94-10.97-5.68-1.11.64-2.24,2.44-3.4,5.39-7.66,19.58-17.37,44.83-29.14,75.76h-50.57c-4.43-19.07-8.26-36.31-11.49-51.73-2.48-11.79-4.21-22.13-5.19-31.04-3.04-27.5.18-58.51,12.38-83.8l23.32,24.67c-13.16,41.08-10.19,80.77,8.88,119.06h9.42l18.95-39.24c.47-.96.51-2.08.12-3.08-10.8-27.82-5.01-59.44,11.91-83.53,21.53-30.67,59.28-49.1,96.99-41.37l26.78-36.89,15.17,16.29Z"/>
52
+ <path class="cls-7" d="M144.96,184.84c-12.19,25.29-15.41,56.31-12.38,83.8.98,8.91,2.71,19.25,5.19,31.04,3.23,15.42,7.06,32.66,11.49,51.73h50.57c11.77-30.93,21.48-56.18,29.14-75.76,1.16-2.95,2.29-4.75,3.4-5.39,5.62-3.26,10.1-.25,10.97,5.68,11.79,79.85,19.13,127.28,26.33,189.54l-14.75,5.28c-7.39-52.41-15.11-107.66-24.24-157.76-5.04,13.14-10.59,27.48-17.08,44.13-.81,2.07-1.53,3.86-2.17,5.36-.61,1.43-2.33,2.15-5.15,2.17-21.06.13-41.85.06-62.37-.21-.94-.02-1.81-.49-2.34-1.28-.94-1.4-1.65-3.07-2.12-5.01-4.51-18.45-9.14-39.29-13.9-62.51l-41.77-29.14c-3.08-22.55-3.58-45.37-1.49-68.46,1.53-16.93,4.8-32.91,11-50.03.59-1.64,2.34-2.56,4.04-2.12,1.65.43,2.62,1.12,3.53,1.78,1.85,1.39,14.89,12.13,39.11,32.24,2.2,1.82,3.85,3.46,4.97,4.91Z"/>
53
+ <path class="cls-8" d="M405.7,185.78c9.92,15.26,15.91,31.49,17.99,48.67l-40.55,28.65c.06-19.25-3.17-35.96-14.89-51.45l37.45-25.87Z"/>
54
+ <path class="cls-2" d="M445.3,298.05c1.02-4.43,3.24-11.97,4.33-18.48,3.12-18.57,2.58-37.53-1.64-56.9l48.2-31.1c8.13,34.02,9.25,72.37.28,106.48-17.22.02-34.32-.06-51.18,0Z"/>
55
+ <path class="cls-1" d="M337.68,370.55c-6.68-6.09-12.77-12.93-18.27-20.52l-10.08-78.25s-.03-.05-.06-.04c-.02,0-.04.02-.04.04-7.27,81.97-15.13,153.14-26.63,255.87-.78,6.94-2.9,13.95-11.12,12.79-6.04-.86-7.46-4.71-8.28-10.67-2.73-19.68-5.49-39.35-8.28-59.01l14.75-5.28c.62,6.2,1.41,12.34,2.25,18.48,0,.04.03.07.06.08.02,0,.03,0,.04-.02.04-.24.15-.9.33-1.98h0c10.33-98.31,19.08-179.9,26.23-244.76.68-6.16,4.97-11.38,11.56-10.35,3.25.5,5.56,2.37,6.94,5.6,1.22,2.85,2.07,6.07,2.53,9.64,5.55,42.53,11.57,85.32,18.06,128.37Z"/>
56
+ <path class="cls-9" d="M423.69,234.44c3.67,28.1-.39,54.53-12.18,79.3-2.84,5.95-6.67,11.87-10.26,17.73,1,1.22,2.51,1.97,4.53,2.24-9.57,15.66-21.91,29.92-37,39.9-1.55,1.03-3.4,1.52-5.56,1.46l-9.68-47.5c10.81-10.49,18.85-22.92,24.12-37.29,3.43-9.37,5.26-18.44,5.49-27.19l40.55-28.65Z"/>
57
+ <path class="cls-6" d="M88.28,293.81l25.29,15.09c5.86,21.22,10.56,40.4,14.07,57.54.33,1.62.6,3.33.59,6.13-13.31-16.35-20.68-34.64-26.66-53.71l-101.53-.15-.02-24.75,88.26-.15Z"/>
58
+ <path class="cls-2" d="M592.19,294.12l4.75.07-.05,24.79-86.95-.07c3.85-8.63,8.78-16.78,14.8-24.47l67.45-.32Z"/>
59
+ <path class="cls-7" d="M319.41,350.03c5.5,7.59,11.59,14.43,18.27,20.52l7.55,51.25c45.36-16.96,81.1-50.5,99.84-95.07.45-1.07,1.51-1.77,2.68-1.77h46.48c-22.06,61.66-72.15,109.85-133.63,130.85-5.24,1.79-9.66,3.44-13.26,4.95-1.98.83-4.35.99-7.12.49-3.87-.7-6.09-3.16-6.66-7.39-4.59-34.31-9.31-68.91-14.16-103.82Z"/>
60
+ <path class="cls-2" d="M178.39,402.4l33.87,17.75c.6,15.23,1.1,28.28,1.5,39.16.21,5.58.01,10.59-.6,15.03l-8.65-32.34c-16.96-8.37-32.98-18.57-48.05-30.58l9.24-8.11c.86-.75,1.97-1.16,3.11-1.13l9.58.22Z"/>
61
+ <path class="cls-6" d="M213.16,474.35c.62-4.45.82-9.46.6-15.03-.4-10.88-.9-23.93-1.5-39.16l-33.87-17.75,52.06.54,6.22,56.82-21.98,19.27-1.54-4.69Z"/>
62
+ </svg>
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Chart builders: pure functions from already computed model results to SVG.
3
+ * Nothing here computes physiology; every number drawn comes from the models.
4
+ * Logical sizes are in CSS pixels; the PNG is rendered at twice that for sharp screens.
5
+ */
6
+ import { type Lang } from "./labels.ts";
7
+ import { FONT, esc, type Theme } from "./svg.ts";
8
+ export type Chart = {
9
+ svg: string;
10
+ width: number;
11
+ height: number;
12
+ alt: string;
13
+ };
14
+ export type SignalRow = {
15
+ value: number | null;
16
+ baseline: number | null;
17
+ delta: number | null;
18
+ z: number | null;
19
+ };
20
+ export type SignalRows = Record<"hrv" | "restingHr" | "respiration" | "skinTemp" | "spo2", SignalRow>;
21
+ export type HrvPoint = {
22
+ date: string;
23
+ ms: number | null;
24
+ trendMs: number | null;
25
+ };
26
+ export type LoadPoint = {
27
+ date: string;
28
+ ctl: number;
29
+ atl: number;
30
+ tsb: number;
31
+ };
32
+ export type SleepPoint = {
33
+ date: string;
34
+ hours: number | null;
35
+ deepH: number | null;
36
+ lightH: number | null;
37
+ remH: number | null;
38
+ needH: number;
39
+ };
40
+ type Common = {
41
+ theme: Theme;
42
+ lang: Lang;
43
+ };
44
+ export declare function recoveryGauge(input: Common & {
45
+ score: number | null;
46
+ band: "low" | "moderate" | "high" | null;
47
+ }): Chart;
48
+ export declare function ceilingLadder(input: Common & {
49
+ ceiling: "rest" | "easy" | "moderate" | "hard";
50
+ suggestedLoad: {
51
+ min: number;
52
+ max: number;
53
+ } | null;
54
+ }): Chart;
55
+ export declare function signalsChart(input: Common & {
56
+ rows: SignalRows;
57
+ }): Chart;
58
+ export declare function hrvChart(input: Common & {
59
+ points: HrvPoint[];
60
+ range: {
61
+ lowMs: number;
62
+ highMs: number;
63
+ } | null;
64
+ }): Chart;
65
+ export declare function loadChart(input: Common & {
66
+ points: LoadPoint[];
67
+ }): Chart;
68
+ export declare function sleepChart(input: Common & {
69
+ nights: SleepPoint[];
70
+ }): Chart;
71
+ export { FONT, esc };