Repository navigation
feat(mcp): descriptor/jasm operand 实参接 shadow token 新槽位 - #30
Merged
Merged
Conversation
resolveDescriptorArgument / resolveJasmBodyArgument 实参槽:值含 ${ 引用
形状才入槽展开(内嵌类 handle → 真名;操作数复合 → raw 文本),raw 实参
原样直通,既有契约零漂移。resolveMethodSlots 的 descriptor 实参与
edit_apply 的 member_descriptor 经描述符槽展开后参与成员核对并覆盖回
resolvedArgs;search 的 operand 过滤器经 JasmBody 槽展开后再子串匹配。
E2E:desc 内嵌 handle 的 class_query/xref_query 成功向 + unknown/malformed
错误向、edit_apply member_descriptor handle 提交与拒收、operand 过滤器
handle/raw 同一命中集。依赖 mjbase #109(Descriptor/JasmBody 槽)。
Descriptor/JasmBody 槽与中段裁定并入,工具面实参展开(描述符内嵌类 handle、操作数复合)依赖该基座。
mjbase main 72cc5d7:中段裁定(段外花括号 fail-loud)+ JasmBody 复合 操作数矩阵钉扎 + 基线修复(libjhasm 0.3.3 接线收尾、libjbc 0.4.22 沙箱 对齐)并入,#30 CI 改钉 main tip(原 5a2d9d5 为分支 ref,SHA 级取用受 年轻分支通告滞后影响)。
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.
内容
shadow token 收口新增的 Descriptor / JasmBody 槽在 MCP 工具面落地:
resolveDescriptorArgument/resolveJasmBodyArgument(slot 适配层):值含${引用形状才入槽展开(描述符内嵌类 handle → 真名;操作数复合 → raw 文本),raw 实参原样直通——既有契约零漂移,文法校验仍留在下游 canonical 错误面。resolveMethodSlots:descriptor 实参先经描述符槽展开,展开值参与成员 descHint 核对与输出(xref 族 / class_query method 面 / rename 族全量受益)。edit_apply:member_descriptor 展开后覆盖回 resolvedArgs,parseMutation 读展开值,handle 字面量不落下游。search:instructions 分面的 operand 过滤器经 JasmBody 槽展开后再子串匹配,handle 与 raw 过滤器命中集一致。测试
mjt_mcp_unittest 120 通过(1 环境跳过)。新增 E2E 4 组:desc 内嵌 handle 的 class_query / xref_query 成功向;unknown-handle / malformed-handle 工具边界拦截;edit_apply member_descriptor handle 提交与拒收两向;operand 过滤器 handle/raw 同一命中集。
依赖:luiox/mjbase#110(JasmBody 槽)+ #111(中段裁定),CI 定版已指到含两者的提交。