You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: expose extended branding fields in runtime config API (#2799)
* feat: expose extended branding fields in runtime config API
Add logoUrl, faviconUrl, brandColor, pwaDescription, and pwaThemeColor
to the /api/v1/runtime/config response, driven by corresponding OS_*
environment variables.
Also decouples /runtime/assets/* serving from the console plugin into a
standalone createRuntimeAssetsPlugin so branding assets resolve even
when the console dist hasn't been built yet. Accepts an optional
OS_RUNTIME_ASSETS_DIR override; falls back to process.cwd()/assets.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(cli): use mkdtempSync for runtime-assets temp dir
CodeQL flagged js/insecure-temporary-file (high) on the test: it built a
temp dir from a predictable `Date.now()` name and wrote into it, which is
open to a temp-file race / symlink attack in the shared OS temp dir.
Use fs.mkdtempSync() to atomically create a uniquely-named directory with
a random suffix — the pattern CodeQL recognizes as safe — and drop the now
redundant mkdirSync. Behavior is otherwise unchanged; all 3 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: os-zhuang <jack@objectstack.ai>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments