@talonic/mcp 0.1.47 → 0.1.48

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.
@@ -745,12 +745,24 @@ var DESCRIPTION4 = [
745
745
  "USE WHEN:",
746
746
  "- You need details about a specific document the user already extracted or uploaded.",
747
747
  "- You have a document_id from a previous extract or search call and want more context.",
748
+ "- You called talonic_request_upload and need to poll until the user has uploaded the file.",
748
749
  "- The user asks 'tell me about document X' or similar.",
749
750
  "",
750
751
  "DO NOT USE WHEN:",
751
752
  "- The user wants the document's full text content (use talonic_to_markdown for OCR markdown).",
752
753
  "- The user wants extracted structured data (use talonic_extract with a schema, or fetch the extraction by id).",
753
- "- The user has a file but no document_id yet (call talonic_extract first to ingest the document)."
754
+ "- The user has a file but no document_id yet (call talonic_extract first to ingest the document).",
755
+ "",
756
+ "STATUS VALUES on the response `status` field:",
757
+ "- pending_upload: document slot reserved via talonic_request_upload, file not yet received.",
758
+ " Keep polling (~5 s interval). Token expires after 15 min \u2014 if status stays 'pending_upload'",
759
+ " past the expires_at returned by talonic_request_upload, the user did not upload in time.",
760
+ "- queued / extracting: file received, OCR and exhaustive extraction in progress. Keep polling.",
761
+ "- completed: extraction is done. This is the state to wait for before calling talonic_extract",
762
+ " with a schema or schema_id \u2014 the schema-specific LLM pass runs off the cached OCR'd text.",
763
+ "- uploaded: file received but the extraction queue could not be enqueued (rare, e.g. Redis",
764
+ " unavailable). The talonic_extract endpoint will trigger processing inline if called.",
765
+ "- error / ocr_failed / extraction_failed: terminal failures; processing_log carries the reason."
754
766
  ].join("\n");
755
767
  var inputSchema4 = {
756
768
  document_id: z.string().min(1).describe(
@@ -1081,7 +1093,9 @@ var DESCRIPTION8 = [
1081
1093
  "plus a document_id to track the upload.",
1082
1094
  "",
1083
1095
  "After showing the URL to the user, poll with talonic_get_document until",
1084
- "status is 'uploaded', then proceed with talonic_extract using the document_id.",
1096
+ "status is 'completed' (the file has been uploaded, OCR'd, and is ready for",
1097
+ "schema-specific extraction). Then call talonic_extract with the document_id",
1098
+ "and a schema or schema_id.",
1085
1099
  "",
1086
1100
  "USE WHEN:",
1087
1101
  "- The user has a file to extract but you cannot send it via tool-call arguments",
@@ -1101,7 +1115,9 @@ var inputSchema7 = {
1101
1115
  )
1102
1116
  };
1103
1117
  var outputSchema8 = {
1104
- document_id: z.string().describe("The pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded."),
1118
+ document_id: z.string().describe(
1119
+ "The pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded."
1120
+ ),
1105
1121
  upload_url: z.string().describe("URL the user should open in their browser to drop the file."),
1106
1122
  expires_at: z.string().describe("ISO 8601 timestamp when the upload link expires.")
1107
1123
  };
@@ -1275,7 +1291,7 @@ function registerToMarkdown(server, getTalonic) {
1275
1291
 
1276
1292
  // package.json
1277
1293
  var package_default = {
1278
- version: "0.1.47"};
1294
+ version: "0.1.48"};
1279
1295
 
1280
1296
  // src/version.ts
1281
1297
  var VERSION = package_default.version;