@algorisys/tinyfly 0.110.0 → 0.112.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.
- package/README.md +9 -6
- package/docs/cricket.md +145 -2
- package/docs/editor-guide.md +1 -1
- package/docs/examples.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +22 -0
- package/docs/maps.md +2 -2
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +1104 -1097
- package/lib/addons/cricket-play-Zm5cghdV.js +4828 -0
- package/lib/addons/sports.js +24 -443
- package/lib/browser/tinyfly.iife.js +14 -14
- package/lib/browser/tinyfly.js +8811 -8630
- package/lib/browser/tinyfly.umd.js +14 -14
- package/lib/types/characters/capabilities.d.ts +5 -0
- package/lib/types/sports/cricket/cricket-action.d.ts +9 -1
- package/lib/types/sports/cricket/cricket-markings.d.ts +35 -0
- package/lib/types/sports/cricket/cricket-play.d.ts +21 -0
- package/lib/types/sports/cricket/cricket-types.d.ts +68 -1
- package/lib/types/sports/cricket/index.d.ts +4 -1
- package/llms-full.txt +191 -10
- package/llms.txt +30 -30
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +22 -0
- package/lib/addons/cricket-camera-tMg3Ag3F.js +0 -4221
package/skills/tinyfly/SKILL.md
CHANGED
|
@@ -171,6 +171,28 @@ from `CRICKET_ACTIONS`. Results and arcs are authored teaching examples, not
|
|
|
171
171
|
physics, automatic umpiring or a complete innings. Preserve exact contact keys
|
|
172
172
|
and merge the selected camera tracks when exporting. See `docs/cricket.md`,
|
|
173
173
|
`/examples/live-cricket-story` and `examples/headless-video/cricket-story.mjs`.
|
|
174
|
+
For composed plays use `cricketPlay(field, options)` / `cricketPlayClip(options)`.
|
|
175
|
+
Separate `delivery: { style, legality }`, `shot`, `finish`, `fielding`,
|
|
176
|
+
`context: { freeHit }` and `decision: { dismissal }`. Omitted/null dismissal
|
|
177
|
+
means no dismissal; never infer one from motion. Supported candidates are
|
|
178
|
+
caught/bowled/lbw/stumped/run-out; no-ball/free-hit protects the first four,
|
|
179
|
+
while run-out remains possible. Current illegal free hits carry forward, legal
|
|
180
|
+
ones consume context; Test rejects current free-hit context. Retain `play`,
|
|
181
|
+
`ruling`, `result`, contact keys and camera tracks in JSON. Keep innings/score/
|
|
182
|
+
strike/lesson state in the consuming app. `CRICKET_PLAY_COMPONENTS` discovers
|
|
183
|
+
choices; `CRICKET_PLAY_EXAMPLES` provides five examples. Unsupported physical
|
|
184
|
+
combinations throw; Wide currently only supports miss/keeper/no finish.
|
|
185
|
+
See docs/cricket.md for the combination table. Original sixteen presets remain.
|
|
186
|
+
Choose `markingProfile: 'icc-men' | 'icc-women' | 'mcc'` explicitly when
|
|
187
|
+
teaching field geography; default ICC men is independent of cast. These are
|
|
188
|
+
marking dimensions, not full competition profiles. ODI/T20 ICC areas are
|
|
189
|
+
wicket-centred capsules (27.43/23 m radii); Test/MCC have no restriction line.
|
|
190
|
+
ICC popping-crease marks extend 7.5 m on either side; MCC minimum is 1.83 m.
|
|
191
|
+
`cricketFieldingAreaContains(field, point)` returns true/false/null, with null
|
|
192
|
+
for absent metadata/areas. `cricketFieldingPositions`/`cricketFieldingOverlay`
|
|
193
|
+
provide owned static setup markers. Do not count null as outside or interpret
|
|
194
|
+
point classification as legal whole-player placement. Markers stay at setup
|
|
195
|
+
positions; append them to the scene and preserve them in exported JSON.
|
|
174
196
|
`CRICKET_FIELDING_POSITIONS` maps the eleven stock fielding IDs to public labels;
|
|
175
197
|
scene objects carry them in `name`. `fielder` is Extra cover. Keep eleven fielders,
|
|
176
198
|
two on-field batters and two umpires; nine batting teammates wait off-field.
|