Metadata-Version: 2.4
Name: diagrid-cli
Version: 0.5.4
Summary: diagridpy CLI: scaffold, deploy and chaos-test durable AI agents on Dapr and Diagrid
License: # DIAGRID INC BUSINESS SOURCE LICENSE AGREEMENT
        
        ## Business Source License 1.1
        
        **Licensor:** Diagrid Inc
        **Licensed Work:** Diagrid AI Infrastructure SDK for Python
        The Licensed Work is © 2026–Present Diagrid Inc.
        
        ---
        
        # Additional Use Grant
        
        The Licensor grants permission to make production use of the Licensed Work without purchasing a commercial license **only if all of the following conditions are satisfied**.
        
        ## 1. Organization size
        
        The organization using the Licensed Work:
        
        - Has fewer than **sixty (60) full-time equivalent employees**, and
        - Has less than **fifteen million U.S. dollars (USD $15,000,000) in annual gross revenue**, and
        - Is not directly or indirectly controlled by, controlling, under common control with, **or acting on behalf of** an entity that exceeds either of the above thresholds.
        
        ## 2. Prohibited uses
        
        The Licensed Work may **not** be used in production if it is:
        
        - Offered as a **managed, hosted, or Software-as-a-Service (SaaS) offering**, or
        
        - Included in, embedded within, or redistributed as part of any **product or service whose primary or substantial purpose** is to provide:
        
          - workflow orchestration
          - durable execution
          - agent runtime infrastructure
          - agent frameworks
          - distributed workflow systems
          - or other competing infrastructure functionality
        
        - Commercially redistributed, sublicensed, or made available to third parties **for a fee or as part of a commercial offering**, or
        
        - Used to **develop, operate, or power any product, platform, or service that provides functionality substantially similar to or competitive with the Licensor's commercial products or services**, including but not limited to:
        
          - agent runtime infrastructure
          - durable execution platforms
          - workflow orchestration systems
          - managed agent platforms
          - or other competing infrastructure platforms
        
          This restriction applies **regardless of whether the Licensed Work is distributed to third parties or used internally** to power such a service.
        
        Any production use that does **not satisfy all of the above conditions** requires a valid commercial license from **Diagrid Inc**.
        
        The Additional Use Grant above **supersedes the “non-production use” limitation** described in the Terms section for users who meet these conditions.
        
        ---
        
        # Change Date
        
        **Change Date:** March 1, 2030
        
        On the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License (whichever comes first), the Licensed Work will automatically be licensed under:
        
        **Apache License, Version 2.0**
        
        ---
        
        # Notice
        
        This license is based on the Business Source License 1.1 with
        modifications by Diagrid Inc.
        
        The MariaDB covenant provisions have been removed and the
        Change License has been designated as the Apache License,
        Version 2.0.
        
        “Business Source License” is a trademark of MariaDB Corporation Ab.
        
        ---
        
        # Terms
        
        The Licensor hereby grants You the right to:
        
        - copy
        - modify
        - create derivative works
        - redistribute
        - and make **non-production use**
        
        of the Licensed Work.
        
        Production use is permitted only as allowed under the **Additional Use Grant**.
        
        All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License.
        
        This License applies separately for each version of the Licensed Work, and the Change Date may vary for each version released by the Licensor.
        
        You must conspicuously display this License on each original or modified copy of the Licensed Work.
        
        If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
        
        ---
        
        # License Condition
        
        The rights granted under this License are **conditioned upon compliance with all terms and restrictions of this License**.
        
        Any use of the Licensed Work that does not comply with these terms **constitutes copyright infringement** and automatically terminates the rights granted under this License for the current and all other versions of the Licensed Work.
        
        ---
        
        This License does **not grant you any right to use any trademark, service mark, or logo** of Diagrid Inc or its affiliates.
        
        ---
        
        # Disclaimer
        
        TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN **"AS IS" BASIS**.
        
        LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO:
        
        - MERCHANTABILITY
        - FITNESS FOR A PARTICULAR PURPOSE
        - NON-INFRINGEMENT
        - TITLE
        
Project-URL: Homepage, https://www.diagrid.io/platform
Project-URL: Documentation, https://docs.diagrid.io
Project-URL: Source, https://github.com/diagridio/python-ai
Project-URL: Issues, https://github.com/diagridio/python-ai/issues
Project-URL: Examples, https://github.com/diagridio/python-ai/tree/main/examples
Keywords: durable-execution,ai-agents,dapr,diagrid,cli,chaos-engineering
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: diagrid-core>=0.1.0
Requires-Dist: click>=8.1.0
Requires-Dist: rich>=13.0.0
Dynamic: license-file

# Diagrid CLI

The Diagrid CLI (`diagridpy`) is a command-line tool for managing Diagrid Catalyst resources, deploying agents, and running chaos experiments.

## Community

Have questions, hit a bug, or want to share what you're building? Join the [Diagrid Community Discord](https://diagrid.ws/diagrid-community) to connect with the team and other users.

## Installation

The `diagridpy` executable ships with the main `diagrid` package:

```bash
pip install diagrid
```

Installing the standalone `diagrid-cli` distribution gives you the CLI library code only — it declares no console script, so it installs no `diagridpy` executable.

## Usage

The CLI provides three commands. Run `diagridpy --help` to see all available commands.

Global flags:

- `-v`, `--verbose` — show subprocess output
- `--env {prod,staging}` — target the prod or staging Diagrid API

### Commands

#### Initialization
Initialize a local agent development environment (Catalyst project, Kind cluster, Helm install).

```bash
diagridpy init
```

#### Deployment
Build and deploy your agent to the Kind cluster.

```bash
diagridpy deploy
```

#### Chaos
Manage Chaos Mesh experiments for agent resilience testing.

```bash
# Start chaos experiments against deployed agents
diagridpy chaos start

# Show active chaos experiments
diagridpy chaos status

# Stop and delete all chaos experiments
diagridpy chaos stop
```

## Configuration

The CLI manages configuration and authentication.

- **Authentication:** Supports API key and device code authentication flows for connecting to Diagrid Catalyst.
- **Environment:** The global `--env {prod,staging}` flag selects which Diagrid API the CLI talks to.
