sleev 1.7.6 → 1.7.9
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/THIRD_PARTY_NOTICES.md +4 -3
- package/bin/npm-platforms.mjs +50 -0
- package/bin/sleev.js +43 -0
- package/package.json +8 -12
- package/bin/sleev.exe +0 -3
- package/postinstall.mjs +0 -88
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Third-Party Notices
|
|
2
2
|
|
|
3
3
|
<!-- Generated by tools/generate_third_party_notices.py; do not edit manually. -->
|
|
4
|
-
<!-- cli/Cargo.lock SHA-256:
|
|
5
|
-
<!-- uv.lock SHA-256:
|
|
4
|
+
<!-- cli/Cargo.lock SHA-256: ec7d550c8785da49f5250e7abc0adb4f492001fd3c3ca19d4e6766610b90e0f9 -->
|
|
5
|
+
<!-- uv.lock SHA-256: d295ebd05442e50bf97de77b7f45953f72d298a29b4a5f6005b84a5bf41f2df9 -->
|
|
6
6
|
|
|
7
7
|
Sleev's own code and materials are proprietary and are not covered by this
|
|
8
8
|
document. Third-party components remain governed by their respective terms.
|
|
@@ -21,7 +21,7 @@ proprietary crates are excluded.
|
|
|
21
21
|
|
|
22
22
|
### Apache License 2.0
|
|
23
23
|
|
|
24
|
-
Used by: `adler2 2.0.1` `allocator-api2 0.2.21` `anyhow 1.0.103` `atomic-waker 1.1.2` `aws-lc-sys 0.42.0` `base64 0.22.1` `bitflags 2.13.0` `block-buffer 0.10.4` `cc 1.2.65` `cfg-if 1.0.4` `cmake 0.1.58` `core-foundation 0.10.1` `core-foundation-sys 0.8.7` `cpufeatures 0.2.17` `crc32fast 1.5.0` `critical-section 1.2.0` `crypto-common 0.1.7` `curve25519-dalek-derive 0.1.1` `deranged 0.5.8` `digest 0.10.7` `displaydoc 0.2.6` `document-features 0.2.12` `dunce 1.0.5` `ed25519 2.2.3` `either 1.16.0` `equivalent 1.0.2` `errno 0.3.14` `fallible-iterator 0.3.0` `fallible-streaming-iterator 0.1.9` `fastrand 2.4.1` `find-msvc-tools 0.1.9` `flate2 1.1.9` `fnv 1.0.7` `form_urlencoded 1.2.2` `futures-channel 0.3.32` `futures-core 0.3.32` `futures-macro 0.3.32` `futures-sink 0.3.32` `futures-task 0.3.32` `futures-util 0.3.32` `getrandom 0.3.4` `getrandom 0.4.3` `hashbrown 0.15.5` `hashbrown 0.16.1` `hashbrown 0.17.1` `hashlink 0.10.0` `heck 0.5.0` `hex 0.4.3` `http 1.4.2` `httparse 1.10.1` `hyper-rustls 0.27.9` `ident_case 1.0.1` `idna 1.1.0` `idna_adapter 1.2.1` `indexmap 2.14.0` `indoc 2.0.7` `ipnet 2.12.0` `itertools 0.14.0` `itoa 1.0.18` `jobserver 0.1.34` `kasuari 0.4.12` `libc 0.2.186` `line-clipping 0.3.7` `linux-raw-sys 0.12.1` `litrs 1.0.0` `lock_api 0.4.14` `log 0.4.33` `miniz_oxide 0.8.9` `num-conv 0.2.2` `num_threads 0.1.7` `once_cell 1.21.4` `openssl-probe 0.2.1` `parking_lot 0.12.5` `parking_lot_core 0.9.12` `percent-encoding 2.3.2` `pin-project-lite 0.2.17` `pkg-config 0.3.33` `powerfmt 0.2.0` `proc-macro2 1.0.106` `qrcode 0.14.1` `quote 1.0.46` `regex 1.12.4` `regex-automata 0.4.14` `regex-syntax 0.8.11` `reqwest 0.13.1` `rustc_version 0.4.1` `rustix 1.1.4` `rustls 0.23.41` `rustls-native-certs 0.8.4` `rustls-pki-types 1.15.0` `rustls-platform-verifier 0.6.2` `rustversion 1.0.22` `ryu 1.0.23` `scopeguard 1.2.0` `security-framework 3.7.0` `security-framework-sys 2.17.0` `semver 1.0.28` `serde 1.0.228` `serde_core 1.0.228` `serde_derive 1.0.228` `serde_json 1.0.150` `sha2 0.10.9` `shlex 2.0.1` `signal-hook 0.3.18` `signal-hook-mio 0.2.5` `signal-hook-registry 1.4.8` `signature 2.2.0` `smallvec 1.15.2` `socket2 0.6.4` `stable_deref_trait 1.2.1` `static_assertions 1.1.0` `syn 2.0.118` `sync_wrapper 1.0.2` `tempfile 3.27.0` `thiserror 2.0.18` `thiserror-impl 2.0.18` `time 0.3.53` `time-core 0.1.9` `tokio-rustls 0.26.4` `typenum 1.20.1` `unicode-ident 1.0.24` `unicode-segmentation 1.13.3` `unicode-truncate 2.0.1` `unicode-width 0.2.2` `url 2.5.8` `utf8_iter 1.0.4` `vcpkg 0.2.15` `version_check 0.9.5` `winapi 0.3.9` `windows-link 0.2.1` `windows-sys 0.61.2` `zeroize 1.9.0`
|
|
24
|
+
Used by: `adler2 2.0.1` `allocator-api2 0.2.21` `anyhow 1.0.103` `atomic-waker 1.1.2` `aws-lc-sys 0.42.0` `base64 0.22.1` `bitflags 2.13.0` `block-buffer 0.10.4` `cc 1.2.65` `cfg-if 1.0.4` `cmake 0.1.58` `core-foundation 0.10.1` `core-foundation-sys 0.8.7` `cpufeatures 0.2.17` `crc32fast 1.5.0` `critical-section 1.2.0` `crypto-common 0.1.7` `curve25519-dalek-derive 0.1.1` `deranged 0.5.8` `digest 0.10.7` `displaydoc 0.2.6` `document-features 0.2.12` `dunce 1.0.5` `ed25519 2.2.3` `either 1.16.0` `equivalent 1.0.2` `errno 0.3.14` `fallible-iterator 0.3.0` `fallible-streaming-iterator 0.1.9` `fastrand 2.4.1` `find-msvc-tools 0.1.9` `flate2 1.1.9` `fnv 1.0.7` `form_urlencoded 1.2.2` `fs2 0.4.3` `futures-channel 0.3.32` `futures-core 0.3.32` `futures-macro 0.3.32` `futures-sink 0.3.32` `futures-task 0.3.32` `futures-util 0.3.32` `getrandom 0.3.4` `getrandom 0.4.3` `hashbrown 0.15.5` `hashbrown 0.16.1` `hashbrown 0.17.1` `hashlink 0.10.0` `heck 0.5.0` `hex 0.4.3` `http 1.4.2` `httparse 1.10.1` `hyper-rustls 0.27.9` `ident_case 1.0.1` `idna 1.1.0` `idna_adapter 1.2.1` `indexmap 2.14.0` `indoc 2.0.7` `ipnet 2.12.0` `itertools 0.14.0` `itoa 1.0.18` `jobserver 0.1.34` `kasuari 0.4.12` `libc 0.2.186` `line-clipping 0.3.7` `linux-raw-sys 0.12.1` `litrs 1.0.0` `lock_api 0.4.14` `log 0.4.33` `miniz_oxide 0.8.9` `num-conv 0.2.2` `num_threads 0.1.7` `once_cell 1.21.4` `openssl-probe 0.2.1` `parking_lot 0.12.5` `parking_lot_core 0.9.12` `percent-encoding 2.3.2` `pin-project-lite 0.2.17` `pkg-config 0.3.33` `powerfmt 0.2.0` `proc-macro2 1.0.106` `qrcode 0.14.1` `quote 1.0.46` `regex 1.12.4` `regex-automata 0.4.14` `regex-syntax 0.8.11` `reqwest 0.13.1` `rustc_version 0.4.1` `rustix 1.1.4` `rustls 0.23.41` `rustls-native-certs 0.8.4` `rustls-pki-types 1.15.0` `rustls-platform-verifier 0.6.2` `rustversion 1.0.22` `ryu 1.0.23` `scopeguard 1.2.0` `security-framework 3.7.0` `security-framework-sys 2.17.0` `semver 1.0.28` `serde 1.0.228` `serde_core 1.0.228` `serde_derive 1.0.228` `serde_json 1.0.150` `sha2 0.10.9` `shlex 2.0.1` `signal-hook 0.3.18` `signal-hook-mio 0.2.5` `signal-hook-registry 1.4.8` `signature 2.2.0` `smallvec 1.15.2` `socket2 0.6.4` `stable_deref_trait 1.2.1` `static_assertions 1.1.0` `syn 2.0.118` `sync_wrapper 1.0.2` `tempfile 3.27.0` `thiserror 2.0.18` `thiserror-impl 2.0.18` `time 0.3.53` `time-core 0.1.9` `tokio-rustls 0.26.4` `typenum 1.20.1` `unicode-ident 1.0.24` `unicode-segmentation 1.13.3` `unicode-truncate 2.0.1` `unicode-width 0.2.2` `url 2.5.8` `utf8_iter 1.0.4` `vcpkg 0.2.15` `version_check 0.9.5` `winapi 0.3.9` `windows-link 0.2.1` `windows-sys 0.61.2` `zeroize 1.9.0`
|
|
25
25
|
|
|
26
26
|
````text
|
|
27
27
|
Apache License
|
|
@@ -1568,6 +1568,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
1568
1568
|
Included for:
|
|
1569
1569
|
|
|
1570
1570
|
- `bit-vec 0.6.3` from `LICENSE-MIT`
|
|
1571
|
+
- `fs2 0.4.3` from `LICENSE-MIT`
|
|
1571
1572
|
- `heck 0.5.0` from `LICENSE-MIT`
|
|
1572
1573
|
- `unicode-segmentation 1.13.3` from `LICENSE-MIT`
|
|
1573
1574
|
- `unicode-width 0.2.2` from `LICENSE-MIT`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const npmTargets = [
|
|
2
|
+
{
|
|
3
|
+
platform: "linux",
|
|
4
|
+
npmOs: "linux",
|
|
5
|
+
arch: "x64",
|
|
6
|
+
triple: "x86_64-unknown-linux-musl",
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
platform: "linux",
|
|
10
|
+
npmOs: "linux",
|
|
11
|
+
arch: "arm64",
|
|
12
|
+
triple: "aarch64-unknown-linux-musl",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
platform: "darwin",
|
|
16
|
+
npmOs: "darwin",
|
|
17
|
+
arch: "x64",
|
|
18
|
+
triple: "x86_64-apple-darwin",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
platform: "darwin",
|
|
22
|
+
npmOs: "darwin",
|
|
23
|
+
arch: "arm64",
|
|
24
|
+
triple: "aarch64-apple-darwin",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
platform: "windows",
|
|
28
|
+
npmOs: "win32",
|
|
29
|
+
arch: "x64",
|
|
30
|
+
triple: "x86_64-pc-windows-msvc",
|
|
31
|
+
ext: ".exe",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
platform: "windows",
|
|
35
|
+
npmOs: "win32",
|
|
36
|
+
arch: "arm64",
|
|
37
|
+
triple: "aarch64-pc-windows-msvc",
|
|
38
|
+
ext: ".exe",
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
export function npmPackageName(target) {
|
|
43
|
+
return `sleev-${target.platform}-${target.arch}`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function npmTargetFor(platform, arch) {
|
|
47
|
+
return npmTargets.find(
|
|
48
|
+
(target) => target.npmOs === platform && target.arch === arch,
|
|
49
|
+
);
|
|
50
|
+
}
|
package/bin/sleev.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import {
|
|
6
|
+
npmPackageName,
|
|
7
|
+
npmTargetFor,
|
|
8
|
+
} from "./npm-platforms.mjs";
|
|
9
|
+
|
|
10
|
+
const target = npmTargetFor(process.platform, process.arch);
|
|
11
|
+
if (!target) {
|
|
12
|
+
console.error(
|
|
13
|
+
`Sleev does not support ${process.platform}-${process.arch}.`,
|
|
14
|
+
);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const packageName = npmPackageName(target);
|
|
19
|
+
let binary;
|
|
20
|
+
try {
|
|
21
|
+
binary = createRequire(import.meta.url).resolve(packageName);
|
|
22
|
+
} catch {
|
|
23
|
+
console.error(
|
|
24
|
+
[
|
|
25
|
+
`Sleev could not find its native package (${packageName}).`,
|
|
26
|
+
"Reinstall without --omit=optional and ensure optional dependencies are enabled.",
|
|
27
|
+
].join("\n"),
|
|
28
|
+
);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const result = spawnSync(binary, process.argv.slice(2), {
|
|
33
|
+
stdio: "inherit",
|
|
34
|
+
windowsHide: false,
|
|
35
|
+
});
|
|
36
|
+
if (result.error) {
|
|
37
|
+
console.error(`Sleev could not start ${binary}: ${result.error.message}`);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
if (result.signal) {
|
|
41
|
+
process.kill(process.pid, result.signal);
|
|
42
|
+
}
|
|
43
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sleev",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "Sleev CLI tool.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,21 +9,18 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"bin": {
|
|
12
|
-
"sleev": "./bin/sleev.
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"postinstall": "node ./postinstall.mjs"
|
|
12
|
+
"sleev": "./bin/sleev.js"
|
|
16
13
|
},
|
|
17
14
|
"publishConfig": {
|
|
18
15
|
"access": "public"
|
|
19
16
|
},
|
|
20
17
|
"optionalDependencies": {
|
|
21
|
-
"sleev-linux-x64": "1.7.
|
|
22
|
-
"sleev-linux-arm64": "1.7.
|
|
23
|
-
"sleev-darwin-x64": "1.7.
|
|
24
|
-
"sleev-darwin-arm64": "1.7.
|
|
25
|
-
"sleev-windows-x64": "1.7.
|
|
26
|
-
"sleev-windows-arm64": "1.7.
|
|
18
|
+
"sleev-linux-x64": "1.7.9",
|
|
19
|
+
"sleev-linux-arm64": "1.7.9",
|
|
20
|
+
"sleev-darwin-x64": "1.7.9",
|
|
21
|
+
"sleev-darwin-arm64": "1.7.9",
|
|
22
|
+
"sleev-windows-x64": "1.7.9",
|
|
23
|
+
"sleev-windows-arm64": "1.7.9"
|
|
27
24
|
},
|
|
28
25
|
"keywords": [
|
|
29
26
|
"sleev",
|
|
@@ -39,7 +36,6 @@
|
|
|
39
36
|
"files": [
|
|
40
37
|
"bin",
|
|
41
38
|
"README.md",
|
|
42
|
-
"postinstall.mjs",
|
|
43
39
|
"LICENSE.md",
|
|
44
40
|
"EULA.md",
|
|
45
41
|
"THIRD_PARTY_NOTICES.md"
|
package/bin/sleev.exe
DELETED
package/postinstall.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { spawnSync } from "node:child_process";
|
|
4
|
-
import {
|
|
5
|
-
chmodSync,
|
|
6
|
-
copyFileSync,
|
|
7
|
-
existsSync,
|
|
8
|
-
linkSync,
|
|
9
|
-
mkdirSync,
|
|
10
|
-
realpathSync,
|
|
11
|
-
unlinkSync,
|
|
12
|
-
} from "node:fs";
|
|
13
|
-
import { dirname, join } from "node:path";
|
|
14
|
-
import { fileURLToPath } from "node:url";
|
|
15
|
-
|
|
16
|
-
if (process.env.SLEEV_SKIP_POSTINSTALL) process.exit(0);
|
|
17
|
-
|
|
18
|
-
const platformMap = {
|
|
19
|
-
darwin: "darwin",
|
|
20
|
-
linux: "linux",
|
|
21
|
-
win32: "windows",
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const archMap = {
|
|
25
|
-
arm64: "arm64",
|
|
26
|
-
x64: "x64",
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const platform = platformMap[process.platform] ?? process.platform;
|
|
30
|
-
const arch = archMap[process.arch] ?? process.arch;
|
|
31
|
-
const packageName = `sleev-${platform}-${arch}`;
|
|
32
|
-
const binary = process.platform === "win32" ? "sleev.exe" : "sleev";
|
|
33
|
-
|
|
34
|
-
function findBinary(startDir) {
|
|
35
|
-
let current = startDir;
|
|
36
|
-
for (;;) {
|
|
37
|
-
const candidate = join(
|
|
38
|
-
current,
|
|
39
|
-
"node_modules",
|
|
40
|
-
packageName,
|
|
41
|
-
"bin",
|
|
42
|
-
binary,
|
|
43
|
-
);
|
|
44
|
-
if (existsSync(candidate)) return candidate;
|
|
45
|
-
|
|
46
|
-
const parent = dirname(current);
|
|
47
|
-
if (parent === current) return undefined;
|
|
48
|
-
current = parent;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const scriptDir = dirname(realpathSync(fileURLToPath(import.meta.url)));
|
|
53
|
-
const resolved = process.env.SLEEV_BIN_PATH || findBinary(scriptDir);
|
|
54
|
-
const target = join(scriptDir, "bin", "sleev.exe");
|
|
55
|
-
|
|
56
|
-
if (!resolved) {
|
|
57
|
-
console.error(
|
|
58
|
-
[
|
|
59
|
-
`Sleev could not find ${packageName}.`,
|
|
60
|
-
"This package is installed as an optional dependency that matches your platform.",
|
|
61
|
-
"Try reinstalling without --ignore-scripts/--omit=optional, or set SLEEV_SKIP_POSTINSTALL=1 to skip this check.",
|
|
62
|
-
].join("\n"),
|
|
63
|
-
);
|
|
64
|
-
process.exit(1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
mkdirSync(dirname(target), { recursive: true });
|
|
68
|
-
if (existsSync(target)) unlinkSync(target);
|
|
69
|
-
try {
|
|
70
|
-
linkSync(resolved, target);
|
|
71
|
-
} catch {
|
|
72
|
-
copyFileSync(resolved, target);
|
|
73
|
-
}
|
|
74
|
-
chmodSync(target, 0o755);
|
|
75
|
-
|
|
76
|
-
const result = spawnSync(target, ["--version"], {
|
|
77
|
-
encoding: "utf8",
|
|
78
|
-
stdio: "pipe",
|
|
79
|
-
timeout: 5000,
|
|
80
|
-
windowsHide: true,
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
if (result.status !== 0 || !/^\d+\.\d+\.\d+/.test(result.stdout.trim())) {
|
|
84
|
-
console.error(`Sleev native binary verification failed: ${target}`);
|
|
85
|
-
if (result.stderr) console.error(result.stderr);
|
|
86
|
-
if (result.stdout) console.error(result.stdout);
|
|
87
|
-
process.exit(result.status ?? 1);
|
|
88
|
-
}
|