Bcy2020/dsh-cc-ecosystem--packages-cc-loader1

dsh-cc-loader

dsh-cc 生态系统的共享解析层:将 Claude Code 的项目及全局 .claude/ 资产解析为内存中的 DSH 中间表示(IR),并进行组件分类与权限过滤。

AI 分析

核心用途是作为 dsh-cc 生态插件的底层依赖,提供零磁盘写入的配置解析与权限规则过滤。适合开发或使用 dsh-cc 兼容插件的用户。

套件
dsh-cc-loader
版本
0.1.0
最近更新
2026年8月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 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 .claude files 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.json allow/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).