@juspay/neurolink 12.30.2 → 12.31.1

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.
@@ -3960,7 +3960,7 @@
3960
3960
  {"objectID":"534fbec3fbb29aa94fe464858c0906946aa7d909f9fa82dd2cc4c1f8d6821027","title":"Spans not being sent to Langfuse","url":"/docs/features/observability#spans-not-being-sent-to-langfuse","content":"Problem: Traces don't appear in Langfuse dashboard.\n\nSolution:\nVerify credentials are correct\nCheck health status:\nEnsure is called before process exit\nCheck network connectivity to Langfuse endpoint","hierarchy":{"lvl0":"Features","lvl1":"Observability Guide","lvl2":"Spans not being sent to Langfuse","lvl3":""}},
3961
3961
  {"objectID":"bc1755900c005626bd213860a41c0169833cf8288e799f4cb83e4ee499aa9396","title":"API Reference","url":"/docs/features/observability#api-reference","content":"The following functions and types are exported from :\n\nFunctions:\n- Set context for Langfuse traces\n- Get current Langfuse context\n- Get OpenTelemetry tracer instance\n- Get span processors for external TracerProvider integration\n\nTypes:\n- Configuration options for Langfuse integration\n- GenAI semantic convention attributes","hierarchy":{"lvl0":"Features","lvl1":"Observability Guide","lvl2":"API Reference","lvl3":""}},
3962
3962
  {"objectID":"9a2c99612604332f4b2bc32fb673fe19412249aba74ad41f2ed2cfd84a8d1185","title":"See Also","url":"/docs/features/observability#see-also","content":"Telemetry Guide - OpenTelemetry setup with Jaeger\nEnterprise Monitoring - Prometheus and Grafana setup\nAnalytics Reference - Token and cost tracking","hierarchy":{"lvl0":"Features","lvl1":"Observability Guide","lvl2":"See Also","lvl3":""}},
3963
- {"objectID":"1b22ff57a6c6e2525e50e02118d6029f5ee3779ef701e9fde1b7b97d1a782760","title":"Office Documents Support","url":"/docs/features/office-documents","content":"Office Documents Support\n\nNeuroLink provides seamless Office document support as a multimodal input type - attach DOCX, PPTX, and XLSX documents directly to your AI prompts for document analysis, data extraction, and content processing.\n\nOverview\n\nOffice document support in NeuroLink works as a native multimodal input - the system automatically processes Office files and passes them to the AI provider's document understanding capabilities. The system:\nValidates Office files using magic byte detection and format verification\nChecks provider compatibility (Bedrock, Vertex AI, Anthropic)\nVerifies file size limits per provider\nPasses documents directly to the provider's native document API\nWorks with providers that support native Office document processing\n\nKey Difference from PDF: Similar to PDF files, Office documents are sent as binary documents to providers with native document support. This enables analysis of formatted text, tables, charts, and embedded content within Office files.\n\nSupported File Types\n\n| Format | Extension | MIME Type | Description |\n| --------------------- | --------- | --------------------------------------------------------------------------- | -------------------------------------------------- |\n| Word Document | | | Microsoft Word documents with text, images, tables |\n| PowerPoint | | | Presentations with slides, charts, images |\n| Excel Spreadsheet | | | Spreadsheets with data, formulas, charts |\n\nLegacy Formats:\n\n| Format | Extension | MIME Type | Support |\n| -------------- | --------- | -------------------------- | ------------------ |\n| Word (Legacy) | | | Provider-dependent |\n| Excel (Legacy) | | | Provider-dependent |\n\nQuick Start\n\nSDK Usage\n\nCLI Usage\n\nAPI Reference\n\nGenerateOptions\n\nStreamOptions\n\nOfficeProcessorOptions\n\nFile Input Formats\n\nProvider Support\n\nSupported Providers\n\n| Provider | Max Size | DOCX | PPTX | XLSX | DOC | XLS | Notes |\n| -------------------- | -------- | ---- | ---- | ---- | --- | --- | ------------------------------------ |\n| AWS Bedrock | 5 MB | ✅ | ✅ | ✅ | ✅ | ✅ | Full native support via Converse API |\n| Google Vertex AI | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Best for DOCX and XLSX |\n| Anthropic Claude | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Via document API |\n\nUnsupported Providers\n\nThe following providers do not currently support native Office document processing:\nOpenAI (GPT-4o)\nGoogle AI Studio\nAzure OpenAI\nOllama (local models)\nLiteLLM\nMistral AI\nHugging Face\n\nError Message for Unsupported Providers:\n\nProvider-Specific Features\n\nAWS Bedrock (Recommended)\n\nBedrock offers the most comprehensive Office document support via the Converse API:\n\nSupported Document Formats in Bedrock Converse API:\nOffice formats: , , , \nOther formats: , , , , \n\nGoogle Vertex AI\n\nAnthropic Claude\n\nFeatures\nAuto-Detection\n\nUse the array for automatic file type detection:\nMultiple Document Types\n\nProcess multiple Office documents in a single request:\nMixed Multimodal Inputs\n\nCombine Office documents with other file types:\n\nType Definitions\n\nOfficeFileType\n\nOfficeProcessingResult\n\nOfficeProviderConfig\n\nError Handling\n\nError Types\n\nError Handling Patterns\n\nMetadata Fields\n\nWhen processing Office documents, the following metadata is available:\n\n| Field | Type | Description |\n| ------------------- | ---------------- | -------------------------------- |\n| | | Detection confidence (0-100) |\n| | | File size in bytes |\n| | | Original filename |\n| | | Detected Office format |\n| | | Provider used for processing |\n| | | Estimated page/slide/sheet count |\n| | | Whether document contains images |\n| | | Whether document contains charts |\n\nAccessing Metadata\n\nBest Practices\nChoose the Right Provider\nOptimize File Size\nUse Streaming for Large Documents\nBe Specific in Your Prompts\n\nLimitations\n\nFile Format Requirements\nMust be valid Office Open XML format (, , )\nMust be within provider size limits (typically 5MB)\nMust not be password-protected or encrypted\nLegacy formats (, , ) have limited support\n\nProvider Limitations\n\n| Limitation | Description | Workaround |\n| ------------------- | --------------------------- | --------------------------------------- |\n| Size limits | Most providers limit to 5MB | Split large documents or convert to PDF |\n| Password protection | Not supported | Remove password before processing |\n| Macros | VBA macros are ignored ","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"","lvl3":""}},
3963
+ {"objectID":"1b22ff57a6c6e2525e50e02118d6029f5ee3779ef701e9fde1b7b97d1a782760","title":"Office Documents Support","url":"/docs/features/office-documents","content":"Office Documents Support\n\nNeuroLink provides seamless Office document support as a multimodal input type - attach DOCX, PPTX, and XLSX documents directly to your AI prompts for document analysis, data extraction, and content processing.\n\nOverview\n\nOffice document support in NeuroLink works as a native multimodal input - the system automatically processes Office files and passes them to the AI provider's document understanding capabilities. The system:\nValidates Office files using magic byte detection and format verification\nChecks provider compatibility (Bedrock, Vertex AI, Anthropic)\nVerifies file size limits per provider\nPasses documents directly to the provider's native document API\nWorks with providers that support native Office document processing\n\nKey Difference from PDF: Similar to PDF files, Office documents are sent as binary documents to providers with native document support. This enables analysis of formatted text, tables, charts, and embedded content within Office files.\n\nSupported File Types\n\n| Format | Extension | MIME Type | Description |\n| --------------------- | --------- | --------------------------------------------------------------------------- | -------------------------------------------------- |\n| Word Document | | | Microsoft Word documents with text, images, tables |\n| PowerPoint | | | Presentations with slides, charts, images |\n| Excel Spreadsheet | | | Spreadsheets with data, formulas, charts |\n\nLegacy Formats:\n\n| Format | Extension | MIME Type | Support |\n| -------------- | --------- | -------------------------- | ------------------ |\n| Word (Legacy) | | | Provider-dependent |\n| Excel (Legacy) | | | Provider-dependent |\n\nQuick Start\n\nSDK Usage\n\nCLI Usage\n\nAPI Reference\n\nGenerateOptions\n\nStreamOptions\n\nOfficeProcessorOptions\n\nOnly and are read by the XLSX pipeline today; the\nother fields are declared but not yet consumed.\n\nDOCX structure and metrics\n\nA is converted to Markdown before it reaches the model, so headings,\nordered and unordered lists, and tables survive as structure rather than being\nflattened into prose. Each document is prefixed with a metrics line:\n\nThis needs no configuration and applies to every provider, because the\nconversion happens while the prompt is built rather than in a provider adapter.\n\nSelecting and formatting spreadsheet data\n\nNaming a sheet that does not exist does not silently fall back to every sheet —\nthe prompt reports the miss and lists the available sheet names.\n\nFile Input Formats\n\nProvider Support\n\nSupported Providers\n\n| Provider | Max Size | DOCX | PPTX | XLSX | DOC | XLS | Notes |\n| -------------------- | -------- | ---- | ---- | ---- | --- | --- | ------------------------------------ |\n| AWS Bedrock | 5 MB | ✅ | ✅ | ✅ | ✅ | ✅ | Full native support via Converse API |\n| Google Vertex AI | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Best for DOCX and XLSX |\n| Anthropic Claude | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Via document API |\n\nUnsupported Providers\n\nThe following providers do not currently support native Office document processing:\nOpenAI (GPT-4o)\nGoogle AI Studio\nAzure OpenAI\nOllama (local models)\nLiteLLM\nMistral AI\nHugging Face\n\nError Message for Unsupported Providers:\n\nProvider-Specific Features\n\nAWS Bedrock (Recommended)\n\nBedrock offers the most comprehensive Office document support via the Converse API:\n\nSupported Document Formats in Bedrock Converse API:\nOffice formats: , , , \nOther formats: , , , , \n\nGoogle Vertex AI\n\nAnthropic Claude\n\nFeatures\nAuto-Detection\n\nUse the array for automatic file type detection:\nMultiple Document Types\n\nProcess multiple Office documents in a single request:\nMixed Multimodal Inputs\n\nCombine Office documents with other file types:\n\nType Definitions\n\nOfficeFileType\n\nOfficeProcessingResult\n\nOfficeProviderConfig\n\nError Handling\n\nError Types\n\nError Handling Patterns\n\nMetadata Fields\n\nWhen processing Office documents, the following metadata is available:\n\n| Field | Type | Description |\n| ------------------- | ---------------- | -------------------------------- |\n| | | Detection confidence (0-100) |\n| | | File size in bytes |\n| | | Original filename |\n| | | Detected Office format |\n| | | Provider used for processing |\n| | | Estimated page/slide/sheet count |\n| | | Whether document contains images |\n| | | Whether document contains charts |\n\nAccessing Metadata\n\nBest Practices\nChoose the Right Provider\nOptimize File Size\nUse Streaming for Large Documents\nBe Specific in ","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"","lvl3":""}},
3964
3964
  {"objectID":"20c3155d2c1f39db07b8ffb72304d589cb601d27d43fb6f6f81ec8e83b5af4f2","title":"Office Documents Support","url":"/docs/features/office-documents#office-documents-support","content":"NeuroLink provides seamless Office document support as a multimodal input type - attach DOCX, PPTX, and XLSX documents directly to your AI prompts for document analysis, data extraction, and content processing.","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Office Documents Support","lvl3":""}},
3965
3965
  {"objectID":"89922c3be7ba989417dd4f9aa76cf3c0497898b83d430c80f5809846a01ebcab","title":"Overview","url":"/docs/features/office-documents#overview","content":"Office document support in NeuroLink works as a native multimodal input - the system automatically processes Office files and passes them to the AI provider's document understanding capabilities. The system:\nValidates Office files using magic byte detection and format verification\nChecks provider compatibility (Bedrock, Vertex AI, Anthropic)\nVerifies file size limits per provider\nPasses documents directly to the provider's native document API\nWorks with providers that support native Office document processing\n\nKey Difference from PDF: Similar to PDF files, Office documents are sent as binary documents to providers with native document support. This enables analysis of formatted text, tables, charts, and embedded content within Office files.","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Overview","lvl3":""}},
3966
3966
  {"objectID":"0b9f9e62a508886292fe189b77c320798552f0b7ac01939ef46d03f3b78126a3","title":"Supported File Types","url":"/docs/features/office-documents#supported-file-types","content":"| Format | Extension | MIME Type | Description |\n| --------------------- | --------- | --------------------------------------------------------------------------- | -------------------------------------------------- |\n| Word Document | | | Microsoft Word documents with text, images, tables |\n| PowerPoint | | | Presentations with slides, charts, images |\n| Excel Spreadsheet | | | Spreadsheets with data, formulas, charts |\n\nLegacy Formats:\n\n| Format | Extension | MIME Type | Support |\n| -------------- | --------- | -------------------------- | ------------------ |\n| Word (Legacy) | | | Provider-dependent |\n| Excel (Legacy) | | | Provider-dependent |","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Supported File Types","lvl3":""}},
@@ -3972,6 +3972,10 @@
3972
3972
  {"objectID":"f2a3292cd8b2c1e4fd2b00bc931836682736f6e8f99e379912f3d570c7791916","title":"Auto-detect file types","url":"/docs/features/office-documents#auto-detect-file-types","content":"neurolink generate \"Analyze all documents\" --file report.docx --file data.xlsx --provider bedrock","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Auto-detect file types","lvl3":""}},
3973
3973
  {"objectID":"771290e410b0a74d826c5973de02a9a3064fa2b66543b83163fd06fc2be7b37d","title":"Stream mode with Office documents","url":"/docs/features/office-documents#stream-mode-with-office-documents","content":"neurolink stream \"Explain this document in detail\" --file document.docx --provider bedrock","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Stream mode with Office documents","lvl3":""}},
3974
3974
  {"objectID":"52189df50a2aa3edc4c43df6d16b7390207ec0b8eaca625c0b90a45190f6f45c","title":"attachments are only available on generate and stream.","url":"/docs/features/office-documents#attachments-are-only-available-on-generate-and-stream","content":"`","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"attachments are only available on generate and stream.","lvl3":""}},
3975
+ {"objectID":"beeb0b5e0c628bc0390e7579cc89c3dcb929894cffeb7a04bb8df96f6c8beb50","title":"OfficeProcessorOptions","url":"/docs/features/office-documents#officeprocessoroptions","content":"Only and are read by the XLSX pipeline today; the\nother fields are declared but not yet consumed.","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"OfficeProcessorOptions","lvl3":""}},
3976
+ {"objectID":"67803d753a4af41df778c73ea9d4f3055339e3e9c2eaa77b082e5b95d0b5bff3","title":"DOCX structure and metrics","url":"/docs/features/office-documents#docx-structure-and-metrics","content":"A is converted to Markdown before it reaches the model, so headings,\nordered and unordered lists, and tables survive as structure rather than being\nflattened into prose. Each document is prefixed with a metrics line:\n\n`\nDocument: 42 words, 9 paragraphs, 268 characters","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"DOCX structure and metrics","lvl3":""}},
3977
+ {"objectID":"e58480b8b9a182fd718393f62b8c0beaeb759f7d39ba9ca286a122ab959c66f1","title":"Adoption","url":"/docs/features/office-documents#adoption","content":"Merchant onboarding automated\nSettlement latency reduced\n\n| Region | Merchants | Volume |\n| --- | --- | --- |\n| APAC | 128 | 44200 |\n`\n\nThis needs no configuration and applies to every provider, because the\nconversion happens while the prompt is built rather than in a provider adapter.","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Adoption","lvl3":""}},
3978
+ {"objectID":"4db4bf0a8dc60ff49e53fb0ea30ad888573cf4b2fc31a8664bd6fab88bb05235","title":"Selecting and formatting spreadsheet data","url":"/docs/features/office-documents#selecting-and-formatting-spreadsheet-data","content":"Naming a sheet that does not exist does not silently fall back to every sheet —\nthe prompt reports the miss and lists the available sheet names.","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Selecting and formatting spreadsheet data","lvl3":""}},
3975
3979
  {"objectID":"12b894726ee0b402bad0c3fd17ca5de929c1c2402385ae027effd650cc104429","title":"Supported Providers","url":"/docs/features/office-documents#supported-providers","content":"| Provider | Max Size | DOCX | PPTX | XLSX | DOC | XLS | Notes |\n| -------------------- | -------- | ---- | ---- | ---- | --- | --- | ------------------------------------ |\n| AWS Bedrock | 5 MB | ✅ | ✅ | ✅ | ✅ | ✅ | Full native support via Converse API |\n| Google Vertex AI | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Best for DOCX and XLSX |\n| Anthropic Claude | 5 MB | ✅ | ⚠️ | ✅ | ⚠️ | ⚠️ | Via document API |","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Supported Providers","lvl3":""}},
3976
3980
  {"objectID":"05fac2c6f487c6f16a0adbb2535b4675b18732ba064cf3febdcc1539df29e9d8","title":"Unsupported Providers","url":"/docs/features/office-documents#unsupported-providers","content":"The following providers do not currently support native Office document processing:\nOpenAI (GPT-4o)\nGoogle AI Studio\nAzure OpenAI\nOllama (local models)\nLiteLLM\nMistral AI\nHugging Face\n\nError Message for Unsupported Providers:","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"Unsupported Providers","lvl3":""}},
3977
3981
  {"objectID":"abafed9b3d4d95d62c55f7c337d36384f6ae83e392f8c5640e412a4478ca8d3f","title":"AWS Bedrock (Recommended)","url":"/docs/features/office-documents#aws-bedrock-recommended","content":"Bedrock offers the most comprehensive Office document support via the Converse API:\n\nSupported Document Formats in Bedrock Converse API:\nOffice formats: , , , \nOther formats: , , , ,","hierarchy":{"lvl0":"Features","lvl1":"Office Documents Support","lvl2":"AWS Bedrock (Recommended)","lvl3":""}},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "12.30.2",
3
+ "version": "12.31.1",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002/call) for routing, tool selection and context budgeting. MCP-native (4 transports), voice TTS/STT/realtime, RAG, agents, memory, compaction, 9 observability exporters. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · TypeSafe Jev and more.",
6
6
  "author": {
@@ -255,6 +255,7 @@
255
255
  "test:mcp-result-cache": "pnpm exec tsx test/continuous-test-suite-mcp-result-cache.ts",
256
256
  "test:mcp-breaker-resolved-errors": "pnpm exec tsx test/continuous-test-suite-mcp-breaker-resolved-errors.ts",
257
257
  "test:archive:security": "pnpm exec tsx test/continuous-test-suite-archive-security.ts",
258
+ "test:office": "pnpm exec tsx test/continuous-test-suite-office.ts",
258
259
  "test:office:security": "pnpm exec tsx test/continuous-test-suite-office-security.ts",
259
260
  "test:vision-image-format": "pnpm exec tsx test/continuous-test-suite-vision-image-format.ts",
260
261
  "test:image-exif": "pnpm exec tsx test/continuous-test-suite-image-exif.ts",