release: v0.12.0-beta.5

This commit is contained in:
Neko Ayaka
2026-08-30 02:31:30 +08:00
parent 0977bcd741
commit 2c1e223c8d
55 changed files with 136 additions and 54 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/better-ws",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Transport-agnostic reliable WebSocket runtime primitives",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/cap-vite",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "CLI that starts a Vite dev server and runs Capacitor live reload",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/core-agent",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Core agent runtime orchestration for AIRI",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/core-character",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Core character pipeline orchestration for AIRI (segmentation, emotion, delay, optional TTS)",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/electron-eventa",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Shared Eventa contracts for Electron IPC",
"author": {
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/electron-screen-capture",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Screen capture",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/electron-vueuse",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "VueUse-like composables and helpers for Electron apps",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/font-chillroundm",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Essential CSS for font, ChillRoundM (a.k.a. 寒蝉半圆体), used by Project AIRI",
"author": {
"name": "Warren2060",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/font-cjkfonts-allseto",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Essential CSS for font, cjkfonts 全瀨體, used by Project AIRI",
"author": {
"name": "Creators of cjkFonts",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/font-departure-mono",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Essential CSS for font, Departure Mono, used by Project AIRI",
"author": {
"name": "Tobias Fried",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/font-xiaolai",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Essential CSS for font, Xiaolai (小赖字体 / 小賴字體 / シャオライ / Xiaolai Font), used by Project AIRI",
"author": {
"name": "ʟxɢᴡ",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/input-gamepad-vueuse",
"type": "module",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.5",
"private": true,
"description": "Vue composables for AIRI gamepad input",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/input-gamepad",
"type": "module",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.5",
"private": true,
"description": "Standard Gamepad API input for AIRI",
"author": {
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/input-playstation-dualsense-5",
"type": "module",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.5",
"private": true,
"description": "WebHID input and output support for the PlayStation 5 DualSense controller",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/memory-pgvector",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/model-driver-lipsync",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"exports": {
".": "./src/index.ts",
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/model-driver-magic-live2d",
"type": "module",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.5",
"private": true,
"description": "Live2D model driver for MAGIC motion",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/motion-driver-magic",
"type": "module",
"version": "0.12.0-beta.1",
"version": "0.12.0-beta.5",
"private": true,
"description": "Markovian Animation Generator with Illusory Conditioning for Project AIRI",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/pipelines-audio",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Audio pipeline orchestration for AIRI (capture, VAD, encode, stream)",
"author": {
@@ -45,4 +45,12 @@ describe('normalizeActPayload', () => {
emotion: { name: 'happy', intensity: 1 },
})
})
it('normalizes an expression name from an ACT payload', () => {
expect(normalizeActPayload({
expression: ' smile ',
})).toEqual({
expression: 'smile',
})
})
})
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/plugin-protocol",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Plugin protocol event definitions and shared websocket types for Project AIRI",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/plugin-sdk-tamagotchi",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Tamagotchi-specific DX helpers for Project AIRI plugins",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/plugin-sdk",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Plugin SDK for Project AIRI",
"author": {
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/scenarios-stage-tamagotchi-browser",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Vite/Vue scene app for stage tamagotchi browser captures",
"author": {
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/scenarios-stage-tamagotchi-electron",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Product-owned Electron scenarios for stage-tamagotchi raw screenshot capture",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/server-runtime",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Server runtime implementation for AIRI running in different environments",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/server-sdk",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Client-side SDK implementation for connecting to AIRI server components and runtimes",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/server-shared",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Server shared types, utilities for AIRI server components and runtimes",
"author": {
"name": "Moeru AI Project AIRI Team",
@@ -241,6 +241,54 @@ describe('live2d zip loader settings sanitization', () => {
])
})
// ROOT CAUSE:
//
// Some valid Live2D archives contain expression and motion files that are
// absent from model3.json. The ZIP loader discovered these files for its
// report, but it did not add them to the runtime model settings. Pixi then
// omitted them from extraction and AIRI could not register them for ACT.
it('adds unreferenced expressions and motions to runtime model settings', async () => {
await import('./live2d-zip-loader')
const { ZipLoader } = await import('pixi-live2d-display/cubism4')
const settingsText = JSON.stringify({
Version: 3,
FileReferences: {
Moc: 'avatar.moc3',
Textures: ['textures/avatar.png'],
},
Groups: [],
})
const zip = new JSZip()
zip.file('avatar/avatar.model3.json', settingsText)
zip.file('avatar/avatar.moc3', new Uint8Array([77, 79, 67, 51]))
zip.file('avatar/textures/avatar.png', new Uint8Array([1, 2, 3]))
zip.file('avatar/expressions/smile.exp3.json', JSON.stringify({
Type: 'Live2D Expression',
Parameters: [{ Id: 'ParamMouthForm', Value: 1, Blend: 'Add' }],
}))
zip.file('avatar/motions/wave.motion3.json', JSON.stringify({ Version: 3, Curves: [] }))
const zipBytes = await zip.generateAsync({ type: 'uint8array' })
const reader = await JSZip.loadAsync(await blobFromBytes(zipBytes).arrayBuffer())
const settings = await ZipLoader.createSettings(reader)
const files = await ZipLoader.unzip(reader, settings)
expect(settings.expressions).toEqual([
{ Name: 'smile', File: 'expressions/smile.exp3.json' },
])
expect(settings.motions).toEqual({
AIRI: [{ File: 'motions/wave.motion3.json' }],
})
expect(files.map(file => file.webkitRelativePath).sort()).toEqual([
'avatar/avatar.moc3',
'avatar/expressions/smile.exp3.json',
'avatar/motions/wave.motion3.json',
'avatar/textures/avatar.png',
])
expect(await reader.file('avatar/avatar.model3.json')!.async('string')).toBe(settingsText)
})
it('loads an OPFS-restored file directory when model3.json contains Physics: null', async () => {
await import('./live2d-zip-loader')
const { FileLoader } = await import('pixi-live2d-display/cubism4')
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/stage-ui",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Shared core for stage",
"author": {
@@ -1,5 +1,6 @@
import type { AiriCard } from './airi-card'
import { useLive2DActCapabilitiesStore } from '@proj-airi/stage-ui-live2d'
import { createPinia, setActivePinia } from 'pinia'
import { beforeEach, describe, expect, it, vi } from 'vitest'
@@ -503,6 +504,31 @@ describe('airi-card store', () => {
expect(cardStore.systemPrompt).not.toContain('What did you find?')
})
// ROOT CAUSE:
//
// The card prompt listed only AIRI's fixed emotion vocabulary. A loaded
// Live2D model could expose more expressions and motions, but the LLM did
// not receive their exact ACT identifiers.
it('adds current Live2D ACT capabilities to the system prompt', async () => {
const cardStore = useAiriCardStore()
const capabilities = useLive2DActCapabilitiesStore()
await cardStore.initialize()
capabilities.beginModel('display-model-iru-v2')
capabilities.setExpressions('display-model-iru-v2', [
{ name: 'smile', fileName: 'expressions/smile.exp3.json' },
])
capabilities.setMotions('display-model-iru-v2', [
{ fileName: 'motions/wave.motion3.json', group: 'AIRI', index: 0 },
])
expect(cardStore.systemPrompt).toContain('Live2D ACT controls for the current model:')
expect(cardStore.systemPrompt).toContain('- "smile"')
expect(cardStore.systemPrompt).toContain('- "motions/wave.motion3.json"')
expect(cardStore.systemPrompt).toContain('<|ACT {"expression":"smile"}|>')
expect(cardStore.systemPrompt).toContain('<|ACT {"motion":"motions/wave.motion3.json"}|>')
})
it('falls back to the default card when the active custom card is deleted', async () => {
const cardStore = useAiriCardStore()
await cardStore.initialize()
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/stream-kit",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Stream utilities for AIRI (queues, streams)",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/testing-audio",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "AIRI Web and Electron audio pipeline tests",
"author": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/ui",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "A collection of UI components that used by Project AIRI",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/unocss-preset-fonts",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"description": "Fonts that are not included by Google Fonts, FontSource but open-source used by Project AIRI",
"author": {
"name": "Moeru AI Project AIRI Team",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@proj-airi/vitest-plugin-fakemic",
"type": "module",
"version": "0.12.0-beta.4",
"version": "0.12.0-beta.5",
"private": true,
"description": "Fake microphone test runtime and Vitest integration",
"author": {