dsh-remote-control 1.0.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 +21 -0
- package/cordis.patch.yml +21 -0
- package/dist/bundle/index.js +33956 -0
- package/dist/src/core/clock.d.ts +45 -0
- package/dist/src/core/clock.js +83 -0
- package/dist/src/core/clock.js.map +1 -0
- package/dist/src/core/keys.d.ts +98 -0
- package/dist/src/core/keys.js +176 -0
- package/dist/src/core/keys.js.map +1 -0
- package/dist/src/core/pairing-window.d.ts +95 -0
- package/dist/src/core/pairing-window.js +92 -0
- package/dist/src/core/pairing-window.js.map +1 -0
- package/dist/src/core/runtime.d.ts +104 -0
- package/dist/src/core/runtime.js +491 -0
- package/dist/src/core/runtime.js.map +1 -0
- package/dist/src/core/sleep-policy.d.ts +81 -0
- package/dist/src/core/sleep-policy.js +134 -0
- package/dist/src/core/sleep-policy.js.map +1 -0
- package/dist/src/core/window.d.ts +88 -0
- package/dist/src/core/window.js +185 -0
- package/dist/src/core/window.js.map +1 -0
- package/dist/src/index.d.ts +70 -0
- package/dist/src/index.js +882 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/platform/carrier-services.d.ts +96 -0
- package/dist/src/platform/carrier-services.js +982 -0
- package/dist/src/platform/carrier-services.js.map +1 -0
- package/dist/src/platform/guard.d.ts +60 -0
- package/dist/src/platform/guard.js +124 -0
- package/dist/src/platform/guard.js.map +1 -0
- package/dist/src/platform/mock-kernel.d.ts +95 -0
- package/dist/src/platform/mock-kernel.js +180 -0
- package/dist/src/platform/mock-kernel.js.map +1 -0
- package/dist/src/platform/qr.d.ts +28 -0
- package/dist/src/platform/qr.js +80 -0
- package/dist/src/platform/qr.js.map +1 -0
- package/dist/src/platform/sleep-posix.d.ts +17 -0
- package/dist/src/platform/sleep-posix.js +91 -0
- package/dist/src/platform/sleep-posix.js.map +1 -0
- package/dist/src/ports/index.d.ts +246 -0
- package/dist/src/ports/index.js +2 -0
- package/dist/src/ports/index.js.map +1 -0
- package/dist/src/shell/config.d.ts +56 -0
- package/dist/src/shell/config.js +212 -0
- package/dist/src/shell/config.js.map +1 -0
- package/dist/src/shell/pairing-text.d.ts +38 -0
- package/dist/src/shell/pairing-text.js +22 -0
- package/dist/src/shell/pairing-text.js.map +1 -0
- package/dist/src/shell/status.d.ts +39 -0
- package/dist/src/shell/status.js +119 -0
- package/dist/src/shell/status.js.map +1 -0
- package/dist/src/transport/relay.d.ts +107 -0
- package/dist/src/transport/relay.js +359 -0
- package/dist/src/transport/relay.js.map +1 -0
- package/dist/tests/carrier-events.test.d.ts +1 -0
- package/dist/tests/carrier-events.test.js +88 -0
- package/dist/tests/carrier-events.test.js.map +1 -0
- package/dist/tests/carrier-services.test.d.ts +1 -0
- package/dist/tests/carrier-services.test.js +562 -0
- package/dist/tests/carrier-services.test.js.map +1 -0
- package/dist/tests/carrier-vocabulary.test.d.ts +1 -0
- package/dist/tests/carrier-vocabulary.test.js +149 -0
- package/dist/tests/carrier-vocabulary.test.js.map +1 -0
- package/dist/tests/clock-probe-timers.test.d.ts +1 -0
- package/dist/tests/clock-probe-timers.test.js +73 -0
- package/dist/tests/clock-probe-timers.test.js.map +1 -0
- package/dist/tests/command-result.test.d.ts +1 -0
- package/dist/tests/command-result.test.js +185 -0
- package/dist/tests/command-result.test.js.map +1 -0
- package/dist/tests/config.test.d.ts +1 -0
- package/dist/tests/config.test.js +223 -0
- package/dist/tests/config.test.js.map +1 -0
- package/dist/tests/guard.test.d.ts +1 -0
- package/dist/tests/guard.test.js +175 -0
- package/dist/tests/guard.test.js.map +1 -0
- package/dist/tests/ids-and-keys.test.d.ts +1 -0
- package/dist/tests/ids-and-keys.test.js +211 -0
- package/dist/tests/ids-and-keys.test.js.map +1 -0
- package/dist/tests/pairing-text.test.d.ts +1 -0
- package/dist/tests/pairing-text.test.js +62 -0
- package/dist/tests/pairing-text.test.js.map +1 -0
- package/dist/tests/pairing-window.test.d.ts +1 -0
- package/dist/tests/pairing-window.test.js +165 -0
- package/dist/tests/pairing-window.test.js.map +1 -0
- package/dist/tests/relay-client.test.d.ts +1 -0
- package/dist/tests/relay-client.test.js +557 -0
- package/dist/tests/relay-client.test.js.map +1 -0
- package/dist/tests/runtime.test.d.ts +1 -0
- package/dist/tests/runtime.test.js +963 -0
- package/dist/tests/runtime.test.js.map +1 -0
- package/dist/tests/sleep.test.d.ts +1 -0
- package/dist/tests/sleep.test.js +264 -0
- package/dist/tests/sleep.test.js.map +1 -0
- package/dist/tests/status.test.d.ts +1 -0
- package/dist/tests/status.test.js +238 -0
- package/dist/tests/status.test.js.map +1 -0
- package/dist/tests/window.test.d.ts +1 -0
- package/dist/tests/window.test.js +210 -0
- package/dist/tests/window.test.js.map +1 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 providcc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 随插件分发的默认配置行(profile 自己的 cordis.patch.yml 会覆盖这里的值)。
|
|
2
|
+
#
|
|
3
|
+
# 刻意**不写 inject 闸门**:本插件对每个内核面都做软探测,
|
|
4
|
+
# 写闸门只会让"某一代宿主缺某个服务"时整行不激活、插件静默不加载——
|
|
5
|
+
# 那比带着次优配置跑起来更难排查(取证 docs/legacy-spec/host-plugin-cordis.md §2.2/§2.3)。
|
|
6
|
+
- insert:
|
|
7
|
+
- id: dsh-remote-control
|
|
8
|
+
name: dsh-remote-control
|
|
9
|
+
config:
|
|
10
|
+
enabled: true
|
|
11
|
+
serverUrl: ws://127.0.0.1:8787
|
|
12
|
+
hostTokenEnv: DRC_HOST_TOKEN
|
|
13
|
+
hostLabel: dsh-host
|
|
14
|
+
unarchiveOnPrompt: true
|
|
15
|
+
takeOverQuestions: false
|
|
16
|
+
listingRefreshSec: 15
|
|
17
|
+
approvalTimeoutSec: 180
|
|
18
|
+
keepAwake:
|
|
19
|
+
enabled: true
|
|
20
|
+
idleReleaseSec: 300
|
|
21
|
+
keepDisplay: false
|