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