@talonic/mcp 0.1.61 → 0.1.63

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
@@ -1186,9 +1186,13 @@ var inputSchema4 = {
1186
1186
  };
1187
1187
  var outputSchema4 = {
1188
1188
  id: z.string(),
1189
- filename: z.string().optional(),
1190
- pages: z.number().optional(),
1191
- size_bytes: z.number().optional(),
1189
+ // Freshly-uploaded / pre-extraction documents (browser-handoff polling) return
1190
+ // null for these until OCR/ingest computes them. They MUST accept null, or the
1191
+ // SDK's outputSchema validation rejects the response with -32602 and the agent
1192
+ // cannot poll talonic_get_document after talonic_request_upload.
1193
+ filename: z.string().nullable().optional(),
1194
+ pages: z.number().nullable().optional(),
1195
+ size_bytes: z.number().nullable().optional(),
1192
1196
  mime_type: z.string().nullable().optional(),
1193
1197
  type_detected: z.string().nullable().optional(),
1194
1198
  language_detected: z.string().nullable().optional(),
@@ -1211,7 +1215,7 @@ var outputSchema4 = {
1211
1215
  confidentiality_marking: z.string().nullable().optional()
1212
1216
  }).nullable().optional(),
1213
1217
  original_path: z.string().nullable().optional(),
1214
- extraction_count: z.number().optional(),
1218
+ extraction_count: z.number().nullable().optional(),
1215
1219
  latest_extraction_id: z.string().nullable().optional(),
1216
1220
  processing_log: z.array(
1217
1221
  z.object({
@@ -1757,7 +1761,7 @@ function registerToMarkdown(server, getTalonic) {
1757
1761
 
1758
1762
  // package.json
1759
1763
  var package_default = {
1760
- version: "0.1.61"};
1764
+ version: "0.1.63"};
1761
1765
 
1762
1766
  // src/version.ts
1763
1767
  var VERSION = package_default.version;