@dads-framework/testing-native-win32-x64 0.0.0-stage → 0.2.0

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.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bryton Cooper
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,68 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # Dads Testing native runtime (Windows x64)
2
+
3
+ This package contains the platform-native `dad-test.exe` executable used by
4
+ `@dads-framework/testing` on Windows x64.
5
+
6
+ ## Try it
7
+
8
+ Use PowerShell and Node.js 22 or newer in an empty directory on Windows x64.
9
+ Normally, npm selects this runtime when you install
10
+ [`@dads-framework/testing`](../../core/README.md). Use this direct install
11
+ after the public release when optional dependencies are unavailable.
12
+
13
+ ```powershell
14
+ node -p 'process.platform + "-" + process.arch'
15
+ npm init -y
16
+ npm install --save-dev @dads-framework/testing-native-win32-x64
17
+ $binary = node -p 'require.resolve("@dads-framework/testing-native-win32-x64")'
18
+ $binary
19
+ Test-Path -LiteralPath $binary -PathType Leaf
20
+
21
+ @'
22
+ {
23
+ "schemaVersion": 1,
24
+ "workspace": { "root": ".", "fullFallback": { "taskIds": ["app:test"] } },
25
+ "projects": [{ "id": "app", "root": ".", "fallbackDependencies": [] }],
26
+ "tasks": [{
27
+ "id": "app:test",
28
+ "project": "app",
29
+ "kind": "test",
30
+ "execution": { "executable": "node", "args": ["--version"], "cwd": "." },
31
+ "dependsOn": [],
32
+ "impact": { "mode": "always" }
33
+ }]
34
+ }
35
+ '@ | Set-Content -Encoding ascii dads.testing.json
36
+ node -p 'JSON.stringify({ schemaVersion: 1, operation: "plan", workspaceRoot: process.cwd(), all: true })' | & $binary
37
+ ```
38
+
39
+ The host check prints `win32-x64`. The binary path ends in
40
+ `bin\dad-test.exe`, followed by `True` from the file check.
41
+ The native response contains `"ok":true` and a task with `"id":"app:test"`
42
+ and `"decision":"run"`. A plan shows which tasks would run.
43
+
44
+ In the repository, the
45
+ [native release workflow](../../../../.github/workflows/testing-native-release.yml)
46
+ packs this platform's package from `packages/testing/native/win32-x64/`
47
+ and installs the tarball with the facade in a fresh `testing-consumer`
48
+ directory to check planning through the installed artifact.
49
+
50
+ ## Commands
51
+
52
+ The native executable reads one JSON request from standard input. Set
53
+ `workspaceRoot` to an absolute directory containing `dads.testing.json`. It accepts
54
+ `plan` and `run` as the `operation` field. For the flag-based CLI, including
55
+ `init` and `explain`, use the
56
+ [testing facade](../../core/README.md#commands).
57
+
58
+ ## What it refuses to do
59
+
60
+ This build supports Windows x64 only.
61
+
62
+ ## Contract
63
+
64
+ The executable returns a JSON response with `schemaVersion` and `ok`. On
65
+ success, `result.plan` describes task selection. An invalid request returns
66
+ `ok: false`, an `error` message, and exit code 1. Use the
67
+ [testing facade](../../core/README.md#contract) for the supported application
68
+ interface.