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.
Files changed (181) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +369 -368
  3. package/README.md +354 -353
  4. package/cordis.patch.yml +9 -9
  5. package/lib/audit.js +45 -45
  6. package/lib/binding.js +172 -172
  7. package/lib/client.js +4647 -4550
  8. package/lib/credential.js +270 -263
  9. package/lib/errors.js +141 -141
  10. package/lib/exec-job.js +242 -242
  11. package/lib/file-reference.js +457 -457
  12. package/lib/forwards.js +258 -258
  13. package/lib/host-api.js +822 -822
  14. package/lib/hostkey.js +108 -108
  15. package/lib/http-transport.js +201 -201
  16. package/lib/ignore.js +202 -202
  17. package/lib/index.js +4488 -4394
  18. package/lib/instructions-dynamic.js +415 -415
  19. package/lib/instructions.js +288 -288
  20. package/lib/open-folder.js +56 -56
  21. package/lib/openssh.js +940 -881
  22. package/lib/paths.js +292 -292
  23. package/lib/pool.js +1029 -970
  24. package/lib/posix-shell.cjs +34 -0
  25. package/lib/registry.js +296 -296
  26. package/lib/remote-fs.js +173 -173
  27. package/lib/remote-sandbox.js +183 -183
  28. package/lib/remote-shell-child.cjs +397 -400
  29. package/lib/remote-shell.js +697 -697
  30. package/lib/remote-skills.js +312 -0
  31. package/lib/routes-audit.js +58 -58
  32. package/lib/routes-forwards.js +72 -72
  33. package/lib/routes-fs.js +251 -245
  34. package/lib/routes-machines.js +186 -186
  35. package/lib/routes-misc.js +187 -150
  36. package/lib/routes-term.js +169 -169
  37. package/lib/routes-update.js +143 -143
  38. package/lib/routes-web-attach.js +112 -112
  39. package/lib/routes-workspace.js +312 -312
  40. package/lib/search.js +235 -235
  41. package/lib/sftp-surface.js +119 -119
  42. package/lib/sshconfig.js +779 -779
  43. package/lib/sync.js +350 -350
  44. package/lib/tasks.js +95 -95
  45. package/lib/telemetry.js +247 -247
  46. package/lib/terminal.js +205 -205
  47. package/lib/tui/flow.js +130 -130
  48. package/lib/tui/format.js +380 -380
  49. package/lib/tui/i18n.js +350 -350
  50. package/lib/tui/index.js +531 -531
  51. package/lib/tui/provider.js +344 -344
  52. package/lib/tui/scene.js +986 -986
  53. package/lib/update.js +490 -472
  54. package/lib/web-attach.js +860 -850
  55. package/lib/workspace-cleanup.js +337 -337
  56. package/package.json +103 -100
  57. package/node_modules/buildcheck/.eslintrc.js +0 -5
  58. package/node_modules/buildcheck/.github/workflows/ci.yml +0 -88
  59. package/node_modules/buildcheck/.github/workflows/lint.yml +0 -27
  60. package/node_modules/buildcheck/.npmignore +0 -3
  61. package/node_modules/buildcheck/LICENSE +0 -19
  62. package/node_modules/buildcheck/README.md +0 -106
  63. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +0 -250
  64. package/node_modules/buildcheck/lib/findvs.js +0 -361
  65. package/node_modules/buildcheck/lib/index.js +0 -738
  66. package/node_modules/buildcheck/package.json +0 -36
  67. package/node_modules/buildcheck/test/test.js +0 -8
  68. package/node_modules/cpu-features/.eslintrc.js +0 -5
  69. package/node_modules/cpu-features/.github/workflows/ci.yml +0 -74
  70. package/node_modules/cpu-features/.github/workflows/lint.yml +0 -27
  71. package/node_modules/cpu-features/LICENSE +0 -19
  72. package/node_modules/cpu-features/README.md +0 -59
  73. package/node_modules/cpu-features/binding.gyp +0 -16
  74. package/node_modules/cpu-features/buildcheck.js +0 -32
  75. package/node_modules/cpu-features/deps/cpu_features/.clang-format +0 -4
  76. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +0 -31
  77. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +0 -5
  78. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +0 -30
  79. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +0 -22
  80. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +0 -26
  81. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +0 -31
  82. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +0 -43
  83. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +0 -25
  84. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +0 -31
  85. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +0 -24
  86. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +0 -30
  87. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +0 -29
  88. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +0 -28
  89. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +0 -27
  90. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +0 -21
  91. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +0 -329
  92. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +0 -261
  93. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +0 -23
  94. package/node_modules/cpu-features/deps/cpu_features/LICENSE +0 -230
  95. package/node_modules/cpu-features/deps/cpu_features/README.md +0 -272
  96. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +0 -19
  97. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +0 -5
  98. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +0 -11
  99. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +0 -3
  100. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +0 -3
  101. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +0 -30
  102. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +0 -252
  103. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +0 -40
  104. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +0 -64
  105. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +0 -312
  106. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +0 -7
  107. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +0 -48
  108. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +0 -34
  109. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +0 -22
  110. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +0 -11
  111. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +0 -107
  112. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +0 -15
  113. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +0 -105
  114. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +0 -54
  115. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +0 -384
  116. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +0 -259
  117. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +0 -121
  118. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +0 -74
  119. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +0 -149
  120. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +0 -72
  121. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +0 -108
  122. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +0 -288
  123. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +0 -40
  124. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +0 -37
  125. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +0 -39
  126. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +0 -240
  127. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +0 -49
  128. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +0 -110
  129. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +0 -70
  130. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +0 -60
  131. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +0 -4
  132. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +0 -205
  133. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +0 -320
  134. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +0 -12
  135. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +0 -456
  136. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +0 -165
  137. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +0 -75
  138. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +0 -490
  139. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +0 -79
  140. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +0 -19
  141. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +0 -86
  142. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +0 -26
  143. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +0 -22
  144. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +0 -62
  145. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +0 -169
  146. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +0 -88
  147. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +0 -79
  148. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +0 -82
  149. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +0 -138
  150. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +0 -212
  151. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +0 -93
  152. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +0 -163
  153. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +0 -111
  154. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +0 -120
  155. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +0 -2055
  156. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +0 -68
  157. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +0 -58
  158. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +0 -57
  159. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +0 -58
  160. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +0 -132
  161. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +0 -192
  162. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +0 -461
  163. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +0 -114
  164. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +0 -53
  165. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +0 -396
  166. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +0 -384
  167. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +0 -176
  168. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +0 -131
  169. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +0 -180
  170. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +0 -82
  171. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +0 -1729
  172. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +0 -103
  173. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +0 -61
  174. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +0 -52
  175. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +0 -31
  176. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +0 -132
  177. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +0 -202
  178. package/node_modules/cpu-features/lib/index.js +0 -5
  179. package/node_modules/cpu-features/package.json +0 -40
  180. package/node_modules/cpu-features/src/binding.cc +0 -151
  181. 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.91",
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.5",
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.18.5",
75
- "iconv-lite": "^0.7.3",
76
- "ssh2": "^1.16.0"
77
- },
78
- "bundleDependencies": [
79
- "ssh2",
80
- "asn1",
81
- "bcrypt-pbkdf",
82
- "tweetnacl"
83
- ],
84
- "devDependencies": {
85
- "@deepseek-ai/cordis": "^4.0.5",
86
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.8",
87
- "@deepseek-ai/dsh-sandbox": "^0.2.0-rc.2",
88
- "@deepseek-ai/dsh-scope": "^0.2.0-rc.2",
89
- "@deepseek-ai/dsh-session": "^0.1.0-rc.8",
90
- "@deepseek-ai/dsh-timeout": "^0.2.0-rc.2",
91
- "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
92
- "react": "^18.3.1",
93
- "semver": "^7.8.5"
94
- },
95
- "scripts": {
96
- "test": "node --import ./test/setup-telemetry-off.mjs --test --test-timeout=40000 --test-force-exit --test-concurrency=8",
97
- "test:coverage": "node scripts/coverage-union.mjs",
98
- "test:coverage:gate": "node scripts/coverage-union.mjs --gate 70 --file-gate 60"
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,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- extends: '@mscdex/eslint-config',
5
- };
@@ -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,3 +0,0 @@
1
- .eslintcache
2
- **/node_modules/**
3
- /package-lock.json
@@ -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.