1package bundle23import (4 "os"5 "path/filepath"6)78// appID mirrors the identity main.go gives the framework. It lives here so9// the build tools, which are separate programs, resolve the same library the10// running application serves from.11const appID = "dev.felinestatemachine.atlas"1213// DefaultDir is the central .atlas library: the bundles directory under the14// application's own data directory. The application arrives at the same path15// through the framework; the bundler installs straight into it, so a dev run16// needs no pointing at anything -- and a running application, watching this17// directory, picks a fresh build up the moment it lands.18func DefaultDir() (string, error) {19 root, err := os.UserConfigDir()20 if err != nil {21 return "", err22 }23 return filepath.Join(root, appID, "bundles"), nil24}