@talonic/mcp 0.1.56 → 0.1.58

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
@@ -150,18 +150,22 @@ var BASE_CSS = `
150
150
  }
151
151
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
152
152
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif; }
153
- .root { padding: 16px; }
154
- .empty { color: var(--muted); padding: 24px; text-align: center; }
153
+ .root { padding: 20px; box-sizing: border-box; }
154
+ * { box-sizing: border-box; }
155
+ .empty { color: var(--muted); padding: 28px; text-align: center; }
155
156
  .muted { color: var(--muted); }
156
157
  .small { font-size: 12px; }
157
- .header { display: flex; align-items: center; justify-content: space-between;
158
- gap: 12px; margin-bottom: 12px; }
158
+ .header { display: flex; align-items: flex-start; justify-content: space-between;
159
+ gap: 12px; margin-bottom: 16px; }
159
160
  .title { font-weight: 600; }
160
161
  .subtitle { color: var(--muted); font-size: 12px; }
161
162
  table { width: 100%; border-collapse: collapse; margin-top: 8px; }
162
- th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border);
163
+ th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
163
164
  vertical-align: top; font-size: 13px; }
164
165
  th { color: var(--muted); font-weight: 500; font-size: 12px; }
166
+ th:first-child, td:first-child { padding-left: 0; }
167
+ th:last-child, td:last-child { padding-right: 0; }
168
+ tr:last-child td { border-bottom: none; }
165
169
  .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
166
170
  .val { font-variant-numeric: tabular-nums; word-break: break-word; }
167
171
  .bar { display: inline-block; width: 60px; height: 6px; background: var(--border);
@@ -178,10 +182,14 @@ var BASE_CSS = `
178
182
  .chip { display: inline-block; background: var(--chip); border-radius: 999px;
179
183
  padding: 1px 8px; font-size: 12px; margin: 2px 4px 2px 0; }
180
184
  .big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
181
- .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; }
182
- .kv { display: flex; justify-content: space-between; gap: 12px;
183
- border-bottom: 1px solid var(--border); padding: 6px 0; }
185
+ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
186
+ gap: 10px; margin-top: 14px; }
187
+ /* Stat tile: label stacked above value, padded, never crowding an edge. */
188
+ .kv { display: flex; flex-direction: column; gap: 3px;
189
+ background: var(--chip); border: 1px solid var(--border); border-radius: 8px;
190
+ padding: 10px 12px; min-width: 0; }
184
191
  .kv .k { color: var(--muted); font-size: 12px; }
192
+ .kv .val { font-weight: 500; }
185
193
  pre.md { background: var(--chip); border: 1px solid var(--border); border-radius: 8px;
186
194
  padding: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap;
187
195
  word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -234,7 +242,9 @@ var BOOTSTRAP_JS = `
234
242
  renderFromHost();
235
243
  }, { passive: true });
236
244
  window.addEventListener("message", function (event) {
245
+ if (event.source !== window.parent) return;
237
246
  var msg = event.data;
247
+ if (!msg || msg.jsonrpc !== "2.0") return;
238
248
  if (!msg || msg.method !== "ui/notifications/tool-result") return;
239
249
  var sc = msg.params && msg.params.structuredContent;
240
250
  if (sc) { window.openai = window.openai || {}; window.openai.toolOutput = sc; renderFromHost(); }
@@ -901,6 +911,7 @@ function registerExtract(server, getTalonic) {
901
911
  openWorldHint: true
902
912
  },
903
913
  _meta: {
914
+ ui: { resourceUri: EXTRACTION_RESULT_WIDGET_URI },
904
915
  "openai/outputTemplate": EXTRACTION_RESULT_WIDGET_URI
905
916
  }
906
917
  },
@@ -1050,9 +1061,11 @@ function registerFilter(server, getTalonic) {
1050
1061
  annotations: {
1051
1062
  title: "Filter Talonic Documents",
1052
1063
  readOnlyHint: true,
1053
- openWorldHint: true
1064
+ destructiveHint: false,
1065
+ openWorldHint: false
1054
1066
  },
1055
1067
  _meta: {
1068
+ ui: { resourceUri: WIDGET_URIS.filter },
1056
1069
  "openai/outputTemplate": WIDGET_URIS.filter
1057
1070
  }
1058
1071
  },
@@ -1117,9 +1130,11 @@ function registerGetBalance(server, getTalonic) {
1117
1130
  annotations: {
1118
1131
  title: "Get Talonic Credit Balance",
1119
1132
  readOnlyHint: true,
1120
- openWorldHint: true
1133
+ destructiveHint: false,
1134
+ openWorldHint: false
1121
1135
  },
1122
1136
  _meta: {
1137
+ ui: { resourceUri: WIDGET_URIS.getBalance },
1123
1138
  "openai/outputTemplate": WIDGET_URIS.getBalance
1124
1139
  }
1125
1140
  },
@@ -1225,9 +1240,11 @@ function registerGetDocument(server, getTalonic) {
1225
1240
  annotations: {
1226
1241
  title: "Get Talonic Document",
1227
1242
  readOnlyHint: true,
1228
- openWorldHint: true
1243
+ destructiveHint: false,
1244
+ openWorldHint: false
1229
1245
  },
1230
1246
  _meta: {
1247
+ ui: { resourceUri: WIDGET_URIS.getDocument },
1231
1248
  "openai/outputTemplate": WIDGET_URIS.getDocument
1232
1249
  }
1233
1250
  },
@@ -1311,9 +1328,11 @@ function registerListSchemas(server, getTalonic) {
1311
1328
  annotations: {
1312
1329
  title: "List Talonic Schemas",
1313
1330
  readOnlyHint: true,
1314
- openWorldHint: true
1331
+ destructiveHint: false,
1332
+ openWorldHint: false
1315
1333
  },
1316
1334
  _meta: {
1335
+ ui: { resourceUri: WIDGET_URIS.listSchemas },
1317
1336
  "openai/outputTemplate": WIDGET_URIS.listSchemas
1318
1337
  }
1319
1338
  },
@@ -1390,9 +1409,10 @@ function registerSaveSchema(server, getTalonic) {
1390
1409
  title: "Save Talonic Schema",
1391
1410
  readOnlyHint: false,
1392
1411
  destructiveHint: false,
1393
- openWorldHint: true
1412
+ openWorldHint: false
1394
1413
  },
1395
1414
  _meta: {
1415
+ ui: { resourceUri: WIDGET_URIS.saveSchema },
1396
1416
  "openai/outputTemplate": WIDGET_URIS.saveSchema
1397
1417
  }
1398
1418
  },
@@ -1491,9 +1511,11 @@ function registerSearch(server, getTalonic) {
1491
1511
  annotations: {
1492
1512
  title: "Search Talonic Workspace",
1493
1513
  readOnlyHint: true,
1494
- openWorldHint: true
1514
+ destructiveHint: false,
1515
+ openWorldHint: false
1495
1516
  },
1496
1517
  _meta: {
1518
+ ui: { resourceUri: WIDGET_URIS.search },
1497
1519
  "openai/outputTemplate": WIDGET_URIS.search
1498
1520
  }
1499
1521
  },
@@ -1587,9 +1609,11 @@ function registerRequestUpload(server, getToken, baseUrl) {
1587
1609
  annotations: {
1588
1610
  title: "Request File Upload",
1589
1611
  readOnlyHint: false,
1590
- openWorldHint: true
1612
+ destructiveHint: false,
1613
+ openWorldHint: false
1591
1614
  },
1592
1615
  _meta: {
1616
+ ui: { resourceUri: WIDGET_URIS.requestUpload },
1593
1617
  "openai/outputTemplate": WIDGET_URIS.requestUpload
1594
1618
  }
1595
1619
  },
@@ -1714,6 +1738,7 @@ function registerToMarkdown(server, getTalonic) {
1714
1738
  openWorldHint: true
1715
1739
  },
1716
1740
  _meta: {
1741
+ ui: { resourceUri: WIDGET_URIS.toMarkdown },
1717
1742
  "openai/outputTemplate": WIDGET_URIS.toMarkdown
1718
1743
  }
1719
1744
  },
@@ -1723,7 +1748,7 @@ function registerToMarkdown(server, getTalonic) {
1723
1748
 
1724
1749
  // package.json
1725
1750
  var package_default = {
1726
- version: "0.1.56"};
1751
+ version: "0.1.58"};
1727
1752
 
1728
1753
  // src/version.ts
1729
1754
  var VERSION = package_default.version;