From e1c2b236b2814b0eeab8cc65d37d12da29fa2562 Mon Sep 17 00:00:00 2001 From: MK Date: Mon, 29 Jun 2026 14:54:51 +0800 Subject: [PATCH 1/3] vp migrate beta test --- .npmrc | 3 + .vscode/extensions.json | 2 +- .vscode/settings.json | 14 +- AGENTS.md | 17 + package.json | 16 +- .../__tests__/createProvider.test.ts | 2 +- .../__tests__/capture/captureAction.test.ts | 2 +- .../capture/captureAjaxIntegration.test.ts | 2 +- .../__tests__/capture/captureConsole.test.ts | 2 +- .../capture/captureFetchIntegration.test.ts | 2 +- .../__tests__/capture/captureIndex.test.ts | 2 +- .../__tests__/capture/captureNetwork.test.ts | 2 +- .../__tests__/capture/captureScript.test.ts | 2 +- .../capture/captureWebSocketError.test.ts | 2 +- .../ohbug-browser/__tests__/client.test.ts | 2 +- .../ohbug-browser/__tests__/destroy.test.ts | 2 +- .../ohbug-browser/__tests__/device.test.ts | 2 +- .../__tests__/dispatch/index.test.ts | 2 +- .../dispatch/networkDispatcher.test.ts | 2 +- .../dispatch/scriptDispatcher.test.ts | 2 +- .../ohbug-browser/__tests__/extension.test.ts | 2 +- .../ohbug-browser/__tests__/getParams.test.ts | 2 +- .../__tests__/handle/handlers.test.ts | 2 +- .../__tests__/handle/index.test.ts | 2 +- .../handle/resourceErrorHandler.test.ts | 2 +- .../ohbug-browser/__tests__/notifier.test.ts | 2 +- .../__tests__/replaceAddEventListener.test.ts | 2 +- .../ohbug-browser/__tests__/version.test.ts | 2 +- packages/ohbug-cli/package.json | 2 +- .../ohbug-cli/src/__tests__/index.test.ts | 2 +- packages/ohbug-core/__tests__/action.test.ts | 2 +- packages/ohbug-core/__tests__/client.test.ts | 2 +- packages/ohbug-core/__tests__/config.test.ts | 2 +- packages/ohbug-core/__tests__/event.test.ts | 2 +- .../ohbug-core/__tests__/extension.test.ts | 2 +- .../__tests__/lib/getErrorMessage.test.ts | 2 +- .../ohbug-core/__tests__/lib/metadata.test.ts | 2 +- .../__tests__/lib/verifyConfig.test.ts | 2 +- packages/ohbug-core/__tests__/notify.test.ts | 2 +- packages/ohbug-core/__tests__/types.test.ts | 2 +- packages/ohbug-extension-feedback/build.mjs | 2 +- .../lib-inject-css.ts | 2 +- .../__tests__/extension.test.ts | 2 +- .../__tests__/cookie.test.ts | 2 +- .../__tests__/extension.test.ts | 2 +- .../__tests__/uuid.test.ts | 2 +- .../__tests__/create-event.test.ts | 2 +- .../__tests__/extension.test.ts | 2 +- .../__tests__/session.test.ts | 2 +- .../__tests__/user.test.ts | 2 +- .../__tests__/extension.test.ts | 2 +- .../__tests__/capture/captureConsole.test.ts | 2 +- .../capture/captureUncaughtException.test.ts | 2 +- .../capture/captureUnhandledRejection.test.ts | 2 +- .../__tests__/capture/index.test.ts | 2 +- packages/ohbug-node/__tests__/client.test.ts | 2 +- packages/ohbug-node/__tests__/destroy.test.ts | 2 +- packages/ohbug-node/__tests__/device.test.ts | 2 +- .../ohbug-node/__tests__/extension.test.ts | 2 +- .../__tests__/handle/handlers.test.ts | 2 +- .../ohbug-node/__tests__/notifier.test.ts | 2 +- .../__tests__/OhbugErrorBoundary.test.ts | 2 +- .../ohbug-unplugin/__tests__/index.test.ts | 2 +- packages/ohbug-utils/__tests__/dom.test.ts | 2 +- packages/ohbug-utils/__tests__/get.test.ts | 2 +- packages/ohbug-utils/__tests__/logger.test.ts | 2 +- packages/ohbug-utils/__tests__/mixin.test.ts | 2 +- .../ohbug-utils/__tests__/validators.test.ts | 2 +- .../ohbug-utils/__tests__/warning.test.ts | 2 +- packages/ohbug-vue/__tests__/index.test.ts | 2 +- packages/ohbug-vue/__tests__/install.test.ts | 2 +- playground/src/vite-env.d.ts | 2 +- pnpm-lock.yaml | 1363 ++++++++--------- pnpm-workspace.yaml | 14 + tsconfig.json | 2 +- 75 files changed, 780 insertions(+), 785 deletions(-) diff --git a/.npmrc b/.npmrc index 6c59086..a4d4218 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,4 @@ enable-pre-post-scripts=true + +# pkg.pr.new registry bridge (added by test-pkg-pr-new-migrate.sh) +registry=https://pkg-pr-registry-bridge.void.app/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 99e2f7d..5654faf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["oxc.oxc-vscode"] + "recommendations": ["oxc.oxc-vscode", "VoidZero.vite-plus-extension-pack"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index ce4d42f..6f73c96 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,17 @@ "source.fixAll.oxc": "explicit" }, "cSpell.words": ["Ohbug"], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "[javascript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + } } diff --git a/AGENTS.md b/AGENTS.md index 3b92c29..32e1cb8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,3 +110,20 @@ Defined in `packages/ohbug-core/src/types.ts` as `EventTypes`: - The playground uses `@ohbug/unplugin` for automatic sourcemap upload and `@ohbug/extension-rrweb` for session replay - Config validation uses a schema-based approach in `packages/ohbug-core/src/config.ts` - The project uses `@voidzero-dev/vite-plus-core` (aliased as `vite`) and `@voidzero-dev/vite-plus-test` (aliased as `vitest`) via pnpm overrides + + + +# 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