mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
feat: update schema & bump deps (#15455)
#### PR Dependency Tree * **PR #15455** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added workspace artifact management, artifact details, and removal support. - Added workspace BYOK configuration insights, model capabilities, connection checks, and validation status. - Added profile reordering and credential revision safeguards. - **Improvements** - Improved Copilot session creation with server-provided history and metadata. - Streamlined context handling with document scope selections and selected-source synchronization. - **Bug Fixes** - Improved compatibility and reliability across web, Android, and iOS Copilot workflows. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@ package app.affine.pro.service
|
||||
import app.affine.pro.Prompt
|
||||
import app.affine.pro.utils.getCurrentServerBaseUrl
|
||||
import com.affine.pro.graphql.CreateCopilotMessageMutation
|
||||
import com.affine.pro.graphql.CreateCopilotSessionMutation
|
||||
import com.affine.pro.graphql.CreateCopilotSessionWithHistoryMutation
|
||||
import com.affine.pro.graphql.GetCopilotHistoriesQuery
|
||||
import com.affine.pro.graphql.GetCopilotHistoryIdsQuery
|
||||
import com.affine.pro.graphql.GetCopilotSessionsQuery
|
||||
@@ -46,7 +46,7 @@ class GraphQLService @Inject constructor() {
|
||||
docId: String,
|
||||
prompt: Prompt = Prompt.ChatWithAFFiNEAI
|
||||
) = mutation(
|
||||
CreateCopilotSessionMutation(
|
||||
CreateCopilotSessionWithHistoryMutation(
|
||||
CreateChatSessionInput(
|
||||
docId = Optional.present(docId),
|
||||
workspaceId = workspaceId,
|
||||
@@ -54,7 +54,7 @@ class GraphQLService @Inject constructor() {
|
||||
)
|
||||
)
|
||||
).mapCatching { data ->
|
||||
data.createCopilotSession
|
||||
data.createCopilotSessionWithHistory.copilotChatHistory.sessionId
|
||||
}
|
||||
|
||||
suspend fun getCopilotHistories(
|
||||
|
||||
Reference in New Issue
Block a user