sto-warp 0.1.0.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sto_warp-0.1.0.dev0/.gitignore +56 -0
- sto_warp-0.1.0.dev0/CHANGELOG.md +48 -0
- sto_warp-0.1.0.dev0/INSTALLATION.md +71 -0
- sto_warp-0.1.0.dev0/LICENSE +674 -0
- sto_warp-0.1.0.dev0/PKG-INFO +776 -0
- sto_warp-0.1.0.dev0/PROJECT_CONTEXT.md +183 -0
- sto_warp-0.1.0.dev0/README.md +59 -0
- sto_warp-0.1.0.dev0/packaging/aur/README.md +56 -0
- sto_warp-0.1.0.dev0/pyproject.toml +81 -0
- sto_warp-0.1.0.dev0/warp/__init__.py +3 -0
- sto_warp-0.1.0.dev0/warp/build_writer.py +539 -0
- sto_warp-0.1.0.dev0/warp/cli.py +93 -0
- sto_warp-0.1.0.dev0/warp/config.py +42 -0
- sto_warp-0.1.0.dev0/warp/data/__init__.py +8 -0
- sto_warp-0.1.0.dev0/warp/data/asset_sync.py +371 -0
- sto_warp-0.1.0.dev0/warp/data/baseline/boff_abilities.json +1 -0
- sto_warp-0.1.0.dev0/warp/data/baseline/equipment.json +1 -0
- sto_warp-0.1.0.dev0/warp/data/baseline/ship_list.json +1 -0
- sto_warp-0.1.0.dev0/warp/data/baseline/starship_traits.json +1 -0
- sto_warp-0.1.0.dev0/warp/data/baseline/traits.json +1 -0
- sto_warp-0.1.0.dev0/warp/data/cargo.py +476 -0
- sto_warp-0.1.0.dev0/warp/data/empty_build.py +80 -0
- sto_warp-0.1.0.dev0/warp/debug.py +135 -0
- sto_warp-0.1.0.dev0/warp/folder_picker.py +370 -0
- sto_warp-0.1.0.dev0/warp/gui/__init__.py +6 -0
- sto_warp-0.1.0.dev0/warp/gui/desktop_install.py +123 -0
- sto_warp-0.1.0.dev0/warp/gui/launcher.py +192 -0
- sto_warp-0.1.0.dev0/warp/gui/log_view.py +195 -0
- sto_warp-0.1.0.dev0/warp/gui/preview_view.py +252 -0
- sto_warp-0.1.0.dev0/warp/gui/sync_coordinator.py +198 -0
- sto_warp-0.1.0.dev0/warp/gui/warp_window.py +449 -0
- sto_warp-0.1.0.dev0/warp/knowledge/__init__.py +0 -0
- sto_warp-0.1.0.dev0/warp/knowledge/community_crops.py +97 -0
- sto_warp-0.1.0.dev0/warp/knowledge/sync_client.py +386 -0
- sto_warp-0.1.0.dev0/warp/recognition/__init__.py +0 -0
- sto_warp-0.1.0.dev0/warp/recognition/boff_keys.py +158 -0
- sto_warp-0.1.0.dev0/warp/recognition/boff_marker.py +611 -0
- sto_warp-0.1.0.dev0/warp/recognition/eq_geometry.py +605 -0
- sto_warp-0.1.0.dev0/warp/recognition/ground_eq_geometry.py +507 -0
- sto_warp-0.1.0.dev0/warp/recognition/icon_matcher.py +887 -0
- sto_warp-0.1.0.dev0/warp/recognition/layout_detector.py +2911 -0
- sto_warp-0.1.0.dev0/warp/recognition/screen_classifier.py +251 -0
- sto_warp-0.1.0.dev0/warp/recognition/text_extractor.py +971 -0
- sto_warp-0.1.0.dev0/warp/recognition/trait_grid.py +520 -0
- sto_warp-0.1.0.dev0/warp/resources/SETS_icon_small.png +0 -0
- sto_warp-0.1.0.dev0/warp/resources/__init__.py +20 -0
- sto_warp-0.1.0.dev0/warp/resources/warp.jpg +0 -0
- sto_warp-0.1.0.dev0/warp/resources/warp_core_icon.png +0 -0
- sto_warp-0.1.0.dev0/warp/sets_export.py +105 -0
- sto_warp-0.1.0.dev0/warp/style.py +331 -0
- sto_warp-0.1.0.dev0/warp/tools/__init__.py +0 -0
- sto_warp-0.1.0.dev0/warp/tools/approve_staging.py +192 -0
- sto_warp-0.1.0.dev0/warp/tools/check_db.py +77 -0
- sto_warp-0.1.0.dev0/warp/tools/debug_fetch.py +100 -0
- sto_warp-0.1.0.dev0/warp/tools/make_baseline.py +70 -0
- sto_warp-0.1.0.dev0/warp/tools/scraper.py +557 -0
- sto_warp-0.1.0.dev0/warp/tools/test_pipeline.py +301 -0
- sto_warp-0.1.0.dev0/warp/trainer/__init__.py +0 -0
- sto_warp-0.1.0.dev0/warp/trainer/annotation_widget.py +878 -0
- sto_warp-0.1.0.dev0/warp/trainer/model_updater.py +439 -0
- sto_warp-0.1.0.dev0/warp/trainer/ocr_diag.py +142 -0
- sto_warp-0.1.0.dev0/warp/trainer/screen_type_trainer.py +397 -0
- sto_warp-0.1.0.dev0/warp/trainer/sync.py +798 -0
- sto_warp-0.1.0.dev0/warp/trainer/trainer_window.py +3504 -0
- sto_warp-0.1.0.dev0/warp/trainer/training_data.py +792 -0
- sto_warp-0.1.0.dev0/warp/ui_helpers.py +40 -0
- sto_warp-0.1.0.dev0/warp/userdata.py +318 -0
- sto_warp-0.1.0.dev0/warp/warp_importer.py +2497 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.venv/
|
|
6
|
+
.python/
|
|
7
|
+
|
|
8
|
+
# Build/dist
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
|
|
12
|
+
# IDE
|
|
13
|
+
.idea/
|
|
14
|
+
.vscode/
|
|
15
|
+
|
|
16
|
+
# Claude Code local config
|
|
17
|
+
.claude/
|
|
18
|
+
|
|
19
|
+
# Editor / OS
|
|
20
|
+
*.bak
|
|
21
|
+
*.orig
|
|
22
|
+
.DS_Store
|
|
23
|
+
|
|
24
|
+
# Runtime
|
|
25
|
+
*.log
|
|
26
|
+
.env
|
|
27
|
+
.config/
|
|
28
|
+
*.ini
|
|
29
|
+
..debug/
|
|
30
|
+
|
|
31
|
+
# WARP runtime (downloaded at first run; user-local)
|
|
32
|
+
warp/models/
|
|
33
|
+
# warp/data/baseline/ IS committed (offline fallback snapshot).
|
|
34
|
+
# Everything else under warp/data/ is local/runtime.
|
|
35
|
+
warp/data/icons/
|
|
36
|
+
warp/data/item_db.json
|
|
37
|
+
warp/data/cache/
|
|
38
|
+
warp/knowledge/knowledge_cache.json
|
|
39
|
+
warp/knowledge/install_id.txt
|
|
40
|
+
warp/knowledge/rate_limit.json
|
|
41
|
+
warp/hub_token.txt
|
|
42
|
+
warp/training_data/
|
|
43
|
+
|
|
44
|
+
# Local-only developer diagnostics
|
|
45
|
+
tests/diag_*.py
|
|
46
|
+
tests/_diag_out/
|
|
47
|
+
|
|
48
|
+
# Maintainer review tools — superseded by the democratic merger cron,
|
|
49
|
+
# kept locally for emergency one-shot use.
|
|
50
|
+
warp/tools/review_staging.py
|
|
51
|
+
warp/tools/conflict_reviewer.py
|
|
52
|
+
staging_review.json
|
|
53
|
+
conflict_decisions.json
|
|
54
|
+
|
|
55
|
+
# Backup directories from upstream migration
|
|
56
|
+
*_backup_*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to **sto-warp** will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Initial repository scaffold split out from `sets-warp`.
|
|
12
|
+
- `warp.debug` standalone logger replaces `src.setsdebug`; split into
|
|
13
|
+
detection / system channels (`warp_detection.log` / `warp_system.log`).
|
|
14
|
+
- Foundation modules ported from `sets-warp/warp/`:
|
|
15
|
+
- `warp.recognition` — `boff_keys`, `boff_marker`, `eq_geometry`,
|
|
16
|
+
`ground_eq_geometry`, `icon_matcher`, `layout_detector`,
|
|
17
|
+
`screen_classifier`, `text_extractor`, `trait_grid`.
|
|
18
|
+
- `warp.trainer` — `ocr_diag`, `screen_type_trainer`.
|
|
19
|
+
- `warp.knowledge` — `sync_client`.
|
|
20
|
+
- Standalone GUI (`sto-warp` / `sto-warp gui`) — `warp.gui.warp_window.WarpWindow`
|
|
21
|
+
replaces the SETS-coupled `warp_dialog.py`:
|
|
22
|
+
- **Open Screenshot…** (single-file picker) and **Open Folder…** routed
|
|
23
|
+
through custom split-pane pickers; last-used dirs persisted.
|
|
24
|
+
- **Force build type** toggle: off → AUTO mode (per-image classification);
|
|
25
|
+
on → combo value forced on every image. State persisted via QSettings.
|
|
26
|
+
- **Results** tab: tree grouped by slot, ship banner with name/type/tier.
|
|
27
|
+
- **Preview** tab: bbox overlay coloured per slot family (weapons red,
|
|
28
|
+
BOFF orange, traits green, spec magenta, consoles violet, EQ blue,
|
|
29
|
+
ground EQ cyan).
|
|
30
|
+
- **Export to SETS JSON…**: SETS v3.0.0-compatible build file.
|
|
31
|
+
- AUTO build-type mode + 3-factor cross-image merge in `WarpImporter`
|
|
32
|
+
(0.3 · geometry + 0.3 · sibling + 0.4 · recog) replaces per-slot max-conf
|
|
33
|
+
merging across same-typed screenshots.
|
|
34
|
+
- Launcher (`warp.gui.launcher.LauncherWindow`) hosts WARP, WARP CORE,
|
|
35
|
+
Detection logs and System logs as tabs; `🔄 Refresh` button in the status
|
|
36
|
+
bar manually re-runs the community sync.
|
|
37
|
+
- Detection logs view: terminal-like auto-tail with preserved horizontal
|
|
38
|
+
scroll, fresh recognition runs wipe the live view; Open-folder button
|
|
39
|
+
opens the log directory.
|
|
40
|
+
- Full `docs/` tree carried over from `sets-warp` (planning files pruned).
|
|
41
|
+
|
|
42
|
+
### Pending
|
|
43
|
+
- Cargo data loader fetching from `STOCD/SETS-Data` (strategy iii), cache
|
|
44
|
+
under `~/.config/warp/cache/`.
|
|
45
|
+
- `pyproject.toml` for pipx distribution; `sto-warp` console entry point.
|
|
46
|
+
- Standalone replacements for the WARP CORE trainer UI files that still
|
|
47
|
+
depend on the SETS Qt scaffolding.
|
|
48
|
+
- Native packaging recipes (AUR, .deb, .rpm, Windows MSI/EXE).
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Installation Guide
|
|
2
|
+
|
|
3
|
+
**STO-WARP** is distributed as a standalone Python package. Because it relies on heavy machine learning libraries (like PyTorch) and a GUI framework (PySide6), we highly recommend installing it in an isolated environment using **`pipx`**.
|
|
4
|
+
|
|
5
|
+
To make this as easy as possible, we provide universal installation scripts for both Linux/macOS and Windows.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🚀 The Easy Way (One-Command Install)
|
|
10
|
+
|
|
11
|
+
### Linux & macOS
|
|
12
|
+
Open your terminal and run the following command:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
curl -sSL https://raw.githubusercontent.com/raman78/sto-warp/main/install.sh | bash
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**What this does:**
|
|
19
|
+
1. Verifies you have Python installed.
|
|
20
|
+
2. Checks for `pipx`. If missing, it installs `pipx` via your system's package manager (`apt`, `dnf`, `pacman`, or `brew`).
|
|
21
|
+
3. Installs `sto-warp` in an isolated environment.
|
|
22
|
+
4. Makes the `sto-warp` command globally available.
|
|
23
|
+
|
|
24
|
+
### Windows
|
|
25
|
+
Open **PowerShell** and run the following command:
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/raman78/sto-warp/main/install.ps1" -OutFile "install.ps1"; .\install.ps1; Remove-Item "install.ps1"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**What this does:**
|
|
32
|
+
1. Checks if Python is installed. If not, installs it via Windows Package Manager (`winget`).
|
|
33
|
+
2. Checks if `pipx` is installed. If not, installs it.
|
|
34
|
+
3. Installs `sto-warp` globally so you can launch it from anywhere.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🛠️ The Manual Way (Using pipx)
|
|
39
|
+
|
|
40
|
+
If you prefer to handle the installation yourself, ensure you have Python 3.14+ installed on your system.
|
|
41
|
+
|
|
42
|
+
1. **Install pipx**
|
|
43
|
+
Follow the [official pipx installation instructions](https://pipx.pypa.io/stable/installation/) for your operating system.
|
|
44
|
+
|
|
45
|
+
2. **Install sto-warp**
|
|
46
|
+
```bash
|
|
47
|
+
pipx install sto-warp
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
3. **Verify the installation**
|
|
51
|
+
```bash
|
|
52
|
+
sto-warp check
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 🔄 Updating STO-WARP
|
|
56
|
+
|
|
57
|
+
Regardless of how you installed it, since `sto-warp` is managed by `pipx`, you can always update to the latest version by running:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pipx upgrade sto-warp
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 🗑️ Uninstalling
|
|
64
|
+
|
|
65
|
+
To completely remove `sto-warp` and all its dependencies from your system:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pipx uninstall sto-warp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
*(Note: Downloaded data and machine learning models cached in `~/.config/warp/` are not removed automatically. You can delete that folder manually if you wish to clear all data).*
|