@dforge-core/dforge-mcp 0.1.5 → 0.1.7
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 +54 -0
- package/dist/server.js +412 -298
- package/package.json +2 -2
- package/resources/docs/conventions.md +8 -1
- package/skills/dforge-mcp-author/SKILL.md +2 -2
- package/skills/dforge-mcp-author/references/action-dsl.md +1 -0
- package/skills/dforge-mcp-author/references/column-types.md +20 -0
- package/skills/dforge-mcp-author/references/field-types.md +1 -1
- package/skills/dforge-mcp-author/references/formulas.md +2 -0
- package/skills/dforge-mcp-author/references/security.md +5 -1
- package/skills/dforge-mcp-author/references/translations.md +46 -2
- package/skills/dforge-mcp-author/references/validation-checklist.md +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,60 @@ 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.1.7
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Bumped `@dforge-core/dforge-cli` to `^0.2.7`. Picks up the corrected module
|
|
11
|
+
scaffolder (`buildTranslations` now emits the nested runtime format with the
|
|
12
|
+
completeness-required `roles` block and opt-in constraint-message localization,
|
|
13
|
+
replacing the non-functional flat shape) and the native CLI's install-time
|
|
14
|
+
untranslated-constraint warning.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- **`dforge_module_validate` now flags untranslated check/unique constraint
|
|
18
|
+
messages.** When the manifest declares `supportedLocales`, the validator
|
|
19
|
+
warns (never errors) for every constraint that declares a `message` but has no
|
|
20
|
+
`entities.<e>.constraints.<c>.message` override in a declared non-English
|
|
21
|
+
locale file. This mirrors the server's install-time `UntranslatedConstraint`
|
|
22
|
+
scan, so authors catch the gap pre-flight instead of at install. English
|
|
23
|
+
locales and extension entities (`extends`) are skipped; the locale file is
|
|
24
|
+
matched case-insensitively (`de-de.json` satisfies `de-DE`). Opt-in — modules
|
|
25
|
+
without `supportedLocales` are not scanned.
|
|
26
|
+
|
|
27
|
+
### Skill
|
|
28
|
+
- `dforge-mcp-author`: documented **localizable constraint violation messages**.
|
|
29
|
+
A constraint's `message` in the entity JSON is the base/fallback text; a
|
|
30
|
+
per-locale override under `entities.<e>.constraints.<c>.message` in
|
|
31
|
+
`translations/<locale>.json` localizes it (culture fallback: per-locale →
|
|
32
|
+
base), surfacing identically on the client pre-save validator and the server
|
|
33
|
+
DB-violation path. Localization is opt-in (warned, not completeness-enforced)
|
|
34
|
+
(`translations.md`, `formulas.md`, `validation-checklist.md`,
|
|
35
|
+
`resources/docs/conventions.md`).
|
|
36
|
+
|
|
37
|
+
## 0.1.6
|
|
38
|
+
|
|
39
|
+
### Skill
|
|
40
|
+
- `dforge-mcp-author`: documentation updates to the authoring references (no
|
|
41
|
+
tool/behavior changes).
|
|
42
|
+
- **`entityLink()` action-DSL built-in.** Documented
|
|
43
|
+
`entityLink('entityCd', record, description?)` for populating an
|
|
44
|
+
`entitylink` (jsonb) column from an action's `execute:` block — reads the
|
|
45
|
+
record's PK columns and stores them as **strings** so snowflake/cuid ids
|
|
46
|
+
(> 2^53) stay exact, with an optional display `description`
|
|
47
|
+
(`action-dsl.md`, `field-types.md`).
|
|
48
|
+
- **Referential actions on FK references.** Documented the optional
|
|
49
|
+
`onDelete` / `onUpdate` keys on a `references` entry (`cascade`, `setNull`,
|
|
50
|
+
`restrict`, `noAction`; omitted = `noAction`), including nullable-column
|
|
51
|
+
requirements for `setNull`, the `cuid`-PK no-op note for `onUpdate`, and
|
|
52
|
+
the self-healing drop/recreate-on-change behavior (`column-types.md`).
|
|
53
|
+
- **Role labels are translated and completeness-enforced.** Corrected the
|
|
54
|
+
docs: `security/roles.json` carries `description` + `rights` only (**no
|
|
55
|
+
`label`** — `additionalProperties: false`); the localized role display name
|
|
56
|
+
lives in the translation files as `roles.<code>.label`, module-qualified,
|
|
57
|
+
and is required in **every** locale including the `en-US` base or install
|
|
58
|
+
fails (`security.md`, `translations.md`, `SKILL.md`,
|
|
59
|
+
`validation-checklist.md`).
|
|
60
|
+
|
|
7
61
|
## 0.1.5
|
|
8
62
|
|
|
9
63
|
### Changed
|