@plitzi/sdk-server 0.32.8 → 0.32.9
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
|
@@ -9,6 +9,13 @@ var RENDER_APP_CSP = {
|
|
|
9
9
|
],
|
|
10
10
|
connectDomains: ["*"]
|
|
11
11
|
};
|
|
12
|
+
var RENDER_APP_META = {
|
|
13
|
+
ui: { csp: RENDER_APP_CSP },
|
|
14
|
+
"openai/widgetCSP": {
|
|
15
|
+
resource_domains: RENDER_APP_CSP.resourceDomains,
|
|
16
|
+
connect_domains: RENDER_APP_CSP.connectDomains
|
|
17
|
+
}
|
|
18
|
+
};
|
|
12
19
|
var appHtml = (sdkBase, devMode) => {
|
|
13
20
|
const js = `${sdkBase}/sdk-assets/plitzi-sdk.js`;
|
|
14
21
|
const vendor = `${sdkBase}/sdk-assets/${devMode ? "plitzi-sdk-dev-vendor.js" : "plitzi-sdk-vendor.js"}`;
|
|
@@ -163,11 +170,12 @@ var registerRenderApp = (server, sdkBase, devMode) => {
|
|
|
163
170
|
server.registerResource("plitzi-render-app", RENDER_APP_URI, {
|
|
164
171
|
description: "Interactive view that renders a plitzi_render widget with the Plitzi SDK (client-side).",
|
|
165
172
|
mimeType: RENDER_APP_MIME,
|
|
166
|
-
_meta:
|
|
173
|
+
_meta: RENDER_APP_META
|
|
167
174
|
}, () => ({ contents: [{
|
|
168
175
|
uri: RENDER_APP_URI,
|
|
169
176
|
mimeType: RENDER_APP_MIME,
|
|
170
|
-
text: html
|
|
177
|
+
text: html,
|
|
178
|
+
_meta: RENDER_APP_META
|
|
171
179
|
}] }));
|
|
172
180
|
};
|
|
173
181
|
//#endregion
|
|
@@ -42,7 +42,7 @@ var createMcpServer = ({ adapters, getSpaceId, preview, screenshot, logger, rend
|
|
|
42
42
|
const getSpace = () => spacePromise ??= loadSpace();
|
|
43
43
|
const server = new McpServer({
|
|
44
44
|
name: "plitzi-mcp",
|
|
45
|
-
version: "0.32.
|
|
45
|
+
version: "0.32.9"
|
|
46
46
|
}, { instructions: serverInstructions });
|
|
47
47
|
registerResources(server, getSpace, MCP_ENV, log);
|
|
48
48
|
if (renderApp) registerRenderApp(server, renderApp.sdkBase, renderApp.devMode ?? false);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BUILTIN_COMPONENTS } from "../../../catalogs/builtinComponents.js";
|
|
1
2
|
import { observedDataSources, observedInteractionActions } from "../../../catalogs/observed.js";
|
|
2
3
|
import { buildTypeRegistry } from "../../../catalogs/registry.js";
|
|
3
4
|
import { findElementByRef, findFolderByRef, findPageByRef, folderAncestorIds, getPageElements, pageFoldersOf, pageRefOf, resolveRef, routeParamNames } from "../../../helpers/space.js";
|
|
@@ -40,7 +41,7 @@ var buildValidationCtx = (space, ops) => {
|
|
|
40
41
|
errors: [],
|
|
41
42
|
warnings: [],
|
|
42
43
|
warned: /* @__PURE__ */ new Set(),
|
|
43
|
-
knownTypes: new Set(Object.keys(registry.types)),
|
|
44
|
+
knownTypes: /* @__PURE__ */ new Set([...Object.keys(registry.types), ...Object.keys(BUILTIN_COMPONENTS)]),
|
|
44
45
|
typeProps: new Map(Object.entries(registry.types).map(([type, info]) => [type, new Set(Object.keys(info.props))])),
|
|
45
46
|
typeMeta: buildTypeMeta(space.catalog),
|
|
46
47
|
elementType: (ref) => (findElementByRef(space.schema, ref) ?? findPageByRef(space.schema, ref))?.definition.type,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-server",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.9",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
26
|
-
"@plitzi/plitzi-sdk": "0.32.
|
|
27
|
-
"@plitzi/sdk-schema": "0.32.
|
|
28
|
-
"@plitzi/sdk-shared": "0.32.
|
|
26
|
+
"@plitzi/plitzi-sdk": "0.32.9",
|
|
27
|
+
"@plitzi/sdk-schema": "0.32.9",
|
|
28
|
+
"@plitzi/sdk-shared": "0.32.9",
|
|
29
29
|
"ejs": "^6.0.1",
|
|
30
30
|
"esbuild": "^0.28.1",
|
|
31
31
|
"zod": "^4.4.3"
|