@dforge-core/dforge-mcp 0.1.2 → 0.1.4

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,40 @@ 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.3
8
+
9
+ ### Changed
10
+ - Bumped the `@dforge-core/metadata` dependency to `^0.0.4` so the publish-time
11
+ schema vendoring (`prepublishOnly` → `vendor-schemas`) picks up the refreshed
12
+ `reports.schema.json` (`vizType: "kpi"` + KPI formula / cross-source config).
13
+ The vendored copy under `resources/schemas/` is regenerated on publish — it is
14
+ not hand-edited.
15
+
16
+ ### Added
17
+ - **Cross-source report metrics & charts (schema).** `reports.schema.json` now
18
+ lists `kpi` as a `vizType` (was `metric`) and documents the two config shapes
19
+ module authors can now write:
20
+ - **Formula KPI metrics** — a metric can be `{ formula, inputs: [{ alias, column,
21
+ agg, source? }], format? }` instead of a single `{ column, agg }`, for ratios /
22
+ derived numbers / win-rate percentages. `format` Auto (omit `style`) inherits the
23
+ first input column's own formatter.
24
+ - **Cross-source inputs & overlay series** — a formula input (`inputs[].source`) or
25
+ a chart overlay series (`config.series`, a single object or array of `{ source?,
26
+ categoryCol, valueCol, agg, label? }`) can aggregate over a **sibling dataset** by
27
+ its code (omit = the panel's own). Chart overlays share one category axis
28
+ (outer-joined; bar fills 0, line/area gaps with null).
29
+
30
+ ### Skill
31
+ - `dforge-mcp-author`: **reconciled `references/reports.md` to the real report
32
+ format.** Corrected long-standing drift — `layout` is `{ panels: [...] }` (not a
33
+ bare array); chart panels are `vizType: "chart"` with the kind in
34
+ `config.chartType` (not `vizType: "bar"`); datasets use `datasetType` + nested
35
+ `query.entityCd`/`columns` (not top-level `entityCode`/`groupBy`/`aggregations`,
36
+ which don't exist — aggregation is viz-side); SP datasets use `spCd` (+ multi-set
37
+ via `parentDatasetCd`/`parentRef`), not `sp`/`spCursor`; KPI is
38
+ `config.metrics: [...]` (not `{ valueCol, format }`). Added the formula-KPI,
39
+ cross-dataset-KPI, and chart-overlay sections.
40
+
7
41
  ## 0.1.2
8
42
 
9
43
  ### Fixed