nexor-runner 0.2.0__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.
- nexor_runner-0.2.0/.gitignore +10 -0
- nexor_runner-0.2.0/CHANGELOG.md +20 -0
- nexor_runner-0.2.0/LICENSE +21 -0
- nexor_runner-0.2.0/PKG-INFO +688 -0
- nexor_runner-0.2.0/README.md +659 -0
- nexor_runner-0.2.0/pyproject.toml +57 -0
- nexor_runner-0.2.0/src/nexor_runner/__init__.py +3 -0
- nexor_runner-0.2.0/src/nexor_runner/__main__.py +6 -0
- nexor_runner-0.2.0/src/nexor_runner/activity.py +477 -0
- nexor_runner-0.2.0/src/nexor_runner/agora.py +395 -0
- nexor_runner-0.2.0/src/nexor_runner/api.py +809 -0
- nexor_runner-0.2.0/src/nexor_runner/binaries.py +54 -0
- nexor_runner-0.2.0/src/nexor_runner/cards.py +137 -0
- nexor_runner-0.2.0/src/nexor_runner/channel.py +595 -0
- nexor_runner-0.2.0/src/nexor_runner/chatmodel.py +148 -0
- nexor_runner-0.2.0/src/nexor_runner/cli.py +642 -0
- nexor_runner-0.2.0/src/nexor_runner/config.py +124 -0
- nexor_runner-0.2.0/src/nexor_runner/env.py +29 -0
- nexor_runner-0.2.0/src/nexor_runner/importer.py +236 -0
- nexor_runner-0.2.0/src/nexor_runner/oc_chat.py +687 -0
- nexor_runner-0.2.0/src/nexor_runner/oc_map.py +289 -0
- nexor_runner-0.2.0/src/nexor_runner/opencode_service.py +404 -0
- nexor_runner-0.2.0/src/nexor_runner/remote.py +469 -0
- nexor_runner-0.2.0/src/nexor_runner/service.py +631 -0
- nexor_runner-0.2.0/src/nexor_runner/sessions.py +684 -0
- nexor_runner-0.2.0/src/nexor_runner/systemd.py +146 -0
- nexor_runner-0.2.0/src/nexor_runner/termpty.py +379 -0
- nexor_runner-0.2.0/src/nexor_runner/tmux.py +115 -0
- nexor_runner-0.2.0/src/nexor_runner/ws.py +255 -0
- nexor_runner-0.2.0/tests/conftest.py +36 -0
- nexor_runner-0.2.0/tests/enginefake.py +152 -0
- nexor_runner-0.2.0/tests/fixtures/activity/claude_idle.jsonl +7 -0
- nexor_runner-0.2.0/tests/fixtures/activity/claude_interrupted.jsonl +3 -0
- nexor_runner-0.2.0/tests/fixtures/activity/claude_noise.jsonl +7 -0
- nexor_runner-0.2.0/tests/fixtures/activity/claude_tool_pending.jsonl +3 -0
- nexor_runner-0.2.0/tests/fixtures/activity/claude_working.jsonl +8 -0
- nexor_runner-0.2.0/tests/fixtures/activity/codex_aborted.jsonl +3 -0
- nexor_runner-0.2.0/tests/fixtures/activity/codex_guardian.jsonl +2 -0
- nexor_runner-0.2.0/tests/fixtures/activity/codex_idle.jsonl +5 -0
- nexor_runner-0.2.0/tests/fixtures/activity/codex_working.jsonl +5 -0
- nexor_runner-0.2.0/tests/fixtures/claude-2.1.305-boxes.json +13 -0
- nexor_runner-0.2.0/tests/fixtures/claude-2.1.305-remote-control-flag.json +10 -0
- nexor_runner-0.2.0/tests/fixtures/claude-2.1.305-trust-dialog.json +8 -0
- nexor_runner-0.2.0/tests/test_activity.py +504 -0
- nexor_runner-0.2.0/tests/test_agora.py +556 -0
- nexor_runner-0.2.0/tests/test_api.py +544 -0
- nexor_runner-0.2.0/tests/test_binaries.py +84 -0
- nexor_runner-0.2.0/tests/test_channel.py +651 -0
- nexor_runner-0.2.0/tests/test_config_rc.py +589 -0
- nexor_runner-0.2.0/tests/test_import.py +267 -0
- nexor_runner-0.2.0/tests/test_oc_chat.py +480 -0
- nexor_runner-0.2.0/tests/test_oc_map.py +563 -0
- nexor_runner-0.2.0/tests/test_opencode_service.py +445 -0
- nexor_runner-0.2.0/tests/test_rc_flag.py +589 -0
- nexor_runner-0.2.0/tests/test_rc_single_typist.py +747 -0
- nexor_runner-0.2.0/tests/test_runner.py +298 -0
- nexor_runner-0.2.0/tests/test_scope.py +261 -0
- nexor_runner-0.2.0/tests/test_service.py +693 -0
- nexor_runner-0.2.0/tests/test_termpty.py +469 -0
- nexor_runner-0.2.0/tests/test_ws.py +157 -0
- nexor_runner-0.2.0/tests/wsfake.py +159 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/), and the project aims to follow
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
_Nothing yet._
|
|
10
|
+
|
|
11
|
+
## [0.2.0] - 2026-10-22
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- **Published on PyPI.** `pipx install nexor-runner` (or `pip install --user nexor-runner`) installs it with no repository access. A new `nexor-runner` console script sits next to the historical `runner` one, and `python -m nexor_runner` works too (the systemd units use it, so they follow the interpreter the package is installed in).
|
|
15
|
+
- **`nexor-runner install-service`** (Linux): writes the systemd --user units (`nexor-runner-tmux`, `nexor-runner-api`, and `nexor-runner-agora` when linked), creates the config directory (0700) and the API token (0600), links the runner to the hub from `--hub` plus a token file / stdin / `NEXOR_RUNNER_HUB_TOKEN` (copied to a 0600 file, never printed or put in a unit), enables and starts them. Idempotent; re-run it with no flags after an upgrade. It never stops or restarts `nexor-runner-tmux` (it hosts the running sessions): only the API and agora units are restarted. `--dry-run` prints everything and changes nothing.
|
|
16
|
+
- **`nexor-runner uninstall-service`**: removes the API and agora units; `--include-tmux` also removes the tmux one (which ends every session); `--unlink` also forgets the hub link; `--purge-config` also deletes `config.json`, the API token, the copied hub token and the link (never the cards directory or session state).
|
|
17
|
+
- **`--allow-insecure-hub`** on `link` and `install-service` (or `NEXOR_RUNNER_ALLOW_INSECURE_HUB=1`): explicit opt-in for a plain-http hub on a trusted network such as the VPN. https stays the default (http only for loopback); every use prints a one-line warning, and the choice is stored as `insecure: true` in `agora.json` so the agora unit keeps working.
|
|
18
|
+
- **`nexor-runner doctor [--json]`**: checks tmux, the claude/codex/opencode CLIs, the units, linger, `GET /health` and the hub link; exit 1 when a check fails.
|
|
19
|
+
- macOS and Windows: no service installer; `install-service` prints how to run `serve` and `agora` in the foreground and exits 3.
|
|
20
|
+
- Release tooling: `scripts/release.sh`, `RELEASE.md`, a tag-triggered PyPI workflow (Trusted Publishing) and a build + `twine check` CI job.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nexor-runner contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|