@dforge-core/dforge-mcp 0.2.30 → 0.2.32

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 CHANGED
@@ -4,6 +4,55 @@ All notable changes to `@dforge-core/dforge-mcp`. This project uses semver-ish
4
4
  `0.1.0-rc.N` pre-release tags; the published version is set at publish time via
5
5
  the release workflow, so committed `package.json` versions are placeholders.
6
6
 
7
+ ## 0.2.32
8
+
9
+ **`auditHistory` levels in the vendored schemas were wrong.** The
10
+ manifest schema offered `none` / `minimal` / `full`; the platform accepts `basic` /
11
+ `fields` / `full`, so a module written from it passed `dforge_module_validate` and then
12
+ failed the install. The entity schema also lacked the per-entity `auditHistory` override.
13
+
14
+ - Needs `@dforge-core/metadata` 0.0.32; the schemas under `resources/schemas/` are
15
+ re-vendored from it. `@dforge-core/dforge-cli` is now `^0.2.25`.
16
+
17
+ **`dforge_translation_sync` keyed sub-folders by their bare code.** A sub-folder's
18
+ translation key is now `<module>_<path>` (`ops_north`), the key the installer's
19
+ completeness check requires; the bare code (`north`) was accepted nowhere. A translation
20
+ already held under the bare key is carried over instead of reseeded with English.
21
+
22
+ - A setting's source text falls back to `description`, then `desc`, before its
23
+ titleized code.
24
+
25
+ **Action messages are translatable** (dForge-core#1299, platform 1.26.0). The text of a
26
+ DSL `info()` / `warn()` / `error()` / `exit()` call is looked up by its exact English
27
+ wording in a new `messages` block of `translations/<locale>.json`; values go in `{name}`
28
+ placeholders, filled from a new second argument (`exit()`: third).
29
+
30
+ - `dforge://schema/translations`: a schema for the locale files, strict at every level —
31
+ a misspelled section, nested menu `items` or `description` for `desc` is an error.
32
+ - `dforge_translation_sync` adds every fixed message text to the non-English files.
33
+ - `dforge_module_validate`, `dforge_action_check` and `dforge_action_add` report, for a
34
+ module declaring `supportedLocales`, a message with no translation and one joined from
35
+ text and values. `dforge_module_validate` always reports a `messages` entry no script
36
+ uses and a translation using a placeholder the English text lacks.
37
+ - `dforge_module_validate` checked an action's DSL only when `ui/actions.json` named its
38
+ `script`. The installer defaults the script to the action code, and so does the
39
+ validator now.
40
+ - `dforge://docs/dsl` showed `info()` links as `{ entity, id }`; they are
41
+ `{ label, entity, record | pk }`.
42
+
43
+ ## 0.2.31
44
+
45
+ **`dforge://reference/formulas` showed check constraints in formula syntax**
46
+ (dForge-core#1263). Its examples were `[quantity] > 0` and `[end_date] >= [start_date]`,
47
+ but a check constraint's `expression` is copied into a PostgreSQL `CHECK (...)` as is. A
48
+ module written from the reference passed `dforge_module_validate` and then failed the
49
+ install with `syntax error at or near "["`. The reference now shows plain SQL over real
50
+ column names, with `IS NULL` / `IS NOT NULL` instead of the formula engine's `= null`.
51
+
52
+ - With `@dforge-core/dforge-cli` 0.2.24 or later, `dforge_module_validate` also reports
53
+ both mistakes as errors under `cli: check constraints`: a `[field]` reference, and a
54
+ comparison with `null`, which in SQL never fails the CHECK. An older CLI skips the check.
55
+
7
56
  ## 0.2.28
8
57
 
9
58
  **`dforge_module_validate` reported a clean module that `pack` then rejected**