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