Repository navigation
⬆️ chore: Bump LibreChat Packages to Latest & Support New Schema - #150
Merged
Merged
Conversation
Update @librechat/data-schemas (0.0.56 → 0.0.74) and librechat-data-provider (0.8.509 → 0.8.524), and adapt the panel: - Audit log: accept and render the new `permission.insights_assigned` / `permission.insights_removed` actions (agent target, "View insights" subject, grantee row). Previously any such entry failed response validation and broke the whole page. - Roles: add the new `SCHEDULES` permission type (USE, CREATE). - Interface permissions: mirror upstream `RUNTIME_CONFIG_INTERFACE_FIELDS` so the bare `interface.schedules` runtime toggle is saved instead of being silently dropped, while its `use`/`create` sub-keys stay blocked. - Langfuse: drop the forward-compat schema shim now that the pinned data-provider ships the `langfuse` group. - Config: add section meta for `filters`, `permissions`, and `openapi`, plus locale keys for ~190 new schema fields and the new `read:insights` / `manage:code_environments` capabilities. - Tests: add sample overrides for new fields with stricter validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps the LibreChat packages to their latest releases and adapts the admin panel to the new schema, capabilities, permissions, and audit actions:
@librechat/data-schemas: 0.0.56 → 0.0.74librechat-data-provider: 0.8.509 → 0.8.524Audit log. LibreChat now records
permission.insights_assigned/permission.insights_removedwhen Insights access on an agent changes. The BFF response validator only acceptedgrant.*actions, and the backend doesn't filter by category by default, so a single Insights entry would fail validation and break the whole audit log page. The panel now accepts all four actions and renders Insights entries with:Both the action filter and the target-type filter cover the new entries.
Role permissions. Added the new
SCHEDULESpermission type (Use / Create) to the role editor.interface.schedulesruntime toggle. Upstream now treats bareinterface.schedulesas a runtime enable/disable (RUNTIME_CONFIG_INTERFACE_FIELDS), not a permission. Before this change, the panel's interface-permission guard silently dropped that write. The guard now follows upstream:use/createsub-keys stay blockeduse: falsecollapses tofalseLangfuse. Removed the forward-compat schema shim now that the pinned data-provider ships the
langfusegroup. Visibility handling is unchanged: the section is still hidden when LibreChat reports fanout disabled.Config schema.
filters(Features tab),permissions, andopenapi(System tab).read:insights/manage:code_environmentscapabilities.Follow-ups (not in this PR)
langfuse.trace.*settings (userIdField, metadata fields) aren't editable yet, because the Langfuse section uses a custom connection renderer.managementApi.auth.oidc.tokenUsestill render as text inputs. This is existing behaviour, and validation rejects invalid values.Change Type
Testing
interface.schedulespath and strip behaviour.bunx tsc --noEmitbun run test(1157 tests passed)bun run lintbun run buildNot yet exercised against a live LibreChat backend.
Test Configuration:
Checklist