chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)

This commit is contained in:
runny committed 2026-11-13 17:54:56 +08:00
commit 9097ee699d
5769 files changed
+1446466

No files matched your search

@@ -0,0 +1,8 @@
ALTER TABLE sessions ADD COLUMN kind VARCHAR(32) NOT NULL DEFAULT '';
UPDATE sessions SET kind = 'assistant'
WHERE CASE WHEN json_valid(agent_config) THEN json_extract(agent_config, '$.agent_id') END = 'builtin-weknora-assistant';
CREATE INDEX IF NOT EXISTS idx_sessions_tenant_kind_user_updated
ON sessions (tenant_id, kind, user_id, updated_at DESC)
WHERE deleted_at IS NULL;