LibreChat/.github/workflows
Danny Avila 6bc75d24c8
️ refactor: Migrate @librechat/api build to tsdown (#13595)
* ️ refactor: Migrate @librechat/api build to tsdown

Replace Rollup with tsdown (rolldown + oxc isolated-declarations) for the
@librechat/api package build, mirroring the merged data-schemas migration.

- Add tsdown.config.mjs (cjs output, oxc dts, externalize all bare deps,
  bundle first-party `~/` + relative imports)
- Annotate exports for isolatedDeclarations (codefix-driven). Collapse the
  tokens.ts model->token maps to Record<string, Record<string, number>> and
  switch validation.ts's runtime `files` field from z.any() to z.unknown()
  so no explicit `any` is introduced
- Repoint package.json main/types/exports to tsdown's .cjs/.d.cts output
- Add src/telemetry.ts entry shim so the two index.ts entries don't collide
  in oxc's flat dts output (stable dist/telemetry.{cjs,d.cts})
- Delete rollup.config.js

Build time ~36s -> ~0.5s. No runtime behavior change: 5712 unit tests pass,
both entries load via require(), legacy /api consumes them unchanged.

* 👷 ci: Hash packages/api/tsdown.config.mjs in build-api cache keys

The build-api cache keys hashed `packages/api/server-rollup.config.js`,
which never existed (api used `rollup.config.js`, now removed) — a copy-paste
artifact from the data-provider key that matched no file. Replace it with the
new `packages/api/tsdown.config.mjs` so edits to the build config (entry,
format, externals) bust the api build cache, matching the data-schemas key.
2026-06-08 10:54:48 -04:00
..
a11y.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
backend-review.yml ️ refactor: Migrate @librechat/api build to tsdown (#13595) 2026-06-08 10:54:48 -04:00
build.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
cache-integration-tests.yml 🐳 chore: Upgrade Docker Builds To Node 24 (#13448) 2026-06-01 10:03:18 -04:00
client.yml 🐳 chore: Upgrade Docker Builds To Node 24 (#13448) 2026-06-01 10:03:18 -04:00
config-review.yml ️ refactor: Migrate @librechat/api build to tsdown (#13595) 2026-06-08 10:54:48 -04:00
data-provider.yml 🐳 chore: Upgrade Docker Builds To Node 24 (#13448) 2026-06-01 10:03:18 -04:00
data-schemas.yml 🐳 chore: Upgrade Docker Builds To Node 24 (#13448) 2026-06-01 10:03:18 -04:00
deploy-dev.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
deploy.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
dev-branch-images.yml 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
dev-images.yml 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
dev-staging-images.yml 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
docker-smoke.yml 🐳 ci: Build Docker Client Package With Data Provider Dist (#13097) 2026-05-12 15:24:41 -04:00
eslint-ci.yml 🔧 chore: Update ESLint config, Import Sorting script, Test Sharding, Bump @librechat/agents (#13552) 2026-06-06 12:31:55 -04:00
frontend-review.yml 👷 ci: Type-check the Client Workspace (#13560) 2026-06-06 18:40:31 -04:00
generate_embeddings.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
gitnexus-cleanup-pr.yml 🌊 feat: Add GitNexus DigitalOcean Pipeline with PR Index Serving (#12612) 2026-04-11 13:04:46 -04:00
gitnexus-deploy.yml 🩹 fix: Bump GitNexus to 1.6.5 and Fail-Soft the PR Index Job (#13569) 2026-06-07 08:03:28 -04:00
gitnexus-index.yml 🩹 fix: Bump GitNexus to 1.6.5 and Fail-Soft the PR Index Job (#13569) 2026-06-07 08:03:28 -04:00
gitnexus-pr-command.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
helmcharts.yml ⛑️ ci: Fix Helm Tag Sync Workflow Planning (#13451) 2026-06-01 11:44:36 -04:00
i18n-unused-keys.yml 🛡️ chore: Harden CI Supply Chain Workflows (#13090) 2026-05-18 16:55:25 -04:00
locize-i18n-sync.yml 🌎 ci: Fix Locize Sync CDN Mode (#13465) 2026-06-01 21:47:46 -04:00
main-image-workflow.yml 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
playwright-mock.yml ️ refactor: Migrate @librechat/api build to tsdown (#13595) 2026-06-08 10:54:48 -04:00
sync-helm-chart-tags.yml 🏷️ ci: Fix Helm Tag Sync Git Auth (#13460) 2026-06-01 18:32:38 -04:00
tag-images.yml 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
unused-packages.yml 🐳 chore: Upgrade Docker Builds To Node 24 (#13448) 2026-06-01 10:03:18 -04:00