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

dsh-cc-loader

Shared parse layer for the dsh-cc ecosystem: parses Claude Code .claude/ (project + global) into a standalone .dsh intermediate representation (IR), classifying every component DIRECT/ADAPTED/UNSUPPORTED/BLOCKED and filtering unsupported ones out.

AI 分析

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

パッケージ
dsh-cc-loader
バージョン
0.1.0
最終更新
2026/08/16

インストール

検証済み 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 .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).