Bcy2020/dsh-cc-ecosystem--packages-cc-loader ↗★ 1
dsh-cc-loader
dsh-cc 生态系统的共享解析层:将 Claude Code 的项目及全局 .claude/ 资产解析为内存中的 DSH 中间表示(IR),并进行组件分类与权限过滤。
AI 分析
核心用途是作为 dsh-cc 生态插件的底层依赖,提供零磁盘写入的配置解析与权限规则过滤。适合开发或使用 dsh-cc 兼容插件的用户。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗dsh-cc-loader
Shared parse layer for the dsh-cc ecosystem: parses Claude Code .claude/ assets (project + global ~/.claude) and Claude Code plugins (plugin.json / marketplace.json / plugin root) into a standalone in-memory IR.
- Memory IR, zero-write path: nothing is written to disk; the source of truth stays the
.claudefiles and plugin manifests themselves, so DSH stays in sync with Claude Code. - Component classification: every component is DIRECT / ADAPTED / UNSUPPORTED / BLOCKED; unsupported and blocked components never reach the adapters.
- Permission engine: CC
settings.jsonallow/deny/ask rule parsing and deny → ask → allow folding (bare names, command globs, path anchors, domains, params, skill/agent names). - Plugin discovery (M4):
parsePluginManifest,parseMarketplace,discoverPluginRoot(single entry point inventorying a plugin's skills/commands/agents/mcp/lsp/hooks),discoverMarketplace,pluginComponentName(plugin- -DSH-safe namespacing).
Consumed by dsh-cc-skills, dsh-cc-permissions, dsh-cc-agents, dsh-cc-hooks and dsh-cc-mcp.
Install
npm install dsh-cc-loader
Quick use
import { loadClaude } from 'dsh-cc-loader'
const ir = await loadClaude({ cwd: process.cwd(), pluginRoots: ['/path/to/my-plugin'] })
console.log(ir.report) // DIRECT/ADAPTED/UNSUPPORTED counts
console.log(ir.components.plugins) // per-plugin IR blocks
MIT — discovery logic derived from dsh-claude-compat (MIT, © biedongbin).