Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
a97b6e2
feat: v0.3.0 Agent 发现命令 hot / new / near-grad / watch
Oct 24, 2026
fc20f05
feat: v0.3.1 修复 V2 create(6 参数 quote/refPool)+ 交易附言 --note
Oct 25, 2026
a9db019
feat: 密封附言 --reveal-after(承诺 v2,服务端托管到点公开)
Oct 25, 2026
e0e4a2c
release: v0.4.0 密封附言 --reveal-after + V2 买入自动 wrap WBNB
Oct 25, 2026
226eb10
docs: README 补充发币宣言与 sell/create 的 --reveal-after 用法
Oct 25, 2026
efa8ea4
docs: README 发币宣言示例改为具体写法(--conf 40)
Oct 25, 2026
5fd5230
release: v0.4.1 更新 npm 页面 README(发币宣言、--reveal-after 用法)
Oct 25, 2026
70ad635
release: v0.5.0 --logo-uri 外部图片先转存到 gang.fun,logo 不再依赖临时图床
Oct 25, 2026
2a2ebba
release: v0.6.0 跟单:gang follow / buy --follow,买入时在链上标明跟的是哪条附言
Oct 26, 2026
e04ebed
release: v0.6.1 没带想法时运行时提醒、新版本检查、User-Agent、拒绝未改的占位符附言
Oct 26, 2026
4732c09
release: v0.7.0 发币时选填网站和 X 链接(--website / --twitter),写进创建交易,gang.fun …
Oct 26, 2026
8479a24
release: v0.8.0 跟单发现:gang notes / gang watch --notes / gang agents,Ag…
Oct 26, 2026
a59263b
release: v0.9.0 GangLaunchpad (V3 tax tokens, fair mint) and PancakeS…
Oct 27, 2026
b3820f6
Merge pull request #1 from gangfun/release/v0.9.0
C100 Oct 27, 2026
06bbb71
docs: drop the install-from-source note, 0.9.0 is on npm
Oct 27, 2026
3e9b32e
Merge pull request #2 from gangfun/docs/readme-090
C100 Oct 27, 2026
0b2c7c1
Release 0.9.1: current READMEs
Oct 27, 2026
d20eee1
Keep src/index.js mode 644
Oct 27, 2026
f01e5d8
Merge pull request #3 from gangfun/release/v0.9.1
C100 Oct 27, 2026
6955cc0
docs: README footer for 0.9.1
Oct 27, 2026
53e9908
release: v0.9.2 docs-only, current README footer
Oct 27, 2026
01c9071
Release 0.10.0: gang create launches on GangLaunchpad (V3), untaxed b…
Oct 27, 2026
b1a8cfe
Merge pull request #4 from gangfun/release/v0.10.0
C100 Oct 27, 2026
201ce09
Release 0.10.1: put uploads on-chain as ipfs://<cid>
Oct 27, 2026
488f1ff
Release 0.11.0: notes and follows on GangLaunchpad
Oct 28, 2026
2cd2be1
Merge pull request #5 from gangfun/release/v0.11.0
C100 Oct 28, 2026
1e8c9e2
docs: README footer for 0.11.0
Oct 28, 2026
44f8225
Release 0.12.0: one command per action, routed by the token's kind
Oct 28, 2026
efef451
Merge pull request #6 from gangfun/release/v0.12.0
C100 Oct 28, 2026
2f29675
Release 0.13.0: one-command launch, creator bonds, dev tax buy-back
Oct 28, 2026
7f4784a
Merge pull request #7 from gangfun/release/v0.13.0
C100 Oct 28, 2026
b568b5d
Release 0.14.0: a buy-back payee
Oct 28, 2026
1b1e442
Merge pull request #8 from gangfun/release/v0.14.0
C100 Oct 28, 2026
c8da3d4
Release 0.15.0: the audited GangBond
Oct 28, 2026
f4781e9
Merge pull request #9 from gangfun/release/v0.15.0
C100 Oct 28, 2026
40aa862
Release 0.15.1: GangBond on mainnet
Oct 28, 2026
b3f9513
Merge pull request #10 from gangfun/release/v0.15.1
C100 Oct 28, 2026
d14b35b
Release 0.16.0: buy-backs on mainnet use splitter factory v3
Oct 28, 2026
f26b604
Merge pull request #11 from gangfun/release/v0.16.0
C100 Oct 28, 2026
1fa349c
Release 0.16.1: GangBond help text
Oct 28, 2026
077dd76
Merge pull request #12 from gangfun/release/v0.16.1
C100 Oct 28, 2026
a8e359d
Release 0.16.2: GangBond on its redeployed mainnet contract
Oct 29, 2026
96b0df1
Merge pull request #13 from gangfun/release/v0.16.2
C100 Oct 29, 2026
72266d9
Release 0.16.3: --buyback only over a trusted quote
Oct 29, 2026
c33928f
Merge pull request #14 from gangfun/release/v0.16.3
C100 Oct 29, 2026
5b1de57
Release 0.16.4: gang bond burn takes its minimum from a simulated chunk
Oct 29, 2026
79ccf82
Merge pull request #15 from gangfun/release/v0.16.4
C100 Oct 29, 2026
b306c50
Add CLAUDE.md: this repository and its npm package are public
Oct 29, 2026
9a4882b
Merge pull request #16 from gangfun/docs/claude-md-public-repo
C100 Oct 29, 2026
d4941d1
Release 0.16.5: discovery covers GangLaunchpad tokens; gang version
Oct 29, 2026
1de9e53
Accept gang -v as an alias of gang version
Oct 29, 2026
1b868a2
Merge pull request #17 from gangfun/release/v0.16.5
C100 Oct 29, 2026
fcc3c9e
Release 0.17.0: gang watch streams the market; gang mcp
Oct 29, 2026
798a474
README: GangBond is on mainnet; current default addresses
Oct 29, 2026
2f262e0
Release 0.17.1: MCP amount arguments have one plain type
Oct 29, 2026
6304b29
Release 0.17.2: gang_help, every flag on the MCP tools, file-path hints
Oct 29, 2026
bb5f52d
Release 0.17.3: gang mcp finds baw under a GUI host's minimal PATH
Oct 29, 2026
f737363
Release 0.17.4: gang tx --pending finds a trade approved in the Binan…
Oct 29, 2026
a534815
Release 0.17.5: several public BSC nodes, the next one tried when one…
Oct 30, 2026
43bc6f2
Release 0.17.6: gang portfolio, every holding in one answer
Oct 30, 2026
962beef
Release 0.17.7: gang list reads the newest tokens per pad, a few at a…
Oct 30, 2026
ff43a3c
Release 0.17.8: Agentic Wallet refusals print error as text, with the…
Oct 30, 2026
b49c684
Release 0.18.0: continuous mint (fly, kind 3) on GangFlywheelPad
Oct 30, 2026
53ad6c2
Release 0.18.1: continuous mint is live on BSC mainnet
Oct 30, 2026
c32de31
Release 0.18.2: say when post-launch minting is paused; valid invites
Oct 30, 2026
0b3e93d
Release 0.18.3: the mode is now called 铸币飞轮 / Mint Flywheel
Oct 30, 2026
1c46b79
Release 0.19.0: --split launches and gang split (GangSplitModule, spl…
Oct 30, 2026
8dfb2e9
Release 0.19.1: discover points paused Mint Flywheel tokens at the pool
Oct 30, 2026
955499a
Release 0.20.0: --lp launches and gang lp (GangLiquiditySplitter, lp-…
Oct 30, 2026
38efeba
Release 0.21.0: Mint Flywheel V2 pad (mainnet and testnet)
Oct 30, 2026
fc50f43
Release 0.22.0: combined tax recipient (--buyback + --lp + --split) a…
Oct 31, 2026
830ab53
Release 0.23.0: GangLaunchpad 2.0 (creator fee, graduation target) on…
Oct 31, 2026
5442863
Release 0.24.0: anonymous telemetry, gang trending, MCP Registry entry
Nov 1, 2026
5550469
CI: publish server.json to the MCP Registry via GitHub OIDC
Nov 1, 2026
de26342
Release 0.25.0: share text for X after a note or a create
Nov 1, 2026
4a36796
Release 0.26.0: invite links and the invite tag on buys
Nov 2, 2026
1a6151e
Release 0.26.1: refuse unknown flags on a create
Nov 2, 2026
6db2435
Release 0.27.0: gang create --vault on the 2.0 vault pad
Nov 2, 2026
f599c06
Release 0.28.0: first-trade trending and the preflight setup link
Nov 2, 2026
5fe3e51
Release 0.29.0: bond tier anchored, a price rise never lowers it
Nov 3, 2026
541b009
Release 0.30.0: GangLaunchpad 3.0 is the create target
Nov 4, 2026
7eabbc6
Release 0.30.1: read tokens on the first Soft pad
Nov 4, 2026
85365c2
chore: validate install runtime
liam Nov 5, 2026
ccd44f9
chore: report registry runtime identity
liam Nov 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,37 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build --if-present
- run: npm publish

- name: Smoke test
run: |
for f in src/*.js; do node --check "$f"; done
node src/index.js > /dev/null

# PRs only run the checks above. Publishing happens on push to main, and only when
# package.json carries a version npm doesn't have yet (a docs-only push must not fail on a duplicate).
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
V=$(node -p "require('./package.json').version")
if [ -n "$(npm view "@gangfun/cli@$V" version 2>/dev/null)" ]; then
echo "@gangfun/cli@$V is already on npm; skipping publish"
else
npm publish
fi

# The official MCP Registry entry (server.json, io.github.gangfun/gang) for the version on npm. Only GitHub Actions
# OIDC can publish under the gangfun org namespace. The registry checks mcpName on the npm package, so this waits
# until npm serves the version; it is skipped when the registry already has it.
- name: Publish to the MCP Registry
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
V=$(node -p "require('./package.json').version")
if [ "$(curl -s -o /dev/null -w '%{http_code}' "https://registry.modelcontextprotocol.io/v0/servers/io.github.gangfun%2Fgang/versions/$V")" = "200" ]; then
echo "io.github.gangfun/gang@$V is already in the MCP Registry; skipping"
exit 0
fi
for i in $(seq 1 30); do [ -n "$(npm view "@gangfun/cli@$V" version 2>/dev/null)" ] && break; sleep 20; done
jq --arg v "$V" '.version = $v | .packages[0].version = $v' server.json > server.tmp.json && mv server.tmp.json server.json
curl -sL https://github.com/modelcontextprotocol/registry/releases/download/v1.8.7/mcp-publisher_linux_amd64.tar.gz | tar xz mcp-publisher
./mcp-publisher login github-oidc
./mcp-publisher publish
30 changes: 30 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# gangfun/cli:给 agent 的协作须知

## 这是公开仓库,也是公开的 npm 包

`gangfun/cli` 是 **public** 仓库。凡是推到 GitHub 的内容,任何人都能看到,而且删不干净(fork、缓存、镜像、通知邮件都会留着),包括:

- commit 和分支名;
- PR 标题、描述和评论、review,以及 issue;
- 仓库里的所有文件。

`src/`、`README.md`、`README.zh-CN.md` 还会作为 `@gangfun/cli` 发到 npm:

- 每个版本都永久公开;
- 撤回受限,同一个版本号也不能再用。

所以 commit、push、开 PR、写评论之前,先确认里面**没有**下面这些:

- **密钥类**:私钥、助记词、API key(BscScan / Etherscan 等)、带 token 的 RPC 地址(QuickNode 之类)、`.env` 的内容、Telegram / 告警 bot token。代码里的默认 RPC 只能用公共节点;私有节点让用户通过环境变量或参数传入。
- **运维内部信息**:服务器 IP 和主机名、服务器上的路径、cron 配置、keeper 的私有发送通道、告警渠道、多签签名人、钱包和人的对应关系。
- **主网上还没修好的漏洞**:攻击步骤、受影响的合约或代币清单、能拿多少钱的估算,一律不写进代码注释、报错文案、README、commit 或 PR。要先修好上线,或者确认没人能借此获利,再公开。
- **个人信息**:邮箱、真名、聊天记录、dev 或用户的联系方式。
- **私有仓库的内部细节**:gangfun-server、gang-web-legacy 的实现、配置和运维细节。

## 做法

- **源码在 gang-launchpad。** CLI 的源码在 `gangfun/gang-launchpad` 的 `skill/gang-cli/`(那个仓库也是 public,根目录 `CLAUDE.md` 有同样的规矩)。这里的改动要从那边同步过来,不要只改这里。
- **push 前先过一遍。** 看一遍 `git show --stat` 和完整 diff;PR 描述发出前从头读一遍。
- **发版前确认 npm 包内容。** 发版(提升 `package.json` 版本号)前,用 `npm pack --dry-run` 看清会进 npm 包的文件和内容。合到 `main` 后 CI 会自动发布;只改文档、没提升版本号的 push 不会发布。
- **拿不准先问。** 拿不准的,先问用户再发。不要先发、有问题再删:删掉之前就已经有人看到或缓存了。
- **泄露了马上报告。** 发现已经泄露:马上告诉用户。密钥让用户轮换;不要自己改写已经推送的历史,也不要自己撤回 npm 版本。
Loading