Devotd Github
NewAI agents

malganiswu/red-bean-qing-tuan — Reverting the README language-switching approach

The latest commit 2fb768f in malganiswu/red-bean-qing-tuan reverts the document language switching to a 'one-line link + two files' approach and restores README.en.md.

Repositorymalganiswu/red-bean-qing-tuan ↗

The latest commit 2fb768f in malganiswu/red-bean-qing-tuan reverts the document language switching to a 'one-line link + two files' approach and restores README.en.md.

GitHub description: 可嵌入的 TypeScript Agent Runtime —— model→tool 循环、checkpoint、interrupt 屏障,零生产依赖,可嵌进任何宿主。

stars
★ 95
Forks
0
Language
TypeScript
License
MIT
Read original source ↗View on GitHub ↗

red-bean-qing-tuan is a TypeScript agent runtime that does not presuppose an HTTP server or a database and can be slotted into any host. The commit of October 15, 2026, 2fb768f, reworked the document's language-switching method once more. The immediately preceding commit had changed things so that the English and Chinese versions were bundled into a single README.md under `<details name="lang">` and switched between each other in place, but `<details>` is a block-level element, so the result became two tabs stacked vertically instead of a single line of language links at the top. This commit restores README.en.md by adding it anew with 240 lines and deletes 242 lines from README.md, returning to the 'one-line link + two files' structure.

The commit message lays out the reason for the revert. The only places an `<a href>` inside the README can go are to another file or to scroll to an anchor within the same document, and an anchor cannot open the body of another language. To collapse and expand within a single document you have to use `<details>`, but that element does not align on one line. Only one of the two approaches is possible, so the one that preserves the look of a single line of links was chosen, restoring the file split. The commit message is written in Chinese, which also reveals that the reasoning behind the documentation work remains stored in the repository as-is.

The restored English README shows the character of the project as follows. It is a package supporting Node.js >=24.9.0 <26 with an MIT license badge, it has zero production dependencies, and it ships ESM JavaScript and type declarations. What the runtime owns is the ReAct state machine, model streaming and tool scheduling, cancellation and timeouts, interrupt execution barriers and checkpoint storage, and neutral execution events. Decisions such as HTTP and SSE, UI and authentication, session listings, cache and DB keys, and permitted network destinations are all left to the host. A checkpoint reads R in a normal run and stores it at R+1 via CAS, while resume atomically consumes the interrupt and then stores from R+1 to R+2 under the claim owner. The public entry point is a single package export, which splits into llm, pipeline, tools, observability, and testing.

However, what changed this time is not the code or the features but the documentation. The English version restores content that the immediately preceding commit had deleted; it is not newly written feature documentation, and it is not yet published on npm either, so it is installed directly from Git. The commit message states that it also fixed a one-line error that had been missing from the English glossary, but the file list for this change ends up with only README.md and README.en.md. The README contains no performance figures or benchmarks, and the in-memory checkpoint store is for development and contract reference, so it is hard to view as an operational store shared by multiple instances. It is more accurate to read this as a change that fixed the reading path rather than one that expanded functionality.