adws 0.3.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.
adws-0.3.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ADW Team
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.
adws-0.3.0/PKG-INFO ADDED
@@ -0,0 +1,406 @@
1
+ Metadata-Version: 2.4
2
+ Name: adws
3
+ Version: 0.3.0
4
+ Summary: AI Developer Workflow System - Agentic Engineering Framework CLI
5
+ Author: ADW Team
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/your-org/agentic-workflow
8
+ Project-URL: Documentation, https://github.com/your-org/agentic-workflow#readme
9
+ Project-URL: Repository, https://github.com/your-org/agentic-workflow
10
+ Project-URL: Issues, https://github.com/your-org/agentic-workflow/issues
11
+ Keywords: ai,developer,workflow,agent,github,automation
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Software Development :: Build Tools
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: python-dotenv>=1.0
24
+ Requires-Dist: pydantic>=2.0
25
+ Requires-Dist: pyyaml>=6.0
26
+ Requires-Dist: requests>=2.28
27
+ Provides-Extra: webhook
28
+ Requires-Dist: fastapi>=0.100; extra == "webhook"
29
+ Requires-Dist: uvicorn>=0.23; extra == "webhook"
30
+ Provides-Extra: cron
31
+ Requires-Dist: schedule>=1.2; extra == "cron"
32
+ Provides-Extra: dev
33
+ Requires-Dist: pytest>=8.0; extra == "dev"
34
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
35
+ Requires-Dist: ruff>=0.1; extra == "dev"
36
+ Requires-Dist: mypy>=1.0; extra == "dev"
37
+ Dynamic: license-file
38
+
39
+ # Agentic Engineering Framework
40
+
41
+ > **Version**: v2.0
42
+ > **Date**: 2026-04-06
43
+
44
+ A modular, vendor-neutral standard for how autonomous coding agents should operate within software engineering teams. Drop the parts you need into any project, with any capable agent, in any language.
45
+
46
+ ---
47
+
48
+ ## Design Principles
49
+
50
+ | Principle | What It Means |
51
+ |---|---|
52
+ | **Vendor-neutral** | Core docs never reference a specific agent tool. Vendor specifics live in `adapters/`. |
53
+ | **Modular** | Every document is independent. Adopt one file or all of them. |
54
+ | **Incremental adoption** | Start with a 30-second setup (Tier 1) and grow into advanced orchestration (Tier 3). |
55
+ | **Any language, any agent** | The lifecycle and risk model work whether you ship Solidity, Python, Rust, TypeScript, or COBOL. |
56
+ | **Actionable over aspirational** | Every section tells you what to *do*, not what to *think about*. |
57
+ | **Templates are real files** | Copy-paste ready, with `<!-- CUSTOMIZE: -->` markers where you fill in your specifics. |
58
+
59
+ ---
60
+
61
+ ## Quick Start (30 Seconds — Tier 1)
62
+
63
+ ### Option A: Install Script (Recommended)
64
+
65
+ ```bash
66
+ # 1. Run the installer in your project root
67
+ curl -sSL https://raw.githubusercontent.com/your-org/adws/main/install.sh | bash
68
+
69
+ # 2. Fill in your .env
70
+ cp .env.example .env
71
+ $EDITOR .env
72
+
73
+ # Done. Your agent now has project context and a work standard.
74
+ ```
75
+
76
+ ### Option B: Pip Package
77
+
78
+ ```bash
79
+ # 1. Install the ADW CLI
80
+ pip install adws
81
+
82
+ # 2. Initialize in your project
83
+ adws init
84
+
85
+ # 3. Fill in your .env
86
+ $EDITOR .env
87
+ ```
88
+
89
+ ### Option C: Manual Copy
90
+
91
+ ```bash
92
+ # 1. Copy the agent config template into your repo
93
+ cp templates/AGENTS.md your-repo/AGENTS.md
94
+
95
+ # 2. Create manifest.yml (universal machine-readable entry point)
96
+ cp templates/manifest.yml your-repo/manifest.yml
97
+
98
+ # 3. Fill in the CUSTOMIZE sections
99
+ $EDITOR your-repo/AGENTS.md
100
+
101
+ # 4. Read the 7-stage lifecycle (10 min read)
102
+ open docs/workflow.md
103
+
104
+ # Done. Your agent now has project context and a work standard.
105
+ ```
106
+
107
+ That's it for minimum viable adoption. Your agent reads `AGENTS.md` for project context and follows the lifecycle in `workflow.md`.
108
+
109
+ ---
110
+
111
+ ## Installation
112
+
113
+ ### Requirements
114
+
115
+ - Python 3.10+
116
+ - Git (for repo detection and operations)
117
+ - GitHub CLI (`gh`) — optional, for PR/issue operations
118
+
119
+ ### Install via Script
120
+
121
+ ```bash
122
+ curl -sSL https://raw.githubusercontent.com/your-org/adws/main/install.sh | bash
123
+ ```
124
+
125
+ The installer will:
126
+ - Copy `AGENTS.md`, `manifest.yml`, and `.env` into your project
127
+ - Create `.adws/` with ADW core files
128
+ - Copy slash commands into `.opencode/commands/` (or `.claude/commands/`)
129
+ - Optionally install the `adws` pip package
130
+
131
+ ### Install via Pip
132
+
133
+ ```bash
134
+ pip install adws
135
+ ```
136
+
137
+ Optional extras:
138
+ ```bash
139
+ pip install adws[webhook] # FastAPI webhook server
140
+ pip install adws[cron] # Polling-based issue monitor
141
+ pip install adws[dev] # Testing and linting tools
142
+ ```
143
+
144
+ ### What Gets Installed
145
+
146
+ | File | Purpose |
147
+ |---|---|
148
+ | `AGENTS.md` | Project configuration for agents (coding rules, architecture, commands) |
149
+ | `manifest.yml` | Universal machine-readable project entry point |
150
+ | `.env` | Environment variables (from `.env.example` template) |
151
+ | `.adws/` | AI Developer Workflow core files (Python scripts, shell scripts) |
152
+ | `.opencode/commands/` | Slash commands for OpenCode (or `.claude/commands/`) |
153
+
154
+ ---
155
+
156
+ ## CLI Usage
157
+
158
+ The `adws` CLI provides unified commands for the framework:
159
+
160
+ ```bash
161
+ # Service management
162
+ adws start # Start project services (auto-discovers backend/frontend)
163
+ adws stop # Stop all running services
164
+
165
+ # Workflow
166
+ adws plan <issue> # Generate implementation plan for GitHub issue #<issue>
167
+ adws build <issue> # Build/Implement solution for issue #<issue>
168
+
169
+ # Diagnostics
170
+ adws health # Run system health check
171
+ adws status # Show ADW status for current project
172
+
173
+ # Maintenance
174
+ adws init # Initialize ADW in current directory
175
+ adws update # Update ADW framework to latest version
176
+ ```
177
+
178
+ ### Repo-Agnostic Operation
179
+
180
+ By default, ADW reads the repository from `git remote get-url origin`. To operate on a different repository:
181
+
182
+ ```bash
183
+ # Via environment variable
184
+ export ADW_REPO="owner/repo"
185
+ adws plan 123
186
+
187
+ # Via CLI flag
188
+ adws plan 123 --repo owner/repo
189
+ ```
190
+
191
+ ---
192
+
193
+ ## manifest.yml — Universal Entry Point
194
+
195
+ `manifest.yml` is the machine-readable project entry point. All tools (OpenCode, Claude Code, etc.) read it from the repo root. It eliminates discovery overhead and provides canonical paths.
196
+
197
+ ```yaml
198
+ framework_version: "2.0"
199
+ project:
200
+ name: "my-project"
201
+ language: "Python 3.12"
202
+ framework: "FastAPI"
203
+ entry_points:
204
+ readme: "README.md"
205
+ agents: "AGENTS.md"
206
+ env: ".env"
207
+ paths:
208
+ source: "src/"
209
+ tests: "tests/"
210
+ docs: "docs/"
211
+ scripts: "scripts/"
212
+ adws: ".adws/"
213
+ ```
214
+
215
+ When `manifest.yml` exists and is valid, the **prime skill skips discovery** and uses it directly (Step 0).
216
+
217
+ ---
218
+
219
+ ## Framework Structure
220
+
221
+ ```
222
+ AgenticEngineeringFramework/
223
+ ├── README.md ← You are here
224
+ ├── install.sh ← Universal installer for any project
225
+ ├── pyproject.toml ← Pip package config (pip install adws)
226
+ ├── .env.example ← Environment variable template
227
+ ├── .gitignore ← Git ignore rules
228
+ ├── docs/
229
+ │ ├── workflow.md ← Core 7-stage lifecycle standard
230
+ │ ├── risk-model.md ← Risk classification & controls
231
+ │ ├── bootstrap-protocol.md ← Repository bootstrap guide
232
+ │ ├── cross-tool-standard.md ← Cross-tool skill sharing
233
+ │ ├── repository-structure.md ← Standard repo structure
234
+ │ └── tutorial.md ← End-to-end lifecycle tutorial
235
+ ├── templates/
236
+ │ ├── AGENTS.md ← Project config for agents
237
+ │ ├── manifest.yml ← Universal machine-readable entry point
238
+ │ ├── SKILL.md ← Canonical skill template
239
+ │ ├── plan-template.md ← Task plan template
240
+ │ ├── review-template.md ← Review checklist template
241
+ │ ├── validation-readme.md ← Validation entrypoints
242
+ │ ├── bootstrap-prompt.md ← Universal bootstrap prompt
243
+ │ ├── prime.md ← Repository auto-bootstrap prompt
244
+ │ ├── validate-manifest.yml ← CI workflow for manifest validation
245
+ │ └── Justfile ← Lifecycle entry points
246
+ ├── adapters/
247
+ │ ├── README.md ← How to create tool adapters
248
+ │ ├── agent-zero/ ← Agent-Zero adapter
249
+ │ ├── claude-code/ ← Claude Code adapter
250
+ │ ├── opencode/ ← OpenCode adapter
251
+ │ └── pi-mono/ ← Pi Mono adapter
252
+ ├── adws/ ← AI Developer Workflow system (Python)
253
+ │ ├── __init__.py ← Package metadata
254
+ │ ├── cli.py ← CLI entry point (adws command)
255
+ │ ├── README.md ← ADW setup and usage guide
256
+ │ ├── adw_plan_build.py ← Main workflow orchestration
257
+ │ ├── agent.py ← Agent provider interface (backward-compatible)
258
+ │ ├── providers.py ← Agent provider implementations (OpenCode, Claude CLI, Venice)
259
+ │ ├── data_types.py ← Pydantic models for type safety
260
+ │ ├── github.py ← GitHub API operations (repo-agnostic via ADW_REPO)
261
+ │ ├── health_check.py ← Health check endpoint
262
+ │ ├── trigger_cron.py ← Polling-based issue monitor
263
+ │ ├── trigger_webhook.py ← Webhook-based issue processor
264
+ │ ├── utils.py ← Shared utilities
265
+ │ ├── py.typed ← Type hint marker
266
+ │ └── tests/ ← Smoke tests (89 tests)
267
+ │ ├── conftest.py ← Shared test fixtures
268
+ │ ├── test_data_types.py
269
+ │ ├── test_utils.py
270
+ │ ├── test_health_check.py
271
+ │ ├── test_github.py
272
+ │ ├── test_providers.py
273
+ │ ├── test_trigger_webhook.py
274
+ │ └── test_cli.py ← CLI and repo-agnostic tests
275
+ ├── .claude/
276
+ │ ├── CLAUDE.md ← Claude Code project context (generated from AGENTS.md)
277
+ │ └── commands/ ← Claude Code slash commands (generated from skills/)
278
+ │ ├── prime.md
279
+ │ └── setup-linting.md
280
+ ├── .opencode/
281
+ │ └── commands/ ← OpenCode slash command definitions
282
+ │ ├── prime.md ← Prime / bootstrap command
283
+ │ ├── feature.md ← Feature planning command
284
+ │ ├── bug.md ← Bug planning command
285
+ │ ├── chore.md ← Chore planning command
286
+ │ ├── implement.md ← Implementation command
287
+ │ ├── commit.md ← Git commit command
288
+ │ ├── pull_request.md ← PR creation command
289
+ │ ├── install.md ← Install & prime command
290
+ │ ├── start.md ← Start services command
291
+ │ └── tools.md ← List tools command
292
+ ├── skills/ ← Executable skill implementations
293
+ │ ├── prime/ ← Auto-bootstrap a repo for agents
294
+ │ │ └── SKILL.md
295
+ │ └── setup-linting/ ← Configure and enable a code linter
296
+ │ └── SKILL.md
297
+ ├── scripts/ ← Development and operational scripts
298
+ │ ├── start.sh ← Start backend and frontend servers
299
+ │ ├── stop_apps.sh ← Stop all running services
300
+ │ ├── expose_webhook.sh ← Expose webhook via Cloudflare tunnel
301
+ │ ├── kill_trigger_webhook.sh ← Kill the webhook server process
302
+ │ ├── clear_issue_comments.sh ← Clear all comments from a GitHub issue
303
+ │ ├── delete_pr.sh ← Delete a PR and optionally its branch
304
+ │ └── copy_dot_env.sh ← Copy .env from sibling project
305
+ ├── .env.example ← Environment variable template
306
+ ├── ai_docs/ ← AI-generated documentation
307
+ │ └── README.md
308
+ └── specs/ ← Specification files
309
+ └── README.md
310
+ ```
311
+
312
+ ---
313
+
314
+ ## Adoption Tiers
315
+
316
+ ### Tier 1: Minimum Viable (30 seconds)
317
+
318
+ | What | Why |
319
+ |---|---|
320
+ | Run `install.sh` or `pip install adws && adws init` | Installs AGENTS.md, manifest.yml, .env, and .adws/ into your project |
321
+ | Read `docs/workflow.md` | Understand the 7-stage lifecycle your agent should follow |
322
+
323
+ **Result**: Agent has project awareness, machine-readable entry point, and a structured work process.
324
+
325
+ ### Tier 2: Standard (30 minutes)
326
+
327
+ | What | Why |
328
+ |---|---|
329
+ | Everything in Tier 1 | Foundation |
330
+ | Copy `templates/plan-template.md` | Structured task planning |
331
+ | Copy `templates/review-template.md` | Consistent review checklists |
332
+ | Copy `templates/validation-readme.md` | Documented validation commands |
333
+ | Read `docs/risk-model.md` | Calibrate controls to change risk |
334
+ | Copy `templates/Justfile` | One-command lifecycle actions |
335
+
336
+ **Result**: Full lifecycle with validation, planning, and risk-appropriate controls.
337
+
338
+ ### Tier 3: Advanced (2 hours)
339
+
340
+ | What | Why |
341
+ |---|---|
342
+ | Everything in Tier 2 | Foundation |
343
+ | Run bootstrap protocol (`docs/bootstrap-protocol.md`) | Full repo audit and setup |
344
+ | Adopt skill standard (`docs/cross-tool-standard.md`) | Reusable, portable agent skills |
345
+ | Align repo structure (`docs/repository-structure.md`) | Canonical file organization |
346
+ | Create tool adapter (`adapters/README.md`) | Map to your specific agent tool |
347
+ | Configure CI validation (`templates/validate-manifest.yml`) | Automated manifest validation |
348
+
349
+ **Result**: Production-grade agentic engineering with cross-tool portability.
350
+
351
+ ---
352
+
353
+ ## Document Index
354
+
355
+ | Document | Purpose | Adoption Tier |
356
+ |---|---|---|
357
+ | [docs/workflow.md](docs/workflow.md) | Core 7-stage lifecycle and agent execution rules | Tier 1 |
358
+ | [docs/risk-model.md](docs/risk-model.md) | Risk classification, controls matrix, escalation policy | Tier 2 |
359
+ | [docs/bootstrap-protocol.md](docs/bootstrap-protocol.md) | Repository audit and bootstrap procedure | Tier 3 |
360
+ | [docs/cross-tool-standard.md](docs/cross-tool-standard.md) | Cross-tool skill sharing standard | Tier 3 |
361
+ | [docs/repository-structure.md](docs/repository-structure.md) | Canonical repository structure | Tier 3 |
362
+ | [docs/tutorial.md](docs/tutorial.md) | End-to-end lifecycle tutorial (Medium risk example) | Tier 2 |
363
+ | [templates/AGENTS.md](templates/AGENTS.md) | Project configuration for agents | Tier 1 |
364
+ | [templates/manifest.yml](templates/manifest.yml) | Universal machine-readable entry point | Tier 1 |
365
+ | [templates/SKILL.md](templates/SKILL.md) | Skill definition template | Tier 3 |
366
+ | [templates/plan-template.md](templates/plan-template.md) | Task planning template | Tier 2 |
367
+ | [templates/review-template.md](templates/review-template.md) | Review checklist template | Tier 2 |
368
+ | [templates/validation-readme.md](templates/validation-readme.md) | Validation command reference | Tier 2 |
369
+ | [templates/bootstrap-prompt.md](templates/bootstrap-prompt.md) | Universal bootstrap prompt | Tier 3 |
370
+ | [templates/prime.md](templates/prime.md) | Repository auto-bootstrap prompt | Tier 3 |
371
+ | [templates/validate-manifest.yml](templates/validate-manifest.yml) | CI workflow for manifest validation | Tier 3 |
372
+ | [templates/Justfile](templates/Justfile) | Lifecycle automation commands | Tier 2 |
373
+ | [adapters/README.md](adapters/README.md) | Tool adapter creation guide | Tier 3 |
374
+ | [adapters/agent-zero/](adapters/agent-zero/) | Agent-Zero adapter (mapping + generator) | Tier 3 |
375
+ | [adapters/claude-code/](adapters/claude-code/) | Claude Code adapter (mapping + generator) | Tier 3 |
376
+ | [adapters/opencode/](adapters/opencode/) | OpenCode adapter (mapping + generator) | Tier 3 |
377
+ | [adapters/pi-mono/](adapters/pi-mono/) | Pi Mono adapter (mapping + generator) | Tier 3 |
378
+ | [adws/README.md](adws/README.md) | AI Developer Workflow — setup, usage, and configuration | Tier 3 |
379
+ | [adws/cli.py](adws/cli.py) | CLI entry point (`adws` command) | Tier 3 |
380
+ | [adws/agent.py](adws/agent.py) | Agent provider interface (backward-compatible) | Tier 3 |
381
+ | [adws/providers.py](adws/providers.py) | Agent provider implementations (OpenCode, Claude CLI, Venice API) | Tier 3 |
382
+ | [adws/data_types.py](adws/data_types.py) | Pydantic models for type safety | Tier 3 |
383
+ | [adws/github.py](adws/github.py) | GitHub API operations (repo-agnostic via ADW_REPO) | Tier 3 |
384
+ | [adws/tests/](adws/tests/) | Smoke tests for ADW modules (`pytest adws/tests/` from root) | Tier 3 |
385
+ | [skills/prime/SKILL.md](skills/prime/SKILL.md) | Auto-bootstrap skill implementation | Tier 3 |
386
+ | [skills/setup-linting/SKILL.md](skills/setup-linting/SKILL.md) | Linter configuration skill implementation | Tier 3 |
387
+ | [scripts/](scripts/) | Development and operational shell scripts | Tier 2 |
388
+ | [.env.example](.env.example) | Environment variable template (copy to `.env` and fill in) | Tier 1 |
389
+ | [.gitignore](.gitignore) | Git ignore rules (env, pycache, agents, IDE) | Tier 1 |
390
+
391
+ ---
392
+
393
+ ## Contributing
394
+
395
+ This framework is designed to evolve. To propose changes:
396
+
397
+ 1. Open an issue describing the problem and proposed solution
398
+ 2. Reference the specific document(s) affected
399
+ 3. Maintain the design principles above in any modification
400
+ 4. Update version headers when making breaking changes
401
+
402
+ ---
403
+
404
+ ## License
405
+
406
+ This framework is released for use by any engineering team. Adapt freely.