-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin_embed.go
More file actions
26 lines (23 loc) · 838 Bytes
/
plugin_embed.go
File metadata and controls
26 lines (23 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Package squad is the module root. It exists primarily to host the
// embedded Claude Code plugin tree (manifest, skills, commands, hooks,
// .mcp.json) that squad install-plugin materializes to ~/.claude/plugins/squad/.
// Application code lives under cmd/squad and internal/.
package squad
import (
"embed"
"io/fs"
)
// Explicit patterns rather than `all:plugin` so the Go source under
// plugin/hooks/ (the embed registry + tests) does not ship to user installs.
// `all:` prefix on plugin/commands so dotfile placeholders survive embed.
//
//go:embed plugin/.claude-plugin/plugin.json
//go:embed plugin/.mcp.json
//go:embed plugin/hooks.json
//go:embed plugin/skills
//go:embed all:plugin/commands
//go:embed plugin/hooks/*.sh
var pluginAssets embed.FS
func PluginFS() (fs.FS, error) {
return fs.Sub(pluginAssets, "plugin")
}