• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clay / claycli / 26611081313
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: v6.0.0-rc.3
DEFAULT BRANCH: master
Ran 29 May 2026 12:46AM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2026 12:45AM UTC coverage: 87.096% (+0.2%) from 86.85%
26611081313

Pull #252

github

jjpaulino
🍕 Inline client process.env vars into Vite bundle at build time

CJS modules that read process.env.X at load time compile to an empty
`var pVt = {}` stub under @rollup/plugin-commonjs, so reads like
process.env.PYXIS_HOST resolve to undefined and never reach the
runtime-hydrated window.process.env. This silently broke every Kiln
plugin / universal service that reads env at module eval (pyxis, agora,
glaze, …) — they worked in the legacy pipeline only because dotenv-webpack
inlined those reads as string literals.

Extend buildDefines() to inline client-facing process.env vars via Vite's
define map, mirroring dotenv-webpack. The var list comes from
client-env.json (the same browser surface amphora-html already forwards to
window.process.env), with a cold-build fallback to all valid env keys so a
fresh CI checkout still inlines. define only substitutes referenced tokens,
so an over-inclusive list never leaks an unreferenced secret into the bundle.

Add focused unit tests for inlining, the cold-build fallback, and the
invalid-identifier filter.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pull Request #252: 🍕 Add Kiln plugin init diagnostics for Vite

764 of 949 branches covered (80.51%)

Branch coverage included in aggregate %.

43 of 43 new or added lines in 2 files covered. (100.0%)

56 existing lines in 1 file now uncovered.

1632 of 1802 relevant lines covered (90.57%)

13.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
56
73.69
0.72% lib/cmd/vite/scripts.js
Jobs
ID Job ID Ran Files Coverage
1 26611081313.1 29 May 2026 12:46AM UTC 30
87.1
GitHub Action Run
Source Files on build 26611081313
  • Tree
  • List 30
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26611081313
  • Pull Request #252
  • PR Base - master (#26550699097)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc