fix: 发布 1.1.57,应用后挂上提示词并让 Messages 使用当前系统提示

官方其余模式与标准一样清拦截。演练授权按本机目录保留,卸载成功后才清。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-04 13:06:19 +08:00
1 parent 54351cff82
commit 2c07aafead
12 files changed
+694 -271

No files matched your search

+10 -8
View File
@@ -537,8 +537,8 @@ export function envAdaptStatus(root) {
const missingItems = tools.filter((t) => !t.path)
const found = foundItems.length
const skipped = !!cfg.envAdaptSkip
const configured = !!cfg.envAdaptConfigured
|| !!(cfg.toolkitDir && String(cfg.toolkitDir).trim())
/* 只有记下的路径算已配置。单独的 envAdaptConfigured 可能是空的自动初始化。 */
const savedPaths = !!(cfg.toolkitDir && String(cfg.toolkitDir).trim())
|| (cfg.binDirs && cfg.binDirs.length > 0)
|| TOOL_CATALOG.some((t) => cfg.tools && cfg.tools[t.id] && String(cfg.tools[t.id]).trim())
@@ -554,12 +554,14 @@ export function envAdaptStatus(root) {
ready = true
reason = 'skipped'
message = '你已确认暂不配置工具,可正常对话(扫描类技能可能不可用)。'
} else if (found >= 2 || (configured && found >= 1)) {
} else if (savedPaths) {
ready = true
reason = configured ? 'configured' : 'tools-found'
message = configured
? ('已配置工具路径,当前找到 ' + found + '/' + tools.length + ' 个。')
: ('本机已能找到 ' + found + ' 个工具,视为可用。')
reason = 'configured'
message = '已保存的工具路径还在,更新插件不会要求重配。当前找到 ' + found + '/' + tools.length + ' 个工具。'
} else if (found >= 2) {
ready = true
reason = 'tools-found'
message = '本机已能找到 ' + found + ' 个工具,视为可用。'
} else {
ready = false
reason = 'need-config'
@@ -575,7 +577,7 @@ export function envAdaptStatus(root) {
kaliSource: kaliInfo.source,
kaliDetail: kaliInfo.detail,
skipped,
configured,
configured: savedPaths,
found,
missing: missingItems.length,
total: tools.length,