Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: d5fbf06c-d16d-4172-bcf7-d78454a16a9d) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da27c1bee9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const bot = new Wechaty({ | ||
| name: 'ding-dong-bot', | ||
| // wechaty-puppet-neo@0.1.1 still bundles wechaty-puppet@1.x types | ||
| puppet: new PuppetNeo() as unknown as Exclude<NonNullable<Parameters<typeof WechatyBuilder.build>[0]>['puppet'], string | undefined>, | ||
| }) |
There was a problem hiding this comment.
Supply a compatible puppet for the default starter
For a fresh checkout following the documented npm install / npm start flow without WECHATY_PUPPET, removing the explicit puppet does not select a compatible replacement for Neo. Wechaty resolves an omitted puppet through its system configuration, whose default is wechaty-puppet-wechat4u, not Neo. This silently changes the starter's backend while its header, README, and tutorial still promise Neo's QR-code login flow; the README's explicit Neo example also imports the dependency removed in this commit. Configure a supported Wechaty 2 puppet and update the installation and login instructions together, rather than leaving the main entry point dependent on an undocumented fallback. The same omission affects examples/basic/ding-dong-bot.ts.
AGENTS.md reference: AGENTS.md:L15-L15
Useful? React with 👍 / 👎.
Summary
examples/,tests/, and docs fromWechatyBuilder/.on()/.once()toWechaty(new Wechaty(...)/Wechaty.singleton()) and WinterTCEventTarget(addEventListener/next()) forwechaty@2.0.0-alpha.21.wechaty-puppet-mockto>=2.0.0-alpha.21and added ading->dongroundtrip test alongside thescansmoke test intests/wechaty-puppet-mock.test.ts.wechaty-puppet-neofrompackage.jsonand temporarily skippedtests/wechaty-puppet-neo.test.tsuntilwechaty-puppet-neosupportswechaty-puppet@2.x.test:unit:denoFFI permissions tonode_modules/@lmdb.Verification
npm test(lint:biome,lint:ts,lint:md,test:smoke): 2 passed, 0 failed, 1 skippednpm run test:unit:deno: 2 passed, 0 failed, 1 ignorednpm run build && npm run clean: passedNote
Medium Risk
Starter examples and CI no longer wire Puppet Neo, and the Neo integration test is disabled until a 2.x-compatible release—
npm startbehavior may differ from documented Neo-first setup until that dependency returns.Overview
Migrates the getting-started repo from Wechaty 1-style
WechatyBuilder/.on()/.once()to Wechaty 2new Wechaty(...)/Wechaty.singleton()with WinterTCEventTargethandlers (addEventListener,bot.next()). Example ding-dong bots and the minimal chatbot sample are updated accordingly; explicitPuppetNeoimports and puppet type hacks are removed from those examples.Dependencies and tests:
wechaty-puppet-neois dropped frompackage.json,wechaty-puppet-mockis bumped to>=2.0.0-alpha.21, mock smoke tests are split into scan andding→dongcases, and the Neo smoke test is skipped until Neo supportswechaty-puppet@2.x. The Deno unit script’s FFI allowlist moves from Neo native paths tonode_modules/@lmdb.Docs (README and Cloud Shell tutorial) now describe
new Wechaty(...)instead ofWechatyBuilder, matching the new example style.Reviewed by Cursor Bugbot for commit da27c1b. Bugbot is set up for automated code reviews on this repo. Configure here.