@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/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
> The publish workflow assigns the version on release; after the push that publishes it, promote this block to `## [<version>] - <date>` (the changelog lock accepts the current package version living here until then).
|
|
11
11
|
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Inline cards only for answers.** Once cards rendered in Claude (0.1.96), every tool call drew one, so a single question filled the chat with 20+ full-height cards of field lists, specs, schemas and raw SQL rows. Only ten tools now declare a card: `talonic_extract`, `talonic_ask`, `talonic_get_answer`, `talonic_get_run_results`, `talonic_request_upload`, `talonic_get_balance`, `talonic_get_usage`, `talonic_get_pricing`, `talonic_save_schema`, `talonic_create_account`. Lookups the model makes for itself show only the collapsed tool-call row. The run-results card shows 12 rows and 6 columns at most.
|
|
15
|
+
|
|
16
|
+
## [0.1.96] - 2026-11-20
|
|
17
|
+
|
|
12
18
|
### Added
|
|
13
19
|
|
|
14
20
|
- `talonic_list_apps`: the workspace's apps with id, description, mode and enabled state; supplies the `app_id` the decision-task tools need (no tool returned it before).
|
package/dist/http-server.js
CHANGED
|
@@ -460,15 +460,30 @@ var WIDGET_DESCRIPTIONS = {
|
|
|
460
460
|
releaseDecisionTask: "Confirmation that the decision task was released back to available for another claimant.",
|
|
461
461
|
failDecisionTask: "Confirmation that the task was reported undecidable: a Human Review is raised and the app's fallback applies."
|
|
462
462
|
};
|
|
463
|
+
var CARD_TOOL_KEYS = /* @__PURE__ */ new Set([
|
|
464
|
+
"extract",
|
|
465
|
+
"ask",
|
|
466
|
+
"getAnswer",
|
|
467
|
+
"getRunResults",
|
|
468
|
+
"requestUpload",
|
|
469
|
+
"getBalance",
|
|
470
|
+
"getUsage",
|
|
471
|
+
"getPricing",
|
|
472
|
+
"saveSchema",
|
|
473
|
+
"createAccount"
|
|
474
|
+
]);
|
|
463
475
|
function widgetToolMeta(key) {
|
|
464
476
|
const uri = WIDGET_URIS[key];
|
|
465
477
|
const status3 = TOOL_INVOCATION_STATUS[key];
|
|
466
|
-
|
|
467
|
-
ui: { resourceUri: uri },
|
|
468
|
-
"openai/outputTemplate": uri,
|
|
478
|
+
const meta = {
|
|
469
479
|
"openai/toolInvocation/invoking": status3.invoking,
|
|
470
480
|
"openai/toolInvocation/invoked": status3.invoked
|
|
471
481
|
};
|
|
482
|
+
if (CARD_TOOL_KEYS.has(key)) {
|
|
483
|
+
meta["ui"] = { resourceUri: uri };
|
|
484
|
+
meta["openai/outputTemplate"] = uri;
|
|
485
|
+
}
|
|
486
|
+
return meta;
|
|
472
487
|
}
|
|
473
488
|
function widgetKeyForUri(uri) {
|
|
474
489
|
for (const key of Object.keys(WIDGET_URIS)) {
|
|
@@ -1872,9 +1887,9 @@ var RENDER_BODY27 = `
|
|
|
1872
1887
|
var pg = payload.pagination && typeof payload.pagination === "object" ? payload.pagination : {};
|
|
1873
1888
|
if (!rows.length) { empty("No result rows yet."); return; }
|
|
1874
1889
|
function tone(s) { return s === "complete" || s === "completed" ? "good" : s === "error" ? "bad" : s === "partial" ? "warn" : "info"; }
|
|
1875
|
-
var shownCols = cols.slice(0,
|
|
1890
|
+
var shownCols = cols.slice(0, 6);
|
|
1876
1891
|
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>';
|
|
1877
|
-
var body = rows.slice(0,
|
|
1892
|
+
var body = rows.slice(0, 12).map(function (r) {
|
|
1878
1893
|
r = r && typeof r === "object" ? r : {};
|
|
1879
1894
|
var f = r.fields && typeof r.fields === "object" ? r.fields : {};
|
|
1880
1895
|
return '<tr><td class="val">' + esc(r.filename || shortId(r.document_id)) + '</td><td>' + chip(r.status, tone(r.status)) + '</td>'
|
|
@@ -1883,10 +1898,10 @@ var RENDER_BODY27 = `
|
|
|
1883
1898
|
var total = typeof pg.total === "number" ? pg.total : rows.length;
|
|
1884
1899
|
var held = typeof payload.pending_review_count === "number" ? payload.pending_review_count : 0;
|
|
1885
1900
|
var more = [];
|
|
1886
|
-
if (rows.length >
|
|
1887
|
-
if (cols.length >
|
|
1901
|
+
if (rows.length > 12) more.push("+" + (rows.length - 12) + " more rows");
|
|
1902
|
+
if (cols.length > 6) more.push("+" + (cols.length - 6) + " more columns");
|
|
1888
1903
|
root.innerHTML = ''
|
|
1889
|
-
+ '<div class="header"><div><div class="title">Run results</div><div class="subtitle">' + Math.min(rows.length,
|
|
1904
|
+
+ '<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>'
|
|
1890
1905
|
+ '<div>' + chip(payload.status, payload.status === "completed" ? "good" : payload.status === "failed" ? "bad" : "info") + (held ? chip(held + " held for review", "warn") : "") + '</div></div>'
|
|
1891
1906
|
+ '<table><thead>' + head + '</thead><tbody>' + body + '</tbody></table>'
|
|
1892
1907
|
+ (more.length ? '<div class="muted small" style="margin-top:6px">' + esc(more.join(" \xB7 ")) + '</div>' : "");
|
|
@@ -8642,7 +8657,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
8642
8657
|
|
|
8643
8658
|
// package.json
|
|
8644
8659
|
var package_default = {
|
|
8645
|
-
version: "0.1.
|
|
8660
|
+
version: "0.1.97"};
|
|
8646
8661
|
|
|
8647
8662
|
// src/version.ts
|
|
8648
8663
|
var VERSION = package_default.version;
|