@vitest-agent/sidecar 2.2.19 → 2.2.21
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/index.d.ts +26 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@vitest-agent/sidecar` package entry.
|
|
3
|
+
*
|
|
4
|
+
* The sidecar's runtime artifacts are the four
|
|
5
|
+
* `@vitest-agent/sidecar-<platform>` SEA binaries (optional
|
|
6
|
+
* dependencies); each child declares the binary as its own `bin`
|
|
7
|
+
* entry. The bin is NOT automatically discoverable via `command -v`
|
|
8
|
+
* because pnpm/npm only hoist direct-dependency bins — transitive
|
|
9
|
+
* optional-dependency bins are never placed in `node_modules/.bin/`.
|
|
10
|
+
* Instead, the binary path is resolved at runtime via
|
|
11
|
+
* `require.resolve` of the platform package's bin entry (not a PATH
|
|
12
|
+
* lookup), implemented by {@link resolveSidecarBinaryPath} in this
|
|
13
|
+
* package. The resolver MUST live here: `require.resolve` only finds
|
|
14
|
+
* the optional platform packages when its module anchor
|
|
15
|
+
* (`import.meta.url`) sits inside `@vitest-agent/sidecar`, which is the
|
|
16
|
+
* package that declares them as `optionalDependencies`.
|
|
17
|
+
*
|
|
18
|
+
* Like every family package it builds with `effected package build`, which
|
|
19
|
+
* emits the published manifest with `workspace:*` / `catalog:` references
|
|
20
|
+
* resolved. Inside the workspace the link resolves to this package's
|
|
21
|
+
* source, so a per-platform child resolves to its `src/bin.ts` (not an
|
|
22
|
+
* executable) and the hooks fall back to the JS CLI; an installed consumer
|
|
23
|
+
* resolves the child's `.` export, which is the prebuilt binary.
|
|
24
|
+
*
|
|
25
|
+
* @packageDocumentation
|
|
26
|
+
*/
|
|
1
27
|
/**
|
|
2
28
|
* \@vitest-agent/sidecar
|
|
3
29
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/sidecar",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Fast-path native binary for vitest-agent. Ships a Node SEA executable that handles the per-Bash-call inject-env hot path.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@effected/commands": "
|
|
39
|
-
"effect": "4.1.
|
|
38
|
+
"@effected/commands": "0.22.0",
|
|
39
|
+
"effect": "4.1.4"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"@vitest-agent/sidecar-darwin-arm64": "2.2.
|
|
43
|
-
"@vitest-agent/sidecar-linux-arm64": "2.2.
|
|
44
|
-
"@vitest-agent/sidecar-linux-x64": "2.2.
|
|
45
|
-
"@vitest-agent/sidecar-win32-x64": "2.2.
|
|
42
|
+
"@vitest-agent/sidecar-darwin-arm64": "2.2.20",
|
|
43
|
+
"@vitest-agent/sidecar-linux-arm64": "2.2.20",
|
|
44
|
+
"@vitest-agent/sidecar-linux-x64": "2.2.20",
|
|
45
|
+
"@vitest-agent/sidecar-win32-x64": "2.2.20"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24.11.0"
|