dsh-remote-bridge 0.0.0-stage → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.en.md +312 -0
- package/README.md +308 -2
- package/assets/app-qr-gitee.png +0 -0
- package/assets/app-qr-gitee.svg +1 -0
- package/assets/app-qr-github.png +0 -0
- package/assets/app-qr-github.svg +1 -0
- package/cordis.patch.yml +16 -0
- package/docs/api/asyncapi.yaml +86 -0
- package/docs/api/openapi.yaml +1065 -0
- package/kotlin-sdk/README.md +28 -0
- package/kotlin-sdk/build.gradle.kts +19 -0
- package/kotlin-sdk/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/kotlin-sdk/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/kotlin-sdk/gradlew +252 -0
- package/kotlin-sdk/gradlew.bat +94 -0
- package/kotlin-sdk/settings.gradle.kts +1 -0
- package/kotlin-sdk/src/main/kotlin/ai/deepseek/dsh/workspace/DshWorkspaceClient.kt +691 -0
- package/lib/client.cjs +30855 -0
- package/lib/index.d.ts +1261 -0
- package/lib/index.js +4008 -0
- package/package.json +108 -4
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Install this layer with:
|
|
2
|
+
# dsh plugin --profile web add dsh-remote-bridge
|
|
3
|
+
- insert:
|
|
4
|
+
- id: dsh-remote-bridge
|
|
5
|
+
name: dsh-remote-bridge
|
|
6
|
+
# DSH 0.2.x host services (see src/host/dsh-0.2-bridge.ts). The pre-0.2
|
|
7
|
+
# `apiProxy` facade is rebuilt from these; `@deepseek-ai/dsh-host-apiproxy`
|
|
8
|
+
# stopped shipping at 0.1.1-rc.2 and nothing provides `apiProxy` after it.
|
|
9
|
+
inject: [sessionController, workspaceController, workspaceRegistry, settingsController, credentialsController, agentPresets, llm, webServer, agents, commands]
|
|
10
|
+
config:
|
|
11
|
+
# 状态目录**不改名**:已装的机器上有既有数据库与回收站,换目录等于让用户
|
|
12
|
+
# 的授权根配置和回收站全部消失。改名只动「装的时候叫什么、bundle 叫什么」。
|
|
13
|
+
dataDir: !!js dshHomePath('dsh-workspace')
|
|
14
|
+
remoteHost: 0.0.0.0
|
|
15
|
+
port: 3090
|
|
16
|
+
maxUploadBytes: 20971520
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
asyncapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: DeepSeek Harness Mobile Events
|
|
4
|
+
version: 2.2.0
|
|
5
|
+
description: Live file and authorized DSH chat events. Reconnect clients must refresh REST state; unbounded replay is not provided.
|
|
6
|
+
servers:
|
|
7
|
+
local:
|
|
8
|
+
host: 127.0.0.1:3090
|
|
9
|
+
description: Default listener; the bind IP and port are configurable from the local DSH WebUI
|
|
10
|
+
protocol: ws
|
|
11
|
+
pathname: /api/v1/events
|
|
12
|
+
channels:
|
|
13
|
+
events:
|
|
14
|
+
address: /api/v1/events
|
|
15
|
+
messages:
|
|
16
|
+
workspaceEvent:
|
|
17
|
+
$ref: '#/components/messages/WorkspaceEvent'
|
|
18
|
+
operations:
|
|
19
|
+
receiveEvents:
|
|
20
|
+
action: receive
|
|
21
|
+
channel:
|
|
22
|
+
$ref: '#/channels/events'
|
|
23
|
+
summary: Receive authorized file and chat events after Bearer authentication during upgrade.
|
|
24
|
+
components:
|
|
25
|
+
messages:
|
|
26
|
+
WorkspaceEvent:
|
|
27
|
+
name: WorkspaceEvent
|
|
28
|
+
payload:
|
|
29
|
+
type: object
|
|
30
|
+
required: [id, type, time, data]
|
|
31
|
+
properties:
|
|
32
|
+
id: { type: string }
|
|
33
|
+
type:
|
|
34
|
+
type: string
|
|
35
|
+
examples: [file.changed, file.trashed, chat.message.delta, chat.message.committed, chat.session.status, chat.approval.requested, chat.approval.resolved, connection.ready]
|
|
36
|
+
time: { type: integer }
|
|
37
|
+
data:
|
|
38
|
+
oneOf:
|
|
39
|
+
- $ref: '#/components/schemas/ChatMessageDelta'
|
|
40
|
+
- $ref: '#/components/schemas/ChatMessageCommitted'
|
|
41
|
+
- $ref: '#/components/schemas/ChatApprovalRequested'
|
|
42
|
+
- $ref: '#/components/schemas/ChatApprovalResolved'
|
|
43
|
+
- type: object
|
|
44
|
+
additionalProperties: true
|
|
45
|
+
schemas:
|
|
46
|
+
ChatMessageDelta:
|
|
47
|
+
type: object
|
|
48
|
+
description: A stable token-level assistant update normalized from DSH assistant/chunk events.
|
|
49
|
+
required: [sessionId, eventType, turn, step, index, kind, text]
|
|
50
|
+
properties:
|
|
51
|
+
sessionId: { type: string }
|
|
52
|
+
eventType: { type: string, const: assistant/chunk }
|
|
53
|
+
seq: { type: integer }
|
|
54
|
+
turn: { type: integer }
|
|
55
|
+
step: { type: integer }
|
|
56
|
+
index: { type: integer }
|
|
57
|
+
kind: { type: string, enum: [text, reasoning] }
|
|
58
|
+
text: { type: string }
|
|
59
|
+
ChatMessageCommitted:
|
|
60
|
+
type: object
|
|
61
|
+
description: Signals that REST history contains a committed user or assistant message.
|
|
62
|
+
required: [sessionId, eventType, role]
|
|
63
|
+
properties:
|
|
64
|
+
sessionId: { type: string }
|
|
65
|
+
eventType: { type: string, enum: [user/message, assistant/message] }
|
|
66
|
+
seq: { type: integer }
|
|
67
|
+
role: { type: string, enum: [user, assistant] }
|
|
68
|
+
turn: { type: integer }
|
|
69
|
+
step: { type: integer }
|
|
70
|
+
ChatApprovalRequested:
|
|
71
|
+
type: object
|
|
72
|
+
description: Signals that clients should refresh the session pending-approval REST resource.
|
|
73
|
+
required: [sessionId, approvalId, toolName, risk]
|
|
74
|
+
properties:
|
|
75
|
+
sessionId: { type: string }
|
|
76
|
+
approvalId: { type: string }
|
|
77
|
+
toolName: { type: string }
|
|
78
|
+
risk: { type: string, enum: [standard, full-access] }
|
|
79
|
+
ChatApprovalResolved:
|
|
80
|
+
type: object
|
|
81
|
+
description: Signals that an approval was settled and clients should refresh session state.
|
|
82
|
+
required: [sessionId, approvalId]
|
|
83
|
+
properties:
|
|
84
|
+
sessionId: { type: string }
|
|
85
|
+
approvalId: { type: string }
|
|
86
|
+
outcome: { type: string, enum: [allowed-once, rejected, cancelled, unavailable] }
|