Skip to content

build(pnpm): 统一包管理并升级兼容的最新依赖 #136

Open

Description

@1012839419a-alt

父目标:#130
contractRepo / executionRepo:2233admin/opencli-Razormind
worktree:D:\projects\opencli-pnpm-latest-20260914
branch:codex/pnpm-latest-20260914
baseline:6b7c69e0d7f1767d7101336cfeb68e869c772fdf
ownedPaths:

  • package.json
  • pnpm-workspace.yaml
  • pnpm-lock.yaml
  • frontend/package.json
  • frontend/pnpm-lock.yaml
  • package-lock.json
  • frontend/package-lock.json
  • chrome/extension-src/package-lock.json
  • collaboration/package-lock.json
  • README.md
  • .github/workflows/

目标:统一 JavaScript 包管理到 pnpm,核验并升级到 2026-09-14 当前兼容的最新版本;消除 manifest/lock 漂移与 npm 脚本调用,保留必要的上游版本钉住和安全边界。
验收:用 pnpm 完成安装/锁文件生成;根 doctor/test/check、前端 lint/typecheck/build 和扩展检查按实际受影响面通过;不得仅改 manifest 不验证;不升级 Python 依赖;出现破坏性大版本时给出兼容证据或保持明确 pin。
delivery:本 worktree 分支上的本任务提交 SHA,由主 Agent 复核后整合;不得推送。

Activity

  1. 1012839419a-alt commented on Sep 14, 2026

    @1012839419a-alt
    CollaboratorAuthor

    Coordinator contract update (2026-09-14): add owned path _bmad-output/implementation-artifacts/spec-gh-136-unified-pnpm-latest.md solely for the mandatory bmad-build plan/checkpoint artifact. All application edits remain limited to the original manifests, lockfiles, CI, and README paths. The worker must write the plan and stop at the workflow approval checkpoint; the coordinator will review and route the explicit human checkpoint.

  2. 1012839419a-alt commented on Sep 14, 2026

    @1012839419a-alt
    CollaboratorAuthor

    Fresh baseline evidence from coordinator worktree at 60b6eb19 (2026-09-14): Node v24.19.0, Corepack pnpm 11.22.0. Root contains both pnpm-lock.yaml and package-lock.json; package.json has no packageManager field; pnpm-workspace.yaml only contains allowBuilds and no packages globs. pnpm -r list --depth -1 --json recognizes only opencli-admin, while repository manifests also exist at chrome/extension-src, collaboration, integrations/opencli/fmhy, and frontend. Acceptance must therefore prove all intended root workspace importers are discovered before npm lock removal; frontend remains an explicitly independent pnpm root per the draft spec.

  3. 1012839419a-alt commented on Sep 14, 2026

    @1012839419a-alt
    CollaboratorAuthor

    Registry freshness snapshot (2026-09-14): root pnpm outdated --format json shows nx wanted/locked 20.8.4 vs latest 23.2.1 despite manifest ^23.1.1, confirming root lock drift. The independent frontend reports 24 wanted-vs-latest differences. Most are same-major compatible updates (for example Next 16.3.3→16.3.5, AI SDK 7.0.84→7.0.99, Zod 4.5.4→4.6.4); incompatible-major candidates include ESLint 9→10, Motion 12→13, and TypeScript 6→7 and must stay pinned unless individually migrated and verified. This supports the spec rule: update to compatible latest, do not force every latest major.

  4. 1012839419a-alt commented on Sep 14, 2026

    @1012839419a-alt
    CollaboratorAuthor

    Draft specification revised and cross-reviewed. Latest commit: 2219d1f7575b3edf0c0779e10db775e6f312598d (includes 98f99914). It now owns all four extension Nx npm targets, includes collaboration and integrations/opencli/fmhy in the root pnpm workspace, preserves frontend as an independent pnpm root, distinguishes pnpm 12.4.1 tool pinning from compatible dependency upgrades, and requires every affected frozen install/build/type/lint/test gate to pass. Status remains draft; no implementation has started pending the mandatory approval checkpoint.

  5. 1012839419a-alt commented on Sep 14, 2026

    @1012839419a-alt
    CollaboratorAuthor

    Human approval received in the Codex closeout thread on 2026-09-14: A / Approve. Approved scope is revised draft through commit 2219d1f7. Implementation may proceed; completion still requires every declared pnpm frozen-install/build/type/lint/test gate to pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions