@dforge-core/dforge-mcp 0.2.31 → 0.2.33
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 +49 -0
- package/dist/server.js +517 -196
- package/package.json +3 -3
- package/resources/docs/conventions.md +1 -1
- package/resources/docs/dsl-reference.md +12 -7
- package/resources/schemas/diagram.schema.json +8 -5
- package/resources/schemas/entity.schema.json +17 -13
- package/resources/schemas/manifest.schema.json +2 -2
- package/resources/schemas/traits.schema.json +5 -0
- package/resources/schemas/translations.schema.json +267 -0
- package/skills/dforge-mcp-author/examples/column-security/README.md +2 -3
- package/skills/dforge-mcp-author/references/action-dsl.md +11 -4
- package/skills/dforge-mcp-author/references/data-views.md +1 -1
- package/skills/dforge-mcp-author/references/security.md +3 -2
- package/skills/dforge-mcp-author/references/translations.md +20 -3
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
|
+
## Unreleased
|
|
8
|
+
|
|
9
|
+
**`isView` / `viewSql` are gone** (dForge-core#1312). SQL-view entities were in the
|
|
10
|
+
entity schema and the references but never built: the entity installed as an empty table,
|
|
11
|
+
and passed `dforge_module_validate` on the way. They are now rejected, and will not be built.
|
|
12
|
+
|
|
13
|
+
- `dforge://schema/entity` drops both keys, so an editor flags them. Re-vendored from
|
|
14
|
+
`@dforge-core/metadata` — needs the metadata release that carries the change.
|
|
15
|
+
- `dforge_module_validate` reports them through the CLI's static checks — needs the CLI
|
|
16
|
+
release that carries `ViewEntityValidator`.
|
|
17
|
+
- The references say why, and what to use instead: a data view, a `G` total, the Query
|
|
18
|
+
Builder, or a stored-procedure report.
|
|
19
|
+
|
|
20
|
+
## 0.2.32
|
|
21
|
+
|
|
22
|
+
**`auditHistory` levels in the vendored schemas were wrong.** The
|
|
23
|
+
manifest schema offered `none` / `minimal` / `full`; the platform accepts `basic` /
|
|
24
|
+
`fields` / `full`, so a module written from it passed `dforge_module_validate` and then
|
|
25
|
+
failed the install. The entity schema also lacked the per-entity `auditHistory` override.
|
|
26
|
+
|
|
27
|
+
- Needs `@dforge-core/metadata` 0.0.32; the schemas under `resources/schemas/` are
|
|
28
|
+
re-vendored from it. `@dforge-core/dforge-cli` is now `^0.2.25`.
|
|
29
|
+
|
|
30
|
+
**`dforge_translation_sync` keyed sub-folders by their bare code.** A sub-folder's
|
|
31
|
+
translation key is now `<module>_<path>` (`ops_north`), the key the installer's
|
|
32
|
+
completeness check requires; the bare code (`north`) was accepted nowhere. A translation
|
|
33
|
+
already held under the bare key is carried over instead of reseeded with English.
|
|
34
|
+
|
|
35
|
+
- A setting's source text falls back to `description`, then `desc`, before its
|
|
36
|
+
titleized code.
|
|
37
|
+
|
|
38
|
+
**Action messages are translatable** (dForge-core#1299, platform 1.26.0). The text of a
|
|
39
|
+
DSL `info()` / `warn()` / `error()` / `exit()` call is looked up by its exact English
|
|
40
|
+
wording in a new `messages` block of `translations/<locale>.json`; values go in `{name}`
|
|
41
|
+
placeholders, filled from a new second argument (`exit()`: third).
|
|
42
|
+
|
|
43
|
+
- `dforge://schema/translations`: a schema for the locale files, strict at every level —
|
|
44
|
+
a misspelled section, nested menu `items` or `description` for `desc` is an error.
|
|
45
|
+
- `dforge_translation_sync` adds every fixed message text to the non-English files.
|
|
46
|
+
- `dforge_module_validate`, `dforge_action_check` and `dforge_action_add` report, for a
|
|
47
|
+
module declaring `supportedLocales`, a message with no translation and one joined from
|
|
48
|
+
text and values. `dforge_module_validate` always reports a `messages` entry no script
|
|
49
|
+
uses and a translation using a placeholder the English text lacks.
|
|
50
|
+
- `dforge_module_validate` checked an action's DSL only when `ui/actions.json` named its
|
|
51
|
+
`script`. The installer defaults the script to the action code, and so does the
|
|
52
|
+
validator now.
|
|
53
|
+
- `dforge://docs/dsl` showed `info()` links as `{ entity, id }`; they are
|
|
54
|
+
`{ label, entity, record | pk }`.
|
|
55
|
+
|
|
7
56
|
## 0.2.31
|
|
8
57
|
|
|
9
58
|
**`dforge://reference/formulas` showed check constraints in formula syntax**
|