@talonic/mcp 0.1.96 → 0.1.97
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/CHANGELOG.md +6 -0
- package/dist/http-server.js +24 -9
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +24 -9
- package/dist/index.js.map +1 -1
- package/dist/server.js +24 -9
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -444,15 +444,30 @@ var WIDGET_DESCRIPTIONS = {
|
|
|
444
444
|
releaseDecisionTask: "Confirmation that the decision task was released back to available for another claimant.",
|
|
445
445
|
failDecisionTask: "Confirmation that the task was reported undecidable: a Human Review is raised and the app's fallback applies."
|
|
446
446
|
};
|
|
447
|
+
var CARD_TOOL_KEYS = /* @__PURE__ */ new Set([
|
|
448
|
+
"extract",
|
|
449
|
+
"ask",
|
|
450
|
+
"getAnswer",
|
|
451
|
+
"getRunResults",
|
|
452
|
+
"requestUpload",
|
|
453
|
+
"getBalance",
|
|
454
|
+
"getUsage",
|
|
455
|
+
"getPricing",
|
|
456
|
+
"saveSchema",
|
|
457
|
+
"createAccount"
|
|
458
|
+
]);
|
|
447
459
|
function widgetToolMeta(key) {
|
|
448
460
|
const uri = WIDGET_URIS[key];
|
|
449
461
|
const status3 = TOOL_INVOCATION_STATUS[key];
|
|
450
|
-
|
|
451
|
-
ui: { resourceUri: uri },
|
|
452
|
-
"openai/outputTemplate": uri,
|
|
462
|
+
const meta = {
|
|
453
463
|
"openai/toolInvocation/invoking": status3.invoking,
|
|
454
464
|
"openai/toolInvocation/invoked": status3.invoked
|
|
455
465
|
};
|
|
466
|
+
if (CARD_TOOL_KEYS.has(key)) {
|
|
467
|
+
meta["ui"] = { resourceUri: uri };
|
|
468
|
+
meta["openai/outputTemplate"] = uri;
|
|
469
|
+
}
|
|
470
|
+
return meta;
|
|
456
471
|
}
|
|
457
472
|
|
|
458
473
|
// src/widgets/shared.ts
|
|
@@ -1850,9 +1865,9 @@ var RENDER_BODY27 = `
|
|
|
1850
1865
|
var pg = payload.pagination && typeof payload.pagination === "object" ? payload.pagination : {};
|
|
1851
1866
|
if (!rows.length) { empty("No result rows yet."); return; }
|
|
1852
1867
|
function tone(s) { return s === "complete" || s === "completed" ? "good" : s === "error" ? "bad" : s === "partial" ? "warn" : "info"; }
|
|
1853
|
-
var shownCols = cols.slice(0,
|
|
1868
|
+
var shownCols = cols.slice(0, 6);
|
|
1854
1869
|
var head = '<tr><th>Document</th><th>Status</th>' + shownCols.map(function (c) { return '<th>' + esc(c.display_name || c.field_key || "") + '</th>'; }).join("") + '</tr>';
|
|
1855
|
-
var body = rows.slice(0,
|
|
1870
|
+
var body = rows.slice(0, 12).map(function (r) {
|
|
1856
1871
|
r = r && typeof r === "object" ? r : {};
|
|
1857
1872
|
var f = r.fields && typeof r.fields === "object" ? r.fields : {};
|
|
1858
1873
|
return '<tr><td class="val">' + esc(r.filename || shortId(r.document_id)) + '</td><td>' + chip(r.status, tone(r.status)) + '</td>'
|
|
@@ -1861,10 +1876,10 @@ var RENDER_BODY27 = `
|
|
|
1861
1876
|
var total = typeof pg.total === "number" ? pg.total : rows.length;
|
|
1862
1877
|
var held = typeof payload.pending_review_count === "number" ? payload.pending_review_count : 0;
|
|
1863
1878
|
var more = [];
|
|
1864
|
-
if (rows.length >
|
|
1865
|
-
if (cols.length >
|
|
1879
|
+
if (rows.length > 12) more.push("+" + (rows.length - 12) + " more rows");
|
|
1880
|
+
if (cols.length > 6) more.push("+" + (cols.length - 6) + " more columns");
|
|
1866
1881
|
root.innerHTML = ''
|
|
1867
|
-
+ '<div class="header"><div><div class="title">Run results</div><div class="subtitle">' + Math.min(rows.length,
|
|
1882
|
+
+ '<div class="header"><div><div class="title">Run results</div><div class="subtitle">' + Math.min(rows.length, 12) + ' of ' + total + ' rows' + (pg.has_more ? " \xB7 more available" : "") + '</div></div>'
|
|
1868
1883
|
+ '<div>' + chip(payload.status, payload.status === "completed" ? "good" : payload.status === "failed" ? "bad" : "info") + (held ? chip(held + " held for review", "warn") : "") + '</div></div>'
|
|
1869
1884
|
+ '<table><thead>' + head + '</thead><tbody>' + body + '</tbody></table>'
|
|
1870
1885
|
+ (more.length ? '<div class="muted small" style="margin-top:6px">' + esc(more.join(" \xB7 ")) + '</div>' : "");
|
|
@@ -8692,7 +8707,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
8692
8707
|
|
|
8693
8708
|
// package.json
|
|
8694
8709
|
var package_default = {
|
|
8695
|
-
version: "0.1.
|
|
8710
|
+
version: "0.1.97"};
|
|
8696
8711
|
|
|
8697
8712
|
// src/version.ts
|
|
8698
8713
|
var VERSION = package_default.version;
|