@librechat/agents 3.7.1 → 3.7.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.
- package/dist/cjs/eventActor/EventActorExecutor.cjs +797 -0
- package/dist/cjs/eventActor/EventActorExecutor.cjs.map +1 -0
- package/dist/cjs/eventActor/index.cjs +1 -0
- package/dist/cjs/main.cjs +4 -0
- package/dist/cjs/tools/BashProgrammaticToolCalling.cjs +6 -1
- package/dist/cjs/tools/BashProgrammaticToolCalling.cjs.map +1 -1
- package/dist/esm/eventActor/EventActorExecutor.mjs +796 -0
- package/dist/esm/eventActor/EventActorExecutor.mjs.map +1 -0
- package/dist/esm/eventActor/index.mjs +2 -0
- package/dist/esm/main.mjs +3 -1
- package/dist/esm/tools/BashProgrammaticToolCalling.mjs +6 -1
- package/dist/esm/tools/BashProgrammaticToolCalling.mjs.map +1 -1
- package/dist/types/eventActor/EventActorExecutor.d.ts +18 -0
- package/dist/types/eventActor/index.d.ts +2 -0
- package/dist/types/eventActor/types.d.ts +193 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +68 -79
- package/src/eventActor/EventActorExecutor.ts +1499 -0
- package/src/eventActor/index.ts +32 -0
- package/src/eventActor/types.ts +250 -0
- package/src/index.ts +3 -0
- package/src/tools/BashProgrammaticToolCalling.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@librechat/agents",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3",
|
|
4
4
|
"reova": {
|
|
5
5
|
"enabled": true,
|
|
6
6
|
"endpoint": "https://telemetry.reo.dev/data"
|
|
@@ -197,82 +197,72 @@
|
|
|
197
197
|
"sort-imports:check": "node scripts/sort-imports.ts --check",
|
|
198
198
|
"start": "node dist/esm/main.js",
|
|
199
199
|
"clean": "node ./config/clean.js",
|
|
200
|
-
"script": "
|
|
200
|
+
"script": "tsx -r dotenv/config ./src/scripts/cli.ts",
|
|
201
201
|
"bun:cli": "bun -r dotenv/config ./src/scripts/cli.ts --provider 'bedrock' --name 'Jo' --location 'New York, NY'",
|
|
202
|
-
"start:cli": "
|
|
203
|
-
"content": "
|
|
204
|
-
"stream": "
|
|
205
|
-
"code_exec": "
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"thinking": "
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"bench:
|
|
220
|
-
"bench:
|
|
221
|
-
"bench:
|
|
222
|
-
"bench:provider-
|
|
223
|
-
"bench:
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"subagent": "
|
|
227
|
-
"subagent:
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"local": "
|
|
232
|
-
"local:
|
|
233
|
-
"local:
|
|
234
|
-
"local:
|
|
235
|
-
"local:
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"multi-agent-parallel": "
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"multi-agent-
|
|
252
|
-
"multi-agent-
|
|
253
|
-
"multi-agent-
|
|
254
|
-
"multi-agent-
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"test-
|
|
259
|
-
"test-thinking-handoff": "
|
|
260
|
-
"test-thinking-handoff-bedrock": "
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"test-
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"script3": "node -r dotenv/config --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/proto/example_test_anthropic.ts",
|
|
267
|
-
"script4": "node -r dotenv/config --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/cli4.ts --name 'Jo' --location 'New York, NY'",
|
|
268
|
-
"script5": "node -r dotenv/config --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/cli5.ts --name 'Jo' --location 'New York, NY'",
|
|
269
|
-
"start:standard": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/standard.ts",
|
|
270
|
-
"start:cg": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/collab.ts",
|
|
271
|
-
"start:tasks": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/tasks.ts",
|
|
272
|
-
"start:collab": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/main.ts",
|
|
273
|
-
"start:collab5": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/collab_design_v5.ts",
|
|
274
|
-
"start:dev": "node --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/main.ts",
|
|
275
|
-
"supervised": "node -r dotenv/config --loader ./tsconfig-paths-bootstrap.mjs --experimental-specifier-resolution=node ./src/scripts/supervised.ts --provider anthropic --name Jo --location \"New York, NY\"",
|
|
202
|
+
"start:cli": "tsx -r dotenv/config ./src/scripts/cli.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
203
|
+
"content": "tsx -r dotenv/config ./src/scripts/content.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
204
|
+
"stream": "tsx -r dotenv/config ./src/scripts/stream.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
205
|
+
"code_exec": "tsx -r dotenv/config ./src/scripts/code_exec.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
206
|
+
"code_exec_files": "tsx -r dotenv/config ./src/scripts/code_exec_files.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
207
|
+
"code_exec_session": "tsx -r dotenv/config ./src/scripts/code_exec_session.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
208
|
+
"code_exec_multi_session": "tsx -r dotenv/config ./src/scripts/code_exec_multi_session.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
209
|
+
"code_exec_simple": "tsx -r dotenv/config ./src/scripts/code_exec_simple.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
210
|
+
"simple": "tsx -r dotenv/config ./src/scripts/simple.ts --provider 'bedrock' --name 'Jo' --location 'New York, NY'",
|
|
211
|
+
"caching": "tsx -r dotenv/config ./src/scripts/caching.ts --name 'Jo' --location 'New York, NY'",
|
|
212
|
+
"thinking": "tsx -r dotenv/config ./src/scripts/thinking.ts --name 'Jo' --location 'New York, NY'",
|
|
213
|
+
"thinking:bedrock": "tsx -r dotenv/config ./src/scripts/thinking-bedrock.ts --name 'Jo' --location 'New York, NY'",
|
|
214
|
+
"memory": "tsx -r dotenv/config ./src/scripts/memory.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
215
|
+
"tool": "tsx --trace-warnings -r dotenv/config ./src/scripts/tools.ts --provider 'bedrock' --name 'Jo' --location 'New York, NY'",
|
|
216
|
+
"search": "tsx -r dotenv/config ./src/scripts/search.ts --provider 'bedrock' --name 'Jo' --location 'New York, NY'",
|
|
217
|
+
"tool_search": "tsx -r dotenv/config ./src/scripts/tool_search.ts",
|
|
218
|
+
"bench:cache": "tsx ./src/scripts/bench-prompt-cache.ts",
|
|
219
|
+
"bench:context-pressure": "tsx ./src/scripts/bench-context-pressure-cache.ts",
|
|
220
|
+
"bench:compaction-range": "tsx ./src/scripts/bench-compaction-range.ts",
|
|
221
|
+
"bench:provider-derivation": "tsx ./src/scripts/bench-provider-derivation.ts",
|
|
222
|
+
"bench:provider-projection": "tsx ./src/scripts/bench-provider-request-projection.ts",
|
|
223
|
+
"bench:execution-world": "tsx ./src/scripts/bench-execution-world.ts",
|
|
224
|
+
"probe:overflow": "tsx -r dotenv/config ./src/scripts/context-overflow-probe.ts",
|
|
225
|
+
"subagent": "tsx -r dotenv/config ./src/scripts/multi-agent-subagent.ts",
|
|
226
|
+
"subagent:events": "tsx -r dotenv/config ./src/scripts/subagent-event-driven-debug.ts",
|
|
227
|
+
"subagent:tools": "tsx -r dotenv/config ./src/scripts/subagent-tools-debug.ts",
|
|
228
|
+
"programmatic_exec": "tsx -r dotenv/config ./src/scripts/programmatic_exec.ts",
|
|
229
|
+
"code_exec_ptc": "tsx -r dotenv/config ./src/scripts/code_exec_ptc.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
230
|
+
"local": "tsx -r dotenv/config ./src/scripts/local_engine.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
231
|
+
"local:ptc": "tsx -r dotenv/config ./src/scripts/local_engine_ptc.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
232
|
+
"local:hooks": "tsx -r dotenv/config ./src/scripts/local_engine_hooks.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
233
|
+
"local:checkpointer": "tsx -r dotenv/config ./src/scripts/local_engine_checkpointer.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
234
|
+
"local:image": "tsx -r dotenv/config ./src/scripts/local_engine_image.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
235
|
+
"local:compile": "tsx -r dotenv/config ./src/scripts/local_engine_compile.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
236
|
+
"compare:pi": "tsx -r dotenv/config ./src/scripts/compare_pi_vs_ours.ts",
|
|
237
|
+
"session:live": "tsx -r dotenv/config ./src/scripts/session_live.ts",
|
|
238
|
+
"local:workspace": "tsx -r dotenv/config ./src/scripts/local_engine_workspace.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
239
|
+
"programmatic_exec_agent": "tsx -r dotenv/config ./src/scripts/programmatic_exec_agent.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
240
|
+
"ant_web_search": "tsx -r dotenv/config ./src/scripts/ant_web_search.ts --name 'Jo' --location 'New York, NY'",
|
|
241
|
+
"ant_web_search_edge_case": "tsx -r dotenv/config ./src/scripts/ant_web_search_edge_case.ts --name 'Jo' --location 'New York, NY'",
|
|
242
|
+
"ant_web_search_error_edge_case": "tsx -r dotenv/config ./src/scripts/ant_web_search_error_edge_case.ts --name 'Jo' --location 'New York, NY'",
|
|
243
|
+
"abort": "tsx -r dotenv/config ./src/scripts/abort.ts --provider 'openAI' --name 'Jo' --location 'New York, NY'",
|
|
244
|
+
"start:cli2": "tsx -r dotenv/config ./src/scripts/cli2.ts --provider 'anthropic' --name 'Jo' --location 'New York, NY'",
|
|
245
|
+
"multi-agent-test": "tsx -r dotenv/config ./src/scripts/multi-agent-test.ts",
|
|
246
|
+
"test-tools-before-handoff": "tsx -r dotenv/config ./src/scripts/test-tools-before-handoff.ts",
|
|
247
|
+
"multi-agent-parallel": "tsx -r dotenv/config ./src/scripts/multi-agent-parallel.ts",
|
|
248
|
+
"multi-agent-parallel-start": "tsx -r dotenv/config ./src/scripts/multi-agent-parallel-start.ts",
|
|
249
|
+
"single-agent-metadata-test": "tsx -r dotenv/config ./src/scripts/single-agent-metadata-test.ts",
|
|
250
|
+
"multi-agent-chain": "tsx -r dotenv/config ./src/scripts/multi-agent-chain.ts",
|
|
251
|
+
"multi-agent-sequence": "tsx -r dotenv/config ./src/scripts/multi-agent-sequence.ts",
|
|
252
|
+
"multi-agent-conditional": "tsx -r dotenv/config ./src/scripts/multi-agent-conditional.ts",
|
|
253
|
+
"multi-agent-subagent": "tsx -r dotenv/config ./src/scripts/multi-agent-subagent.ts",
|
|
254
|
+
"multi-agent-supervisor": "tsx -r dotenv/config ./src/scripts/multi-agent-supervisor.ts",
|
|
255
|
+
"test-handoff-preamble": "tsx -r dotenv/config ./src/scripts/test-handoff-preamble.ts",
|
|
256
|
+
"multi-agent-list-handoff": "tsx -r dotenv/config ./src/scripts/test-multi-agent-list-handoff.ts",
|
|
257
|
+
"test-parallel-agent-labeling": "tsx -r dotenv/config ./src/scripts/test-parallel-agent-labeling.ts",
|
|
258
|
+
"test-thinking-handoff": "tsx -r dotenv/config ./src/scripts/test-thinking-handoff.ts",
|
|
259
|
+
"test-thinking-handoff-bedrock": "tsx -r dotenv/config ./src/scripts/test-thinking-handoff-bedrock.ts",
|
|
260
|
+
"test-thinking-to-thinking-handoff-bedrock": "tsx -r dotenv/config ./src/scripts/test-thinking-to-thinking-handoff-bedrock.ts",
|
|
261
|
+
"multi-agent-hybrid-flow": "tsx -r dotenv/config ./src/scripts/multi-agent-hybrid-flow.ts",
|
|
262
|
+
"test-handoff-input": "tsx -r dotenv/config ./src/scripts/test-handoff-input.ts",
|
|
263
|
+
"test-custom-prompt-key": "tsx -r dotenv/config ./src/scripts/test-custom-prompt-key.ts",
|
|
264
|
+
"script4": "tsx -r dotenv/config ./src/scripts/cli4.ts --name 'Jo' --location 'New York, NY'",
|
|
265
|
+
"script5": "tsx -r dotenv/config ./src/scripts/cli5.ts --name 'Jo' --location 'New York, NY'",
|
|
276
266
|
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
277
267
|
"test:live:handoffs": "RUN_HANDOFF_LIVE_TESTS=1 NODE_OPTIONS='--experimental-vm-modules' jest src/specs/agent-handoffs.live.test.ts --runInBand",
|
|
278
268
|
"test:live:ask-user-questions": "RUN_ASK_USER_QUESTIONS_LIVE_TESTS=1 NODE_OPTIONS='--experimental-vm-modules' jest src/specs/ask-user-questions.live.test.ts --runInBand",
|
|
@@ -283,7 +273,7 @@
|
|
|
283
273
|
"lint": "eslint \"{,!(node_modules|venv)/**/}*.{js,jsx,ts,tsx}\" --fix",
|
|
284
274
|
"format": "prettier --write .",
|
|
285
275
|
"audit": "npm audit --omit=dev",
|
|
286
|
-
"label:eval": "
|
|
276
|
+
"label:eval": "tsx -r dotenv/config ./src/scripts/activity-labels/run.ts",
|
|
287
277
|
"label:rescore": "node ./src/scripts/activity-labels/rescore.cjs"
|
|
288
278
|
},
|
|
289
279
|
"overrides": {
|
|
@@ -367,11 +357,10 @@
|
|
|
367
357
|
"mongodb-memory-server-core": "^11.2.0",
|
|
368
358
|
"prettier": "^3.6.2",
|
|
369
359
|
"ts-jest": "^29.4.6",
|
|
370
|
-
"ts-node": "^10.9.2",
|
|
371
360
|
"tsc-alias": "^1.8.10",
|
|
372
|
-
"tsconfig-paths": "^4.2.0",
|
|
373
361
|
"tsdown": "^0.22.2",
|
|
374
362
|
"tslib": "^2.6.3",
|
|
363
|
+
"tsx": "^4.23.12",
|
|
375
364
|
"typescript": "^5.5.3",
|
|
376
365
|
"winston": "^3.17.0"
|
|
377
366
|
},
|