/
raiden
/
obsidian-git-encrypt
Обзор
Документация
Войти
/
raiden
/
obsidian-git-encrypt
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/sourceControl/sourceControlTypes.ts
46 строк
1 KB
Robert Kuzhin
feat: add manual encrypted source control
09 авг 2026, 20:57
09 авг 2026, 20:57
3c8fa38
Код
Авторство
О чём код?
import type { ManifestEntry } from "../mirror/manifestTypes.js"; export type SourceChangeKind = "added" | "modified" | "renamed" | "deleted"; export type DiffTarget = "working" | "staged" | "after-staging"; export interface SourceFileChange { readonly fileId: string; readonly kind: SourceChangeKind; readonly path: string; readonly oldPath?: string; readonly size: number; readonly modifiedAt: number; } export interface SourceControlStatus { readonly headCommit: string; readonly remoteCommit: string | null; readonly remoteKnown: boolean; readonly ahead: number; readonly behind: number; readonly staged: readonly SourceFileChange[]; readonly changes: readonly SourceFileChange[]; readonly incoming: readonly SourceFileChange[]; readonly conflicts: number; } export interface StagingState { readonly formatVersion: 1; readonly vaultId: string; readonly baseCommit: string | null; readonly entries: Readonly<Record<string, ManifestEntry>>; } export interface SourceDiff { readonly path: string; readonly target: DiffTarget; readonly binary: boolean; readonly text: string; readonly beforeText?: string; readonly afterText?: string; } export interface PullChangesResult { readonly status: "no-remote" | "up-to-date" | "pulled" | "conflicts"; readonly conflicts?: number; }