feat(remotes): expose workspace file operations to the Client

This commit is contained in:
imccyu
2026-09-07 21:29:39 +08:00
parent 4ce4f0bac4
commit 9f2b07cea8
4 changed files with 11 additions and 2 deletions
+1
View File
@@ -82,6 +82,7 @@
"@deepseek-ai/dsh-typert-protocol": "workspace:^",
"@deepseek-ai/dsh-scope": "workspace:^",
"@deepseek-ai/dsh-api-session-controller": "workspace:^",
"@deepseek-ai/dsh-api-workspace-files": "workspace:^",
"zod": "^4.4.3"
}
}
+4 -1
View File
@@ -14,6 +14,7 @@ import sessionReferencesRemote from '@deepseek-ai/dsh-session-reference/remote'
import subagentsRemote from '@deepseek-ai/dsh-subagent/remote'
import sessionRemote from '@deepseek-ai/dsh-api-session-controller/remote'
import workspaceRemote from '@deepseek-ai/dsh-api-workspace-controller/remote'
import workspaceFilesRemote from '@deepseek-ai/dsh-api-workspace-files/remote'
import type { ClientRemote } from '@deepseek-ai/dsh-api-gateway/client'
export type { ClientRemote } from '@deepseek-ai/dsh-api-gateway/client'
@@ -33,6 +34,8 @@ export type {} from '@deepseek-ai/dsh-api-session-controller/remote'
export type * from '@deepseek-ai/dsh-api-session-controller/types'
export type {} from '@deepseek-ai/dsh-api-workspace-controller/remote'
export type * from '@deepseek-ai/dsh-api-workspace-controller/types'
export type {} from '@deepseek-ai/dsh-api-workspace-files/remote'
export type * from '@deepseek-ai/dsh-api-workspace-files/types'
export type { SessionJob as JobView } from '@deepseek-ai/dsh-api-session-controller/types'
// The forwarded-event allowlist's selection seat: without it in the consumer's
// compilation face `TypertRemoteEvent` is `never` and every `$on` call fails.
@@ -148,7 +151,7 @@ export async function apply(ctx: Context): Promise<() => Promise<void>> {
for (const contribution of [
agentPresetsRemote, commandsRemote, settingsControllerRemote, goalsRemote, llmRemote, dynamicRemote,
pluginInventoryRemote, messageFeedbackRemote, fileUploadsRemote, sessionReferencesRemote,
subagentsRemote, sessionRemote, workspaceRemote,
subagentsRemote, sessionRemote, workspaceRemote, workspaceFilesRemote,
]) {
disposers.push(await ctx.remote.$mount(contribution))
}
+3 -1
View File
@@ -25,7 +25,6 @@
},
{
"path": "../../credentials/credentials"
},
{
"path": "../../context/file-reference"
@@ -69,6 +68,9 @@
{
"path": "../session-controller/tsconfig.client.json"
},
{
"path": "../workspace-files/tsconfig.client.json"
},
{
"path": "../settings-controller"
},
+3
View File
@@ -56,6 +56,9 @@
{
"path": "../session-controller/tsconfig.host.json"
},
{
"path": "../workspace-files/tsconfig.host.json"
},
{
"path": "../workspace-controller/tsconfig.host.json"
},