Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin provides coding-agent credential sharing. Currently supports Claude Code by staging ~/.claude/.credentials.json and a minimal ~/.claude.json, then requesting they be copied into the container.
When configured with "credentials": "workspace" in devcontainer.json customizations, the plugin instead bind-mounts a persistent directory for ~/.claude/ so credentials created inside the container survive rebuilds. The user authenticates inside the container on first use.
func New ¶
func New() *Plugin
New creates a coding-agents plugin that uses the real user home directory.
func (*Plugin) PreContainerRun ¶
func (p *Plugin) PreContainerRun(_ context.Context, req *plugin.PreContainerRunRequest) (*plugin.PreContainerRunResponse, error)
PreContainerRun checks the credentials mode from devcontainer.json customizations and either copies host credentials into the container ("host" mode, default) or bind-mounts a persistent directory for in-container authentication ("workspace" mode).