@exulu/backend 1.61.2 → 1.61.3
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.
|
@@ -744,7 +744,7 @@ var ExuluTool = class {
|
|
|
744
744
|
});
|
|
745
745
|
providerapikey = resolved.apiKey;
|
|
746
746
|
}
|
|
747
|
-
const { convertExuluToolsToAiSdkTools: convertExuluToolsToAiSdkTools2 } = await import("./convert-exulu-tools-to-ai-sdk-tools-
|
|
747
|
+
const { convertExuluToolsToAiSdkTools: convertExuluToolsToAiSdkTools2 } = await import("./convert-exulu-tools-to-ai-sdk-tools-VRZ45OGI.js");
|
|
748
748
|
const tools = await convertExuluToolsToAiSdkTools2(
|
|
749
749
|
[this],
|
|
750
750
|
[],
|
|
@@ -1767,22 +1767,45 @@ var createUppyRoutes = async (app, config) => {
|
|
|
1767
1767
|
} else {
|
|
1768
1768
|
prefix += "global";
|
|
1769
1769
|
}
|
|
1770
|
+
console.log("[EXULU] bucket", config.fileUploads.s3Bucket);
|
|
1770
1771
|
console.log("[EXULU] prefix", prefix);
|
|
1771
|
-
|
|
1772
|
-
Bucket: config.fileUploads.s3Bucket,
|
|
1773
|
-
Prefix: prefix,
|
|
1774
|
-
MaxKeys: 9,
|
|
1775
|
-
...req.query.continuationToken && {
|
|
1776
|
-
ContinuationToken: req.query.continuationToken
|
|
1777
|
-
}
|
|
1778
|
-
});
|
|
1779
|
-
const response = await client.send(command);
|
|
1772
|
+
let response;
|
|
1780
1773
|
if (req.query.search) {
|
|
1781
|
-
const search = req.query.search;
|
|
1774
|
+
const search = req.query.search.toLowerCase();
|
|
1782
1775
|
console.log("[EXULU] Filtering files by search query", req.query.search);
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1776
|
+
const matched = [];
|
|
1777
|
+
let token;
|
|
1778
|
+
do {
|
|
1779
|
+
const page = await client.send(
|
|
1780
|
+
new ListObjectsV2Command({
|
|
1781
|
+
Bucket: config.fileUploads.s3Bucket,
|
|
1782
|
+
Prefix: prefix,
|
|
1783
|
+
...token && { ContinuationToken: token }
|
|
1784
|
+
})
|
|
1785
|
+
);
|
|
1786
|
+
for (const obj of page.Contents ?? []) {
|
|
1787
|
+
if (obj.Key?.toLowerCase().includes(search)) {
|
|
1788
|
+
matched.push(obj);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
token = page.IsTruncated ? page.NextContinuationToken : void 0;
|
|
1792
|
+
} while (token);
|
|
1793
|
+
response = {
|
|
1794
|
+
$metadata: {},
|
|
1795
|
+
Contents: matched,
|
|
1796
|
+
KeyCount: matched.length,
|
|
1797
|
+
IsTruncated: false
|
|
1798
|
+
};
|
|
1799
|
+
} else {
|
|
1800
|
+
const command = new ListObjectsV2Command({
|
|
1801
|
+
Bucket: config.fileUploads.s3Bucket,
|
|
1802
|
+
Prefix: prefix,
|
|
1803
|
+
MaxKeys: 9,
|
|
1804
|
+
...req.query.continuationToken && {
|
|
1805
|
+
ContinuationToken: req.query.continuationToken
|
|
1806
|
+
}
|
|
1807
|
+
});
|
|
1808
|
+
response = await client.send(command);
|
|
1786
1809
|
}
|
|
1787
1810
|
res.json({
|
|
1788
1811
|
...response,
|
package/dist/index.cjs
CHANGED
|
@@ -1847,22 +1847,45 @@ var init_uppy = __esm({
|
|
|
1847
1847
|
} else {
|
|
1848
1848
|
prefix += "global";
|
|
1849
1849
|
}
|
|
1850
|
+
console.log("[EXULU] bucket", config.fileUploads.s3Bucket);
|
|
1850
1851
|
console.log("[EXULU] prefix", prefix);
|
|
1851
|
-
|
|
1852
|
-
Bucket: config.fileUploads.s3Bucket,
|
|
1853
|
-
Prefix: prefix,
|
|
1854
|
-
MaxKeys: 9,
|
|
1855
|
-
...req.query.continuationToken && {
|
|
1856
|
-
ContinuationToken: req.query.continuationToken
|
|
1857
|
-
}
|
|
1858
|
-
});
|
|
1859
|
-
const response = await client2.send(command);
|
|
1852
|
+
let response;
|
|
1860
1853
|
if (req.query.search) {
|
|
1861
|
-
const search = req.query.search;
|
|
1854
|
+
const search = req.query.search.toLowerCase();
|
|
1862
1855
|
console.log("[EXULU] Filtering files by search query", req.query.search);
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1856
|
+
const matched = [];
|
|
1857
|
+
let token;
|
|
1858
|
+
do {
|
|
1859
|
+
const page = await client2.send(
|
|
1860
|
+
new import_client_s3.ListObjectsV2Command({
|
|
1861
|
+
Bucket: config.fileUploads.s3Bucket,
|
|
1862
|
+
Prefix: prefix,
|
|
1863
|
+
...token && { ContinuationToken: token }
|
|
1864
|
+
})
|
|
1865
|
+
);
|
|
1866
|
+
for (const obj of page.Contents ?? []) {
|
|
1867
|
+
if (obj.Key?.toLowerCase().includes(search)) {
|
|
1868
|
+
matched.push(obj);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
token = page.IsTruncated ? page.NextContinuationToken : void 0;
|
|
1872
|
+
} while (token);
|
|
1873
|
+
response = {
|
|
1874
|
+
$metadata: {},
|
|
1875
|
+
Contents: matched,
|
|
1876
|
+
KeyCount: matched.length,
|
|
1877
|
+
IsTruncated: false
|
|
1878
|
+
};
|
|
1879
|
+
} else {
|
|
1880
|
+
const command = new import_client_s3.ListObjectsV2Command({
|
|
1881
|
+
Bucket: config.fileUploads.s3Bucket,
|
|
1882
|
+
Prefix: prefix,
|
|
1883
|
+
MaxKeys: 9,
|
|
1884
|
+
...req.query.continuationToken && {
|
|
1885
|
+
ContinuationToken: req.query.continuationToken
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
response = await client2.send(command);
|
|
1866
1889
|
}
|
|
1867
1890
|
res.json({
|
|
1868
1891
|
...response,
|
|
@@ -14345,7 +14368,6 @@ ${skillsList}
|
|
|
14345
14368
|
|
|
14346
14369
|
When a tool execution is not approved by the user, do not retry it unless explicitly asked by the user. ' +
|
|
14347
14370
|
'Inform the user that the action was not performed.`;
|
|
14348
|
-
import_fs2.default.writeFileSync("system-prompt.txt", system);
|
|
14349
14371
|
console.log("[EXULU] Tools", currentTools?.map((x) => x.name));
|
|
14350
14372
|
console.log("[EXULU] Skills", currentSkills?.map((x) => x.name));
|
|
14351
14373
|
const tools = await convertExuluToolsToAiSdkTools(
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
vectorSearch,
|
|
54
54
|
waitForLiteLLMReady,
|
|
55
55
|
withRetry
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PFKAWGB6.js";
|
|
57
57
|
import {
|
|
58
58
|
findLiteLLMModel
|
|
59
59
|
} from "./chunk-ILAHW4UT.js";
|
|
@@ -6497,7 +6497,6 @@ ${skillsList}
|
|
|
6497
6497
|
|
|
6498
6498
|
When a tool execution is not approved by the user, do not retry it unless explicitly asked by the user. ' +
|
|
6499
6499
|
'Inform the user that the action was not performed.`;
|
|
6500
|
-
fs2.writeFileSync("system-prompt.txt", system);
|
|
6501
6500
|
console.log("[EXULU] Tools", currentTools?.map((x) => x.name));
|
|
6502
6501
|
console.log("[EXULU] Skills", currentSkills?.map((x) => x.name));
|
|
6503
6502
|
const tools = await convertExuluToolsToAiSdkTools(
|