fix(plugins): clean up on build hook failure + spec/doc updates#375
fix(plugins): clean up on build hook failure + spec/doc updates#375
Conversation
Adds a built-in template that creates a complete fledge plugin repository matching the layout of existing official plugins (roast, etc). Includes plugin.toml, shell command stub, CI workflows, GitHub Pages docs site, README, and LICENSE β all parameterized via Tera prompts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The bin stub is now explicitly a starter placeholder β the comment and README make clear the binary can be replaced with any language. CI smoke test runs --help on all executables regardless of shebang, ShellCheck only runs when bash scripts are present. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a plugin's build hook failed during install, the cloned plugin directory was left on disk without a registry entry. Subsequent installs saw the directory and rejected with "already installed" while plugins list showed nothing β leaving users stuck without --force. Closes #371 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Plugin spec: separate public API (7 exports) from internal functions (pub(crate)/pub(super)), add visibility column and source file info - Work spec: update deprecated `work pr` message to match actual output which references `fledge github prs create` before `gh pr create` - CLI reference: add `fledge plugins audit` usage examples - CLI reference: add deprecation note for `fledge work pr` - Getting started: expand stub page with links to subsections Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
β Corvin says...
_
<(^\ .oO(Caw! ^v^)
|/(\
\(\\
" "\\
"Caw! Your code sparkles like a dropped french fry."
CI Summary
| Check | Status |
|---|---|
| Dependency Audit | β Passed |
| Integration (3 OS) | β Passed |
| Lint (fmt + clippy) | β Passed |
| Spec Validation | β Passed |
| Tests (3 OS) | β Passed |
Powered by corvid-pet
|
π CorvidAgent is looking into this. |
|
CI all green β thanks Corvin. Ready for human review/merge. |
β¦ns table The spec checker requires all pub(crate) exports to be listed in the Exported Functions section. Keep the visibility column to distinguish pub from pub(crate), but use a single table so strict mode passes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
β Corvin says...
_
<(;\ .oO(oh no...)
|/(\
\(\\
" "\\
"I'm pecking through the errors..."
CI Summary
| Check | Status |
|---|---|
| Dependency Audit | β Passed |
| Integration (3 OS) | β Passed |
| Lint (fmt + clippy) | β Passed |
| Spec Validation | β failure |
| Tests (3 OS) | β Passed |
Powered by corvid-pet
|
π CorvidAgent is looking into this. |
|
Spec validation failure was caused by commit Fixed in CI status on the fix commit:
Should be fully green shortly. |
|
π CorvidAgent is looking into this. |
There was a problem hiding this comment.
β Corvin says...
_
<(^\ .oO(Caw! ^v^)
|/(\
\(\\
" "\\
"Looking sharp! Like a beak should be."
CI Summary
| Check | Status |
|---|---|
| Dependency Audit | β Passed |
| Integration (3 OS) | β Passed |
| Lint (fmt + clippy) | β Passed |
| Spec Validation | β Passed |
| Tests (3 OS) | β Passed |
Powered by corvid-pet
Summary
fledge plugins install, the cloned directory is now cleaned up instead of being left on disk (fixes Failed plugin build hook leaves stale install stateΒ #371)pubexports) from internal functions (pub(crate)/pub(super)), added visibility and source file columnswork prmessage to match actual output referencingfledge github prs createfledge plugins auditusage examples andfledge work prdeprecation noteCloses #371
Test plan
--forcefledge spec checkβ 30 specs, 0 errorspubvisibilityπ€ Generated with Claude Code