feat(ai): add global analysis workspace

This commit is contained in:
digua committed 2026-08-22 18:01:22 +08:00
1 parent fbcc0f299f
commit 36b26a78f5
18 files changed
+1130 -33

No files matched your search

+6 -1
View File
@@ -9,7 +9,11 @@ import Database from 'better-sqlite3'
import * as fs from 'fs'
import * as path from 'path'
import type { ChartPayload, ChatEvidencePayload } from '@openchatlab/core'
import { DEFAULT_GENERAL_ASSISTANT_ID, type AIEntityRef } from '@openchatlab/shared-types'
import {
DEFAULT_GENERAL_ASSISTANT_ID,
type AIEntityRef,
type CrossChatEvidencePayload,
} from '@openchatlab/shared-types'
import type { PlanContentBlock, PlanDraftContentBlock } from './agent'
const DEFAULT_GENERAL_ID = DEFAULT_GENERAL_ASSISTANT_ID
@@ -36,6 +40,7 @@ export type ContentBlock =
| { type: 'think'; tag: string; text: string; durationMs?: number }
| { type: 'chart'; chart: ChartPayload }
| { type: 'evidence'; evidence: ChatEvidencePayload }
| { type: 'cross_chat_evidence'; evidence: CrossChatEvidencePayload }
| PlanContentBlock
| PlanDraftContentBlock
| {