sim-cli-core 0.3.9__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
sim/_plugin_install.py CHANGED
@@ -40,7 +40,7 @@ def _install_migration_message(source: str | None = None) -> str:
40
40
  return (
41
41
  f"{base}\n\n"
42
42
  "Short solver names are not package specs. Find the package spec in "
43
- "docs.svdailab.com/plugin-index or sim-plugin-index, then run:\n"
43
+ "the sim-cli workspace plugin-index.json, then run:\n"
44
44
  " uv add sim-cli-core <plugin-package-spec>"
45
45
  )
46
46
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SVD AI Lab
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: external-solver-discovery
3
+ description: "Discover and safely use external ad hoc solver capabilities, third-party skills, plugins, MCP servers, or native APIs when the host app or agent environment does not bundle a first-party solver path. Use for unsupported solver requests such as FDTD, Lumerical, Meep, openEMS, Tidy3D, gprMax, CST Studio Suite, or user-provided external integrations."
4
+ ---
5
+
6
+ # External Solver Discovery
7
+
8
+ Use this skill when a user needs a solver, third-party plugin, MCP server,
9
+ native API, or cloud service that is not already covered by a bundled
10
+ solver-specific skill.
11
+
12
+ This skill is an ad hoc discovery layer. It does not make an external solver
13
+ supported, installed, licensed, authenticated, or available. It helps the agent
14
+ find credible local or user-configured routes and report evidence honestly.
15
+
16
+ ## Required Protocol
17
+
18
+ 1. Name the requested capability and distinguish it from bundled solver support.
19
+ For example, HFSS support is 3D EM support, not FDTD support.
20
+ 2. Check the current runtime before network-dependent discovery:
21
+ - attached files and workspace extensions
22
+ - project package files and scripts
23
+ - installed commands, environment variables, registry/app paths, and common
24
+ application locations
25
+ - visible skills, plugins, MCP tools, connector tools, and native APIs
26
+ - user-provided licenses, paths, profiles, or account hints
27
+ 3. If a third-party skill, plugin, or MCP server is visible, inspect its own
28
+ manifest, README, SKILL file, tool schema, or help output before using it.
29
+ Prefer integrations that expose provenance, version, tool list, and logs.
30
+ 4. Do not install packages, enable cloud services, consume a license seat, submit
31
+ jobs, or authenticate accounts without user approval.
32
+ 5. Probe the smallest real route first:
33
+ - version or import check
34
+ - open/list a project without solving
35
+ - dry script parse
36
+ - tiny example run
37
+ - MCP health/tool-list call
38
+ 6. Treat command success as transport evidence only. Engineering evidence must
39
+ come from solver logs, exported data, result files, convergence, field data,
40
+ S-parameters, or another domain-specific output requested by the user.
41
+ 7. If no credible route is available, state exactly what is missing and give the
42
+ narrowest next step, such as a vendor install path, Python environment,
43
+ package install, MCP server command, API key, or license check.
44
+
45
+ ## Candidate Selection
46
+
47
+ Prefer the user's already visible capability over installing a new one. Use
48
+ these tie-breakers:
49
+
50
+ - Project-native files first. A `.fsp` or `.lsf` project points to a different
51
+ route than a Python Meep script.
52
+ - Local native APIs before GUI automation when they can expose the required
53
+ state and logs.
54
+ - GUI automation only when the user needs visual operation or the API cannot
55
+ expose the required state.
56
+ - Cloud APIs only when the user confirms account, credentials, data-sensitivity
57
+ constraints, and job-cost expectations.
58
+ - sim-cli plugins when a matching plugin exists and standardized checks,
59
+ session control, or plugin diagnostics materially reduce risk.
60
+
61
+ ## FDTD Ad Hoc Checklist
62
+
63
+ The host app or agent environment may not bundle first-party FDTD support. When
64
+ a user asks for FDTD, Lumerical, Meep, openEMS, Tidy3D, gprMax, or files such as
65
+ `.fsp` or `.lsf`, treat the request as external ad hoc discovery.
66
+
67
+ Candidate routes to check:
68
+
69
+ - **Ansys Lumerical FDTD**: Prefer when the user has a licensed install or the
70
+ workspace contains `.fsp` / `.lsf` files. Probe user-provided paths, common
71
+ install locations, and the vendor Python API only after locating a real
72
+ install. Do not attempt to install Lumerical or obtain licenses.
73
+ - **Meep**: Prefer when the project already has Python or Scheme Meep scripts,
74
+ or an open-source scriptable FDTD path is acceptable. Probe the project
75
+ Python/conda/container environment with an import or version check before any
76
+ run. Ask before installing Meep or creating a new environment.
77
+ - **openEMS**: Prefer for RF, microwave, antenna, or PCB-oriented workflows,
78
+ especially when MATLAB/Octave/Python openEMS scripts or CSXCAD references are
79
+ present. Probe MATLAB, Octave, Python, and `PATH` before running examples.
80
+ - **Tidy3D**: Prefer only when the user confirms a Tidy3D account/API
81
+ configuration and cloud submission is acceptable for the project data. Run
82
+ local validation or no-submit construction before uploading or submitting a
83
+ paid/cloud job.
84
+ - **gprMax**: Prefer for ground-penetrating radar or geophysical FDTD problems.
85
+ Probe input files for gprMax directives and run a version/import check before
86
+ any full model.
87
+
88
+ Common project signals include `.fsp`, `.lsf`, `.ctl`, `lumapi`, `import meep`,
89
+ `openEMS`, `CSXCAD`, `InitFDTD`, `RunOpenEMS`, `tidy3d`, `TIDY3D`, `gprMax`,
90
+ `#domain`, `#material`, and `#waveform`.
91
+
92
+ For any FDTD route, collect evidence from the actual tool or API: version or
93
+ install path, opened project or parsed script, run log, mesh/result metadata,
94
+ monitor exports, fields, flux data, S-parameters, HDF5/CSV output, or the
95
+ domain-specific result requested by the user.
96
+
97
+ ## CST Third-Party Reference Checklist
98
+
99
+ The host app or agent environment may not bundle first-party CST Studio Suite
100
+ support. The public CAE-Agent-Hub repository can be used as a third-party
101
+ reference when the user explicitly wants a CST MCP route or CST workflow skill:
102
+
103
+ - CST MCP reference:
104
+ `https://github.com/Cai-aa/CAE-Agent-Hub/tree/main/MCP/CST`
105
+ - CST workflow skill reference:
106
+ `https://github.com/Cai-aa/CAE-Agent-Hub/tree/main/Skill/CST/cst-simulation-workflow`
107
+
108
+ Treat these URLs as discovery pointers, not bundled or audited support. Before
109
+ using them:
110
+
111
+ - Check local evidence first: `.cst` projects, CST Studio Suite install paths,
112
+ `CST_INSTALL_ROOT`, visible MCP server registrations, visible skill folders,
113
+ project package files, and user-provided paths or license hints.
114
+ - If CAE-Agent-Hub is present or the user asks to install it, inspect the
115
+ repository README, CST MCP README, CST skill `SKILL.md`, and MCP tool surface
116
+ from that checkout before running tools.
117
+ - Do not clone, install dependencies, register the MCP server, open CST, run a
118
+ solver, or consume a CST license seat without user approval.
119
+ - Prefer a project-local checkout pinned to a tag or commit when installing.
120
+ Avoid presenting a floating third-party `main` checkout as a reproducible
121
+ integration.
122
+ - Verify the MCP transport with a health, detect, or tool-list probe before
123
+ opening projects or invoking CST automation.
124
+ - Work on a copy of any user `.cst` project unless the user explicitly requests
125
+ in-place modification.
126
+
127
+ For CST work, engineering evidence should come from the real CST route: detected
128
+ version or install path, opened project metadata, saved project path, solver log,
129
+ result tree entries, exported S-parameters, Touchstone files, field data,
130
+ far-field or near-field exports, sweep summaries, or the specific result the
131
+ user requested.
132
+
133
+ ## Reporting
134
+
135
+ Keep the status crisp:
136
+
137
+ - `verified`: the runtime exposed the tool/API/MCP and a real probe succeeded.
138
+ - `available but unproven`: a likely install or config exists but no probe has
139
+ run yet.
140
+ - `installable`: there is a known package/service route, but it is not present.
141
+ - `blocked`: a required install, license, credential, path, or network route is
142
+ missing.
143
+
144
+ Never describe an ad hoc external route as bundled or first-party support.
@@ -0,0 +1,7 @@
1
+ {
2
+ "path": "src/sim/_skills/external-solver-discovery",
3
+ "license": "MIT",
4
+ "repository": "https://github.com/svd-ai-lab/sim-cli",
5
+ "original_repository": "https://github.com/svd-ai-lab/sim-plugin-index",
6
+ "original_path": "skills/external-solver-discovery"
7
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sim-cli-core
3
- Version: 0.3.9
3
+ Version: 0.4.0
4
4
  Summary: Agent-native simulation asset parsing and CAD/CAE runtime
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
@@ -98,6 +98,8 @@ roll-up `summary` block.)
98
98
  | Ansys Mechanical | `.mechdb`, `.mechdat` | `ansys-mechanical` |
99
99
  | Icepak Classic | `.tzr` | `icepak-tzr` |
100
100
  | Simcenter FloTHERM | `.pack`, `.xml`, `.floxml` | `flotherm-pack`, `flotherm-floxml` |
101
+ | Simulink | `.slx`, `.mdl` | `simulink-slx`, `simulink-mdl` |
102
+ | MATLAB data | `.mat` | `matlab-mat` |
101
103
 
102
104
  The default view is bounded — lists come back as `{total, sample, truncated}`
103
105
  so a large scan cannot blow up an agent's context — and absolute paths are
@@ -173,14 +175,16 @@ provides a **driver**, so `sim` can launch or talk to the solver, and a
173
175
  **skill**, so the agent knows that solver's workflow, pitfalls, and inspection
174
176
  rules.
175
177
 
176
- | Solver | Package spec | Plugin repo |
177
- | --- | --- | --- |
178
- | COMSOL | `sim-plugin-comsol` | [sim-plugin-comsol](https://github.com/svd-ai-lab/sim-plugin-comsol) |
179
- | Abaqus | `sim-plugin-abaqus` | [sim-plugin-abaqus](https://github.com/svd-ai-lab/sim-plugin-abaqus) |
180
- | LTspice | `sim-plugin-ltspice` | [sim-plugin-ltspice](https://github.com/svd-ai-lab/sim-plugin-ltspice) |
178
+ Packages and entry points are listed in the [workspace plugin index](plugin-index.json).
179
+ Each plugin remains independently installable from PyPI under its existing
180
+ `sim-plugin-<solver>` name. Its source and bundled skills live in
181
+ [`plugins/<solver>/`](plugins/).
182
+
183
+ For a source install of one plugin:
181
184
 
182
- For the curated full list, see
183
- [sim-plugin-index](https://github.com/svd-ai-lab/sim-plugin-index).
185
+ ```bash
186
+ uv add sim-cli-core "sim-plugin-fluent @ git+https://github.com/svd-ai-lab/sim-cli.git#subdirectory=plugins/fluent"
187
+ ```
184
188
 
185
189
  ## Commands
186
190
 
@@ -1,6 +1,6 @@
1
1
  sim/__init__.py,sha256=FQjdXr5BNBglRfKQ940zGQ3t5c2rCUjzDCuK2SYIp1Y,345
2
2
  sim/__main__.py,sha256=hwGnM_V9it8Ds_SjAg0hRDqIaNp7L0A8Zx4WUbPKi6U,1034
3
- sim/_plugin_install.py,sha256=JijN8jqm2-UhWWOBKNH6SEYx81NSXjJHdu7FWMA5WGA,5304
3
+ sim/_plugin_install.py,sha256=2znIrttqGiOndhauk6Rc9z5c-hCVP20Un9rmoI9cpD8,5293
4
4
  sim/_timeout.py,sha256=jUWw311yDinvqwWGO55CDgInbyioB3a4_8xovR_8g9E,3697
5
5
  sim/assets.py,sha256=K1HkCDbIPaVT7YnzAgcV1nU6FB6BzUattkv4eKqf4wQ,10697
6
6
  sim/cli.py,sha256=t_5kBLCzXJvFZNNCpOcCA6h-yw7ZfQ54IbEOzgCwyHU,58132
@@ -14,6 +14,9 @@ sim/plugins.py,sha256=d6oKBMLJQkqgjv6fLejlIsHd169ygJ0YLO_LRaETaOw,18010
14
14
  sim/runner.py,sha256=QGT9wAfN7mrO1n7BSn1x49c7kerSCXLscyJ2dCwZCOo,6641
15
15
  sim/server.py,sha256=LlMrXZmAjlEg1AwxQ07CKSLa2-zyoHAdx9ShwWSSoiw,23172
16
16
  sim/session.py,sha256=3gJaOW4YpmdCue6kOQgupE8j4ECZ55_MUDY1ulhx1wI,8359
17
+ sim/_skills/external-solver-discovery/LICENSE,sha256=4vpMuQZIqEr4-iaJtIiRno6HtowJOTI9bY1jlnhKX_4,1067
18
+ sim/_skills/external-solver-discovery/SKILL.md,sha256=8SSiGfsDpU4qqWiFogfMmi6h6LqxxwIEBx2D0uZGyOc,7431
19
+ sim/_skills/external-solver-discovery/provenance.json,sha256=H_NLa-1ODvvDRWrBN9c5XkN5i3yatQ-BDmhOto9s9Pc,265
17
20
  sim/_skills/sim-cli/SKILL.md,sha256=vYfpR690hGkb8KNvVgx9QXTSQlhNj9fxD44M7dd9jvI,8623
18
21
  sim/_skills/sim-cli/gui/SKILL.md,sha256=WyGmBhldgI3Q_kcq4wTL1WTpnXlSKeIjPyGosuwV1Ds,8969
19
22
  sim/_skills/sim-cli/gui/snippets/dismiss_named_dialog.py,sha256=9OgCoVffBMSr5AoW03GklEYXaeoOoKL13dnifMm4MVo,692
@@ -24,9 +27,9 @@ sim/gui/_win32_dialog.py,sha256=4hErvQxY4SwW_fTpX3FTUxhugkRYpkTRdBiBDu9_1DE,4731
24
27
  sim/gui/LICENSES/ATTRIBUTION.md,sha256=X5EdZV0Gt0FdG9FpeCZ-22I3cqRg9SmoQt-86DqCBak,1150
25
28
  sim/testing/__init__.py,sha256=iGwbSfJucKuhNLOiDnUmQCBlkhukWyp7cj89YDhoEOk,855
26
29
  sim/testing/protocol_conformance.py,sha256=q0r7QgPoAyU-eMqN4fJWx0XZv8YNolGghu9-zDC8bls,9867
27
- sim_cli_core-0.3.9.dist-info/METADATA,sha256=V45b0cKNsxXObHAUZgd-7P5XhsLokKXkMLsqBgwl9GM,10246
28
- sim_cli_core-0.3.9.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
29
- sim_cli_core-0.3.9.dist-info/entry_points.txt,sha256=hpg7D0fRhpgmo1IyN35XQPoyIZRSw7SLNG7tW0eacGA,37
30
- sim_cli_core-0.3.9.dist-info/licenses/LICENSE,sha256=7toF0XzHlqSXvTlZ8W77R6pg2ilzKN73EOG0SioX7wQ,10762
31
- sim_cli_core-0.3.9.dist-info/licenses/NOTICE,sha256=GQ0HVRFnQwrSFFm-7mYWTTtWDcko0_p2Rdv5t62glts,1752
32
- sim_cli_core-0.3.9.dist-info/RECORD,,
30
+ sim_cli_core-0.4.0.dist-info/METADATA,sha256=A61Wa0IzwDBDZkFkmhd-4hrZURiJKTdjbQ_GEjjDam0,10302
31
+ sim_cli_core-0.4.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
32
+ sim_cli_core-0.4.0.dist-info/entry_points.txt,sha256=hpg7D0fRhpgmo1IyN35XQPoyIZRSw7SLNG7tW0eacGA,37
33
+ sim_cli_core-0.4.0.dist-info/licenses/LICENSE,sha256=7toF0XzHlqSXvTlZ8W77R6pg2ilzKN73EOG0SioX7wQ,10762
34
+ sim_cli_core-0.4.0.dist-info/licenses/NOTICE,sha256=GQ0HVRFnQwrSFFm-7mYWTTtWDcko0_p2Rdv5t62glts,1752
35
+ sim_cli_core-0.4.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.0
2
+ Generator: hatchling 1.32.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any