You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve local path validation error messages (#431)
* fix: improve local path validation error messages
When a local path points to a directory that exists but lacks package
markers (apm.yml, SKILL.md, or plugin.json), the error message now says
'no apm.yml, SKILL.md, or plugin.json found' instead of the misleading
'not accessible or doesn't exist'.
Additionally, when the directory contains discoverable sub-packages
(up to 2 levels deep), a hint is printed suggesting the correct
apm install commands.
Closes#427
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: Windows CI failures and PR review comments
- Fix 3 path assertion failures in test_agents_compiler_coverage.py:
use Path.resolve().as_posix() to match portable_relpath output
instead of str(Path()) which returns 8.3 short names on Windows
- Fix 3 file-locking failures in test_discovery.py:
replace NamedTemporaryFile(delete=False)+os.unlink with
TemporaryDirectory pattern to avoid WinError 32
- Fix hardcoded /tmp path in test_install_command.py (use tmp_path)
- Fix tautological assertion (reason is not None or reason is None)
- Fix docstring 'one level' -> 'two levels' in _local_path_no_markers_hint
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: handle Rich line-wrapping in hint tests
Rich wraps long paths at 80 columns in CI, splitting substrings
across lines. Collapse newlines before asserting substring presence.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments