nightshift-client
nightshift-client is the client-side Python package for the Nightshift tracker.
Installation
cd nightshift-client
pip install -e .
Python API
from nightshift_client import NightshiftClient
client = NightshiftClient(repo_path=".", identity="user@example.com")
Issue Creation
issue_id = client.create_issue("Fix the bug", "Detailed description here")
client.push()
Monitoring State
state = client.check_state(issue_id)
# Returns: "open", "working", "waiting:question", "waiting:review",
# "waiting:human-review", "suspended:*", "closed", etc.
Q&A Flow
question = client.get_pending_question(issue_id)
if question:
client.post_answer(issue_id, "The answer is 42")
client.push()
Remote Commands
Trigger orchestration commands on the nightshift host via tracker comments.
These post @nightshift <command> comments that the watcher scans and executes.
# Accept completed work (merge agent branch to master)
client.accept(issue_id)
# Reject work (discard agent branch)
client.reject(issue_id)
# Request revisions with feedback
client.revise(issue_id, "Please add error handling for the edge case")
# Resume a suspended session
client.resume(issue_id)
client.resume(issue_id, prompt="Continue from where you left off")
Protocol: Each method posts a comment (e.g., @nightshift accept) and pushes.
The watcher scans for these comments during sync and executes the corresponding
CLI command. Result comments (✓ Accepted or ✗ Failed: ...) are posted back.
Sync
client.push() # Push local changes to remote
client.pull() # Pull remote changes
CLI usage
nightshift-client daemon status --repo .
nightshift-client daemon start --repo .
nightshift-client daemon stop --repo .
Metadata
Release files for nightshift-client 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nightshift_client-0.1.7.tar.gz | 21.8 kB | Without provenance | Details for nightshift_client-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nightshift_client-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for nightshift_client-0.1.7-py3-none-any.whl |
Total release size: 38.5 kB
Release files / nightshift_client-0.1.7.tar.gz
| Download URL | nightshift_client-0.1.7.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42b6c195d4d4f8f7b455e97d04aa9fe2821fea9ef1cfc96afe5ffb3f21997ad5
|
|
BLAKE2b-256 checksum How to use checksums |
dafa66afda093d9e3af6786f72eec618bdd66d5e6619dbc2d976e78447aebf36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / nightshift_client-0.1.7-py3-none-any.whl
| Download URL | nightshift_client-0.1.7-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fac06f92abff9609d4cf3ecfa90ecae0e743249dbaf5035072e1b88ce90a7a6
|
|
BLAKE2b-256 checksum How to use checksums |
c2f6661d8bad21de0c9c9582d6d580e3c80f3d6dd70226625e4fafbb896633ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for nightshift-client 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.