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 ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.