unsloth/studio
Daniel Han 8dce77f80d ci: use lockfile installs for Studio npm paths
PR #5604 committed three npm lockfiles (studio/, studio/frontend/,
studio/backend/core/data_recipe/oxc-validator/) but the install
paths still ran `npm install` -- mutates the lockfile, ignores
integrity hashes. Flip them to `npm ci`, which is non-mutating
and refuses to run unless the committed package-lock.json matches
the dependency tree byte-for-byte. This closes the gap between
"the lockfile passes the audit" and "the install respected that
lockfile".

For bun: gate every `bun install` on `[ -f bun.lock ]` (Test-Path
on Windows) plus `command -v bun` (Get-Command), and add
`--frozen-lockfile --no-progress` to the bun invocation. No
bun.lock is committed in this PR, so the gate fails closed today
and execution falls through to `npm ci`. When the eventual
bun.lock PR lands, the gate auto-activates with no further
script edits.

Existing bun infrastructure (cache-corruption retry +
critical-binary verification + npm fallback) is kept intact so
the auto-upgrade is clean. Deliberately NOT introducing
_BUN_PIN_VERSION or the 3-attempt cache-corruption recovery
ladder; both require committed bun.lock to be useful.

Touches three files only:
- build.sh
- studio/setup.sh
- studio/setup.ps1
2026-05-19 14:07:13 +00:00
..
backend Studio: tools, thinking blocks, code execution and web search for safetensors (#5520) 2026-05-19 06:30:17 -07:00
frontend studio/frontend: show Generation stopped placeholder when cancelled mid-thinking (#5565) 2026-05-19 06:57:14 -07:00
src-tauri studio: regenerate desktop launcher on unsloth studio update (macOS + Linux + Windows) (#5577) 2026-05-19 05:49:10 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py tests/studio: lock in Windows GPU detection fix (#5106) with a synthetic CI test (#5376) 2026-05-18 00:06:01 -07:00
install_python_stack.py studio: skip flash-attn install on Blackwell GPUs (sm_100+) (#5420) 2026-05-14 18:13:50 +04:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
package-lock.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
package.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 ci: use lockfile installs for Studio npm paths 2026-05-19 14:07:13 +00:00
setup.sh ci: use lockfile installs for Studio npm paths 2026-05-19 14:07:13 +00:00
Unsloth_Studio_Colab.ipynb studio: add --local to setup.sh + overlay unsloth-zoo from git main (#5252) 2026-05-02 08:51:56 +04:00