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