Skip to content

Rename Hand output structure to Gesture#1130

Merged
amyjko merged 1 commit into
mainfrom
rename-hand-output-to-gesture
May 16, 2026
Merged

Rename Hand output structure to Gesture#1130
amyjko merged 1 commit into
mainfrom
rename-hand-output-to-gesture

Conversation

@amyjko
Copy link
Copy Markdown
Collaborator

@amyjko amyjko commented May 16, 2026

Summary

  • The Hand input stream returns a structure with place, open, fingers, and per-finger booleans. Naming the structure Hand too collided with the stream's name in every locale (same 🖐️ emoji and, in many locales, the same text), which the locale verifier rejects as a global-name duplicate.
  • Renamed the output structure to Gesture (emoji ) so the stream and result type have distinct identities. Stream usage is unchanged: Hand() still works; the returned value now has type Gesture.

Changes

  • src/locale/OutputTexts.ts, src/locale/en-US.json: rename output.Handoutput.Gesture (new emoji ).
  • src/output/Hand.ts: update locale.output.Gesture references throughout createHandType, plus the shares.output.Gesture lookup in createHandStructure.
  • src/runtime/createDefaultShares.ts: rename OutputTypes.HandOutputTypes.Gesture.
  • 25 other locales updated via npm run locales-fix (removed Hand, added Gesture placeholder) and npm run locales-translate (filled in machine translations for the structure's names and field names).
  • ko-KR doc cleanup: Google Translate had wrapped @Hand in backticks, which broke the structure parser. Dropped the cross-reference sentence in en-US and stripped the artifact from ko-KR.

Test plan

  • `npm run check:now` — type-check passes
  • `npm run locales` — locale verifier passes (no "Name '🖐️' is already used" error, no parsing errors)
  • Open the Hand example and confirm the structure still renders correctly on stage
  • In the editor, type `hand: Hand()` then access `hand.place`, `hand.open`, etc. — autocomplete should still work

🤖 Generated with Claude Code

The Hand input stream returns a structure with place, open, fingers, and
per-finger booleans. Naming the structure "Hand" too collided with the
input stream's name in every locale (same emoji 🖐️ and, in many locales,
the same text), which the locale verifier rejects as a global-name
duplicate. Renaming the structure to "Gesture" (emoji ✋) keeps the
stream's name available while giving the result type its own identity.

- OutputTexts.ts, en-US.json: rename output.Hand → output.Gesture
- src/output/Hand.ts: update locale.output.Gesture references and the
  shares.output.Gesture lookup in createHandStructure.
- createDefaultShares.ts: rename OutputTypes.Hand → Gesture.
- 25 other locales: locales-fix removed Hand, locales-translate filled
  in Gesture names and field translations.
- ko-KR doc cleanup: Google Translate had wrapped @hand in backticks
  which broke the structure parser; dropped the cross-reference sentence
  in en-US and stripped the artifact from ko-KR.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@amyjko amyjko merged commit 5c19fc5 into main May 16, 2026
6 checks passed
@amyjko amyjko deleted the rename-hand-output-to-gesture branch May 16, 2026 06:34
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