feat(store): 订阅即选「AI 自动调用 / 仅手动」+ 详情页使用方法#586
Open
papysans wants to merge 2 commits into
Open
Conversation
…tion For skill/command items the subscribe control becomes a split button: the main action subscribes with AI auto-invoke allowed, the dropdown offers "manual /name only" and lets a subscriber switch mode later (favorite upsert, never an accidental unsubscribe). Adds a "How to use" section (shown only after subscribing) that explains, per item type and current mode, how to use the resource in the Workspace / CSC / CS-IDE. The subscribe tooltip now describes the cross-terminal, install-free benefit instead of the distribute copy.
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.
背景
配合 web 后端订阅
invokeMode(XDfield/costrict-web#154)与 csc 落地(zgsm-sangfor/csc#86),知识中心订阅交互区分两种调用方式,并新增「使用方法」说明。改动
usage-section.tsx,仅订阅后可见):按 itemType + 当前 mode 给说明——/name命令 chip(在工作空间 / CSC / CS-IDE 使用)api.tsfavorite(itemId, invokeMode?)传可选 body;CapabilityItem.invokeMode类型;三个详情宿主(detail/home/manager)+ 移动端 toggle 透传 mode范围
模式开关仅 skill/command(它们是 prompt 型、走 AI 渐进式发现,
disable-model-invocation真实生效);subagent(Task 工具)/mcp(工具调用)/plugin/rule/template 不给开关,只给使用说明。验证
tsgotypecheck EXIT=0/namechip;下拉切 manual → 使用方法实时联动;未订阅时使用方法隐藏、订阅后出现;subagent 单按钮 + Task 文案;hover tooltip 正确。截图见提交附带的.playwright-mcp/。DropdownMenu.GroupLabel必须包<DropdownMenu.Group>(Kobalte 否则抛错→已订阅项开下拉崩错误边界)。依赖 / 部署