8ee7ddac77
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.
System Prompt Attribution & License
This system prompt was created for K.G.Studio.
License
The system prompt is licensed under the Apache License, Version 2.0.
You may not use this prompt, in whole or in part, to file or assist in filing any patent application.
Full license text can be found in LICENSE under the root directory.
Attribution
Portions of the structure and organization of this prompt are derived from the Cline project, which is licensed under the Apache License, Version 2.0.
Original project: Cline Modifications: Substantial textual and functional changes have been made; only the general content structure remains.