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 ピア範囲
^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-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.