@golemui/gui-mcp 1.0.0-rc.4 → 1.0.0-rc.5

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
@@ -1,3 +1,20 @@
1
+ ## 1.0.0-rc.4 (2026-06-14)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **mcp:** add type-checked gui.* DX authoring surface ([#185](https://github.com/golemui/golemui/pull/185))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **gui-shared:** make dx event handlers function-only ([#190](https://github.com/golemui/golemui/pull/190))
10
+ - added license field and copied license to all publishable packages ([#189](https://github.com/golemui/golemui/pull/189))
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - alberto-golem-ui
15
+ - Mud Scientist @mudscientist
16
+ - Raúl Jiménez @Elecash
17
+
1
18
  ## 1.0.0-rc.3 (2026-06-13)
2
19
 
3
20
  This was a version bump only for gui-mcp to align it with other projects, there were no code changes.
package/cli.js CHANGED
@@ -5,7 +5,8 @@ import { fileURLToPath } from "node:url";
5
5
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
6
6
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
7
7
  import { ListToolsRequestSchema, CallToolRequestSchema } from "@modelcontextprotocol/sdk/types.js";
8
- import { r as resolveDxFramework, o as listDxFactoriesCatalog, b as DX_LIST_FACTORIES_TOOL, l as getDxSpec, a as DX_GET_SPEC_TOOL, g as checkDxCode, D as DX_CHECK_CODE_TOOL, v as validateFormDefinition, f as JSON_VALIDATE_FORM_DEFINITION_TOOL, i as generateFromJsonSchema, d as JSON_GENERATE_FROM_SCHEMA_TOOL, j as generateFromOpenapi, J as JSON_GENERATE_FROM_OPENAPI_TOOL, m as getWidgetSpec, e as JSON_GET_WIDGET_SPEC_TOOL, k as getConcept, G as GET_CONCEPT_TOOL } from "./get-concept-DMoitPWv.js";
8
+ import { r as resolveDxFramework, f as listDxFactoriesCatalog, b as DX_LIST_FACTORIES_TOOL, g as getDxSpec, a as DX_GET_SPEC_TOOL, d as checkDxCode, D as DX_CHECK_CODE_TOOL } from "./list-dx-factories-CF4ExKyx.js";
9
+ import { v as validateFormDefinition, c as JSON_VALIDATE_FORM_DEFINITION_TOOL, g as generateFromJsonSchema, a as JSON_GENERATE_FROM_SCHEMA_TOOL, d as generateFromOpenapi, J as JSON_GENERATE_FROM_OPENAPI_TOOL, f as getWidgetSpec, b as JSON_GET_WIDGET_SPEC_TOOL, e as getConcept, G as GET_CONCEPT_TOOL } from "./get-concept-Cy3zD1BS.js";
9
10
  const DX_INSTRUCTIONS = "Writing GolemUI as DX code (the `gui.*` fluent builder in TypeScript) instead of a JSON definition? GolemUI is not in any model training data, so `gui.*` code is easy to fabricate — do NOT guess the API. FIRST call `dx_list_factories` once: it is the COMPLETE reference — every factory with its signature, a compile-verified example, and its gotchas, plus the cross-cutting patterns and common rules. Its imports + render snippet are tailored to your target framework (" + resolveDxFramework() + ") — use them verbatim; import `gui` ONLY from `@golemui/gui-shared`, never hand-write raw `{ kind, type, path }` widget JSON or cast to `any`. Keep it in context and write your whole form from it; it is self-sufficient for most forms. `dx_get_spec` is only a rare single-factory deep-dive — you usually will not need it, and you do NOT need `json_get_widget_spec` here (that is the JSON surface). Then ALWAYS finish by calling `dx_check_code` with the snippet — it type-checks against the real `@golemui` declarations and returns `{ ok, diagnostics }` (each with a fix `hint` for recognized mistakes). Treat `ok: false` as blocking: apply the fixes and re-check until `ok` is true. Use `dx_check_code` for `gui.*` *code* and `json_validate_form_definition` for a JSON *definition object* — they are not interchangeable.\n\n";
10
11
  function defineTool(tool, handler) {
11
12
  return { tool, run: (args) => handler(args) };