DeepSHPlugins
web-components 项目预览
GITHUB / COMMUNITY PROJECT

web-components

生态与开发TypeScript

DSH Web Component 适配器插件包:在浏览器侧暴露 webComponent 服务,把注册的插槽树挂载为原生 Custom Elements,管理插槽所有权、类型化描述符、属性/事件绑定与 DOM 出口。

2 Starsomdsh-dev 更新时间 2026-08-09
访问 GitHub 仓库
web-components 项目预览

项目介绍

中文

DSH Web Component 适配器插件包:在浏览器侧暴露 webComponent 服务,把注册的插槽树挂载为原生 Custom Elements,管理插槽所有权、类型化描述符、属性/事件绑定与 DOM 出口。

English

A DSH Web Component adapter plugin: exposes a webComponent service on the browser side, mounting registered slot trees as native Custom Elements — slot ownership, typed descriptors, property/event binding and DOM outlets.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
omdsh-dev
仓库
omdsh-dev/web-components
GitHub Stars
2
Forks
0
开发语言
TypeScript
许可证
未记录
最近推送
2026-08-09
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

51/ 100
维护活跃
77
文档与实用信息
50
生态关注度
14
安装便捷信号
100
项目声明信号
80

关注度尚低(2);标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin add github:omdsh-dev/web-components

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

@deepseek-ai/dsh-client-web-component

English | 中文

The DSH Web Component adapter as an installable profile bundle. It exposes a browser-side webComponent service that mounts registered slot trees as native Custom Elements, while keeping slot ownership, typed descriptors, property/event bindings, DOM outlets, and incarnation lifetimes behind the adapter boundary.

Repository shape

package.json              # plugin package and dsh.bundle/dshClient manifests
cordis.patch.yml          # browser opt-in profile layer
src/index.ts              # host loader entry
src/client/               # browser implementation
src/invariant.ts          # package invariant companion
lib/                      # generated host/client artifacts
legacy/                   # source-compatible host integration patch for older DSH snapshots
docs/                     # detailed protocol reference
tests/                    # unit, composition, and terminal-free browser tests

Bundle behavior

Installing the bundle adds a disabled web-component row. A Web profile enables it explicitly after the slot host and browser runtime are present:

- id: web-component
  disabled: false
  name: '@deepseek-ai/dsh-client-web-component'

The bundle layer only composes the plugin row. Slot host APIs, descriptor types, browser runtime, and the React renderer seam must come from the DSH version selected by the profile. The previous host-source integration patch is retained under legacy/ for migration of older DSH snapshots and is not part of the bundle package contract.

The client module never exposes a live React tree or raw DOM context to feature plugins. It accepts plain descriptors, resolves declared values from the incarnation context, assigns JavaScript properties rather than serialized attributes, and reports CustomEvent details through declared handlers.

Development

A full typecheck expects a sibling DSH checkout:

~/git/deepseek-harness
~/git/web-components
pnpm install
pnpm run typecheck
pnpm test
pnpm run build

The prepare script builds the host and browser entries directly from src/, so a Git install does not require sibling project references. pnpm 10 may ask the profile to allow the package's prepare script; only approve a pinned, trusted checkout.

Model Experience

This package contributes no model-visible text, tools, or prompt sections. It only projects browser slot state and Custom Element events; model-visible behavior remains owned by the DSH services rendered through the slots.

Known Limitations and Deferred Work

  • CustomElementRegistry definitions are page-lifetime resources and cannot be unregistered; the adapter rejects constructor replacement.
  • The bundle does not provide a DOM or React renderer; the profile must already mount the DSH slot host and browser runtime.
  • Older DSH snapshots require the compatibility patch in legacy/ because a bundle cannot add missing host source APIs; the current master also predates the Slots election/incarnation APIs, so full typecheck requires the compatible Slots change (for example d97d6a1e).

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目