dsh-remote 0.8.91 → 0.8.93
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 -21
- package/README.en.md +369 -368
- package/README.md +354 -353
- package/cordis.patch.yml +9 -9
- package/lib/audit.js +45 -45
- package/lib/binding.js +172 -172
- package/lib/client.js +4647 -4550
- package/lib/credential.js +270 -263
- package/lib/errors.js +141 -141
- package/lib/exec-job.js +242 -242
- package/lib/file-reference.js +457 -457
- package/lib/forwards.js +258 -258
- package/lib/host-api.js +822 -822
- package/lib/hostkey.js +108 -108
- package/lib/http-transport.js +201 -201
- package/lib/ignore.js +202 -202
- package/lib/index.js +4488 -4394
- package/lib/instructions-dynamic.js +415 -415
- package/lib/instructions.js +288 -288
- package/lib/open-folder.js +56 -56
- package/lib/openssh.js +940 -881
- package/lib/paths.js +292 -292
- package/lib/pool.js +1029 -970
- package/lib/posix-shell.cjs +34 -0
- package/lib/registry.js +296 -296
- package/lib/remote-fs.js +173 -173
- package/lib/remote-sandbox.js +183 -183
- package/lib/remote-shell-child.cjs +397 -400
- package/lib/remote-shell.js +697 -697
- package/lib/remote-skills.js +312 -0
- package/lib/routes-audit.js +58 -58
- package/lib/routes-forwards.js +72 -72
- package/lib/routes-fs.js +251 -245
- package/lib/routes-machines.js +186 -186
- package/lib/routes-misc.js +187 -150
- package/lib/routes-term.js +169 -169
- package/lib/routes-update.js +143 -143
- package/lib/routes-web-attach.js +112 -112
- package/lib/routes-workspace.js +312 -312
- package/lib/search.js +235 -235
- package/lib/sftp-surface.js +119 -119
- package/lib/sshconfig.js +779 -779
- package/lib/sync.js +350 -350
- package/lib/tasks.js +95 -95
- package/lib/telemetry.js +247 -247
- package/lib/terminal.js +205 -205
- package/lib/tui/flow.js +130 -130
- package/lib/tui/format.js +380 -380
- package/lib/tui/i18n.js +350 -350
- package/lib/tui/index.js +531 -531
- package/lib/tui/provider.js +344 -344
- package/lib/tui/scene.js +986 -986
- package/lib/update.js +490 -472
- package/lib/web-attach.js +860 -850
- package/lib/workspace-cleanup.js +337 -337
- package/package.json +103 -100
- package/node_modules/buildcheck/.eslintrc.js +0 -5
- package/node_modules/buildcheck/.github/workflows/ci.yml +0 -88
- package/node_modules/buildcheck/.github/workflows/lint.yml +0 -27
- package/node_modules/buildcheck/.npmignore +0 -3
- package/node_modules/buildcheck/LICENSE +0 -19
- package/node_modules/buildcheck/README.md +0 -106
- package/node_modules/buildcheck/deps/Find-VisualStudio.cs +0 -250
- package/node_modules/buildcheck/lib/findvs.js +0 -361
- package/node_modules/buildcheck/lib/index.js +0 -738
- package/node_modules/buildcheck/package.json +0 -36
- package/node_modules/buildcheck/test/test.js +0 -8
- package/node_modules/cpu-features/.eslintrc.js +0 -5
- package/node_modules/cpu-features/.github/workflows/ci.yml +0 -74
- package/node_modules/cpu-features/.github/workflows/lint.yml +0 -27
- package/node_modules/cpu-features/LICENSE +0 -19
- package/node_modules/cpu-features/README.md +0 -59
- package/node_modules/cpu-features/binding.gyp +0 -16
- package/node_modules/cpu-features/buildcheck.js +0 -32
- package/node_modules/cpu-features/deps/cpu_features/.clang-format +0 -4
- package/node_modules/cpu-features/deps/cpu_features/.dockerignore +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +0 -5
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +0 -30
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +0 -22
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +0 -26
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +0 -43
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +0 -25
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +0 -24
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +0 -30
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +0 -29
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +0 -28
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +0 -27
- package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +0 -21
- package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +0 -329
- package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +0 -261
- package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +0 -23
- package/node_modules/cpu-features/deps/cpu_features/LICENSE +0 -230
- package/node_modules/cpu-features/deps/cpu_features/README.md +0 -272
- package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +0 -19
- package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +0 -5
- package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +0 -11
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +0 -3
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +0 -3
- package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +0 -30
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +0 -252
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +0 -40
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +0 -64
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +0 -312
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +0 -7
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +0 -48
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +0 -34
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +0 -22
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +0 -11
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +0 -107
- package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +0 -15
- package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +0 -105
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +0 -54
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +0 -384
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +0 -259
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +0 -121
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +0 -74
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +0 -149
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +0 -72
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +0 -108
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +0 -288
- package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +0 -40
- package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +0 -37
- package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +0 -39
- package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +0 -240
- package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +0 -49
- package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +0 -110
- package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +0 -70
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +0 -60
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +0 -4
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +0 -205
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +0 -320
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +0 -12
- package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +0 -456
- package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +0 -165
- package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +0 -75
- package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +0 -490
- package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +0 -79
- package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +0 -19
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +0 -86
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +0 -26
- package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +0 -22
- package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +0 -62
- package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +0 -169
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +0 -88
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +0 -79
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +0 -82
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +0 -138
- package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +0 -212
- package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +0 -93
- package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +0 -163
- package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +0 -111
- package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +0 -120
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +0 -2055
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +0 -68
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +0 -58
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +0 -57
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +0 -58
- package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +0 -132
- package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +0 -192
- package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +0 -461
- package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +0 -114
- package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +0 -53
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +0 -396
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +0 -384
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +0 -176
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +0 -131
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +0 -180
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +0 -82
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +0 -1729
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +0 -103
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +0 -61
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +0 -52
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +0 -31
- package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +0 -132
- package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +0 -202
- package/node_modules/cpu-features/lib/index.js +0 -5
- package/node_modules/cpu-features/package.json +0 -40
- package/node_modules/cpu-features/src/binding.cc +0 -151
- package/node_modules/cpu-features/test/test.js +0 -12
package/package.json
CHANGED
|
@@ -1,100 +1,103 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-remote",
|
|
3
|
-
"version": "0.8.
|
|
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/index.js",
|
|
30
|
-
"exports": {
|
|
31
|
-
".": "./lib/index.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.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.
|
|
75
|
-
"iconv-lite": "^0.7.3",
|
|
76
|
-
"ssh2": "^1.16.0"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"@deepseek-ai/
|
|
87
|
-
"@deepseek-ai/dsh-
|
|
88
|
-
"@deepseek-ai/dsh-
|
|
89
|
-
"@deepseek-ai/dsh-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-remote",
|
|
3
|
+
"version": "0.8.93",
|
|
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/index.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": "./lib/index.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,88 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
push:
|
|
6
|
-
branches: [ master ]
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
tests-linux:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
strategy:
|
|
12
|
-
fail-fast: false
|
|
13
|
-
matrix:
|
|
14
|
-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v4
|
|
17
|
-
with:
|
|
18
|
-
persist-credentials: false
|
|
19
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
-
uses: actions/setup-node@v4
|
|
21
|
-
with:
|
|
22
|
-
node-version: ${{ matrix.node-version }}
|
|
23
|
-
- name: Check Node.js version
|
|
24
|
-
run: node -pe process.versions
|
|
25
|
-
- name: Install module
|
|
26
|
-
run: npm install
|
|
27
|
-
- name: Run tests
|
|
28
|
-
run: npm test
|
|
29
|
-
tests-macos-intel:
|
|
30
|
-
runs-on: macos-15-intel
|
|
31
|
-
strategy:
|
|
32
|
-
fail-fast: false
|
|
33
|
-
matrix:
|
|
34
|
-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
|
|
35
|
-
steps:
|
|
36
|
-
- uses: actions/checkout@v4
|
|
37
|
-
with:
|
|
38
|
-
persist-credentials: false
|
|
39
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
40
|
-
uses: actions/setup-node@v4
|
|
41
|
-
with:
|
|
42
|
-
node-version: ${{ matrix.node-version }}
|
|
43
|
-
- name: Check Node.js version
|
|
44
|
-
run: node -pe process.versions
|
|
45
|
-
- name: Install module
|
|
46
|
-
run: npm install
|
|
47
|
-
- name: Run tests
|
|
48
|
-
run: npm test
|
|
49
|
-
tests-macos-arm:
|
|
50
|
-
runs-on: macos-latest
|
|
51
|
-
strategy:
|
|
52
|
-
fail-fast: false
|
|
53
|
-
matrix:
|
|
54
|
-
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]
|
|
55
|
-
steps:
|
|
56
|
-
- uses: actions/checkout@v4
|
|
57
|
-
with:
|
|
58
|
-
persist-credentials: false
|
|
59
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
60
|
-
uses: actions/setup-node@v4
|
|
61
|
-
with:
|
|
62
|
-
node-version: ${{ matrix.node-version }}
|
|
63
|
-
- name: Check Node.js version
|
|
64
|
-
run: node -pe process.versions
|
|
65
|
-
- name: Install module
|
|
66
|
-
run: npm install
|
|
67
|
-
- name: Run tests
|
|
68
|
-
run: npm test
|
|
69
|
-
tests-windows-2022:
|
|
70
|
-
runs-on: windows-2022
|
|
71
|
-
strategy:
|
|
72
|
-
fail-fast: false
|
|
73
|
-
matrix:
|
|
74
|
-
node-version: [24.x]
|
|
75
|
-
steps:
|
|
76
|
-
- uses: actions/checkout@v4
|
|
77
|
-
with:
|
|
78
|
-
persist-credentials: false
|
|
79
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
80
|
-
uses: actions/setup-node@v4
|
|
81
|
-
with:
|
|
82
|
-
node-version: ${{ matrix.node-version }}
|
|
83
|
-
- name: Check Node.js version
|
|
84
|
-
run: node -pe process.versions
|
|
85
|
-
- name: Install module
|
|
86
|
-
run: npm install
|
|
87
|
-
- name: Run tests
|
|
88
|
-
run: npm test
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: lint
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
push:
|
|
6
|
-
branches: [ master ]
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
NODE_VERSION: 22.x
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
lint-js:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
with:
|
|
17
|
-
persist-credentials: false
|
|
18
|
-
- name: Use Node.js ${{ env.NODE_VERSION }}
|
|
19
|
-
uses: actions/setup-node@v4
|
|
20
|
-
with:
|
|
21
|
-
node-version: ${{ env.NODE_VERSION }}
|
|
22
|
-
- name: Check Node.js version
|
|
23
|
-
run: node -pe process.versions
|
|
24
|
-
- name: Install ESLint + ESLint configs/plugins
|
|
25
|
-
run: npm install --only=dev
|
|
26
|
-
- name: Lint files
|
|
27
|
-
run: npm run lint
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright Brian White. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to
|
|
5
|
-
deal in the Software without restriction, including without limitation the
|
|
6
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
all copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
19
|
-
IN THE SOFTWARE.
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
# Description
|
|
2
|
-
|
|
3
|
-
Build environment checking for [node.js](http://nodejs.org/).
|
|
4
|
-
|
|
5
|
-
This allows for autoconf-like functionality for node addons/build scripts.
|
|
6
|
-
|
|
7
|
-
**Note:** Obsolete and/or exotic build environments or platforms not supported
|
|
8
|
-
by node.js are not supported.
|
|
9
|
-
|
|
10
|
-
## Requirements
|
|
11
|
-
|
|
12
|
-
* [node.js](http://nodejs.org/) -- v10.0.0 or newer
|
|
13
|
-
* Supported compilers:
|
|
14
|
-
* gcc
|
|
15
|
-
* clang
|
|
16
|
-
* MSVC 2013+ and Windows SDK 8.1+
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
npm install buildcheck
|
|
21
|
-
|
|
22
|
-
## Examples
|
|
23
|
-
|
|
24
|
-
### Check if a C function exists
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
'use strict';
|
|
28
|
-
|
|
29
|
-
const BuildEnvironment = require('buildcheck');
|
|
30
|
-
|
|
31
|
-
const buildEnv = new BuildEnvironment();
|
|
32
|
-
|
|
33
|
-
console.log(buildEnv.checkFunction('c', 'preadv2'));
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Check if a C header is usable
|
|
37
|
-
|
|
38
|
-
```js
|
|
39
|
-
'use strict';
|
|
40
|
-
|
|
41
|
-
const BuildEnvironment = require('buildcheck');
|
|
42
|
-
|
|
43
|
-
const buildEnv = new BuildEnvironment();
|
|
44
|
-
|
|
45
|
-
console.log(buildEnv.checkHeader('c', 'linux/io_uring.h'));
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Try to compile some C code
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
'use strict';
|
|
52
|
-
|
|
53
|
-
const BuildEnvironment = require('buildcheck');
|
|
54
|
-
|
|
55
|
-
const buildEnv = new BuildEnvironment();
|
|
56
|
-
|
|
57
|
-
// Should be a successful compile
|
|
58
|
-
console.log(buildEnv.tryCompile('c', 'int main() { return 0; }'));
|
|
59
|
-
|
|
60
|
-
// Should be a failed compile
|
|
61
|
-
console.log(buildEnv.tryCompile('c', 'int main() { return z; }'));
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## API
|
|
65
|
-
|
|
66
|
-
### Exports
|
|
67
|
-
|
|
68
|
-
The exported value is `BuildEnvironment`, the main class for dealing with a build environment.
|
|
69
|
-
|
|
70
|
-
### BuildEnvironment
|
|
71
|
-
|
|
72
|
-
#### Methods
|
|
73
|
-
|
|
74
|
-
* **(constructor)**([< _object_ >config]) - Creates and returns a new BuildEnvironment instance. `config` may contain:
|
|
75
|
-
|
|
76
|
-
* **compilerC** - _string_ - C compiler command to use. *Note: this is ignored on Windows.* **Default:** `process.env.CC` or `'cc'`
|
|
77
|
-
|
|
78
|
-
* **compilerCXX** - _string_ - C++ compiler command to use. *Note: this is ignored on Windows.* **Default:** `process.env.CXX` or `'c++'`
|
|
79
|
-
|
|
80
|
-
* **msvs_version** - _mixed_ - A string or number containing the year of the Visual Studio compiler to use. *Note: this is for Windows only.* **Default:** newest version installed
|
|
81
|
-
|
|
82
|
-
* **checkDeclared**(< _string_ >lang, < _string_ >symbolName[, < _object_ >options]) - _boolean_ - Checks if a symbol `symbolName` is declared where `lang` is either `'c'` or `'c++'`. Returns `true` if symbol exists, `false` otherwise. `options` may contain:
|
|
83
|
-
|
|
84
|
-
* **headers** - _array_ - A list of headers to try when checking if the symbol is declared. `checkFunction()` will always first try without a library. If not supplied, a default list of common (platform-specific) headers will be used.
|
|
85
|
-
|
|
86
|
-
* **searchLibs** - _array_ - A list of library names (without the `'-l'` prefix) to try when checking if the symbol is declared. `checkDeclared()` will always first try without a library.
|
|
87
|
-
|
|
88
|
-
* **checkFunction**(< _string_ >lang, < _string_ >functionName[, < _object_ >options]) - _boolean_ - Checks if a function `functionName` exists and is linkable where `lang` is either `'c'` or `'c++'`. Returns `true` if function exists, `false` otherwise. `options` may contain:
|
|
89
|
-
|
|
90
|
-
* **searchLibs** - _array_ - A list of library names (without the `'-l'` prefix) to try when checking for this function. `checkFunction()` will always first try without a library.
|
|
91
|
-
|
|
92
|
-
* **checkFeature**(< _string_ >featureName) - _mixed_ - Executes a special test for a "feature" and returns the result. Supported values for `featureName`:
|
|
93
|
-
|
|
94
|
-
* `'strerror_r'` - Returns an object containing:
|
|
95
|
-
|
|
96
|
-
* `declared` - _boolean_ - Whether `strerror_r()` is declared
|
|
97
|
-
|
|
98
|
-
* `returnsCharPtr` - _boolean_ - If `strerror_r()` is declared, whether it returns `char*` (a GNU extension) or not.
|
|
99
|
-
|
|
100
|
-
* **checkHeader**(< _string_ >lang, < _string_ >headerName) - _boolean_ - Checks if the header `headerName` exists and is usable where `lang` is either `'c'` or `'c++'`. Returns `true` if the header exists and is usable, `false` otherwise.
|
|
101
|
-
|
|
102
|
-
* **defines**([< _string_ >lang[, < _boolean_ >rendered]]) - _array_ - Returns a list of features, functions, headers, and symbols known to be defined by this build environment instance. `lang` is either `'c'` or `'c++'` If `lang` is not set, defines for both `'c'` and `'c++'` will be returned. If `rendered` is `true` (defaults to `false`), autoconf-style defines (e.g. "HAVE_FOO=1") will be returned instead. Defines coming from features utilize base strings/names from autoconf for better compatibility.
|
|
103
|
-
|
|
104
|
-
* **libs**([< _string_ >lang]) - _array_ - Returns a list of (`'-l'`-prefixed) libraries known to be required for features and functions defined by this build environment instance. `lang` is either `'c'` or `'c++'` If `lang` is not set, defines for both `'c'` and `'c++'` will be returned.
|
|
105
|
-
|
|
106
|
-
* **tryCompile**(< _string_ >lang, < _string_ >code[, < _array_ >compilerParams]) - _mixed_ - Attempts to compile `code` where `lang` is either `'c'` or `'c++'`. `compilerParams` is an optional array of compiler/linker flags to include. Returns `true` on successful compilation, or an _Error_ instance with an `output` property containing the compiler error output.
|