@paneui/mcp 0.0.24 → 0.0.25

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/dist/tools.js CHANGED
@@ -265,7 +265,32 @@ const upgradePaneShape = {
265
265
  .int()
266
266
  .positive()
267
267
  .optional()
268
- .describe("Target version of the SAME template. Defaults to the template head's latest version."),
268
+ .describe("Target version of the SAME template. Defaults to the template head's latest version. Mutually exclusive with `html`."),
269
+ html: z
270
+ .string()
271
+ .min(1)
272
+ .optional()
273
+ .describe("INLINE EDIT: the new HTML. The relay appends a fresh template version with this HTML and re-pins the pane to it in one call — editing an INLINE pane's HTML in place (same id/URL), no separate version step needed. Any schema you don't pass below is inherited from the pane's current version, so to change only the HTML pass only `html`. Inline panes only; a named/reusable template must go through the `template` tool (action: version) + `template_version`. Mutually exclusive with `template_version`."),
274
+ template_type: z
275
+ .string()
276
+ .optional()
277
+ .describe("Type for the `html` version. Default: html-inline."),
278
+ event_schema: z
279
+ .unknown()
280
+ .optional()
281
+ .describe("New event schema for the `html` version. Omit to inherit."),
282
+ input_schema: z
283
+ .record(z.string(), z.unknown())
284
+ .optional()
285
+ .describe("New input schema for the `html` version. Omit to inherit."),
286
+ record_schema: z
287
+ .unknown()
288
+ .optional()
289
+ .describe("New record schema for the `html` version. Omit to inherit."),
290
+ template_record_schema: z
291
+ .unknown()
292
+ .optional()
293
+ .describe("New template-level record schema for the `html` version. Omit to inherit."),
269
294
  force: z
270
295
  .boolean()
271
296
  .optional()
@@ -884,7 +909,7 @@ export const TOOLS = [
884
909
  },
885
910
  {
886
911
  name: "upgrade_pane",
887
- description: "Re-pin a LIVE pane to another version of its SAME template (POST /upgrade) — swap the HTML (design) and event/input/record schemas in place. The human keeps the same URL; no new pane is created. Use after appending a new template version with the `template` tool (action: version). By default a strict schema-compat gate refuses an upgrade that would narrow the schema (returns schema_incompatible_upgrade + details.breaks); pass force:true to apply anyway. Returns { pane_id, template_version, upgraded, breaks, compat }.",
912
+ description: "Re-pin a LIVE pane to swap its HTML (design) + event/input/record schemas in place same URL, no new pane. Two ways: (1) pass `html` to EDIT AN INLINE PANE'S HTML in one call — the relay appends a fresh version with that HTML and re-pins (schemas you omit are inherited from the current version, so to change only the HTML pass only `html`); inline panes only. (2) pass `template_version` to re-pin to a version you already appended with the `template` tool (action: version) — for named/reusable templates. By default a strict schema-compat gate refuses an upgrade that would narrow the schema (returns schema_incompatible_upgrade + details.breaks); pass force:true to apply anyway. Returns { pane_id, template_version, upgraded, breaks, compat }.",
888
913
  inputSchema: upgradePaneShape,
889
914
  annotations: {
890
915
  title: "Upgrade Pane",
@@ -898,6 +923,22 @@ export const TOOLS = [
898
923
  const opts = {};
899
924
  if (args["template_version"] !== undefined)
900
925
  opts.template_version = args["template_version"];
926
+ if (args["html"] !== undefined) {
927
+ const tpl = {
928
+ source: String(args["html"]),
929
+ };
930
+ if (args["template_type"] !== undefined)
931
+ tpl.type = String(args["template_type"]);
932
+ if (args["event_schema"] !== undefined)
933
+ tpl.event_schema = args["event_schema"];
934
+ if (args["input_schema"] !== undefined)
935
+ tpl.input_schema = args["input_schema"];
936
+ if (args["record_schema"] !== undefined)
937
+ tpl.record_schema = args["record_schema"];
938
+ if (args["template_record_schema"] !== undefined)
939
+ tpl.template_record_schema = args["template_record_schema"];
940
+ opts.template = tpl;
941
+ }
901
942
  if (args["force"])
902
943
  opts.compat = "force";
903
944
  return jsonResult(await client.upgradePane(String(args["pane_id"]), opts));
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.24";
1
+ export declare const VERSION = "0.0.25";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Single source of the package version, reported in the MCP server's
2
2
  // serverInfo. Kept in sync with package.json by the release tooling.
3
- export const VERSION = "0.0.24";
3
+ export const VERSION = "0.0.25";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paneui/mcp",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Model Context Protocol (stdio) server for Pane: lets any MCP client (Claude Desktop, Cursor, …) hand a human a rich interactive UI by URL and get structured data back.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/sdk": "^1.20.0",
53
- "@paneui/core": "^0.0.24",
53
+ "@paneui/core": "^0.0.25",
54
54
  "zod": "^4.4.3"
55
55
  },
56
56
  "devDependencies": {
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.aerolalit/pane",
4
4
  "title": "Pane",
5
5
  "description": "Hand a human a rich interactive UI by URL and get structured data back — forms, approvals, pickers, dashboards, diff review — from any MCP client.",
6
- "version": "0.0.24",
6
+ "version": "0.0.25",
7
7
  "repository": {
8
8
  "url": "https://github.com/aerolalit/paneui",
9
9
  "source": "github"
@@ -13,7 +13,7 @@
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@paneui/mcp",
16
- "version": "0.0.24",
16
+ "version": "0.0.25",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },