Repository navigation
Use Wechaty 2 and Puppet Neo for the starter - #326
Merged
Merged
Conversation
Require Node.js 26 and TypeScript 7. Build the ding-dong bot with WechatyBuilder and Puppet Neo, keep the mock puppet for tests, and remove Gitpod plus the PadLocal, CodeSandbox, Maodou, Xiaoli, and ChatGPT samples. Co-authored-by: Huan Li <huan@chatie.io>
PR SummaryMedium Risk Reviewed by Cursor Bugbot for commit 4e48371. Bugbot is set up for automated code reviews on this repo. Configure here. |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm submitting a...
Checklist
Description
The getting started repo now tracks Wechaty 2 and uses
wechaty-puppet-neoas its only direct puppet.enginesandpostinstallrequire Node.js>=26and npm>=10. TypeScript is^7.0.2, including theoverridespin.wechatyis>=2.0.0-0 <3, so install takes the newest 2.x. Today that is2.0.0-alpha.18. Neo is^0.1.1.examples/ding-dong-bot.tsandexamples/basic/ding-dong-bot.jskeepWechatyBuilderand passpuppet: new PuppetNeo().npm startruns the TypeScript bot on Node directly.wechaty-puppet-oicq,walnut,wechat,wechat4u,whatsapp, andwechaty-cqrs. The walnut, service, web, PadLocal, and WhatsApp start scripts are gone.wechaty-puppet-mockstays at^1.19.4for the mock smoke test.wechaty-plugin-contribstays.wechaty-puppet-serviceandwechaty-puppet-wechat4uare still inside the Wechaty 2 package. This repo does not depend on them directly, and they are not removed from under Wechaty.examples/third-parties/codesandbox,maodou,xiaoli, andexamples/professional/chatgpt-bot. The rest of the example gallery stays, marked as v1-era samples. The Google Cloud Shell tutorial now uses Node 26 and Neo. The devcontainer is unchanged.macos-latest), and Windows x64. Smoke tests are the mock puppet and a Neo test that starts the bot, waits forscan, and stops. A liveding/dongreply still needs a phone.TypeScript 7 rejects
@chatie/tsconfig(importsNotUsedAsValues,moduleResolution: node). The repo tsconfig now states those options in TypeScript 7 form (verbatimModuleSyntax,nodenext).@typescript-eslint/parsercannot load against the TypeScript 7 compiler API, sonpm testtypechecks withtsc --noEmitand then runs the smoke tests.Does this PR introduce a breaking change?
Node.js 16 and the previous puppet start scripts no longer work. Use Node.js 26 and
npm start.