feat: AI 打字机流式输出、小程序脚本主页布局及灵感卡片优化

- life-script: 新增 aiRuntime 打字机流式服务,PathView/ScriptView/TimelineView 接入打字机效果
- mini-program: ScriptView 重构为打字机输出 + 卡片式灵感列表,主页布局优化
- web: aiRuntime 服务新增流式输出支持
- chat store: 消息状态管理和打字机流式渲染支持

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 18:35:33 +08:00
parent c900f56174
commit 64476eee6d
21 changed files with 1474 additions and 205 deletions
+4 -9
View File
@@ -1,7 +1,7 @@
<template>
<view class="profile-page">
<view class="top-safe" :style="{ height: safeAreaTop + 'px' }"></view>
<view class="header">
<view class="top-safe" :style="{ height: capsuleTopReservePx + 'px' }"></view>
<view class="header" :style="topbarStyle">
<text class="back" @click="goBack"></text>
<text class="title">个人中心</text>
<text></text>
@@ -12,15 +12,10 @@
</template>
<script setup>
import { onMounted, ref } from 'vue'
import MineView from '../main/MineView.vue'
import { useMenuButtonSafeArea } from '../../composables/useMenuButtonSafeArea.js'
const safeAreaTop = ref(20)
onMounted(() => {
const info = uni.getWindowInfo()
safeAreaTop.value = info.safeAreaInsets?.top || info.statusBarHeight || 20
})
const { capsuleTopReservePx, topbarStyle } = useMenuButtonSafeArea({ extraTopPx: 10 })
const goBack = () => {
uni.navigateBack()