Commit Graph

404 Commits

Author SHA1 Message Date
Xiaohan-Tian 3ba8f81c87 fix: preserve 7sus4 chord canonicalization for global chord MIDI import 2026-06-10 18:52:35 -07:00
Xiaohan-Tian 6bfce38c79 fix: support extended chord symbols in chord-to-MIDI import 2026-06-09 18:46:33 -07:00
Xiaohan-Tian 6b9fe85e95 fix: minor UI adjustments 2026-06-07 13:13:37 -07:00
Xiaohan-Tian 94befcdd95 fix: audio track undo buffer rehydration 2026-06-07 13:06:34 -07:00
Xiaohan-Tian a76a8abb94 fix: support numeric track_id arguments across track tools 2026-06-06 17:27:04 -07:00
Xiaohan-Tian 8323e6218c fix: use raw streaming chat completions and keep readable preview stacks
Switch OpenAI-compatible streaming from chat.completions.stream()
to chat.completions.create({ stream: true }) and track finish_reason
from streamed chunks directly.

This avoids the SDK's final chat-completion reconstruction path,
which could throw in preview builds while processing agent streams.

Also keep function/class names and sourcemaps in production builds
to make preview stack traces easier to read.

This issue can randomly happen when using `google/gemma-4-31b-it` model via OpenRouter.

Original error stacktrace:
```
index-Bh7OJFcp.js:807 Error processing stream: kn: Cannot read properties of undefined (reading 'type')
    at Bb.qJ (index-Bh7OJFcp.js:780:4436)Caused by: TypeError: Cannot read properties of undefined (reading 'type')
    at _J (index-Bh7OJFcp.js:780:1713)
    at index-Bh7OJFcp.js:780:416
    at Array.map (<anonymous>)
    at R6e (index-Bh7OJFcp.js:780:408)
    at z6e (index-Bh7OJFcp.js:785:258)
    at Bb.By (index-Bh7OJFcp.js:781:4928)
    at Bb._createChatCompletion (index-Bh7OJFcp.js:781:1059)
    at async Bb._runChatCompletion (index-Bh7OJFcp.js:780:6759)
```
2026-06-05 18:34:26 -07:00
Xiaohan-Tian 2e27becaca fix: minor errors during compilation 2026-06-05 18:09:31 -07:00
Xiaohan-Tian 748cd78e05 docs: updated readme files 2026-06-05 17:54:54 -07:00
Xiaohan-Tian 11cfcb7b17 docs: updated readme files 2026-06-05 17:52:43 -07:00
Xiaohan-Tian daef1db3c6 docs: updated readme files and help messages 2026-06-05 17:50:43 -07:00
Xiaohan-Tian c4f5d7b78e feat: added global key signature track, global chord progression track, global tempo(BPM) track, and global marker track related tools for AI Agent 2026-06-05 16:50:51 -07:00
Xiaohan-Tian 622dbbea83 feat: added tool write_chord_progression 2026-06-05 15:29:00 -07:00
Xiaohan-Tian 2e3f3623ea feat: added delete_track tool 2026-06-05 12:58:30 -07:00
Xiaohan-Tian 7d53a9cd82 feat: add instrument listing, track creation and update tools to AI agent 2026-06-04 23:14:15 -07:00
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 5c5a07b839 feat: separated efficient agent mode (lite mode) for small language models 2026-06-04 16:45:06 -07:00
Xiaohan-Tian a3a0f2f4ad feat: added conversation history feature 2026-06-03 22:56:05 -07:00
Xiaohan-Tian 5c6e1d69c5 fix: localize auto-compact threshold settings 2026-06-03 17:40:04 -07:00
Xiaohan-Tian 42fdcebd42 fix: use i18n strings for chatbox todo snapshot card 2026-06-03 17:09:54 -07:00
Xiaohan-Tian ad1e0c2aa8 feat: implemented confirmation mechanism for tool invokation 2026-06-03 17:05:42 -07:00
Xiaohan-Tian 414565ecc9 feat: sync translations 2026-06-02 23:44:05 -07:00
Xiaohan-Tian 528e4ca7f9 feat: persist global track visibility status and metronome status 2026-06-02 23:25:30 -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 c1d9f4c9fb feat: add manual/auto conversation compaction and preserve full export history 2026-06-01 19:55:59 -07:00
GitHub Actions Bot 936fb461e3 chore(release): 0.19.0-build.20260531
Generated release with automated versioning system.

Release type: minor

Build date: 2026-05-31 20:17:05 UTC

🤖 Generated with automated release workflow
2026-05-31 20:17:05 +00:00
Xiaohan-Tian 4187711160 Merge pull request #47 from KGAudioLab/feat/2026-05-30-i18n-v1
Feat/2026 05 30 i18n v1
2026-05-31 13:16:21 -07:00
Xiaohan-Tian e3c609fe38 fix: minor UI issues 2026-05-31 13:08:50 -07:00
Xiaohan-Tian a64ba428c8 chore(i18n): minor wording adjustments 2026-05-31 12:35:51 -07:00
Xiaohan-Tian f58d9a85b0 chore(i18n): unify Traditional Chinese wording across UI and docs 2026-05-31 12:29:10 -07:00
Xiaohan-Tian e1f8e69ce3 fix: few missed translations 2026-05-31 00:41:44 -07:00
Xiaohan-Tian 5d070a5643 fix: minor UI updates 2026-05-31 00:25:22 -07:00
Xiaohan-Tian 59dea65b0d feat: added translations for 4 tabs in Settings screen 2026-05-31 00:21:44 -07:00
Xiaohan-Tian 9fb206c456 docs: added Traditional Chinese and French README files 2026-05-31 00:00:32 -07:00
Xiaohan-Tian e263b1cc41 feat: added French support 2026-05-30 23:37:51 -07:00
Xiaohan-Tian 4c82f514d7 fixed: failed test cases 2026-05-30 23:10:59 -07:00
Xiaohan-Tian 9180a274c5 feat: added Traditional Chinese support 2026-05-30 23:06:17 -07:00
Xiaohan-Tian 4488fe8ecd feat: added i18n support for Open Project pop-up 2026-05-30 22:18:22 -07:00
Xiaohan-Tian b5546aa230 feat: added translation for Music Generator panel; provided K.G.Studio Musician Assistant a Chinese name 2026-05-30 20:29:10 -07:00
Xiaohan-Tian 957f6db950 feat: added i18n support; added Simplified Chinese support 2026-05-30 20:02:55 -07:00
GitHub Actions Bot c17d169dc6 chore(release): 0.18.0-build.20260529
Generated release with automated versioning system.

Release type: minor

Build date: 2026-05-29 22:03:39 UTC

🤖 Generated with automated release workflow
2026-05-29 22:03:39 +00:00
Xiaohan-Tian 227b1ed37f Merge pull request #46 from KGAudioLab/feat/2026-05-23-global-track
Feat/2026 05 23 global track
2026-05-29 15:02:35 -07:00
Xiaohan-Tian ee6cef10e5 fix: load onnx runtime mjs from assets folder 2026-05-29 15:01:11 -07:00
Xiaohan-Tian cd2938fe15 feat: implemented user-friendly chord guide editor; added real time chord guide info to the status bar 2026-05-29 12:51:58 -07:00
Xiaohan-Tian 72297cb731 refactor: chord guide system 2026-05-28 22:52:58 -07:00
Xiaohan-Tian ad17263b82 fix: minor UI update 2026-05-28 21:53:44 -07:00
Xiaohan-Tian 4d415a7f7d feat: simplify chord guide feature; updated help doc; added hotkeys doc 2026-05-28 21:03:02 -07:00
Xiaohan-Tian cd4d5847eb feat: allow user to drag-n-drop audio clip into audio tracks; added m4a support 2026-05-28 17:25:08 -07:00
Xiaohan-Tian c8af2ddcca docs: updated README.md 2026-05-27 22:33:35 -07:00