From ae0e785f056e09d894cc0a2c353bf5408c19424d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 18:05:42 +0000 Subject: [PATCH 1/3] Update README with project overview and documentation --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b545088..336fc52 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ -# server -Keegan Modern Modern made out of nothing +# Pmaster-dev / server + +Infrastructure and automation layer for the **Pmaster-dev** + **pinkycollie** ecosystem. + +## What's in here + +| Path | Description | +|---|---| +| `src/automation/` | Serverless Python automation engine (components, variables, event dispatch) | +| `docs/openapi/automation.yaml` | OpenAPI 3.1 contract for the Automation REST API | +| `docs/pinkycollie-ecosystem-inventory.md` | Cross-org architecture map | +| `auth/` | Auth utilities | +| `types/` | Shared type definitions | +| `spec/` | Specs and helpers | + +## Quick start + +```python +from automation import AutomationEngine, AutomationDefinition, TriggerEvent + +engine = AutomationEngine() + +# Register a component +engine.register_fn("greet", lambda inp: f"Hello, {inp.payload}!") + +# Define an automation +engine.define(AutomationDefinition( + name="greet_on_request", + triggers=["user.request"], + steps=["greet"], +)) + +# Fire an event +results = engine.trigger_type("user.request", payload="world") +print(results[0].status) # RunStatus.SUCCESS +``` + +Run with the `src` layout on `PYTHONPATH`: + +```bash +PYTHONPATH=src python your_script.py +``` + +## Automation API + +The REST contract lives at [`docs/openapi/automation.yaml`](docs/openapi/automation.yaml). + +Key endpoints: + +| Method | Path | Description | +|---|---|---| +| `POST` | `/automation/events/trigger` | Trigger automation runs for an event | +| `GET` | `/automation/definitions` | List automation definitions | +| `PUT` | `/automation/definitions/{name}` | Create or replace a definition | +| `DELETE` | `/automation/definitions/{name}` | Remove a definition | +| `POST` | `/automation/definitions/{name}/enable` | Enable a definition | +| `POST` | `/automation/definitions/{name}/disable` | Disable a definition | +| `GET` | `/automation/runs` | List run history | +| `GET` | `/automation/stats` | Get aggregate run statistics | + +## Ecosystem + +This repo is the infrastructure layer of a two-org ecosystem. See [`docs/pinkycollie-ecosystem-inventory.md`](docs/pinkycollie-ecosystem-inventory.md) for the full cross-org architecture. From a506f6d6d0e94d2a67f92068d947616ab5096dfa Mon Sep 17 00:00:00 2001 From: Pmaster-dev <8pinkycollie8@gmail.com> Date: Thu, 2 Jul 2026 16:33:56 -0500 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 336fc52..a0d0b46 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Infrastructure and automation layer for the **Pmaster-dev** + **pinkycollie** ec ## Quick start ```python -from automation import AutomationEngine, AutomationDefinition, TriggerEvent +from automation import AutomationEngine, AutomationDefinition engine = AutomationEngine() From 918cf394663e79ba91cc9d7751aff8a3e66e2bb0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Jul 2026 23:42:57 +0000 Subject: [PATCH 3/3] Merge develop and resolve README conflict --- .../__pycache__/__init__.cpython-312.pyc | Bin 1651 -> 1651 bytes .../__pycache__/components.cpython-312.pyc | Bin 13608 -> 13608 bytes .../__pycache__/engine.cpython-312.pyc | Bin 16863 -> 16863 bytes .../__pycache__/variables.cpython-312.pyc | Bin 12130 -> 12130 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/src/automation/__pycache__/__init__.cpython-312.pyc b/src/automation/__pycache__/__init__.cpython-312.pyc index 13cc071d0b1381a310c6cea941fde09fd17fba17..fbd9601002c3339b48fac047ad368b25faf3edfb 100644 GIT binary patch delta 20 acmey&^O=YHG%qg~0}wQLcx>d(U;_X?l?5{Z delta 20 acmey&^O=YHG%qg~0}!O$a@)wA!3F?9K?SJ* diff --git a/src/automation/__pycache__/components.cpython-312.pyc b/src/automation/__pycache__/components.cpython-312.pyc index 9ee5369ecca6317866048b84b767223f5136921b..3a8789d8d616acdf9303ad8392bc317acbbb52c5 100644 GIT binary patch delta 20 acmZ3HwIYlAG%qg~0}wQLcx>dBH3a}bLbj*9QPco(0VS delta 20 acmaD9_b870G%qg~0}!O$a@)uqt`7i8N(Ms!