Skip to content

Support pyproject harn package manifests#2

Open
xlr8harder wants to merge 1 commit into
secemp9:masterfrom
xlr8harder:support-pyproject-harn-manifests
Open

Support pyproject harn package manifests#2
xlr8harder wants to merge 1 commit into
secemp9:masterfrom
xlr8harder:support-pyproject-harn-manifests

Conversation

@xlr8harder

Copy link
Copy Markdown

Summary

Support harn package manifests declared in pyproject.toml under [tool.harn].

Why

The package docs describe [tool.harn] as a supported manifest location, but current resource discovery only reads package.json in the package-manager and extension-directory paths. That makes pyproject-only harn packages fail to expose declared extensions, skills, prompts, or themes.

Changes

  • Prefer existing package.json manifests when present.
  • Fall back to pyproject.toml [tool.harn] when no package.json manifest exists.
  • Apply the same behavior to local extension directory entrypoint discovery.
  • Add regression tests for pyproject-only package resources and pyproject-only extension directory manifests.

Testing

uv run --no-sync --all-packages pytest tests/test_coding_agent/test_package_manager.py tests/test_coding_agent/test_resources_and_extensions.py -q

Result: 26 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