From a74152416cebf0ad5fc941334973eb169102b7fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:07:59 +0000 Subject: [PATCH 1/2] Initial plan From 9fc8421858802a1b4d9017f2d3d856047912c582 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:12:15 +0000 Subject: [PATCH 2/2] Replace slog with stdout printing for CLI tool Co-authored-by: alexec <1142830+alexec@users.noreply.github.com> --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 1528cea..e515bda 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( _ "embed" "flag" "fmt" - "log/slog" "os" "path/filepath" "strings" @@ -109,15 +108,15 @@ func run(args []string) error { // Check if file matches include and exclude selectors if !includes.matchesIncludes(frontmatter) { - slog.Info("Excluding memory file (does not match include selectors)", "path", path) + fmt.Fprintf(os.Stdout, "Excluding memory file (does not match include selectors): %s\n", path) return nil } if !excludes.matchesExcludes(frontmatter) { - slog.Info("Excluding memory file (matches exclude selectors)", "path", path) + fmt.Fprintf(os.Stdout, "Excluding memory file (matches exclude selectors): %s\n", path) return nil } - slog.Info("Including memory file", "path", path) + fmt.Fprintf(os.Stdout, "Including memory file: %s\n", path) // Check for a bootstrap file named -bootstrap // For example, setup.md -> setup-bootstrap @@ -153,7 +152,7 @@ func run(args []string) error { promptFile := filepath.Join(dir, "tasks", taskName+".md") if _, err := os.Stat(promptFile); err == nil { - slog.Info("Using prompt file", "path", promptFile) + fmt.Fprintf(os.Stdout, "Using prompt file: %s\n", promptFile) content, err := parseMarkdownFile(promptFile, &struct{}{}) if err != nil {