feat(qwencode): add mcp, commands, subagents, skills, and hooks adapters - #1904
Merged
Merged
Conversation
Closes #1888 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
@dyoshikawa Thank you! |
Merged
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.
Summary
Adds five missing feature adapters for the
qwencode(Qwen Code) target, which previously supported only rules/ignore/permissions:mcpServersin.qwen/settings.json(project) /~/.qwen/settings.json(global); stdio/SSE/HTTP transports, per-serverincludeTools/excludeTools, globalmcp.allowed/mcp.excluded. Modeled on the Gemini CLI MCP adapter..qwen/commands/*.md(project) /~/.qwen/commands/(global). Markdown withdescriptionfrontmatter — Qwen has deprecated the TOML command format, so this diverges from Gemini CLI and follows the Markdown command adapters instead..qwen/agents/*.md(project) /~/.qwen/agents/(global), Markdown + YAML frontmatter (name,description,model,approvalMode,tools,disallowedTools,maxTurns,color,mcpServers,hooks)..qwen/skills/<name>/SKILL.md(project) /~/.qwen/skills/(global) with supporting files; frontmattername,description,priority,paths,user-invocable,disable-model-invocation.hookskey in.qwen/settings.json. Qwen's event surface differs from Gemini's, so a Qwen-specificQWENCODE_HOOK_EVENTSconstant + canonical mapping were added rather than reusing the Gemini set; only canonicalHookEventvalues with a genuine Qwen equivalent are mapped.Also flips
qwencodetosupportsGlobal: trueand wires each adapter into its processor, gitignore registry, README /docs/reference/supported-tools.md/docs/reference/file-formats.md(with theskills/rulesync/mirror synced), and the Tool × Feature e2e happy-path matrices.Validation evidence (primary sources)
Test plan
pnpm cicheckis fully green: format, oxlint, typecheck, 6546 unit tests / 275 files, skill-docs sync, cspell, secretlint. New co-located unit tests for each of the five adapters plus Qwen Code cases added to thee2e-{mcp,commands,subagents,skills,hooks}matrices.Closes #1888