mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 06:19:43 -10:00
* perf(dev): add pnpm worktree bootstrap foundation Co-authored-by: Qwen-Coder <[email protected]> * fix(dev): harden worktree bootstrap process handling Co-authored-by: Qwen-Coder <[email protected]> * perf(dev): prefer cache-only worktree installs Co-authored-by: Qwen-Coder <[email protected]> * fix(dev): preserve cached install cancellation Co-authored-by: Qwen-Coder <[email protected]> * fix(build): harden pnpm worktree bootstrap Validate pnpm lock updates in releases and exercise real installs and builds across supported hosts. Preserve npm release compatibility and keep dependency-only setup from rewriting npm-layout notices. Co-authored-by: Qwen-Coder <[email protected]> * chore: record merge attribution Record the required attribution for the Stage 1 merge without rewriting published history. Co-authored-by: Qwen-Coder <[email protected]> * fix(dev): keep worktree bootstrap clean Use a bootstrap-scoped notice guard because nested npm lifecycle commands replace npm_lifecycle_event. This preserves explicit notice generation while preventing dependency setup from rewriting tracked output. Co-authored-by: Qwen-Coder <[email protected]> * ci: track pnpm smoke workflow size Register the new workflow in the repository size ratchet as required by the main CI gate. Co-authored-by: Qwen-Coder <[email protected]> * fix(ci): drop stale importers from the new pnpm lockfile The lockfile was generated before the WebShell cutover (#9811) removed @qwen-code/webui from web-shell and the tailwind tooling plus @qwen-code/webui from vscode-ide-companion, so frozen-lockfile installs fail on all three smoke platforms with ERR_PNPM_OUTDATED_LOCKFILE. Drop the five stale importer entries so the lockfile matches the current package.json manifests; verified with pnpm 11.24.0 install --frozen-lockfile --lockfile-only. Co-authored-by: Qwen-Coder <[email protected]> * fix(ci): refresh pnpm lockfile after merging main The merge of origin/main added remend@^1.3.1 to packages/cli/package.json without updating pnpm-lock.yaml, breaking the pnpm Worktree Smoke workflow frozen-lockfile install. Regenerated with pnpm install. Co-authored-by: Qwen-Coder <[email protected]> Patrol-Run: qwen-pr-conflict/jmtid3rse9h * fix(scripts): resolve the path variable case-insensitively on Windows A spread of process.env is an ordinary object, and native Windows shells expose the path variable as `Path`, so `env.PATH` was undefined there and findOnPath never located corepack — the offline-first Corepack bootstrap silently degraded to npx on exactly the hosts it exists for. Co-authored-by: Qwen-Coder <[email protected]> * test(scripts): pin the worktree bootstrap guards against mutation - Split the fallback log on /\r?\n/ like the sibling cmd.exe mocks, so the assertion holds on the Windows lane's CRLF output. - Add a win32 variant bootstrapping with the native `Path` casing to pin the case-insensitive lookup. - Assert the smoke workflow's fail-fast flag, the install-before-clean step order, and the no-build guard via a substring on the raw job text. - Extend the pnpmfile rewrite fixture to devDependencies and optionalDependencies, which the committed lockfile already uses. - Assert the notice-skip guard by effect (writeFile never called) and add the flag-absent companion test with I/O stubbed. Co-authored-by: Qwen-Coder <[email protected]> * chore(deps): sync pnpm-lock.yaml with qwen-live ACP backend deps Co-authored-by: Qwen-Coder <[email protected]> Patrol-Run: qwen-pr-conflict/jmtjyz3tdco * fix(dev): stop patch-package from corrupting the pnpm store The root postinstall runs patch-package, which rewrites files under node_modules in place. With pnpm's default import method those files are hard links into the content-addressable store, so the patch rewrites the store entry too and its contents stop matching the sha512 it is filed under. Every subsequent fresh worktree then fails its --offline stage with ERR_PNPM_NO_OFFLINE_TARBALL, silently falls back to the registry (exit 0), and the fallback's postinstall corrupts the store again, so the offline path never hits. The advertised offline timing was only reachable on a same-tree reinstall, which needs no relinking. Set packageImportMethod to clone-or-copy: a copy-on-write clone where the filesystem supports it, a plain copy elsewhere. Either way patch-package edits only the worktree's own copy and the store entry stays intact, so later worktrees resolve entirely from the store. Verified on an isolated fixture store: under the default method the node_modules file and its store entry share an inode, and an in-place edit moves the store file's sha512 off its address, after which a fresh offline install fails with ERR_PNPM_NO_OFFLINE_TARBALL; under clone-or-copy the same edit leaves the store hash unchanged and the fresh offline install reports reused 1, downloaded 0. Also add pnpm-lock.yaml to .prettierignore. prettier reflows it into a shape pnpm does not emit, so `npm run format` and `pnpm install` fight over the file; .yamllint.yml already ignores it for the same reason. Both facts are pinned by tests in scripts/tests/package-scripts.test.js. Claude-Session: https://claude.ai/code/session_012797rgiteWJxLT9TLkKq8G * fix(ci): refresh pnpm-lock.yaml for qwen-live prompts deps Main added prompts/@types/prompts (and the ACP sdk) to packages/qwen-live/package.json after this branch generated its lockfile, so the pnpm Worktree Smoke frozen-lockfile install failed with ERR_PNPM_OUTDATED_LOCKFILE. Regenerated with pnpm 11.24.0 (--lockfile-only); frozen-lockfile and supply-chain policy checks pass. Co-authored-by: Qwen-Coder <[email protected]> Patrol-Run: qwen-pr-conflict/jmtlc9sozfg * fix(pnpm): close review findings on worktree bootstrap - Declare @qwen-code/qwen-code-core in vscode-ide-companion so the pnpm linker materializes it; regenerate both lockfiles and assert the link in the smoke workflow (R5-1) - Pin @types/node 20.19.1 in packages/core so the pnpm layout compiles against the same types npm hoists (D6-1) - Accept and pin the corepack +sha512 integrity suffix on packageManager; strip it for the npx fallback spec (D6-2) - Cover every workspace member in the pnpmfile rewrite set, mirror the npm channel list in pnpm-workspace.yaml, and cross-check both in tests - Run setup-worktree.js installs with cwd pinned to the checkout, gate the smoke clean-check on git status --porcelain, stop post-merge runs from cancelling each other, and extend check-lockfile.js to pnpm-lock.yaml * merge(main): realign pnpm workspace set and lockfiles Main removed the webui and cua-driver packages; drop both from the pnpm rewrite set and regenerate the pnpm lockfile against the merged manifests (picks up playwright, react-markdown, and the other main-side dependency changes) so the frozen bootstrap matches what the PR merge ref will run. * style(ci): quote smoke workflow scalars per yamllint * fix(dev): require Corepack for pnpm bootstrap * fix(dev): close pnpm bootstrap review blockers --------- Co-authored-by: Qwen-Coder <[email protected]> Co-authored-by: yiliang114 <[email protected]>
168 lines
5.1 KiB
JSON
168 lines
5.1 KiB
JSON
{
|
|
"name": "@qwen-code/qwen-code-core",
|
|
"version": "0.23.0",
|
|
"description": "Qwen Code Core",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/QwenLM/qwen-code.git"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./transcriptRecords": {
|
|
"types": "./dist/src/utils/transcript-records.d.ts",
|
|
"import": "./dist/src/utils/transcript-records.js"
|
|
},
|
|
"./envVarResolver": {
|
|
"types": "./dist/src/utils/envVarResolver.d.ts",
|
|
"import": "./dist/src/utils/envVarResolver.js"
|
|
},
|
|
"./goalWire": {
|
|
"types": "./dist/src/goals/goal-wire.d.ts",
|
|
"import": "./dist/src/goals/goal-wire.js"
|
|
},
|
|
"./memoryScopes": {
|
|
"types": "./dist/src/memory/scopes.d.ts",
|
|
"import": "./dist/src/memory/scopes.js"
|
|
},
|
|
"./subSessionConstants": {
|
|
"types": "./dist/src/tools/sub-session-constants.d.ts",
|
|
"import": "./dist/src/tools/sub-session-constants.js"
|
|
},
|
|
"./toolWriteOrigin": {
|
|
"types": "./dist/src/services/tool-write-origin.d.ts",
|
|
"import": "./dist/src/services/tool-write-origin.js"
|
|
},
|
|
"./userPromptSubmitContext": {
|
|
"types": "./dist/src/hooks/user-prompt-submit-context.d.ts",
|
|
"import": "./dist/src/hooks/user-prompt-submit-context.js"
|
|
},
|
|
"./noFollowOpen": {
|
|
"types": "./dist/src/utils/no-follow-open.d.ts",
|
|
"import": "./dist/src/utils/no-follow-open.js"
|
|
},
|
|
"./storage": {
|
|
"types": "./dist/src/config/storage.d.ts",
|
|
"import": "./dist/src/config/storage.js"
|
|
},
|
|
"./atomicFileWrite": {
|
|
"types": "./dist/src/utils/atomicFileWrite.d.ts",
|
|
"import": "./dist/src/utils/atomicFileWrite.js"
|
|
},
|
|
"./debugLogger": {
|
|
"types": "./dist/src/utils/debugLogger.d.ts",
|
|
"import": "./dist/src/utils/debugLogger.js"
|
|
},
|
|
"./conversationsRuntimeMarker": {
|
|
"types": "./dist/src/utils/conversations-runtime-marker.d.ts",
|
|
"import": "./dist/src/utils/conversations-runtime-marker.js"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./*": "./dist/src/*",
|
|
"./dist/*": "./dist/*",
|
|
"./src/*": "./src/*"
|
|
},
|
|
"scripts": {
|
|
"build": "node ../../scripts/build_package.js",
|
|
"lint": "eslint . --ext .ts,.tsx",
|
|
"format": "prettier --write .",
|
|
"test": "vitest run",
|
|
"test:ci": "vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"postinstall": "node scripts/postinstall.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"vendor",
|
|
"scripts/postinstall.js"
|
|
],
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.36.1",
|
|
"@google/genai": "2.6.0",
|
|
"@iarna/toml": "^2.2.5",
|
|
"@modelcontextprotocol/client": "2.0.0",
|
|
"@modelcontextprotocol/core": "2.0.0",
|
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/core": "^2.0.1",
|
|
"@opentelemetry/exporter-logs-otlp-grpc": "^0.221.0",
|
|
"@opentelemetry/exporter-logs-otlp-http": "^0.221.0",
|
|
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.221.0",
|
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.221.0",
|
|
"@opentelemetry/exporter-trace-otlp-grpc": "^0.221.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
|
|
"@opentelemetry/instrumentation-http": "^0.221.0",
|
|
"@opentelemetry/instrumentation-undici": "^0.31.0",
|
|
"@opentelemetry/sdk-node": "^0.221.0",
|
|
"@xterm/headless": "5.5.0",
|
|
"ajv": "^8.17.1",
|
|
"ajv-formats": "^3.0.0",
|
|
"async-mutex": "^0.5.0",
|
|
"chardet": "^2.1.0",
|
|
"chokidar": "^4.0.3",
|
|
"diff": "^7.0.0",
|
|
"dotenv": "^17.1.0",
|
|
"fast-levenshtein": "^2.0.6",
|
|
"fast-uri": "^3.0.6",
|
|
"fdir": "^6.4.6",
|
|
"fzf": "^0.5.2",
|
|
"glob": "^10.5.0",
|
|
"google-auth-library": "^10.5.0",
|
|
"https-proxy-agent": "^7.0.6",
|
|
"iconv-lite": "^0.6.3",
|
|
"ignore": "^7.0.0",
|
|
"jsonrepair": "^3.13.0",
|
|
"marked": "^15.0.12",
|
|
"mime": "4.0.7",
|
|
"mnemonist": "^0.40.3",
|
|
"openai": "5.11.0",
|
|
"picomatch": "^4.0.1",
|
|
"prompts": "^2.4.2",
|
|
"proper-lockfile": "^4.1.2",
|
|
"sharp": "^0.35.0",
|
|
"shell-quote": "^1.9.0",
|
|
"simple-git": "^3.36.0",
|
|
"strip-ansi": "^7.1.0",
|
|
"tar": "^7.5.19",
|
|
"turndown": "^7.2.4",
|
|
"undici": "^7.28.0",
|
|
"uuid": "^9.0.1",
|
|
"web-tree-sitter": "^0.24.7",
|
|
"ws": "^8.18.0",
|
|
"yaml": "^2.8.1",
|
|
"yauzl": "^2.10.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@lydell/node-pty": "1.2.0-beta.10",
|
|
"@lydell/node-pty-darwin-arm64": "1.2.0-beta.10",
|
|
"@lydell/node-pty-darwin-x64": "1.2.0-beta.10",
|
|
"@lydell/node-pty-linux-x64": "1.2.0-beta.10",
|
|
"@lydell/node-pty-win32-arm64": "1.2.0-beta.10",
|
|
"@lydell/node-pty-win32-x64": "1.2.0-beta.10"
|
|
},
|
|
"devDependencies": {
|
|
"@types/diff": "^7.0.2",
|
|
"@types/dotenv": "^6.1.1",
|
|
"@types/fast-levenshtein": "^0.0.4",
|
|
"@types/minimatch": "^5.1.2",
|
|
"@types/node": "20.19.1",
|
|
"@types/picomatch": "^4.0.1",
|
|
"@types/prompts": "^2.4.9",
|
|
"@types/tar": "^6.1.13",
|
|
"@types/turndown": "^5.0.6",
|
|
"@types/ws": "^8.5.10",
|
|
"@types/yauzl": "^2.9.1",
|
|
"msw": "^2.3.4",
|
|
"tree-sitter-wasms": "^0.1.13",
|
|
"typescript": "^5.3.3",
|
|
"vitest": "^3.1.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|