@exulu/backend 3.7.3 → 4.0.0

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.
Files changed (41) hide show
  1. package/dist/{chunk-T6JVFT7L.js → chunk-QMN6MVHQ.js} +6 -1
  2. package/dist/{chunk-BNTL6LYY.js → chunk-RBEWHG7I.js} +404 -59
  3. package/dist/cli/start-whisper.js +1 -1
  4. package/dist/{convert-exulu-tools-to-ai-sdk-tools-UQSLJDXE.js → convert-exulu-tools-to-ai-sdk-tools-6RU4IZMI.js} +1 -1
  5. package/dist/index.cjs +957 -474
  6. package/dist/index.d.cts +3 -6
  7. package/dist/index.d.ts +3 -6
  8. package/dist/index.js +258 -182
  9. package/dist/python-setup-DRJ3QX5F.js +17 -0
  10. package/ee/LICENSE.md +2 -2
  11. package/ee/agentic-retrieval/pipeline/config.test.ts +18 -1
  12. package/ee/agentic-retrieval/pipeline/config.ts +15 -0
  13. package/ee/agentic-retrieval/pipeline/index.test.ts +73 -0
  14. package/ee/agentic-retrieval/pipeline/index.ts +67 -13
  15. package/ee/agentic-retrieval/pipeline/memory.test.ts +59 -0
  16. package/ee/agentic-retrieval/pipeline/memory.ts +181 -11
  17. package/ee/agentic-retrieval/pipeline/pin-rerun.test.ts +17 -0
  18. package/ee/agentic-retrieval/pipeline/pin-rerun.ts +29 -0
  19. package/ee/agentic-retrieval/pipeline/routing.test.ts +34 -0
  20. package/ee/agentic-retrieval/pipeline/routing.ts +96 -5
  21. package/ee/agentic-retrieval/pipeline/search.ts +9 -6
  22. package/ee/agentic-retrieval/pipeline/timing.test.ts +24 -0
  23. package/ee/agentic-retrieval/pipeline/timing.ts +26 -0
  24. package/ee/agentic-retrieval/pipeline/types.ts +2 -0
  25. package/ee/invoke-skills/artifact-filter.test.ts +49 -0
  26. package/ee/invoke-skills/artifact-filter.ts +38 -0
  27. package/ee/invoke-skills/create-sandbox.ts +56 -4
  28. package/ee/python/documents/processing/README.md +2 -3
  29. package/ee/python/documents/processing/doc_processor.ts +21 -61
  30. package/ee/python/documents/processing/split_pdf.py +25 -30
  31. package/ee/python/documents/processing/tests/__init__.py +0 -0
  32. package/ee/python/documents/processing/tests/test_split_pdf.py +230 -0
  33. package/ee/python/requirements.txt +17 -2
  34. package/ee/python/setup.sh +40 -1
  35. package/ee/python/transcription/pipeline.py +109 -15
  36. package/ee/python/transcription/tests/test_align_model_licensing.py +184 -0
  37. package/ee/workers.ts +2 -7
  38. package/license.md +2 -2
  39. package/package.json +3 -4
  40. package/scripts/postinstall.cjs +52 -1
  41. package/ee/python/documents/processing/document_to_markdown.py +0 -413
@@ -39,6 +39,10 @@ function getSetupScriptPath(packageRoot) {
39
39
  function getVenvPath(packageRoot) {
40
40
  return resolve(packageRoot, "ee/python/.venv");
41
41
  }
42
+ function getPythonVenvPath(packageRoot) {
43
+ const root = packageRoot ?? getPackageRoot();
44
+ return isPythonEnvironmentSetup(root) ? getVenvPath(root) : void 0;
45
+ }
42
46
  function isPythonEnvironmentSetup(packageRoot) {
43
47
  const root = packageRoot ?? getPackageRoot();
44
48
  const venvPath = getVenvPath(root);
@@ -167,7 +171,7 @@ async function validatePythonEnvironment(packageRoot, checkPackages = true) {
167
171
  };
168
172
  }
169
173
  if (checkPackages) {
170
- const criticalPackages = ["docling", "transformers"];
174
+ const criticalPackages = ["pypdf", "transformers"];
171
175
  const missingPackages = [];
172
176
  for (const pkg of criticalPackages) {
173
177
  try {
@@ -205,6 +209,7 @@ Or manually run the setup script:
205
209
 
206
210
  export {
207
211
  getPackageRoot,
212
+ getPythonVenvPath,
208
213
  isPythonEnvironmentSetup,
209
214
  setupPythonEnvironment,
210
215
  getPythonSetupInstructions,