@golemui/gui-mcp 1.1.1-rc.1 → 1.1.1-rc.3
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 +20 -0
- package/cli.js +1 -1
- package/dx/type-graph.d.ts +1 -1
- package/lib.js +1 -1
- package/{list-dx-factories-U8ZsqQy-.js → list-dx-factories-BLhvXI07.js} +12 -8
- package/package.json +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 1.1.1-rc.2 (2026-08-03)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- dependencies and type graph ([#241](https://github.com/golemui/golemui/pull/241))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Raúl Jiménez @Elecash
|
|
10
|
+
|
|
11
|
+
## 1.1.1-rc.1 (2026-08-02)
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **gui-mcp:** resolve @golemui/dx in the dx_check_code type graph ([8afa41db](https://github.com/golemui/golemui/commit/8afa41db))
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Mud Scientist @mudscientist
|
|
20
|
+
|
|
1
21
|
## 1.1.1-rc.0 (2026-08-01)
|
|
2
22
|
|
|
3
23
|
### 🚀 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-
|
|
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
|
|
package/dx/type-graph.d.ts
CHANGED
|
@@ -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
|
|
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-
|
|
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,
|
|
@@ -112,23 +112,27 @@ function resolveTypeCheckOptions(ts) {
|
|
|
112
112
|
moduleResolution: ts.ModuleResolutionKind.Bundler,
|
|
113
113
|
jsx: ts.JsxEmit.ReactJSX,
|
|
114
114
|
lib: ["lib.es2020.d.ts", "lib.dom.d.ts"],
|
|
115
|
-
// baseUrl
|
|
116
|
-
//
|
|
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.
|
|
117
119
|
baseUrl: strat.baseUrl,
|
|
118
120
|
...strat.paths ? { paths: strat.paths } : {}
|
|
119
121
|
};
|
|
120
122
|
}
|
|
121
123
|
function diagnose(ts, code, options) {
|
|
122
|
-
const
|
|
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);
|
|
123
127
|
const host = ts.createCompilerHost(options, true);
|
|
124
128
|
const originalGet = host.getSourceFile.bind(host);
|
|
125
|
-
host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) =>
|
|
129
|
+
host.getSourceFile = (fileName, languageVersion, onError, shouldCreate) => isSnippet(fileName) ? sf : originalGet(fileName, languageVersion, onError, shouldCreate);
|
|
126
130
|
const originalExists = host.fileExists.bind(host);
|
|
127
|
-
host.fileExists = (fileName) =>
|
|
131
|
+
host.fileExists = (fileName) => isSnippet(fileName) || originalExists(fileName);
|
|
128
132
|
const originalRead = host.readFile.bind(host);
|
|
129
|
-
host.readFile = (fileName) => fileName
|
|
130
|
-
const program = ts.createProgram([
|
|
131
|
-
return ts.getPreEmitDiagnostics(program).filter((d) => d.file?.fileName ===
|
|
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);
|
|
132
136
|
}
|
|
133
137
|
let guardChecked = false;
|
|
134
138
|
function assertTypesAreLive(ts, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-mcp",
|
|
3
|
-
"version": "1.1.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,19 +43,14 @@
|
|
|
43
43
|
"ajv": "^8.17.1",
|
|
44
44
|
"ajv-formats": "^3.0.1",
|
|
45
45
|
"typescript": "^5.9.2",
|
|
46
|
-
"@golemui/gui-schemas": "1.1.1-rc.
|
|
47
|
-
"@golemui/gui-shared": "1.1.1-rc.
|
|
48
|
-
"@golemui/gui-validators": "1.1.1-rc.
|
|
49
|
-
"@golemui/core": "1.1.1-rc.
|
|
46
|
+
"@golemui/gui-schemas": "1.1.1-rc.3",
|
|
47
|
+
"@golemui/gui-shared": "1.1.1-rc.3",
|
|
48
|
+
"@golemui/gui-validators": "1.1.1-rc.3",
|
|
49
|
+
"@golemui/core": "1.1.1-rc.3",
|
|
50
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
50
51
|
"zod": "^4.0.0",
|
|
51
52
|
"@standard-schema/spec": "^1.0.0"
|
|
52
53
|
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
58
|
-
},
|
|
59
54
|
"engines": {
|
|
60
55
|
"node": ">=18.0.0"
|
|
61
56
|
},
|