mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 15:02:02 +00:00
* feat: add run-scoped file sharing for subagents Delegate current-message files through authorized execution catalogs and publish selected immutable code-output versions through the existing file pipeline. Requires the companion agents SDK context adapter before the dependency can be released and pinned. * fix: preserve child tool artifacts and verify file-sharing lifecycle Keep citations and other non-sandbox artifacts on their existing delivery path while retaining private code outputs and inspected images until publication. Cover native and text delivery, nested and sibling authorization, concurrent runs, cancellation cleanup, and checkpoint recovery through the browser harness. * test: align file-sharing fixtures and integration cleanup * test: repair LibreOffice conversion fixtures * test: verify deployment skill bytes across checkout formats * fix: align subagent file budgets and refresh boundaries * chore: update agents SDK to 3.8.6 * refactor: move code output processing into API workspace * fix: enforce shared file budgets for parents and teams * fix: declare the shared file encoder interface
315 lines
10 KiB
YAML
315 lines
10 KiB
YAML
# Credential-free e2e config template. e2e/playwright.config.mock.ts copies this
|
|
# to an ignored runtime path; the in-process fake model (e2e/setup/fake-model.js)
|
|
# overrides each run, so the placeholder baseURL below is never contacted.
|
|
version: 1.3.11
|
|
cache: true
|
|
|
|
interface:
|
|
# Exercises the cost row in the context usage gauge (off by default).
|
|
# Mock models price at the default rate, so synthetic usage yields a value.
|
|
contextCost: true
|
|
# Grants MULTI_CONVO.USE so the composer's `+` command opens the added-model
|
|
# popover. agent-skills-added.spec.ts drives that flow; without an explicit
|
|
# value the permission falls through to the seeded role default and
|
|
# `handlePlusCommand` returns before opening the popover.
|
|
multiConvo: true
|
|
# Scheduled chats are EXPERIMENTAL and default-off, so the e2e harness must opt in
|
|
# explicitly before schedule writes and fires are accepted.
|
|
# minIntervalMinutes is lowered so the spec can create a schedule without waiting
|
|
# out the production 60-minute floor.
|
|
schedules:
|
|
use: true
|
|
minIntervalMinutes: 1
|
|
|
|
# Enables the memory feature so the MEMORIES.USE permission is granted and the
|
|
# ephemeral memory badge (inline set_memory/delete_memory tools) is available.
|
|
# memory.spec.ts toggles it via the tools dropdown.
|
|
memory:
|
|
personalize: true
|
|
tokenLimit: 10000
|
|
|
|
mcpSettings:
|
|
# Deliberately excludes 127.0.0.1, so the URL-based `e2e-http` server below is blocked
|
|
# at boot (stored as inspectionFailed). mcp-allowlist-override.spec.ts adds that origin
|
|
# via an admin-panel config override and asserts the server reinitializes — proving the
|
|
# admin override is honored by inspection/connection. stdio servers skip this check.
|
|
allowedDomains:
|
|
- https://allowed.example.com
|
|
- http://127.0.0.1:8767
|
|
# __E2E_DYNAMIC_MCP_ALLOWED_DOMAIN__
|
|
|
|
actions:
|
|
allowedDomains:
|
|
- example.com
|
|
|
|
mcpServers:
|
|
e2e-memory:
|
|
type: stdio
|
|
command: node
|
|
args:
|
|
- e2e/setup/fake-mcp-server.js
|
|
# __E2E_DYNAMIC_MCP_STDIO_ENV__
|
|
title: E2E Memory
|
|
description: Local MCP fixture used by mock end-to-end tests.
|
|
timeout: 30000
|
|
e2e-http:
|
|
type: streamable-http
|
|
url: http://127.0.0.1:8765/mcp
|
|
title: E2E HTTP
|
|
description: Local HTTP MCP fixture for allowlist-override e2e tests.
|
|
timeout: 30000
|
|
e2e-oauth:
|
|
type: streamable-http
|
|
url: http://127.0.0.1:8767/mcp
|
|
startup: false
|
|
title: E2E OAuth
|
|
description: Protected MCP fixture used to verify resumable OAuth prompts.
|
|
timeout: 30000
|
|
requiresOAuth: true
|
|
oauth:
|
|
authorization_url: http://127.0.0.1:8767/authorize
|
|
token_url: http://127.0.0.1:8767/token
|
|
client_id: e2e-oauth-client
|
|
# __E2E_DYNAMIC_MCP_NETWORK_SERVERS__
|
|
|
|
# Per-endpoint file upload config so both upload UXs get e2e coverage:
|
|
# - Mock Provider A keeps the legacy 3-way dropdown (chat.spec.ts exercises
|
|
# "Upload to Provider"); legacyFileUploadUX also forces llmDeliveryPath
|
|
# 'provider', so that test's CSV still reaches the model.
|
|
# - Mock Provider B uses the unified single button with spreadsheet/csv routed
|
|
# to llmDeliveryPath 'none' (unified-upload.spec.ts).
|
|
fileConfig:
|
|
endpoints:
|
|
'Mock Run Files':
|
|
defaultLLMDeliveryPath:
|
|
overrides:
|
|
'application/pdf': 'provider'
|
|
'text/plain': 'text'
|
|
'text/csv': 'none'
|
|
'Mock Provider A':
|
|
legacyFileUploadUX: true
|
|
'Mock Provider B':
|
|
defaultLLMDeliveryPath:
|
|
overrides:
|
|
'text/csv': 'none'
|
|
'text/plain': 'none'
|
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'none'
|
|
# Routed to the provider: still delivered to the model AND shown in chat.
|
|
'text/markdown': 'provider'
|
|
|
|
endpoints:
|
|
# Default capabilities plus run_in_background (off by default upstream) so the
|
|
# background tool-call e2e can opt an MCP tool into detached dispatch.
|
|
agents:
|
|
fileSharing:
|
|
enabled: true
|
|
allowSiblingSharing: true
|
|
capabilities:
|
|
- deferred_tools
|
|
- execute_code
|
|
- file_search
|
|
- web_search
|
|
- artifacts
|
|
- subagents
|
|
- actions
|
|
- context
|
|
- skills
|
|
- memory
|
|
- ask_user_question
|
|
- tools
|
|
- chain
|
|
- ocr
|
|
- run_in_background
|
|
- stateful_code_sessions
|
|
# __E2E_CODE_BRIDGE_CONFIG__
|
|
# Keep the shared mock profile non-interactive except for the dedicated
|
|
# approval probe. This exercises real HITL pause/resume without wedging the
|
|
# existing file-authoring, steering, background-tool, or MCP specs.
|
|
toolApproval:
|
|
enabled: true
|
|
mode: bypass
|
|
ask:
|
|
- approval_probe_mcp_e2e-memory
|
|
reason: E2E approval required before running {tool}.
|
|
hooks:
|
|
- module: e2e/setup/tool-approval-hook.js
|
|
matcher: ^approval_probe_mcp_e2e-memory$
|
|
custom:
|
|
# Substituted with a REAL provider endpoint only when the mock config runs
|
|
# in model-fixture record mode (E2E_MODEL_FIXTURES=record); a comment
|
|
# otherwise, so the credential-free profile never gains a live endpoint.
|
|
# __E2E_MODEL_RECORD_PROVIDER__
|
|
- name: 'Mock Run Files'
|
|
apiKey: 'e2e-mock-run-files'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-run-files'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Run Files'
|
|
- name: 'Mock Provider A'
|
|
apiKey: 'e2e-mock-key-a'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-a'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider A'
|
|
customParams:
|
|
defaultParamsEndpoint: anthropic
|
|
|
|
- name: 'Mock Provider B'
|
|
apiKey: 'e2e-mock-key-b'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-b'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider B'
|
|
|
|
# No model spec mirrors this endpoint's label, so it stays unambiguous in the
|
|
# selector and gives e2e tests a real ephemeral endpoint → model option.
|
|
- name: 'Mock Provider C'
|
|
apiKey: 'e2e-mock-key-c'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-c'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider C'
|
|
|
|
# Second non-spec endpoint so e2e tests can switch between two real
|
|
# ephemeral endpoints (e.g. MCP selection persistence across switches).
|
|
- name: 'Mock Provider D'
|
|
apiKey: 'e2e-mock-key-d'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-d'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider D'
|
|
|
|
# Child-only activity labels are enabled here. They get a dedicated endpoint
|
|
# because a label collapses its tool group (a labeled block auto-collapses
|
|
# even at one call), which hides the tool cards other specs assert on —
|
|
# enabling this on a shared endpoint broke steering.spec.ts. Provider D is
|
|
# the unlabeled control. The label call is the one request that leaves the
|
|
# process (e2e/setup/fake-label-server.js serves the baseURL below), and
|
|
# `activityModel` differs from the chat model so a spec can prove the label
|
|
# ran on the configured model rather than the agent's.
|
|
- name: 'Mock Provider E'
|
|
apiKey: 'e2e-mock-key-e'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-e'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider E'
|
|
activityLabel: true
|
|
activityModel: 'mock-label-model'
|
|
|
|
# Parent activity phases need at least two sequential logical activities
|
|
# and have their own generated summary. Keep that behavior isolated from
|
|
# Provider E's child-label coverage so each endpoint exercises one config
|
|
# gate without changing the rendering assumptions of unrelated specs.
|
|
- name: 'Mock Provider F'
|
|
apiKey: 'e2e-mock-key-f'
|
|
baseURL: 'http://127.0.0.1:8889/v1'
|
|
models:
|
|
default:
|
|
- 'mock-model-f'
|
|
fetch: false
|
|
titleConvo: false
|
|
modelDisplayLabel: 'Mock Provider F'
|
|
activityLabel: true
|
|
activityModel: 'mock-label-model'
|
|
activityPhaseLabel: true
|
|
activityPhaseModel: 'mock-phase-label-model'
|
|
|
|
modelSpecs:
|
|
prioritize: true
|
|
# Enforcement would reject sends from the non-spec paths addedEndpoints
|
|
# exposes below (buildEndpointOption requires a spec when enforce is true).
|
|
enforce: false
|
|
# Surfaces the endpoints menu (modelSelect defaults on when addedEndpoints is
|
|
# set) limited to entries that don't collide with the spec labels above.
|
|
addedEndpoints:
|
|
# __E2E_MODEL_RECORD_ADDED_ENDPOINT__
|
|
- 'Mock Provider C'
|
|
- 'Mock Provider D'
|
|
- 'Mock Provider E'
|
|
- 'Mock Provider F'
|
|
- 'agents'
|
|
list:
|
|
- name: 'e2e-mock-provider-a'
|
|
label: 'Mock Provider A'
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
|
|
- name: 'e2e-mock-provider-b'
|
|
label: 'Mock Provider B'
|
|
preset:
|
|
endpoint: 'Mock Provider B'
|
|
model: 'mock-model-b'
|
|
|
|
- name: 'e2e-icon-spec'
|
|
label: 'E2E Icon Spec'
|
|
iconURL: '/assets/openai.svg'
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
|
|
- name: 'e2e-skill-scope'
|
|
label: 'E2E Skill Scope'
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
skills:
|
|
- 'e2e-model-spec-allowed'
|
|
- 'e2e-deployment-skill'
|
|
- 'e2e-model-spec-missing'
|
|
- 'e2e-model-spec-inaccessible'
|
|
|
|
- name: 'e2e-soft-default'
|
|
label: 'E2E Soft Default'
|
|
softDefault: true
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
|
|
- name: 'e2e-branded'
|
|
label: 'E2E Branded'
|
|
description: '<strong>Branded</strong> answers <img src="/assets/openai.svg" alt="brand icon">'
|
|
showOnLanding: true
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
|
|
- name: 'e2e-starters'
|
|
label: 'E2E Starters'
|
|
conversation_starters:
|
|
- 'E2E_REPLY:starter'
|
|
- 'Plan my week'
|
|
- 'Third starter prompt'
|
|
- 'Fourth starter prompt'
|
|
- 'Fifth starter beyond the cap'
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|
|
|
|
# Focused Bombadil HITL fixture. The fake model calls ask_user_question
|
|
# only for the explicit E2E marker, so enabling the tool here cannot make
|
|
# unrelated mock conversations pause.
|
|
- name: 'e2e-hitl'
|
|
label: 'E2E HITL'
|
|
askUserQuestion: true
|
|
preset:
|
|
endpoint: 'Mock Provider A'
|
|
model: 'mock-model-a'
|