Skip to content

L/docs updates agent#387

Merged
jdchawla29 merged 19 commits into
mainfrom
l/docs-updates-agent
Apr 6, 2026
Merged

L/docs updates agent#387
jdchawla29 merged 19 commits into
mainfrom
l/docs-updates-agent

Conversation

@lorenss-m
Copy link
Copy Markdown
Contributor

@lorenss-m lorenss-m commented Apr 6, 2026

Note

Medium Risk
Mostly documentation and example additions, but it also changes CLI task discovery to import packages via explicit module specs, which could affect hud sync tasks/hud eval behavior in some project layouts.

Overview
Adds new Platform docs for Agents (QA workflows, automations, and chat agents/A2A) and a guide for exposing an MCP server as an A2A chat endpoint, plus updates navigation to surface these pages.

Introduces examples/05_a2a_simple_client.py, a minimal streaming A2A client for interacting with HUD chat servers.

Hardens CLI task collection in hud/cli/utils/collect.py by importing task packages via an explicit importlib spec with a unique module name and cleaning up sys.modules, reducing name collisions/leaked modules during package-based task discovery.

Reviewed by Cursor Bugbot for commit b88c123. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 6, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
hud 🟢 Ready View Preview Apr 6, 2026, 2:20 AM

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 345ce8f. Configure here.

Comment thread hud/cli/utils/collect.py Outdated
cursoragent and others added 4 commits April 6, 2026 18:30
_collect_from_package used importlib.import_module(directory.name) which
checks sys.modules first — if any previously imported module shares that
name (e.g. 'tasks'), the cached module is returned silently, yielding
wrong or zero tasks.

Replace with importlib.util.spec_from_file_location using a unique
synthetic name (_hud_collect_pkg_{name}) and clean up sys.modules
afterward, matching the pattern already used by _import_tasks_from_module.

Add tests verifying that a pre-cached sys.modules entry with the same
name does not cause a collision, and that the synthetic name is cleaned
up after import.

Co-authored-by: Jaideep Chawla <jdchawla29@gmail.com>
Co-authored-by: Jaideep Chawla <jdchawla29@gmail.com>
…ollision-36f3

Fix importlib module name collision in _collect_from_package
@jdchawla29 jdchawla29 merged commit 641079b into main Apr 6, 2026
10 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.

3 participants