Skip to content

docs: make examples v1.2.0-conformant (sport field, intensity, fix continuous-ball-screen) - #39

Merged
OliEder merged 2 commits into
mainfrom
docs/examples-v1.2.0
Aug 27, 2026
Merged

OliEder merged 2 commits into
mainfrom
docs/examples-v1.2.0

Conversation

@OliEder

@OliEder OliEder commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Brings the example set up to v1.2.0 best practice.

Changes

  • sport: "basketball" added to the four core examples (3-man-weave, based-on-references, pick-and-roll, transition-3v2) — the recommended v1.2.0 practice (sport becomes required in v2). Documents without sport stay valid.
  • quick-mode deliberately left sport-less — a living demonstration in the example set that back-compat (sport-absent = basketball) still validates.
  • Deprecated duration_ms → per-action intensity in the three examples that used it (movement_intensity for move/cut/dribble, ball_intensity for pass/shoot; screen/rebound untouched).
  • continuous-ball-screen.ocf.json: was an untracked file that never validated (its meta.id wasn't a UUID). Fixed the id, added sport + per-action intensity, and now tracked — so the entire examples set validates for the first time.

Test Plan

  • npm test — all 8 examples valid (incl. continuous-ball-screen), 15 invalid rejected, positions + sport tests pass
  • No duration_ms remains; every intensity-taking action carries intensity; quick-mode intentionally sport-less

🤖 Generated with Claude Code

Oliver-Marcus Eder and others added 2 commits August 28, 2026 00:13
…uous-ball-screen)

- Add explicit sport: basketball to the four core examples (best practice for
  v1.2.0; sport becomes required in v2). quick-mode deliberately stays sport-less
  as a living demonstration that sport-less documents remain valid (back-compat).
- continuous-ball-screen was an untracked file that never validated (its meta.id
  was not a UUID). Fixed the id, added sport + per-action intensity, and now
  track it — the whole examples set validates for the first time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@OliEder
OliEder merged commit 894c4b4 into main Aug 27, 2026
1 of 2 checks passed
@OliEder
OliEder deleted the docs/examples-v1.2.0 branch August 27, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant