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