Skip to content
Merged
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
9 changes: 4 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
_ "embed"
"flag"
"fmt"
"log/slog"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -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 <markdown-file-without-md-suffix>-bootstrap
// For example, setup.md -> setup-bootstrap
Expand Down Expand Up @@ -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 {
Expand Down