Skip to content

Add outbound CloudEvents emitter#257

Merged
JE-Chen merged 1 commit into
devfrom
feat/cloudevents-batch
Jun 20, 2026
Merged

Add outbound CloudEvents emitter#257
JE-Chen merged 1 commit into
devfrom
feat/cloudevents-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 20, 2026

Copy link
Copy Markdown
Member

Devex batch (from multi-agent web research; verified absent — repo received webhooks but couldn't emit). Full layers + tests + EN/Zh v49 docs + README.

Feature (utils/events, pure-stdlib)

  • to_cloudevent wraps data in a CloudEvents 1.0 (CNCF) envelope (auto specversion/id/time); EventEmitter binds a source and dispatches to an injectable sink; post_cloudevent POSTs over the egress-guarded HTTP client (interop: Knative, Azure Event Grid, iPaaS, generic webhooks).
  • Transport injectable (sink/poster) → unit-tested with no network.
  • Executor AC_emit_event; MCP ac_emit_event; Builder under Tools.

Verification

  • 9 tests pass (envelope fields, unique ids, explicit id/time, default+injected sink, injected poster, executor round-trip, wiring, facade); ruff clean; radon no CC≥C; bandit clean; PySide6-free.
  • Rebased onto dev after the asset store (Add environment-scoped typed asset store #256) merge.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 28 complexity · 0 duplication

Metric Results
Complexity 28
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 265b6d8 into dev Jun 20, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/cloudevents-batch branch June 20, 2026 06:39
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant