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