Skip to content

Conversation

@tomoemon
Copy link
Owner

@tomoemon tomoemon commented Jun 18, 2025

概要

  • Automatonクラスの責務を明確化し、拡張可能な設計に変更
    • Automaton クラス自体のメソッドは状態変更(入力系)に特化し、参照系のメソッドはすべて extension として外出しした
  • getter系関数を分離し、ユーザーが独自の拡張を追加できるようにした
  • それに伴い既存コードとの後方互換性を一部破壊
    • Automaton クラスの getter メソッドはすべて get〜 関数に変更(pendingWord → getPendingWord)

テスト計画

  • 既存のテストがすべてパスすることを確認
  • 各exampleが正常に動作することを確認
  • with()メソッドによる拡張が正しく動作することを確認

🤖 Generated with Claude Code

tomoemon and others added 2 commits June 18, 2025 22:48
- Automatonの内部状態をAutomatonStateインターフェースとして分離
- getter系関数をautomatonGetters.tsにグローバル関数として分離
- 動的な機能拡張のためのwith()メソッドを実装
- 全てのexampleを新しいAPIに移行
- ドキュメントを更新(ADR.mdに設計決定を記録)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@tomoemon tomoemon merged commit 91132cb into main Jun 18, 2025
1 check passed
@tomoemon tomoemon deleted the split-automaton-view branch June 18, 2025 14:06
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