merge: 0629001 into 0629002

合并反馈、语音 ASR、MindSpace 修复等 0629001 发布改动,并与 Agent Runs 网关改动完成冲突解决。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-29 22:51:03 +08:00
101 changed files with 20868 additions and 2592 deletions
+24
View File
@@ -132,6 +132,11 @@ export async function migrateSchema(pool) {
if (!(await indexExists(pool, 'h5_users', 'uq_h5_users_email'))) {
await pool.query(`ALTER TABLE h5_users ADD UNIQUE KEY uq_h5_users_email (email)`);
}
if (!(await indexExists(pool, 'h5_usage_records', 'uniq_h5_usage_request_id'))) {
await pool.query(
`ALTER TABLE h5_usage_records ADD UNIQUE KEY uniq_h5_usage_request_id (request_id)`,
);
}
const assetForeignKeys = [
{
@@ -679,6 +684,25 @@ export async function migrateSchema(pool) {
WHERE s.user_id = u.id AND s.status = 'active'
)
`);
await pool.query(`
CREATE TABLE IF NOT EXISTS h5_user_feedback (
id CHAR(36) PRIMARY KEY,
user_id CHAR(36) NOT NULL,
type ENUM('bug', 'feature', 'other') NOT NULL,
title VARCHAR(120) NOT NULL,
description TEXT NOT NULL,
contact VARCHAR(120) NULL,
status ENUM('pending', 'reviewing', 'resolved', 'closed') NOT NULL DEFAULT 'pending',
images_json JSON NULL,
context_json JSON NULL,
created_at BIGINT NOT NULL,
updated_at BIGINT NOT NULL,
KEY idx_h5_user_feedback_user_created (user_id, created_at),
KEY idx_h5_user_feedback_status_created (status, created_at),
CONSTRAINT fk_h5_user_feedback_user FOREIGN KEY (user_id) REFERENCES h5_users(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
`);
}
export async function initSchema(pool) {