Metadata-Version: 2.4
Name: cicd-jobs-monitor
Version: 0.4.6
Summary: Generic GitLab CI/CD pipeline and jobs monitor (htop-style TTY)
Author: Hammed Ramdani, SIMOHRA SAS
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://gitlab.com/hammedRamdani/cicd-jobs-monitor
Project-URL: Repository, https://gitlab.com/hammedRamdani/cicd-jobs-monitor
Project-URL: Issues, https://gitlab.com/hammedRamdani/cicd-jobs-monitor/-/issues
Keywords: gitlab,cicd,pipeline,monitor,cli
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# cicdmon

Pipelines still have to tell the truth.

You ship faster than last year — you, a teammate, sometimes an agent
that opened the merge request at 2 a.m. That mix is normal now. What
is not optional is a CI/CD story you can **read**, **trust**, and
**watch**: who ran what, what failed, what actually deployed.

`cicdmon` is a GitLab dashboard that lives in the terminal, like
`htop`. It stays open. It redraws in place. It follows the
orchestrator, the child pipelines, and the jobs that ran on their own.
Read-only (`read_api`). Python 3.10+, **no extra libraries**.

If it earns a slot next to your editor, [star the project on
GitLab](https://gitlab.com/hammedRamdani/cicd-jobs-monitor). If a
corner is wrong, or you need a sharper signal for a human+agent repo,
[open an issue](https://gitlab.com/hammedRamdani/cicd-jobs-monitor/-/issues)
or a merge request. Small, boring improvements are welcome.

**Package (pip):** `cicd-jobs-monitor`  
**Command:** `cicdmon` (also `cicd-monitor`)  
**Site:** [cicdmon.org](https://cicdmon.org) · hub [cicdmon.cloud](https://cicdmon.cloud)  
**License:** [AGPL-3.0-or-later](LICENSE)

| You want | Read this |
|---|---|
| Install and log in | [docs/INSTALL.md](docs/INSTALL.md) |
| Everyday commands | [docs/USAGE.md](docs/USAGE.md) |
| Cloud dashboard + notify | [docs/CLOUD.md](docs/CLOUD.md) |
| Domains + VPS deploy | [docs/DEPLOY.md](docs/DEPLOY.md) |
| Specs (CLI, hub, website, design) | [docs/specs/README.md](docs/specs/README.md) |
| Notes for agents and scripts | [AGENTS.md](AGENTS.md) |
| What changed | [CHANGELOG.md](CHANGELOG.md) |

## 60-second start

```bash
pipx install cicd-jobs-monitor

glab auth login                          # or: export GITLAB_TOKEN=glpat-…
cd your-gitlab-repo
cicdmon                                  # uses .cicd-monitor.yml if present
cicdmon --project group/my-app
```

Quit with `Ctrl+C`. `--once` prints one snapshot and exits (`0` / `1` / `2` / `130`).

## What you can do

| Goal | Command |
|---|---|
| Watch active runs | `cicdmon` |
| One snapshot | `cicdmon --once` |
| Pin a pipeline id | `cicdmon --pipeline 42` |
| Self-managed GitLab | `cicdmon --host https://gitlab.example --project group/app` |
| Token file (raw token, not `KEY=value`) | `cicdmon --token-file ~/.config/cicd-monitor/token` |

Auth order: `--token-file` → `GITLAB_TOKEN` / `GITLAB_OAUTH_TOKEN` → `.env` → **glab** for this repo’s host. Details: [docs/INSTALL.md](docs/INSTALL.md).

## When the build should poke you

Desktop banners stay optional (`--notify`). For **mail, Slack, Teams,
Trello, Notion**, or a **lamp on the desk**, `cicdmon` does not grow
OS plugins. It sends one **UDP** packet to a small cloud you host
(`cicdmon-cloud` in `cloud/` — Rust, Axum, Postgres). That hub holds
accounts, teams, projects, and later the channel settings. The laptop
stays boring on purpose.

The dashboard is server-rendered HTML (no npm app): register / sign
in, forgot password, **My profile**, **My teams**, and **Projects**
where you assign users and teams many-to-many. Fan-out plugins are
still placeholders. Contract: [docs/specs/CLOUD.md](docs/specs/CLOUD.md).

Events: build succeeded, deploy succeeded, canceled — and **panic**
when a build breaks.

```bash
# after you created an account and a hub token on Security
export CICD_MONITOR_CLOUD_HOST=cicdmon.cloud
# token: ~/.config/cicd-monitor/cloud.token  (or CICD_MONITOR_CLOUD_TOKEN_FILE)
cicdmon
```

How to run the hub: [docs/CLOUD.md](docs/CLOUD.md).

## Use it in your own repo

Drop `.cicd-monitor.yml` at the **git root**. Paths are enough.

```yaml
schema: 1
name: my-app
host: https://gitlab.com
orchestrator:
  path: my-group/my-cicd
children:
  - { path: my-group/backend, label: backend }
presets:
  DEPLOY_DEV: trigger_deploy_dev
notify:
  cloud_host: cicdmon.cloud   # optional; token stays in env / file
```

Example: [profiles/example.yml](profiles/example.yml). Real org maps
belong in `.cicd-monitor.yml` or `~/.config/cicd-monitor/`.

## This repo is a workshop

Human review and agent-written diffs will keep arriving. The monitor
should stay **clear, professional, and exploitable**: a status you can
act on, not a wall of YAML. If you use `cicdmon` in that mix — or you
want a calmer panic signal — say so. Stars help people find it. Merge
requests make it more useful than we can alone.

```bash
python3 -m pip install -e '.[dev]'
python3 -m pytest
python3 scripts/build_zipapp.py
```

## Copyright

Copyright (C) 2026 Hammed Ramdani / SIMOHRA SAS

This program is free software under AGPL-3.0-or-later. If you run a
modified version as a network service, you must offer the corresponding
source to its users.
