LibreChat/api/server/controllers/agents/__tests__
Danny Avila 34e2ea9319 🏗️ refactor: Move provisioning into the TypeScript workspace
The provisioning service and its ON_TOOL_EXECUTE callback were 600 lines of
implementation under /api, which the workspace rules reserve for thin wrappers,
so none of it was type checked despite its TypeScript callers.

Both now live in packages/api. Storage strategies, vector upload, credential
lookup, and the file model are api-workspace concerns, so they are injected
rather than imported, and what remains on the JS side is 31 lines of wiring. The
service is built on first use for the same reason its axios instance is: this
module is reachable from the OpenAI-compatible controllers, whose suites
partially mock the package, and a load-time call would throw before any
provisioning is requested.

Tests move with the logic and improve in the process: they now exercise the real
service with injected fakes instead of mocking the package that contains it.
2026-08-31 15:20:54 -04:00
..
askUserQuestion.e2e.spec.js
callbacks.spec.js 🗿 feat: Add Attached Stateful Code Environments (#15352) 2026-08-30 15:38:45 -04:00
client.contextMetadata.spec.js
client.eventActorPause.spec.js 🤖 feat: make Event Actor HITL durable (#15305) 2026-08-28 08:05:11 -04:00
client.memory.spec.js
client.steerWiring.spec.js 🍵 feat: Continue Late Steers in Warm Agent Runs (#15357) 2026-08-30 11:54:17 -04:00
client.subagentUsage.spec.js 🧵 feat: Persist View-Only Subagent Threads (#14957) 2026-08-18 07:41:42 -04:00
client.transactions.spec.js 🧾 fix: Honor Disabled Transactions on the Token-Count Fallback Path (#14774) 2026-08-12 22:31:13 -04:00
hitlCheckpoint.e2e.spec.js
jobReplacement.spec.js
modelEndHandler.spec.js 🧾 fix: Report Complete Agents API Usage (#15127) 2026-08-23 02:37:09 -04:00
openai.spec.js 🏗️ refactor: Move provisioning into the TypeScript workspace 2026-08-31 15:20:54 -04:00
protocol.spec.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
request.partialDisconnect.spec.js 🍵 feat: Continue Late Steers in Warm Agent Runs (#15357) 2026-08-30 11:54:17 -04:00
request.resumeMetadata.spec.js 🍵 feat: Continue Late Steers in Warm Agent Runs (#15357) 2026-08-30 11:54:17 -04:00
responses.unit.spec.js 🏗️ refactor: Move provisioning into the TypeScript workspace 2026-08-31 15:20:54 -04:00
resume.spec.js 🍵 feat: Continue Late Steers in Warm Agent Runs (#15357) 2026-08-30 11:54:17 -04:00
steer.spec.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
usageEvents.integration.spec.js
usageEvents.live.spec.js
v1.duplicate-actions.spec.js
v1.spec.js 🕸️ feat: Run Saved Agent Teams as Subagents (#14944) 2026-08-17 18:02:52 -04:00