2026-02-14 18:54:27 +01:00
|
|
|
export interface VaultEntry {
|
|
|
|
|
path: string
|
|
|
|
|
filename: string
|
|
|
|
|
title: string
|
|
|
|
|
isA: string | null
|
|
|
|
|
aliases: string[]
|
|
|
|
|
belongsTo: string[]
|
|
|
|
|
relatedTo: string[]
|
|
|
|
|
status: string | null
|
|
|
|
|
owner: string | null
|
|
|
|
|
cadence: string | null
|
2026-02-21 16:36:06 +01:00
|
|
|
archived: boolean
|
2026-02-21 16:52:28 +01:00
|
|
|
trashed: boolean
|
|
|
|
|
trashedAt: number | null
|
2026-02-14 18:54:27 +01:00
|
|
|
modifiedAt: number | null
|
2026-02-15 12:54:11 +01:00
|
|
|
createdAt: number | null
|
2026-02-14 18:54:27 +01:00
|
|
|
fileSize: number
|
2026-02-17 17:14:29 +01:00
|
|
|
snippet: string
|
2026-02-17 19:08:42 +01:00
|
|
|
/** Generic relationship fields: any frontmatter key whose value contains wikilinks. */
|
|
|
|
|
relationships: Record<string, string[]>
|
2026-02-21 13:23:10 +01:00
|
|
|
/** Phosphor icon name (kebab-case) for Type entries, e.g. "cooking-pot" */
|
|
|
|
|
icon: string | null
|
|
|
|
|
/** Accent color key for Type entries: "red" | "purple" | "blue" | "green" | "yellow" | "orange" */
|
|
|
|
|
color: string | null
|
2026-02-21 17:27:19 +01:00
|
|
|
/** Display order for Type entries in sidebar (lower = higher). null = use default order. */
|
|
|
|
|
order: number | null
|
2026-02-14 18:54:27 +01:00
|
|
|
}
|
2026-02-14 19:35:10 +01:00
|
|
|
|
2026-02-14 20:53:52 +01:00
|
|
|
export interface GitCommit {
|
|
|
|
|
hash: string
|
2026-02-15 12:54:11 +01:00
|
|
|
shortHash: string
|
2026-02-14 20:53:52 +01:00
|
|
|
message: string
|
|
|
|
|
author: string
|
|
|
|
|
date: number // unix timestamp
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-15 12:54:11 +01:00
|
|
|
export interface ModifiedFile {
|
|
|
|
|
path: string
|
|
|
|
|
relativePath: string
|
|
|
|
|
status: 'modified' | 'added' | 'deleted' | 'untracked' | 'renamed'
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-22 13:38:18 +01:00
|
|
|
export interface Settings {
|
|
|
|
|
anthropic_key: string | null
|
|
|
|
|
openai_key: string | null
|
|
|
|
|
google_key: string | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-14 19:35:10 +01:00
|
|
|
export type SidebarSelection =
|
2026-02-21 16:52:28 +01:00
|
|
|
| { kind: 'filter'; filter: 'all' | 'favorites' | 'archived' | 'trash' }
|
2026-02-14 19:35:10 +01:00
|
|
|
| { kind: 'sectionGroup'; type: string }
|
|
|
|
|
| { kind: 'entity'; entry: VaultEntry }
|
|
|
|
|
| { kind: 'topic'; entry: VaultEntry }
|