6af54dc9a (internal/library/plugin.go, pluginName) and b9f8548d2
(internal/provider/login_export.go, exportUnsafe) each added a
package-level regexp.MustCompile, so TestNoEagerPackageRegexps was red
on main on ubuntu and macOS CI (run 42893454569 at 51da6f1f5). Both go
through lazyre.New now, like the rest since e4197144a. The patterns and
callers are unchanged. yinwu01 found it and had the same patch on a
fork branch.
Run on mote at this tree (on origin/main d2a80b317):
- go vet -tags nogui of internal/library, internal/provider and the
root package: ok; gofmt -l clean;
- TestNoEagerPackageRegexps: ok (red on main in CI's run above);
- internal/cli TestEveryRouteHasACommandOrIsNamed: ok at this head
(red in the same CI run, already fixed by 91d4eaa70 and 966ddff20);
- go test -tags nogui ./internal/library ./internal/provider: ok.
Not run: the full suite, and Windows and Linux vet (a two-line change
of how a variable is declared, with no OS-specific files).
Co-authored-by: yinwu01 <yinwu01@users.noreply.github.com>
A Claude Code plugin (.claude-plugin/plugin.json, skills/, agents/,
hooks/hooks.json, .mcp.json) can be installed into the Library from a
folder, a git address or a marketplace.json, and is one row: turned on, off
or removed as a whole, and given to the agents picked with the chips every
tab has. Its skills, MCP servers, hooks and subagents are ordinary library
items tagged Bundle: <plugin>, so each agent gets them through the code of
its kind and the Skills, MCP servers, Hooks and Subagents tabs go on
working. Off clears every part's agents and keeps them for on; Remove
removes the parts. A part whose name the library has gets the plugin's name
as a prefix, never over the user's own. Claude hook events and matchers map
to the portable ones; others become claude:<Event>, for Claude Code only.
Slash commands, LSP servers and non-command hooks are listed as not
carried, not dropped. internal/library/plugin.go, POST /api/library/plugins/*,
the Claude plugins tab in plugins/library/client.js (en, zh, zh-TW, ja, de),
docs/subsystems/library.md.
Run (mote): go test -tags nogui ./internal/library ./internal/gui
./internal/backup ./internal/davsync ok; gofmt clean; go vet darwin, linux
(-tags nogui) and windows clean. GUI, chromium and webkit, en zh zh-TW ja de
at 420 and 1100: library-plugins (new), library-hooks, library-subagents,
i18n-keys, i18n-en-no-cjk, click-scroll all pass. Whole GUI suite started
and cut short at ~460 of its tests: failing only account-dragging and
accounts-sheet (routing, untouched by this), not compared on origin/main.
Broken by hand: dropping the Off handling in givePlugin and the hookTakes
filter each turned the new Go tests red.
Not tried: a real Claude Code plugin from a marketplace, a git source
(tests use folders), WSL, Windows. Not carried yet: commands/*.md, LSP
servers, a plugin's folder across computers (a backup carries the parts, not
the plugin record).