@jingyi0605/codingns4dsh 0.1.0 → 0.1.2
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/README.en.md +306 -0
- package/README.md +190 -993
- package/data/build/dist/client/account-bar.d.ts +2 -2
- package/data/build/dist/client/account-bar.js +96 -39
- package/data/build/dist/client/bundle.js +13722 -3611
- package/data/build/dist/client/cli-catalog.js +20 -3
- package/data/build/dist/client/cli-slots.d.ts +5 -0
- package/data/build/dist/client/cli-slots.js +57 -7
- package/data/build/dist/client/debug/ui.d.ts +1 -1
- package/data/build/dist/client/debug/ui.js +62 -32
- package/data/build/dist/client/dsh-runtime-version.d.ts +9 -2
- package/data/build/dist/client/dsh-runtime-version.js +24 -2
- package/data/build/dist/client/features/cli-adapters.d.ts +1 -1
- package/data/build/dist/client/features/cli-adapters.js +19 -16
- package/data/build/dist/client/features/debug.js +2 -2
- package/data/build/dist/client/features/index.d.ts +2 -1
- package/data/build/dist/client/features/index.js +3 -1
- package/data/build/dist/client/features/lan-access-panel.d.ts +1 -1
- package/data/build/dist/client/features/lan-access-panel.js +8 -10
- package/data/build/dist/client/features/lan-access.js +1 -1
- package/data/build/dist/client/features/login-protection-panel.d.ts +1 -1
- package/data/build/dist/client/features/login-protection-panel.js +7 -9
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts +1 -1
- package/data/build/dist/client/features/reverse-proxy-panel.js +99 -11
- package/data/build/dist/client/features/reverse-proxy.d.ts +1 -1
- package/data/build/dist/client/features/reverse-proxy.js +19 -18
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +1 -1
- package/data/build/dist/client/features/terminal-enhancement-panel.js +62 -55
- package/data/build/dist/client/features/terminal-enhancement.d.ts +1 -1
- package/data/build/dist/client/features/terminal-enhancement.js +3 -3
- package/data/build/dist/client/features/types.d.ts +14 -3
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +1 -1
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +31 -9
- package/data/build/dist/client/features/workspace-session-enhancement.js +72 -11
- package/data/build/dist/client/git-management.d.ts +16 -0
- package/data/build/dist/client/git-management.js +757 -0
- package/data/build/dist/client/index.d.ts +3 -2
- package/data/build/dist/client/index.js +152 -27
- package/data/build/dist/client/locale.js +91 -29
- package/data/build/dist/client/quick-phrase-layout.d.ts +49 -0
- package/data/build/dist/client/quick-phrase-layout.js +95 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts +7 -0
- package/data/build/dist/client/quick-phrase-slot.js +370 -0
- package/data/build/dist/client/remote-web-context.js +1 -1
- package/data/build/dist/client/settings-bridge.d.ts +9 -6
- package/data/build/dist/client/settings-bridge.js +51 -27
- package/data/build/dist/client/settings-section.d.ts +3 -2
- package/data/build/dist/client/settings-section.js +33 -19
- package/data/build/dist/client/subscription-slot.d.ts +3 -0
- package/data/build/dist/client/subscription-slot.js +108 -16
- package/data/build/dist/client/terminal/model.d.ts +14 -2
- package/data/build/dist/client/terminal/model.js +109 -21
- package/data/build/dist/client/terminal/recovery.d.ts +50 -0
- package/data/build/dist/client/terminal/recovery.js +101 -0
- package/data/build/dist/client/terminal/ui.d.ts +2 -2
- package/data/build/dist/client/terminal/ui.js +49 -11
- package/data/build/dist/client/terminal/xterm-view.d.ts +2 -2
- package/data/build/dist/client/terminal/xterm-view.js +2 -1
- package/data/build/dist/client/theme.d.ts +6 -1
- package/data/build/dist/client/theme.js +32 -1
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +12 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +27 -5
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts +30 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js +604 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts +50 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +139 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js +6 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts +9 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +14 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js +16 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js +5 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts +5 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js +45 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js +13 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js +47 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/index.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/index.js +6 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts +15 -0
- package/data/build/dist/dsh-capabilities/matrix.js +32 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts +22 -0
- package/data/build/dist/dsh-capabilities/registry.js +196 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/routes.js +34 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts +29 -0
- package/data/build/dist/dsh-capabilities/settings-store.js +5 -0
- package/data/build/dist/dsh-capabilities/types.d.ts +50 -0
- package/data/build/dist/dsh-capabilities/types.js +23 -0
- package/data/build/dist/features/registry.d.ts +8 -2
- package/data/build/dist/features/registry.js +104 -1
- package/data/build/dist/host/auth-session.d.ts +8 -1
- package/data/build/dist/host/auth-session.js +28 -6
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +19 -4
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts +14 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js +157 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +166 -14
- package/data/build/dist/host/cli-adapters/driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +15 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +120 -29
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +4 -1
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +25 -7
- package/data/build/dist/host/cli-adapters/feature.js +74 -8
- package/data/build/dist/host/cli-adapters/gemini-driver.js +2 -2
- package/data/build/dist/host/cli-adapters/grok-driver.js +2 -2
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +4 -2
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +8 -9
- package/data/build/dist/host/cli-adapters/kimi-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +88 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js +162 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts +29 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js +361 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +97 -12
- package/data/build/dist/host/cli-adapters/pi-driver.js +69 -23
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts +33 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js +83 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +25 -3
- package/data/build/dist/host/cli-adapters/provider-subscription.js +346 -30
- package/data/build/dist/host/cli-adapters/registry.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/registry.js +170 -13
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +10 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/session-store.js +39 -1
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +22 -2
- package/data/build/dist/host/control-api-client.d.ts +3 -3
- package/data/build/dist/host/control-api-client.js +2 -1
- package/data/build/dist/host/credential-store.js +11 -1
- package/data/build/dist/host/dsh-device-runtime.d.ts +4 -0
- package/data/build/dist/host/dsh-device-runtime.js +20 -9
- package/data/build/dist/host/features/auth.js +8 -5
- package/data/build/dist/host/features/debug.js +1 -1
- package/data/build/dist/host/features/git-management.d.ts +5 -0
- package/data/build/dist/host/features/git-management.js +290 -0
- package/data/build/dist/host/features/host-status.js +1 -1
- package/data/build/dist/host/features/index.d.ts +1 -0
- package/data/build/dist/host/features/index.js +3 -0
- package/data/build/dist/host/features/terminal-process.js +1 -1
- package/data/build/dist/host/features/terminal-status.d.ts +3 -1
- package/data/build/dist/host/features/terminal-status.js +3 -1
- package/data/build/dist/host/index.d.ts +7 -3
- package/data/build/dist/host/index.js +76 -11
- package/data/build/dist/host/lan-access-dsh.js +18 -5
- package/data/build/dist/host/native-session-bridge.d.ts +23 -1
- package/data/build/dist/host/native-session-bridge.js +157 -10
- package/data/build/dist/host/rpc-table.d.ts +1 -1
- package/data/build/dist/host/rpc.js +60 -10
- package/data/build/dist/host/session-migration-repair.d.ts +19 -0
- package/data/build/dist/host/session-migration-repair.js +395 -0
- package/data/build/dist/host/settings.d.ts +8 -1
- package/data/build/dist/host/settings.js +94 -3
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js +4 -2
- package/data/build/dist/host/terminal/controller-factory.d.ts +4 -0
- package/data/build/dist/host/terminal/controller-factory.js +26 -7
- package/data/build/dist/host/terminal/runtime-manager.d.ts +2 -1
- package/data/build/dist/host/terminal/runtime-manager.js +3 -0
- package/data/build/dist/host/terminal/startup.d.ts +2 -0
- package/data/build/dist/host/terminal/startup.js +2 -1
- package/data/build/dist/host/terminal/terminal-controller.d.ts +10 -3
- package/data/build/dist/host/terminal/terminal-controller.js +101 -15
- package/data/build/dist/host/terminal/terminal-process-service.js +3 -1
- package/data/build/dist/host/terminal/terminal-service.d.ts +2 -0
- package/data/build/dist/host/terminal/terminal-service.js +10 -0
- package/data/build/dist/index.d.ts +6 -2
- package/data/build/dist/index.js +8 -2
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +14 -0
- package/data/build/dist/shared/contracts/config.d.ts +31 -1
- package/data/build/dist/shared/contracts/config.js +25 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts +13 -1
- package/data/build/dist/shared/contracts/errors.d.ts +1 -1
- package/data/build/dist/shared/contracts/feature.d.ts +6 -0
- package/data/build/dist/shared/contracts/git.d.ts +82 -0
- package/data/build/dist/shared/contracts/git.js +3 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +46 -0
- package/data/build/dist/shared/contracts/terminal.d.ts +4 -1
- package/data/build/dist/shared/contracts/version.d.ts +2 -2
- package/data/build/dist/shared/contracts/version.js +4 -6
- package/data/build/dist/shared/debug.d.ts +14 -0
- package/data/build/dist/shared/debug.js +53 -0
- package/data/build/dist/shared/index.d.ts +7 -4
- package/data/build/dist/shared/index.js +2 -1
- package/data/build/dist/transport/debug.d.ts +1 -1
- package/data/build/dist/transport/debug.js +3 -30
- package/data/build/dist/transport/dsh-session.js +3 -3
- package/data/build/dist/typert.host.js +4 -2
- package/data/build/dist/typert.remote-client.d.ts +11 -0
- package/data/build/dist/typert.remote-client.js +7 -0
- package/dsh.bundle.patch +1 -1
- package/package.json +17 -5
- package/profile/README.md +4 -4
- package/profile/package.json +6 -4
- package/profile/scripts/check-dsh-install.mjs +2 -2
- package/profile/version.json +2 -2
- package/scripts/check-dsh-install.mjs +2 -2
- package/version.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DSH_ENVELOPE_PROTOCOL, decodeDshEnvelope, encodeDshEnvelope, } from './dsh-envelope.js';
|
|
2
|
-
import { DSH_VERSION } from '../shared/contracts/version.js';
|
|
2
|
+
import { DSH_VERSION, isDshVersionCompatible } from '../shared/contracts/version.js';
|
|
3
3
|
import { createDshTransportDebugLogger } from './debug.js';
|
|
4
4
|
/** 负责 DSH hello/ready、版本能力协商和心跳,不执行任何业务。 */
|
|
5
5
|
export class DshSession {
|
|
@@ -135,7 +135,7 @@ export class DshSession {
|
|
|
135
135
|
}
|
|
136
136
|
const protocol = envelope.meta.protocol;
|
|
137
137
|
const dshVersion = envelope.meta.dshVersion;
|
|
138
|
-
if (protocol !== (this.options.protocol ?? DSH_ENVELOPE_PROTOCOL) || dshVersion !== (
|
|
138
|
+
if (protocol !== (this.options.protocol ?? DSH_ENVELOPE_PROTOCOL) || typeof dshVersion !== 'string' || !isDshVersionCompatible(dshVersion)) {
|
|
139
139
|
this.fail(new Error('PROTOCOL_VERSION_UNSUPPORTED'));
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
@@ -156,7 +156,7 @@ export class DshSession {
|
|
|
156
156
|
}
|
|
157
157
|
const protocol = envelope.meta.protocol;
|
|
158
158
|
const dshVersion = envelope.meta.dshVersion;
|
|
159
|
-
if (protocol !== (this.options.protocol ?? DSH_ENVELOPE_PROTOCOL) || dshVersion !== (
|
|
159
|
+
if (protocol !== (this.options.protocol ?? DSH_ENVELOPE_PROTOCOL) || typeof dshVersion !== 'string' || !isDshVersionCompatible(dshVersion)) {
|
|
160
160
|
this.fail(new Error('PROTOCOL_VERSION_UNSUPPORTED'));
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 这里不能重导出官方 terminal-controller 的 TYPERT:DSH loader 会校验
|
|
5
5
|
* manifest.package 必须属于实际导出它的 npm 包。下面的 endpoint、wire 字段和
|
|
6
|
-
* codec 与 DSH 0.1.6-alpha.2 对齐,但 package 与 invocation id 均归本包所有。
|
|
6
|
+
* codec 与 DSH 0.1.6-alpha.2 对齐,但 package、namespace 与 invocation id 均归本包所有。
|
|
7
7
|
*/
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
const sessionIdSchema = z.string();
|
|
@@ -76,7 +76,9 @@ function invocation(method, parameters, result, options = {}) {
|
|
|
76
76
|
return {
|
|
77
77
|
id: `codingns4dsh#terminal/${method}`,
|
|
78
78
|
service: 'terminalController',
|
|
79
|
-
|
|
79
|
+
// DSH 0.1.7 的 api-remotes/client 会自动挂载官方 remote.terminal;
|
|
80
|
+
// 使用独立命名空间才能确保终端 UI 实际调用 Codingns4DSH Host controller。
|
|
81
|
+
namespace: 'codingnsTerminal',
|
|
80
82
|
method,
|
|
81
83
|
...(options.stream === true ? { mode: 'stream' } : {}),
|
|
82
84
|
invocation: { kind: 'direct' },
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client 侧 Typert Remote 描述。
|
|
3
|
+
*
|
|
4
|
+
* DSH 0.1.7 的 api-remotes/client 会自动提供官方 `remote.terminal`,
|
|
5
|
+
* 因此 codingns4dsh 必须使用独立的 `remote.codingnsTerminal` 描述。
|
|
6
|
+
* Host 与 Client 共用同一份 invocation 形状,避免两边的 endpoint 漂移。
|
|
7
|
+
*/
|
|
8
|
+
import type { TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol';
|
|
9
|
+
export declare const TYPERT_REMOTE: TypertRemoteContribution;
|
|
10
|
+
export default TYPERT_REMOTE;
|
|
11
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|
package/dsh.bundle.patch
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jingyi0605/codingns4dsh",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Codingns4DSH
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Codingns4DSH 插件骨架与连接契约",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/jingyi0605/Codingns4DSH"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"main": "./data/build/dist/index.js",
|
|
7
11
|
"types": "./data/build/dist/index.d.ts",
|
|
@@ -18,6 +22,10 @@
|
|
|
18
22
|
"types": "./data/build/dist/typert.host.d.ts",
|
|
19
23
|
"default": "./data/build/dist/typert.host.js"
|
|
20
24
|
},
|
|
25
|
+
"./remote": {
|
|
26
|
+
"types": "./data/build/dist/typert.remote-client.d.ts",
|
|
27
|
+
"default": "./data/build/dist/typert.remote-client.js"
|
|
28
|
+
},
|
|
21
29
|
"./client": {
|
|
22
30
|
"types": "./data/build/dist/client/index.d.ts",
|
|
23
31
|
"default": "./data/build/dist/client/bundle.js"
|
|
@@ -45,11 +53,11 @@
|
|
|
45
53
|
"./package.json": "./package.json"
|
|
46
54
|
},
|
|
47
55
|
"engines": {
|
|
48
|
-
"dsh": ">=0.1.5-rc.3
|
|
56
|
+
"dsh": ">=0.1.5-rc.3 <=0.1.7-rc.2",
|
|
49
57
|
"node": ">=22.19.0"
|
|
50
58
|
},
|
|
51
59
|
"peerDependencies": {
|
|
52
|
-
"@deepseek-ai/dsh": ">=0.1.5-rc.3
|
|
60
|
+
"@deepseek-ai/dsh": ">=0.1.5-rc.3 <=0.1.7-rc.2"
|
|
53
61
|
},
|
|
54
62
|
"dsh": {
|
|
55
63
|
"manifestVersion": 1,
|
|
@@ -63,9 +71,11 @@
|
|
|
63
71
|
"@deepseek-ai/dsh-client-connection",
|
|
64
72
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
65
73
|
"@deepseek-ai/dsh-client-ui-layout",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
66
75
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
67
76
|
"@deepseek-ai/dsh-client-ui-renderer",
|
|
68
77
|
"@deepseek-ai/dsh-client-ui-session",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-workspace",
|
|
69
79
|
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
70
80
|
"@deepseek-ai/dsh-client-ui-theme"
|
|
71
81
|
],
|
|
@@ -76,6 +86,8 @@
|
|
|
76
86
|
"scripts": {
|
|
77
87
|
"preinstall": "node scripts/check-dsh-install.mjs",
|
|
78
88
|
"version:check": "node scripts/check-version-sync.mjs",
|
|
89
|
+
"capability:check": "node scripts/check-capability-retirement.mjs",
|
|
90
|
+
"capability:report": "node scripts/generate-capability-report.mjs",
|
|
79
91
|
"version:set-plugin": "node scripts/set-plugin-version.mjs",
|
|
80
92
|
"version:set-dsh": "node scripts/set-dsh-version.mjs",
|
|
81
93
|
"prebuild": "pnpm run version:check",
|
|
@@ -124,7 +136,7 @@
|
|
|
124
136
|
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.6-alpha.2",
|
|
125
137
|
"@deepseek-ai/dsh-client-ui-theme": "0.1.6-alpha.2",
|
|
126
138
|
"@deepseek-ai/dsh-typert-protocol": "0.1.6-alpha.2",
|
|
127
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
139
|
+
"@deepseek-ai/schemastery": "^3.18.3",
|
|
128
140
|
"@lydell/node-pty": "1.1.0",
|
|
129
141
|
"@xterm/addon-fit": "^0.11.0",
|
|
130
142
|
"@xterm/xterm": "^6.0.0",
|
package/profile/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Codingns4DSH
|
|
1
|
+
# Codingns4DSH Profile
|
|
2
2
|
|
|
3
|
-
这是独立的 Codingns4DSH Profile,插件版本为 `0.1.
|
|
3
|
+
这是独立的 Codingns4DSH Profile,插件版本为 `0.1.2`,兼容 DSH `>=0.1.5-rc.3 <=0.1.7-rc.2`,当前测试版本为 `0.1.6-alpha.2`。
|
|
4
4
|
|
|
5
|
-
Profile 只选择
|
|
5
|
+
Profile 只选择 `codingns4dsh` Bundle。`cordis.patch.yml` 保持 `[]`,因为启动期
|
|
6
6
|
Transport 必须由外部 pre-Cordis 启动胶水在 DSH Client/Cordis 创建前登记,不能由
|
|
7
7
|
普通动态插件覆盖默认 `connection`。
|
|
8
8
|
|
|
9
9
|
发布后,在 DSH 的 Profile 中安装精确版本的插件 Bundle:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.
|
|
12
|
+
dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.2
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Profile 安装完成后,使用 DSH 官方启动器启动:
|
package/profile/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codingns4dsh-profile",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
|
-
"dsh": ">=0.1.5-rc.3
|
|
7
|
+
"dsh": ">=0.1.5-rc.3 <=0.1.7-rc.2"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"preinstall": "node scripts/check-dsh-install.mjs"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jingyi0605/codingns4dsh": "0.1.
|
|
13
|
+
"@jingyi0605/codingns4dsh": "0.1.2"
|
|
14
14
|
},
|
|
15
15
|
"dsh": {
|
|
16
16
|
"profile": {
|
|
17
|
-
"bundles": [
|
|
17
|
+
"bundles": [
|
|
18
|
+
"@jingyi0605/codingns4dsh"
|
|
19
|
+
]
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -33,13 +33,13 @@ function readVersionFromCommand() {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function isCompatible(actual, range) {
|
|
36
|
-
const match = typeof range === 'string' ? /^>=([^ ]+)
|
|
36
|
+
const match = typeof range === 'string' ? /^>=([^ ]+) <=([^ ]+)$/u.exec(range) : undefined
|
|
37
37
|
if (!match) return false
|
|
38
38
|
const actualVersion = parseVersion(actual)
|
|
39
39
|
const minimum = parseVersion(match[1])
|
|
40
40
|
const maximum = parseVersion(match[2])
|
|
41
41
|
if (!actualVersion || !minimum || !maximum) return false
|
|
42
|
-
return compareVersions(actualVersion, minimum) >= 0 && compareVersions(actualVersion, maximum)
|
|
42
|
+
return compareVersions(actualVersion, minimum) >= 0 && compareVersions(actualVersion, maximum) <= 0
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function parseVersion(value) {
|
package/profile/version.json
CHANGED
|
@@ -45,13 +45,13 @@ function readVersionFromCommand() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
function isCompatible(actual, range) {
|
|
48
|
-
const match = /^>=([^ ]+)
|
|
48
|
+
const match = /^>=([^ ]+) <=([^ ]+)$/u.exec(range)
|
|
49
49
|
if (!match) return false
|
|
50
50
|
const actualVersion = parseVersion(actual)
|
|
51
51
|
const minimum = parseVersion(match[1])
|
|
52
52
|
const maximum = parseVersion(match[2])
|
|
53
53
|
if (!actualVersion || !minimum || !maximum) return false
|
|
54
|
-
return compareVersions(actualVersion, minimum) >= 0 && compareVersions(actualVersion, maximum)
|
|
54
|
+
return compareVersions(actualVersion, minimum) >= 0 && compareVersions(actualVersion, maximum) <= 0
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function parseVersion(value) {
|
package/version.json
CHANGED