10 Commits

Author SHA1 Message Date
yuhao
99f92f0525 WIP transfer root-skills and hub updates 2026-04-18 10:12:58 +00:00
Yuhao
589ec132de Merge pull request #203 from sjhddh/fix/skill-description-empty-intro
fix: handle empty skill_intro in skill_description generation
2026-04-17 23:31:46 +08:00
sjhddh
1a93cce183 refactor: remove extract_system_package changes (split to #204)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 23:34:47 +02:00
sjhddh
447a654128 style: unify if/elif chain in extract_system_package across both modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 23:33:39 +02:00
sjhddh
5952147376 fix: handle empty skill_intro in skill_description generation
When a harness has no README.md, skill_intro is an empty string.
The previous code unconditionally appended " - ..." producing malformed
output like "Command-line interface for TestApp - ..." in SKILL.md
YAML frontmatter.

Also fixed: when skill_intro is non-empty but <=100 chars, no ellipsis
is appended (previously appended to complete text).

Applied the same fix to both:
- cli-anything-plugin/skill_generator.py (line 118)
- mubu/agent-harness/skill_generator.py (line 238)

Updated test_harness_without_readme to assert skill_description is
well-formed when intro is empty.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 19:05:31 +02:00
sjhddh
59f13c7a83 fix: extract_system_package returns wrong command for apt-get matches
The third regex pattern for apt-get install contains the substring "apt",
so the guard `if "apt" in pattern` matched it first and returned
`"apt install <pkg>"` instead of `"apt-get install <pkg>"`.

Fix by checking `"apt-get" in pattern` before `"apt" in pattern`.
Also adds backtick delimiters to the apt-get pattern for consistency
with the other two patterns.

Same fix applied to the duplicate in mubu/agent-harness/skill_generator.py.
Regression test added to test_skill_generator.py covering the apt-get case.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 19:05:31 +02:00
cnfjlhj
71c1ae6dcf fix(mubu): harden document resolution and state branding
Deduplicate logical document paths by freshest metadata so open-path resolves real Mubu history duplicates consistently. Overlay backup-driven show/link output with metadata titles and doc paths, and default new public state to ~/.config/mubu-cli while preserving legacy fallback.
2026-03-18 17:13:44 +08:00
cnfjlhj
f15052487e chore(mubu): bump harness version to 0.1.1
Update the package metadata, generated skill output, test expectations, and registry entry so the contribution PR reflects the generalized daily-folder behavior in the published harness version.
2026-03-18 13:40:41 +08:00
cnfjlhj
c74bf7fdce fix(mubu): generalize daily folder resolution
Require an explicit daily folder reference or MUBU_DAILY_FOLDER for daily helpers, scrub personal examples from docs and generated skill content, and harden live E2E checks for environment-specific SSL failures.
2026-03-18 13:28:48 +08:00
cnfjlhj
6d1ae1c863 feat(mubu): add mubu agent harness 2026-03-18 12:18:31 +08:00