Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var envTemplateFileNames = []string{".env.example", ".env.template"}
var border = lipgloss.NewStyle().Border(lipgloss.NormalBorder()).Padding(1).BorderForeground(lipgloss.AdaptiveColor{Light: "#999999", Dark: "#999999"})
var redDiff = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#990000", Dark: "#EE0000"})

func createProjectIgnoreRules(dir string, theproject *project.Project) *ignore.Rules {
func createProjectIgnoreRules(dir string, theproject *project.Project, skipProjectIgnore bool) *ignore.Rules {
// load up any gitignore files
gitignore := filepath.Join(dir, ignore.Ignore)
rules := ignore.Empty()
Expand All @@ -141,6 +141,10 @@ func createProjectIgnoreRules(dir string, theproject *project.Project) *ignore.R
}
rules.AddDefaults()

if skipProjectIgnore {
return rules
}

// add any provider specific ignore rules
for _, rule := range theproject.Bundler.Ignore {
if err := rules.Add(rule); err != nil {
Expand Down Expand Up @@ -469,7 +473,7 @@ Examples:
logger.Debug("saved project with updated Agents")
}

rules := createProjectIgnoreRules(dir, theproject)
rules := createProjectIgnoreRules(dir, theproject, false)

// create a temp file we're going to use for zip and upload
tmpfile, err := os.CreateTemp("", "agentuity-deploy-*.zip")
Expand Down
2 changes: 1 addition & 1 deletion cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Examples:
}
}

rules := createProjectIgnoreRules(dir, theproject.Project)
rules := createProjectIgnoreRules(dir, theproject.Project, true)

// Watch for changes
watcher, err := dev.NewWatcher(log, dir, rules, func(path string) {
Expand Down
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ func initConfig() {
}

func initScreenWithLogo() {
tui.ClearScreen()
tui.Logo()
if tui.HasTTY {
tui.ClearScreen()
tui.Logo()
}
}

func createPromptHelper() deployer.PromptHelpers {
Expand Down
1 change: 1 addition & 0 deletions internal/ignore/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (r *Rules) AddDefaults() {
r.parseRule("**/.cursor/**")
r.parseRule("**/.vscode/**")
r.parseRule("**/.agentuity-*")
r.parseRule("**/biome.json")
}

// Add a rule to the ignore set.
Expand Down
Loading