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

@luv1211/dsh-desktop-companion

Web-profile discovery registry for one constrained Electron desktop companion 适合开发桌面伴侣功能的用户,提供注册接口与校验,本身不含宠物逻辑。

パッケージ
@luv1211/dsh-desktop-companion
互換性
未検証
Harness ピア範囲
^0.1.1-rc.2
Cordis ピア範囲
^4.0.1-rc.4
バージョン
0.1.1-rc.3
ライセンス
MIT
最終更新
2026/09/03

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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.