@gehlich/calicomp-mcp 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/dist/index.js +8 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -828,18 +828,15 @@ function normalizeWireTemplateExercise(te) {
828
828
  function decryptMerge(raw, keyB642) {
829
829
  return {
830
830
  syncedAt: raw.syncedAt,
831
- exercises: raw.exercises,
832
- exerciseTranslations: raw.exerciseTranslations,
833
- templates: raw.templates,
834
- blocks: raw.blocks.map(normalizeWireBlock),
835
- templateExercises: raw.templateExercises.map(normalizeWireTemplateExercise),
836
- sessions: raw.sessions.map((s) => decryptSession(s, keyB642)),
837
- setLogs: raw.setLogs.map((sl) => decryptSetLog(sl, keyB642)),
838
- hrSamples: raw.hrSamples.map((hr) => decryptHrSample(hr, keyB642)),
839
- // `?? []` is what makes the optional wire key (SyncPullResponse.plannedWorkouts)
840
- // safe for a user with no planned workouts — see that field's own doc in types.ts.
831
+ exercises: raw.exercises ?? [],
832
+ exerciseTranslations: raw.exerciseTranslations ?? [],
833
+ templates: raw.templates ?? [],
834
+ blocks: (raw.blocks ?? []).map(normalizeWireBlock),
835
+ templateExercises: (raw.templateExercises ?? []).map(normalizeWireTemplateExercise),
836
+ sessions: (raw.sessions ?? []).map((s) => decryptSession(s, keyB642)),
837
+ setLogs: (raw.setLogs ?? []).map((sl) => decryptSetLog(sl, keyB642)),
838
+ hrSamples: (raw.hrSamples ?? []).map((hr) => decryptHrSample(hr, keyB642)),
841
839
  plannedWorkouts: (raw.plannedWorkouts ?? []).map((pw) => decryptPlannedWorkout(pw, keyB642)),
842
- // `?? []` — same reasoning as plannedWorkouts above, for a user with no synced settings.
843
840
  settings: (raw.settings ?? []).map((s) => decryptSetting(s, keyB642))
844
841
  };
845
842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gehlich/calicomp-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Local stdio MCP for CalisthenicsCompanion",
5
5
  "type": "module",
6
6
  "license": "MIT",