@golemui/gui-mcp 1.1.1-rc.0 → 1.1.1-rc.2

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,30 @@
1
+ ## 1.1.1-rc.1 (2026-08-02)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **gui-mcp:** resolve @golemui/dx in the dx_check_code type graph ([8afa41db](https://github.com/golemui/golemui/commit/8afa41db))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Mud Scientist @mudscientist
10
+
11
+ ## 1.1.1-rc.0 (2026-08-01)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **mcp:** add golemui-mcp CLI subcommands for skills ([58b9c21f](https://github.com/golemui/golemui/commit/58b9c21f))
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **gui-validators:** make initValidators fail loudly on unknown configs ([#237](https://github.com/golemui/golemui/pull/237))
20
+ - **mcp:** correct lit and vanilla submit event names in DX grounding ([47cf777f](https://github.com/golemui/golemui/commit/47cf777f))
21
+ - **core:** make WithWidget and WidgetLoaders public-only ([#228](https://github.com/golemui/golemui/pull/228))
22
+
23
+ ### ❤️ Thank You
24
+
25
+ - Mud Scientist @mudscientist
26
+ - Raúl Jiménez @Elecash
27
+
1
28
  ## 1.1.0 (2026-07-21)
2
29
 
3
30
  ### 🚀 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 { d as checkDxCode, r as resolveDxFramework, f as listDxFactoriesCatalog, b as DX_LIST_FACTORIES_TOOL, g as getDxSpec, a as DX_GET_SPEC_TOOL, D as DX_CHECK_CODE_TOOL } from "./list-dx-factories-Dwy_BYZi.js";
8
+ import { d as checkDxCode, r as resolveDxFramework, f as listDxFactoriesCatalog, b as DX_LIST_FACTORIES_TOOL, g as getDxSpec, a as DX_GET_SPEC_TOOL, D as DX_CHECK_CODE_TOOL } from "./list-dx-factories-BLhvXI07.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-DRFSt-XX.js";
10
10
  const USAGE = `Usage: golemui-mcp [command]
11
11
 
@@ -16,7 +16,7 @@ export declare function resolveStrategy(resolveSpec?: (spec: string) => string):
16
16
  export declare function resolveTypeCheckOptions(ts: typeof TS): TS.CompilerOptions;
17
17
  /**
18
18
  * Compile a single in-memory file against the type graph and return ONLY that file's
19
- * diagnostics (the host serves {@link SNIPPET_FILE} from memory; every other file is read
19
+ * diagnostics (the host serves the snippet from memory; every other file is read
20
20
  * from disk as usual).
21
21
  */
22
22
  export declare function diagnose(ts: typeof TS, code: string, options: TS.CompilerOptions): readonly TS.Diagnostic[];
package/lib.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { G, J, a, b, c, g, d, e, f, v } from "./get-concept-DRFSt-XX.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-Dwy_BYZi.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-BLhvXI07.js";
3
3
  export {
4
4
  D as DX_CHECK_CODE_TOOL,
5
5
  a2 as DX_GET_SPEC_TOOL,
@@ -70,6 +70,7 @@ const GOLEMUI_TYPE_PACKAGES = [
70
70
  { spec: "@golemui/gui-shared", rel: "gui/shared/index.d.ts" },
71
71
  { spec: "@golemui/gui-shared/internals", rel: "gui/shared/internals.d.ts" },
72
72
  { spec: "@golemui/gui-validators", rel: "gui/validators/index.d.ts" },
73
+ { spec: "@golemui/dx", rel: "dx/index.d.ts" },
73
74
  { spec: "@golemui/core", rel: "core/index.d.ts" }
74
75
  ];
75
76
  const DIST_SEARCH_DEPTH = 8;
@@ -111,23 +112,27 @@ function resolveTypeCheckOptions(ts) {
111
112
  moduleResolution: ts.ModuleResolutionKind.Bundler,
112
113
  jsx: ts.JsxEmit.ReactJSX,
113
114
  lib: ["lib.es2020.d.ts", "lib.dom.d.ts"],
114
- // baseUrl roots node_modules resolution (zod, @standard-schema/spec, and — in the
115
- // installed case — the @golemui packages themselves).
115
+ // baseUrl serves the dev-fallback `paths` mappings and is where {@link diagnose}
116
+ // anchors the in-memory snippet. It does NOT root node_modules resolution by itself:
117
+ // under `moduleResolution: Bundler`, non-relative imports walk upward from the
118
+ // importing file's directory — which is exactly why the snippet must live here.
116
119
  baseUrl: strat.baseUrl,
117
120
  ...strat.paths ? { paths: strat.paths } : {}
118
121
  };
119
122
  }
120
123
  function diagnose(ts, code, options) {
121
- const sf = ts.createSourceFile(SNIPPET_FILE, code, ts.ScriptTarget.ES2020, true);
124
+ const snippetPath = resolve(options.baseUrl ?? ".", SNIPPET_FILE);
125
+ const isSnippet = (fileName) => fileName === snippetPath || resolve(fileName) === snippetPath;
126
+ const sf = ts.createSourceFile(snippetPath, code, ts.ScriptTarget.ES2020, true);
122
127
  const host = ts.createCompilerHost(options, true);
123
128
  const originalGet = host.getSourceFile.bind(host);
124
- host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) => fileName === SNIPPET_FILE || resolve(fileName) === resolve(SNIPPET_FILE) ? sf : originalGet(fileName, languageVersion, onError, shouldCreate);
129
+ host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) => isSnippet(fileName) ? sf : originalGet(fileName, languageVersion, onError, shouldCreate);
125
130
  const originalExists = host.fileExists.bind(host);
126
- host.fileExists = (fileName) => fileName === SNIPPET_FILE || resolve(fileName) === resolve(SNIPPET_FILE) || originalExists(fileName);
131
+ host.fileExists = (fileName) => isSnippet(fileName) || originalExists(fileName);
127
132
  const originalRead = host.readFile.bind(host);
128
- host.readFile = (fileName) => fileName === SNIPPET_FILE ? code : originalRead(fileName);
129
- const program = ts.createProgram([SNIPPET_FILE], options, host);
130
- return ts.getPreEmitDiagnostics(program).filter((d) => d.file?.fileName === SNIPPET_FILE);
133
+ host.readFile = (fileName) => isSnippet(fileName) ? code : originalRead(fileName);
134
+ const program = ts.createProgram([snippetPath], options, host);
135
+ return ts.getPreEmitDiagnostics(program).filter((d) => d.file?.fileName === snippetPath);
131
136
  }
132
137
  let guardChecked = false;
133
138
  function assertTypesAreLive(ts, options) {
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@golemui/gui-mcp",
3
- "version": "1.1.1-rc.0",
3
+ "version": "1.1.1-rc.2",
4
4
  "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
5
8
  "description": "Model Context Protocol server for GolemUI — gives AI coding assistants deterministic schema validation and form generation for GolemUI form definitions.",
6
9
  "type": "module",
7
10
  "main": "./lib.js",
@@ -40,19 +43,14 @@
40
43
  "ajv": "^8.17.1",
41
44
  "ajv-formats": "^3.0.1",
42
45
  "typescript": "^5.9.2",
43
- "@golemui/gui-schemas": "1.1.1-rc.0",
44
- "@golemui/gui-shared": "1.1.1-rc.0",
45
- "@golemui/gui-validators": "1.1.1-rc.0",
46
- "@golemui/core": "1.1.1-rc.0",
46
+ "@golemui/gui-schemas": "1.1.1-rc.2",
47
+ "@golemui/gui-shared": "1.1.1-rc.2",
48
+ "@golemui/gui-validators": "1.1.1-rc.2",
49
+ "@golemui/core": "1.1.1-rc.2",
50
+ "@modelcontextprotocol/sdk": "^1.0.0",
47
51
  "zod": "^4.0.0",
48
52
  "@standard-schema/spec": "^1.0.0"
49
53
  },
50
- "peerDependencies": {
51
- "@modelcontextprotocol/sdk": "^1.0.0"
52
- },
53
- "devDependencies": {
54
- "@modelcontextprotocol/sdk": "^1.0.0"
55
- },
56
54
  "engines": {
57
55
  "node": ">=18.0.0"
58
56
  },