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