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 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案