feat: update vite config for SDL integration#544
Open
kingboung wants to merge 11 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…latform Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # packages/app-ai-native/src/pages/root-layout.tsx
skill/builtin 为构建期下载生成的模块(见 bundled-skills/),仓库默认不存在, tsgo 无法解析会报 TS2307。为其 import 加 @ts-ignore,使 turbo typecheck 通过。 Co-Authored-By: Claude <noreply@anthropic.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.
概述
app-ai-native 接入 SDL(security 平台)跨应用跳转与 cloud 代理配置。
变更内容
vite 代理(SDL 集成)
https://${cloudHost}[:${port}](适配 SSL 部署,端口可选)${cloudApiPrefix}${path}(简化原正则替换)跨应用 SSO 跳转
packages/app-ai-native/src/lib/security-jump.ts:buildSecurityUrl()→${SECURITY_FRONTEND_URL}/?from_opencode=1,跳转后由 security-frontend 检测from_opencode自动发起 Casdoor OAuth(同域同 Casdoor 实例,SSO 自动认证)packages/app-ai-native/src/lib/env.ts:新增SECURITY_FRONTEND_URL(默认/llm_sast)🔄 更新记录(2026-06-12)
f5bf6df):合入主线 47 个提交;解root-layout.tsximport 冲突(保留实际用到的Gauge/Shield,删未用的Sun/Moon);dev 将 env 重构到src/lib/env.ts(getter 形式),security-jump.ts已自动适配新位置,from_opencode跳转 /SECURITY_FRONTEND_URL/ vite https 代理均完好e8fc53bcc):@costrict/cs引用构建期生成的skill/builtin(仓库默认不存在),加// @ts-ignore抑制 TS2307;全 14 包 typecheck 通过,pre-push 钩子恢复正常联动仓库
from_opencode发起 SSO🤖 Generated with Claude Code