Luv061211/dsh-pet--packages-pet-compat ↗★ 2

@luv1211/dsh-pet-compat

浏览器安全的宠物包解析库:帧选择、通知、缓存标识与终端协议检测。 适合开发宠物相关功能的用户,提供共享动画源与解析工具,属底层库。

包名
@luv1211/dsh-pet-compat
兼容性
待验证
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-pet-compat

English | 中文

@luv1211/dsh-pet-compat is a browser-safe value library for DSH-owned pet packages that use Codex-compatible 192×208, 8×9 sprite atlases. It parses host-normalized manifest data, selects animation frames, applies the Codex single-slot notification lifetimes and replacement rule, derives cache keys from host-provided digests, and selects a terminal image protocol from host-provided terminal facts. Its exported normalized default tracks are the single animation source shared by the browser, Electron, and TUI consumers; FRAME_AT_SOURCE is used when the Electron overlay must run the selector inside an inline document.

Hosts own filesystem reads, image decoding, hashing, timers, and asynchronous request ordering. The library accepts only committed values, imports neither Node APIs nor Codex files, and does not create model-visible, session, or durable state.

Model Experience

None, as the browser-safe compatibility library parses and renders pet values without registering model-facing behavior.

KV Cache effect

None.

Known Limitations and Deferred Work

  • Host-owned I/O — callers must decode spritesheet dimensions and calculate the content digest before calling this package; the browser-safe entry never reads package directories or image bytes.