Update code

This commit is contained in:
User
2026-03-12 12:47:56 +08:00
parent 92e7fc5bda
commit 9dab61345c
9383 changed files with 1463454 additions and 1 deletions

27
mcp-server-ssh/node_modules/ssh2/install.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use strict';
const { spawnSync } = require('child_process');
const forceFailOnNonZero = (process.env.CI_CHECK_FAIL === 'ssh2');
// Attempt to build the bundled optional binding
const args = [
`--target=${process.version}`,
`--real_openssl_major=${/^\d+/.exec(process.versions.openssl)[0]}`,
'rebuild',
];
const result = spawnSync('node-gyp', args, {
cwd: 'lib/protocol/crypto',
encoding: 'utf8',
shell: true,
stdio: 'inherit',
windowsHide: true,
});
if (result.error || result.status !== 0) {
console.log('Failed to build optional crypto binding');
if (forceFailOnNonZero)
process.exit(1);
} else {
console.log('Succeeded in building optional crypto binding');
}
process.exit(0);