@talonic/mcp 0.1.48 → 0.1.49

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.
@@ -779,18 +779,22 @@ var outputSchema4 = {
779
779
  language_detected: z.string().nullable().optional(),
780
780
  status: z.string().optional(),
781
781
  source: z.object({
782
- id: z.string().optional(),
783
- type: z.string().optional()
784
- }).optional(),
782
+ // Pre-extraction documents (e.g. fresh browser-handoff uploads) return
783
+ // null for these until the source linkage is set during ingest. Accept
784
+ // null so output validation does not block agents polling for status.
785
+ id: z.string().nullable().optional(),
786
+ type: z.string().nullable().optional()
787
+ }).nullable().optional(),
785
788
  triage: z.object({
786
- sensitivity: z.string().optional(),
787
- department: z.string().optional(),
789
+ // Triage fields are populated during ingest; null is normal before that.
790
+ sensitivity: z.string().nullable().optional(),
791
+ department: z.string().nullable().optional(),
788
792
  jurisdiction: z.string().nullable().optional(),
789
- pii_detected: z.boolean().optional(),
793
+ pii_detected: z.boolean().nullable().optional(),
790
794
  pii_categories: z.array(z.string()).nullable().optional(),
791
- regulated_data: z.boolean().optional(),
795
+ regulated_data: z.boolean().nullable().optional(),
792
796
  confidentiality_marking: z.string().nullable().optional()
793
- }).optional(),
797
+ }).nullable().optional(),
794
798
  original_path: z.string().nullable().optional(),
795
799
  extraction_count: z.number().optional(),
796
800
  latest_extraction_id: z.string().nullable().optional(),
@@ -1097,6 +1101,13 @@ var DESCRIPTION8 = [
1097
1101
  "schema-specific extraction). Then call talonic_extract with the document_id",
1098
1102
  "and a schema or schema_id.",
1099
1103
  "",
1104
+ "IMPORTANT: a user message like 'uploaded', 'done', or 'I dropped it' only",
1105
+ "confirms the browser-side upload finished. It is NOT a signal that server-side",
1106
+ "processing is complete. The document still needs OCR and exhaustive extraction",
1107
+ "(typically 10-30 s after the browser upload). You MUST poll talonic_get_document",
1108
+ "yourself until status is 'completed' regardless of what the user says. Calling",
1109
+ "talonic_extract before status is 'completed' may return errors.",
1110
+ "",
1100
1111
  "USE WHEN:",
1101
1112
  "- The user has a file to extract but you cannot send it via tool-call arguments",
1102
1113
  " (e.g., file is larger than ~32KB, or the environment blocks outbound data).",
@@ -1291,7 +1302,7 @@ function registerToMarkdown(server, getTalonic) {
1291
1302
 
1292
1303
  // package.json
1293
1304
  var package_default = {
1294
- version: "0.1.48"};
1305
+ version: "0.1.49"};
1295
1306
 
1296
1307
  // src/version.ts
1297
1308
  var VERSION = package_default.version;