Commit Graph

6 Commits

Author SHA1 Message Date
Xiaohan-Tian 8ee7ddac77 feat: add track-aware tool targeting and new agent tools, lifted the requirement of selection a MIDI region to use AI Agent
Introduces a shared `toolTargeting.ts` module that resolves the active MIDI
region/track from the user's current selection, enabling tools to operate on
the correct target without requiring explicit track IDs in most cases.

Adds two new read-only tools — `list_all_tracks` and
`get_user_selected_music_range_and_track` — so the agent can inspect
available tracks and the current selection context before acting.

Also refactors `AddNotesTool` to auto-create MIDI regions when no region
exists, refactors `RemoveNotesTool`, `ReadMusicTool`, and
`ReadChordProgressionTool` to use the new targeting helpers, adds a
`buildToolHistoryContent` hook to `BaseTool` for cleaner chat history
display, and updates system prompts and tests throughout.
2026-06-04 19:29:37 -07:00
Xiaohan-Tian ad1e0c2aa8 feat: implemented confirmation mechanism for tool invokation 2026-06-03 17:05:42 -07:00
Xiaohan-Tian 6b0de74acd refactor: added UI-only tool result summary to all the tools; move summary generation logic to tool's own ts file 2026-06-02 23:13:25 -07:00
Xiaohan-Tian 4bdd0d5ea7 feat: minor UI adjustments 2026-06-02 22:31:29 -07:00
Xiaohan-Tian 5aacf01457 feat: add agent todo tool and inline todo snapshot cards in chat 2026-06-02 21:52:44 -07:00
Xiaohan-Tian 2bd6925f27 fix: switch to processing status when receiving response tokens from LLM 2026-05-14 21:37:06 -07:00