@sailsync/mcp 0.6.11 → 0.6.14

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 CHANGED
@@ -4,6 +4,8 @@ Connect your AI assistant to the sailing data your SailSync subscription can acc
4
4
 
5
5
  Requires Node.js 22+ and a SailSync account (Standard, Racer or Gold). Create a personal token at https://www.sailsync.io/integrations. Store it in your client's secret environment settings as `SAILSYNC_API_TOKEN`; do not paste it in chat, a URL or a shared configuration.
6
6
 
7
+ Production clients use `@sailsync/mcp@latest`. For staging previews, use `@sailsync/mcp@staging` **and** set `SAILSYNC_API_URL=https://dev.sailsync.io` with a separate staging token in your client’s secret settings. The package contains only the public bridge and contract, not the SailSync backend. Staging publication, backend production rollout and promotion of npm `latest` are separate release steps. Consult the developer portal and registry tags for current availability.
8
+
7
9
  Configure an MCP client that supports local stdio servers to run:
8
10
 
9
11
  ```json
@@ -11,7 +13,7 @@ Configure an MCP client that supports local stdio servers to run:
11
13
  "mcpServers": {
12
14
  "sailsync": {
13
15
  "command": "npx",
14
- "args": ["-y", "@sailsync/mcp@0.6.9"]
16
+ "args": ["-y", "@sailsync/mcp@latest"]
15
17
  }
16
18
  }
17
19
  }
@@ -49,23 +51,29 @@ Standard includes API/MCP access. Data-operation limits are 10/minute, 60/hour a
49
51
 
50
52
  `applySailSyncLegWind` requires `data:read`, `compute:write` and `sessions:write`. Explicitly confirm a supported cached preview, supply matching input/wind versions and reuse a stable idempotency key. Only the leg interval direction changes; speed and surrounding wind are preserved. Manual/legacy/measured directions are protected, unsupported or expired previews are refused. It never computes or recalculates implicitly. Automatic wind application remains disabled.
51
53
 
52
- ## Bounded wind comparison (0.6.9)
54
+ ## Bounded wind comparison
53
55
 
54
56
  `previewSailSyncWindLegs` accepts a `session_id` and 1–4 `legs` with the same race/leg/optional boat selections as single preview. Combined sources are capped at 24 boats. Missing previews share one bounded source read/computation; cached results are reused. Review any result through the ordinary explicit Apply flow. Applying one result invalidates the others; bulk Apply is not included. This requires the batch-capable Lambda and web deployment.
55
57
 
56
58
 
57
59
  ### Training wind proposals
58
60
 
59
- `previewSailSyncTrainingWind` accepts an owned finished `session_id` and 1–4 saved `lineup_ids` (numeric IDs from lineup scopes, without the `comment_` prefix). It returns a private, versioned proposal with a receipt; retries reuse unchanged results. It uses the same fleet-only v2 estimator as race-leg previews. Unclassified, interrupted, mixed, one-sided or sparse evidence can abstain. This first stage supports saved lineups only.
61
+ `previewSailSyncTrainingWind` accepts an owned finished `session_id` and 1–4 saved `lineup_ids` (numeric IDs from lineup scopes, without the `comment_` prefix). It returns a private, versioned proposal with a receipt; retries reuse unchanged results. Unclassified, interrupted, mixed, one-sided or sparse evidence can abstain. Classified training discovery uses `discover:true`. The prepared backend extension also accepts `practice_starts:true` (optional `after_start_id` cursor) for sailing after saved starts without a course or synthetic lineups. These additions require their corresponding backend deployment and compatible bridge; prepared schema/client availability does not imply production rollout.
62
+
63
+ Prepared 0.6.14 refinement: add `refinement_passes:3` to a practice-start or saved-lineup preview. This checks the whole selection (up to 32 windows), updates a working wind series in memory, and repeats the fits with fresh classification/raw masks. Do not send `after_start_id` or `discover:true` with refinement. Intermediate wind is never saved. Review `refinement`, original uncertainty and final evidence; repeated fits are not independent corroboration. Echo the same `refinement_passes` with the final cached page when using a compatible acceptance API. The classification-capable Lambda must be deployed before the matching Rails/assets. Race-leg Auto and discovered-window acceptance are unchanged. This build is prepared locally, not a claim of npm or production publication.
60
64
 
61
- No session wind is changed, no recalculation is requested, and automatic adoption is disabled. Training results have no race ID or effective Apply range and cannot be submitted to race-leg Apply. It requires both the training-capable dedicated Lambda and Rails deployment. This package version is prepared locally; publishing is a separate release step.
65
+ No session wind is changed, no recalculation is requested, and automatic adoption is disabled. Training results have no race ID or effective Apply range and cannot be submitted to race-leg Apply. It requires both the training-capable dedicated Lambda and Rails deployment. Use a compatible backend; staging previews do not imply production availability.
62
66
 
63
67
  ### Wind CSV inspection and remembered settings
64
68
 
65
69
  `inspectSailSyncWindCsv` returns column/timezone suggestions, their source, searchable timezone IDs, exact-schema account defaults and supported interpretation choices for CSV content up to 256 KiB. Stdio `inspectSailSyncWindFile` accepts one explicitly selected regular local CSV up to 20 MiB and sends multipart. Inspection does not import or apply wind. Hosted MCP cannot access a local file path.
66
70
 
67
- Use `getSailSyncWindImportDefaults` to read your defaults, optionally matching an ordered `headers` array. `saveSailSyncWindImportDefaults` / `clearSailSyncWindImportDefaults` require explicit user approval, `sessions:write` and a current `expected_revision`; on conflict read before retrying. Suggestions and matching headers never verify units, clock settings or wind reference. Keep import and Apply as separate explicit decisions. Version 0.6.11 is prepared locally pending web deployment and a separate npm release.
71
+ Use `getSailSyncWindImportDefaults` to read your defaults, optionally matching an ordered `headers` array. `saveSailSyncWindImportDefaults` / `clearSailSyncWindImportDefaults` require explicit user approval, `sessions:write` and a current `expected_revision`; on conflict read before retrying. Suggestions and matching headers never verify units, clock settings or wind reference. Keep import and Apply as separate explicit decisions. Production availability follows the matching backend release.
72
+
73
+ ### Direction-filtered comparisons
74
+
75
+ Use getSailSyncLineupStats with direction upwind/downwind/reach/mixed/unknown to filter saved lineups before paging. Repeat direction and expected_snapshot for continuation. Use getSailSyncAnalysis with the same direction choices to discover matching race legs, then getSailSyncRaceResults or getSailSyncRaceFacts with returned race id, leg_index and canonical snapshot. These are saved classifications relative to their analysis reference, not measured wind or inferred drill intent. Historical lineups without retained labels return unknown until recomputed. Requires the corresponding backend release. This embedded-contract client is available under the npm staging tag; promotion of latest is separate.
68
76
 
69
- ### Direction-filtered comparisons (prepared release)
77
+ ### Relative series (0.6.12)
70
78
 
71
- Use getSailSyncLineupStats with direction upwind/downwind/reach/mixed/unknown to filter saved lineups before paging. Repeat direction and expected_snapshot for continuation. Use getSailSyncAnalysis with the same direction choices to discover matching race legs, then getSailSyncRaceResults or getSailSyncRaceFacts with returned race id, leg_index and canonical snapshot. These are saved classifications relative to their analysis reference, not measured wind or inferred drill intent. Historical lineups without retained labels return unknown until recomputed. Requires the corresponding backend release. This embedded-contract client is prepared locally; npm publication is separate.
79
+ Version 0.6.12 adds `reference_boat_id` and `progress_m` to `prepareSailSyncLineupSeries`, retaining actual values alongside same-time boat-minus-reference comparisons and applied-file wind context. It requires the matching backend; check the registry tag and developer portal for release availability. Output sampling and trailing averaging are independent; progress keeps the original lineup start and is neither physical separation nor integrated VMG. Unsupported angle/tack/sensor evidence remains null with reasons. Choose exact ranges/boats/metrics and retain coverage, wind provenance and metric definitions when making coaching comparisons.