- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Suite release / module (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / scope (push) Successful in 5s
Suite release / check-package (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
|
||
| claudeplugin.go | ||
| claudeplugin_test.go | ||
| go.mod | ||
| README.md | ||
claudeplugin
Says which Claude Code plugins the window running a hook loaded.
The home PCs load each app's plugin from its folder in CLAUDE_CODE_PLUGIN_DIRS
(C:\Program Files\at-home\claude-plugins\<app>), which Claude reads once at start and passes
to every hook it runs. While a hook moves from one app's plugin to another's (AHT-255:
claude-pane and tmux-strip from at-home-tools' plugin to their own), the old entry is given
--unless-plugin <new app>, so a window that loaded both runs the hook once, and a window that
loaded only the old plugin still runs it.
Loaded(dirs, name): whether the plugin folder listdirsholds appname's plugin.LoadedHere(name): the same for this process'sCLAUDE_CODE_PLUGIN_DIRS.
It was agent-tools' claudeplugin package until shared packages got repositories of their own
(AGT-85,
AHT-258).
Using it
require forgejo.romaine.life/romaine-life/claudeplugin v0.1.0
import "forgejo.romaine.life/romaine-life/claudeplugin"
if unless != "" && claudeplugin.LoadedHere(unless) {
return // the new plugin runs this hook
}
Testing
go test ./....
Shipping
A library: the release-module topic in
pipeline-templates' fleet.json
tags each merge that changes the code, and every fleet repository whose go.mod requires it
gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to
builds outside CI.