@yakovlev-i-a/dsh-openfoam-workbench 0.0.0-stage → 0.9.26
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/CHANGELOG.md +683 -0
- package/CORE.md +50 -0
- package/LICENSE +202 -0
- package/NOTICE +29 -0
- package/README.md +373 -2
- package/client.js +48 -0
- package/cordis.patch.yml +18 -0
- package/icon.png +0 -0
- package/lib/buildlib.js +42 -0
- package/lib/caselib.js +212 -0
- package/lib/core.js +47 -0
- package/lib/discover.js +139 -0
- package/lib/escalations.js +92 -0
- package/lib/explib.js +149 -0
- package/lib/impact.js +55 -0
- package/lib/index.js +109 -0
- package/lib/knowledge.js +108 -0
- package/lib/meshlib.js +375 -0
- package/lib/needs-input.js +32 -0
- package/lib/of-case.js +485 -0
- package/lib/of-engine.js +1061 -0
- package/lib/paperlib.js +200 -0
- package/lib/presentation.js +365 -0
- package/lib/registry.js +142 -0
- package/lib/routing-guard.js +126 -0
- package/lib/runtime.js +580 -0
- package/lib/scaffold-cht.js +318 -0
- package/lib/scaffold-compressible.js +171 -0
- package/lib/scaffold.js +355 -0
- package/lib/settings-schema.js +86 -0
- package/lib/skills.js +53 -0
- package/lib/tools/build.js +90 -0
- package/lib/tools/case.js +1082 -0
- package/lib/tools/env.js +592 -0
- package/lib/tools/experience.js +165 -0
- package/lib/tools/mesh.js +408 -0
- package/lib/tools/meta.js +95 -0
- package/lib/tools/papers.js +105 -0
- package/lib/tools/render.js +94 -0
- package/lib/tools/run.js +331 -0
- package/lib/versions.js +133 -0
- package/licenses/dsh-openfoam-doctor-MIT.txt +21 -0
- package/locale/en.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +44 -4
- package/skills/openfoam-analyze/SKILL.md +27 -0
- package/skills/openfoam-case-builder/SKILL.md +61 -0
- package/skills/openfoam-cht/SKILL.md +83 -0
- package/skills/openfoam-code-modify/SKILL.md +32 -0
- package/skills/openfoam-mesh-independence/SKILL.md +55 -0
- package/skills/openfoam-meshing/SKILL.md +30 -0
- package/skills/openfoam-paper-reproduction/SKILL.md +36 -0
- package/skills/openfoam-self-evolution/SKILL.md +21 -0
- package/skills/openfoam-solver-development/SKILL.md +61 -0
- package/skills/openfoam-stats/SKILL.md +46 -0
- package/skills/openfoam-viz/SKILL.md +35 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.9.26
|
|
4
|
+
|
|
5
|
+
Packaging for distribution.
|
|
6
|
+
|
|
7
|
+
- `package.json`: `private` is now `false` with `publishConfig.access: public`, so
|
|
8
|
+
the package can be published to npm as
|
|
9
|
+
`@yakovlev-i-a/dsh-openfoam-workbench` (still `0.x`, as agreed).
|
|
10
|
+
- README documents all three install paths: a commit-pinned git spec, the npm
|
|
11
|
+
package, and a local checkout.
|
|
12
|
+
- Repository metadata moved to the current state (65 tools) and the
|
|
13
|
+
`dsh-plugin` topic is set for discovery.
|
|
14
|
+
- 174 tests.
|
|
15
|
+
|
|
16
|
+
## v0.9.25
|
|
17
|
+
|
|
18
|
+
`strict` routing with an audited exception path.
|
|
19
|
+
|
|
20
|
+
- **`enforceToolRouting: 'strict'`**: a `bash`/`write`/`edit` call that writes a
|
|
21
|
+
case dictionary is refused with a message that names the plugin tool *and* the
|
|
22
|
+
escalation call.
|
|
23
|
+
- **`openfoam_escalate({ target, operation, toolsTried, why, ttlMinutes })`**
|
|
24
|
+
(65th tool) grants **one single-use token** for one target, valid 10 minutes.
|
|
25
|
+
The request is verified against the call history: at least one named plugin
|
|
26
|
+
tool must have been called **and failed** in the last 15 minutes, so the
|
|
27
|
+
exception carries evidence instead of a claim. The hook consumes the token on
|
|
28
|
+
the next matching write, so one escalation authorises exactly one write.
|
|
29
|
+
- **`escalationAuthority: 'auto' | 'ask'`** (default `auto`, as agreed for the
|
|
30
|
+
first release): `auto` issues the token from the verified evidence, `ask`
|
|
31
|
+
routes the decision to the DSH approval answerer and fails closed without it.
|
|
32
|
+
- `openfoam_usage_report` gains an `escalations` section (active, used, expired
|
|
33
|
+
and the recent request/consume events), next to the `routing` section, so
|
|
34
|
+
"which tools were tried, why it failed, what was let through" is an artifact.
|
|
35
|
+
- 174 tests (evidence verification, single use, TTL and target scoping,
|
|
36
|
+
auto/ask authority, strict vs warn vs deny).
|
|
37
|
+
|
|
38
|
+
## v0.9.24
|
|
39
|
+
|
|
40
|
+
Steering the agent onto the plugin's tools, in layers.
|
|
41
|
+
|
|
42
|
+
- **New `enforceToolRouting` setting** (`off` / `warn` / `deny`, default `warn`).
|
|
43
|
+
The plugin subscribes to DSH's `tools/pre-execute` waterfall and classifies
|
|
44
|
+
every call: a `bash`/`write`/`edit` that writes a case dictionary
|
|
45
|
+
(`system/`, `constant/`, `0/`, or a known dictionary file name) is a bypass.
|
|
46
|
+
`warn` records it, `deny` returns a refusal naming the tool to use
|
|
47
|
+
(`openfoam_dict_set`, `openfoam_read_dict`) so the change is classified,
|
|
48
|
+
journaled and reversible.
|
|
49
|
+
- `openfoam_usage_report` now carries a `routing` section (bypass attempts with
|
|
50
|
+
tool, target and decision), so "the work went through bash" is visible instead
|
|
51
|
+
of inferred.
|
|
52
|
+
- `lib/routing-guard.js` is deliberately conservative: reads, `ls`, solver runs
|
|
53
|
+
and the plugin's own tools are never flagged; the shell patterns are known to
|
|
54
|
+
be evadable (printf/python indirection), which the README states plainly —
|
|
55
|
+
the guard is a deterrent and a signal, the sandbox stays the boundary.
|
|
56
|
+
- 169 tests (routing classification, warn/deny/off modes, hook wiring).
|
|
57
|
+
|
|
58
|
+
## v0.9.23
|
|
59
|
+
|
|
60
|
+
Security review follow-up: the write gate and the run whitelist, again.
|
|
61
|
+
|
|
62
|
+
- **Braces are refused in a scalar value.** `value='{ } libs ("libevil.so")'`
|
|
63
|
+
used to pass every check (one line, no `;`, balanced braces) and produced
|
|
64
|
+
`writeInterval { } libs ("libevil.so");` as a *low* impact change — the line
|
|
65
|
+
parser saw only `writeInterval` and the injected entry was invisible to the
|
|
66
|
+
structural guard. Any `{`/`}` in a value is now an error by name.
|
|
67
|
+
- **Every `#` directive is critical.** `#includeEtc`/`#includeIfPresent`/
|
|
68
|
+
`#includeFunc`/`#inputMode`/`#remove` were applied as low/high because the
|
|
69
|
+
pattern used a trailing word boundary after `#include`; any `#word` token now
|
|
70
|
+
forces approval (`#codeStream`, `#calc`, `#eval`, absolute includes, rewrites).
|
|
71
|
+
- **Structural invariant**: replacing one entry may not change the number of
|
|
72
|
+
semicolons in the file (an append is exempt by design), on top of the existing
|
|
73
|
+
top-level key comparison.
|
|
74
|
+
- **Argument whitelist**: `-case`, `-dict`, `-solver`, `-roots`, `-hostRoots`,
|
|
75
|
+
`-libs` are refused in both `-x value` and `-x=value` forms.
|
|
76
|
+
- **`clean(force:true)` requires approval**: forcing past the case-marker guard is
|
|
77
|
+
destructive and now fails closed without an answerer.
|
|
78
|
+
- `test/golden/work/` (generated runs, ~2.6 MB including a 49k-line mesh) is out
|
|
79
|
+
of git and gitignored.
|
|
80
|
+
- Tests: 165, including regressions for each item above.
|
|
81
|
+
|
|
82
|
+
## v0.9.22
|
|
83
|
+
|
|
84
|
+
A clean com v2606 install fixed the segfaults, and com now passes the whole
|
|
85
|
+
golden matrix.
|
|
86
|
+
|
|
87
|
+
- The com crashes were **the local installation**, not the case or the plugin: a
|
|
88
|
+
fresh `openfoam2606` from the official apt repository runs `rhoPimpleFoam` and
|
|
89
|
+
`chtMultiRegionFoam` normally. `scripts/reinstall-com.sh` documents the purge +
|
|
90
|
+
reinstall (the apt install ships no tutorials; `openfoam2606-tutorials` is a
|
|
91
|
+
separate package).
|
|
92
|
+
- **Compressible golden `sphereBox` on both families**: org and com agree within
|
|
93
|
+
~0.1 % (`p` 99.88-100.07 kPa, `T.max` 300.036 K, `U.max` ~17.5 m/s), which also
|
|
94
|
+
showed that the earlier org setup (separate `p`/`p_rgh` pair) over-pressurised
|
|
95
|
+
the box; both families now use one `p` field with a wave-transmissive outlet.
|
|
96
|
+
- **CHT golden `sphereCht` on both families**: com gets its own mesh fixture
|
|
97
|
+
(`sphereChtCom`, built by com's `splitMeshRegions`; the mapped-patch metadata is
|
|
98
|
+
not portable), plus com-side dictionary requirements: solid `p` field,
|
|
99
|
+
enthalpy solvers (`h`/`hFinal`), `heRhoThermo` keys, interface condition
|
|
100
|
+
`compressible::turbulentTemperatureCoupledBaffleMixed`. Solid heats 300 ->
|
|
101
|
+
313.1-313.9 K on com (org: 311.4-312.2 K), gas max 500 K on both.
|
|
102
|
+
- Only `pitzDaily` stays org-only, with the reason recorded (the apt install has
|
|
103
|
+
no tutorials directory).
|
|
104
|
+
- 161 tests.
|
|
105
|
+
|
|
106
|
+
## v0.9.21
|
|
107
|
+
|
|
108
|
+
- **`openfoam_case_scaffold` family `compressible`**: family-aware rho-thermo
|
|
109
|
+
(`hePsiThermo` + internal energy + `p`/`p_rgh` for org's `foamRun fluid`;
|
|
110
|
+
`heRhoThermo` + enthalpy + `p` for com's `rhoPimpleFoam`), with the working
|
|
111
|
+
scheme set (`div(phi,(p|rho))` vs `div(phi,h)`/`div(phid,p)`), `constant/g`,
|
|
112
|
+
`pRef`, laminar transport, and the gas initialised at rest so the inlet drives
|
|
113
|
+
the flow instead of an impulsive pressure wave.
|
|
114
|
+
- **Golden case `sphereBox`**: compressible gas around the sphere on the stored
|
|
115
|
+
snappy mesh (17587 cells); QoI recorded on org 14. The values are regression
|
|
116
|
+
references of this transient blocked-duct run, not a validated benchmark.
|
|
117
|
+
- **CHT scaffold is family-complete as far as the solvers allow**: interface
|
|
118
|
+
temperature is `coupledTemperature` on org and
|
|
119
|
+
`compressible::turbulentTemperatureCoupledBaffleMixed` (with `Tnbr`,
|
|
120
|
+
`kappaMethod`, `sampleMode`) on com; com thermo keys (`Hf`, `heRhoThermo`,
|
|
121
|
+
`constIso`/`hConst`) and a fixed-value inlet are used where com's dictionary
|
|
122
|
+
API differs.
|
|
123
|
+
- Two com findings recorded, both build-level, not case-level:
|
|
124
|
+
`rhoPimpleFoam` and `chtMultiRegionFoam` **segfault** in this com v2606
|
|
125
|
+
installation (`dictionary::clone()`), and org's `mappedWall` interface
|
|
126
|
+
metadata is not portable to com (needs a com-built fixture).
|
|
127
|
+
- 161 tests.
|
|
128
|
+
|
|
129
|
+
## v0.9.20
|
|
130
|
+
|
|
131
|
+
Golden cases start from **stored meshes**, and the tool surface stays at 64.
|
|
132
|
+
|
|
133
|
+
- `test/golden/meshes/` — two fixtures (gzipped `polyMesh`): `sphereFlow`
|
|
134
|
+
(snappy: 100 mm cube minus 50 mm sphere, 17587 cells, level 1-2) and
|
|
135
|
+
`sphereCht` (blockMesh + sphere cell zone + `splitMeshRegions`: 7448 fluid /
|
|
136
|
+
552 solid). Both families read the same files, so a golden run is deterministic
|
|
137
|
+
and takes seconds.
|
|
138
|
+
- `sphereCht` golden now copies the fixture and only generates dictionaries
|
|
139
|
+
(`zero` mesh commands at run time); the runner reads `.gz` boundaries.
|
|
140
|
+
- **`openfoam_create_zone` removed** (the 65th tool): the golden path no longer
|
|
141
|
+
needs it, the underlying commands (`createZones`, `topoSet`, `setsToZones`) are
|
|
142
|
+
whitelisted, and a tool that only writes one small dictionary and calls a
|
|
143
|
+
whitelisted command does not justify the extra surface. `caps.splitRegions`
|
|
144
|
+
keeps the org/com difference as data.
|
|
145
|
+
- Verified: org runs `cavity`, `pitzDaily`, `sphereCht` green; com runs `cavity`
|
|
146
|
+
green (skips carry their reasons).
|
|
147
|
+
|
|
148
|
+
## v0.9.19
|
|
149
|
+
|
|
150
|
+
Cell zones are now a capability, which is the step that unblocks multi-region
|
|
151
|
+
work on both families.
|
|
152
|
+
|
|
153
|
+
- **`caps.zoneTool`** (`createZones` on org, `topoSet` on com) and
|
|
154
|
+
**`caps.splitRegions`** (`-cellZones all -defaultRegion fluid` vs
|
|
155
|
+
`-cellZones -overwrite`), both probed from the installation.
|
|
156
|
+
- **New tool `openfoam_create_zone`**: carves one cell zone out of a single mesh
|
|
157
|
+
from a sphere/box/cylinder, distribution-aware, writes the dictionaries the
|
|
158
|
+
mechanism needs (com also needs `fvSchemes`/`fvSolution` placeholders before
|
|
159
|
+
splitting). Verified: org `createZones` -> `solid`, com `topoSet`+`setsToZones`
|
|
160
|
+
-> `solid`.
|
|
161
|
+
- **Golden recipe `sphereCht` is mechanism-agnostic**: `blockMesh` -> `zone` ->
|
|
162
|
+
`splitMeshRegions`, all through the capability; org stays green.
|
|
163
|
+
- **CHT scaffold knows the com layout** as far as it is understood:
|
|
164
|
+
`thermophysicalProperties`, `turbulenceProperties`, case-level `constant/g`,
|
|
165
|
+
`heRhoThermo` + `sensibleEnthalpy` and `div(phi,h)`/`div(phid,p)` schemes for
|
|
166
|
+
com; org keeps `hePsiThermo` + internal energy.
|
|
167
|
+
- Remaining com blocker, recorded with the exact reason: com injects per-region
|
|
168
|
+
boundary conditions with `changeDictionary -region` from a shared `0.orig` and
|
|
169
|
+
names the interface condition `turbulentTemperatureCoupledBaffleMixed`, so
|
|
170
|
+
`coupledTemperature` is not accepted on a `mappedWall`.
|
|
171
|
+
|
|
172
|
+
## v0.9.18
|
|
173
|
+
|
|
174
|
+
The golden matrix is proven in CI, not just locally.
|
|
175
|
+
|
|
176
|
+
- `.github/workflows/golden.yml` runs on every push to main: docker images
|
|
177
|
+
`dicehub/openfoam:14` and `dicehub/openfoam:opencfd-2606`, Node bootstrapped
|
|
178
|
+
inside the image, installation located via `WM_PROJECT_DIR` or a glob/find
|
|
179
|
+
fallback, containers started with `--user root --entrypoint bash` (the images
|
|
180
|
+
ship a login-shell entrypoint and an unprivileged user).
|
|
181
|
+
- Verified in CI: org container finds `/home/openfoam/OpenFOAM-14` and runs
|
|
182
|
+
`cavity`, `pitzDaily`, `sphereCht` — all ok; com container finds
|
|
183
|
+
`/home/openfoam/OpenFOAM-2606`, runs `cavity` ok (identical QoI to org) and
|
|
184
|
+
skips the other two with recorded reasons.
|
|
185
|
+
- `run-golden.mjs` exits 2 when a requested distribution is not installed
|
|
186
|
+
(before, a missing installation made the run pass silently).
|
|
187
|
+
- Discovery also scans the home directories container images use.
|
|
188
|
+
|
|
189
|
+
## v0.9.17
|
|
190
|
+
|
|
191
|
+
Golden cases: stored reference quantities for real OpenFOAM runs.
|
|
192
|
+
|
|
193
|
+
- `test/golden/` — three cases with a recipe (`cases.mjs`): `cavity`
|
|
194
|
+
(incompressible, both families), `pitzDaily` (compressible, org 14) and
|
|
195
|
+
`sphereCht` (the sphere-in-box CHT case that the scaffold itself builds).
|
|
196
|
+
- `scripts/run-golden.mjs` — discovers installations, prepares/clones each case,
|
|
197
|
+
runs mesh + solver, extracts the quantities (cells, non-orthogonality, field
|
|
198
|
+
min/max, final time) and compares with `test/golden/expected/<distribution>.json`
|
|
199
|
+
(`--update` re-blesses, a reviewed change).
|
|
200
|
+
- `test/golden-schema.test.mjs` — catches a broken expected file or a declared
|
|
201
|
+
quantity without a value in the normal (OpenFOAM-free) test job.
|
|
202
|
+
- `.github/workflows/golden.yml` — the same script inside OpenFOAM containers,
|
|
203
|
+
matrix `org` (dicehub/openfoam:14) and `com` (dicehub/openfoam:opencfd-2606).
|
|
204
|
+
- Verified locally: `org` runs all three cases green; `com` runs `cavity` green
|
|
205
|
+
with **identical** QoI to org (0.344284, 0.0485151), `pitzDaily` is skipped
|
|
206
|
+
with a recorded reason (rhoPimpleFoam segfaults in this com build) and
|
|
207
|
+
`sphereCht` is skipped (com has no `createZones`; use topoSet + setsToZones).
|
|
208
|
+
- Fixed on the way: the incompressible scaffold wrote `simpleFoam` for transient
|
|
209
|
+
cases (now `pimpleFoam`), the pressure reference was missing from the PIMPLE
|
|
210
|
+
block, and a closed domain got no `pRefCell` in the algorithm actually used.
|
|
211
|
+
|
|
212
|
+
## v0.9.16
|
|
213
|
+
|
|
214
|
+
- **`openfoam_case_scaffold` with `family: "cht"`** writes a complete
|
|
215
|
+
conjugate-heat-transfer case once the region meshes exist:
|
|
216
|
+
- per-region `system/<r>/{fvSchemes,fvSolution}` and `constant/<r>/*`
|
|
217
|
+
(fluid: `hePsiThermo` air + laminar momentum/thermophysical transport + `g`/`pRef`;
|
|
218
|
+
solid: `heSolidThermo` with `{rho, Cv, kappa}` from the call), `0/<r>/*`;
|
|
219
|
+
- `coupledTemperature` on the `<region>_to_<other>` interface patches and
|
|
220
|
+
physical conditions on the outer walls/inlets/outlets, chosen from the
|
|
221
|
+
patch roles of the region's own `polyMesh/boundary`;
|
|
222
|
+
- org glue `system/regionSolvers` + `#includeIfPresent` controlDict for
|
|
223
|
+
`foamMultiRun`; com glue `constant/regionProperties` + `chtMultiRegionFoam`;
|
|
224
|
+
- the root `system/fvSolution` that `foamMultiRun` requires.
|
|
225
|
+
- Verified end to end on a fresh sphere-in-box case: `blockMesh` -> `createZones`
|
|
226
|
+
-> `splitMeshRegions` -> scaffold -> `foamMultiRun` with **no manual edits**
|
|
227
|
+
(solid 300 -> 311-312 K, gas 482-501 K over 0.02 s).
|
|
228
|
+
- Doctor: `coupledTemperature`/`coupledPressure`/... are known patch-field types,
|
|
229
|
+
and region field findings name the field path with its region.
|
|
230
|
+
- 153 tests (CHT scaffold: org/com glue, interface BC placement, refusals).
|
|
231
|
+
|
|
232
|
+
## v0.9.15
|
|
233
|
+
|
|
234
|
+
The second live test — a conjugate-heat-transfer sphere-in-box (solid sphere
|
|
235
|
+
conducting heat, small `Cv` to heat fast) — plus the fixes it exposed.
|
|
236
|
+
|
|
237
|
+
- **`openfoam_field_stats` takes `region`**, so per-region extrema work in CHT
|
|
238
|
+
cases (`-region solid`).
|
|
239
|
+
- **Doctor: multi-region field/patch consistency** (`checkRegionFieldPatches`):
|
|
240
|
+
a `boundaryField` entry that names no patch of the region is a warning, a
|
|
241
|
+
patch without an entry is an error, and a `coupled`/`mapped` condition on a
|
|
242
|
+
plain wall patch is an error — the exact trap of `splitMeshRegions` naming
|
|
243
|
+
interface patches `<region>_to_<other>` while templates still say `wall`.
|
|
244
|
+
- **Whitelist**: `createZones`, `foamSetupCHT`, `setsToZones`; the classic
|
|
245
|
+
compressible solvers are spelled correctly now (`rhoPimpleFoam` was
|
|
246
|
+
`rhopimpleFoam`, so it could never run).
|
|
247
|
+
- README states the targets explicitly: **org 14 and com v2606** are tested;
|
|
248
|
+
other releases stay `partial`/`unknown` until added.
|
|
249
|
+
|
|
250
|
+
## v0.9.14
|
|
251
|
+
|
|
252
|
+
Version-capability layer, wired through the tools that generate content.
|
|
253
|
+
|
|
254
|
+
- **`lib/versions.js` v2**: one capability object per installation — `family`,
|
|
255
|
+
`modular`, `support` (full/partial/unknown), `blockMeshScale`,
|
|
256
|
+
`featuresUtility`/`featuresDict`/`featuresDictStyle`, `postProcess`,
|
|
257
|
+
`fieldStats`, `transportFile`, `turbulenceFile`, `regionModel`, `zeroDir`.
|
|
258
|
+
`probeCaps()` asks the installation itself (version + which utilities exist)
|
|
259
|
+
and caches the result; `versionCaps()` gives the same object without probing.
|
|
260
|
+
- **`openfoam_mesh_plan`** is capability-driven: `scale` vs `convertToMeters`,
|
|
261
|
+
snappy quality keys, and the feature dictionary the family expects
|
|
262
|
+
(`surfaceFeaturesDict` on org, `surfaceFeatureExtractDict` on com). The result
|
|
263
|
+
reports `caps` and an advisory on partial/unknown releases.
|
|
264
|
+
- **`openfoam_case_scaffold`** takes `caps`: modular (`foamRun` + `solver`) vs
|
|
265
|
+
legacy (`simpleFoam`), `physicalProperties`/`momentumTransport` vs
|
|
266
|
+
`transportProperties`/`turbulenceProperties`; org 9 now falls back to the
|
|
267
|
+
legacy form instead of assuming the modular one.
|
|
268
|
+
- **`openfoam_check`** reports `caps` and adds an `untested-version` warning when
|
|
269
|
+
the release is outside the support matrix.
|
|
270
|
+
- **`openfoam_env_check`/`openfoam_version_info`** return `caps` per
|
|
271
|
+
distribution; README documents the support matrix and the capability model.
|
|
272
|
+
- Tests: capability matrix (org 14/9, com v2606/v2512), scaffold and mesh_plan
|
|
273
|
+
conventions per capability, feature-dictionary naming.
|
|
274
|
+
|
|
275
|
+
## v0.9.13
|
|
276
|
+
|
|
277
|
+
All findings from the sphere-in-box live test (F1-F12), plus a first step towards
|
|
278
|
+
a version-capability layer.
|
|
279
|
+
|
|
280
|
+
- **`lib/versions.js`**: one capability object per installation (`family`, `modular`,
|
|
281
|
+
`snappyQualityKeys`, `fieldStats`, `postProcess`, `features`, `thermoFile`,
|
|
282
|
+
`turbulenceFile`, `regionModel`, `zeroDir`) from the distribution/version.
|
|
283
|
+
- **F1/F9** whitelist: `surfaceFeatureExtract`, `surfaceFeatures`, `foamPostProcess`.
|
|
284
|
+
Parentheses are allowed in command arguments again (`-func cellMax(U)`); `;`,
|
|
285
|
+
`|`, `&`, backticks, `$` and redirects stay forbidden.
|
|
286
|
+
- **F3** `mesh_plan` emits `errorReduction 0.75`, `nSmoothScale 4`, `maxIter 100`
|
|
287
|
+
(org 14 aborted in the morphing phase without them).
|
|
288
|
+
- **F2** `mesh_plan` writes a placeholder `system/controlDict` when the case has
|
|
289
|
+
none, so `blockMesh` can start; it says so in `notes` and never overwrites one.
|
|
290
|
+
- **F7** the doctor reports unknown `patchField` types (`unknown-bc-type`) and
|
|
291
|
+
knows that `alphat*WallFunction` exists only as `compressible::...`.
|
|
292
|
+
- **F12** the doctor flags compressible cases without an energy-flux scheme, and
|
|
293
|
+
`div(phi,e)` without the pressure-work term `div(phi,(p|rho))`.
|
|
294
|
+
- **F6** `no-nonortho-correctors` reads the algorithm the case actually uses
|
|
295
|
+
(transient -> PIMPLE/PISO, steady -> SIMPLE).
|
|
296
|
+
- **F10** `openfoam_case_scaffold` takes `family` and refuses anything but
|
|
297
|
+
incompressible-laminar instead of silently writing an incompressible case.
|
|
298
|
+
- **F11** patch roles use the `type` when given and know sphere/ball/obstacle/
|
|
299
|
+
airfoil/blade/... names, so a sphere gets `noSlip`.
|
|
300
|
+
- **F8** new read-only `openfoam_field_stats` (min/max, magnitude) built on the
|
|
301
|
+
distribution's `postProcess`/`foamPostProcess` and `cellMin`/`cellMax`.
|
|
302
|
+
- **F5** the geometry-scale gate ignores floating-point noise at the threshold.
|
|
303
|
+
|
|
304
|
+
## v0.9.12
|
|
305
|
+
|
|
306
|
+
- **Live approval verified end to end** on a real profile: `dict_set` on
|
|
307
|
+
`controlDict.libs` requested approval with `{hasService, hasAgent, hasCallId}`
|
|
308
|
+
all true, `allowed-once` applied the write, `rejected` left the file unchanged,
|
|
309
|
+
and `openfoam_dict_undo` restored the previous value afterwards.
|
|
310
|
+
- The result carries the **actual** outcome (`allowed-once` / `rejected` /
|
|
311
|
+
`cancelled` / `unavailable`) instead of a generic "refused".
|
|
312
|
+
|
|
313
|
+
## v0.9.11
|
|
314
|
+
|
|
315
|
+
- **The approval service is resolved when it is needed, not at mount time.** The
|
|
316
|
+
`approval` service is mounted by the base bundle after this plugin, so
|
|
317
|
+
`ctx.get('approval')` during `apply()` returned `undefined` and every critical
|
|
318
|
+
change failed closed with "service is not mounted". The plugin now keeps a
|
|
319
|
+
getter and resolves the service inside the tool call; the refusal also reports
|
|
320
|
+
`approval: {hasService, hasAgent, hasCallId}` so a live smoke test shows
|
|
321
|
+
exactly what is missing (on this host: agent ✓, callId ✓).
|
|
322
|
+
|
|
323
|
+
## v0.9.10
|
|
324
|
+
|
|
325
|
+
Security pass from the third audit: the write gate and the file layer.
|
|
326
|
+
|
|
327
|
+
- **No dictionary-entry injection**: `entry` must be a plain OpenFOAM key
|
|
328
|
+
(`[A-Za-z_][A-Za-z0-9_.:]*`), and `value` must be a single line without `;`
|
|
329
|
+
and with balanced braces. `value="50;\nlibs (\"...\")"` was previously
|
|
330
|
+
written as a low-impact change and is now refused by name.
|
|
331
|
+
- **Executable directives are critical**: a value containing `#codeStream`,
|
|
332
|
+
`#calc`, `#eval`, `#include` or `codeStream` requires approval regardless of
|
|
333
|
+
the entry it is written to.
|
|
334
|
+
- **Path containment**: `containedPath()` refuses `..`, absolute paths and
|
|
335
|
+
symlinks that leave the case, and `read_dict`/`dict_set`/`dict_undo` use it, so
|
|
336
|
+
`system/../../outside.txt` is no longer readable or writable. Experience card
|
|
337
|
+
ids are validated as slugs before deletion.
|
|
338
|
+
- **`clean` requires a case marker** (`system/controlDict`, `system/blockMeshDict`
|
|
339
|
+
or `constant/polyMesh`); a directory named `2024` with `build.log` is no longer
|
|
340
|
+
treated as a time directory unless `force: true`.
|
|
341
|
+
- **`commandAllowed` refuses context-changing arguments** (`-libs`, `-case`,
|
|
342
|
+
`-roots`, `-hostRoots`), not just non-whitelisted applications.
|
|
343
|
+
- **Paper downloads are size-capped** (50 MB) and use the package version in the
|
|
344
|
+
User-Agent.
|
|
345
|
+
- **Metadata**: the market index ru description is generated from the package
|
|
346
|
+
description (it said 61 tools), the stray `.tmp-pack.json` is gone, and
|
|
347
|
+
`.gitignore` covers files as well as directories.
|
|
348
|
+
|
|
349
|
+
## v0.9.9
|
|
350
|
+
|
|
351
|
+
Hotfix: the plugin failed to mount in a real DSH profile.
|
|
352
|
+
|
|
353
|
+
- `lib/index.js` read the optional approval service as `ctx.approval`, but the
|
|
354
|
+
restricted Cordis context throws on any property that is not declared in
|
|
355
|
+
`inject`, so `apply()` aborted with `cannot get property "approval" without
|
|
356
|
+
inject` and the whole entry stayed inactive (no tools, no skills, no core
|
|
357
|
+
section). The lookup now goes through `ctx.get('approval')`, which returns
|
|
358
|
+
`undefined` when the service is absent.
|
|
359
|
+
- Regression test: `apply()` is mounted against a Proxy context that throws on
|
|
360
|
+
every uninjected property; the tool set must still register.
|
|
361
|
+
|
|
362
|
+
## v0.9.8
|
|
363
|
+
|
|
364
|
+
Second reliability pass from the v0.9.7 audit.
|
|
365
|
+
|
|
366
|
+
- **TOCTOU guard**: the change is computed from a snapshot whose hash is kept;
|
|
367
|
+
right before the journal and the write (i.e. after a possibly long approval
|
|
368
|
+
wait) the file is re-read and compared, and a concurrent modification aborts
|
|
369
|
+
the change instead of overwriting the newer content. The refusal tells the
|
|
370
|
+
agent to re-read and prepare the edit again.
|
|
371
|
+
- **`undo` is depth-aware**: the top-level entry is removed only at brace depth
|
|
372
|
+
0, so an identical `key ...;` inside a nested dictionary is left alone.
|
|
373
|
+
- **Strict `purgeWrite`**: only a literal zero (`0`, `0.0`, `00`) is low impact;
|
|
374
|
+
`-1`, `abc` and an empty value are high. `runTimeModifiable` moved to high as
|
|
375
|
+
well (it changes how dictionaries are re-read during a run).
|
|
376
|
+
- **Metadata**: `package.json` description now states 63 tools (the market index
|
|
377
|
+
is regenerated from it), and two guards check the description count and the
|
|
378
|
+
index description.
|
|
379
|
+
- Approval answers now report `approval: {outcome, hasAgent, hasCallId}` so the
|
|
380
|
+
live smoke test can be verified without guessing.
|
|
381
|
+
|
|
382
|
+
## v0.9.7
|
|
383
|
+
|
|
384
|
+
Reliability release: no new tools, only the defects the v0.9.6 review found.
|
|
385
|
+
|
|
386
|
+
- **`purgeWrite` is value-aware**: `0` stays low impact, any value `> 0` is high
|
|
387
|
+
impact (preview), because it deletes older time directories — a long run's
|
|
388
|
+
history is not an organisational setting.
|
|
389
|
+
- **Approval is always required for `libs`/`functions`**; the `approvals` switch
|
|
390
|
+
is gone (it never took effect and implied the protection was optional). A
|
|
391
|
+
missing agent identity or a missing answerer refuses the change (fail-closed).
|
|
392
|
+
- **Sub-dictionaries are refused explicitly**: `dict_set` edits single-line
|
|
393
|
+
top-level entries; `functions { ... }` now returns a named error instead of a
|
|
394
|
+
confusing "entry not found", and the block is never half-edited.
|
|
395
|
+
- **Undo of an appended key removes the line** (`existedBefore` is recorded in
|
|
396
|
+
the journal) instead of writing an empty value.
|
|
397
|
+
- **No file is written without a durable undo record**: the journal is written
|
|
398
|
+
before the case file, and a failure aborts the change (the temp file and any
|
|
399
|
+
journal entry are rolled back).
|
|
400
|
+
- **Release consistency**: the market index guard now verifies that the pinned
|
|
401
|
+
commit really carries the indexed version, and the README intro tool count is
|
|
402
|
+
checked against the status line and the registry.
|
|
403
|
+
|
|
404
|
+
## v0.9.6
|
|
405
|
+
|
|
406
|
+
- **Impact-based write policy** (`lib/impact.js`): the decision comes from the
|
|
407
|
+
entry semantics, not the file. `controlDict` output keys apply; boundary and
|
|
408
|
+
initial conditions, `fvSchemes`, `fvSolution`, `constant/*`, `deltaT` and
|
|
409
|
+
`application` **preview** (`applied: false`, rendered as `NOT APPLIED`) until
|
|
410
|
+
`apply: true`; `controlDict` `libs`/`functions` request user approval through
|
|
411
|
+
the DSH `ctx.approval` seam and fail closed when it is not mounted.
|
|
412
|
+
`writeMode: impact | apply | preview` (Settings) overrides it.
|
|
413
|
+
- **`expect`** refuses a write whose current value differs, and every applied
|
|
414
|
+
change gets a `changeId` + `afterHash`.
|
|
415
|
+
- **`openfoam_dict_undo`** (63rd tool) reverts a change and refuses when the file
|
|
416
|
+
changed after it, so a later edit is never silently discarded.
|
|
417
|
+
- CORE.md: a write tool answering `applied: false` has changed nothing - apply it
|
|
418
|
+
or say so.
|
|
419
|
+
- Tests: classification (0/U and 0/Yi high, writeInterval low, deltaT high,
|
|
420
|
+
unknown high, libs critical), mode overrides, expect, undo + stale undo, and
|
|
421
|
+
approval allowed-once / rejected / missing-service fail-closed.
|
|
422
|
+
|
|
423
|
+
## v0.9.5
|
|
424
|
+
|
|
425
|
+
- **No shell string is built from paths or commands.** Every OpenFOAM call
|
|
426
|
+
(`openfoam_run`, the async registry, `mesh_verify`, `stl_fit`, `wmake`,
|
|
427
|
+
`solver_smoke`, `version_info`, `env_check`) now runs through one static
|
|
428
|
+
script with the bashrc, working directory, log path and command passed as
|
|
429
|
+
positional parameters / argv (`FOAM_RUN_SCRIPT`, `FOAM_LOG_SCRIPT`,
|
|
430
|
+
`runFoam`, `spawnFoamLog`). A path containing `"`, `'`, `$()`, backticks,
|
|
431
|
+
`;` or newlines can no longer become shell code; the whitelist also returns
|
|
432
|
+
the parsed `argv` instead of a string to re-split.
|
|
433
|
+
- `set --` clears the positional parameters before sourcing: OpenFOAM's com
|
|
434
|
+
`etc/bashrc` forwards `"$@"` into `etc/config.sh/setup`, so a non-empty list
|
|
435
|
+
made the probe hang (this surfaced as a 30 s stall per distribution in
|
|
436
|
+
`openfoam_env_check`).
|
|
437
|
+
- Child processes run with `stdin: ignore`.
|
|
438
|
+
- Security section in the README states explicitly that the plugin executes
|
|
439
|
+
local commands as the OS user and is not a sandbox.
|
|
440
|
+
- Tests: injection regression suite (paths with `$()`, quotes, spaces,
|
|
441
|
+
backticks; bashrc path with substitution; argv literalness; whitelist argv).
|
|
442
|
+
|
|
443
|
+
## v0.9.4
|
|
444
|
+
|
|
445
|
+
- **Iron rule 1 is no longer absolute.** "Every turn calls a tool" forced a tool
|
|
446
|
+
call even for conceptual questions ("why does the pressure equation carry this
|
|
447
|
+
correction?"), which produced theatre calls and less natural answers. It now
|
|
448
|
+
splits the two cases: verify with a tool when the answer depends on the user's
|
|
449
|
+
case, the installed OpenFOAM or a run result; answer a conceptual question
|
|
450
|
+
directly, citing the source only when the version matters. Rule 3
|
|
451
|
+
("Check, don't guess") still pins the anti-hallucination side, and the routing
|
|
452
|
+
table is unchanged.
|
|
453
|
+
|
|
454
|
+
## v0.9.3
|
|
455
|
+
|
|
456
|
+
- **Explicit `foamRoot` beats discovery.** Discovery filled `foamRoots` even when
|
|
457
|
+
the profile set the legacy single `foamRoot`, and `rootFor` prefers
|
|
458
|
+
`foamRoots[distribution]`, so a configured install was silently replaced by
|
|
459
|
+
whatever was installed on the machine. Discovery now runs only when neither
|
|
460
|
+
`foamRoot` nor `foamRoots` is configured. This is also why the v0.9.1 CI
|
|
461
|
+
failure only reproduced without OpenFOAM installed. Regression test added.
|
|
462
|
+
|
|
463
|
+
## v0.9.2
|
|
464
|
+
|
|
465
|
+
- **CI fix**: `openfoam_list_solvers` treated `applications/modules` like
|
|
466
|
+
`applications/solvers` and only accepted directories that hold `Make/files`.
|
|
467
|
+
Module directories are solvers in their own right (org layout), so the tool
|
|
468
|
+
now lists them directly and walks only `applications/solvers` and
|
|
469
|
+
`applications/legacy` down to the `Make/files` level. Verified: org 42
|
|
470
|
+
solvers, com 69 including `chtMultiRegionFoam`.
|
|
471
|
+
|
|
472
|
+
## v0.9.1
|
|
473
|
+
|
|
474
|
+
Second-review fixes (1-9 from the agreed list).
|
|
475
|
+
|
|
476
|
+
- **`limiter-wide-open` advice is legal**: OpenFOAM rejects `k > 1`
|
|
477
|
+
(`should be >= 0 and <= 1`); the fix now says `limitedLinear 1` only, with the
|
|
478
|
+
k in (0,1] scale stated.
|
|
479
|
+
- **`caseBBox` reads only the `vertices` block and applies `scale`**: a hex block
|
|
480
|
+
resolution tuple `(30 10 10)` is no longer read as a vertex, so CHT and
|
|
481
|
+
multi-block cases stop reporting a 30 m box and a false `geometry-scale` ask.
|
|
482
|
+
- **`closed-domain-no-pref`** recognises `waveTransmissive`, `fixedFluxPressure`,
|
|
483
|
+
`prghPressure`, `advective`, `supersonicFreestream`, `pinnedValue` as pressure
|
|
484
|
+
references (a transmissive outlet is not a closed domain).
|
|
485
|
+
- **`u-empty-patch`** is one finding per case listing all empty patches.
|
|
486
|
+
- **blockMesh vertex heuristics**: the wrong `block-vertex-mismatch` rule
|
|
487
|
+
(`hexCount*8 > vertexCount`) is removed and `vertex-count` is advice, not an
|
|
488
|
+
error (blocks share vertices).
|
|
489
|
+
- **`mesh_verify`/doctor problems** now include the threshold lines behind
|
|
490
|
+
"Failed N mesh checks." (`faces with face pyramid volume < 2e-11: 10001`), so a
|
|
491
|
+
failure no longer comes back with an empty problems list.
|
|
492
|
+
- **`list_solvers`** recurses `applications/{solvers,modules,legacy}` to the
|
|
493
|
+
`Make/files` level; com now lists 69 solvers including `chtMultiRegionFoam`.
|
|
494
|
+
- **`resolvedFrom`** tracing on the path-bearing answers (inspect_case,
|
|
495
|
+
case_probe_facts, check) - `{kind, root, input}`.
|
|
496
|
+
- **`openfoam_case_scaffold`** writes `case-manifest.json` (application,
|
|
497
|
+
algorithm, distribution, compressible, phases, turbulence, patches) and its
|
|
498
|
+
description states it writes no geometry; `paper_search` reports `degraded`
|
|
499
|
+
when a source failed.
|
|
500
|
+
|
|
501
|
+
## v0.9.0
|
|
502
|
+
|
|
503
|
+
- **`openfoam_case_scaffold`**: a case can now be built from nothing. Writes
|
|
504
|
+
`controlDict`, `fvSchemes`, `fvSolution`, the constant files and `0/U`, `0/p`
|
|
505
|
+
for incompressible **laminar** flow (SIMPLE steady or PIMPLE transient),
|
|
506
|
+
deriving the boundary conditions from the case's own patches (inlet/outlet/
|
|
507
|
+
wall/empty/symmetry, with `pRefCell` for closed domains) and falling back to
|
|
508
|
+
the `inlet/outlet/walls` set `mesh_plan` creates. Distribution-aware: org 14
|
|
509
|
+
gets `application foamRun; solver incompressibleFluid;` plus
|
|
510
|
+
`momentumTransport`/`physicalProperties`; com v2606 gets `application
|
|
511
|
+
simpleFoam;` plus `turbulenceProperties`/`transportProperties`. Runs the doctor
|
|
512
|
+
afterwards and returns its findings. Verified end to end on both: STL → mesh
|
|
513
|
+
plan → blockMesh → solver → `End` (2.2 s per run).
|
|
514
|
+
- **`stl_generate` creates the case directory** instead of failing with
|
|
515
|
+
"case not found", so the first step of a from-scratch build works.
|
|
516
|
+
- Turbulent/compressible/CHT requests are refused with a tutorial hint rather
|
|
517
|
+
than guessed.
|
|
518
|
+
- README: a "Supported versions" matrix (org 14 vs com v2606) and an explicit
|
|
519
|
+
statement that other branches are best effort.
|
|
520
|
+
|
|
521
|
+
## v0.8.1
|
|
522
|
+
|
|
523
|
+
- **`steps` describes the whole run.** On a log larger than `logTailBytes` the
|
|
524
|
+
tools counted the tail window and reported it as the total (224 MB / 74 318
|
|
525
|
+
steps came back as 1 331). `progressFrom` now takes a full-file count:
|
|
526
|
+
`steps` is the run total, `stepsInWindow` is what the tail saw, and
|
|
527
|
+
`logWindow.truncated` says the window was smaller. Counting costs ~0.25 s per
|
|
528
|
+
90 MB (measured) and is bounded by a 4 s budget; `solve_verify` exposes the
|
|
529
|
+
same fields next to `metrics.timeSteps`.
|
|
530
|
+
|
|
531
|
+
## v0.8.0
|
|
532
|
+
|
|
533
|
+
Fixes from the first external review (BFER series, ESI v2512) except the two
|
|
534
|
+
feature requests, which land in v0.9.0.
|
|
535
|
+
|
|
536
|
+
- **`limiter-wide-open` was inverted.** `limitedLinear k` computes
|
|
537
|
+
`psi = clamp(2r/k, 0, 1)` (`limitedLinear.H`), so k -> 0 is the disabled
|
|
538
|
+
limiter and k = 1 is the conservative default. The rule now warns only below
|
|
539
|
+
0.1 and its advice no longer asks for a weaker scheme.
|
|
540
|
+
- **Run registry next to the case.** Records and logs go to
|
|
541
|
+
`<case>/.openfoam-runs` (discovered across `caseRoots`), never into whatever
|
|
542
|
+
`caseRoots[0]` happens to be; `runsDir` is a documented setting.
|
|
543
|
+
- **Log arguments.** `log_path` and `path` are interchangeable on
|
|
544
|
+
`run_progress`, `solve_verify` and `residual_series`; a wrong name returns
|
|
545
|
+
"log_path (alias: path) is required — got: ...", and "case not found" lists
|
|
546
|
+
the searched roots.
|
|
547
|
+
- **`mesh_verify` verdict.** `failed` mirrors `pass`, and a checkMesh that
|
|
548
|
+
cannot run now reports the OpenFOAM message in `problems`/`regions[].error`.
|
|
549
|
+
- **`0_orig`.** Initial fields are found in `0/`, `0.orig/` or `0_orig/` by
|
|
550
|
+
inspect_case, case_probe_facts, the doctor and `restore0Dir`; `probe_facts`
|
|
551
|
+
reads patch names from `polyMesh/boundary` (it used to disagree with
|
|
552
|
+
inspect_case) and accepts `case_path`/`casePath`.
|
|
553
|
+
- **`read_source`** lists similarly named files and points at
|
|
554
|
+
`openfoam_find_source` instead of a bare "not found".
|
|
555
|
+
- The four log tools now say which one to call (metrics vs progress vs verdict
|
|
556
|
+
vs series).
|
|
557
|
+
- Release guard: a test fails when the README status line and `package.json`
|
|
558
|
+
disagree, when the CHANGELOG lacks the current version, or when the package
|
|
559
|
+
`files` list misses CHANGELOG/LICENSE/NOTICE/client.
|
|
560
|
+
|
|
561
|
+
## v0.7.0
|
|
562
|
+
|
|
563
|
+
Marketplace readiness.
|
|
564
|
+
|
|
565
|
+
- **CI**: `.github/workflows/tests.yml` runs the unit suite on Node 20/22/24 for
|
|
566
|
+
every push and pull request (the suite is host-agnostic; host-dependent tests
|
|
567
|
+
skip themselves).
|
|
568
|
+
- **Packaging**: `exports["./package.json"]` added (tools that resolve the
|
|
569
|
+
manifest by subpath no longer fail), icon and client verified through a
|
|
570
|
+
consumer-style resolution, `npm pack` ships 48 files / 243 KB.
|
|
571
|
+
- **Docs**: Requirements section, marketplace install path, a committed render
|
|
572
|
+
as the README screenshot.
|
|
573
|
+
- **`scripts/make-market-index.mjs`** builds a format-1 index entry pinned to a
|
|
574
|
+
commit (version, publishTimestamp, git source, engines, icon URL); a test runs
|
|
575
|
+
it through the real `@deepseek-ai/dsh-plugin-market-index` validator and
|
|
576
|
+
`marketInstallTarget`.
|
|
577
|
+
|
|
578
|
+
## v0.6.2
|
|
579
|
+
|
|
580
|
+
- **PNG plugin icon.** `icon.png` (512×512, 143 KiB) replaces `icon.svg`; the
|
|
581
|
+
package export `./icon` points at it. DSH reads the icon as a base64 data URL
|
|
582
|
+
and caps raw bytes at 256 KiB, so the 1254×1254 source was downscaled and
|
|
583
|
+
re-encoded (PNG is explicitly supported alongside SVG/JPEG/WebP).
|
|
584
|
+
|
|
585
|
+
## v0.6.1
|
|
586
|
+
|
|
587
|
+
- **`needs_input` is language-neutral.** The payload now carries the decision
|
|
588
|
+
(`kind`, numbers in `data`, stable option ids with English labels) and one
|
|
589
|
+
English instruction for the model; the user-facing wording is the agent's job
|
|
590
|
+
(CORE.md: ask in `{{language}}`, translate the labels). `lib/i18n.js` and the
|
|
591
|
+
`responseLanguage` reads in `mesh_plan`/`check` are gone, so every future gate
|
|
592
|
+
needs one template, not one per language. The registry renders
|
|
593
|
+
`[<kind>] <ask>` + `id: label` options and still accepts the legacy
|
|
594
|
+
`{question, options}` shape.
|
|
595
|
+
|
|
596
|
+
## v0.6.0
|
|
597
|
+
|
|
598
|
+
- **Settings page.** `lib/settings-schema.js` exports a native schemastery
|
|
599
|
+
`Config` (resolved from the DSH installation, so the bundle stays
|
|
600
|
+
dependency-free) with fields for `foamRoots`, `foamBashs`, `defaultDistribution`,
|
|
601
|
+
`paraviewExe/Python`, `pythonPath`, `caseRoots`, `extraCommands`, `corePath`,
|
|
602
|
+
`logTailBytes`, `scaleAskAbove` and `language`. Without the host library the
|
|
603
|
+
export degrades to `undefined` and the plugin works as before.
|
|
604
|
+
- **One language for human-facing tool text.** `lib/i18n.js` holds the
|
|
605
|
+
geometry-scale question/options template per language; `mesh_plan` and `check`
|
|
606
|
+
now emit the same question in the resolved language (Russian and English
|
|
607
|
+
shipped, others fall back to English). The Russian hardcode in `check` is gone.
|
|
608
|
+
- Tests: settings schema (native marker, a field for every default, graceful
|
|
609
|
+
degradation) and language coverage for both gate call sites (79 total).
|
|
610
|
+
|
|
611
|
+
## v0.5.0
|
|
612
|
+
|
|
613
|
+
- **Zero-configuration installs.** `cordis.patch.yml` ships an empty config; the
|
|
614
|
+
plugin discovers OpenFOAM installations (`/opt`, `/usr/lib/openfoam`,
|
|
615
|
+
`/usr/local`, `~/OpenFOAM`, `$WM_PROJECT_DIR`) and ParaView (`/opt`
|
|
616
|
+
directories, `PATH`). Explicit profile config still wins.
|
|
617
|
+
- **Configurable response language.** `language: ''` follows the OS locale
|
|
618
|
+
(`LC_ALL`/`LC_MESSAGES`/`LANG`); `language: ru` (or any code/name) forces one.
|
|
619
|
+
`CORE.md` carries a `{{language}}` placeholder resolved on every assembly, so
|
|
620
|
+
the same file serves every language; `openfoam_env_check` reports the choice.
|
|
621
|
+
- `caseRoots: []` now warns in the config warnings instead of failing later.
|
|
622
|
+
- Discovery/language tests (5) and the machine-neutral patch guard.
|
|
623
|
+
|
|
624
|
+
## v0.4.4
|
|
625
|
+
|
|
626
|
+
- Web UI: the call summary of every `openfoam_*` tool row is blue
|
|
627
|
+
(`#3b518c` light, `#9db4e0` dark) through the client half.
|
|
628
|
+
|
|
629
|
+
## v0.4.3
|
|
630
|
+
|
|
631
|
+
- Web UI: orange ring around `openfoam_*` rows and an orange tool name
|
|
632
|
+
(replaced by the blue summary in v0.4.4).
|
|
633
|
+
|
|
634
|
+
## v0.4.2
|
|
635
|
+
|
|
636
|
+
- Browser half of the bundle (`client.js`, `dsh.client`) that styles
|
|
637
|
+
`openfoam_*` tool rows.
|
|
638
|
+
|
|
639
|
+
## v0.4.0
|
|
640
|
+
|
|
641
|
+
- Region-aware doctor: `check` walks `system/<r>/`, `0/<r>/`, `constant/<r>/`,
|
|
642
|
+
tags findings with their region and accepts `region=`.
|
|
643
|
+
|
|
644
|
+
## v0.3.9
|
|
645
|
+
|
|
646
|
+
- `<case-dir-name>.foam` is created on every case-creating path and is the only
|
|
647
|
+
accepted ParaView entry file.
|
|
648
|
+
- Geometry-scale gate: `mesh_plan`/`check` ask the human (`needs_input`) when the
|
|
649
|
+
bounding box exceeds `scaleAskAbove` (0.1 m).
|
|
650
|
+
|
|
651
|
+
## v0.3.8
|
|
652
|
+
|
|
653
|
+
- Dead-code removal, boundary-parser dedup, `restore0Dir` wired as a builtin.
|
|
654
|
+
|
|
655
|
+
## v0.3.7
|
|
656
|
+
|
|
657
|
+
- Tail-read logs (`logTailBytes`, 4 MB) and table renders for eight tools.
|
|
658
|
+
|
|
659
|
+
## v0.3.6
|
|
660
|
+
|
|
661
|
+
- com multi-region: `regionProperties` groups, `0.orig/` + `restore0Dir`,
|
|
662
|
+
per-region renders.
|
|
663
|
+
|
|
664
|
+
## v0.3.5
|
|
665
|
+
|
|
666
|
+
- `openfoam-cht` skill and skills guard tests.
|
|
667
|
+
|
|
668
|
+
## v0.3.4
|
|
669
|
+
|
|
670
|
+
- Registration layer (`lib/registry.js`): strict schema, render wrapper,
|
|
671
|
+
per-tool telemetry, `needs_input` question block.
|
|
672
|
+
|
|
673
|
+
## v0.3.0
|
|
674
|
+
|
|
675
|
+
- Multi-region (CHT) support, honest verifiers, tool routing, `openfoam_usage_report`.
|
|
676
|
+
|
|
677
|
+
## v0.2.0
|
|
678
|
+
|
|
679
|
+
- Bundle version in `env_check`/`version_info`; documented update flow.
|
|
680
|
+
|
|
681
|
+
## v0.1.0
|
|
682
|
+
|
|
683
|
+
- Initial prototype: case inspection, doctor, meshing, runs, renders.
|