Repository navigation
docs(zcode): note ZCode 3.19.0 hook script trust and workspace plugins.dirs - #3910
Merged
Merged
Conversation
…s.dirs ZCode 3.19.0 ties the trust of a workspace hook to the script it runs (when that script is inside the workspace) and blocks the hook when the script is missing. It also reads plugins.dirs from the project .zcode/config.json, so a project can load a generated zcode-plugin bundle after per-workspace trust. Refs #3527 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
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.
Refs #3527
Summary
Covers the two docs-only items from the 2026-11-19 upstream re-check (ZCode 3.19.0). No code change: rulesync's output stays the same.
docs/reference/file-formats.md): the ZCode hooks note now says that since 3.19.0 the trust also covers the script a workspace hook runs, when that script is inside the workspace (the first word of the command, or the first argument after an interpreter). Editing the script asks for trust again, and a hook whose script is missing is blocked withworkspace_hook_script_unavailable.docs/guide/plugin-packaging.md, ZCode section): since 3.19.0 a project can load a generatedzcode-pluginbundle throughplugins.dirsin.zcode/config.json. Relative paths resolve against the project root, and each user must trust the plugin for the workspace (a changed declaration asks again). Rulesync does not writeplugins.dirs. Thezcodewriters patch onlymcp/hooks, so an existingpluginskey is kept.Fact-checked against the 3.19.0 Linux AppImage (
resources/glm/zcode.cjs, extracted withunsquashfswithout running it; build listed in latest.yml). The bundle has theworkspace_hook_script_unavailablereason code and ascriptEntryon hook trust records. It readssources.plugins.dirs.workspace, and its workspace plugin trust records carry adeclarationDigest(workspace_plugin_declaration_changed).Remaining in #3527
config.jsonpermissionblock (modeincludingguarded,allowedTools,disallowedTools,autoApproveHighRisk,allowMediumRiskInAuto). Still a maintainer design decision.plugins.dirs(a design decision, not done here).Test notes
pnpm cicheckpasses (docs-content regenerated).🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4