| name | uma-show-project-event-version |
| description | Add or update UmaShow event rules in src/constant/events.ts and bump the project app version in release/app/package.json. Use when the user asks to add an event, modify event options or success/failure mappings, or update the packaged app version for this project. |
UmaShow Project Event And Version
Follow this workflow:
- Read
src/constant/events.ts and locate the nearest matching event block by story ID range or character/event group.
- Add or update the target entry inside
EXACT_EVENT_RULES.
- Keep the event shape as:
name: string
options: EventOptionGroup[]
- each selectable branch keyed by choice number
- For simple binary outcomes, use:
1: { desp: '成功', detail: '成功', type: 'correct' }
2: { desp: '失败', detail: '失败', type: 'wrong' }
- Preserve the file's existing structure and avoid broad rewrites, because this file may contain mojibake-like text in terminal output.
When updating the version number:
- Update
release/app/package.json.
- Treat
release/app/package.json as the source of truth unless the user explicitly asks to update other files too.
- Prefer a patch bump unless the user specifies another target version.
Validation checklist:
- Confirm the new story ID exists only once in
src/constant/events.ts.
- Confirm
release/app/package.json carries the requested app version.
- Avoid editing unrelated event rules.