Cost-effective AIDIS interactions with intelligent response parsing
Ridge-Code is a TypeScript CLI tool designed to reduce AIDIS tool call costs through intelligent response parsing and caching. This is the Phase 1 MVP implementation with 3 core commands.
ridge-code/
├── src/
│ ├── core/ # CLI engine components
│ ├── models/ # Provider adapters
│ ├── aidis/ # AIDIS integration
│ ├── response/ # Response handling
│ └── types/ # TypeScript interfaces
├── config/ # User configuration
├── bin/ # Executable entry point
└── tests/ # Test files
npm install
npm run build# Version check
./bin/ridge-code.js --version
# Help
./bin/ridge-code.js --help
# Available commands (Phase 1 MVP)
./bin/ridge-code.js ping # Test AIDIS connection
./bin/ridge-code.js help # Show help information# Build project
npm run build
# Development mode
npm run dev
# Linting
npm run lint
npm run lint:fix
# Formatting
npm run format
# Testing
npm test- Project structure and base setup
- CLI framework with Commander.js
- TypeScript configuration
- ESLint and Prettier setup
-
/aidis_store --contextcommand -
/aidis_pingcommand enhancement -
/helpcommand enhancement
- Language: TypeScript
- CLI Framework: Commander.js
- Styling: Chalk
- Prompts: Inquirer
- HTTP Client: Axios
- Build: TypeScript Compiler
- Linting: ESLint + Prettier
- Testing: Jest
MIT