ceremony

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ceremony assembles hook ceremony output from recent journal files and message templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitCeremonyNudge

func EmitCeremonyNudge(remember, wrapup bool) (msg, variant string)

EmitCeremonyNudge builds a ceremony nudge message box based on which ceremonies (remember, wrapup) are missing from recent sessions.

Parameters:

  • remember: whether /ctx-remember was found in recent journals
  • wrapup: whether /ctx-wrap-up was found in recent journals

Returns:

  • msg: the formatted nudge message, or empty string if no content
  • variant: the selected variant string for notifications

func RecentJournalFiles

func RecentJournalFiles(dir string, n int) []string

RecentJournalFiles returns the n most recent Markdown files in the given journal directory, sorted by filename descending (newest first).

Parameters:

  • dir: absolute path to the journal directory
  • n: maximum number of files to return

Returns:

  • []string: absolute paths to the most recent journal files, or nil on read error or empty directory

func ScanJournalsForCeremonies

func ScanJournalsForCeremonies(files []string) (remember, wrapup bool)

ScanJournalsForCeremonies checks whether the given journal files contain references to /ctx-remember and /ctx-wrap-up ceremony commands.

Parameters:

  • files: absolute paths to journal files to scan

Returns:

  • remember: true if any file contains "ctx-remember"
  • wrapup: true if any file contains "ctx-wrap-up"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL