openloops 0.2.1 → 0.2.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.
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,21 +15,12 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
  var serper_client_exports = {};
30
20
  __export(serper_client_exports, {
31
21
  SerperClient: () => SerperClient
32
22
  });
33
23
  module.exports = __toCommonJS(serper_client_exports);
34
- var import_axios = __toESM(require("axios"));
35
24
  var import_logger = require("../../common/logger/index.js");
36
25
  var import_secret_manager = require("../../common/utils/secret-manager.js");
37
26
  class SerperClient {
@@ -48,19 +37,20 @@ class SerperClient {
48
37
  ...languageCode ? { hl: languageCode } : {},
49
38
  engine: "google"
50
39
  };
51
- const config = {
52
- method: "post",
53
- maxBodyLength: Infinity,
54
- url: "https://google.serper.dev/search",
55
- headers: {
56
- "X-API-KEY": apiKey,
57
- "Content-Type": "application/json"
58
- },
59
- data: inputData
60
- };
61
40
  try {
62
41
  this.logger.debug({ ...inputData }, "[Serper Client] Searching on internet...");
63
- const { data } = await import_axios.default.request(config);
42
+ const response = await fetch("https://google.serper.dev/search", {
43
+ method: "POST",
44
+ headers: {
45
+ "X-API-KEY": apiKey,
46
+ "Content-Type": "application/json"
47
+ },
48
+ body: JSON.stringify(inputData)
49
+ });
50
+ if (!response.ok) {
51
+ throw new Error(`Serper responded with status ${response.status}`);
52
+ }
53
+ const data = await response.json();
64
54
  this.logger.debug({ ...data }, "[Serper Client] Search results");
65
55
  return data;
66
56
  } catch (error) {
@@ -1,5 +1,4 @@
1
1
  import "../../chunk-CF3WOMB3.mjs";
2
- import axios from "axios";
3
2
  import { Logger } from "../../common/logger/index.js";
4
3
  import { secretManager } from "../../common/utils/secret-manager.js";
5
4
  class SerperClient {
@@ -16,19 +15,20 @@ class SerperClient {
16
15
  ...languageCode ? { hl: languageCode } : {},
17
16
  engine: "google"
18
17
  };
19
- const config = {
20
- method: "post",
21
- maxBodyLength: Infinity,
22
- url: "https://google.serper.dev/search",
23
- headers: {
24
- "X-API-KEY": apiKey,
25
- "Content-Type": "application/json"
26
- },
27
- data: inputData
28
- };
29
18
  try {
30
19
  this.logger.debug({ ...inputData }, "[Serper Client] Searching on internet...");
31
- const { data } = await axios.request(config);
20
+ const response = await fetch("https://google.serper.dev/search", {
21
+ method: "POST",
22
+ headers: {
23
+ "X-API-KEY": apiKey,
24
+ "Content-Type": "application/json"
25
+ },
26
+ body: JSON.stringify(inputData)
27
+ });
28
+ if (!response.ok) {
29
+ throw new Error(`Serper responded with status ${response.status}`);
30
+ }
31
+ const data = await response.json();
32
32
  this.logger.debug({ ...data }, "[Serper Client] Search results");
33
33
  return data;
34
34
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openloops",
3
- "version": "0.2.1",
4
- "description": "Framework to build AI Agents",
3
+ "version": "0.2.3",
4
+ "description": "Open source harness for AI agents: a TypeScript runtime with persistence, tools, MCP trust, approvals and autonomous jobs, where the loop is pluggable",
5
5
  "author": {
6
6
  "name": "Jose Barcos",
7
7
  "email": "jose@openloops.xyz",
@@ -96,45 +96,32 @@
96
96
  "eval:list": "ts-node --project evals/tsconfig.json evals/run.ts list"
97
97
  },
98
98
  "dependencies": {
99
- "@earendil-works/pi-ai": "^1.1.0",
100
- "@modelcontextprotocol/sdk": "^1.31.0",
101
- "@sentry/node": "^11.0.0",
102
- "axios": "^1.20.0",
99
+ "@earendil-works/pi-ai": "^1.3.0",
100
+ "@modelcontextprotocol/sdk": "^1.32.1",
101
+ "@sentry/node": "^11.8.0",
103
102
  "bcryptjs": "^3.0.3",
104
103
  "croner": "^10.0.1",
105
104
  "cryptr": "^6.4.0",
106
- "dotenv": "^18.0.3",
105
+ "dotenv": "^18.0.8",
107
106
  "iso-data": "^0.1.0",
108
107
  "jsonwebtoken": "^9.0.3",
109
108
  "langfuse": "^3.39.2",
110
- "mongodb": "^7.6.0",
111
- "pino": "^10.3.1",
112
- "pino-pretty": "^13.1.3",
109
+ "mongodb": "^7.7.0",
110
+ "pino": "^10.4.0",
111
+ "pino-pretty": "^13.2.0",
113
112
  "reflect-metadata": "^0.2.2",
114
- "sanitize-html": "^2.17.7",
113
+ "sanitize-html": "^2.18.1",
115
114
  "tsyringe": "^4.10.0"
116
115
  },
117
116
  "devDependencies": {
118
117
  "@types/jest": "^30.0.0",
119
- "@types/node": "^26.6.2",
120
- "@types/sanitize-html": "^2.16.1",
121
- "@typescript-eslint/eslint-plugin": "^8.70.1",
122
- "@typescript-eslint/parser": "^8.70.1",
123
- "eslint": "^10.11.0",
124
- "eslint-config-airbnb-base": "^15.0.0",
125
- "eslint-config-airbnb-typescript": "^18.0.0",
126
- "eslint-config-prettier": "^10.1.8",
127
- "eslint-import-resolver-typescript": "^4.4.5",
128
- "eslint-plugin-import": "^2.32.0",
129
- "eslint-plugin-jest": "^29.16.6",
130
- "eslint-plugin-prettier": "^5.5.6",
131
- "eslint-plugin-promise": "^7.3.0",
118
+ "@types/node": "^26.6.5",
119
+ "@types/sanitize-html": "^2.16.2",
132
120
  "jest": "^30.5.2",
133
- "prettier": "^3.9.9",
134
- "ts-jest": "^29.4.13",
135
- "tsc-alias": "^1.9.5",
121
+ "ts-jest": "^29.4.15",
122
+ "tsc-alias": "^1.9.7",
136
123
  "tsconfig-paths": "^4.2.0",
137
- "tsup": "^8.5.1",
124
+ "tsup": "^9.0.0",
138
125
  "typescript": "^6.0.3"
139
126
  },
140
127
  "engines": {
@@ -145,26 +132,25 @@
145
132
  "url": "git+https://github.com/jbarcosdev/openloops.git"
146
133
  },
147
134
  "keywords": [
148
- "ai-agent-framework",
135
+ "ai-agent",
136
+ "ai-agents",
137
+ "agent-harness",
138
+ "agent-framework",
149
139
  "agent-runtime",
150
140
  "agent-loop",
151
- "agent-orchestration",
141
+ "agentic",
142
+ "autonomous-agents",
143
+ "llm",
144
+ "mcp",
145
+ "model-context-protocol",
146
+ "tool-calling",
147
+ "function-calling",
148
+ "human-in-the-loop",
149
+ "guardrails",
152
150
  "typescript",
153
151
  "nodejs",
154
152
  "mongodb",
155
- "chatbot-framework",
156
- "ai-assistant",
157
- "langchain",
158
153
  "langchain-alternative",
159
- "langgraph",
160
- "langgraph-alternative",
161
- "crewai",
162
- "crewai-alternative",
163
- "openclaw",
164
- "openclaw-alternative",
165
- "hermes",
166
- "hermes-agent",
167
- "zeroclaw",
168
- "agent-marketplace"
154
+ "langgraph-alternative"
169
155
  ]
170
156
  }