Skip to content

Releases

Pebble Companion Chat 0.7.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 24 Nov 10:38
  • Added an optional, standalone Live2D / 2D Puppet pipeline (backend/Inochi2D + WebGL2 stage) so users can decompose single portraits or same-pose expression/outfit packs locally with See-through (LayerDiff3D + Marigold) and animate them in real time without altering the core backend runtime:
    • Isolated dependencies via backend/Inochi2D/requirements.txt (running inside backend/Inochi2D/.venv, PEBBLE_INOCHI_PYTHON, or a user-selected inochiPythonPath in app.json) so core features work with zero PyTorch installation when Live2D is unused.
    • Added cross-GPU and cross-platform execution in backend/Inochi2D/run_decompose.py supporting ROCm (Windows/Linux with chunked math SDPA), NVIDIA CUDA (Ampere+ bf16, Turing/Pascal fp16), Apple Silicon MPS, and CPU (fp32) without editing upstream see-through files, plus --offload auto in backend/Inochi2D/service.py to keep group_offload enabled below 20 GB VRAM (fixing 12 GB VRAM stalls) and cleanup of temporary _work files after completion.
    • Automated anatomical post-processing in backend/Inochi2D/puppet_builder.py and backend/Inochi2D/expression_extractor.py: automatic headTilt alignment, neck/topwear V-neck collar occlusion separation (_fix_neck_topwear_occlusion), generated bilateral closed-eye blinkLayers, pixel-diff expression overlay splitting with bilingual (zh/en) filename normalization (_resolve_emotion_meta), occluded outer-eye/brow blind-spot completion (--no_complete_eye opt-out), and incremental outfit merging (add_outfit_from_psd) under outfits/<outfit_id>/.
    • Built a WebGL2 interactive 2D puppet stage and non-modal floating editor (frontendV2/src/lib/puppet2d.ts, PuppetStage.vue, PuppetEditorPopup.vue, stores/inochi2d.ts, api/inochi2d.ts, 23-inochi2d.css) supporting shaped breathing waves, 0.26s expression crossfades, micro-blinks, spring hair/accessory physics, temple-side front-hair restraint, soft global gaze tracking, voice lip-sync via getSpeechLevel(), pixel hitTest interactions (head pat, cheek poke/pet with blush shader & shy dodge, chest tap startled recoil), and live layer/outfit switching.
    • Added multi-image pack & incremental outfit APIs (POST /inochi2d/build-pack, DELETE /inochi2d/outfit in backend/Inochi2D/routes.py) alongside UI workflows in PuppetEditorPopup.vue and CharacterEditor.vue (plus fixed isCharxCard in frontendV2/src/data/chat.ts) so non-CHARX PNG/JSON cards can upload expression and outfit images into companion_assets without changing card_format, and added live runtime/weight diagnostics (inochiPythonPath, LayerDiff3D, Marigold) in BackstagePanel.vue, stores/ui.ts, backend/main.py, i18n/zh.ts, and i18n/en.ts.
    • Added packaged desktop support (pebble-backend.spec, inochi2d_dir() in backend/paths.py, _runtime_dir() and persistent inochi2d-requirements.txt export in backend/Inochi2D/service.py) by bundling the worker scripts and headless see-through/common + see-through/inference/scripts (~1.2 MB) so frozen builds can run decomposition via an external Python venv without bundling PyTorch.
    • Updated .gitignore to track backend/Inochi2D/see-through/ while ignoring .venv/ and personal juanhui/ test assets.
  • Added Video Attachment Understanding, Throttled Playback & Gallery Support across single-chat, group rooms, and the media album without bundling an external FFmpeg binary:
    • Added FFmpeg-first probing and execution (ffmpeg_path() and is_ffmpeg_usable() in backend/paths.py, GET/POST /app/config ffmpegPath in backend/main.py, and Path settings + status in BackstagePanel.vue) resolving PEBBLE_FFMPEG_PATH, app.json, DATA_ROOT/bin, system PATH, and common Windows package-manager paths; automatically falls back to browser <video> + <canvas> keyframe sampling (frontendV2/src/utils/video.ts) via HTTP 422 negotiation when FFmpeg is absent or fails at runtime.
    • Extended backend/attachment_parser.py, backend/api_routes.py, backend/companion.py, backend/companion_db.py, and backend/group_sessions/ (db.py, routes.py, prompt.py) to accept .mp4/.m4v/.webm/.mov/.mkv/.avi/.flv/.wmv/.ts attachments (up to 100 MB), extract dense sequential frames for continuous video understanding (2–4 fps up to 180 frames via single-pass FFmpeg or browser fallback), store poster/frame previews (cleaned up automatically on delete), inject structured video timelines + ordered frame image_url parts into the active turn only, and fall back to text-only context when text-only providers reject image_url (_IMAGE_REJECTED).
    • Made video speech recognition (STT) opt-in and off by default (videoAutoStt: false in app.json, toggleable under BackstagePanel.vue Ears tab) so visual-only uploads do not spin up ASR VRAM; added POST /companions/attachments/video/transcribe plus a per-chip toggle (AttachmentChipStrip.vue, useAttachmentQueue.ts) to transcribe or strip spoken transcripts before sending, alongside drag-and-drop and clipboard paste support in ChatComposer.vue and GroupStage.vue.
    • Upgraded InlineVideoCard.vue and ImageGallery.vue (with global ui.activeVideoId coordination in stores/ui.ts) for strict throttled video rendering: unplayed videos render lightweight poster thumbnails without mounting any <video> element or fetching full video bytes, only mount <video> on explicit play, allow at most one active video globally, and automatically unload <video> on close, item/tab switch, gallery close, or offscreen scroll; added per-session filename deduplication (collect_gallery_media in backend/attachment_parser.py, backend/companion_db.py, and backend/group_sessions/db.py) so repeated sends of the same named image/video only appear once in the gallery.

Pebble Companion Chat 0.6.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 23 Nov 12:02
  • Overhauled the generic audio.cpp TTS (audiocpp_tts) and ASR (audiocpp) engine mechanism so users can run any local model_specs family with full feature parity:
    • Updated backend/audio_specs.py to expand official audio.cpp enum preset definitions, parse all three option scopes (requestOptions, sessionOptions, loadOptions), map model_specs task names (clone → clon, design → vdes), infer pathKind (file / dir / either), and cover all streaming TTS families in STREAM_SAMPLE_RATES_BY_FAMILY.
    • Upgraded AudioCppTtsEngine (backend/audiocpp_tts_engine.py) and backend/tts_service.py to register all supported task routes (tts, clon, vdes) under max_loaded_models: 1, forward load_options and <family>.-prefixed session_options, accept both .gguf files and multi-file model directories, separate voice (reference library) from voice_id (options.voice_id), map 4xx/503 errors cleanly, and retry once after unexpected server crashes.
    • Upgraded AudioCppSttEngine (backend/audiocpp_stt_engine.py), STTRegistry (backend/stt_registry.py), and STTEnginePayload (backend/api_routes.py) to support directory-based ASR models, persist and apply requestOptions / sessionOptions / loadOptions, support /v1/tasks/unload_all_models release, and retry once on crashes.
    • Fixed character voice override (activeFor in frontendV2/src/stores/tts.ts) so ttsVoiceRef properly overrides the generic engine's panel voiceName, and passed tts.specs to synthesizeStream across callers (BackstagePanel.vue, ChatBeat.vue, call.ts).
    • Enhanced PathPickerModal.vue (allowDir) and BackstagePanel.vue to allow selecting either .gguf files or model directories, switch tasks (tts / clon / vdes), pick from the shared voice/ clip list, render all requestOptions (removing the 12-item cap) alongside loadOptions and sessionOptions with path pickers and proper numeric steps, and surface preview/audition errors in the UI instead of silently swallowing them.
  • Overhauled the local LLM mechanism across managed llama-cpp and external local OpenAI-compatible backends (ollama, lmstudio, local-openai):
    • Fixed LlamaServerEngine (backend/llama_server_engine.py) and backend/paths.py so stopped state no longer masquerades as a hardcoded built-in model, resolve_default_model_key() prefers ready custom GGUF models, ensure_running() lazily starts or switches the managed server on demand before LLM requests, OOM launch failures automatically unload local TTS/STT VRAM and retry once, quantized KV cache (q8_0/q4_0) guards against disabled FlashAttention, custom model edits support old_key renaming, and llama-server executable detection works cross-platform.
    • Improved scan_gguf_models() and describe_models() to consolidate split multi-part GGUF shards (-00001-of-NNNNN), sum full shard sizes, match mmproj and mtp files by stem similarity within mixed directories, and deduplicate colliding keys across subdirectories.
    • Unified provider/model lookup (backend/llm_client.py, backend/companion.py, backend/api_routes.py, backend/compaction.py, backend/scene_compaction.py, backend/token_engine.py, backend/group_sessions/routes.py) to read LLM_CONFIG_PATH, resolve localModelKey and per-model modelParams, propagate custom GGUF ctx and maxContext into token accounting and compaction budgets (with conservative limits for unknown local models), include local-openai in local token counters, and gracefully strip unsupported extended fields on 400/422 for strict external local servers while enabling local sampling and thinking suppression across ollama, lmstudio, and local-openai.
    • Updated frontendV2 (BackstagePanel.vue, stores/llm.ts, stores/chat.ts, api/llm.ts, api/stream.ts, i18n) to expose MTP draft path selection and the enableMtp toggle, enforce KV/FlashAttention consistency in the GGUF editor, keep requestModel aligned with the selected local model, pass max_context/enable_mtp in requests, and display local sampling controls for ollama, lmstudio, and local-openai.

Pebble Companion Chat 0.4.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 22 Nov 11:03
  • Multiple improvements. It can now directly access the picture generation model and workflow within your comfyui application, and also supports the injection of prompt template.

Pebble Companion Chat 0.3.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 21 Nov 13:30
  • Added support for RisuAI shorthand <img="..."> tags in CHARX greetings and chat messages so bundled character expressions and inline images render properly instead of being stripped.
  • Deferred greeting image parsing and loading until the empty-stage greeting view is visible and switched to a greeting containing images, reducing unnecessary rendering work.
  • Updated README.md Section 3 (Character Cards) with documentation on CHARX containers, bundled asset extraction, inline media, and the Stage HUD.
  • Fixed single-chat token mismatches between the reply footer and the top context meter by persisting branch-level provider usage in SQLite, separating latest context size from cumulative continuation billing, and refreshing context counts after swipe, edit, and delete actions.
  • Added CBS variable & conditional macro evaluation ({{getvar::...}}, {{setvar::...}}, {{? ...}}, {{#if}} / {{#if_pure}}), visual-only Display Regex support (SillyTavern regex_scripts & RisuAI customScripts), and a Shadow DOM card sandbox allowing sanitized card CSS (backgroundHTML / <style>) and interactive <input>/<label> controls, along with per-branch variable and card rule management in the character editor.
  • Added RisuAI .risum (RPack) module support and CSS auto-frame bridging: standalone .risum / module.json files can be imported directly from the character editor (compatible with both web and Tauri via multipart/base64 JSON endpoints), .charx imports automatically unpack embedded *.risum / module.json modules (Display Regex, CSS, default variables, and assets), and cards with recognized asset-frame CSS automatically synthesize wrapper Display Regex rules when no <img regex is bundled.
  • Added zero-dependency WebGL 2.5D mesh micro-motion (SceneMotionCanvas) for the right-hand chat scene stage, featuring automatic heuristic foreground/background masking and focal anchor detection, torso breathing, subtle head/drape sway, cursor depth parallax, three-plane atmospheric light particles, crossfade transitions on slide changes, and persistent 2.5D Motion + Vivid / Subtle toggle controls.

Pebble Companion Chat 0.2.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 21 Nov 08:30
  • After completing the import of the CHARX cards and enabling the usage mechanism, now CHARX card import is supported, along with the display of its complete media resources, including pictures, audio, and videos, which can all be viewed in the character card editing window. These resources are lazy-loaded, so they will not affect the rendering.
  • Additionally, the issue of unable to immediately display attachment pictures in the front-end chat interface has been fixed.

Pebble Companion Chat 0.1.0

Choose a tag to compare

@5235aa-web 5235aa-web released this 20 Nov 03:17
  • Initial release of Pebble Companion Chat (P.C.C).