From fe3b619211644cceab19cbf1cf7435a935322703 Mon Sep 17 00:00:00 2001 From: MK Date: Thu, 25 Jun 2026 15:00:17 +0800 Subject: [PATCH] vp migrate beta test --- .vscode/extensions.json | 3 + .vscode/settings.json | 21 + .yarnrc.yml | 15 +- CLAUDE.md | 17 + Cargo.toml | 6 +- .../server/model-work-coordinator.test.ts | 2 +- package.json | 11 +- packages/lm/package.json | 2 +- packages/privacy/package.json | 2 +- packages/trl/package.json | 4 +- packages/vlm/package.json | 2 +- yarn.lock | 1034 ++++++++++++----- 12 files changed, 787 insertions(+), 332 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..46cef3bd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["VoidZero.vite-plus-extension-pack"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..aa66e0f6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,21 @@ +{ + "editor.defaultFormatter": "oxc.oxc-vscode", + "[javascript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "oxc.fmt.configPath": "./vite.config.ts", + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "explicit" + } +} diff --git a/.yarnrc.yml b/.yarnrc.yml index 0c26bdfc..b8b2e628 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,11 +1,11 @@ approvedGitRepositories: - - "**" + - '**' catalog: - "@types/node": "npm:@types/node@24.12.2" - vite: "npm:@voidzero-dev/vite-plus-core@0.1.24" - vite-plus: 0.1.24 - vitest: "npm:@voidzero-dev/vite-plus-test@0.1.24" + '@types/node': 'npm:@types/node@24.12.2' + vite: https://pkg.pr.new/voidzero-dev/vite-plus/@voidzero-dev/vite-plus-core@670c987e4097d4e5d53bb4c0521c8bf643a33cf5 + vite-plus: https://pkg.pr.new/voidzero-dev/vite-plus@670c987e4097d4e5d53bb4c0521c8bf643a33cf5 + vitest: 4.1.9 enableScripts: true @@ -15,6 +15,9 @@ npmMinimalAgeGate: 0 npmScopes: jsr: - npmRegistryServer: "https://npm.jsr.io" + npmRegistryServer: 'https://npm.jsr.io' yarnPath: .yarn/releases/yarn-4.17.0.cjs +npmPreapprovedPackages: + - vitest + - '@vitest/*' diff --git a/CLAUDE.md b/CLAUDE.md index 20acd195..b19ec7cb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -203,3 +203,20 @@ For GitHub Actions, consider using [`voidzero-dev/setup-vp`](https://github.com/ - [ ] Run `vp install` after pulling remote changes and before getting started. - [ ] Run `vp check` and `vp test` and `cargo test` to validate changes. + + + +# Using Vite+, the Unified Toolchain for the Web + +This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp --help` for information about a specific command. + +Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/. + +## Review Checklist + +- [ ] Run `vp install` after pulling remote changes and before getting started. +- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes. +- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run