readyagentsdev 0.8.2__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.
- readyagentsdev-0.8.2/.gitignore +56 -0
- readyagentsdev-0.8.2/Dockerfile +17 -0
- readyagentsdev-0.8.2/LICENSE +201 -0
- readyagentsdev-0.8.2/Makefile +48 -0
- readyagentsdev-0.8.2/PKG-INFO +215 -0
- readyagentsdev-0.8.2/README.md +169 -0
- readyagentsdev-0.8.2/docker-compose.yml +11 -0
- readyagentsdev-0.8.2/docs/cli.md +196 -0
- readyagentsdev-0.8.2/docs/concepts.md +66 -0
- readyagentsdev-0.8.2/docs/configuration.md +87 -0
- readyagentsdev-0.8.2/docs/first-ten-minutes.md +58 -0
- readyagentsdev-0.8.2/docs/getting-started.md +127 -0
- readyagentsdev-0.8.2/docs/mcp.md +220 -0
- readyagentsdev-0.8.2/docs/outbound/gate-http-decide.md +11 -0
- readyagentsdev-0.8.2/docs/packs.md +86 -0
- readyagentsdev-0.8.2/docs/why-readyagents.md +54 -0
- readyagentsdev-0.8.2/docs/workflows.md +277 -0
- readyagentsdev-0.8.2/examples/agent_tools.yaml +19 -0
- readyagentsdev-0.8.2/examples/approval_gate.yaml +34 -0
- readyagentsdev-0.8.2/examples/calc_pipeline.json +62 -0
- readyagentsdev-0.8.2/examples/calc_pipeline.yaml +53 -0
- readyagentsdev-0.8.2/examples/code_review.yaml +33 -0
- readyagentsdev-0.8.2/examples/composed_gate.yaml +49 -0
- readyagentsdev-0.8.2/examples/connector_demo.yaml +21 -0
- readyagentsdev-0.8.2/examples/eval/fail.yaml +8 -0
- readyagentsdev-0.8.2/examples/eval/pass.yaml +8 -0
- readyagentsdev-0.8.2/examples/fanout_gate.yaml +39 -0
- readyagentsdev-0.8.2/examples/foreach_calc.yaml +24 -0
- readyagentsdev-0.8.2/examples/gated_write.yaml +37 -0
- readyagentsdev-0.8.2/examples/include_demo.yaml +23 -0
- readyagentsdev-0.8.2/examples/included_min.yaml +13 -0
- readyagentsdev-0.8.2/examples/json_mutate.yaml +30 -0
- readyagentsdev-0.8.2/examples/list_dir.yaml +21 -0
- readyagentsdev-0.8.2/examples/mcp_http_client.py +223 -0
- readyagentsdev-0.8.2/examples/multi_gate.yaml +38 -0
- readyagentsdev-0.8.2/examples/packs/connector_pack.py +37 -0
- readyagentsdev-0.8.2/examples/packs/hitl_gate.py +159 -0
- readyagentsdev-0.8.2/examples/research_brief.yaml +70 -0
- readyagentsdev-0.8.2/examples/sample_code.py +13 -0
- readyagentsdev-0.8.2/examples/support_triage.yaml +72 -0
- readyagentsdev-0.8.2/pyproject.toml +88 -0
- readyagentsdev-0.8.2/src/readyagents/__init__.py +38 -0
- readyagentsdev-0.8.2/src/readyagents/__main__.py +4 -0
- readyagentsdev-0.8.2/src/readyagents/audit.py +67 -0
- readyagentsdev-0.8.2/src/readyagents/cli.py +1050 -0
- readyagentsdev-0.8.2/src/readyagents/config.py +264 -0
- readyagentsdev-0.8.2/src/readyagents/errors.py +129 -0
- readyagentsdev-0.8.2/src/readyagents/llm/__init__.py +11 -0
- readyagentsdev-0.8.2/src/readyagents/llm/anthropic_provider.py +72 -0
- readyagentsdev-0.8.2/src/readyagents/llm/base.py +57 -0
- readyagentsdev-0.8.2/src/readyagents/llm/cache.py +86 -0
- readyagentsdev-0.8.2/src/readyagents/llm/openai_compat.py +12 -0
- readyagentsdev-0.8.2/src/readyagents/llm/openai_provider.py +70 -0
- readyagentsdev-0.8.2/src/readyagents/llm/registry.py +112 -0
- readyagentsdev-0.8.2/src/readyagents/llm/resilience.py +179 -0
- readyagentsdev-0.8.2/src/readyagents/llm/tool_calls.py +286 -0
- readyagentsdev-0.8.2/src/readyagents/logging.py +162 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/__init__.py +43 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/builtin.py +674 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/client.py +253 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/http.py +585 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/run_api.py +1077 -0
- readyagentsdev-0.8.2/src/readyagents/mcp/server.py +246 -0
- readyagentsdev-0.8.2/src/readyagents/notify.py +63 -0
- readyagentsdev-0.8.2/src/readyagents/packs/__init__.py +26 -0
- readyagentsdev-0.8.2/src/readyagents/packs/loader.py +157 -0
- readyagentsdev-0.8.2/src/readyagents/packs/protocol.py +55 -0
- readyagentsdev-0.8.2/src/readyagents/policy.py +127 -0
- readyagentsdev-0.8.2/src/readyagents/py.typed +1 -0
- readyagentsdev-0.8.2/src/readyagents/report.py +88 -0
- readyagentsdev-0.8.2/src/readyagents/scaffold.py +410 -0
- readyagentsdev-0.8.2/src/readyagents/secrets.py +120 -0
- readyagentsdev-0.8.2/src/readyagents/testing/__init__.py +17 -0
- readyagentsdev-0.8.2/src/readyagents/testing/eval.py +219 -0
- readyagentsdev-0.8.2/src/readyagents/testing/helpers.py +128 -0
- readyagentsdev-0.8.2/src/readyagents/testing/recorded.py +68 -0
- readyagentsdev-0.8.2/src/readyagents/tools/__init__.py +67 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/__init__.py +3 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/cancellation.py +88 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/conditions.py +279 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/engine.py +354 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/nodes.py +944 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/runner.py +375 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/schema.py +287 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/state.py +472 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/structured.py +103 -0
- readyagentsdev-0.8.2/src/readyagents/workflow/templates.py +125 -0
- readyagentsdev-0.8.2/tests/conftest.py +44 -0
- readyagentsdev-0.8.2/tests/fixtures/fake_mcp_stdio.py +117 -0
- readyagentsdev-0.8.2/tests/fixtures/ok.yaml +7 -0
- readyagentsdev-0.8.2/tests/test_advanced.py +130 -0
- readyagentsdev-0.8.2/tests/test_agent_tools.py +364 -0
- readyagentsdev-0.8.2/tests/test_builtin_tools.py +468 -0
- readyagentsdev-0.8.2/tests/test_cli.py +518 -0
- readyagentsdev-0.8.2/tests/test_cli_quality.py +821 -0
- readyagentsdev-0.8.2/tests/test_compose_resume.py +209 -0
- readyagentsdev-0.8.2/tests/test_config.py +162 -0
- readyagentsdev-0.8.2/tests/test_decisions.py +236 -0
- readyagentsdev-0.8.2/tests/test_deploy.py +82 -0
- readyagentsdev-0.8.2/tests/test_engine.py +420 -0
- readyagentsdev-0.8.2/tests/test_first_user.py +67 -0
- readyagentsdev-0.8.2/tests/test_foreach.py +161 -0
- readyagentsdev-0.8.2/tests/test_gate_signed_decide.py +99 -0
- readyagentsdev-0.8.2/tests/test_gated_write.py +96 -0
- readyagentsdev-0.8.2/tests/test_hardening.py +318 -0
- readyagentsdev-0.8.2/tests/test_include.py +209 -0
- readyagentsdev-0.8.2/tests/test_json_set.py +96 -0
- readyagentsdev-0.8.2/tests/test_mcp_client.py +142 -0
- readyagentsdev-0.8.2/tests/test_mcp_http.py +396 -0
- readyagentsdev-0.8.2/tests/test_mcp_http_security.py +536 -0
- readyagentsdev-0.8.2/tests/test_mcp_server.py +110 -0
- readyagentsdev-0.8.2/tests/test_notify.py +173 -0
- readyagentsdev-0.8.2/tests/test_observability.py +377 -0
- readyagentsdev-0.8.2/tests/test_packs.py +156 -0
- readyagentsdev-0.8.2/tests/test_parallel.py +235 -0
- readyagentsdev-0.8.2/tests/test_report.py +37 -0
- readyagentsdev-0.8.2/tests/test_resume.py +226 -0
- readyagentsdev-0.8.2/tests/test_run_api.py +779 -0
- readyagentsdev-0.8.2/tests/test_run_cancellation.py +339 -0
- readyagentsdev-0.8.2/tests/test_runs_hygiene.py +151 -0
- readyagentsdev-0.8.2/tests/test_schema.py +313 -0
- readyagentsdev-0.8.2/tests/test_security.py +299 -0
- readyagentsdev-0.8.2/tests/test_testing.py +168 -0
- readyagentsdev-0.8.2/tests/test_yaml_glue.py +92 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Local secrets — never commit
|
|
2
|
+
.env-ai
|
|
3
|
+
.env
|
|
4
|
+
.env.local
|
|
5
|
+
.env.*
|
|
6
|
+
!.env.example
|
|
7
|
+
|
|
8
|
+
# Local SSH keys
|
|
9
|
+
.keys/
|
|
10
|
+
|
|
11
|
+
# Python
|
|
12
|
+
__pycache__/
|
|
13
|
+
*.py[cod]
|
|
14
|
+
*$py.class
|
|
15
|
+
*.so
|
|
16
|
+
.Python
|
|
17
|
+
.venv/
|
|
18
|
+
venv/
|
|
19
|
+
env/
|
|
20
|
+
dist/
|
|
21
|
+
build/
|
|
22
|
+
*.egg-info/
|
|
23
|
+
.eggs/
|
|
24
|
+
.pytest_cache/
|
|
25
|
+
.mypy_cache/
|
|
26
|
+
.ruff_cache/
|
|
27
|
+
.coverage
|
|
28
|
+
htmlcov/
|
|
29
|
+
.tox/
|
|
30
|
+
.nox/
|
|
31
|
+
|
|
32
|
+
# ReadyAgents local run artifacts
|
|
33
|
+
.readyagents/
|
|
34
|
+
.readyagents-smoke/
|
|
35
|
+
|
|
36
|
+
# Temporary agent notes / task dumps
|
|
37
|
+
.tmp/
|
|
38
|
+
|
|
39
|
+
# OS / editor / agent tooling
|
|
40
|
+
.DS_Store
|
|
41
|
+
Thumbs.db
|
|
42
|
+
*.swp
|
|
43
|
+
*.swo
|
|
44
|
+
*.iml
|
|
45
|
+
.idea/
|
|
46
|
+
.vscode/
|
|
47
|
+
.cursor/
|
|
48
|
+
.grok/
|
|
49
|
+
.ide/
|
|
50
|
+
.zed/
|
|
51
|
+
.windsurf/
|
|
52
|
+
.claude/
|
|
53
|
+
.codex/
|
|
54
|
+
.continue/
|
|
55
|
+
.history/
|
|
56
|
+
*.code-workspace
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Official image for ReadyAgents Core. Local-first CLI — no cluster, no extra services.
|
|
2
|
+
FROM python:3.12-slim-bookworm
|
|
3
|
+
|
|
4
|
+
WORKDIR /app
|
|
5
|
+
COPY pyproject.toml README.md LICENSE ./
|
|
6
|
+
COPY src ./src
|
|
7
|
+
COPY examples ./examples
|
|
8
|
+
COPY docs ./docs
|
|
9
|
+
|
|
10
|
+
RUN pip install --no-cache-dir --upgrade pip \
|
|
11
|
+
&& pip install --no-cache-dir .
|
|
12
|
+
|
|
13
|
+
WORKDIR /work
|
|
14
|
+
ENV READYAGENTS_HOME=/work/.readyagents
|
|
15
|
+
|
|
16
|
+
ENTRYPOINT ["readyagents"]
|
|
17
|
+
CMD ["--help"]
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is submitted to
|
|
51
|
+
Licensor for inclusion in the Work by the copyright owner or by an
|
|
52
|
+
individual or Legal Entity authorized to submit on behalf of the
|
|
53
|
+
copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the Work
|
|
90
|
+
or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative Works
|
|
95
|
+
a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of Derivative Works that You
|
|
101
|
+
distribute, all copyright, patent, trademark, and attribution
|
|
102
|
+
notices from the Source form of the Work, excluding those
|
|
103
|
+
notices that do not pertain to any part of the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding those notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by such Contributor, or claims asserted against such
|
|
173
|
+
Contributor, by reason of your accepting any such warranty or
|
|
174
|
+
additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 ReadyAgents contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.PHONY: test lint run-example fmt install smoke ci
|
|
2
|
+
|
|
3
|
+
install:
|
|
4
|
+
python -m pip install -e ".[dev]"
|
|
5
|
+
|
|
6
|
+
test:
|
|
7
|
+
python -m pytest
|
|
8
|
+
|
|
9
|
+
lint:
|
|
10
|
+
ruff check src tests
|
|
11
|
+
ruff format --check src tests
|
|
12
|
+
|
|
13
|
+
fmt:
|
|
14
|
+
ruff check --fix src tests
|
|
15
|
+
ruff format src tests
|
|
16
|
+
|
|
17
|
+
run-example:
|
|
18
|
+
readyagents run examples/calc_pipeline.yaml
|
|
19
|
+
readyagents run examples/approval_gate.yaml --approve gate
|
|
20
|
+
readyagents run examples/composed_gate.yaml --approve gate
|
|
21
|
+
|
|
22
|
+
# Keyless example set used by CI: list_dir, eval, dry-run, resume, approval, parallel, include.
|
|
23
|
+
smoke:
|
|
24
|
+
readyagents run examples/calc_pipeline.yaml --no-persist
|
|
25
|
+
readyagents run examples/list_dir.yaml --no-persist
|
|
26
|
+
readyagents eval examples/eval/pass.yaml
|
|
27
|
+
readyagents run examples/connector_demo.yaml --pack examples/packs/connector_pack.py --no-persist
|
|
28
|
+
readyagents run examples/approval_gate.yaml --approve gate --no-persist
|
|
29
|
+
readyagents run examples/fanout_gate.yaml --approve gate --no-persist
|
|
30
|
+
readyagents run examples/include_demo.yaml --no-persist
|
|
31
|
+
readyagents run examples/composed_gate.yaml --approve gate --no-persist
|
|
32
|
+
readyagents run examples/multi_gate.yaml --approve first --approve second --no-persist
|
|
33
|
+
readyagents run examples/support_triage.yaml --dry-run --no-persist --input message=hello
|
|
34
|
+
readyagents run examples/agent_tools.yaml --dry-run --no-persist
|
|
35
|
+
readyagents run examples/foreach_calc.yaml --no-persist
|
|
36
|
+
readyagents run examples/json_mutate.yaml --no-persist
|
|
37
|
+
@rm -rf .readyagents-smoke
|
|
38
|
+
@set -e; \
|
|
39
|
+
export READYAGENTS_HOME=.readyagents-smoke; \
|
|
40
|
+
set +e; out=$$(readyagents run examples/approval_gate.yaml 2>&1); ec=$$?; set -e; \
|
|
41
|
+
printf '%s\n' "$$out"; \
|
|
42
|
+
test $$ec -eq 2; \
|
|
43
|
+
rid=$$(printf '%s\n' "$$out" | tr '\n' ' ' | sed -n 's/.*resume \([0-9a-f]\{16,\}\).*/\1/p'); \
|
|
44
|
+
test -n "$$rid"; \
|
|
45
|
+
readyagents resume $$rid --approve gate
|
|
46
|
+
@rm -rf .readyagents-smoke
|
|
47
|
+
|
|
48
|
+
ci: lint test smoke
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: readyagentsdev
|
|
3
|
+
Version: 0.8.2
|
|
4
|
+
Summary: Local one-shot YAML/JSON agent workflow engine + MCP toolkit (BYOK).
|
|
5
|
+
Project-URL: Homepage, https://readyagents.dev
|
|
6
|
+
Project-URL: Source, https://github.com/readyagentsdev/readyagents-core
|
|
7
|
+
Project-URL: Issues, https://github.com/readyagentsdev/readyagents-core
|
|
8
|
+
Project-URL: Documentation, https://github.com/readyagentsdev/readyagents-core/tree/main/docs
|
|
9
|
+
Author: ReadyAgents contributors
|
|
10
|
+
License: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: agents,byok,cli,llm,mcp,workflow,yaml
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: pydantic-settings>=2.2
|
|
23
|
+
Requires-Dist: pydantic>=2.7
|
|
24
|
+
Requires-Dist: python-dotenv>=1.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: rich>=13.7
|
|
27
|
+
Requires-Dist: typer>=0.12
|
|
28
|
+
Provides-Extra: all
|
|
29
|
+
Requires-Dist: anthropic>=0.34; extra == 'all'
|
|
30
|
+
Requires-Dist: mcp<3,>=1.2; extra == 'all'
|
|
31
|
+
Requires-Dist: openai>=1.40; extra == 'all'
|
|
32
|
+
Provides-Extra: anthropic
|
|
33
|
+
Requires-Dist: anthropic>=0.34; extra == 'anthropic'
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: anthropic>=0.34; extra == 'dev'
|
|
36
|
+
Requires-Dist: build>=1.2; extra == 'dev'
|
|
37
|
+
Requires-Dist: mcp<3,>=1.2; extra == 'dev'
|
|
38
|
+
Requires-Dist: openai>=1.40; extra == 'dev'
|
|
39
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
41
|
+
Provides-Extra: mcp
|
|
42
|
+
Requires-Dist: mcp<3,>=1.2; extra == 'mcp'
|
|
43
|
+
Provides-Extra: openai
|
|
44
|
+
Requires-Dist: openai>=1.40; extra == 'openai'
|
|
45
|
+
Description-Content-Type: text/markdown
|
|
46
|
+
|
|
47
|
+
# ReadyAgents Core
|
|
48
|
+
|
|
49
|
+
<!-- mcp-name: io.github.readyagentsdev/readyagents -->
|
|
50
|
+
ReadyAgents is a free, self-hosted Apache-2.0 local one-shot agent workflow engine plus MCP toolkit: clone it, bring your own keys; always-on packs are waitlisted and not for sale.
|
|
51
|
+
|
|
52
|
+
Site: [readyagents.dev](https://readyagents.dev). Repo: [github.com/readyagentsdev/readyagents-core](https://github.com/readyagentsdev/readyagents-core).
|
|
53
|
+
|
|
54
|
+
Tried it? Open an [I-ran-this](https://github.com/readyagentsdev/readyagents-core/issues/new?template=i-ran-this.md) issue. We are not launching. We are listening.
|
|
55
|
+
|
|
56
|
+
This repository is the free core. You keep the provider account and the bill. Install with `pip install readyagentsdev`, or from this clone.
|
|
57
|
+
|
|
58
|
+
## 60-second start
|
|
59
|
+
|
|
60
|
+
Requires Python 3.11+. Current version is **0.8.2**. Install with `pip install readyagentsdev`, or from this clone.
|
|
61
|
+
|
|
62
|
+
First-run clip: [watch the 60-second run](https://www.youtube.com/watch?v=D69o_HTGNQk)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git clone https://github.com/readyagentsdev/readyagents-core.git
|
|
66
|
+
cd readyagents-core
|
|
67
|
+
python -m venv .venv
|
|
68
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
69
|
+
pip install -e .
|
|
70
|
+
readyagents run examples/calc_pipeline.yaml
|
|
71
|
+
readyagents runs list
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`readyagents run examples/calc_pipeline.json` is the same graph.
|
|
75
|
+
|
|
76
|
+
Or from PyPI (the wheel does not ship `examples/`):
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pip install readyagentsdev
|
|
80
|
+
readyagents new my-flow
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
HITL next: [docs/first-ten-minutes.md](docs/first-ten-minutes.md).
|
|
84
|
+
|
|
85
|
+
## What it does
|
|
86
|
+
|
|
87
|
+
- Define agent workflows as YAML or JSON (nodes + edges)
|
|
88
|
+
- Run **agent**, **tool**, **condition**, **transform**, **approval**, **parallel**, **include**, and **foreach** nodes. Agent nodes may declare a `tools:` allowlist for a bounded tool-use loop.
|
|
89
|
+
- Persist after every node and **resume** a paused or failed run from the last successful node
|
|
90
|
+
- Inspect past runs: `readyagents runs list` / `show` / `replay` / `report` (local HTML)
|
|
91
|
+
- Scaffold a starter: `readyagents new my-flow` (`basic`, `approval`, `research`, `pipeline`, `review`, `foreach`, `agent-tools`, `gated`)
|
|
92
|
+
- Builtin tools with **zero extra servers**: `now`, `calc`, `json_get`, `list_dir`, `read_file`, `write_file`, optional `http_get`
|
|
93
|
+
- Optional [MCP](https://modelcontextprotocol.io) client and server (`readyagents mcp serve`)
|
|
94
|
+
- Extra node types and tools via Python entry points (`readyagents.packs`)
|
|
95
|
+
- Per-node token/cost, budgets, model fallback, JSON logs
|
|
96
|
+
- External approval injection (`readyagents decide`) and outbound pause notify
|
|
97
|
+
- Secrets / RBAC / PII-redaction hooks and an append-only audit trail
|
|
98
|
+
- Pydantic `output_schema` on agent nodes; opt-in local LLM cache
|
|
99
|
+
- `readyagents.testing` helpers, recorded LLM mocks, and a tiny eval harness
|
|
100
|
+
|
|
101
|
+
## Architecture
|
|
102
|
+
|
|
103
|
+
```mermaid
|
|
104
|
+
flowchart LR
|
|
105
|
+
YAML[Workflow YAML/JSON] --> Engine
|
|
106
|
+
subgraph Core["ReadyAgents Core"]
|
|
107
|
+
Engine[Workflow engine]
|
|
108
|
+
Tools[Builtin tools]
|
|
109
|
+
LLM[BYOK LLM providers]
|
|
110
|
+
MCP[MCP client / server]
|
|
111
|
+
Packs[Pack loader]
|
|
112
|
+
end
|
|
113
|
+
Engine --> Tools
|
|
114
|
+
Engine --> LLM
|
|
115
|
+
Engine --> MCP
|
|
116
|
+
Packs --> Engine
|
|
117
|
+
Packs --> Tools
|
|
118
|
+
LLM --> OpenAI[OpenAI]
|
|
119
|
+
LLM --> Anthropic[Anthropic]
|
|
120
|
+
LLM --> Compat[OpenAI-compatible]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## CLI
|
|
124
|
+
|
|
125
|
+
| Command | Purpose |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| `readyagents init` | Write `.env` from `.env.example` if missing |
|
|
128
|
+
| `readyagents new [name] [--template basic\|approval\|research\|pipeline\|review\|foreach\|agent-tools\|gated]` | Scaffold workflow + README + `.env.example` |
|
|
129
|
+
| `readyagents validate PATH` | Schema-validate a workflow |
|
|
130
|
+
| `readyagents eval PATH` | Score a keyless fixture suite (exit 0/1) |
|
|
131
|
+
| `readyagents run PATH [--input KEY=VALUE] [--dry-run] [--approve NODE] [--reject NODE] [--decision-file FILE] [--actor NAME] [--pack PATH]` | Execute |
|
|
132
|
+
| `readyagents resume RUN_ID [--approve NODE] [--reject NODE] [--decision-file FILE]` | Resume a paused or failed run |
|
|
133
|
+
| `readyagents decide RUN_ID [--file FILE \| --node ID --decision approve]` | Inject an external approval decision and resume |
|
|
134
|
+
| `readyagents runs list` | List persisted runs |
|
|
135
|
+
| `readyagents runs show RUN_ID` | Node timeline + stored state (`inspect` is an alias) |
|
|
136
|
+
| `readyagents runs report RUN_ID` | Local HTML summary of a run |
|
|
137
|
+
| `readyagents runs replay RUN_ID` | New run from stored inputs |
|
|
138
|
+
| `readyagents runs delete RUN_ID --yes` | Delete one local run record |
|
|
139
|
+
| `readyagents runs gc --yes` | Prune succeeded/failed/cancelled runs (paused kept) |
|
|
140
|
+
| `readyagents mcp serve` | Stdio MCP server (builtin tools) |
|
|
141
|
+
| `readyagents packs [--pack PATH]` | List installed / local packs |
|
|
142
|
+
| `readyagents version` | Print version |
|
|
143
|
+
|
|
144
|
+
## Examples (no keys unless noted)
|
|
145
|
+
|
|
146
|
+
| File | What it shows |
|
|
147
|
+
| --- | --- |
|
|
148
|
+
| `examples/calc_pipeline.yaml` | Builtin tools, transform, condition |
|
|
149
|
+
| `examples/calc_pipeline.json` | Same graph as `calc_pipeline.yaml` |
|
|
150
|
+
| `examples/approval_gate.yaml` | Human-in-the-loop pause / resume |
|
|
151
|
+
| `examples/multi_gate.yaml` | Two sequential approval gates |
|
|
152
|
+
| `examples/fanout_gate.yaml` | Parallel branches + approval |
|
|
153
|
+
| `examples/include_demo.yaml` | Sub-workflow `include` |
|
|
154
|
+
| `examples/composed_gate.yaml` | Include + parallel + approval |
|
|
155
|
+
| `examples/research_brief.yaml` | Agent node (needs a key) |
|
|
156
|
+
| `examples/support_triage.yaml` | Classify then branch (needs a key) |
|
|
157
|
+
| `examples/code_review.yaml` | `read_file` + review (needs a key) |
|
|
158
|
+
| `examples/agent_tools.yaml` | Agent `tools: [calc]` (needs a key; `--dry-run` is keyless) |
|
|
159
|
+
| `examples/foreach_calc.yaml` | Sequential foreach + `calc` (no keys) |
|
|
160
|
+
| `examples/json_mutate.yaml` | `json_set` / `json_merge` (no keys) |
|
|
161
|
+
| `examples/list_dir.yaml` | Builtin `list_dir` (no keys, no MCP, no Node) |
|
|
162
|
+
| `examples/eval/pass.yaml` | Keyless `readyagents eval` fixture suite |
|
|
163
|
+
| `examples/connector_demo.yaml` | Local `--pack` connector (`examples/packs/connector_pack.py`) |
|
|
164
|
+
| `examples/gated_write.yaml` | Approval then `write_file` (no keys) |
|
|
165
|
+
|
|
166
|
+
## Docs
|
|
167
|
+
|
|
168
|
+
- [Why ReadyAgents?](docs/why-readyagents.md)
|
|
169
|
+
- [Getting started](docs/getting-started.md)
|
|
170
|
+
- [First ten minutes](docs/first-ten-minutes.md)
|
|
171
|
+
- [Concepts](docs/concepts.md)
|
|
172
|
+
- [Configuration (BYOK)](docs/configuration.md)
|
|
173
|
+
- [Workflows](docs/workflows.md)
|
|
174
|
+
- [MCP](docs/mcp.md)
|
|
175
|
+
- [Packs](docs/packs.md)
|
|
176
|
+
- [CLI](docs/cli.md)
|
|
177
|
+
- [Changelog](CHANGELOG.md)
|
|
178
|
+
- [Release notes 0.8.0](RELEASE_NOTES.md)
|
|
179
|
+
|
|
180
|
+
## Install extras
|
|
181
|
+
|
|
182
|
+
LLM and MCP extras are optional.
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pip install "readyagentsdev[openai]"
|
|
186
|
+
pip install "readyagentsdev[anthropic]"
|
|
187
|
+
pip install "readyagentsdev[mcp]"
|
|
188
|
+
pip install "readyagentsdev[all]"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
From a clone, the same extras are `pip install -e ".[openai]"` (and `anthropic` / `mcp` / `all`).
|
|
192
|
+
|
|
193
|
+
Then `cp .env.example .env` and paste your own keys. Core workflows that only use builtin tools do **not** need extras, keys, or Node.js.
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
docker compose run --rm readyagents run examples/calc_pipeline.yaml
|
|
197
|
+
make smoke
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
## What is not in this repository
|
|
202
|
+
|
|
203
|
+
Always-on packs are waitlisted and not for sale.
|
|
204
|
+
|
|
205
|
+
Always-on / continuous workers and schedulers. Hosted control plane. Hosted recovery and remote run stores. SSO, multi-tenant teams, billing.
|
|
206
|
+
|
|
207
|
+
The core has persist, resume, and approval pauses for a local one-shot. It does not run always-on.
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
Apache License 2.0. See [LICENSE](LICENSE).
|
|
212
|
+
|
|
213
|
+
## Security
|
|
214
|
+
|
|
215
|
+
Please report vulnerabilities as described in [SECURITY.md](SECURITY.md). Public contact: [info@readyagents.dev](mailto:info@readyagents.dev). Do not commit API keys. Local operator files such as `.env` are gitignored.
|