LibreChat/packages/api/src/agents
Danny Avila 53ee82fe5d
🩹 fix: Coerce Stringified edit_file Edits (JSON-in-JSON) (#14056)
Models sometimes pass edit_file's `edits` as a JSON-encoded string
(or stringify individual edit entries) instead of a real array. That
failed validation with "Provide old_text and new_text, or a non-empty
edits array" and forced a full retry round-trip.

normalizeEditArgs now JSON-parses a stringified `edits` value (and
stringified entries) before validating. Non-strings and unparseable
strings are left untouched, so the existing explicit errors still fire.
2026-07-01 12:41:26 -04:00
..
__tests__ 🫷 feat: Exclude File Authoring Tools From Eager Execution (#14051) 2026-07-01 11:07:30 -04:00
hitl 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
openai 🪭 feat: Add opt-in Langfuse fanout gateway + collector (#13872) 2026-06-26 11:26:39 -04:00
responses 📄 feat: Rich File Artifact Previews for DOCX, CSV, XLSX, PPTX (#12934) 2026-05-05 12:06:10 +09:00
added.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
attachments.test.ts 🗂️ fix: Scope Handoff Agent Context Docs (#13167) 2026-05-18 15:36:22 -04:00
attachments.ts 🗂️ fix: Scope Handoff Agent Context Docs (#13167) 2026-05-18 15:36:22 -04:00
auth.ts 🧵 refactor: Migrate Endpoint Initialization to TypeScript (#10794) 2025-12-11 16:37:16 -05:00
avatars.spec.ts 🪣 fix: Serve Fresh Presigned URLs on Agent List Cache Hits (#11902) 2026-02-22 18:29:31 -05:00
avatars.ts 🪣 fix: Serve Fresh Presigned URLs on Agent List Cache Hits (#11902) 2026-02-22 18:29:31 -05:00
chain.ts ️ refactor: Migrate @librechat/api build to tsdown (#13595) 2026-06-08 10:54:48 -04:00
checkpointer.integration.spec.ts 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
checkpointer.spec.ts 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
checkpointer.ts 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
cleanup.spec.ts 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
cleanup.ts 🗂️ refactor: Clarify Code Sandbox File Guidance (#13236) 2026-05-21 21:13:06 -04:00
client.spec.ts 🖇️ feat: Reference Selected Chat Text with Multi-Quote Popup (#13868) 2026-06-21 08:33:11 -04:00
client.ts 🖇️ feat: Reference Selected Chat Text with Multi-Quote Popup (#13868) 2026-06-21 08:33:11 -04:00
codeFilesSession.spec.ts 🧱 refactor: typed CodeEnvRef + kind discriminator + principal-aware sandbox cache (#12960) 2026-05-08 12:29:43 -04:00
codeFilesSession.ts 🧱 refactor: typed CodeEnvRef + kind discriminator + principal-aware sandbox cache (#12960) 2026-05-08 12:29:43 -04:00
config.spec.ts 🔁 fix: Pass recursionLimit to OpenAI-Compatible Agents API Endpoint (#12510) 2026-04-01 21:13:07 -04:00
config.ts 🔁 fix: Pass recursionLimit to OpenAI-Compatible Agents API Endpoint (#12510) 2026-04-01 21:13:07 -04:00
contact.spec.ts 📇 feat: Agent Contact Visibility with Owner Fallback (#13663) 2026-06-25 15:58:15 -04:00
contact.ts 📇 feat: Agent Contact Visibility with Owner Fallback (#13663) 2026-06-25 15:58:15 -04:00
context.spec.ts 🧬 chore: Align LibreChat With Agents LangChain Upgrade (#12922) 2026-05-03 12:46:01 -04:00
context.ts 🧬 chore: Align LibreChat With Agents LangChain Upgrade (#12922) 2026-05-03 12:46:01 -04:00
discovery.spec.ts 🧰 refactor: Unify code-execution tools (#12767) 2026-04-25 04:02:01 -04:00
discovery.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
edges.spec.ts 🤝 fix: Load Handoff Agents for Agents API (#12740) 2026-04-20 02:20:43 -04:00
edges.ts 🤝 fix: Load Handoff Agents for Agents API (#12740) 2026-04-20 02:20:43 -04:00
handlers.spec.ts 🩹 fix: Coerce Stringified edit_file Edits (JSON-in-JSON) (#14056) 2026-07-01 12:41:26 -04:00
handlers.ts 🩹 fix: Coerce Stringified edit_file Edits (JSON-in-JSON) (#14056) 2026-07-01 12:41:26 -04:00
index.ts 🪝 feat: Human-in-the-Loop Runtime - Tool Approval + Ask-User-Question (Slice B) (#13942) 2026-06-29 16:56:41 -04:00
initialize.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
legacy.test.ts
legacy.ts
load.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
memory.spec.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
memory.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
migration.ts 🗑️ chore: Remove Deprecated Project Model and Associated Fields (#11773) 2026-03-21 14:28:53 -04:00
orphans.spec.ts 🧹 fix: Clean Up Orphaned Agent File Stubs After Deletion (#12781) 2026-04-22 11:35:48 -07:00
orphans.ts 🧹 fix: Clean Up Orphaned Agent File Stubs After Deletion (#12781) 2026-04-22 11:35:48 -07:00
resources.test.ts 🗂️ fix: Scope Handoff Agent Context Docs (#13167) 2026-05-18 15:36:22 -04:00
resources.ts 🗂️ fix: Scope Handoff Agent Context Docs (#13167) 2026-05-18 15:36:22 -04:00
run.spec.ts 🧠 feat: Configurable Reasoning Replay for Custom Endpoints (#13921) 2026-06-23 21:08:47 -04:00
run.ts 🫷 feat: Exclude File Authoring Tools From Eager Execution (#14051) 2026-07-01 11:07:30 -04:00
skillConfigurable.spec.ts 🗂️ feat: Add Agent File Authoring Tools (#13435) 2026-06-03 23:58:12 -04:00
skillConfigurable.ts 🗂️ feat: Add Agent File Authoring Tools (#13435) 2026-06-03 23:58:12 -04:00
skillFiles.spec.ts 📂 fix: Mount Skill Files Under skills/ in Code Interpreter (#13961) (#13975) 2026-06-26 12:22:06 -04:00
skillFiles.ts 📂 fix: Mount Skill Files Under skills/ in Code Interpreter (#13961) (#13975) 2026-06-26 12:22:06 -04:00
skills.ts 📂 fix: Mount Skill Files Under skills/ in Code Interpreter (#13961) (#13975) 2026-06-26 12:22:06 -04:00
testHook.ts 🎭 test: Run Mock E2E Suite Through createRun With In-Process Fake Model (#13508) 2026-06-04 08:33:28 -04:00
tools.spec.ts 🦜 refactor: Use path for Read/Write/Edit/Create File Tools (#13834) 2026-06-18 14:44:51 -04:00
tools.ts 🦜 refactor: Use path for Read/Write/Edit/Create File Tools (#13834) 2026-06-18 14:44:51 -04:00
transactions.bulk-parity.spec.ts 🧭 fix: Migrate Anthropic Long Context (#12911) 2026-05-02 22:14:19 +09:00
transactions.spec.ts 🧮 refactor: Bulk Transactions & Balance Updates for Token Spending (#11996) 2026-03-01 12:26:36 -05:00
transactions.ts 🪢 chore: Consolidate Pricing and Tx Imports After tx.js Module Removal (#12086) 2026-03-21 14:28:53 -04:00
usage.bulk-parity.spec.ts 🩹 fix: Bill Anthropic Prompt-Cache Tokens Once (#13798) 2026-06-16 14:28:48 -04:00
usage.spec.ts 🩹 fix: Bill Anthropic Prompt-Cache Tokens Once (#13798) 2026-06-16 14:28:48 -04:00
usage.ts 🩹 fix: Bill Anthropic Prompt-Cache Tokens Once (#13798) 2026-06-16 14:28:48 -04:00
validation.spec.ts 🪆 feat: Subagent configuration in Agent Builder (#12725) 2026-04-25 04:02:01 -04:00
validation.ts ️ refactor: Migrate @librechat/api build to tsdown (#13595) 2026-06-08 10:54:48 -04:00