Skip to content

Conversation

@takaokouji
Copy link

Implementation of koshien.set_message block support.

Related to smalruby/smalruby3-gui#506

- Added setMessage block definition in getInfo()
- Implemented setMessage in KoshienBlocks and KoshienClient
- Followed moveTo implementation pattern

Issue: smalruby/smalruby3-gui#506
Co-Authored-By: Gemini <[email protected]>
- Converted imports/exports to require/module.exports to support tap unit tests
- Updated extension-manager.js to match the new export format
- Added comprehensive unit tests in test/unit/extension_koshien.js
- Inlined blockIconURI as Base64 to avoid PNG require error in Node.js/unit tests
- Fixed formatMessage initialization and mock to support setup() method
- Verified with npm run tap:unit test/unit/extension_koshien.js

🤖 Generated with [Gemini Code](https://gemini.google.com/code)
@takaokouji takaokouji merged commit bcb0cce into develop Jan 9, 2026
1 check passed
@takaokouji takaokouji deleted the fix/issue-506-koshien-set-message branch January 9, 2026 14: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.

2 participants