@talonic/mcp 0.1.57 → 0.1.59

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/index.js CHANGED
@@ -240,7 +240,9 @@ var BOOTSTRAP_JS = `
240
240
  renderFromHost();
241
241
  }, { passive: true });
242
242
  window.addEventListener("message", function (event) {
243
+ if (event.source !== window.parent) return;
243
244
  var msg = event.data;
245
+ if (!msg || msg.jsonrpc !== "2.0") return;
244
246
  if (!msg || msg.method !== "ui/notifications/tool-result") return;
245
247
  var sc = msg.params && msg.params.structuredContent;
246
248
  if (sc) { window.openai = window.openai || {}; window.openai.toolOutput = sc; renderFromHost(); }
@@ -907,6 +909,7 @@ function registerExtract(server, getTalonic) {
907
909
  openWorldHint: true
908
910
  },
909
911
  _meta: {
912
+ ui: { resourceUri: EXTRACTION_RESULT_WIDGET_URI },
910
913
  "openai/outputTemplate": EXTRACTION_RESULT_WIDGET_URI
911
914
  }
912
915
  },
@@ -1056,9 +1059,11 @@ function registerFilter(server, getTalonic) {
1056
1059
  annotations: {
1057
1060
  title: "Filter Talonic Documents",
1058
1061
  readOnlyHint: true,
1059
- openWorldHint: true
1062
+ destructiveHint: false,
1063
+ openWorldHint: false
1060
1064
  },
1061
1065
  _meta: {
1066
+ ui: { resourceUri: WIDGET_URIS.filter },
1062
1067
  "openai/outputTemplate": WIDGET_URIS.filter
1063
1068
  }
1064
1069
  },
@@ -1123,9 +1128,11 @@ function registerGetBalance(server, getTalonic) {
1123
1128
  annotations: {
1124
1129
  title: "Get Talonic Credit Balance",
1125
1130
  readOnlyHint: true,
1126
- openWorldHint: true
1131
+ destructiveHint: false,
1132
+ openWorldHint: false
1127
1133
  },
1128
1134
  _meta: {
1135
+ ui: { resourceUri: WIDGET_URIS.getBalance },
1129
1136
  "openai/outputTemplate": WIDGET_URIS.getBalance
1130
1137
  }
1131
1138
  },
@@ -1231,9 +1238,11 @@ function registerGetDocument(server, getTalonic) {
1231
1238
  annotations: {
1232
1239
  title: "Get Talonic Document",
1233
1240
  readOnlyHint: true,
1234
- openWorldHint: true
1241
+ destructiveHint: false,
1242
+ openWorldHint: false
1235
1243
  },
1236
1244
  _meta: {
1245
+ ui: { resourceUri: WIDGET_URIS.getDocument },
1237
1246
  "openai/outputTemplate": WIDGET_URIS.getDocument
1238
1247
  }
1239
1248
  },
@@ -1317,9 +1326,11 @@ function registerListSchemas(server, getTalonic) {
1317
1326
  annotations: {
1318
1327
  title: "List Talonic Schemas",
1319
1328
  readOnlyHint: true,
1320
- openWorldHint: true
1329
+ destructiveHint: false,
1330
+ openWorldHint: false
1321
1331
  },
1322
1332
  _meta: {
1333
+ ui: { resourceUri: WIDGET_URIS.listSchemas },
1323
1334
  "openai/outputTemplate": WIDGET_URIS.listSchemas
1324
1335
  }
1325
1336
  },
@@ -1396,9 +1407,10 @@ function registerSaveSchema(server, getTalonic) {
1396
1407
  title: "Save Talonic Schema",
1397
1408
  readOnlyHint: false,
1398
1409
  destructiveHint: false,
1399
- openWorldHint: true
1410
+ openWorldHint: false
1400
1411
  },
1401
1412
  _meta: {
1413
+ ui: { resourceUri: WIDGET_URIS.saveSchema },
1402
1414
  "openai/outputTemplate": WIDGET_URIS.saveSchema
1403
1415
  }
1404
1416
  },
@@ -1497,9 +1509,11 @@ function registerSearch(server, getTalonic) {
1497
1509
  annotations: {
1498
1510
  title: "Search Talonic Workspace",
1499
1511
  readOnlyHint: true,
1500
- openWorldHint: true
1512
+ destructiveHint: false,
1513
+ openWorldHint: false
1501
1514
  },
1502
1515
  _meta: {
1516
+ ui: { resourceUri: WIDGET_URIS.search },
1503
1517
  "openai/outputTemplate": WIDGET_URIS.search
1504
1518
  }
1505
1519
  },
@@ -1593,9 +1607,11 @@ function registerRequestUpload(server, getToken, baseUrl) {
1593
1607
  annotations: {
1594
1608
  title: "Request File Upload",
1595
1609
  readOnlyHint: false,
1596
- openWorldHint: true
1610
+ destructiveHint: false,
1611
+ openWorldHint: false
1597
1612
  },
1598
1613
  _meta: {
1614
+ ui: { resourceUri: WIDGET_URIS.requestUpload },
1599
1615
  "openai/outputTemplate": WIDGET_URIS.requestUpload
1600
1616
  }
1601
1617
  },
@@ -1720,6 +1736,7 @@ function registerToMarkdown(server, getTalonic) {
1720
1736
  openWorldHint: true
1721
1737
  },
1722
1738
  _meta: {
1739
+ ui: { resourceUri: WIDGET_URIS.toMarkdown },
1723
1740
  "openai/outputTemplate": WIDGET_URIS.toMarkdown
1724
1741
  }
1725
1742
  },
@@ -1729,7 +1746,7 @@ function registerToMarkdown(server, getTalonic) {
1729
1746
 
1730
1747
  // package.json
1731
1748
  var package_default = {
1732
- version: "0.1.57"};
1749
+ version: "0.1.59"};
1733
1750
 
1734
1751
  // src/version.ts
1735
1752
  var VERSION = package_default.version;