@nuwax-ai/openui-mcp 0.1.7 → 0.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"page-template.d.ts","sourceRoot":"","sources":["../../src/page-template.ts"],"names":[],"mappings":"AASA,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAM,GAAG,eAAwB,GAC3C,MAAM,CAmBR"}
1
+ {"version":3,"file":"page-template.d.ts","sourceRoot":"","sources":["../../src/page-template.ts"],"names":[],"mappings":"AAWA,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAM,GAAG,eAAwB,GAC3C,MAAM,CAuBR"}
@@ -6,9 +6,14 @@ function escapeHtml(value) {
6
6
  .replaceAll('"', '"')
7
7
  .replaceAll("'", ''');
8
8
  }
9
+ const SIDECAR_ASSET_VERSION = '0.1.9';
9
10
  export function createSidecarPageHtml(artifactId, title, transport = 'path') {
10
- const stylesheetUrl = transport === 'desktop-query' ? '?openui=css' : '../assets/sidecar.css';
11
- const scriptUrl = transport === 'desktop-query' ? '?openui=js' : '../assets/sidecar.js';
11
+ const stylesheetUrl = transport === 'desktop-query'
12
+ ? `?openui=css&v=${SIDECAR_ASSET_VERSION}`
13
+ : `../assets/sidecar.css?v=${SIDECAR_ASSET_VERSION}`;
14
+ const scriptUrl = transport === 'desktop-query'
15
+ ? `?openui=js&v=${SIDECAR_ASSET_VERSION}`
16
+ : `../assets/sidecar.js?v=${SIDECAR_ASSET_VERSION}`;
12
17
  return `<!doctype html>
13
18
  <html lang="en">
14
19
  <head>
@@ -1 +1 @@
1
- {"version":3,"file":"page-template.js","sourceRoot":"","sources":["../../src/page-template.ts"],"names":[],"mappings":"AAAA,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,KAAK;SACT,UAAU,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b,SAAS,KAAK,eAAe;QAC3B,CAAC,CAAC,gBAAgB,qBAAqB,EAAE;QACzC,CAAC,CAAC,0BAA0B,qBAAqB,EAAE,CAAC;IACxD,OAAO;;;;;;aAMI,UAAU,CAAC,KAAK,CAAC;mCACK,aAAa;;;wCAGR,UAAU,CAAC,UAAU,CAAC;iCAC7B,SAAS;;QAElC,CAAC;AACT,CAAC"}
@@ -87601,7 +87601,7 @@ function xFe({ artifactId: e }) {
87601
87601
  return l && (s.search = "", s.searchParams.set("openui", "artifact"), s.searchParams.set("artifactId", e)), fetch(
87602
87602
  l ? s.toString() : `../artifacts/${encodeURIComponent(e)}`,
87603
87603
  {
87604
- credentials: "omit",
87604
+ credentials: "same-origin",
87605
87605
  signal: i.signal
87606
87606
  }
87607
87607
  ).then(async (u) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuwax-ai/openui-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "OpenUI over MCP for Nuwax, with inline and sidecar rendering contracts.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",