Add Mentat development automation scripts#183
Merged
moodysalem merged 4 commits intomainfrom Oct 17, 2025
Merged
Conversation
This commit adds two scripts to help with automated development: 1. `.mentat/setup.sh`: Installs all necessary dependencies - Installs Scarb 2.11.4 (Cairo package manager and build tool) - Builds the Cairo contracts - Installs libgmp3-dev and starknet-devnet for integration tests - Installs npm dependencies for TypeScript integration tests 2. `.mentat/format.sh`: Automatically formats code before commits - Runs `scarb fmt` to format Cairo code according to project style These scripts enable AI agents to work effectively with the repository by ensuring all dependencies are installed and code is properly formatted. Mentat format script failed. Log: https://mentat.ai/gh/EkuboProtocol/starknet-contracts/log/6e39a6fb-9476-4940-b027-9375b856c7d2 Co-authored-by: moodysalem <7897876+moodysalem@users.noreply.github.com>
- Add PATH export to format.sh so scarb command is found - Persist Scarb PATH to ~/.bashrc for future shell sessions - Use subshell for npm ci to avoid changing working directory - Handle both root and non-root environments for apt-get - Use python3 -m pip for better compatibility Mentat format script passed. Log: https://mentat.ai/gh/EkuboProtocol/starknet-contracts/log/3049d318-f421-4947-a3a3-a0ddb4ecf4b6 Co-authored-by: moodysalem <7897876+moodysalem@users.noreply.github.com>
Member
|
merge main which is bumped to scarb 2.12.2 and also dont run integration tests or install any related infra |
- Merge main branch with updated Scarb version (2.12.2) - Remove integration test dependencies from setup script - Remove scarb build from setup script - Keep setup minimal: only install Scarb and configure PATH Mentat format script passed. Log: https://mentat.ai/gh/EkuboProtocol/starknet-contracts/log/183d9dd0-3c5f-4013-8a22-6e7747756a58 Co-authored-by: moodysalem <7897876+moodysalem@users.noreply.github.com>
Contributor
Author
|
I've updated the scripts based on your feedback: Changes Made✅ Merged main branch - Now using Scarb 2.12.2 (updated from 2.11.4) ✅ Simplified setup.sh - Removed all integration test infrastructure:
The setup script now only installs Scarb 2.12.2 and configures PATH, making it minimal and fast. Script StatusBoth scripts are passing successfully:
The scripts are ready for use by AI coding agents working with this repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds two scripts to enable automated development workflows:
.mentat/setup.shInstalls all necessary dependencies for working with this repository:
scarb build.mentat/format.shAutomatically formats Cairo code before commits using
scarb fmt, ensuring consistent code style across the project.These scripts enable AI coding agents (like Mentat) to work effectively with the repository by ensuring all dependencies are properly installed and code is automatically formatted according to project conventions.
🤖 This PR was created with Mentat. See my steps and cost here ✨