How to use dsh-scope
Scoped-context registration primitive (scope tags, scope-filtered event dispatch) for the DeepSeek Harness
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
Scoped-context registration primitive (scope tags, scope-filtered event dispatch) for the DeepSeek Harness
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add npm:@deepseek-ai/dsh-scope
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
scopeOf(ctx: Context): ScopeKey | undefinedThe tag a context (or any context derived from it) carries;undefined= context-global.isScopeCarrier(value)/carrierKeyOf(value)Runtime carrier marks, used by the dev invariants to assert every scope-filtered dispatch carries a carrier keyed to the subject its arguments name.ScopeLayerAggregate contract for one registry's complete global or exact-scope contribution;isEmpty()controls scoped-layer reclamation.- Service reachability comes from the scope minter — handing out
Scope.ctxalso hands out the minting plugin's injected services, so a broader minter cannot later be narrowed by the holder.
— source: plugin_wiki.readme_en (fallback readme_raw)
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule