dsh-remote 0.8.94 → 1.1.1

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 (196) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +128 -370
  3. package/README.md +129 -355
  4. package/cordis.patch.yml +9 -9
  5. package/lib/audit.js +45 -45
  6. package/lib/auto-update.js +70 -0
  7. package/lib/binding.js +174 -172
  8. package/lib/boot.js +42 -42
  9. package/lib/client.js +6381 -4662
  10. package/lib/credential.js +277 -270
  11. package/lib/errors.js +141 -141
  12. package/lib/exec-job.js +245 -242
  13. package/lib/file-changes.js +57 -0
  14. package/lib/file-reference.js +457 -457
  15. package/lib/forwards.js +258 -258
  16. package/lib/host-api.js +822 -822
  17. package/lib/hostkey.js +108 -108
  18. package/lib/http-transport.js +201 -201
  19. package/lib/ignore.js +202 -202
  20. package/lib/index.js +4555 -4488
  21. package/lib/instructions-dynamic.js +415 -415
  22. package/lib/instructions.js +288 -288
  23. package/lib/open-folder.js +56 -56
  24. package/lib/openssh.js +950 -940
  25. package/lib/paths.js +292 -292
  26. package/lib/pool.js +1029 -1029
  27. package/lib/posix-shell.cjs +34 -34
  28. package/lib/registry.js +296 -296
  29. package/lib/remote-fs.js +179 -173
  30. package/lib/remote-git.js +127 -0
  31. package/lib/remote-sandbox.js +183 -183
  32. package/lib/remote-shell-child.cjs +460 -397
  33. package/lib/remote-shell.js +697 -697
  34. package/lib/remote-skills.js +312 -312
  35. package/lib/remote-write.js +51 -0
  36. package/lib/routes-audit.js +58 -58
  37. package/lib/routes-forwards.js +72 -72
  38. package/lib/routes-fs.js +299 -251
  39. package/lib/routes-machines.js +217 -186
  40. package/lib/routes-misc.js +187 -187
  41. package/lib/routes-term.js +169 -169
  42. package/lib/routes-update.js +147 -143
  43. package/lib/routes-web-attach.js +121 -112
  44. package/lib/routes-workspace.js +325 -312
  45. package/lib/search.js +235 -235
  46. package/lib/self-heal.js +130 -130
  47. package/lib/sftp-surface.js +119 -119
  48. package/lib/sshconfig.js +779 -779
  49. package/lib/sync-status.js +31 -0
  50. package/lib/sync.js +350 -350
  51. package/lib/tasks.js +95 -95
  52. package/lib/telemetry.js +247 -247
  53. package/lib/terminal.js +205 -205
  54. package/lib/tui/flow.js +130 -130
  55. package/lib/tui/format.js +380 -380
  56. package/lib/tui/i18n.js +350 -350
  57. package/lib/tui/index.js +531 -531
  58. package/lib/tui/provider.js +344 -344
  59. package/lib/tui/scene.js +986 -986
  60. package/lib/update.js +497 -490
  61. package/lib/vendor/jsdiff/LICENSE +29 -0
  62. package/lib/vendor/jsdiff/SOURCE.md +4 -0
  63. package/lib/vendor/jsdiff/diff/base.js +254 -0
  64. package/lib/vendor/jsdiff/diff/line.js +66 -0
  65. package/lib/vendor/jsdiff/patch/create.js +229 -0
  66. package/lib/vendor/jsdiff/util/params.js +15 -0
  67. package/lib/web-attach.js +1081 -860
  68. package/lib/workspace-cleanup.js +337 -337
  69. package/lib/workspace-search.js +219 -0
  70. package/node_modules/buildcheck/.eslintrc.js +5 -0
  71. package/node_modules/buildcheck/.github/workflows/ci.yml +88 -0
  72. package/node_modules/buildcheck/.github/workflows/lint.yml +27 -0
  73. package/node_modules/buildcheck/.npmignore +3 -0
  74. package/node_modules/buildcheck/LICENSE +19 -0
  75. package/node_modules/buildcheck/README.md +106 -0
  76. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +250 -0
  77. package/node_modules/buildcheck/lib/findvs.js +361 -0
  78. package/node_modules/buildcheck/lib/index.js +738 -0
  79. package/node_modules/buildcheck/package.json +36 -0
  80. package/node_modules/buildcheck/test/test.js +8 -0
  81. package/node_modules/cpu-features/.eslintrc.js +5 -0
  82. package/node_modules/cpu-features/.github/workflows/ci.yml +74 -0
  83. package/node_modules/cpu-features/.github/workflows/lint.yml +27 -0
  84. package/node_modules/cpu-features/LICENSE +19 -0
  85. package/node_modules/cpu-features/README.md +59 -0
  86. package/node_modules/cpu-features/binding.gyp +16 -0
  87. package/node_modules/cpu-features/buildcheck.js +32 -0
  88. package/node_modules/cpu-features/deps/cpu_features/.clang-format +4 -0
  89. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +31 -0
  90. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +5 -0
  91. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +30 -0
  92. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +22 -0
  93. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +26 -0
  94. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +31 -0
  95. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +43 -0
  96. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +25 -0
  97. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +31 -0
  98. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +24 -0
  99. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +30 -0
  100. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +29 -0
  101. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +28 -0
  102. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +27 -0
  103. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +21 -0
  104. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +329 -0
  105. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +261 -0
  106. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +23 -0
  107. package/node_modules/cpu-features/deps/cpu_features/LICENSE +230 -0
  108. package/node_modules/cpu-features/deps/cpu_features/README.md +272 -0
  109. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +19 -0
  110. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +5 -0
  111. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +11 -0
  112. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +3 -0
  113. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +3 -0
  114. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +30 -0
  115. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +252 -0
  116. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +40 -0
  117. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +64 -0
  118. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +312 -0
  119. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +7 -0
  120. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +48 -0
  121. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +34 -0
  122. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +22 -0
  123. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +11 -0
  124. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +107 -0
  125. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +15 -0
  126. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +105 -0
  127. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +54 -0
  128. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +384 -0
  129. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +259 -0
  130. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +121 -0
  131. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +74 -0
  132. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +149 -0
  133. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +72 -0
  134. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +108 -0
  135. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +288 -0
  136. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +40 -0
  137. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +37 -0
  138. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +39 -0
  139. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +240 -0
  140. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +49 -0
  141. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +110 -0
  142. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +70 -0
  143. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +60 -0
  144. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +4 -0
  145. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +205 -0
  146. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +320 -0
  147. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +12 -0
  148. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +456 -0
  149. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +165 -0
  150. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +75 -0
  151. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +490 -0
  152. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +79 -0
  153. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +19 -0
  154. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +86 -0
  155. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +26 -0
  156. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +22 -0
  157. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +62 -0
  158. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +169 -0
  159. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +88 -0
  160. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +79 -0
  161. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +82 -0
  162. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +138 -0
  163. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +212 -0
  164. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +93 -0
  165. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +163 -0
  166. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +111 -0
  167. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +120 -0
  168. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +2055 -0
  169. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +68 -0
  170. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +58 -0
  171. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +57 -0
  172. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +58 -0
  173. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +132 -0
  174. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +192 -0
  175. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +461 -0
  176. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +114 -0
  177. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +53 -0
  178. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +396 -0
  179. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +384 -0
  180. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +176 -0
  181. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +131 -0
  182. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +180 -0
  183. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +82 -0
  184. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +1729 -0
  185. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +103 -0
  186. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +61 -0
  187. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +52 -0
  188. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +31 -0
  189. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +132 -0
  190. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +202 -0
  191. package/node_modules/cpu-features/lib/index.js +5 -0
  192. package/node_modules/cpu-features/package.json +40 -0
  193. package/node_modules/cpu-features/src/binding.cc +151 -0
  194. package/node_modules/cpu-features/test/test.js +12 -0
  195. package/node_modules/nan/tools/1to2.js +0 -0
  196. package/package.json +107 -103
@@ -0,0 +1,151 @@
1
+ #include <node.h>
2
+ #include <node_buffer.h>
3
+ #include <nan.h>
4
+ #include <ctype.h> // isspace
5
+
6
+ #include "cpu_features_macros.h"
7
+
8
+ #if defined(CPU_FEATURES_ARCH_X86)
9
+ # include "cpuinfo_x86.h"
10
+ # define GetFeatureName GetX86FeaturesEnumName
11
+ # define GetFeatureValue GetX86FeaturesEnumValue
12
+ # define FeatureType X86Features
13
+ # define FeatureEnumType X86FeaturesEnum
14
+ # define LastFeature X86_LAST_
15
+ #elif defined(CPU_FEATURES_ARCH_ARM)
16
+ # include "cpuinfo_arm.h"
17
+ # define GetFeatureName GetArmFeaturesEnumName
18
+ # define GetFeatureValue GetArmFeaturesEnumValue
19
+ # define FeatureType ArmFeatures
20
+ # define FeatureEnumType ArmFeaturesEnum
21
+ # define LastFeature ARM_LAST_
22
+ #elif defined(CPU_FEATURES_ARCH_AARCH64)
23
+ # include "cpuinfo_aarch64.h"
24
+ # define GetFeatureName GetAarch64FeaturesEnumName
25
+ # define GetFeatureValue GetAarch64FeaturesEnumValue
26
+ # define FeatureType Aarch64Features
27
+ # define FeatureEnumType Aarch64FeaturesEnum
28
+ # define LastFeature AARCH64_LAST_
29
+ #elif defined(CPU_FEATURES_ARCH_MIPS)
30
+ # include "cpuinfo_mips.h"
31
+ # define GetFeatureName GetMipsFeaturesEnumName
32
+ # define GetFeatureValue GetMipsFeaturesEnumValue
33
+ # define FeatureType MipsFeatures
34
+ # define FeatureEnumType MipsFeaturesEnum
35
+ # define LastFeature MIPS_LAST_
36
+ #elif defined(CPU_FEATURES_ARCH_PPC)
37
+ # include "cpuinfo_ppc.h"
38
+ # define GetFeatureName GetPPCFeaturesEnumName
39
+ # define GetFeatureValue GetPPCFeaturesEnumValue
40
+ # define FeatureType PPCFeatures
41
+ # define FeatureEnumType PPCFeaturesEnum
42
+ # define LastFeature PPC_LAST_
43
+ #endif
44
+
45
+ #define SET_FLAG(key) \
46
+ Nan::Set(ret, Nan::New<String>(key).ToLocalChecked(), Nan::New<Boolean>(true))
47
+
48
+ #define SET_STR(key, val) \
49
+ Nan::Set(ret, \
50
+ Nan::New<String>(key).ToLocalChecked(), \
51
+ Nan::New<String>(trim(val)).ToLocalChecked())
52
+
53
+ #define SET_NUM(key, val) \
54
+ Nan::Set(ret, Nan::New<String>(key).ToLocalChecked(), Nan::New<Number>(val))
55
+
56
+ #define SET_VAL(key, val) \
57
+ Nan::Set(ret, Nan::New<String>(key).ToLocalChecked(), val)
58
+
59
+ using namespace node;
60
+ using namespace v8;
61
+ using namespace cpu_features;
62
+ using namespace std;
63
+
64
+ static inline void ltrim(string& s) {
65
+ s.erase(s.begin(), find_if(s.begin(), s.end(), [](int ch) {
66
+ return !isspace(ch);
67
+ }));
68
+ }
69
+
70
+ static inline void rtrim(string& s) {
71
+ s.erase(find_if(s.rbegin(), s.rend(), [](int ch) {
72
+ return !isspace(ch);
73
+ }).base(), s.end());
74
+ }
75
+
76
+ static inline string trim(const char* str) {
77
+ string ret = str;
78
+ ltrim(ret);
79
+ rtrim(ret);
80
+ return ret;
81
+ }
82
+
83
+ #if defined(LastFeature)
84
+ Local<Object> GenerateFlags(const FeatureType* features) {
85
+ const auto ret = Nan::New<Object>();
86
+ for (size_t i = 0; i < LastFeature; ++i) {
87
+ const auto enum_val = static_cast<FeatureEnumType>(i);
88
+ if (GetFeatureValue(features, enum_val))
89
+ SET_FLAG(GetFeatureName(enum_val));
90
+ }
91
+ return ret;
92
+ }
93
+ #endif
94
+
95
+ NAN_METHOD(GetCPUInfo) {
96
+ const auto ret = Nan::New<Object>();
97
+ #if defined(CPU_FEATURES_ARCH_X86)
98
+ const X86Info details = GetX86Info();
99
+ SET_STR("arch", "x86");
100
+ SET_STR("brand", details.brand_string);
101
+ SET_NUM("family", details.family);
102
+ SET_NUM("model", details.model);
103
+ SET_NUM("stepping", details.stepping);
104
+ SET_STR("uarch",
105
+ GetX86MicroarchitectureName(GetX86Microarchitecture(&details)));
106
+ SET_VAL("flags", GenerateFlags(&details.features));
107
+ #elif defined(CPU_FEATURES_ARCH_ARM)
108
+ const ArmInfo details = GetArmInfo();
109
+ SET_STR("arch", "arm");
110
+ SET_NUM("implementer", details.implementer);
111
+ SET_NUM("architecture", details.architecture);
112
+ SET_NUM("variant", details.variant);
113
+ SET_NUM("part", details.part);
114
+ SET_NUM("revision", details.revision);
115
+ SET_VAL("flags", GenerateFlags(&details.features));
116
+ #elif defined(CPU_FEATURES_ARCH_AARCH64)
117
+ const Aarch64Info details = GetAarch64Info();
118
+ SET_STR("arch", "aarch64");
119
+ SET_NUM("implementer", details.implementer);
120
+ SET_NUM("variant", details.variant);
121
+ SET_NUM("part", details.part);
122
+ SET_NUM("revision", details.revision);
123
+ SET_VAL("flags", GenerateFlags(&details.features));
124
+ #elif defined(CPU_FEATURES_ARCH_MIPS)
125
+ const MipsInfo details = GetMipsInfo();
126
+ SET_STR("arch", "mips");
127
+ SET_VAL("flags", GenerateFlags(&details.features));
128
+ #elif defined(CPU_FEATURES_ARCH_PPC)
129
+ const PPCInfo details = GetPPCInfo();
130
+ const PPCPlatformStrings strings = GetPPCPlatformStrings();
131
+ SET_STR("arch", "ppc");
132
+ SET_STR("platform", strings.platform);
133
+ SET_STR("model", strings.model);
134
+ SET_STR("machine", strings.machine);
135
+ SET_STR("cpu", strings.cpu);
136
+ SET_STR("instruction set", strings.type.platform);
137
+ SET_STR("microarchitecture", strings.type.base_platform);
138
+ SET_VAL("flags", GenerateFlags(&details.features));
139
+ #else
140
+ SET_STR("arch", "unknown");
141
+ SET_VAL("flags", Nan::New<Object>());
142
+ #endif
143
+ info.GetReturnValue().Set(ret);
144
+ }
145
+
146
+ NAN_MODULE_INIT(init) {
147
+ Nan::Set(target, Nan::New<String>("getCPUInfo").ToLocalChecked(),
148
+ Nan::GetFunction(Nan::New<FunctionTemplate>(GetCPUInfo)).ToLocalChecked());
149
+ }
150
+
151
+ NODE_MODULE(cpufeatures, init)
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const assert = require('assert');
4
+
5
+ const info = require('../lib/index.js')();
6
+
7
+ console.log(info);
8
+ assert(typeof info === 'object' && info !== null);
9
+ assert(typeof info.arch === 'string' && info.arch);
10
+ assert(typeof info.flags === 'object' && info.flags !== null);
11
+ if (process.platform !== 'darwin' && process.arch !== 'arm64')
12
+ assert(Object.keys(info).length > 2); // Assume we are on a known platform
File without changes
package/package.json CHANGED
@@ -1,103 +1,107 @@
1
- {
2
- "name": "dsh-remote",
3
- "version": "0.8.94",
4
- "description": "Remote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive, multi-hop ProxyJump), list hosts from ~/.ssh/config, pick a remote workspace, operate on it with 21 rw_* tools, conflict-aware mirror sync, an embedded PTY terminal, remote DSH web UI attach, port forwarding, host grouping, remote sandbox fencing, audit log, keychain passwords.",
5
- "license": "MIT",
6
- "author": "flymysql <flyphp@outlook.com>",
7
- "readme": "README.md",
8
- "readmeFilename": "README.md",
9
- "homepage": "https://github.com/flymysql/dsh-remote",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/flymysql/dsh-remote.git"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/flymysql/dsh-remote/issues"
16
- },
17
- "keywords": [
18
- "deepseek-harness",
19
- "dsh",
20
- "sandbox",
21
- "terminal",
22
- "dsh-plugin",
23
- "remote",
24
- "ssh",
25
- "tunnel",
26
- "plugin"
27
- ],
28
- "type": "module",
29
- "main": "lib/boot.js",
30
- "exports": {
31
- ".": "./lib/boot.js",
32
- "./client": "./lib/client.js",
33
- "./package.json": "./package.json",
34
- "./cordis.patch.yml": "./cordis.patch.yml"
35
- },
36
- "files": [
37
- "lib",
38
- "cordis.patch.yml"
39
- ],
40
- "dsh": {
41
- "engines": {
42
- "dsh": ">=0.1.0-rc.6 <0.3.0"
43
- },
44
- "bundle": {
45
- "patch": "./cordis.patch.yml"
46
- },
47
- "client": {
48
- "inject": [
49
- "@deepseek-ai/dsh-client-ui-renderer",
50
- "@deepseek-ai/dsh-client-locale"
51
- ],
52
- "platform": "web"
53
- }
54
- },
55
- "peerDependencies": {
56
- "@deepseek-ai/cordis": "^4.1.0",
57
- "@deepseek-ai/dsh-client-connection": ">=0.1.2-rc.1 <0.3.0",
58
- "@deepseek-ai/dsh-client-locale": ">=0.1.2-rc.1 <0.3.0",
59
- "@deepseek-ai/dsh-client-ui-renderer": ">=0.1.2-rc.1 <0.3.0",
60
- "@deepseek-ai/dsh-commands": ">=0.1.0-rc.6 <0.3.0",
61
- "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.6 <0.3.0",
62
- "@deepseek-ai/dsh-system-prompt": ">=0.1.0-rc.6 <0.3.0",
63
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6 <0.3.0"
64
- },
65
- "peerDependenciesMeta": {
66
- "@deepseek-ai/dsh-host-webserver": {
67
- "optional": true
68
- },
69
- "@deepseek-ai/dsh-client-connection": {
70
- "optional": true
71
- }
72
- },
73
- "dependencies": {
74
- "@deepseek-ai/schemastery": "^3.19.0",
75
- "iconv-lite": "^0.7.3",
76
- "ssh2": "^1.16.0",
77
- "yaml": "^2.9.1"
78
- },
79
- "bundleDependencies": [
80
- "ssh2",
81
- "asn1",
82
- "bcrypt-pbkdf",
83
- "tweetnacl"
84
- ],
85
- "devDependencies": {
86
- "@deepseek-ai/cordis": "^4.1.0",
87
- "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
88
- "@deepseek-ai/dsh-sandbox": "^0.2.0-rc.2",
89
- "@deepseek-ai/dsh-scope": "^0.2.0-rc.2",
90
- "@deepseek-ai/dsh-skill": "^0.2.0-rc.2",
91
- "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
92
- "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
93
- "@deepseek-ai/dsh-timeout": "^0.2.0-rc.2",
94
- "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
95
- "react": "^19.3.1",
96
- "semver": "^7.8.5"
97
- },
98
- "scripts": {
99
- "test": "node --import ./test/setup-telemetry-off.mjs --test --test-timeout=40000 --test-force-exit --test-concurrency=8",
100
- "test:coverage": "node scripts/coverage-union.mjs",
101
- "test:coverage:gate": "node scripts/coverage-union.mjs --gate 70 --file-gate 60"
102
- }
103
- }
1
+ {
2
+ "name": "dsh-remote",
3
+ "version": "1.1.1",
4
+ "description": "Remote SSH development for DeepSeek Harness: optional IDE layout, remote file and content search, native editor and terminal tabs, Git diffs, and agent tools with compiler diagnostics.",
5
+ "license": "MIT",
6
+ "author": "flymysql <flyphp@outlook.com>",
7
+ "homepage": "https://flymysql.github.io/dsh-remote/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/flymysql/dsh-remote.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/flymysql/dsh-remote/issues"
14
+ },
15
+ "keywords": [
16
+ "deepseek-harness",
17
+ "dsh",
18
+ "sandbox",
19
+ "terminal",
20
+ "dsh-plugin",
21
+ "remote",
22
+ "ssh",
23
+ "tunnel",
24
+ "plugin",
25
+ "remote-workspace",
26
+ "remote-development",
27
+ "sftp"
28
+ ],
29
+ "type": "module",
30
+ "main": "lib/boot.js",
31
+ "exports": {
32
+ ".": "./lib/boot.js",
33
+ "./client": "./lib/client.js",
34
+ "./package.json": "./package.json",
35
+ "./cordis.patch.yml": "./cordis.patch.yml"
36
+ },
37
+ "files": [
38
+ "lib",
39
+ "cordis.patch.yml"
40
+ ],
41
+ "dsh": {
42
+ "engines": {
43
+ "dsh": ">=0.1.0-rc.6 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3"
44
+ },
45
+ "bundle": {
46
+ "patch": "./cordis.patch.yml"
47
+ },
48
+ "client": {
49
+ "inject": [
50
+ "@deepseek-ai/dsh-client-ui-renderer",
51
+ "@deepseek-ai/dsh-client-locale"
52
+ ],
53
+ "platform": "web"
54
+ }
55
+ },
56
+ "peerDependencies": {
57
+ "@deepseek-ai/cordis": "^4.0.4",
58
+ "@deepseek-ai/dsh-client-connection": ">=0.1.2-rc.1 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
59
+ "@deepseek-ai/dsh-client-locale": ">=0.1.2-rc.1 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
60
+ "@deepseek-ai/dsh-client-ui-renderer": ">=0.1.2-rc.1 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
61
+ "@deepseek-ai/dsh-commands": ">=0.1.0-rc.6 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
62
+ "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.6 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
63
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.0-rc.6 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3",
64
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6 <0.3.0 || >=0.1.5-0 <0.1.6 || >=0.1.7-0 <0.1.8 || >=0.2.0-0 <0.2.1 || >=0.2.1-0 <0.2.2 || >=0.2.2-0 <0.2.3"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "@deepseek-ai/dsh-host-webserver": {
68
+ "optional": true
69
+ },
70
+ "@deepseek-ai/dsh-client-connection": {
71
+ "optional": true
72
+ }
73
+ },
74
+ "dependencies": {
75
+ "@deepseek-ai/schemastery": "^3.19.0",
76
+ "iconv-lite": "^0.7.3",
77
+ "ssh2": "^1.16.0",
78
+ "yaml": "^2.9.1"
79
+ },
80
+ "bundleDependencies": [
81
+ "ssh2",
82
+ "asn1",
83
+ "bcrypt-pbkdf",
84
+ "tweetnacl"
85
+ ],
86
+ "devDependencies": {
87
+ "@deepseek-ai/cordis": "^4.1.0",
88
+ "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
89
+ "@deepseek-ai/dsh-sandbox": "^0.2.0-rc.2",
90
+ "@deepseek-ai/dsh-scope": "^0.2.0-rc.2",
91
+ "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
92
+ "@deepseek-ai/dsh-skill": "^0.2.0-rc.2",
93
+ "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
94
+ "@deepseek-ai/dsh-timeout": "^0.2.0-rc.2",
95
+ "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
96
+ "react": "^19.3.1",
97
+ "semver": "^7.8.5",
98
+ "diff": "8.0.4"
99
+ },
100
+ "scripts": {
101
+ "test": "node --import ./test/setup-telemetry-off.mjs --test --test-timeout=40000 --test-force-exit --test-concurrency=8",
102
+ "test:coverage": "node scripts/coverage-union.mjs",
103
+ "test:coverage:gate": "node scripts/coverage-union.mjs --gate 70 --file-gate 60"
104
+ },
105
+ "readme": "[English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md) · **中文**\n\n# dsh-remote\n\n[![npm version](https://img.shields.io/npm/v/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dw/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![downloads](https://img.shields.io/npm/dm/dsh-remote)](https://www.npmjs.com/package/dsh-remote)\n[![license](https://img.shields.io/github/license/flymysql/dsh-remote)](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n[![dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-7a3ef3)](https://github.com/topics/dsh-plugin)\n\n由 [@flymysql](https://github.com/flymysql) 维护 · [主页](https://flymysql.github.io/dsh-remote/) · [用量统计](https://flymysql.github.io/dsh-remote/stats/) · [博客](https://gitpull.cn) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [Issue](https://github.com/flymysql/dsh-remote/issues) · [English](https://github.com/flymysql/dsh-remote/blob/main/README.en.md)\n\n在 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 中,把 SSH 主机变成日常开发工作区:浏览远程文件、编辑代码、运行终端,让 Agent 在同一远端完成任务。多个工作区可并行连接不同主机。\n\n**IDE 模式:左侧文件,中间编辑器,右侧原生 Agent 会话。** 可调整栏宽;窄屏切换文件、编辑器与会话。切回普通布局保留任务和未保存编辑。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-ide.png\" alt=\"DSH 远程工作区 IDE 模式:远程文件树、代码编辑器和原生 Agent 会话三栏\" width=\"1200\"/>\n\n## 安装\n\n```bash\ndsh plugin --profile web add dsh-remote\n```\n\n安装或升级后,重启 DSH Web 并刷新页面。自动更新状态在设置 → 远程工作区 → 插件偏好中查看。\n\n## 3 步开始\n\n1. **配置主机**:设置 → 远程工作区,编辑 SSH 配置或保存主机凭据;打开设置会自动检查连通性,无需手动“连接”。\n2. **创建工作区**:添加工作区 → 远程,选择主机与目录。每个工作区独立绑定主机,设置页不选目录或“当前远程机”。\n3. **开始开发**:打开工作区文件或切换 IDE 模式,在远端编辑、搜索、运行命令并与 Agent 协作。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workspace-picker-browse.png\" alt=\"选择远程目录:固定路径与确认栏,目录列表占据弹窗主要区域\" width=\"720\"/>\n\n## 日常开发\n\n### 搜索远端文件与内容\n\n文件、目录和内容递归搜索,无需先展开目录或同步镜像。默认界面只显示搜索范围与进度摘要;按需展开搜索选项、扫描详情,支持大小写、忽略项、停止与重试。点击结果进入目录或文件对应行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-search-results.png\" alt=\"简洁远程搜索:名称搜索结果包含嵌套目录与文件\" width=\"675\"/>\n\n### 查看远端 Git 改动\n\n分别查看工作区和已暂存 diff,筛选文件,点击改动行定位源码。面板只读,不提交或修改暂存区。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-git.png\" alt=\"远端 Git 工作区与已暂存改动、文件列表和源码 diff\" width=\"675\"/>\n\n### 在远端运行终端\n\n终端进入当前会话的远程目录;像素鱼欢迎图后接真实 SSH shell。已保存凭据可自动应答,支持多终端并行。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-terminal.png\" alt=\"DSH 远程终端:像素鱼欢迎图与实际 SSH 命令输出\" width=\"1000\"/>\n\n### 与 Agent 一起修改和构建\n\n工具卡展示已应用改动、实际退出码和构建输出,编译诊断可跳转源码。编辑器保存会检测远端冲突、保留 CRLF,并保护保存期间继续输入的内容。\n\n<img src=\"https://raw.githubusercontent.com/flymysql/dsh-remote/main/docs/shots/workbench-applied-diff.png\" alt=\"Agent 远程编辑成功后的已应用 diff、路径与增删行数\" width=\"485\"/>\n\n## 兼容与边界\n\n- 主要面向 **DSH Web 0.2.x**;0.2.2 需要 **Node.js ≥24.9**。旧版宿主回退、Desktop/TUI 与 Agent diff 差异见[兼容说明](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md#dsh-版本兼容性)。\n- 文件栏直接访问远端;镜像按需同步。草稿在当前页面内存,崩溃或强制退出仍可能丢失。\n- 不提供远端语言服务、扩展宿主或调试器。Agent 使用配置的 SSH 身份执行命令,请只配置可信主机。\n\n## 文档与社区\n\n[完整工具与配置参考](https://github.com/flymysql/dsh-remote/blob/main/docs/reference.zh.md) · [排障](https://github.com/flymysql/dsh-remote/blob/main/docs/troubleshooting.md) · [升级指南](https://github.com/flymysql/dsh-remote/blob/main/docs/migration-1.0.md) · [更新记录](https://github.com/flymysql/dsh-remote/blob/main/CHANGELOG.md)\n\n[主页](https://flymysql.github.io/dsh-remote/) · [讨论区](https://github.com/flymysql/dsh-remote/discussions) · [反馈问题](https://github.com/flymysql/dsh-remote/issues) · [贡献指南](https://github.com/flymysql/dsh-remote/blob/main/CONTRIBUTING.md) · [贡献者与致谢](#贡献者与致谢)\n\n由 [@flymysql](https://github.com/flymysql) 与社区共同维护 · [MIT](https://github.com/flymysql/dsh-remote/blob/main/LICENSE)\n\n### 贡献者与致谢\n\n感谢每一位让这个项目更好的朋友(头像可点进主页;按提交数排序,机器人不计):\n\n<p align=\"left\">\n <a href=\"https://github.com/flymysql\"><img src=\"https://avatars.githubusercontent.com/u/37113068?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@flymysql\" title=\"@flymysql\" /></a>\n <a href=\"https://github.com/baiseraku\"><img src=\"https://avatars.githubusercontent.com/u/139727690?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@baiseraku\" title=\"@baiseraku\" /></a>\n <a href=\"https://github.com/glzhangzhi\"><img src=\"https://avatars.githubusercontent.com/u/36995275?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@glzhangzhi\" title=\"@glzhangzhi\" /></a>\n <a href=\"https://github.com/hjwsm1989\"><img src=\"https://avatars.githubusercontent.com/u/1067541?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@hjwsm1989\" title=\"@hjwsm1989\" /></a>\n <a href=\"https://github.com/j10ha0\"><img src=\"https://avatars.githubusercontent.com/u/72346906?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@j10ha0\" title=\"@j10ha0\" /></a>\n <a href=\"https://github.com/FoolishWiser\"><img src=\"https://avatars.githubusercontent.com/u/104308087?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FoolishWiser\" title=\"@FoolishWiser\" /></a>\n <a href=\"https://github.com/kakaa-nju\"><img src=\"https://avatars.githubusercontent.com/u/79886619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@kakaa-nju\" title=\"@kakaa-nju\" /></a>\n <a href=\"https://github.com/4FMTWRV\"><img src=\"https://avatars.githubusercontent.com/u/190457700?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@4FMTWRV\" title=\"@4FMTWRV\" /></a>\n <a href=\"https://github.com/dahaipeng\"><img src=\"https://avatars.githubusercontent.com/u/25660610?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@dahaipeng\" title=\"@dahaipeng\" /></a>\n <a href=\"https://github.com/davidlin2k\"><img src=\"https://avatars.githubusercontent.com/u/17074619?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@davidlin2k\" title=\"@davidlin2k\" /></a>\n <a href=\"https://github.com/FlintyLemming\"><img src=\"https://avatars.githubusercontent.com/u/19165511?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@FlintyLemming\" title=\"@FlintyLemming\" /></a>\n <a href=\"https://github.com/GDWhisper\"><img src=\"https://avatars.githubusercontent.com/u/129148123?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@GDWhisper\" title=\"@GDWhisper\" /></a>\n <a href=\"https://github.com/YiHui-Liu\"><img src=\"https://avatars.githubusercontent.com/u/30190271?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@YiHui-Liu\" title=\"@YiHui-Liu\" /></a>\n <a href=\"https://github.com/Minggle\"><img src=\"https://avatars.githubusercontent.com/u/35053182?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@Minggle\" title=\"@Minggle\" /></a>\n <a href=\"https://github.com/nekomona\"><img src=\"https://avatars.githubusercontent.com/u/25474483?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@nekomona\" title=\"@nekomona\" /></a>\n <a href=\"https://github.com/shis23\"><img src=\"https://avatars.githubusercontent.com/u/189869650?s=80&v=4\" width=\"40\" height=\"40\" alt=\"@shis23\" title=\"@shis23\" /></a>\n</p>\n\n<details>\n<summary>贡献记录与早期贡献者</summary>\n\n近期的亮点贡献(欢迎随时加入这个名单):\n\n| 贡献者 | 做了什么 |\n| --- | --- |\n| [@baiseraku](https://github.com/baiseraku) | 整个 dsh-tui 适配层([#92](https://github.com/flymysql/dsh-remote/pull/92))+ 底栏机器名修正([#98](https://github.com/flymysql/dsh-remote/pull/98)) |\n| [@hjwsm1989](https://github.com/hjwsm1989) | 远程 .md 渲染连环两道:memo 守卫([#102](https://github.com/flymysql/dsh-remote/pull/102))+ labels 契约([#107](https://github.com/flymysql/dsh-remote/pull/107)) |\n| [@shis23](https://github.com/shis23) | rw_sync 路径映射纠偏 + SFTP 超时韧性([#105](https://github.com/flymysql/dsh-remote/pull/105)) |\n| [@davidlin2k](https://github.com/davidlin2k) | 无凭据机器走用户自有 ssh([#100](https://github.com/flymysql/dsh-remote/pull/100)) |\n| [@GDWhisper](https://github.com/GDWhisper) | 目录补全逐字符重连修复([#42](https://github.com/flymysql/dsh-remote/pull/42),issue #41) |\n| [@glzhangzhi](https://github.com/glzhangzhi) | 多远端会话的连接池隔离(issue #25 的主体修复) |\n\n早期已合并 PR 的贡献者(考古名单):\n\n\n\n[@dahaipeng](https://github.com/dahaipeng) (#31) ·\n[@YiHui-Liu](https://github.com/YiHui-Liu) (#28) ·\n[@nekomona](https://github.com/nekomona) (#24) ·\n[@zhz1667](https://github.com/zhz1667) (#43) ·\n[FoolishWiser](https://github.com/FoolishWiser) (#17) ·\n[@jace1cch](https://github.com/jace1cch) (#16) ·\n[@Minggle](https://github.com/Minggle) (#10) ·\n[4FMTWRV](https://github.com/4FMTWRV) (#6) ·\n[glzhangzhi](https://github.com/glzhangzhi)(per-session SSH 连接池修复)\n\n> 名单随版本更新;头像墙之外的每一份 issue 报告、复现步骤、根因线索同样珍贵——\n> 本仓库近半修复的起点都是一条写清楚的 issue。\n\n</details>\n",
106
+ "readmeFilename": "README.md"
107
+ }