MCPcopy Create free account
hub / github.com/compozy/agh / resolveWorkspaceSandbox

Function resolveWorkspaceSandbox

internal/workspace/resolver.go:317–323  ·  view source on GitHub ↗
(ws Workspace, cfg *aghconfig.Config)

Source from the content-addressed store, hash-verified

315}
316
317func resolveWorkspaceSandbox(ws Workspace, cfg *aghconfig.Config) (sandbox.Resolved, error) {
318 ref := strings.TrimSpace(ws.SandboxRef)
319 if ref == "" {
320 ref = strings.TrimSpace(cfg.Defaults.Sandbox)
321 }
322 return cfg.ResolveSandbox(ref)
323}
324
325func (c *cachedEntry) canReuse(ws Workspace, snapshots map[string]filesnap.Snapshot) bool {
326 if c == nil {

Callers 1

Calls 1

ResolveSandboxMethod · 0.80

Tested by

no test coverage detected