@golemui/gui-mcp 1.0.0-rc.5 β†’ 1.0.1

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,31 @@
1
+ # 1.0.0 (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-mcp:** defer DX createRequire and add portable /json export ([#193](https://github.com/golemui/golemui/pull/193))
10
+ - **gui-shared:** make dx event handlers function-only ([#190](https://github.com/golemui/golemui/pull/190))
11
+ - added license field and copied license to all publishable packages ([#189](https://github.com/golemui/golemui/pull/189))
12
+
13
+ ### ❀️ Thank You
14
+
15
+ - alberto-golem-ui
16
+ - Mud Scientist @mudscientist
17
+ - RaΓΊl JimΓ©nez @Elecash
18
+
19
+ ## 1.0.0-rc.5 (2026-06-14)
20
+
21
+ ### 🩹 Fixes
22
+
23
+ - **gui-mcp:** defer DX createRequire and add portable /json export ([#193](https://github.com/golemui/golemui/pull/193))
24
+
25
+ ### ❀️ Thank You
26
+
27
+ - Mud Scientist @mudscientist
28
+
1
29
  ## 1.0.0-rc.4 (2026-06-14)
2
30
 
3
31
  ### πŸš€ Features
package/cli.js CHANGED
@@ -5,7 +5,7 @@ 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, 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";
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-DZoAUKZK.js";
9
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";
10
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";
11
11
  function defineTool(tool, handler) {
@@ -1,4 +1,17 @@
1
1
  import type * as TS from 'typescript';
2
+ interface ResolveStrategy {
3
+ baseUrl: string;
4
+ /** Explicit `.d.ts` path overrides (dev/monorepo); omitted when resolving from node_modules. */
5
+ paths?: Record<string, string[]>;
6
+ }
7
+ /**
8
+ * Decide how to resolve the `@golemui` type graph:
9
+ * 1. Published/installed β€” `@golemui/gui-shared` is in `node_modules`: resolve naturally
10
+ * (no path overrides), so the types track the exact installed version.
11
+ * 2. Dev/monorepo β€” packages aren't in `node_modules` (they resolve via tsconfig paths to
12
+ * source): fall back to mapping each package to the built `dist/libs` `.d.ts`.
13
+ */
14
+ export declare function resolveStrategy(resolveSpec?: (spec: string) => string): ResolveStrategy;
2
15
  /** Build the compiler options that resolve `gui.*` against the real `@golemui` types. */
3
16
  export declare function resolveTypeCheckOptions(ts: typeof TS): TS.CompilerOptions;
4
17
  /**
@@ -8,3 +21,4 @@ export declare function resolveTypeCheckOptions(ts: typeof TS): TS.CompilerOptio
8
21
  */
9
22
  export declare function diagnose(ts: typeof TS, code: string, options: TS.CompilerOptions): readonly TS.Diagnostic[];
10
23
  export declare function assertTypesAreLive(ts: typeof TS, options: TS.CompilerOptions): void;
24
+ export {};
package/lib.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { G, J, a, b, c, g, d, e, f, v } from "./get-concept-Cy3zD1BS.js";
2
- import { D, a as a2, b as b2, c as c2, d as d2, e as e2, g as g2, l, f as f2, t } from "./list-dx-factories-CF4ExKyx.js";
2
+ import { D, a as a2, b as b2, c as c2, d as d2, e as e2, g as g2, l, f as f2, t } from "./list-dx-factories-DZoAUKZK.js";
3
3
  export {
4
4
  D as DX_CHECK_CODE_TOOL,
5
5
  a2 as DX_GET_SPEC_TOOL,
@@ -68,11 +68,11 @@ const GOLEMUI_TYPE_PACKAGES = [
68
68
  ];
69
69
  const DIST_SEARCH_DEPTH = 8;
70
70
  const SNIPPET_FILE = "__dx_snippet__.ts";
71
- function resolveStrategy() {
71
+ function resolveStrategy(resolveSpec = (s) => getRequire().resolve(s)) {
72
72
  try {
73
- const pj = getRequire().resolve("@golemui/gui-shared/package.json");
74
- const [root] = pj.split(/[\\/]node_modules[\\/]/);
75
- if (root && root !== pj) return { baseUrl: root };
73
+ const entry = resolveSpec("@golemui/gui-shared");
74
+ const [root] = entry.split(/[\\/]node_modules[\\/]/);
75
+ if (root && root !== entry) return { baseUrl: root };
76
76
  } catch {
77
77
  }
78
78
  const typesRoot = findDistTypesRoot();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemui/gui-mcp",
3
- "version": "1.0.0-rc.5",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Model Context Protocol server for GolemUI β€” gives AI coding assistants deterministic schema validation and form generation for GolemUI form definitions.",
6
6
  "type": "module",
@@ -40,10 +40,10 @@
40
40
  "ajv": "^8.17.1",
41
41
  "ajv-formats": "^3.0.1",
42
42
  "typescript": "^5.9.2",
43
- "@golemui/gui-schemas": "1.0.0-rc.5",
44
- "@golemui/gui-shared": "1.0.0-rc.5",
45
- "@golemui/gui-validators": "1.0.0-rc.5",
46
- "@golemui/core": "1.0.0-rc.5",
43
+ "@golemui/gui-schemas": "1.0.1",
44
+ "@golemui/gui-shared": "1.0.1",
45
+ "@golemui/gui-validators": "1.0.1",
46
+ "@golemui/core": "1.0.1",
47
47
  "zod": "^4.0.0",
48
48
  "@standard-schema/spec": "^1.0.0"
49
49
  },