@plitzi/sdk-mcp 0.39.12 → 0.39.14

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,5 +1,35 @@
1
1
  # @plitzi/sdk-mcp
2
2
 
3
+ ## 0.39.14
4
+
5
+ ### Patch Changes
6
+
7
+ - f1922cf: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
8
+ `@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
9
+ - Updated dependencies [f1922cf]
10
+ - @plitzi/plitzi-sdk@0.39.14
11
+ - @plitzi/sdk-server@0.39.14
12
+ - @plitzi/sdk-authoring@0.39.14
13
+ - @plitzi/sdk-kernel@0.39.14
14
+ - @plitzi/sdk-schema@0.39.14
15
+ - @plitzi/sdk-shared@0.39.14
16
+ - @plitzi/sdk-style@0.39.14
17
+
18
+ ## 0.39.13
19
+
20
+ ### Patch Changes
21
+
22
+ - 919736b: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
23
+ `@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
24
+ - Updated dependencies [919736b]
25
+ - @plitzi/plitzi-sdk@0.39.13
26
+ - @plitzi/sdk-server@0.39.13
27
+ - @plitzi/sdk-authoring@0.39.13
28
+ - @plitzi/sdk-kernel@0.39.13
29
+ - @plitzi/sdk-schema@0.39.13
30
+ - @plitzi/sdk-shared@0.39.13
31
+ - @plitzi/sdk-style@0.39.13
32
+
3
33
  ## 0.39.12
4
34
 
5
35
  ### Patch Changes
@@ -23,7 +23,7 @@ export declare const ANSWER_BUDGETS: {
23
23
  readonly plitzi_look: 7250;
24
24
  readonly 'plitzi_look html': 29150;
25
25
  readonly 'plitzi_look image': 30;
26
- readonly plitzi_test: 2720;
26
+ readonly plitzi_test: 3390;
27
27
  };
28
28
  /** The answers this package cannot make alone: a host measures them, on its own adapters. */
29
29
  export declare const HOST_ANSWERS: readonly ["plitzi_activity", "plitzi_look", "plitzi_look html", "plitzi_look image", "plitzi_test"];
@@ -24,7 +24,7 @@ var ANSWER_BUDGETS = {
24
24
  plitzi_look: 7250,
25
25
  "plitzi_look html": 29150,
26
26
  "plitzi_look image": 30,
27
- plitzi_test: 2720
27
+ plitzi_test: 3390
28
28
  };
29
29
  /** The answers this package cannot make alone: a host measures them, on its own adapters. */
30
30
  var HOST_ANSWERS = [
@@ -83,9 +83,9 @@ a \`navigate\` interaction.
83
83
  element or page — not \`visible\`. Read anywhere as \`{{ flags.x }}\`. A \`variants\` shows each visitor one of its
84
84
  \`variantItem\`s: by chance (an A/B test, 2–5 variants, each \`weight\` its share; each visitor keeps theirs, read as
85
85
  \`{{ experiments.<experiment> }}\` — \`'a'\`, \`'b'\`…, its id when unnamed; a \`reachGoal\` step counts a conversion) or, with
86
- \`chooseBy: 'rules'\`, the first whose \`when\` (a flag's rule fields, plus \`visitor.returning\`/\`language\`/\`device\`)
86
+ \`chooseBy: 'rules'\`, the first whose \`when\` (a flag's rule fields, plus \`visitor.returning\`/\`language\`/\`device\`/\`country\`)
87
87
  matches; end those with one without \`when\`. A \`timeWindow\` shows its children only between \`startsAt\` and \`endsAt\`
88
- (ISO 8601 with the offset).
88
+ (ISO 8601 with the offset); a \`countdown\` says how long is left until its \`to\`, or its window's end.
89
89
 
90
90
  **Accessible by default:** screen readers and browser agents (Claude in Chrome) read the accessibility tree, so every
91
91
  button/link needs words (an icon-only button a \`title\`), every field a \`label\` (\`hideLabel: true\` hides it), every
@@ -108,7 +108,8 @@ mounted, ignored while someone types in a field; the flow reads the key pressed
108
108
  nothing outside the element needs to know it is open; pick the state one when something else binds to it.
109
109
  - \`utility\` — a built-in utility action (no element/source module); nodeType \`utility\`. Use the **exact** param
110
110
  names: \`delayTime\` waits \`time\` milliseconds (**not** \`delay\`), \`twigTemplate\` (\`returnMode\`, \`template\`),
111
- \`webHook\` (\`url\`, \`method\`, …), \`copyToClipboard\` (\`text\`). See \`utilities\` in
111
+ \`webHook\` (\`url\`, \`method\`, …), \`copyToClipboard\` (\`text\`), \`share\` (\`url\`, \`title\`, \`text\` — answers
112
+ \`copied\`/\`shared\`). See \`utilities\` in
112
113
  \`plitzi://interactions/{env}\`.
113
114
 
114
115
  **A param value can be a data binding.** Any interaction param may hold a \`{{ source }}\` token instead of a literal —
@@ -1,6 +1,10 @@
1
1
  import { grantUrl, isGranted, isRemote } from "./grant.js";
2
2
  // src/modules/mcp/proxy/rewrite.ts
3
- var URL_ATTRIBUTES = ["src", "poster"];
3
+ var URL_ATTRIBUTES = [
4
+ "src",
5
+ "poster",
6
+ "fallbackSrc"
7
+ ];
4
8
  var MARKUP_ATTRIBUTES = ["content", "html"];
5
9
  var FETCHING_TYPE = "apiContainer";
6
10
  var SET_STATE_ACTION = "setState";
@@ -12,12 +12,13 @@ var RENDER_TYPE_CATEGORIES = /* @__PURE__ */ new Set([
12
12
  "form",
13
13
  "provider"
14
14
  ]);
15
+ var RENDER_EXCLUDED_TYPES = /* @__PURE__ */ new Set(["variants", "variantItem"]);
15
16
  var RENDER_RAW_HTML_TYPE = "blockHtml";
16
17
  var rawHtmlDescription = "Renders a raw HTML string (props.content) — in a widget, the way to draw an inline <svg>: a logo, an icon, a sparkline, a decorative shape. Use fill/stroke \"currentColor\" so it takes the host theme. Markup only: <script>, javascript: URLs and inline on* handlers are rejected.";
17
18
  var renderTypesNote = "The built-in element types you can put in a plitzi_render widget, grouped by category. Pick by `description`. For the props of each type and the full authoring model, read plitzi://render/guide. Types that need a backend (providers) or a plugin are omitted because the widget renders offline.";
18
19
  var renderTypes = () => {
19
20
  const types = {};
20
- for (const [name, info] of Object.entries(elementCatalog)) if (RENDER_TYPE_CATEGORIES.has(info.category)) types[name] = {
21
+ for (const [name, info] of Object.entries(elementCatalog)) if (RENDER_TYPE_CATEGORIES.has(info.category) && !RENDER_EXCLUDED_TYPES.has(name)) types[name] = {
21
22
  label: info.label,
22
23
  category: info.category,
23
24
  description: info.description
@@ -81,7 +81,7 @@ var createMcpServer = async ({ adapters, getGrant, preview, screenshot, logger,
81
81
  const getSpace = () => spacePromise ??= loadSpace();
82
82
  const server = new McpServer({
83
83
  name: "plitzi-mcp",
84
- version: "0.39.12"
84
+ version: "0.39.14"
85
85
  }, { instructions: hasSpace ? serverInstructions : widgetsOnlyInstructions });
86
86
  const { getChanges } = adapters;
87
87
  registerResources(server, getSpace, MCP_ENV, log, hasSpace, getChanges ? (query) => getChanges(requireSpaceId(), MCP_ENV, query) : void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-mcp",
3
- "version": "0.39.12",
3
+ "version": "0.39.14",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",
@@ -47,13 +47,13 @@
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/ext-apps": "^1.7.5",
49
49
  "@modelcontextprotocol/sdk": "^1.32.2",
50
- "@plitzi/plitzi-sdk": "0.39.12",
51
- "@plitzi/sdk-authoring": "0.39.12",
52
- "@plitzi/sdk-kernel": "0.39.12",
53
- "@plitzi/sdk-schema": "0.39.12",
54
- "@plitzi/sdk-server": "0.39.12",
55
- "@plitzi/sdk-shared": "0.39.12",
56
- "@plitzi/sdk-style": "0.39.12",
50
+ "@plitzi/plitzi-sdk": "0.39.14",
51
+ "@plitzi/sdk-authoring": "0.39.14",
52
+ "@plitzi/sdk-kernel": "0.39.14",
53
+ "@plitzi/sdk-schema": "0.39.14",
54
+ "@plitzi/sdk-server": "0.39.14",
55
+ "@plitzi/sdk-shared": "0.39.14",
56
+ "@plitzi/sdk-style": "0.39.14",
57
57
  "ejs": "^7.0.2",
58
58
  "esbuild": "^0.28.2",
59
59
  "zod": "^4.6.7"