@dads-framework/testing-native-darwin-x64 0.1.0 → 0.3.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/README.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # Dads Testing native runtime (macOS x64)
2
2
 
3
3
  This package contains the platform-native `dad-test` executable used by
4
- `@dads-framework/testing` on macOS x64. Install it directly only when npm's
5
- optional-dependency selection is unavailable.
4
+ `@dads-framework/testing` on macOS on Intel.
5
+
6
+ ## Try it
7
+
8
+ Use a POSIX shell and Node.js 22 or newer in an empty directory on macOS on Intel.
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
+ ```sh
14
+ node -p 'process.platform + "-" + process.arch'
15
+ npm init -y
16
+ npm install --save-dev @dads-framework/testing-native-darwin-x64
17
+ binary=$(node -p 'require.resolve("@dads-framework/testing-native-darwin-x64")')
18
+ printf '%s\n' "$binary"
19
+ test -x "$binary" && printf 'Executable found\n'
20
+
21
+ cat > dads.testing.json <<'JSON'
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
+ JSON
36
+ node -p 'JSON.stringify({ schemaVersion: 1, operation: "plan", workspaceRoot: process.cwd(), all: true })' | "$binary"
37
+ ```
38
+
39
+ The host check prints `darwin-x64`. The binary path ends in
40
+ `bin/dad-test`, followed by `Executable found` 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/darwin-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 macOS on Intel 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.
package/bin/dad-test CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dads-framework/testing-native-darwin-x64",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Native dad-test executable for macOS x64.",
5
5
  "license": "MIT",
6
6
  "os": [