仰望星辰工作室

feat: v1.2.1 新增 AI 助手、Docker 管理、插件系统与服务调优

F fqh 提交于 2026-11-14 20:08 · be2da01 ·父提交 496cf69
feat: v1.2.1 新增 AI 助手、Docker 管理、插件系统与服务调优

- 后端新增 internal/ai、internal/docker、internal/plugins、internal/semver,扩展数据库调优与 nginx 性能片段

- HTTP API 增加 ai/docker/plugins/services 处理,扩展站点、文件、鉴权、WAF 与配置

- 前端新增 AI/Docker/Plugins 视图、任务中心、路由守卫与通用组件,更新 go:embed 产物

- Makefile 版本升至 1.2.1,README 补充功能说明
109 个文件变更 +20154 -1381 fqh@fangqihang.cn
•Makefile +1 -1
•README.md +13 -6
•internal/ai/agent.go +452 -0
•internal/ai/agent_test.go +267 -0
•internal/ai/config.go +184 -0
•internal/ai/context.go +114 -0
•internal/ai/provider.go +293 -0
•internal/ai/registry.go +164 -0
•internal/ai/secrets.go +111 -0
•internal/ai/stream.go +49 -0
•internal/ai/terminal.go +205 -0
•internal/ai/tools_read.go +240 -0
•internal/ai/tools_write.go +228 -0
•internal/ai/types.go +129 -0
•internal/appstore/appstore_test.go +66 -0
•internal/appstore/catalog.go +19 -8
•internal/appstore/docker_test.go +51 -0
•internal/appstore/install.go +333 -73
•internal/appstore/service.go +13 -3
•internal/config/config.go +47 -0
•internal/config/config_test.go +38 -1
•internal/dbmanager/tuning.go +571 -0
•internal/dbmanager/tuning_test.go +83 -0
•internal/docker/bindings.go +128 -0
•internal/docker/containers.go +366 -0
•internal/docker/images.go +71 -0
•internal/docker/networks.go +61 -0
•internal/docker/parse.go +119 -0
•internal/docker/parse_test.go +40 -0
•internal/docker/service.go +173 -0
•internal/docker/settings.go +72 -0
•internal/docker/tokenize.go +229 -0
•internal/docker/tokenize_test.go +64 -0
•internal/docker/types.go +121 -0
•internal/docker/volumes.go +79 -0
•internal/files/service.go +21 -1
•internal/files/service_test.go +22 -0
•internal/httpapi/ai.go +402 -0
•internal/httpapi/apps.go +9 -1
•internal/httpapi/auth.go +70 -2
•internal/httpapi/docker.go +426 -0
•internal/httpapi/phpmyadmin.go +13 -1
•internal/httpapi/plugins.go +404 -0
•internal/httpapi/server.go +75 -1
•internal/httpapi/services.go +107 -0
•internal/httpapi/sites.go +4 -0
•internal/httpapi/system.go +74 -0
•internal/httpapi/waf.go +93 -3
•internal/plugins/archive.go +176 -0
•internal/plugins/catalog.go +258 -0
•internal/plugins/catalog_test.go +158 -0
•internal/plugins/crypto.go +62 -0
•internal/plugins/install.go +487 -0
•internal/plugins/manifest.go +236 -0
•internal/plugins/nginx.go +41 -0
•internal/plugins/plugins_test.go +217 -0
•internal/plugins/service.go +469 -0
•internal/plugins/systemd.go +185 -0
•internal/plugins/tasks.go +192 -0
•internal/semver/semver.go +77 -0
•internal/site/exec.go +57 -11
•internal/site/exec_test.go +90 -0
•internal/site/site.go +85 -6
•internal/store/ai.go +361 -0
•internal/store/models.go +9 -0
•internal/store/plugins.go +275 -0
•internal/store/store.go +86 -1
•internal/waf/waf.go +3 -0
•internal/web/dist/assets/index-BgMuoCle.css +32 -0
•internal/web/dist/assets/index-Blg4ieaJ.js +0 -47
•internal/web/dist/assets/index-BuJX-yPp.js +91 -0
•internal/web/dist/assets/index-BwhdV73r.css +0 -32
•internal/web/dist/index.html +2 -2
•internal/webserver/manager.go +16 -4
•internal/webserver/performance.go +389 -0
•internal/webserver/performance_test.go +131 -0
•main.go +11 -1
•web/src/App.vue +456 -142
•web/src/ai.ts +104 -0
•web/src/api.ts +64 -8
•web/src/components/ConfirmDialog.vue +163 -0
•web/src/components/DirPicker.vue +189 -0
•web/src/components/ServicePanel.vue +771 -0
•web/src/components/SiteCreateModal.vue +69 -101
•web/src/components/TaskCenter.vue +133 -0
•web/src/components/ai/ActionCard.vue +86 -0
•web/src/components/ai/MarkdownText.vue +65 -0
•web/src/components/docker/BindDomainModal.vue +172 -0
•web/src/components/docker/ContainerLogsModal.vue +62 -0
•web/src/components/docker/DockerCreateModal.vue +129 -0
•web/src/guard.ts +37 -0
•web/src/router.ts +111 -0
•web/src/styles.css +136 -2
•web/src/tasks.ts +68 -0
•web/src/types.ts +199 -0
•web/src/views/AI.vue +801 -0
•web/src/views/Apps.vue +49 -4
•web/src/views/Dashboard.vue +288 -53
•web/src/views/Database.vue +314 -79
•web/src/views/Docker.vue +776 -0
•web/src/views/Files.vue +888 -280
•web/src/views/Login.vue +33 -1
•web/src/views/Plugins.vue +682 -0
•web/src/views/Security.vue +193 -19
•web/src/views/Settings.vue +194 -12
•web/src/views/SiteDetail.vue +858 -335
•web/src/views/Sites.vue +300 -81
•web/src/views/Terminal.vue +367 -5
•web/src/views/Waf.vue +287 -54
变更内容