sim-cli-core 0.2.4__tar.gz → 0.3.0__tar.gz

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.
Files changed (139) hide show
  1. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/PKG-INFO +10 -5
  2. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/README.md +8 -1
  3. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/pyproject.toml +2 -3
  4. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/drivers/__init__.py +8 -14
  5. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_cli.py +2 -2
  6. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_plugins.py +16 -16
  7. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_protocol_conformance.py +1 -11
  8. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/conftest.py +26 -15
  9. sim_cli_core-0.3.0/uv.lock +830 -0
  10. sim_cli_core-0.2.4/src/sim/drivers/coolprop/__init__.py +0 -3
  11. sim_cli_core-0.2.4/src/sim/drivers/coolprop/driver.py +0 -183
  12. sim_cli_core-0.2.4/src/sim/drivers/openfoam/__init__.py +0 -4
  13. sim_cli_core-0.2.4/src/sim/drivers/openfoam/compatibility.yaml +0 -37
  14. sim_cli_core-0.2.4/src/sim/drivers/openfoam/driver.py +0 -432
  15. sim_cli_core-0.2.4/tests/drivers/coolprop/test_coolprop_driver.py +0 -90
  16. sim_cli_core-0.2.4/tests/drivers/coolprop/test_coolprop_e2e.py +0 -36
  17. sim_cli_core-0.2.4/tests/fixtures/coolprop_good.py +0 -5
  18. sim_cli_core-0.2.4/tests/fixtures/coolprop_no_import.py +0 -1
  19. sim_cli_core-0.2.4/tests/fixtures/coolprop_no_usage.py +0 -2
  20. sim_cli_core-0.2.4/tests/fixtures/coolprop_syntax_error.py +0 -2
  21. sim_cli_core-0.2.4/tests/inspect/__init__.py +0 -0
  22. sim_cli_core-0.2.4/uv.lock +0 -1662
  23. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/.github/workflows/publish.yml +0 -0
  24. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/.gitignore +0 -0
  25. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/CLAUDE.md +0 -0
  26. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/CONTRIBUTING.md +0 -0
  27. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/LICENSE +0 -0
  28. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/NOTICE +0 -0
  29. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/assets/architecture.svg +0 -0
  30. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/assets/banner.svg +0 -0
  31. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/assets/logo.svg +0 -0
  32. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/DEVELOPMENT.md +0 -0
  33. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/README.de.md +0 -0
  34. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/README.ja.md +0 -0
  35. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/README.zh.md +0 -0
  36. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/agent-readability.md +0 -0
  37. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/architecture/multi-session-and-config.md +0 -0
  38. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/architecture/skills-layering-plan.md +0 -0
  39. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/architecture/version-compat.md +0 -0
  40. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/docs/plugin-install.md +0 -0
  41. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/__init__.py +0 -0
  42. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/__main__.py +0 -0
  43. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/_plugin_install.py +0 -0
  44. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/_timeout.py +0 -0
  45. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/cli.py +0 -0
  46. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/compat.py +0 -0
  47. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/config.py +0 -0
  48. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/describe.py +0 -0
  49. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/driver.py +0 -0
  50. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/gui/LICENSES/ATTRIBUTION.md +0 -0
  51. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/gui/__init__.py +0 -0
  52. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/gui/_pywinauto_tools.py +0 -0
  53. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/gui/_win32_dialog.py +0 -0
  54. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/history.py +0 -0
  55. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/inspect.py +0 -0
  56. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/plugins.py +0 -0
  57. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/runner.py +0 -0
  58. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/server.py +0 -0
  59. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/session.py +0 -0
  60. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/testing/__init__.py +0 -0
  61. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/src/sim/testing/protocol_conformance.py +0 -0
  62. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/__init__.py +0 -0
  63. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/__init__.py +0 -0
  64. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_compat.py +0 -0
  65. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_config.py +0 -0
  66. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_connect.py +0 -0
  67. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_describe.py +0 -0
  68. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_driver_discovery.py +0 -0
  69. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_history.py +0 -0
  70. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_init_setup.py +0 -0
  71. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_lint.py +0 -0
  72. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_lint_public_corpus.py +0 -0
  73. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_logs.py +0 -0
  74. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_multi_session.py +0 -0
  75. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_plugin_install.py +0 -0
  76. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/base/test_run.py +0 -0
  77. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/drivers/__init__.py +0 -0
  78. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/calculix_e2e_cantilever_run.py +0 -0
  79. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/coolprop/water_props.py +0 -0
  80. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/elmer_e2e_heat_square.py +0 -0
  81. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/gmsh_e2e_sphere_mesh.py +0 -0
  82. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/lammps_e2e_lj_nvt.py +0 -0
  83. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/meshio_e2e_gmsh_to_vtk.py +0 -0
  84. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/pymfem_e2e_poisson.py +0 -0
  85. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/pyvista_e2e_sphere_stats.py +0 -0
  86. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/scikit_fem_e2e_poisson.py +0 -0
  87. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/scikitrf/short_load.py +0 -0
  88. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/execution/su2_e2e_inviscid_bump.py +0 -0
  89. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/comsol/comsol_good.py +0 -0
  90. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/comsol/comsol_no_client.py +0 -0
  91. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/comsol/comsol_no_import.py +0 -0
  92. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/hypermesh_good.py +0 -0
  93. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/hypermesh_gui.py +0 -0
  94. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/hypermesh_no_import.py +0 -0
  95. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/hypermesh_no_usage.py +0 -0
  96. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/hypermesh_syntax_error.py +0 -0
  97. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/bad_import_order.py +0 -0
  98. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/bad_no_close.py +0 -0
  99. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/bad_no_simapp.py +0 -0
  100. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/hello_world.py +0 -0
  101. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/import_franka.py +0 -0
  102. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/not_isaac.py +0 -0
  103. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/official_hello_world.py +0 -0
  104. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/replicator_cubes.py +0 -0
  105. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/syntax_error.py +0 -0
  106. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/isaac/warehouse_sdg.py +0 -0
  107. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/matlab/empty_model.mdl +0 -0
  108. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/matlab/empty_model.slx +0 -0
  109. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/matlab/matlab_ok.m +0 -0
  110. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mfem_good.py +0 -0
  111. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mfem_no_import.py +0 -0
  112. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mfem_no_mesh.py +0 -0
  113. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mfem_syntax_error.py +0 -0
  114. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mock_fail.py +0 -0
  115. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/mock_solver.py +0 -0
  116. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/newton/basic_pendulum.json +0 -0
  117. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/newton/cable_twist.py +0 -0
  118. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/newton/robot_g1.json +0 -0
  119. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/not_simulation.py +0 -0
  120. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/pybamm/pybamm_bad_import.py +0 -0
  121. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/pybamm/pybamm_crate_sweep.py +0 -0
  122. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/pybamm/pybamm_no_solve.py +0 -0
  123. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/pybamm/pybamm_spm_good.py +0 -0
  124. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/skfem_good.py +0 -0
  125. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/skfem_no_import.py +0 -0
  126. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/skfem_no_solve.py +0 -0
  127. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/fixtures/skfem_syntax_error.py +0 -0
  128. {sim_cli_core-0.2.4/tests/drivers/coolprop → sim_cli_core-0.3.0/tests/gui}/__init__.py +0 -0
  129. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/gui/test_connect_tools_field.py +0 -0
  130. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/gui/test_gui_facade.py +0 -0
  131. {sim_cli_core-0.2.4/tests/gui → sim_cli_core-0.3.0/tests/inspect}/__init__.py +0 -0
  132. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/_extract_comsol_Tmax.py +0 -0
  133. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/test_channel_3_4_5_9.py +0 -0
  134. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/test_gui_probes.py +0 -0
  135. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/test_inspect_types.py +0 -0
  136. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/test_probes.py +0 -0
  137. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tests/inspect/test_snippet_timeout.py +0 -0
  138. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tools/extract_driver.py +0 -0
  139. {sim_cli_core-0.2.4 → sim_cli_core-0.3.0}/tools/lint-public-corpus.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sim-cli-core
3
- Version: 0.2.4
3
+ Version: 0.3.0
4
4
  Summary: Make every engineering tool agent-native — a CLI runtime that lets LLM agents launch, drive, and observe CAD/CAE software
5
5
  Project-URL: Homepage, https://github.com/svd-ai-lab/sim-cli
6
6
  Project-URL: Repository, https://github.com/svd-ai-lab/sim-cli
@@ -11,7 +11,7 @@ Author-email: Weiqi Ji <jiweiqi10@gmail.com>
11
11
  License-Expression: Apache-2.0
12
12
  License-File: LICENSE
13
13
  License-File: NOTICE
14
- Keywords: agent,agentic,cad,cae,cfd,coolprop,fea,llm,openfoam,simulation
14
+ Keywords: agent,agentic,cad,cae,cfd,fea,llm,out-of-tree,plugins,simulation
15
15
  Classifier: Development Status :: 3 - Alpha
16
16
  Classifier: Intended Audience :: Developers
17
17
  Classifier: Intended Audience :: Science/Research
@@ -36,8 +36,6 @@ Requires-Dist: uvicorn>=0.34
36
36
  Provides-Extra: dev
37
37
  Requires-Dist: pytest>=8.0; extra == 'dev'
38
38
  Requires-Dist: ruff>=0.4; extra == 'dev'
39
- Provides-Extra: pybamm
40
- Requires-Dist: pybamm>=24.0; extra == 'pybamm'
41
39
  Description-Content-Type: text/markdown
42
40
 
43
41
  <div align="center">
@@ -158,7 +156,7 @@ That's the full loop: **detect → bootstrap → launch → drive → observe
158
156
 
159
157
  ## 🧪 Solver registry
160
158
 
161
- `sim-cli` core is **solver-agnostic** — it ships with one OSS driver as a built-in (`openfoam`), and every other solver is reached through an **out-of-tree plugin package** registered via the `sim.drivers` entry-point group. Adding a new backend is a ~200-LOC `DriverProtocol` implementation in its own `sim-plugin-<name>` repo.
159
+ `sim-cli` core is **fully solver-agnostic** — it ships with **zero built-in drivers**. Every solver, including OpenFOAM, is reached through an **out-of-tree plugin package** registered via the `sim.drivers` entry-point group. Adding a new backend is a ~200-LOC `DriverProtocol` implementation in its own `sim-plugin-<name>` repo.
162
160
 
163
161
  Plugin coverage spans CFD, multiphysics, electronics thermal, implicit and explicit structural FEA, pre/post-processing, mesh generation, embodied-AI / GPU physics, molecular dynamics, optimization / MDAO, battery modeling, thermo properties, power-systems and RF simulation, and discrete-event modeling. Browse the curated index:
164
162
 
@@ -169,6 +167,13 @@ sim plugin install <name> # e.g. sim plugin install ltspice
169
167
 
170
168
  The index is served from [`sim-plugin-index`](https://github.com/svd-ai-lab/sim-plugin-index); reference plugins to read for shape: [`sim-plugin-coolprop`](https://github.com/svd-ai-lab/sim-plugin-coolprop) (one-shot, no SDK gate), [`sim-plugin-ltspice`](https://github.com/svd-ai-lab/sim-plugin-ltspice) (one-shot with vendor binary), [`sim-plugin-pybamm`](https://github.com/svd-ai-lab/sim-plugin-pybamm) (heavy SDK).
171
169
 
170
+ **Private plugins** (vendor-IP-sensitive backends not in the public index) install directly by URL — same `sim plugin install` flow:
171
+
172
+ ```bash
173
+ sim plugin install git+https://github.com/<org>/sim-plugin-<name>
174
+ # (you need read-access to the repo; without it, git clone returns 401)
175
+ ```
176
+
172
177
  Per-solver protocols, snippets, and demo workflows live in [`sim-skills`](https://github.com/svd-ai-lab/sim-skills) and the per-plugin repos.
173
178
 
174
179
  ---
@@ -116,7 +116,7 @@ That's the full loop: **detect → bootstrap → launch → drive → observe
116
116
 
117
117
  ## 🧪 Solver registry
118
118
 
119
- `sim-cli` core is **solver-agnostic** — it ships with one OSS driver as a built-in (`openfoam`), and every other solver is reached through an **out-of-tree plugin package** registered via the `sim.drivers` entry-point group. Adding a new backend is a ~200-LOC `DriverProtocol` implementation in its own `sim-plugin-<name>` repo.
119
+ `sim-cli` core is **fully solver-agnostic** — it ships with **zero built-in drivers**. Every solver, including OpenFOAM, is reached through an **out-of-tree plugin package** registered via the `sim.drivers` entry-point group. Adding a new backend is a ~200-LOC `DriverProtocol` implementation in its own `sim-plugin-<name>` repo.
120
120
 
121
121
  Plugin coverage spans CFD, multiphysics, electronics thermal, implicit and explicit structural FEA, pre/post-processing, mesh generation, embodied-AI / GPU physics, molecular dynamics, optimization / MDAO, battery modeling, thermo properties, power-systems and RF simulation, and discrete-event modeling. Browse the curated index:
122
122
 
@@ -127,6 +127,13 @@ sim plugin install <name> # e.g. sim plugin install ltspice
127
127
 
128
128
  The index is served from [`sim-plugin-index`](https://github.com/svd-ai-lab/sim-plugin-index); reference plugins to read for shape: [`sim-plugin-coolprop`](https://github.com/svd-ai-lab/sim-plugin-coolprop) (one-shot, no SDK gate), [`sim-plugin-ltspice`](https://github.com/svd-ai-lab/sim-plugin-ltspice) (one-shot with vendor binary), [`sim-plugin-pybamm`](https://github.com/svd-ai-lab/sim-plugin-pybamm) (heavy SDK).
129
129
 
130
+ **Private plugins** (vendor-IP-sensitive backends not in the public index) install directly by URL — same `sim plugin install` flow:
131
+
132
+ ```bash
133
+ sim plugin install git+https://github.com/<org>/sim-plugin-<name>
134
+ # (you need read-access to the repo; without it, git clone returns 401)
135
+ ```
136
+
130
137
  Per-solver protocols, snippets, and demo workflows live in [`sim-skills`](https://github.com/svd-ai-lab/sim-skills) and the per-plugin repos.
131
138
 
132
139
  ---
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sim-cli-core"
3
- version = "0.2.4"
3
+ version = "0.3.0"
4
4
  description = "Make every engineering tool agent-native — a CLI runtime that lets LLM agents launch, drive, and observe CAD/CAE software"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -9,7 +9,7 @@ authors = [{ name = "Weiqi Ji", email = "jiweiqi10@gmail.com" }]
9
9
  keywords = [
10
10
  "simulation", "cae", "cad", "cfd", "fea",
11
11
  "llm", "agent", "agentic",
12
- "openfoam", "coolprop",
12
+ "plugins", "out-of-tree",
13
13
  ]
14
14
  classifiers = [
15
15
  "Development Status :: 3 - Alpha",
@@ -42,7 +42,6 @@ dependencies = [
42
42
  ]
43
43
 
44
44
  [project.optional-dependencies]
45
- pybamm = ["pybamm>=24.0"]
46
45
  dev = ["pytest>=8.0", "ruff>=0.4"]
47
46
 
48
47
  [project.urls]
@@ -35,21 +35,15 @@ log = logging.getLogger(__name__)
35
35
  _ENTRY_POINT_GROUP = "sim.drivers"
36
36
 
37
37
 
38
+ # Pure-plugin architecture (Phase 3b, 2026-04-28): every driver — including
39
+ # the historical canaries openfoam and coolprop — ships as an out-of-tree
40
+ # `sim-plugin-<name>` package, discovered via the `sim.drivers` entry-point
41
+ # group below. The built-in registry is intentionally empty; sim-cli core
42
+ # carries no solver-specific code or dependencies.
43
+ #
38
44
  # (driver_name, "module:Class") — order controls `solvers list` output order
39
- # and `lint` first-match priority.
40
- _BUILTIN_REGISTRY: list[tuple[str, str]] = [
41
- # openfoam: Phase 3a plugin-extraction canary (2026-04-28). Held as the
42
- # soak safety net while sim-plugin-openfoam ships the external counter-
43
- # part. Earlier "has a real session implementation, not a drop-in
44
- # extraction candidate" framing was wrong — the driver is a generic
45
- # HTTP client over sim-server's normal endpoints, structurally identical
46
- # to coolprop. Empty-registry cut tracked in svd-ai-lab/sim-proj#69.
47
- ("openfoam", "sim.drivers.openfoam:OpenFOAMDriver"),
48
- # coolprop: Phase 1 plugin-extraction canary. Held in the registry as
49
- # the safety net during the 1-week soak; sim-plugin-coolprop ships the
50
- # external counterpart. Removal lands in a follow-up PR after soak.
51
- ("coolprop", "sim.drivers.coolprop:CoolPropDriver"),
52
- ]
45
+ # and `lint` first-match priority. Externals from entry_points are appended.
46
+ _BUILTIN_REGISTRY: list[tuple[str, str]] = []
53
47
 
54
48
 
55
49
  def _is_valid_spec(spec: str) -> bool:
@@ -66,9 +66,9 @@ def test_check_all_json_shape():
66
66
  for k in ("version", "path", "source"):
67
67
  assert k in row, f"installed row missing {k}: {row}"
68
68
 
69
- # at least one driver known to be in DRIVERS should appear
69
+ # the conftest synthetic driver (registered as "coolprop") should appear
70
70
  names = {row["name"] for row in solvers}
71
- assert "openfoam" in names
71
+ assert "coolprop" in names
72
72
 
73
73
  # ordering is stable: by name alphabetical
74
74
  names_list = [row["name"] for row in solvers]
@@ -1,6 +1,9 @@
1
1
  """Tests for ``sim plugin`` commands and the underlying discovery layer.
2
2
 
3
- Pure unit tests against the in-tree built-in registry. Tests for actually
3
+ Post-Phase-3b ``_BUILTIN_REGISTRY`` is empty. The conftest synthetic
4
+ ``coolprop`` driver (autouse fixture, ``tests/base/`` only) is what makes
5
+ these tests find anything at all — when it's active, plugin/list/doctor
6
+ see a single registered driver named "coolprop". Tests for actually
4
7
  installing external plugins (`sim plugin install <wheel>`) live in
5
8
  test_plugin_install.py.
6
9
  """
@@ -23,22 +26,20 @@ def runner() -> CliRunner:
23
26
  # ── Discovery layer ─────────────────────────────────────────────────────────
24
27
 
25
28
 
26
- def test_list_installed_plugins_returns_all_built_ins():
29
+ def test_list_installed_plugins_returns_synthetic_coolprop():
27
30
  rows = _plugins.list_installed_plugins()
28
- assert rows
31
+ assert rows, "synthetic coolprop should be visible via the conftest fixture"
29
32
  names = {r.name for r in rows}
30
- # The registry post-Phase-2D contains only the still-bundled drivers.
31
- # OSS-no-GUI drivers are extracted into sim-plugin-* repos.
32
- for required in ("openfoam", "coolprop"):
33
- assert required in names, f"missing built-in: {required}"
33
+ assert "coolprop" in names, f"missing synthetic driver: {sorted(names)}"
34
34
 
35
35
 
36
- def test_built_in_rows_marked_builtin_true():
36
+ def test_synthetic_row_marked_builtin_true():
37
37
  rows = _plugins.list_installed_plugins()
38
- for r in rows:
39
- # The current registry has all built-ins; no externals installed in test env.
40
- assert r.builtin is True
41
- assert r.driver_module.startswith("sim.drivers.")
38
+ coolprop = next((r for r in rows if r.name == "coolprop"), None)
39
+ assert coolprop is not None
40
+ # Conftest injects the synthetic into _BUILTIN_REGISTRY for the duration
41
+ # of each tests/base/ test, so it appears as a builtin.
42
+ assert coolprop.builtin is True
42
43
 
43
44
 
44
45
  def test_plugin_info_for_unknown_returns_none():
@@ -122,10 +123,9 @@ def test_cli_plugin_doctor_all_built_ins(runner):
122
123
  assert r.exit_code == 0, r.output
123
124
  data = json.loads(r.output)
124
125
  assert data["ok"] is True
125
- # Post-cleanup the registry holds only openfoam (built-in by design;
126
- # has the sim-server bridge) plus coolprop (Phase 1 canary, soak ends
127
- # 2026-05-05). OSS-no-GUI drivers ship as out-of-tree plugins.
128
- assert len(data["reports"]) >= 2
126
+ # Post-Phase-3b _BUILTIN_REGISTRY is empty; only the conftest synthetic
127
+ # coolprop driver is registered for tests/base/ scope.
128
+ assert len(data["reports"]) >= 1
129
129
 
130
130
 
131
131
  def test_cli_plugin_doctor_unknown_fails(runner):
@@ -172,17 +172,7 @@ def test_assert_message_lists_every_failure():
172
172
  assert "session:disconnect" in msg
173
173
 
174
174
 
175
- # ── Real built-in driver smoke ──────────────────────────────────────────────
176
-
177
-
178
- def test_built_in_coolprop_driver_check_runs():
179
- """We don't assert ``failures == []`` for built-ins (they may legitimately
180
- be in flux), only that the harness runs against a real driver class
181
- without crashing. This is a smoke test for the harness itself.
182
- """
183
- from sim.drivers.coolprop.driver import CoolPropDriver
184
- failures = check_driver(CoolPropDriver)
185
- assert isinstance(failures, list)
175
+ # ── Built-in registry conformance ───────────────────────────────────────────
186
176
 
187
177
 
188
178
  def test_every_built_in_driver_matches_protocol():
@@ -14,15 +14,15 @@ EXECUTION = Path(__file__).parent / "execution"
14
14
 
15
15
  # ── Synthetic driver injected for registry-dependent CLI tests ─────────────
16
16
  #
17
- # Phase 2D extracted every OSS-no-GUI driver into out-of-tree plugins, so the
18
- # in-tree registry now holds only openfoam (session-capable, kept by design)
19
- # plus the coolprop soak canary (gates ``run_file`` on a real SDK install,
20
- # which fails in CI). Several CLI tests need a *registered* driver that can
21
- # run an arbitrary ``.py`` script as a subprocess (mock_solver.py); that
22
- # contract used to be served by the built-in pybamm driver. Replace it with a
23
- # session-scoped autouse fixture that injects a synthetic ``coolprop`` driver
24
- # implementation — keeping the test command lines unchanged
25
- # (``--solver=coolprop``) while bypassing the SDK-install gate.
17
+ # Pure-plugin architecture (Phase 3b): ``_BUILTIN_REGISTRY`` is empty —
18
+ # every driver, including the historical canaries openfoam and coolprop,
19
+ # now ships as an out-of-tree ``sim-plugin-<name>`` package. Several CLI
20
+ # tests need a *registered* driver that can run an arbitrary ``.py`` script
21
+ # as a subprocess (mock_solver.py); that contract used to be served by the
22
+ # in-tree pybamm/coolprop drivers. The fixture below injects a synthetic
23
+ # ``coolprop`` driver into both the registry and instance cache — keeping
24
+ # test command lines unchanged (``--solver=coolprop``) without needing
25
+ # any real plugin installed in the CI env.
26
26
  #
27
27
  # Active only for tests under ``tests/base/``; driver-specific suites (e.g.
28
28
  # ``tests/drivers/<name>/``) opt out so their real driver code is exercised.
@@ -91,11 +91,13 @@ class _SyntheticPyDriver:
91
91
 
92
92
  @pytest.fixture(autouse=True)
93
93
  def _inject_synthetic_coolprop(request):
94
- """Replace the registry's coolprop driver with a synthetic one for base CLI tests.
94
+ """Inject a synthetic ``coolprop`` driver into the registry for base CLI tests.
95
95
 
96
96
  Active only under ``tests/base/``; driver-specific suites still exercise
97
- the real classes. Patches the ``_INSTANCE_CACHE`` so resolves return the
98
- synthetic driver without going through the real coolprop module.
97
+ the real classes. Post-Phase-3b ``_BUILTIN_REGISTRY`` is empty, so the
98
+ fixture patches BOTH the registry entries (so ``iter_drivers`` /
99
+ ``sim solvers list`` / ``sim check`` see the synthetic) AND
100
+ ``_INSTANCE_CACHE`` (so ``get_driver("coolprop")`` skips re-import).
99
101
  """
100
102
  if "tests/base/" not in str(request.fspath).replace("\\", "/"):
101
103
  yield
@@ -104,11 +106,20 @@ def _inject_synthetic_coolprop(request):
104
106
  from sim import drivers as _drivers_pkg
105
107
 
106
108
  instance = _SyntheticPyDriver()
107
- original = _drivers_pkg._INSTANCE_CACHE.pop("coolprop", None)
109
+ fake_spec = ("coolprop", "tests.conftest:_SyntheticPyDriver")
110
+
111
+ orig_builtin = list(_drivers_pkg._BUILTIN_REGISTRY)
112
+ orig_registry = list(_drivers_pkg._REGISTRY)
113
+ orig_cache = _drivers_pkg._INSTANCE_CACHE.pop("coolprop", None)
114
+
115
+ _drivers_pkg._BUILTIN_REGISTRY.append(fake_spec)
116
+ _drivers_pkg._REGISTRY.append(fake_spec)
108
117
  _drivers_pkg._INSTANCE_CACHE["coolprop"] = instance
109
118
  try:
110
119
  yield
111
120
  finally:
121
+ _drivers_pkg._BUILTIN_REGISTRY[:] = orig_builtin
122
+ _drivers_pkg._REGISTRY[:] = orig_registry
112
123
  _drivers_pkg._INSTANCE_CACHE.pop("coolprop", None)
113
- if original is not None:
114
- _drivers_pkg._INSTANCE_CACHE["coolprop"] = original
124
+ if orig_cache is not None:
125
+ _drivers_pkg._INSTANCE_CACHE["coolprop"] = orig_cache