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:
DarkSky
2026-08-10 18:16:13 +08:00
committed by GitHub
parent 7bc349c4de
commit 386e92acb6
86 changed files with 1311 additions and 2211 deletions
@@ -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(