Repository navigation
refactor: 移除交互式 xsql ai TUI 模块 - #86
Merged
Merged
Conversation
deliberate feature removal after TUI UX/reliability issues.
- 删除 cmd/xsql ai、internal/{ai,tui,js,session,export} 与相关测试
- 移除配置 ai: 段、XSQL_AI_* ENV 与 Web UI AI 设置/API
- 更新 docs/AGENTS/README;RFC 0009–0013 标记 Removed
- go mod tidy:移除 bubbletea/openai-go/goja/chroma 等仅 TUI 使用的依赖
Co-authored-by: x_zhuo <zx06@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #86 +/- ##
==========================================
+ Coverage 84.23% 84.36% +0.13%
==========================================
Files 74 63 -11
Lines 6970 5233 -1737
==========================================
- Hits 5871 4415 -1456
+ Misses 802 597 -205
+ Partials 297 221 -76
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: x_zhuo <zx06@users.noreply.github.com>
Co-authored-by: x_zhuo <zx06@users.noreply.github.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



背景
经真实 TUI 测试后,交互式
xsql ai在 UX 与可靠性上未达预期,决定有意移除该功能。本 PR 仅删除 AI TUI 及其专用配置/依赖,保留 query、schema、MCP、Web UI、只读策略与 error guidance 等能力。删除范围
cmd/xsql/ai.go、cmd/xsql/ai_test.gointernal/ai、internal/tui、internal/js、internal/session、internal/exporttests/e2e/ai_test.goai:schema、XSQL_AI_*、Resolve/CLI AI 合并、SaveAI/ WebPOST /api/v1/config/ai与config/test/aiopenai-go、bubbletea/lipgloss/bubbles/glamour、goja、chroma、runewidth等(经go mod tidy验证无其他引用)保留( intentionally kept )
xsql query/schema dump/profile/proxy/config/stats/specxsql mcp server及 MCP toolsxsql serve/xsql web与查询/Schema APIerror.details.hint指引(文案已去掉xsql ai)docs/ai.md中 MCP / AI-first CLI 约定;新增说明 TUI 已移除文档
docs/cli-spec.md、docs/config.md、docs/env.md、docs/architecture.md、docs/dev.md、README、AGENTS.md、agent skill0009–0013索引状态改为 Removed,文首注明历史记录验证
go test ./...go test -tags=e2e ./tests/e2e/...go build ./cmd/xsql;xsql --help无ai子命令;xsql spec无 ai 命令条目