Skip to content

chore(release): bump version to 0.5.2 - #67

Merged
CraftsMan-Labs merged 5 commits into
mainfrom
docs/simpleagents-builder-hitl-evals
Jun 2, 2026
Merged

chore(release): bump version to 0.5.2#67
CraftsMan-Labs merged 5 commits into
mainfrom
docs/simpleagents-builder-hitl-evals

Conversation

@CraftsMan-Labs

@CraftsMan-Labs CraftsMan-Labs commented May 18, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Chores
    • Bumped project/package versions to 0.5.2 across the workspace and synchronized internal dependency versions.
  • New Features
    • Added two example workflows (Email Ingestor, Model Router) with runnable example scripts that stream workflow execution and print results.
    • Added a helper for loading env defaults and a workflow handler for finance audit classification.
  • Tests
    • Reformatted several workflow-related tests for clearer assertions.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR updates the repository versioning to 0.5.2 across workspace Cargo manifests and published package manifests, adds example workflows (email-ingestor, model-router), example runners and handlers, and performs small test and formatting edits in the YAML runner code.

Changes

Version 0.5.2 Release

Layer / File(s) Summary
Root workspace version and dependencies
Cargo.toml
Root workspace package version and workspace dependency pins (simple-agent-type, simple-agents-healing, simple-agents-providers) updated to 0.5.2.
Internal crate Cargo.toml dependency pins
crates/simple-agents-core/Cargo.toml, crates/simple-agents-napi/Cargo.toml, crates/simple-agents-providers/Cargo.toml, crates/simple-agents-py/Cargo.toml, crates/simple-agents-workflow/Cargo.toml
Local path dependency version pins updated to 0.5.2 in internal crate manifests.
WASM bindings version updates
bindings/wasm/simple-agents-wasm/rust/Cargo.toml, bindings/wasm/simple-agents-wasm/package.json
WASM crate and npm package version bumped to 0.5.2.
Published package manifests
crates/simple-agents-napi/package.json, crates/simple-agents-py/pyproject.toml, examples/pyproject.toml
Published package manifests updated to version 0.5.2.

Examples, Workflows, Handlers, and Tests

Layer / File(s) Summary
yaml_runner formatting & tests
crates/simple-agents-workflow/src/yaml_runner/client_executor.rs, crates/simple-agents-workflow/src/yaml_runner/tests.rs
Formatting change for default system prompt and multiline rewrapping of several test assertions; no behavioral changes.
Examples: env helper and runner scripts
examples/python-test-simpleAgents/example_env.py, examples/python-test-simpleAgents/runners/run_email_ingestor.py, examples/python-test-simpleAgents/runners/run_model_router.py
Adds env_or_default helper and two runnable example scripts that stream workflows, handle tracing config, and print streaming events/results.
Email Ingestor workflow and handlers
examples/python-test-simpleAgents/workflows/email-ingestor/*
Adds an email classification workflow (HR, Finance, Education), wiring edges, finalization nodes, and a financial_audit handler for finance subtypes.
Model Router workflow
examples/python-test-simpleAgents/workflows/model-router/*
Adds developer-task model-router workflow with classification, repeat-detection (d-flash gate), routing switches, and domain-specific execution endpoints.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 A tiny hop, a version new,
Manifests aligned from root to you.
Workflows added, runners run,
Handlers hum and tests stay fun.
0.5.2 — a tidy little chew!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore(release): bump version to 0.5.2' is directly related to the main change, which is updating package versions from 0.5.1 to 0.5.2 across multiple manifests.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/simpleagents-builder-hitl-evals

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

CraftsMan-Labs and others added 4 commits May 18, 2026 12:19
Aligns the standalone wasm crate lockfile with the package version bump.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce HR/Finance/Education email classification with per-subtype routing,
financial audit custom workers, and a streaming runner with optional OTLP tracing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Route developer queries by task domain with d-flash repeat detection and a
streaming runner for local OpenAI-compatible model endpoints.

Co-authored-by: Cursor <cursoragent@cursor.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@examples/python-test-simpleAgents/runners/run_model_router.py`:
- Around line 28-43: The docstring for the on_event callback is inaccurate: it
describes token/snapshot-specific stdout/stderr behavior but the implementation
simply prints the raw event object (print(event)). Update the docstring of the
callback function (referenced as default_on_event / on_event in this module) to
accurately state that the function prints the raw event to stdout and does not
perform token or snapshot-specific formatting or stderr logging, or
alternatively implement the described token/snapshot formatting to match the
docstring — pick one and make the docstring and the function body consistent.

In `@examples/python-test-simpleAgents/workflows/model-router/model-router.yaml`:
- Line 21: Update the workflow metadata description to accurately reflect the
configured model(s): replace the current text mentioning “Gemma/Qwen models” in
the description field with a concise description that references the actual
model id used (mlx-community/LFM2-8B-A1B-4bit) and the d-flash repeat detection
behavior; locate the description key in model-router.yaml and edit its value to
match the real routing targets and functionality.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: db30a5c3-d11c-4183-aa44-73574aa539a7

📥 Commits

Reviewing files that changed from the base of the PR and between 03bf8fd and 8ac91e9.

⛔ Files ignored due to path filters (1)
  • bindings/wasm/simple-agents-wasm/rust/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • crates/simple-agents-workflow/src/yaml_runner/client_executor.rs
  • crates/simple-agents-workflow/src/yaml_runner/tests.rs
  • examples/python-test-simpleAgents/example_env.py
  • examples/python-test-simpleAgents/runners/run_email_ingestor.py
  • examples/python-test-simpleAgents/runners/run_model_router.py
  • examples/python-test-simpleAgents/workflows/email-ingestor/email-ingestor.yaml
  • examples/python-test-simpleAgents/workflows/email-ingestor/handlers.py
  • examples/python-test-simpleAgents/workflows/model-router/model-router.yaml
✅ Files skipped from review due to trivial changes (2)
  • crates/simple-agents-workflow/src/yaml_runner/client_executor.rs
  • crates/simple-agents-workflow/src/yaml_runner/tests.rs

Comment on lines +28 to +43
"""Print streamed tokens to stdout; log structured snapshots to stderr.

A ready-made ``on_event`` callback suitable for quick scripts and demos.
Pass it directly wherever a callback is accepted::

from simple_agents_py.workflow_stream import default_on_event
client.stream_workflow(payload, on_event=default_on_event)

Prints ``node_stream_delta``, ``node_stream_thinking_delta``, and
``node_stream_output_delta`` tokens inline on **stdout** (no newline between
tokens). Emits a single line per ``node_stream_snapshot`` event on **stderr**
(healing / structured JSON snapshot progress: node id, optional metadata, JSON
preview). Silently ignores ``workflow_started`` and ``workflow_completed``;
all other event types are also silently ignored by this handler.
"""
print(event)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Align callback docstring with actual behavior.

Line 28–42 describes token/snapshot-specific stdout/stderr handling, but Line 43 only prints the raw event object. This is misleading for users copying this example.

✏️ Proposed fix (docstring aligned to implementation)
 def default_on_event(event: WorkflowStreamEvent) -> None:
-    """Print streamed tokens to stdout; log structured snapshots to stderr.
-
-    A ready-made ``on_event`` callback suitable for quick scripts and demos.
-    Pass it directly wherever a callback is accepted::
-
-        from simple_agents_py.workflow_stream import default_on_event
-        client.stream_workflow(payload, on_event=default_on_event)
-
-    Prints ``node_stream_delta``, ``node_stream_thinking_delta``, and
-    ``node_stream_output_delta`` tokens inline on **stdout** (no newline between
-    tokens). Emits a single line per ``node_stream_snapshot`` event on **stderr**
-    (healing / structured JSON snapshot progress: node id, optional metadata, JSON
-    preview). Silently ignores ``workflow_started`` and ``workflow_completed``;
-    all other event types are also silently ignored by this handler.
-    """
+    """Print each streamed workflow event (debug/demo callback)."""
     print(event)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/python-test-simpleAgents/runners/run_model_router.py` around lines
28 - 43, The docstring for the on_event callback is inaccurate: it describes
token/snapshot-specific stdout/stderr behavior but the implementation simply
prints the raw event object (print(event)). Update the docstring of the callback
function (referenced as default_on_event / on_event in this module) to
accurately state that the function prints the raw event to stdout and does not
perform token or snapshot-specific formatting or stderr logging, or
alternatively implement the described token/snapshot formatting to match the
docstring — pick one and make the docstring and the function body consistent.


metadata:
name: "Dev Task Model Router"
description: "Route developer queries to Gemma/Qwen models with d-flash repeat detection"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Update metadata description to match configured models.

Line 21 says “Gemma/Qwen models,” but this workflow routes to mlx-community/LFM2-8B-A1B-4bit in all execution paths. Please sync the description with the actual configuration.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/python-test-simpleAgents/workflows/model-router/model-router.yaml`
at line 21, Update the workflow metadata description to accurately reflect the
configured model(s): replace the current text mentioning “Gemma/Qwen models” in
the description field with a concise description that references the actual
model id used (mlx-community/LFM2-8B-A1B-4bit) and the d-flash repeat detection
behavior; locate the description key in model-router.yaml and edit its value to
match the real routing targets and functionality.

@CraftsMan-Labs
CraftsMan-Labs merged commit dc9356b into main Jun 2, 2026
5 checks passed
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