Skip to content

Conversation

@jinglemansweep
Copy link
Contributor

No description provided.

- Remove from_file() and to_file() methods from MeshBotConfig
- Configuration now uses only: defaults → env vars → CLI args
- Fix CLI argument naming for consistency:
  - --meshcore-type → --meshcore-connection-type
  - --node-name → --meshcore-node-name
- Update all documentation and examples to use new CLI args
- Update Docker files with new argument names
- All tests passing
Copilot AI review requested due to automatic review settings November 23, 2025 19:26
@jinglemansweep jinglemansweep merged commit 311aaf5 into main Nov 23, 2025
3 checks passed
@jinglemansweep jinglemansweep deleted the claude/remove-file-config-012EVNZciXnH7ZKBUt21LmaW branch November 23, 2025 19:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the configuration system by removing file-based config loading in favor of a streamlined approach using environment variables and command-line arguments, aligning with 12-factor app principles. The changes also improve CLI option naming consistency by adding the meshcore- prefix to connection-related options.

Key Changes:

  • Removed from_file() and to_file() methods from MeshBotConfig class
  • Renamed CLI options: --meshcore-type--meshcore-connection-type and --node-name--meshcore-node-name
  • Updated all documentation, examples, and Docker configurations to reflect the new CLI option names

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/meshbot/config.py Removed file-based configuration loading methods (from_file, to_file) to simplify config management
src/meshbot/main.py Updated CLI option names and parameter names in run and test commands for consistency
README.md Updated all command examples and removed deprecated configuration file section
AGENTS.md Updated testing examples with new CLI option names
docker-compose.yml Updated command examples in comments to use new option names
Dockerfile Updated default CMD to use new --meshcore-connection-type option
.env.example Enhanced documentation with naming convention guide and 12-factor app principles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```bash
# Interactive testing with mock MeshCore
meshbot test --meshcore-type mock
meshbot test --meshcore-connection-type mock
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test command requires two positional arguments (FROM_ID and MESSAGE), but this example only shows the optional flags. The correct syntax should be:

meshbot test user1 "Hello!" --meshcore-connection-type mock

This matches the pattern used in AGENTS.md lines 224-230.

Suggested change
meshbot test --meshcore-connection-type mock
meshbot test user1 "Hello!" --meshcore-connection-type mock

Copilot uses AI. Check for mistakes.

# Test with specific prompt
meshbot test --custom-prompt debug_prompt.txt -vv
meshbot test --custom-prompt debug_prompt.txt -vv --meshcore-connection-type mock
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test command requires two positional arguments (FROM_ID and MESSAGE), but this example only shows the optional flags. The correct syntax should be:

meshbot test user1 "Hello!" --custom-prompt debug_prompt.txt -vv --meshcore-connection-type mock

This matches the pattern used in AGENTS.md lines 224-230.

Suggested change
meshbot test --custom-prompt debug_prompt.txt -vv --meshcore-connection-type mock
meshbot test user1 "Hello!" --custom-prompt debug_prompt.txt -vv --meshcore-connection-type mock

Copilot uses AI. Check for mistakes.
```bash
# Run with mock connection (for testing)
meshbot test --meshcore-type mock
meshbot test --meshcore-connection-type mock
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test command requires two positional arguments (FROM_ID and MESSAGE), but this example only shows the optional flags. The correct syntax should be:

meshbot test user1 "Hello!" --meshcore-connection-type mock

This matches the pattern used in AGENTS.md lines 224-230.

Suggested change
meshbot test --meshcore-connection-type mock
meshbot test user1 "Hello!" --meshcore-connection-type mock

Copilot uses AI. Check for mistakes.
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.

3 participants