Releases: creativedswork/dscode
Releases · creativedswork/dscode
Release list
v0.2.5
v0.2.4
v0.2.3: feat: add context window usage bar with session-switch
refresh Sync & archive context-window-usage-bar + fix-context-window-refresh-on-session-switch. - Add ContextWindowBar component in header center with token breakdown bar - Add `context_window` WebSocket event with throttled broadcast (500ms) - Persist bar update on saved session load (fix missing refresh on switch) - 8 color-coded categories: system, user, thinking, file read/edit, terminal, browser, other - Hover tooltip with per-category breakdown, minimum 2px segment width - Responsive: hidden below 768px
v0.2.2
v0.2.1
feat(permissions): fuzzy pattern matching for tool permissions
Add fuzzy/glob pattern support to the permission system, allowing users
to grant broad patterns (e.g. "mcp__playcanvas__*", "git.*", "/src/*")
instead of only exact tool+args matches.
Core changes:
- `deriveFuzzyPattern()` — auto-derives glob from tool name structure
(MCP: mcp__<server>__*, non-MCP: tool name itself)
- `deriveFuzzyArgPattern()` — derives regex from args
(bash: first-word prefix, file tools: directory prefix)
- `describeFuzzyArgPattern()` — human-readable version for UI display
- Three-tier save in TUI/Web: exact / fuzzy tool / fuzzy args
- Session grants extended with glob matching (sessionGrantPatterns)
- All three permission levels (Allow/Always Allow/Save) support fuzzy
LLM supplement:
- `prefetchLlmSuggestions()` — async fire-and-forget LLM call to derive
smarter patterns (e.g. "git push.*" vs "git.*"), cached per session
- Results appear as [AI] options on subsequent prompts for same tool
Bug fixes:
- TUI sub-menu Escape now cancels sub-mode instead of denying
- Sub-menu arrow navigation debounced (120ms) to prevent double-jumps
- Web UI sub-menu pattern consistent with TUI (expand-on-click)
Files:
- src/permissions/fuzzy.ts, fuzzy-llm.ts (new)
- src/permissions/manager.ts (session grants + glob, persistRule override)
- src/ui/conversation.ts (sub-menu state machine, LLM option rendering)
- src/ui/tui-app.ts (three-tier save, session grant options)
- src/ui/web/web-backend.ts (fuzzy in protocol, LLM prefetch)
- src/ui/shared/types.ts (PermissionPrompt, ClientCommand, ServerEvent)
- web/src/components/* (sub-menu UI, LLM suggestions)