runspool 0.1.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.
- runspool-0.1.0/.env.example +9 -0
- runspool-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md +48 -0
- runspool-0.1.0/.github/ISSUE_TEMPLATE/config.yml +1 -0
- runspool-0.1.0/.github/ISSUE_TEMPLATE/feature_request.md +31 -0
- runspool-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +28 -0
- runspool-0.1.0/.github/workflows/ci.yml +36 -0
- runspool-0.1.0/.github/workflows/publish.yml +30 -0
- runspool-0.1.0/.gitignore +39 -0
- runspool-0.1.0/AGENTS.md +30 -0
- runspool-0.1.0/CHANGELOG.md +37 -0
- runspool-0.1.0/CODE_OF_CONDUCT.md +132 -0
- runspool-0.1.0/CONTRIBUTING.md +72 -0
- runspool-0.1.0/LICENSE +21 -0
- runspool-0.1.0/PKG-INFO +284 -0
- runspool-0.1.0/README.md +252 -0
- runspool-0.1.0/README.zh-CN.md +165 -0
- runspool-0.1.0/config.example.yaml +45 -0
- runspool-0.1.0/docs/README.md +14 -0
- runspool-0.1.0/docs/agent-json-output.md +105 -0
- runspool-0.1.0/docs/cli.md +141 -0
- runspool-0.1.0/docs/concepts.md +137 -0
- runspool-0.1.0/docs/examples.md +72 -0
- runspool-0.1.0/docs/workflows.md +96 -0
- runspool-0.1.0/docs/writing-steps.md +137 -0
- runspool-0.1.0/examples/client-intel-brief/README.md +67 -0
- runspool-0.1.0/examples/client-intel-brief/config.yaml +30 -0
- runspool-0.1.0/examples/client-intel-brief/data/client_profile.md +7 -0
- runspool-0.1.0/examples/client-intel-brief/data/competitors/acme.md +7 -0
- runspool-0.1.0/examples/client-intel-brief/data/competitors/globex.md +7 -0
- runspool-0.1.0/examples/client-intel-brief/data/customer_notes/call-2026-06-10.md +6 -0
- runspool-0.1.0/examples/client-intel-brief/data/pricing_pages/acme-pricing.md +5 -0
- runspool-0.1.0/examples/client-intel-brief/data/requirements.md +7 -0
- runspool-0.1.0/examples/client-intel-brief/data/sources.yaml +12 -0
- runspool-0.1.0/examples/client-intel-brief/steps/intel_steps.py +191 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/README.md +63 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/config.yaml +23 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/materials/assets/cover.txt +4 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/materials/notes.md +6 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/materials/source.md +15 -0
- runspool-0.1.0/examples/creator-publishing-pipeline/steps/creator_steps.py +208 -0
- runspool-0.1.0/examples/local-file-pipeline/README.md +59 -0
- runspool-0.1.0/examples/local-file-pipeline/config.yaml +7 -0
- runspool-0.1.0/examples/local-file-pipeline/inbox/invoice.txt +16 -0
- runspool-0.1.0/examples/local-file-pipeline/inbox/meeting-notes.txt +21 -0
- runspool-0.1.0/examples/local-file-pipeline/inbox/support-ticket.txt +18 -0
- runspool-0.1.0/pyproject.toml +74 -0
- runspool-0.1.0/scripts/smoke_examples.sh +40 -0
- runspool-0.1.0/src/runspool/__init__.py +14 -0
- runspool-0.1.0/src/runspool/app.py +85 -0
- runspool-0.1.0/src/runspool/builtin_steps/__init__.py +41 -0
- runspool-0.1.0/src/runspool/builtin_steps/archive.py +25 -0
- runspool-0.1.0/src/runspool/builtin_steps/file_intake.py +46 -0
- runspool-0.1.0/src/runspool/builtin_steps/markdown_normalize.py +35 -0
- runspool-0.1.0/src/runspool/builtin_steps/text_classify.py +69 -0
- runspool-0.1.0/src/runspool/builtin_steps/text_summarize.py +81 -0
- runspool-0.1.0/src/runspool/builtin_steps/workspace.py +44 -0
- runspool-0.1.0/src/runspool/cli.py +337 -0
- runspool-0.1.0/src/runspool/clock.py +42 -0
- runspool-0.1.0/src/runspool/commands.py +96 -0
- runspool-0.1.0/src/runspool/config.py +127 -0
- runspool-0.1.0/src/runspool/daemon.py +74 -0
- runspool-0.1.0/src/runspool/display.py +154 -0
- runspool-0.1.0/src/runspool/doctor.py +79 -0
- runspool-0.1.0/src/runspool/engine/__init__.py +5 -0
- runspool-0.1.0/src/runspool/engine/coordinator.py +93 -0
- runspool-0.1.0/src/runspool/engine/registry.py +29 -0
- runspool-0.1.0/src/runspool/engine/runner.py +149 -0
- runspool-0.1.0/src/runspool/engine/step.py +68 -0
- runspool-0.1.0/src/runspool/engine/worker_pool.py +34 -0
- runspool-0.1.0/src/runspool/models.py +76 -0
- runspool-0.1.0/src/runspool/persistence/__init__.py +1 -0
- runspool-0.1.0/src/runspool/persistence/connection.py +41 -0
- runspool-0.1.0/src/runspool/persistence/event_log.py +40 -0
- runspool-0.1.0/src/runspool/persistence/repository.py +125 -0
- runspool-0.1.0/src/runspool/persistence/schema.py +51 -0
- runspool-0.1.0/src/runspool/persistence/state_machine.py +361 -0
- runspool-0.1.0/src/runspool/persistence/step_run_log.py +37 -0
- runspool-0.1.0/src/runspool/registry_builder.py +71 -0
- runspool-0.1.0/src/runspool/runtime.py +97 -0
- runspool-0.1.0/src/runspool/views.py +138 -0
- runspool-0.1.0/tests/__init__.py +0 -0
- runspool-0.1.0/tests/conftest.py +38 -0
- runspool-0.1.0/tests/engine/__init__.py +0 -0
- runspool-0.1.0/tests/engine/test_coordinator.py +101 -0
- runspool-0.1.0/tests/engine/test_registry.py +32 -0
- runspool-0.1.0/tests/engine/test_runner.py +133 -0
- runspool-0.1.0/tests/persistence/__init__.py +0 -0
- runspool-0.1.0/tests/persistence/test_repository.py +52 -0
- runspool-0.1.0/tests/persistence/test_state_machine.py +176 -0
- runspool-0.1.0/tests/test_builtin_steps.py +80 -0
- runspool-0.1.0/tests/test_cli.py +136 -0
- runspool-0.1.0/tests/test_config.py +50 -0
- runspool-0.1.0/tests/test_models.py +22 -0
- runspool-0.1.0/tests/test_registry_builder.py +73 -0
- runspool-0.1.0/tests/test_views.py +39 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Runspool is local-first and needs no secrets to run.
|
|
2
|
+
#
|
|
3
|
+
# This file exists only as a convention for custom steps that you write and
|
|
4
|
+
# that may need credentials (for example, a step that calls an external API).
|
|
5
|
+
# Copy it to `.env` and load it however your steps prefer. Runspool itself
|
|
6
|
+
# does not read `.env`; it never requires network access or API keys.
|
|
7
|
+
#
|
|
8
|
+
# Example (used only if YOU write a step that reads it):
|
|
9
|
+
# MY_SERVICE_API_KEY=
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Report a problem with Runspool
|
|
4
|
+
title: "[Bug] "
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Thanks for taking the time to report a bug. Please fill out the sections below so we can reproduce and fix the issue quickly.
|
|
9
|
+
|
|
10
|
+
## Describe the bug
|
|
11
|
+
|
|
12
|
+
A clear and concise description of what the bug is.
|
|
13
|
+
|
|
14
|
+
## To reproduce
|
|
15
|
+
|
|
16
|
+
Steps to reproduce the behavior:
|
|
17
|
+
|
|
18
|
+
1. Initialize a workspace
|
|
19
|
+
2. Add one or more steps
|
|
20
|
+
3. Run the workflow
|
|
21
|
+
4. Observe the error
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
runspool init
|
|
25
|
+
runspool add build --cmd "make"
|
|
26
|
+
runspool add test --cmd "pytest" --after build
|
|
27
|
+
runspool run
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Expected behavior
|
|
31
|
+
|
|
32
|
+
A clear and concise description of what you expected to happen.
|
|
33
|
+
|
|
34
|
+
## Actual behavior
|
|
35
|
+
|
|
36
|
+
A clear and concise description of what actually happened. Where possible,
|
|
37
|
+
include the output of `runspool inspect <id> --json` for the affected run or
|
|
38
|
+
step so we can see the full state.
|
|
39
|
+
|
|
40
|
+
## Environment
|
|
41
|
+
|
|
42
|
+
- OS: (e.g. macOS 14.5, Ubuntu 22.04, Windows 11)
|
|
43
|
+
- Python version: output of `python --version`
|
|
44
|
+
- Runspool version: output of `runspool --help` (version line) or `pip show runspool`
|
|
45
|
+
|
|
46
|
+
## Additional context
|
|
47
|
+
|
|
48
|
+
Add any other context about the problem here (logs, config files, screenshots).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for Runspool
|
|
4
|
+
title: "[Feature] "
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Problem
|
|
9
|
+
|
|
10
|
+
A clear and concise description of the problem or limitation you are running
|
|
11
|
+
into. What are you trying to accomplish?
|
|
12
|
+
|
|
13
|
+
## Proposed solution
|
|
14
|
+
|
|
15
|
+
A clear and concise description of what you want to happen.
|
|
16
|
+
|
|
17
|
+
## Alternatives considered
|
|
18
|
+
|
|
19
|
+
A clear and concise description of any alternative solutions or features you
|
|
20
|
+
have considered.
|
|
21
|
+
|
|
22
|
+
## Additional context
|
|
23
|
+
|
|
24
|
+
Add any other context, examples, or references about the feature request here.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
> **A note on scope:** Runspool is intentionally local-first and CLI-first. It
|
|
29
|
+
> is not a cloud platform, not an AI product, and has no web UI. Please keep
|
|
30
|
+
> proposals aligned with these non-goals; feature requests that depend on hosted
|
|
31
|
+
> services, an AI engine, or a graphical interface are out of scope.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
Briefly describe what this pull request changes and why.
|
|
4
|
+
|
|
5
|
+
## Related issue
|
|
6
|
+
|
|
7
|
+
Closes #(issue number), or link to the relevant issue / discussion.
|
|
8
|
+
|
|
9
|
+
## Type of change
|
|
10
|
+
|
|
11
|
+
- [ ] Bug fix
|
|
12
|
+
- [ ] New feature
|
|
13
|
+
- [ ] Documentation
|
|
14
|
+
- [ ] Refactor
|
|
15
|
+
- [ ] Test
|
|
16
|
+
|
|
17
|
+
## Checklist
|
|
18
|
+
|
|
19
|
+
- [ ] `ruff check .` passes
|
|
20
|
+
- [ ] `pytest` passes
|
|
21
|
+
- [ ] Added or updated tests for the change
|
|
22
|
+
- [ ] Updated documentation if needed
|
|
23
|
+
- [ ] Follows the existing code style and keeps the engine local-first
|
|
24
|
+
|
|
25
|
+
## Notes for reviewers
|
|
26
|
+
|
|
27
|
+
Anything reviewers should pay special attention to (tricky areas, trade-offs,
|
|
28
|
+
follow-up work).
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install
|
|
25
|
+
run: |
|
|
26
|
+
python -m pip install --upgrade pip
|
|
27
|
+
pip install -e ".[dev]"
|
|
28
|
+
|
|
29
|
+
- name: Lint (ruff)
|
|
30
|
+
run: ruff check .
|
|
31
|
+
|
|
32
|
+
- name: Test (pytest)
|
|
33
|
+
run: pytest
|
|
34
|
+
|
|
35
|
+
- name: Smoke-test examples
|
|
36
|
+
run: bash scripts/smoke_examples.sh
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
release:
|
|
6
|
+
types: [published]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.12"
|
|
22
|
+
|
|
23
|
+
- name: Install build backend
|
|
24
|
+
run: python -m pip install --upgrade build
|
|
25
|
+
|
|
26
|
+
- name: Build distributions
|
|
27
|
+
run: python -m build
|
|
28
|
+
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
env/
|
|
11
|
+
|
|
12
|
+
# Tooling caches
|
|
13
|
+
.pytest_cache/
|
|
14
|
+
.ruff_cache/
|
|
15
|
+
.mypy_cache/
|
|
16
|
+
.coverage
|
|
17
|
+
htmlcov/
|
|
18
|
+
|
|
19
|
+
# Runspool runtime state (local-first: never commit task data or databases)
|
|
20
|
+
workspace/
|
|
21
|
+
*.db
|
|
22
|
+
*.db-journal
|
|
23
|
+
*.db-wal
|
|
24
|
+
.env
|
|
25
|
+
|
|
26
|
+
# Ignore a config.yaml created at the repo root by `runspool init`, but keep the
|
|
27
|
+
# committed example configs under examples/ (note the leading slash anchors this
|
|
28
|
+
# to the repo root only).
|
|
29
|
+
/config.yaml
|
|
30
|
+
|
|
31
|
+
# Examples create their own local state
|
|
32
|
+
examples/**/workspace/
|
|
33
|
+
examples/**/runspool.db
|
|
34
|
+
|
|
35
|
+
# OS / editor
|
|
36
|
+
.DS_Store
|
|
37
|
+
.idea/
|
|
38
|
+
.vscode/
|
|
39
|
+
*.swp
|
runspool-0.1.0/AGENTS.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Notes for AI agents and automation
|
|
2
|
+
|
|
3
|
+
Runspool is designed to be driven by automated callers. This file is a quick
|
|
4
|
+
orientation; see [docs/agent-json-output.md](docs/agent-json-output.md) for the
|
|
5
|
+
full schema.
|
|
6
|
+
|
|
7
|
+
## The loop
|
|
8
|
+
|
|
9
|
+
1. Queue work: `runspool add <input> --workflow <name>`
|
|
10
|
+
2. Advance it: `runspool run` (one-shot) or `runspool daemon` (resident)
|
|
11
|
+
3. Read state: `runspool inspect <id> --json`
|
|
12
|
+
4. Decide from the result:
|
|
13
|
+
- `status: "completed"` → done; artifacts are listed in `artifacts`.
|
|
14
|
+
- `status: "manual_required"` → read `last_error` and
|
|
15
|
+
`suggested_next_action`, fix the cause, then run the suggested command
|
|
16
|
+
(often `runspool retry <id>`), and advance again.
|
|
17
|
+
- `status: "running"` / `"queued"` → wait and poll again.
|
|
18
|
+
|
|
19
|
+
## Rules of thumb
|
|
20
|
+
|
|
21
|
+
- Use `--json` on every read command; never parse human-formatted output.
|
|
22
|
+
- Choose actions only from the task's `available_actions`.
|
|
23
|
+
- `inspect`'s `suggested_next_action` already encodes the recommended recovery.
|
|
24
|
+
- Treat `completed` and `terminated` as terminal.
|
|
25
|
+
- All state is local under `workspace_root`; nothing is sent anywhere.
|
|
26
|
+
|
|
27
|
+
## Read commands with `--json`
|
|
28
|
+
|
|
29
|
+
`status`, `status <id>`, `inspect <id>`, `logs <id>`, `overview`, `workflows`,
|
|
30
|
+
`doctor`, `run`.
|
|
@@ -0,0 +1,37 @@
|
|
|
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/en/1.1.0/), and this project
|
|
5
|
+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.1.0] - 2026-06-29
|
|
8
|
+
|
|
9
|
+
Initial release.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Local-first workflow engine backed by SQLite: tasks move through ordered
|
|
13
|
+
steps with a persisted state machine, event log, and per-step run history.
|
|
14
|
+
- Full task lifecycle from the CLI: `init`, `add`, `run` (one-shot), `daemon`
|
|
15
|
+
(resident), `status`, `inspect`, `logs`, `overview`, `pause`, `resume`,
|
|
16
|
+
`retry`, `terminate`, `set-priority`, `set-retries`, `set-step`, `workflows`,
|
|
17
|
+
`doctor`.
|
|
18
|
+
- `--json` output on every read command, plus an agent-friendly `inspect` that
|
|
19
|
+
returns `available_actions` and a `suggested_next_action`.
|
|
20
|
+
- Automatic retries: a failed task is rescheduled (`retry_delay_seconds`) and
|
|
21
|
+
requeued by the coordinator until `max_retries` is reached, then becomes
|
|
22
|
+
`manual_required`.
|
|
23
|
+
- Guarded state transitions enforced in the engine (not just the CLI): illegal
|
|
24
|
+
control actions on terminal/incompatible states are refused.
|
|
25
|
+
- Graceful pause at step boundaries: a running step always finishes; pause
|
|
26
|
+
advances to the next step (or completes on the last) so no completed step is
|
|
27
|
+
re-run on resume.
|
|
28
|
+
- Thread worker pool with per-step concurrency quotas, heartbeats, and stale-task
|
|
29
|
+
reclamation; startup recovery of interrupted tasks.
|
|
30
|
+
- Dynamic step plugins loaded from config (`plugin_paths` + `import`), alongside
|
|
31
|
+
five dependency-free built-in steps.
|
|
32
|
+
- Three runnable, offline examples: `local-file-pipeline`, `client-intel-brief`,
|
|
33
|
+
and `creator-publishing-pipeline` (draft-only).
|
|
34
|
+
- Documentation (`docs/`), English + Simplified Chinese READMEs, and CI running
|
|
35
|
+
ruff, pytest (Python 3.11/3.12/3.13), and an example smoke test.
|
|
36
|
+
|
|
37
|
+
[0.1.0]: https://github.com/ethan-sun-dev/runspool/releases/tag/v0.1.0
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
conduct@runspool.dev.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Contributing to Runspool
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in improving Runspool! This guide covers how to set up,
|
|
4
|
+
make changes, and submit them.
|
|
5
|
+
|
|
6
|
+
## Principles
|
|
7
|
+
|
|
8
|
+
Runspool is intentionally small and focused. Before proposing a change, keep the
|
|
9
|
+
project's character in mind:
|
|
10
|
+
|
|
11
|
+
- **Local-first.** No hosted service, no required network access, no telemetry.
|
|
12
|
+
- **CLI-first.** The command line and JSON output are the interface. No web UI.
|
|
13
|
+
- **Predictable.** State transitions live in one state machine; keep them there.
|
|
14
|
+
- **Small surface.** Prefer a plugin step over a new core dependency.
|
|
15
|
+
|
|
16
|
+
See the [non-goals](README.md#non-goals) before suggesting large features.
|
|
17
|
+
|
|
18
|
+
## Development setup
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone https://github.com/ethan-sun-dev/runspool
|
|
22
|
+
cd runspool
|
|
23
|
+
python -m venv .venv && source .venv/bin/activate
|
|
24
|
+
pip install -e ".[dev]"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Run the checks
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
ruff check . # lint
|
|
31
|
+
pytest # tests
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Both must pass before you open a pull request. To try the CLI end-to-end, run
|
|
35
|
+
the [local-file-pipeline example](examples/local-file-pipeline/).
|
|
36
|
+
|
|
37
|
+
## Making changes
|
|
38
|
+
|
|
39
|
+
- **Match the surrounding style.** The codebase favors small, single-purpose
|
|
40
|
+
modules and clear comments explaining *why*, not *what*.
|
|
41
|
+
- **Write tests.** New behavior needs a test; bug fixes need a regression test.
|
|
42
|
+
See [`tests/`](tests/) for patterns (fixtures live in `tests/conftest.py`).
|
|
43
|
+
- **Keep the engine generic.** Engine, persistence, and CLI code must not depend
|
|
44
|
+
on any specific domain. Domain logic belongs in steps (built-in or plugin).
|
|
45
|
+
- **Update docs.** If you change the CLI or the step contract, update the
|
|
46
|
+
relevant file under [`docs/`](docs/) and the README.
|
|
47
|
+
- **English everywhere.** Code, comments, config, help text, and docs are in
|
|
48
|
+
English.
|
|
49
|
+
|
|
50
|
+
## Adding a step
|
|
51
|
+
|
|
52
|
+
Most new capabilities should be a step, not engine changes. See
|
|
53
|
+
[docs/writing-steps.md](docs/writing-steps.md). If a step is broadly useful and
|
|
54
|
+
dependency-free, it may belong in `src/runspool/builtin_steps/`; otherwise it's
|
|
55
|
+
a great fit for an example or your own plugin.
|
|
56
|
+
|
|
57
|
+
## Commit and PR
|
|
58
|
+
|
|
59
|
+
- Keep commits focused with clear messages.
|
|
60
|
+
- Fill in the pull request template (summary, related issue, checklist).
|
|
61
|
+
- Link any relevant issue.
|
|
62
|
+
|
|
63
|
+
## Reporting bugs and requesting features
|
|
64
|
+
|
|
65
|
+
Use the issue templates. For bugs, include your OS, Python version, Runspool
|
|
66
|
+
version, the commands you ran, and `runspool inspect <id> --json` output where
|
|
67
|
+
relevant.
|
|
68
|
+
|
|
69
|
+
## Code of Conduct
|
|
70
|
+
|
|
71
|
+
This project follows the [Contributor Covenant](CODE_OF_CONDUCT.md). By
|
|
72
|
+
participating, you agree to uphold it.
|
runspool-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Runspool 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.
|