From 6e0e081f238a79451438170524fcc173937da526 Mon Sep 17 00:00:00 2001 From: chiguyong Date: Sun, 14 Jun 2026 16:16:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gap=20closure=20sprint=20=E2=80=94=20da?= =?UTF-8?q?rk=20theme,=20@-mention,=20LocalComputerUse,=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P0: U4 UsageStore + U5 CascadeStateStore independent test files (57 tests) P1: Dark theme — tokens.css [data-theme="dark"] + theme.ts Pinia store + TopNav toggle button + App.vue dynamic Ant Design theme P1: @-mention — MentionDropdown.vue + /skills/mention-suggest API + ChatInput integration with @ detection P2: LocalComputerUseSession — pyautogui + screencapture (replaces Docker stub) P2: Integration tests for gap closure (12 tests) Fix: create_cascade_state_store() now passes session_ttl to InMemory fallback --- src/agentkit/quality/cascade_state_store.py | 3 +- src/agentkit/server/frontend/src/App.vue | 6 +- .../src/components/chat/ChatInput.vue | 125 +++++++- .../src/components/chat/MentionDropdown.vue | 168 +++++++++++ .../frontend/src/components/layout/TopNav.vue | 50 +++- .../server/frontend/src/stores/theme.ts | 143 +++++++++ .../server/frontend/src/styles/tokens.css | 182 ++++++++---- src/agentkit/server/routes/skills.py | 24 ++ src/agentkit/tools/computer_use_session.py | 126 +++++++- tests/integration/test_gap_closure.py | 163 +++++++++++ tests/unit/llm/test_usage_store.py | 229 +++++++++++++++ .../unit/quality/test_cascade_state_store.py | 274 ++++++++++++++++++ 12 files changed, 1424 insertions(+), 69 deletions(-) create mode 100644 src/agentkit/server/frontend/src/components/chat/MentionDropdown.vue create mode 100644 src/agentkit/server/frontend/src/stores/theme.ts create mode 100644 tests/integration/test_gap_closure.py create mode 100644 tests/unit/llm/test_usage_store.py create mode 100644 tests/unit/quality/test_cascade_state_store.py diff --git a/src/agentkit/quality/cascade_state_store.py b/src/agentkit/quality/cascade_state_store.py index b4a2e70..5e3e8b3 100644 --- a/src/agentkit/quality/cascade_state_store.py +++ b/src/agentkit/quality/cascade_state_store.py @@ -241,5 +241,4 @@ def create_cascade_state_store( return RedisCascadeStateStore(redis_url=redis_url, session_ttl=session_ttl) except ImportError: logger.warning("redis package not available, falling back to in-memory cascade store") - return InMemoryCascadeStateStore() - return InMemoryCascadeStateStore() + return InMemoryCascadeStateStore(session_ttl=session_ttl) diff --git a/src/agentkit/server/frontend/src/App.vue b/src/agentkit/server/frontend/src/App.vue index c5ca2c2..bf3365d 100644 --- a/src/agentkit/server/frontend/src/App.vue +++ b/src/agentkit/server/frontend/src/App.vue @@ -1,5 +1,5 @@