Metadata-Version: 2.4
Name: support-reply-fit
Version: 0.1.0
Summary: Local CLI and desktop reviewer for checking support replies against the original ticket.
Author: Haider Sattar
License-Expression: MIT
Project-URL: Homepage, https://github.com/iwaheedsattar/support-reply-fit
Project-URL: Repository, https://github.com/iwaheedsattar/support-reply-fit
Project-URL: Issues, https://github.com/iwaheedsattar/support-reply-fit/issues
Keywords: support,customer-success,productivity,cli,desktop,quality
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Customer Service
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Office/Business
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Support Reply Fit

![Support Reply Fit terminal report](docs/terminal-report.svg)

Support Reply Fit checks a drafted customer-support reply against the original ticket before it is sent. It is useful when a reply was drafted quickly, generated by an assistant, or assembled from multiple notes and you need a local quality pass for missing answers, risky promises, placeholders, tone gaps, and unclear follow-up.

It runs fully on your machine. There are no API keys, accounts, or network calls.

## Features

- CLI for Markdown, JSON, and self-contained HTML reports.
- Tkinter desktop app for pasting a ticket and reply side by side.
- Coverage checks for known-issue, data-safety, timeline, refund, workaround, and blocking-impact requests.
- Risk checks for placeholders, unsupported promises, vague timing, missing owners, thin question mirroring, and no follow-up path.
- `--fail-under` and `--fail-on-risky` modes for saved reply review or CI checks.
- Standard-library runtime only.

## Install

```bash
python3 -m pip install support-reply-fit
```

For local development:

```bash
python3 -m pip install -e .
```

## CLI

```bash
support-reply-fit examples/ticket.txt examples/reply.txt
support-reply-fit examples/ticket.txt examples/reply.txt --format html --output review.html
support-reply-fit examples/ticket.txt examples/reply.txt --format json
support-reply-fit ticket.txt reply.txt --fail-under 80 --fail-on-risky
```

## Desktop App

```bash
support-reply-gui
```

Paste the customer ticket on the left, paste the drafted reply on the right, then save Markdown or HTML.

## Output Example

```markdown
# Support Reply Fit: needs review (72)

## Coverage
- **known issue**: addressed (bug)
- **data safety**: addressed (data, safe)
- **timeline**: addressed (friday)

## Findings
- **WARNING - Missing ticket coverage**: Unanswered areas: refund
  - Suggestion: Answer each customer question or clearly route it to an owner.
```

## Development

```bash
python3 -m pytest
python3 -m build --no-isolation
python3 -m twine check dist/*
```
