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 适合开发宠物相关功能的用户,提供共享动画源与解析工具,属底层库。

패키지
@luv1211/dsh-pet-compat
호환성
미검증
Harness peer 범위
^0.1.1-rc.2
Cordis peer 범위
^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.