Skip to content

Commit ef76575

Browse files
committed
release: prepare v0.2.0
1 parent 09aa2e9 commit ef76575

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ npm run healthcheck
8686
npm run healthcheck:live
8787
```
8888

89+
For live checks, configure your own local `.env` values after startup and keep the output local.
90+
91+
- do not commit or paste live output containing bot usernames, chat IDs, thread IDs, or other environment-specific identifiers
92+
- use your own `BOT_TOKEN`, `ALLOWED_USER_IDS`, and Codex credentials locally
93+
- for GitHub Actions, set `TELEGRAM_BOT_TOKEN`, `TELEGRAM_EXPECTED_USERNAME`, and `TELEGRAM_SMOKE_CHAT_ID` in repository secrets instead of hardcoding them
94+
8995
## Development Commands
9096

9197
- `npm run start` - start the bot
@@ -378,10 +384,12 @@ Repository secrets for live smoke checks:
378384
- `TELEGRAM_EXPECTED_USERNAME` (optional)
379385
- `TELEGRAM_SMOKE_CHAT_ID` (optional)
380386

387+
Keep live verification output out of git history and release notes. Bot usernames, thread IDs, and chat IDs are environment-specific operator data and should be configured by each user locally or through GitHub secrets.
388+
381389
Recommended local release gate:
382390

383391
```bash
384-
npm run release:check
392+
BOT_TOKEN=dummy-token ALLOWED_USER_IDS=1 npm run release:check
385393
npm run healthcheck:live
386394
```
387395

docs/operations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ npm run healthcheck:strict
4545
npm run healthcheck:live
4646
```
4747

48+
Use your own local `.env` values or CI secrets for live checks. Do not commit or paste live output that includes bot usernames, chat IDs, or Codex thread IDs.
49+
4850
What the health check validates:
4951

5052
- workspace and runner directories exist
@@ -59,5 +61,6 @@ What the health check validates:
5961
- If you also use Codex directly in a terminal, run that work in a separate git worktree. The bot only detects conflicts with other bot-managed chats, not external terminal sessions.
6062
- Run the bot under a restricted system user.
6163
- Keep `.env` outside version control.
64+
- Let each operator configure live-check credentials locally after startup instead of sharing one checked-in identity.
6265
- Rotate Telegram and GitHub tokens if they are ever exposed.
6366
- If you reinstall dependencies on macOS, rerun `npm run healthcheck`; the bot now auto-repairs `node-pty` helper permissions on startup.

docs/release.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Run locally:
1111

1212
```bash
1313
npm install
14-
npm run release:check
14+
BOT_TOKEN=dummy-token ALLOWED_USER_IDS=1 npm run release:check
1515
```
1616

1717
Recommended production checks:
@@ -21,20 +21,23 @@ npm run healthcheck:strict
2121
npm run healthcheck:live
2222
```
2323

24+
Use operator-owned local credentials or GitHub secrets for live checks. Do not put real bot usernames, chat IDs, Telegram identities, or Codex thread IDs into tracked docs, release notes, or commits.
25+
2426
Manual checks:
2527

2628
- verify `/status`, `/repo`, `/continue`, `/language`, `/verbose`, `/mcp list`, and `/gh` on a real Telegram chat
2729
- verify PTY mode is active on the target host
2830
- verify cron and proactive push configuration
2931
- verify only one bot instance is polling
3032
- verify no second bot-managed chat can start a same-workdir Codex run without the explicit `/continue` override
33+
- record only pass/fail status in release notes; keep raw live output private to the operator who ran the checks
3134

3235
## Tag And Publish
3336

3437
```bash
3538
git checkout main
3639
git pull --ff-only
37-
npm run release:check
40+
BOT_TOKEN=dummy-token ALLOWED_USER_IDS=1 npm run release:check
3841
git tag v0.2.0
3942
git push origin main --tags
4043
```

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codex-telegram-claws",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "A super Telegram bot that securely orchestrates Codex via SDK or CLI/PTy streaming, MCP routing, and GitHub automation skills.",
55
"type": "module",
66
"main": "src/index.ts",

0 commit comments

Comments
 (0)