11# Provider-Sim Examples
22
3- This directory contains configuration-first examples for each simulation mode.
3+ This directory contains scenario-focused examples for each simulation mode.
4+ Example scripts intentionally reuse the shared harness in ` tests/support/ ` so
5+ transport/process/protobuf handling stays centralized in one place.
46
57## Example Directories
68
@@ -10,7 +12,7 @@ This directory contains configuration-first examples for each simulation mode.
1012
1113## Quick Start
1214
13- Build provider-sim first:
15+ Build provider-sim first.
1416
1517Linux/macOS:
1618
@@ -24,38 +26,47 @@ Windows:
2426.\scripts\build.ps1 -Preset dev-windows-release
2527```
2628
27- Run each mode with its example config :
29+ Run inert and non-interacting scenarios :
2830
2931Linux/macOS:
3032
3133``` bash
32- bash ./scripts/run_local.sh --preset dev-release -- --config examples/inert_mode/provider.yaml
33- bash ./scripts/run_local.sh --preset dev-release -- --config examples/non_interacting_mode/provider.yaml
34+ python examples/inert_mode/test_inert.py
35+ python examples/non_interacting_mode/test_non_interacting.py
3436```
3537
3638Windows:
3739
3840``` powershell
39- .\scripts\run_local.ps1 -Preset dev-windows-release -- --config examples/ inert_mode/provider.yaml
40- .\scripts\run_local.ps1 -Preset dev-windows-release -- --config examples/ non_interacting_mode/provider.yaml
41+ python .\ examples\ inert_mode\test_inert.py
42+ python .\ examples\ non_interacting_mode\test_non_interacting.py
4143```
4244
43- For ` sim_mode ` , build FluxGraph-enabled provider and pass ` --sim-server ` .
45+ If generated Python protobuf bindings are in a preset-specific build directory,
46+ set ` ANOLIS_PROVIDER_SIM_BUILD_DIR ` before running examples.
47+ Example (Windows):
48+
49+ ``` powershell
50+ $env:ANOLIS_PROVIDER_SIM_BUILD_DIR="build/dev-windows-release"
51+ ```
52+
53+ ` sim_mode ` also requires FluxGraph server availability.
4454
4555## FluxGraph (` sim_mode ` )
4656
4757Linux/macOS:
4858
4959``` bash
5060bash ./scripts/build.sh --preset ci-linux-release-fluxgraph -- -DFLUXGRAPH_DIR=../fluxgraph
51- bash ./scripts/run_local.sh --preset ci-linux-release-fluxgraph -- --config examples/sim_mode/provider.yaml --sim-server localhost:50051
61+ python examples/sim_mode/test_sim.py
5262```
5363
5464Windows:
5565
5666``` powershell
5767.\scripts\build.ps1 -Preset dev-windows-release-fluxgraph -- -DFLUXGRAPH_DIR=..\fluxgraph
58- .\scripts\run_local.ps1 -Preset dev-windows-release-fluxgraph -- --config examples/sim_mode/provider.yaml --sim-server localhost:50051
68+ $env:ANOLIS_PROVIDER_SIM_BUILD_DIR="build/dev-windows-release-fluxgraph"
69+ python .\examples\sim_mode\test_sim.py
5970```
6071
6172## Notes
0 commit comments