@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.
- package/dist/{chunk-T6JVFT7L.js → chunk-QMN6MVHQ.js} +6 -1
- package/dist/{chunk-BNTL6LYY.js → chunk-RBEWHG7I.js} +404 -59
- package/dist/cli/start-whisper.js +1 -1
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-UQSLJDXE.js → convert-exulu-tools-to-ai-sdk-tools-6RU4IZMI.js} +1 -1
- package/dist/index.cjs +957 -474
- package/dist/index.d.cts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +258 -182
- package/dist/python-setup-DRJ3QX5F.js +17 -0
- package/ee/LICENSE.md +2 -2
- package/ee/agentic-retrieval/pipeline/config.test.ts +18 -1
- package/ee/agentic-retrieval/pipeline/config.ts +15 -0
- package/ee/agentic-retrieval/pipeline/index.test.ts +73 -0
- package/ee/agentic-retrieval/pipeline/index.ts +67 -13
- package/ee/agentic-retrieval/pipeline/memory.test.ts +59 -0
- package/ee/agentic-retrieval/pipeline/memory.ts +181 -11
- package/ee/agentic-retrieval/pipeline/pin-rerun.test.ts +17 -0
- package/ee/agentic-retrieval/pipeline/pin-rerun.ts +29 -0
- package/ee/agentic-retrieval/pipeline/routing.test.ts +34 -0
- package/ee/agentic-retrieval/pipeline/routing.ts +96 -5
- package/ee/agentic-retrieval/pipeline/search.ts +9 -6
- package/ee/agentic-retrieval/pipeline/timing.test.ts +24 -0
- package/ee/agentic-retrieval/pipeline/timing.ts +26 -0
- package/ee/agentic-retrieval/pipeline/types.ts +2 -0
- package/ee/invoke-skills/artifact-filter.test.ts +49 -0
- package/ee/invoke-skills/artifact-filter.ts +38 -0
- package/ee/invoke-skills/create-sandbox.ts +56 -4
- package/ee/python/documents/processing/README.md +2 -3
- package/ee/python/documents/processing/doc_processor.ts +21 -61
- package/ee/python/documents/processing/split_pdf.py +25 -30
- package/ee/python/documents/processing/tests/__init__.py +0 -0
- package/ee/python/documents/processing/tests/test_split_pdf.py +230 -0
- package/ee/python/requirements.txt +17 -2
- package/ee/python/setup.sh +40 -1
- package/ee/python/transcription/pipeline.py +109 -15
- package/ee/python/transcription/tests/test_align_model_licensing.py +184 -0
- package/ee/workers.ts +2 -7
- package/license.md +2 -2
- package/package.json +3 -4
- package/scripts/postinstall.cjs +52 -1
- 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 = ["
|
|
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,
|