Skip to content

feat(config): support per-bot process env#148

Draft
fyydnz53 wants to merge 2 commits into
deepcoldy:masterfrom
fyydnz53:pr/per-bot-env
Draft

feat(config): support per-bot process env#148
fyydnz53 wants to merge 2 commits into
deepcoldy:masterfrom
fyydnz53:pr/per-bot-env

Conversation

@fyydnz53

@fyydnz53 fyydnz53 commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • allow each bots.json entry to define an env object for its bot daemon/CLI process
  • sanitize env keys and stringify primitive values before passing them to PM2
  • document the feature in README files and bots.json.example

Why

Different bots may need different proxies, API base URLs, PATH settings, or CLI-specific feature flags. A single global daemon environment cannot express those per-bot differences cleanly.

Validation

  • pnpm test -- test/bot-config-editor.test.ts
  • pnpm build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant