engine7 7.1.30 → 7.1.32

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/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "engine7",
3
- "version": "7.1.30",
4
- "type": "module",
5
- "description": "Engine 7 — Self-hosted AI agent engine",
6
- "main": "dist/main.mjs",
7
- "bin": {
8
- "engine7": "bin/engine7"
9
- },
10
- "scripts": {
11
- "build": "node scripts/build.mjs",
12
- "start": "node dist/main.mjs"
13
- },
14
- "engines": {
15
- "node": ">=22"
16
- },
17
- "os": [
18
- "win32",
19
- "linux",
20
- "darwin"
21
- ],
22
- "cpu": [
23
- "x64",
24
- "arm64"
25
- ],
26
- "devDependencies": {
27
- "@types/node": "^22.19.19",
28
- "@types/turndown": "^5.0.6",
29
- "tsx": "^4.22.3",
30
- "typescript": "^6.0.0"
31
- },
32
- "dependencies": {
33
- "@larksuiteoapi/node-sdk": "^1.66.1",
34
- "@modelcontextprotocol/sdk": "^1.29.0",
35
- "chokidar": "^5.0.0",
36
- "croner": "^10.0.1",
37
- "discord.js": "^14.26.4",
38
- "esbuild": "^0.28.1",
39
- "qrcode-terminal": "^0.12.0",
40
- "sharp": "^0.34.5",
41
- "sqlite-vec": "^0.1.9",
42
- "turndown": "^7.2.4",
43
- "typebox": "^1.1.38"
44
- },
45
- "optionalDependencies": {
46
- "sqlite-vec-darwin-arm64": "^0.1.9",
47
- "sqlite-vec-darwin-x64": "^0.1.9",
48
- "sqlite-vec-linux-arm64": "^0.1.9",
49
- "sqlite-vec-linux-x64": "^0.1.9",
50
- "sqlite-vec-windows-x64": "^0.1.9"
51
- },
52
- "files": [
53
- "dist/**/*.mjs",
54
- "bin/**/*",
55
- "templates/**/*",
56
- "src/memory/everos/python/**/*",
57
- "README.md"
58
- ]
59
- }
1
+ {
2
+ "name": "engine7",
3
+ "version": "7.1.32",
4
+ "type": "module",
5
+ "description": "Engine 7 — Self-hosted AI agent engine",
6
+ "main": "dist/main.mjs",
7
+ "bin": {
8
+ "engine7": "bin/engine7"
9
+ },
10
+ "scripts": {
11
+ "build": "node scripts/build.mjs",
12
+ "start": "node dist/main.mjs"
13
+ },
14
+ "engines": {
15
+ "node": ">=22"
16
+ },
17
+ "os": [
18
+ "win32",
19
+ "linux",
20
+ "darwin"
21
+ ],
22
+ "cpu": [
23
+ "x64",
24
+ "arm64"
25
+ ],
26
+ "devDependencies": {
27
+ "@types/node": "^22.19.19",
28
+ "@types/turndown": "^5.0.6",
29
+ "tsx": "^4.22.3",
30
+ "typescript": "^6.0.0"
31
+ },
32
+ "dependencies": {
33
+ "@larksuiteoapi/node-sdk": "^1.66.1",
34
+ "@modelcontextprotocol/sdk": "^1.29.0",
35
+ "chokidar": "^5.0.0",
36
+ "croner": "^10.0.1",
37
+ "discord.js": "^14.26.4",
38
+ "https-proxy-agent": "^9.1.0",
39
+ "qrcode-terminal": "^0.12.0",
40
+ "sharp": "^0.34.5",
41
+ "sqlite-vec": "^0.1.9",
42
+ "turndown": "^7.2.4",
43
+ "typebox": "^1.1.38"
44
+ },
45
+ "optionalDependencies": {
46
+ "sqlite-vec-darwin-arm64": "^0.1.9",
47
+ "sqlite-vec-darwin-x64": "^0.1.9",
48
+ "sqlite-vec-linux-arm64": "^0.1.9",
49
+ "sqlite-vec-linux-x64": "^0.1.9",
50
+ "sqlite-vec-windows-x64": "^0.1.9"
51
+ },
52
+ "files": [
53
+ "dist/**/*.mjs",
54
+ "bin/**/*",
55
+ "templates/**/*",
56
+ "src/memory/everos/python/**/*",
57
+ "README.md"
58
+ ]
59
+ }
@@ -299,7 +299,12 @@ def hybrid_search(query: str, top_k: int = 20, user_id: str = None, app_id: str
299
299
  timeout=60,
300
300
  )
301
301
  dt = time.time() - t0
302
- data = r.json().get("data", {}).get("episodes", [])
302
+ if r.status_code != 200 or not r.text.strip():
303
+ return [], dt
304
+ try:
305
+ data = r.json().get("data", {}).get("episodes", [])
306
+ except Exception:
307
+ return [], dt
303
308
  episodes = [
304
309
  Episode(
305
310
  id=ep.get("id", ""),