Luv061211/dsh-pet--packages-desktop-companion ↗★ 2

@luv1211/dsh-desktop-companion

为单个受限 Electron 桌面伴侣提供 Web profile 发现注册表。 适合开发桌面伴侣功能的用户,提供注册接口与校验,本身不含宠物逻辑。

套件
@luv1211/dsh-desktop-companion
相容性
待驗證
Harness 依賴範圍
^0.1.1-rc.2
Cordis 依賴範圍
^4.0.1-rc.4
版本
0.1.1-rc.3
授權
MIT
最近更新
2026年9月3日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@luv1211/dsh-desktop-companion

English | 中文

The Web-profile registry for one optional Electron companion renderer. It provides ctx.desktopCompanion; a feature calls register({ id, entryPath, width, height, capabilities }), and the local discovery route returns that descriptor until its disposer runs. Duplicate providers, external URLs, query-bearing paths, invalid dimensions, and invalid capability ranges fail during registration.

The generic capability object can advertise drag forwarding, pointer-interaction forwarding, and a bounded resize range. The registry has no pet knowledge and does not persist window state. The Electron shell validates the descriptor again before opening a transparent window, exposes only the capability-gated preload bridge, and owns placement persistence and display restoration.

Model Experience

None, as this registry only serves local desktop discovery data.

KV Cache effect

None.

Known Limitations and Deferred Work

  • One companion — the shell currently owns one constrained companion window; multiple concurrent desktop widgets require a separate composition decision.