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

@luv1211/dsh-pet-compat

Browser-safe Codex-compatible pet package parsing, frame selection, notifications, cache identity, and terminal protocol detection 适合开发宠物相关功能的用户,提供共享动画源与解析工具,属底层库。

Package
@luv1211/dsh-pet-compat
Compatibility
Unverified
Harness peer range
^0.1.1-rc.2
Cordis peer range
^4.0.1-rc.4
Version
0.1.1-rc.3
License
MIT
Last updated
Sep 3, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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.