Repository navigation
Releases
Releases · 5235aa-web/Pebble_companionchat
Pebble Companion Chat 0.7.0
- 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 withSee-through(LayerDiff3D+Marigold) and animate them in real time without altering the core backend runtime:- Isolated dependencies via
backend/Inochi2D/requirements.txt(running insidebackend/Inochi2D/.venv,PEBBLE_INOCHI_PYTHON, or a user-selectedinochiPythonPathinapp.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.pysupportingROCm(Windows/Linux with chunked math SDPA),NVIDIA CUDA(Ampere+bf16, Turing/Pascalfp16),Apple Silicon MPS, andCPU(fp32) without editing upstreamsee-throughfiles, plus--offload autoinbackend/Inochi2D/service.pyto keepgroup_offloadenabled below 20 GB VRAM (fixing 12 GB VRAM stalls) and cleanup of temporary_workfiles after completion. - Automated anatomical post-processing in
backend/Inochi2D/puppet_builder.pyandbackend/Inochi2D/expression_extractor.py: automaticheadTiltalignment,neck/topwearV-neck collar occlusion separation (_fix_neck_topwear_occlusion), generated bilateral closed-eyeblinkLayers, pixel-diff expression overlay splitting with bilingual (zh/en) filename normalization (_resolve_emotion_meta), occluded outer-eye/brow blind-spot completion (--no_complete_eyeopt-out), and incremental outfit merging (add_outfit_from_psd) underoutfits/<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 viagetSpeechLevel(), pixelhitTestinteractions (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/outfitinbackend/Inochi2D/routes.py) alongside UI workflows inPuppetEditorPopup.vueandCharacterEditor.vue(plus fixedisCharxCardinfrontendV2/src/data/chat.ts) so non-CHARX PNG/JSON cards can upload expression and outfit images intocompanion_assetswithout changingcard_format, and added live runtime/weight diagnostics (inochiPythonPath,LayerDiff3D,Marigold) inBackstagePanel.vue,stores/ui.ts,backend/main.py,i18n/zh.ts, andi18n/en.ts. - Added packaged desktop support (
pebble-backend.spec,inochi2d_dir()inbackend/paths.py,_runtime_dir()and persistentinochi2d-requirements.txtexport inbackend/Inochi2D/service.py) by bundling the worker scripts and headlesssee-through/common+see-through/inference/scripts(~1.2 MB) so frozen builds can run decomposition via an external Python venv without bundling PyTorch. - Updated
.gitignoreto trackbackend/Inochi2D/see-through/while ignoring.venv/and personaljuanhui/test assets.
- Isolated dependencies via
- 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()andis_ffmpeg_usable()inbackend/paths.py,GET/POST /app/configffmpegPathinbackend/main.py, and Path settings + status inBackstagePanel.vue) resolvingPEBBLE_FFMPEG_PATH,app.json,DATA_ROOT/bin, systemPATH, and common Windows package-manager paths; automatically falls back to browser<video>+<canvas>keyframe sampling (frontendV2/src/utils/video.ts) via HTTP422negotiation when FFmpeg is absent or fails at runtime. - Extended
backend/attachment_parser.py,backend/api_routes.py,backend/companion.py,backend/companion_db.py, andbackend/group_sessions/(db.py,routes.py,prompt.py) to accept.mp4/.m4v/.webm/.mov/.mkv/.avi/.flv/.wmv/.tsattachments (up to 100 MB), extract dense sequential frames for continuous video understanding (2–4 fps up to180frames via single-pass FFmpeg or browser fallback), store poster/frame previews (cleaned up automatically on delete), inject structured video timelines + ordered frameimage_urlparts into the active turn only, and fall back to text-only context when text-only providers rejectimage_url(_IMAGE_REJECTED). - Made video speech recognition (STT) opt-in and off by default (
videoAutoStt: falseinapp.json, toggleable underBackstagePanel.vueEars tab) so visual-only uploads do not spin up ASR VRAM; addedPOST /companions/attachments/video/transcribeplus a per-chip toggle (AttachmentChipStrip.vue,useAttachmentQueue.ts) to transcribe or strip spoken transcripts before sending, alongside drag-and-drop and clipboard paste support inChatComposer.vueandGroupStage.vue. - Upgraded
InlineVideoCard.vueandImageGallery.vue(with globalui.activeVideoIdcoordination instores/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_mediainbackend/attachment_parser.py,backend/companion_db.py, andbackend/group_sessions/db.py) so repeated sends of the same named image/video only appear once in the gallery.
- Added FFmpeg-first probing and execution (
Pebble Companion Chat 0.6.0
- Overhauled the generic
audio.cppTTS (audiocpp_tts) and ASR (audiocpp) engine mechanism so users can run any localmodel_specsfamily with full feature parity:- Updated
backend/audio_specs.pyto expand officialaudio.cppenumpresetdefinitions, parse all three option scopes (requestOptions,sessionOptions,loadOptions), mapmodel_specstask names (clone→clon,design→vdes), inferpathKind(file/dir/either), and cover all streaming TTS families inSTREAM_SAMPLE_RATES_BY_FAMILY. - Upgraded
AudioCppTtsEngine(backend/audiocpp_tts_engine.py) andbackend/tts_service.pyto register all supported task routes (tts,clon,vdes) undermax_loaded_models: 1, forwardload_optionsand<family>.-prefixedsession_options, accept both.gguffiles and multi-file model directories, separatevoice(reference library) fromvoice_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), andSTTEnginePayload(backend/api_routes.py) to support directory-based ASR models, persist and applyrequestOptions/sessionOptions/loadOptions, support/v1/tasks/unload_all_modelsrelease, and retry once on crashes. - Fixed character voice override (
activeForinfrontendV2/src/stores/tts.ts) sottsVoiceRefproperly overrides the generic engine's panelvoiceName, and passedtts.specstosynthesizeStreamacross callers (BackstagePanel.vue,ChatBeat.vue,call.ts). - Enhanced
PathPickerModal.vue(allowDir) andBackstagePanel.vueto allow selecting either.gguffiles or model directories, switch tasks (tts/clon/vdes), pick from the sharedvoice/clip list, render allrequestOptions(removing the 12-item cap) alongsideloadOptionsandsessionOptionswith path pickers and proper numeric steps, and surface preview/audition errors in the UI instead of silently swallowing them.
- Updated
- Overhauled the local LLM mechanism across managed
llama-cppand external local OpenAI-compatible backends (ollama,lmstudio,local-openai):- Fixed
LlamaServerEngine(backend/llama_server_engine.py) andbackend/paths.pyso 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 supportold_keyrenaming, andllama-serverexecutable detection works cross-platform. - Improved
scan_gguf_models()anddescribe_models()to consolidate split multi-part GGUF shards (-00001-of-NNNNN), sum full shard sizes, matchmmprojandmtpfiles 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 readLLM_CONFIG_PATH, resolvelocalModelKeyand per-modelmodelParams, propagate custom GGUFctxandmaxContextinto token accounting and compaction budgets (with conservative limits for unknown local models), includelocal-openaiin local token counters, and gracefully strip unsupported extended fields on400/422for strict external local servers while enabling local sampling and thinking suppression acrossollama,lmstudio, andlocal-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 theenableMtptoggle, enforce KV/FlashAttention consistency in the GGUF editor, keeprequestModelaligned with the selected local model, passmax_context/enable_mtpin requests, and display local sampling controls forollama,lmstudio, andlocal-openai.
- Fixed
Pebble Companion Chat 0.4.0
- 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
- 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.mdSection 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 (SillyTavernregex_scripts& RisuAIcustomScripts), 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.jsonfiles can be imported directly from the character editor (compatible with both web and Tauri via multipart/base64 JSON endpoints),.charximports automatically unpack embedded*.risum/module.jsonmodules (Display Regex, CSS, default variables, and assets), and cards with recognized asset-frame CSS automatically synthesize wrapper Display Regex rules when no<imgregex 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 persistent2.5D Motion+Vivid/Subtletoggle controls.
Pebble Companion Chat 0.2.0
- 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
- Initial release of Pebble Companion Chat (P.C.C).