Metadata-Version: 2.4
Name: cambio-promptai
Version: 1.0.0
Summary: A comprehensive CLI tool for managing enterprise AI prompts with integrated Bitbucket workflow
Home-page: https://scm.devops.cambio.se/scm/~shaithra.vilvarashah/prompt_lib_sdk_v0.1.git
Author: Shaithra Vilvarashah
Author-email: Shaithra.Vilvarashah@cambio.lk
License: Proprietary
Project-URL: Source, https://scm.devops.cambio.se/scm/~shaithra.vilvarashah/prompt_lib_sdk_v0.1.git
Keywords: ai prompts cli bitbucket workflow automation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Shells
Classifier: Topic :: Text Processing :: Markup
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: jsonschema>=4.17.0
Requires-Dist: requests>=2.31.0
Requires-Dist: rich>=13.0.0
Requires-Dist: gitpython>=3.1.0
Requires-Dist: python-dotenv>=1.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# cambio-promptai SDK

A comprehensive CLI tool for managing prompts as code with integrated Bitbucket workflow.

> **INTERNAL USE ONLY**  
> This package is proprietary software for Cambio Healthcare Systems employees only.  

## Installation

```bash
pip install cambio-promptai
```

## Quick Start

### 1. Create Bitbucket Token

Before using promptai, create a Bitbucket HTTP Access Token:

1. Go to: https://scm.devops.cambio.se
2. Click your profile → **Manage account** → **HTTP access tokens**
3. Click **Create token**
4. **Token name**: `promptai-cli` (or any name you prefer)
5. **Permissions**: ✅ **Write** (required for publishing)
6. **Expiry**: ✅ **No expiration**
7. Copy the generated token

### 2. Login (First Time Setup)

```bash
promptai login
```

You'll be prompted for:
- **Bitbucket HTTP token** (the token you just created)
- **Username** (e.g., `john.doe`)
- **Email** (format: `firstname.lastname@cambio.lk`)

Your credentials are securely stored in `~/.promptx/credentials.json`

### 3. Check Login Status

```bash
promptai whoami
```

### 4. Start Creating Prompts

```bash
promptai init
```

This opens an interactive menu where you can create, test, and publish prompts.

## Available Commands

To see all available commands:

```bash
promptai --help
```

### Main Commands:

- `promptai login` - Authenticate with your Bitbucket credentials
- `promptai logout` - Remove stored credentials
- `promptai whoami` - Check current login status
- `promptai init` - Interactive menu for creating and managing prompts
- `promptai browse` - Browse existing prompts from repository
- `promptai test <draft-folder>` - Validate a specific draft


## Requirements

- Python 3.8+
- Git installed and in PATH
- Bitbucket access token with **write permissions** and **no expiration**



