[PR #520] [MERGED] chore(quickjs): rename to REPLMiddleware and adjust defaults #533

Closed
opened 2026-06-05 17:23:35 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/520
Author: @colifran
Created: 5/4/2026
Status: Merged
Merged: 5/4/2026
Merged by: @colifran

Base: mainHead: colifran/repl


📝 Commits (5)

📊 Changes

9 files changed (+116 additions, -88 deletions)

View changed files

.changeset/slick-moose-serve.md (+5 -0)
📝 examples/repl/data-analysis-agent.ts (+3 -3)
📝 examples/repl/rlm-agent.ts (+5 -5)
📝 libs/providers/quickjs/src/index.ts (+3 -3)
📝 libs/providers/quickjs/src/middleware.int.test.ts (+15 -15)
📝 libs/providers/quickjs/src/middleware.test.ts (+22 -22)
📝 libs/providers/quickjs/src/middleware.ts (+37 -32)
📝 libs/providers/quickjs/src/session.ts (+7 -4)
📝 libs/providers/quickjs/src/types.ts (+19 -4)

📄 Description

Summary

  • Rename createQuickJSMiddlewarecreateREPLMiddleware and QuickJSMiddlewareOptionsREPLMiddlewareOptions to match the Python REPLMiddleware naming
  • Rename middleware registration from "QuickJSMiddleware""REPLMiddleware"
  • Rename default tool name from "js_eval""eval", now configurable via toolName option
  • Add captureConsole option (default true) to toggle console output capture
  • Align default memory limit to 64 MiB (was 50 MiB) and timeout to 5s (was 30s) to match Python

Tests

  • All 156 existing unit tests pass with updated references
  • Updated middleware.test.ts, middleware.int.test.ts, and example files to use new names

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/520 **Author:** [@colifran](https://github.com/colifran) **Created:** 5/4/2026 **Status:** ✅ Merged **Merged:** 5/4/2026 **Merged by:** [@colifran](https://github.com/colifran) **Base:** `main` ← **Head:** `colifran/repl` --- ### 📝 Commits (5) - [`46806f8`](https://github.com/langchain-ai/deepagentsjs/commit/46806f8a18e4953efc26a9a13541c50025e7643a) align quickjs middleware with python - [`2dcbb76`](https://github.com/langchain-ai/deepagentsjs/commit/2dcbb7682ec95fcdfea44ef53bab3a44adb1173d) changeset - [`6b2e32e`](https://github.com/langchain-ai/deepagentsjs/commit/6b2e32eb6833693bba6b9070761dc2123c27e507) Update .changeset/slick-moose-serve.md - [`a10afb4`](https://github.com/langchain-ai/deepagentsjs/commit/a10afb4b461a6afd5a795c0d8f0ccdc1effd5931) update prompt - [`d2e6a27`](https://github.com/langchain-ai/deepagentsjs/commit/d2e6a277d368fb9c425998164c13566097c7b9b0) prompt update ### 📊 Changes **9 files changed** (+116 additions, -88 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/slick-moose-serve.md` (+5 -0) 📝 `examples/repl/data-analysis-agent.ts` (+3 -3) 📝 `examples/repl/rlm-agent.ts` (+5 -5) 📝 `libs/providers/quickjs/src/index.ts` (+3 -3) 📝 `libs/providers/quickjs/src/middleware.int.test.ts` (+15 -15) 📝 `libs/providers/quickjs/src/middleware.test.ts` (+22 -22) 📝 `libs/providers/quickjs/src/middleware.ts` (+37 -32) 📝 `libs/providers/quickjs/src/session.ts` (+7 -4) 📝 `libs/providers/quickjs/src/types.ts` (+19 -4) </details> ### 📄 Description ### Summary - Rename `createQuickJSMiddleware` → `createREPLMiddleware` and `QuickJSMiddlewareOptions` → `REPLMiddlewareOptions` to match the Python `REPLMiddleware` naming - Rename middleware registration from `"QuickJSMiddleware"` → `"REPLMiddleware"` - Rename default tool name from `"js_eval"` → `"eval"`, now configurable via `toolName` option - Add `captureConsole` option (default `true`) to toggle console output capture - Align default memory limit to 64 MiB (was 50 MiB) and timeout to 5s (was 30s) to match Python ### Tests - All 156 existing unit tests pass with updated references - Updated `middleware.test.ts`, `middleware.int.test.ts`, and example files to use new names --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:35 -04:00
yindo closed this issue 2026-06-05 17:23:35 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#533