2025-04-01 18:48:39 +00:00
|
|
|
/**
|
|
|
|
* Hierarchy Context Constants
|
|
|
|
*
|
2025-04-01 18:51:37 +00:00
|
|
|
* This file centralizes all strings used in the note hierarchy context
|
2025-04-01 18:48:39 +00:00
|
|
|
* functionality. These strings are used when displaying information about parent-child
|
|
|
|
* relationships and note relations in the LLM context building process.
|
|
|
|
*/
|
|
|
|
|
|
|
|
export const HIERARCHY_STRINGS = {
|
|
|
|
// Parent context strings
|
|
|
|
PARENT_CONTEXT: {
|
2025-04-01 18:51:37 +00:00
|
|
|
NO_PARENT_CONTEXT: 'No parent context available.',
|
|
|
|
CURRENT_NOTE: (title: string) => `${title} (current note)`,
|
2025-04-01 18:48:39 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Child context strings
|
|
|
|
CHILD_CONTEXT: {
|
2025-04-01 18:51:37 +00:00
|
|
|
NO_CHILD_NOTES: 'No child notes.',
|
|
|
|
CHILD_NOTES_HEADER: (count: number) => `Child notes (${count} total)`,
|
|
|
|
CHILD_SUMMARY_PREFIX: 'Summary: ',
|
|
|
|
MORE_CHILDREN: (count: number) => `... and ${count} more child notes not shown`,
|
|
|
|
ERROR_RETRIEVING: 'Error retrieving child notes.'
|
2025-04-01 18:48:39 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Linked notes context strings
|
|
|
|
LINKED_NOTES: {
|
2025-04-01 18:51:37 +00:00
|
|
|
NO_LINKED_NOTES: 'No linked notes.',
|
|
|
|
OUTGOING_RELATIONS_HEADER: (count: number) => `Outgoing relations (${count} total)`,
|
|
|
|
INCOMING_RELATIONS_HEADER: (count: number) => `Incoming relations (${count} total)`,
|
|
|
|
DEFAULT_RELATION: 'relates to',
|
|
|
|
MORE_OUTGOING: (count: number) => `... and ${count} more outgoing relations not shown`,
|
|
|
|
MORE_INCOMING: (count: number) => `... and ${count} more incoming relations not shown`,
|
|
|
|
ERROR_RETRIEVING: 'Error retrieving linked notes.'
|
2025-04-01 18:48:39 +00:00
|
|
|
}
|
|
|
|
};
|