feat: add ZCode (Zhipu AI) platform support#330
Open
CNHLAIA wants to merge 2 commits into
Open
Conversation
411a1f5 to
c4e06fa
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.
Closes #329
Note: The platform count increases by 2 (14 → 16) because the previous Reasonix PR (#301) did not update the platform count or trellis-meta references; this PR brings both Reasonix and ZCode docs in sync.
Summary
Add ZCode (Zhipu AI's coding tool) as the 16th supported platform. ZCode is a class-2 (pull-based) platform — it uses agent files with context-reading prelude instructions instead of hooks.
Changes
Code (8 files)
packages/cli/src/types/ai-tools.tszcodeto union types andAI_TOOLSregistrypackages/cli/src/configurators/zcode.tspackages/cli/src/configurators/index.tsPLATFORM_FUNCTIONSpackages/cli/src/cli/index.ts--zcodeCLI flagpackages/cli/src/commands/init.tszcodetoInitOptionspackages/cli/src/templates/zcode/index.tsgetAllAgents()packages/cli/src/templates/zcode/agents/trellis-implement.mdpackages/cli/src/templates/zcode/agents/trellis-check.mdDocumentation (12 files)
README.mdREADME_CN.mdtrellis-meta/references/platform-files/platform-map.mdtrellis-meta/references/platform-files/overview.md.reasonix/.zcode/to directory listtrellis-meta/references/platform-files/agents.mdtrellis-meta/references/platform-files/skills-and-commands.mdtrellis-meta/references/platform-files/hooks-and-settings.mdtrellis-meta/references/local-architecture/overview.mdtrellis-meta/references/local-architecture/generated-files.mdtrellis-meta/references/customize-local/overview.md.zcode/to directory liststrellis-meta/references/customize-local/change-agents.mdtrellis-meta/references/customize-local/change-skills-or-commands.mdIntegration Pattern
ZCode follows the same class-2 pattern as OpenCode, Gemini CLI, and Reasonix:
resolveAllAsSkillsNeutralfor shared.agents/skills/(byte-identical across platforms)applyPullBasedPreludeMarkdownfor agent context loading.agents/skills/,.zcode/commands/trellis/,.zcode/cli/agents/Validation
pnpm typecheck— passedpnpm lint— passedpnpm test— 1023 passed (27 pre-existing failures unrelated to this PR)