Repository navigation
fix(skills): 上下文预算与 use_skill 健壮性修复 - #144
Merged
Merged
Conversation
- 恢复「可用技能」1500 字符注入预算(100 条为第二上限);单条描述 200 字符截断、空描述取正文首段、超预算条目跳过不阻塞后续
- use_skill 返回统一边界、offset 续读;{{skill:}} 引用防环并区分未开启/不存在/超深度;新增 resources 只读读取与 TOC
- 技能配置变化自动重解析(JSON 暂时非法时保留上一份可用技能),.ai skill refresh 仍可强制;includeDefaults=false 时不再补入默认技能
- 工具结果统一转义 [/tool_result] 边界;修复 skill_list 分页、平台开关提示与命令帮助文案
- 单测覆盖摘要预算/描述兜底/use_skill 引用与续读/资源/自动重载/边界转义;版本 4.28.0 与 README/docs 同步
- use_skill 结果豁免「工具响应截断字数」的 head 截断,保证末尾续读提示/资源 TOC 不被吞掉;正文超 12000 时首屏仍输出资源 TOC - .ai skill refresh 解析失败保留上一份可用技能并明确提示;日志/文档改为“本次不采用该配置” - 资源路径规则与生成器对齐(生成器侧已同步修复);描述 warning 阈值对齐 200 字符 - 知识库描述兜底恢复“必须有 # 标题”的旧行为,避免无描述库的 libraryId/kbState 漂移 - 工具结果边界转义幂等;.ai skill list 名称单行化 - 联测覆盖 resources/includeDefaults 往返;单测 469 通过
error2913
force-pushed
the
feat/skills-progressive-disclosure
branch
from
October 20, 2026 13:22
4fe2492 to
9d4442e
Compare
- 删除 includeDefaults、resources 与目录导入相关 schema/UI/逻辑,生成器侧已回滚
- 保留:1500 字符摘要预算、描述 200 截断/空描述首段、use_skill offset 续读、
{{skill:}} 引用边界、refresh 失败保留旧技能、配置自动重载、[/tool_result] 边界转义
- 技能仍是 name/description/platform/content,无 MCP/后端耦合;无 MCP 时全部可用
- 更新 README/docs/changelog,删除资源/脚本测试与联测检查
error2913
force-pushed
the
feat/skills-progressive-disclosure
branch
from
October 20, 2026 13:26
9d4442e to
26a4a40
Compare
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.
变更(纯插件内,无 MCP/后端耦合)
use_skill统一边界与offset续读;{{skill:}}引用防环/区分未开启/不存在/超深度.ai skill refresh解析失败保留上一份可用技能[/tool_result]边界转义(幂等);.ai skill list名称单行化/页码收敛/跨平台提示#标题,避免 libraryId/kbState 漂移resources、includeDefaults、scripts、目录导入与生成器扩展;技能仍为name/description/platform/content,无 MCP 时全部正常关联
aiplugin4-config已回退相关扩展:5801a51最终复核
n- 在干净 worktree(仅提交树)执行:lint / tsc / 468 单测 / 246 联测 / build+smoke / package:check 全绿;最终 diff 无 resources/includeDefaults/scripts/MCP 代码n`n## 验证npm run test:unit:468 通过(提交树;当前工作区含其他并行改动时为 483)npm run test:integration:246 通过npm run lint/npx tsc --noEmitnpm run build && npm run smokenpm run package:check:包格式有效 4.28.0