Metadata-Version: 2.4
Name: raillog-cli
Version: 0.1.3
Summary: CLI for Raillog V2.0 — railway construction logistics planning
Author-email: Boschetti Engineering <info@boschetti-engineering.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/boschetti-engineering/raillog
Project-URL: Bug Tracker, https://github.com/boschetti-engineering/raillog/issues
Keywords: railway,logistics,planning,cli,construction
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
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 :: Utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: click>=8.1
Requires-Dist: httpx>=0.27
Requires-Dist: supabase>=2.7
Requires-Dist: rich>=13.7
Requires-Dist: python-dateutil>=2.9

# raillog-cli

Command-line interface for **Raillog V2.0** — a spatiotemporal logistics planning system for railway construction sites.

Manages waggons, Bauzüge (construction train groups), stations, tracks, and Fahrten (trips) within a time-bounded project. The core question the system answers: *"Where is waggon X at time T, and on which track?"*

## Install

```bash
pip install raillog-cli
```

Requires Python 3.11+. Connects to a Supabase backend — you need a Raillog project URL and credentials.

## Quick start

```bash
raillog auth login
raillog project list
raillog project select <n>
raillog context
```

## Agent integration (Claude Code, Cursor, Codex, Gemini, opencode)

After install, run once in your project directory:

```bash
raillog install-skill
```

This writes:
- `~/.claude/skills/raillog.md` — Claude Code skill (auto-loaded)
- `~/.claude/CLAUDE.md` — trigger phrase added
- `./AGENTS.md` — skill file for Cursor, Codex, Gemini CLI, opencode

For Cursor specifically, copy `AGENTS.md` to `.cursor/rules/raillog.mdc`.

## Commands

```
raillog auth         login, status, refresh, logout
raillog project      list, select, show, create
raillog station      list, show, create, update, delete, impact
raillog track        list, show, create, update, delete, impact, occupation
raillog waggon       list, show, create, update, delete, impact, types,
                     position, history, set-zustand, zustand
raillog bauzug       list, show, create, update, compose, delete, impact,
                     check-departure, history
raillog travel       list, show, create, update, delete, impact, validate
raillog restriction  list, show, create, delete
raillog query        suggest-track, track-occupation, track-capacity,
                     waggon-availability, conflicts
raillog install-skill
```

All write commands support `--dry-run` and `--yes`.
All list/query commands support `--json` for agent consumption.

## License

MIT
