@jingyi0605/codingns4dsh 0.1.2 → 0.1.7-rc.3

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.
Files changed (171) hide show
  1. package/README.en.md +4 -4
  2. package/README.md +14 -5
  3. package/data/build/dist/client/account-bar.js +57 -3
  4. package/data/build/dist/client/bundle.js +36246 -268
  5. package/data/build/dist/client/cli-slots.js +60 -18
  6. package/data/build/dist/client/dsh-h5-bootstrap.d.ts +2 -0
  7. package/data/build/dist/client/dsh-h5-bootstrap.js +79 -13
  8. package/data/build/dist/client/features/file-management-panel.d.ts +5 -0
  9. package/data/build/dist/client/features/file-management-panel.js +48 -0
  10. package/data/build/dist/client/features/file-management.d.ts +4 -0
  11. package/data/build/dist/client/features/file-management.js +50 -0
  12. package/data/build/dist/client/features/index.d.ts +10 -1
  13. package/data/build/dist/client/features/index.js +12 -1
  14. package/data/build/dist/client/features/login-protection-panel.js +1 -1
  15. package/data/build/dist/client/features/login-protection-session.d.ts +2 -0
  16. package/data/build/dist/client/features/login-protection-session.js +18 -0
  17. package/data/build/dist/client/features/peer-host.d.ts +4 -0
  18. package/data/build/dist/client/features/peer-host.js +89 -0
  19. package/data/build/dist/client/features/reverse-proxy-panel.js +23 -7
  20. package/data/build/dist/client/features/reverse-proxy.d.ts +1 -2
  21. package/data/build/dist/client/features/reverse-proxy.js +75 -5
  22. package/data/build/dist/client/features/types.d.ts +9 -0
  23. package/data/build/dist/client/features/workspace-session-enhancement-panel.js +10 -0
  24. package/data/build/dist/client/features/workspace-session-enhancement.js +18 -1
  25. package/data/build/dist/client/file-management-dom.d.ts +12 -0
  26. package/data/build/dist/client/file-management-dom.js +527 -0
  27. package/data/build/dist/client/git-management.js +24 -5
  28. package/data/build/dist/client/host-navigation.d.ts +29 -0
  29. package/data/build/dist/client/host-navigation.js +29 -0
  30. package/data/build/dist/client/host-router.d.ts +3 -0
  31. package/data/build/dist/client/host-router.js +2 -0
  32. package/data/build/dist/client/index.d.ts +6 -1
  33. package/data/build/dist/client/index.js +30 -10
  34. package/data/build/dist/client/locale.js +36 -7
  35. package/data/build/dist/client/peer-host-connection-button.d.ts +13 -0
  36. package/data/build/dist/client/peer-host-connection-button.js +69 -0
  37. package/data/build/dist/client/peer-host-management-api.d.ts +40 -0
  38. package/data/build/dist/client/peer-host-management-api.js +33 -0
  39. package/data/build/dist/client/peer-host-management-panel.d.ts +13 -0
  40. package/data/build/dist/client/peer-host-management-panel.js +181 -0
  41. package/data/build/dist/client/peer-host-native-session-ui.d.ts +60 -0
  42. package/data/build/dist/client/peer-host-native-session-ui.js +372 -0
  43. package/data/build/dist/client/peer-host-scoped-client.d.ts +67 -0
  44. package/data/build/dist/client/peer-host-scoped-client.js +316 -0
  45. package/data/build/dist/client/peer-host-session-controller.d.ts +30 -0
  46. package/data/build/dist/client/peer-host-session-controller.js +95 -0
  47. package/data/build/dist/client/quick-phrase-slot.js +14 -0
  48. package/data/build/dist/client/remote-web-context.js +26 -4
  49. package/data/build/dist/client/session-changed-files-view.d.ts +15 -0
  50. package/data/build/dist/client/session-changed-files-view.js +337 -0
  51. package/data/build/dist/client/settings-bridge.d.ts +14 -4
  52. package/data/build/dist/client/settings-bridge.js +59 -12
  53. package/data/build/dist/client/settings-section.js +17 -4
  54. package/data/build/dist/client/subscription-slot.js +21 -8
  55. package/data/build/dist/client/workspace-session-rightbar-dom.d.ts +28 -0
  56. package/data/build/dist/client/workspace-session-rightbar-dom.js +291 -0
  57. package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +25 -33
  58. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +7 -1
  59. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js +34 -11
  60. package/data/build/dist/dsh-capabilities/matrix.js +9 -0
  61. package/data/build/dist/dsh-capabilities/routes.js +35 -0
  62. package/data/build/dist/dsh-capabilities/settings-store.d.ts +12 -0
  63. package/data/build/dist/dsh-capabilities/settings-store.js +34 -0
  64. package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
  65. package/data/build/dist/features/host-router.d.ts +26 -0
  66. package/data/build/dist/features/host-router.js +110 -0
  67. package/data/build/dist/features/registry.js +3 -0
  68. package/data/build/dist/host/cli-adapters/codex-driver.d.ts +13 -1
  69. package/data/build/dist/host/cli-adapters/codex-driver.js +528 -72
  70. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +21 -2
  71. package/data/build/dist/host/cli-adapters/command-code-driver.js +408 -105
  72. package/data/build/dist/host/cli-adapters/driver.d.ts +2 -0
  73. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +2 -0
  74. package/data/build/dist/host/cli-adapters/dsh-message-projector.js +47 -28
  75. package/data/build/dist/host/cli-adapters/dsh-tool-history.js +37 -0
  76. package/data/build/dist/host/cli-adapters/feature.js +94 -10
  77. package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +6 -0
  78. package/data/build/dist/host/cli-adapters/json-rpc-process.js +14 -3
  79. package/data/build/dist/host/cli-adapters/kimi-driver.js +3 -3
  80. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +6 -0
  81. package/data/build/dist/host/cli-adapters/model-catalog.js +8 -0
  82. package/data/build/dist/host/cli-adapters/opencode-driver.js +14 -2
  83. package/data/build/dist/host/cli-adapters/pi-driver.js +2 -2
  84. package/data/build/dist/host/cli-adapters/process-utils.d.ts +8 -0
  85. package/data/build/dist/host/cli-adapters/process-utils.js +48 -0
  86. package/data/build/dist/host/cli-adapters/registry.d.ts +6 -1
  87. package/data/build/dist/host/cli-adapters/registry.js +41 -7
  88. package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +23 -4
  89. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +3 -0
  90. package/data/build/dist/host/cli-adapters/standard-stream-driver.js +36 -15
  91. package/data/build/dist/host/dsh-device-runtime.d.ts +2 -0
  92. package/data/build/dist/host/dsh-device-runtime.js +55 -29
  93. package/data/build/dist/host/dsh-runtime-version.d.ts +3 -2
  94. package/data/build/dist/host/dsh-runtime-version.js +71 -2
  95. package/data/build/dist/host/features/auth.js +10 -2
  96. package/data/build/dist/host/features/file-management.d.ts +5 -0
  97. package/data/build/dist/host/features/file-management.js +267 -0
  98. package/data/build/dist/host/features/git-management.js +24 -2
  99. package/data/build/dist/host/features/index.d.ts +2 -0
  100. package/data/build/dist/host/features/index.js +6 -0
  101. package/data/build/dist/host/features/peer-host.d.ts +22 -0
  102. package/data/build/dist/host/features/peer-host.js +322 -0
  103. package/data/build/dist/host/features/types.d.ts +4 -0
  104. package/data/build/dist/host/host-router.d.ts +3 -0
  105. package/data/build/dist/host/host-router.js +2 -0
  106. package/data/build/dist/host/index-injection.d.ts +17 -0
  107. package/data/build/dist/host/index-injection.js +24 -0
  108. package/data/build/dist/host/index.d.ts +4 -1
  109. package/data/build/dist/host/index.js +41 -7
  110. package/data/build/dist/host/lan-access-dsh.d.ts +34 -1
  111. package/data/build/dist/host/lan-access-dsh.js +145 -26
  112. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts +52 -0
  113. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js +166 -0
  114. package/data/build/dist/host/modules/peer-host/host-ws-connector.d.ts +31 -0
  115. package/data/build/dist/host/modules/peer-host/host-ws-connector.js +108 -0
  116. package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.d.ts +26 -0
  117. package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.js +159 -0
  118. package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.d.ts +50 -0
  119. package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.js +97 -0
  120. package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.d.ts +19 -0
  121. package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.js +54 -0
  122. package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts +44 -0
  123. package/data/build/dist/host/modules/peer-host/peer-host-handshake.js +133 -0
  124. package/data/build/dist/host/modules/peer-host/peer-host-relay.d.ts +65 -0
  125. package/data/build/dist/host/modules/peer-host/peer-host-relay.js +196 -0
  126. package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts +42 -0
  127. package/data/build/dist/host/modules/peer-host/peer-host-session.js +152 -0
  128. package/data/build/dist/host/modules/peer-host/peer-host-store.d.ts +92 -0
  129. package/data/build/dist/host/modules/peer-host/peer-host-store.js +323 -0
  130. package/data/build/dist/host/modules/peer-host/peer-host-ws-gateway.d.ts +34 -0
  131. package/data/build/dist/host/modules/peer-host/peer-host-ws-gateway.js +156 -0
  132. package/data/build/dist/host/native-session-bridge.d.ts +18 -2
  133. package/data/build/dist/host/native-session-bridge.js +236 -8
  134. package/data/build/dist/host/remote-web-runtime.js +26 -1
  135. package/data/build/dist/host/rpc.js +8 -3
  136. package/data/build/dist/host/session-changes.d.ts +5 -0
  137. package/data/build/dist/host/session-changes.js +163 -0
  138. package/data/build/dist/host/settings.js +6 -0
  139. package/data/build/dist/index.d.ts +1 -1
  140. package/data/build/dist/index.js +1 -1
  141. package/data/build/dist/shared/contracts/cli-adapter.d.ts +23 -2
  142. package/data/build/dist/shared/contracts/config.d.ts +15 -0
  143. package/data/build/dist/shared/contracts/config.js +10 -0
  144. package/data/build/dist/shared/contracts/dsh-device.d.ts +2 -0
  145. package/data/build/dist/shared/contracts/errors.d.ts +14 -0
  146. package/data/build/dist/shared/contracts/errors.js +15 -0
  147. package/data/build/dist/shared/contracts/feature.d.ts +2 -0
  148. package/data/build/dist/shared/contracts/file-management.d.ts +6 -0
  149. package/data/build/dist/shared/contracts/file-management.js +3 -0
  150. package/data/build/dist/shared/contracts/peer-host.d.ts +116 -15
  151. package/data/build/dist/shared/contracts/peer-host.js +19 -0
  152. package/data/build/dist/shared/contracts/version.d.ts +1 -1
  153. package/data/build/dist/shared/contracts/version.js +1 -1
  154. package/data/build/dist/shared/index.d.ts +4 -3
  155. package/data/build/dist/shared/index.js +2 -2
  156. package/data/build/dist/transport/debug.d.ts +5 -0
  157. package/data/build/dist/transport/debug.js +23 -1
  158. package/data/build/dist/transport/dsh-transport.d.ts +2 -0
  159. package/data/build/dist/transport/dsh-transport.js +11 -0
  160. package/data/build/dist/transport/webrtc-client.d.ts +2 -0
  161. package/data/build/dist/transport/webrtc-client.js +2 -1
  162. package/data/build/dist/transport/webrtc-host.d.ts +2 -0
  163. package/data/build/dist/transport/webrtc-host.js +6 -3
  164. package/data/build/dist/typert.host.d.ts +1 -1
  165. package/data/build/dist/typert.host.js +2 -1
  166. package/dsh.bundle.patch +10 -0
  167. package/package.json +19 -11
  168. package/profile/README.md +2 -2
  169. package/profile/package.json +2 -2
  170. package/profile/version.json +1 -1
  171. package/version.json +1 -1
@@ -1,5 +1,5 @@
1
1
  export declare const TYPERT: {
2
- readonly package: "codingns4dsh";
2
+ readonly package: "@jingyi0605/codingns4dsh";
3
3
  readonly face: "host";
4
4
  readonly schemas: readonly [];
5
5
  readonly invocations: readonly [Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>];
@@ -92,7 +92,8 @@ const voidResult = (method) => codec(`codingns4dsh#terminal/${method}:result`, z
92
92
  const idParameter = () => json('id', 'id', 'codingns4dsh/shared#WebTerminalId', terminalIdSchema);
93
93
  const attachmentParameter = () => json('attachmentId', 'attachmentId', 'codingns4dsh/shared#TerminalAttachmentId', attachmentIdSchema);
94
94
  export const TYPERT = {
95
- package: 'codingns4dsh',
95
+ // Typert Loader 要求 manifest.package 与导出该 manifest 的 npm 包名完全一致。
96
+ package: '@jingyi0605/codingns4dsh',
96
97
  face: 'host',
97
98
  schemas: [],
98
99
  invocations: [
package/dsh.bundle.patch CHANGED
@@ -7,6 +7,16 @@
7
7
  - id: ui-sidebar-terminal
8
8
  name: '@deepseek-ai/dsh-client-ui-sidebar-terminal'
9
9
  disabled: true
10
+ # 远程访问必须始终使用网页模态框。默认的 auto 会按 Host 环境切换到原生系统选择器,
11
+ # 这对远程浏览器不可达,而且会让同一个“添加工作区”入口出现两套交互。
12
+ - id: directory-picker
13
+ name: '@deepseek-ai/dsh-host-directory-picker-auto'
14
+ disabled: true
15
+ - insert:
16
+ - id: directory-picker-browse
17
+ name: '@deepseek-ai/dsh-host-directory-picker-browse'
18
+ - id: ui-directory-picker-browse
19
+ name: '@deepseek-ai/dsh-client-ui-directory-picker-browse'
10
20
  - insert:
11
21
  - id: '@jingyi0605/codingns4dsh'
12
22
  name: '@jingyi0605/codingns4dsh'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jingyi0605/codingns4dsh",
3
- "version": "0.1.2",
3
+ "version": "0.1.7-rc.3",
4
4
  "description": "Codingns4DSH 插件骨架与连接契约",
5
5
  "repository": {
6
6
  "type": "git",
@@ -115,11 +115,21 @@
115
115
  ],
116
116
  "devDependencies": {
117
117
  "@deepseek-ai/cordis": "^4.0.2",
118
+ "@deepseek-ai/dsh-api-remotes": "0.1.6-alpha.2",
118
119
  "@deepseek-ai/dsh-client-connection": "0.1.6-alpha.2",
120
+ "@deepseek-ai/dsh-client-locale": "0.1.6-alpha.2",
121
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.6-alpha.2",
122
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.6-alpha.2",
123
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.6-alpha.2",
119
124
  "@deepseek-ai/dsh-client-ui-renderer": "0.1.6-alpha.2",
120
125
  "@deepseek-ai/dsh-client-ui-settings": "0.1.6-alpha.2",
121
126
  "@deepseek-ai/dsh-client-ui-slots": "0.1.6-alpha.2",
127
+ "@deepseek-ai/dsh-client-ui-session": "0.1.6-alpha.2",
128
+ "@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.6-alpha.2",
129
+ "@deepseek-ai/dsh-client-ui-theme": "0.1.6-alpha.2",
122
130
  "@deepseek-ai/dsh-settings": "0.1.6-alpha.2",
131
+ "@deepseek-ai/dsh-typert-protocol": "0.1.6-alpha.2",
132
+ "@deepseek-ai/schemastery": "^3.18.3",
123
133
  "@types/react": "~18.3.1",
124
134
  "@types/ws": "^8.18.1",
125
135
  "react": "^18.2.0",
@@ -127,19 +137,17 @@
127
137
  "typescript": "^5.9.2"
128
138
  },
129
139
  "dependencies": {
130
- "@deepseek-ai/dsh-api-remotes": "0.1.6-alpha.2",
131
- "@deepseek-ai/dsh-client-locale": "0.1.6-alpha.2",
132
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.6-alpha.2",
133
- "@deepseek-ai/dsh-client-ui-layout": "0.1.6-alpha.2",
134
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.6-alpha.2",
135
- "@deepseek-ai/dsh-client-ui-session": "0.1.6-alpha.2",
136
- "@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.6-alpha.2",
137
- "@deepseek-ai/dsh-client-ui-theme": "0.1.6-alpha.2",
138
- "@deepseek-ai/dsh-typert-protocol": "0.1.6-alpha.2",
139
- "@deepseek-ai/schemastery": "^3.18.3",
140
+ "@codemirror/lang-css": "^6.3.1",
141
+ "@codemirror/lang-html": "^6.4.12",
142
+ "@codemirror/lang-javascript": "^6.2.5",
143
+ "@codemirror/lang-json": "^6.0.2",
144
+ "@codemirror/lang-markdown": "^6.5.2",
145
+ "@codemirror/lang-python": "^6.2.1",
146
+ "@codemirror/lang-sql": "^6.10.0",
140
147
  "@lydell/node-pty": "1.1.0",
141
148
  "@xterm/addon-fit": "^0.11.0",
142
149
  "@xterm/xterm": "^6.0.0",
150
+ "codemirror": "^6.0.2",
143
151
  "werift": "^0.24.4",
144
152
  "ws": "^8.21.0",
145
153
  "zod": "^4.4.3"
package/profile/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Codingns4DSH Profile
2
2
 
3
- 这是独立的 Codingns4DSH Profile,插件版本为 `0.1.2`,兼容 DSH `>=0.1.5-rc.3 <=0.1.7-rc.2`,当前测试版本为 `0.1.6-alpha.2`。
3
+ 这是独立的 Codingns4DSH Profile,插件版本为 `0.1.7-rc.3`,兼容 DSH `>=0.1.5-rc.3 <=0.1.7-rc.2`,当前测试版本为 `0.1.6-alpha.2`。
4
4
 
5
5
  Profile 只选择 `codingns4dsh` Bundle。`cordis.patch.yml` 保持 `[]`,因为启动期
6
6
  Transport 必须由外部 pre-Cordis 启动胶水在 DSH Client/Cordis 创建前登记,不能由
@@ -9,7 +9,7 @@ Transport 必须由外部 pre-Cordis 启动胶水在 DSH Client/Cordis 创建前
9
9
  发布后,在 DSH 的 Profile 中安装精确版本的插件 Bundle:
10
10
 
11
11
  ```bash
12
- dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.2
12
+ dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.7-rc.3
13
13
  ```
14
14
 
15
15
  Profile 安装完成后,使用 DSH 官方启动器启动:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codingns4dsh-profile",
3
- "version": "0.1.2",
3
+ "version": "0.1.7-rc.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,7 @@
10
10
  "preinstall": "node scripts/check-dsh-install.mjs"
11
11
  },
12
12
  "dependencies": {
13
- "@jingyi0605/codingns4dsh": "0.1.2"
13
+ "@jingyi0605/codingns4dsh": "0.1.7-rc.3"
14
14
  },
15
15
  "dsh": {
16
16
  "profile": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "pluginVersion": "0.1.2",
2
+ "pluginVersion": "0.1.7-rc.3",
3
3
  "dshCompatibility": ">=0.1.5-rc.3 <=0.1.7-rc.2",
4
4
  "dshTestedVersion": "0.1.6-alpha.2"
5
5
  }
package/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "pluginVersion": "0.1.2",
2
+ "pluginVersion": "0.1.7-rc.3",
3
3
  "dshCompatibility": ">=0.1.5-rc.3 <=0.1.7-rc.2",
4
4
  "dshTestedVersion": "0.1.6-alpha.2",
5
5
  "dshProtocolVersion": 1