JSPM

  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q87562F

Sweet CLI — AI software engineer in your terminal (agent-only).

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sweet-cli/sweet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Sweet CLI

    Your AI software engineer in the terminal. Search, edit, run, and ship at thought speed.

    Features

    • AI-powered code generation and editing
    • Terminal-based workflow
    • Project-aware operations
    • Built-in testing and validation

    Installation

    Requires Node.js 18+.

    npm install -g @sweet-cli/sweet
    sweet --version

    Sign in

    Use passwordless login from the CLI:

    sweet login

    Billing lives on the website (view balance, load credits via Stripe, view usage): https://167.172.236.171.sslip.io/billing.html

    Usage

    Start a session

    sweet start "Fix lint errors and run tests"

    Useful options

    • --resume-last – resume your last session
    • --session <id> – resume a specific session id
    • -p, --provider <provider>deepseek (default) or nebius
    • -m, --model <model> – override model name

    Other commands

    sweet sessions   # list recent sessions
    sweet init       # create a SWEET.md guidance file in the repo

    Development

    Project Structure

    sweet-cli/
    ├── bin/
    │   └── sweet.js          # Main CLI entry point
    ├── src/
    │   ├── billing.js         # Billing and authentication
    │   ├── commands/         # CLI command implementations
    │   └── utils/            # Utility functions
    ├── __tests__/          # Test files
    ├── scripts/           # Build and utility scripts
    └── docs/              # Documentation

    Setup

    # Clone the repository
    git clone <repository-url>
    cd sweet-cli
    
    # Install dependencies
    npm install
    
    # Run tests
    npm test
    
    # Check syntax
    npm run lint

    Testing

    The project uses Node.js built-in test runner:

    # Run all tests
    npm test
    
    # Run tests in watch mode
    npm run test:watch

    Code Quality

    Basic syntax validation is available:

    # Check syntax of all JavaScript files
    npm run lint

    Behavior & Safeguards

    • The agent will not start if you're logged out or out of credits; it prints the billing URL.
    • Streaming model output for fast feedback; tool output is truncated for readability.
    • Aggressive context management to stay within token limits.

    Configuration

    • Auth token is stored at ~/.sweet/config.json.
    • The CLI is preconfigured to use the hosted billing/API. No setup required.

    Notes

    • Run from your project root for best results.
    • Node 18+ is required.
    • For development, ensure you have proper permissions and environment setup.

    Contributing

    1. Fork the repository
    2. Create a feature branch
    3. Make your changes
    4. Run tests to ensure everything works
    5. Submit a pull request

    License

    [Add appropriate license information]