@talonic/mcp 0.1.43 → 0.1.45

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 CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - **ChatGPT Apps SDK widget for `talonic_extract`.** New extraction-result widget (`ui://widget/extraction-result.html`, `src/widgets/`) registered as an MCP resource with MIME `text/html;profile=mcp-app`. `talonic_extract` now declares `_meta["openai/outputTemplate"]` pointing at it, so ChatGPT renders extraction results as an inline card: document metadata, extracted fields, overall + per-field confidence bars, and copy/download-JSON controls. Pure HTML+CSS+vanilla-JS embedded as a string — no bundler, no new runtime dependencies. Render-only; no secrets cross into the iframe (asserted by tests). Other MCP clients (Claude.ai, Claude Desktop, Cursor, Cline, Continue, Cowork) ignore the widget resource and `outputTemplate` hint — no behavior change for them.
13
+ - **Tool-annotation regression test** (`tests/widgets/tool-annotations.test.ts`) locking the Apps-SDK-required hint contract: five pure-lookup tools are `readOnlyHint: true`; `extract`, `save_schema`, and `to_markdown` are `readOnlyHint: false`. (`to_markdown` is intentionally not read-only — its file-input path ingests a document via extract, uploading and consuming credits.)
14
+ - **`dataType` field on `talonic_search`'s outputSchema** for both `fieldMatches[]` and `fields[]` (`src/tools/search.ts`). Mirrors the API change shipped in platform commits `c16f2656` + `0689c1b2` (2026-05-19) that added `dataType` to the omnisearch response. The MCP outputSchema previously did not declare it, so Zod's default strip mode would have dropped the field from `structuredContent`. Field is `z.string().nullable().optional()` — accepts real values like `"string"`, `"number"`, `"array"`, plus `null` for non-materialized informational entries, plus absent for older deploys.
15
+
16
+ ### Changed
17
+
18
+ - `talonic_filter` SCHEMA TYPING block restructured into a **preventive / reactive** pair: agents should now call `talonic_search` first and gate numeric operators (`gt`/`gte`/`lt`/`lte`/`between`) on `field.dataType === "number"` before constructing the filter, with the API's `warnings[]` array remaining the reactive safety net. Closes the schema-typing footgun end-to-end (option 1 was reactive only; option 2 adds the preventive surface).
19
+
10
20
  ## [0.1.38] - 2026-05-18
11
21
 
12
22
  ### Added
package/dist/content.d.ts CHANGED
@@ -111,7 +111,7 @@ interface RawSection {
111
111
  mentions: string[];
112
112
  }
113
113
 
114
- /** MCP documentation navigation structure — consumed by website docs renderer */
114
+ /** MCP documentation navigation — synced to website */
115
115
  declare const MCP_NAV_SECTIONS: NavSection[];
116
116
 
117
117
  /** Get a single MCP section by slug, or null if not found. */