Compare commits

..

12 Commits

Author SHA1 Message Date
vorotamoroz 9d70ac8064 Synchronise workspace lock dependencies 2026-07-15 14:13:43 +00:00
vorotamoroz f44dc76087 Polish 0.25.82 release notes 2026-07-15 14:03:15 +00:00
github-actions[bot] 962589a40f Releasing 0.25.82 2026-07-15 14:00:29 +00:00
vorotamoroz d8bbab6bed Fix Deno setup for release preparation 2026-07-15 22:55:19 +09:00
vorotamoroz b475ea64e2 ci: publish CLI images for AMD64 and ARM64 2026-07-15 22:12:07 +09:00
vorotamoroz 908acc4a84 test: add CLI-to-Obsidian compatibility E2E 2026-07-15 22:12:07 +09:00
vorotamoroz 31e9186930 Protect bounded remote activity across app lifecycle 2026-07-15 20:53:27 +09:00
vorotamoroz 4cbccf85b4 Merge pull request #1019 from apple-ouyang/codex/refresh-security-seed-before-sync
Fix stale Security Seed after remote rebuild
2026-07-15 20:35:23 +09:00
Ouyang Xingyuan 45657ba39c fix: refresh Security Seed before replication
Reason:
- A client that remains open during a remote database rebuild can retain the previous Security Seed and upload documents encrypted with the wrong key.

Changes:
- Fetch the remote Security Seed at every replication preflight instead of reusing the process cache.
- Add a regression test and an unreleased change note for issue #1018.
2026-07-14 18:15:40 +08:00
vorotamoroz 056d89aa4d Merge pull request #1013 from vrtmrz/hold-release-merge-for-brat-validation
Hold release merges until BRAT validation
2026-07-14 08:52:41 +09:00
vorotamoroz 804103693f Hold release PR merge until BRAT validation 2026-07-14 08:45:23 +09:00
vorotamoroz eb3abc71b4 Merge pull request #1012 from vrtmrz/0_25_81
Releasing 0.25.81
2026-07-14 08:21:47 +09:00
387 changed files with 1879 additions and 504 deletions
+9 -3
View File
@@ -57,7 +57,7 @@ jobs:
MAJOR_MINOR=$(echo "${VERSION}" | cut -d. -f1,2)
SHORT_SHA=$(git rev-parse --short HEAD)
IMAGE="ghcr.io/${{ github.repository_owner }}/livesync-cli"
# Build tag list based on the event and git ref
TAGS=""
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
@@ -70,7 +70,7 @@ jobs:
# Other branches / manual run fallback
TAGS="${IMAGE}:${VERSION}-dev-sha-${SHORT_SHA}-cli"
fi
# Determine if the image should be pushed
PUSH="true"
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
@@ -78,7 +78,7 @@ jobs:
PUSH="false"
fi
fi
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "push=${PUSH}" >> $GITHUB_OUTPUT
@@ -89,6 +89,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -126,5 +131,6 @@ jobs:
file: src/apps/cli/Dockerfile
push: ${{ steps.meta.outputs.push }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
+20 -3
View File
@@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest
environment: release
permissions:
actions: write
contents: write
steps:
- name: Resolve release branch
@@ -78,6 +79,22 @@ jobs:
git tag "${VERSION}-cli"
git push origin "${VERSION}" "${VERSION}-cli"
- name: Dispatch release workflows
env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
gh workflow run release.yml \
--ref "${VERSION}" \
--field tag="${VERSION}" \
--field draft=true \
--field prerelease=false
gh workflow run cli-docker.yml \
--ref "${VERSION}-cli" \
--field dry_run=false \
--field force=false
- name: Summarise next steps
env:
VERSION: ${{ inputs.version }}
@@ -85,8 +102,8 @@ jobs:
{
echo "Created tags \`${VERSION}\` and \`${VERSION}-cli\`."
echo ""
echo "The plug-in release workflow is triggered by the \`${VERSION}\` tag and creates a draft release by default."
echo "The CLI Docker workflow is triggered by the \`${VERSION}-cli\` tag and publishes the version, major-minor, latest, and SHA-qualified image tags."
echo "Dispatched the plug-in release workflow for \`${VERSION}\`. After approval for the release environment, it creates a draft GitHub Release."
echo "Dispatched the CLI Docker workflow for \`${VERSION}-cli\`. It publishes the version, major-minor, latest, and SHA-qualified image tags."
echo ""
echo "To create a pre-release instead of the default draft flow, run \`Release Obsidian Plugin\` manually with \`tag=${VERSION}\`, \`draft=false\`, and \`prerelease=true\`."
echo "Keep the release pull request in draft after publishing the GitHub Release as the latest stable release. Mark it ready and merge it only after BRAT validation succeeds."
} >> "$GITHUB_STEP_SUMMARY"
+14 -1
View File
@@ -45,6 +45,11 @@ jobs:
node-version: "24.x"
cache: npm
- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install dependencies
run: npm ci
@@ -91,6 +96,11 @@ jobs:
RELEASE_BRANCH: ${{ steps.prepare.outputs.branch }}
run: |
cat > /tmp/release-pr-body.md <<EOF
> [!IMPORTANT]
> **Merge intentionally on hold**
>
> Publishing the GitHub Release does not unblock this pull request. Keep this pull request in draft, and leave \`main\` on the previous release, until the published build has passed BRAT validation.
## Release checklist
- [ ] Review and polish \`updates.md\`
@@ -98,7 +108,10 @@ jobs:
- [ ] Confirm \`manifest.json\`, \`versions.json\`, workspace package versions, and generated \`_types\`
- [ ] Confirm CI has passed
- [ ] Run the finalise release workflow with this PR's fixed head SHA
- [ ] Merge this PR with a merge commit after the draft or pre-release has been created
- [ ] Confirm the draft GitHub Release assets and the published CLI image
- [ ] Publish the GitHub Release as the latest stable release while keeping this pull request in draft
- [ ] Validate the published release with BRAT
- [ ] Mark this pull request ready and merge it with a merge commit
EOF
gh pr create \
+1 -1
View File
@@ -64,7 +64,7 @@ This plug-in may be particularly useful for researchers, engineers, and develope
Synchronisation status is shown in the status bar with the following icons.
- Activity Indicator
- 📲 Network request
- 📲 Remote activity
- Status
- ⏹️ Stopped
- 💤 LiveSync enabled. Waiting for changes
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
import type { HasSettings, ObsidianLiveSyncSettings, EntryDoc } from "@lib/common/types";
import type { Confirm } from "@lib/interfaces/Confirm";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase.ts";
export { OpenKeyValueDatabase } from "./KeyValueDBv2.ts";
export declare const _OpenKeyValueDatabase: (dbKey: string) => Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase";
import { type IDBPDatabase } from "idb";
export declare function OpenKeyValueDatabase(dbKey: string): Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { NecessaryServices } from "@lib/interfaces/ServiceModule";
type PeriodicProcessorHost = NecessaryServices<"API" | "control", never>;
export declare class PeriodicProcessor {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { ItemView } from "@/deps.ts";
import { type mount } from "svelte";
export declare abstract class SvelteItemView extends ItemView {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { eventHub } from "@lib/hub/hub";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
export declare const EVENT_PLUGIN_UNLOADED = "plugin-unloaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { TFile } from "@/deps";
import type { FilePathWithPrefix, LoadedEntry } from "@lib/common/types";
export declare const EVENT_REQUEST_SHOW_HISTORY = "show-history";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "@lib/common/models/setting.type";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore";
export declare function generateReport(settings: ObsidianLiveSyncSettings, core: LiveSyncBaseCore): Promise<{
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { PersistentMap } from "octagonal-wheels/dataobject/PersistentMap";
export declare let sameChangePairs: PersistentMap<number[]>;
export declare function initializeStores(vaultName: string): void;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type PluginManifest, TFile } from "@/deps.ts";
import { type DatabaseEntry, type EntryBody, type FilePath } from "@lib/common/types.ts";
export type { CacheData, FileEventItem } from "@lib/common/types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { TAbstractFile } from "@/deps.ts";
import { type AnyEntry, type CouchDBCredentials, type DocumentID, type EntryHasPath, type FilePath, type FilePathWithPrefix, type UXFileInfo, type UXFileInfoStub } from "@lib/common/types.ts";
export { ICHeader, ICXHeader } from "./types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type FilePath } from "@lib/common/types.ts";
export { addIcon, App, debounce, Editor, FuzzySuggestModal, MarkdownRenderer, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, requestUrl, sanitizeHTMLToDom, Setting, stringifyYaml, TAbstractFile, TextAreaComponent, TFile, TFolder, parseYaml, ItemView, WorkspaceLeaf, Menu, request, getLanguage, ButtonComponent, TextComponent, ToggleComponent, DropdownComponent, Component, } from "obsidian";
export type { DataWriteOptions, PluginManifest, RequestUrlParam, RequestUrlResponse, MarkdownFileInfo, ListedFiles, ValueComponent, Stat, Command, ViewCreator, } from "obsidian";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type PluginManifest } from "@/deps.ts";
import type { EntryDoc, LoadedEntry, FilePathWithPrefix, FilePath, AnyEntry } from "@lib/common/types.ts";
import { LiveSyncCommands } from "@/features/LiveSyncCommands.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { mount } from "svelte";
import { App, Modal } from "@/deps.ts";
import ObsidianLiveSyncPlugin from "@/main.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { App, Modal } from "@/deps.ts";
import { type FilePath, type LoadedEntry } from "@lib/common/types.ts";
import { mount } from "svelte";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type LoadedEntry, type FilePathWithPrefix, type FilePath, type DocumentID, type UXFileInfo, type UXStat, type MetaEntry, type UXDataWriteOptions } from "@lib/common/types.ts";
import { type InternalFileInfo } from "@/common/types.ts";
import { type CustomRegExp } from "@lib/common/utils.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
type HiddenFileSyncDirection = "pullForce" | "pushForce" | "safe";
type ConfigureHiddenFileSyncHandlers = {
disable: () => Promise<void>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type AnyEntry, type DocumentID, type FilePath, type FilePathWithPrefix, type LOG_LEVEL } from "@lib/common/types.ts";
import type ObsidianLiveSyncPlugin from "@/main.ts";
import type { LiveSyncCore } from "@/main.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type DocumentID, type EntryDoc, type EntryLeaf } from "@lib/common/types";
import { LiveSyncCommands } from "@/features/LiveSyncCommands";
type ChunkID = DocumentID;
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "@lib/common/types";
type MaintenancePrerequisiteSettings = Pick<ObsidianLiveSyncSettings, "doNotUseFixedRevisionForChunks" | "readChunksOnline">;
type MaintenancePrerequisiteOptions = {
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { App, Modal } from "@/deps.ts";
import { mount } from "svelte";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
@@ -1,6 +1,6 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { App } from "@/deps.ts";
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { App } from "@/deps.ts";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
/**
* Creates an openReplicationUI factory for Obsidian environments.
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { Menu, WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts";
import { type PeerStatus } from "@lib/replication/trystero/P2PReplicatorPaneCommon.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export { DirectFileManipulator } from "./DirectFileManipulatorV2.ts";
export type { DirectFileManipulatorOptions } from "./DirectFileManipulatorV2.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type ObsidianLiveSyncSettings } from "@lib/common/types";
/**
* Encode settings to a tiny array to encode in QRCode,
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
/**
* Content-Splitter for Self-hosted LiveSync.
* Splits content into manageable chunks for efficient storage and synchronisation.
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type SavingEntry } from "@lib/common/types.ts";
import { type ContentSplitterOptions, type SplitOptions } from "./ContentSplitter.ts";
export declare abstract class ContentSplitterCore {
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter";
import { ContentSplitterBase } from "./ContentSplitterBase";
/**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { SavingEntry } from "@lib/common/types";
import type { ContentSplitterOptions } from "./ContentSplitter";
import { ContentSplitterCore, type ContentSplitterBase } from "./ContentSplitterBase";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export type { HasSetResult, HasGetInitialData, ComponentHasResult, GuestDialogProps, DialogSvelteComponentBaseProps, DialogControlBase, } from "@lib/services/implements/base/SvelteDialog.ts";
export { CONTEXT_DIALOG_CONTROLS, setupDialogContext, getDialogContext, SvelteDialogManagerBase, } from "@lib/services/implements/base/SvelteDialog.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type SlipBoard } from "octagonal-wheels/bureau/SlipBoard";
declare global {
interface Slips extends LSSlips {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { CouchDBConnection, BucketSyncSetting, P2PConnectionInfo } from "./models/setting.type";
export type RemoteConfigurationResult = {
type: "couchdb";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { Constructor } from "@lib/common/utils.type";
interface ErrorWithCause extends Error {
cause?: unknown;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { Confirm } from "@lib/interfaces/Confirm";
import { type ObsidianLiveSyncSettings } from "./types";
declare enum ConditionType {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { getLanguage as ObsidianGetLanguage } from "obsidian";
export declare function setGetLanguage(func: typeof ObsidianGetLanguage): void;
export declare function getLanguage(): string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
declare const manifestVersion: string;
declare const packageVersion: string;
export { manifestVersion, packageVersion };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { AllMessageKeys, I18N_LANGS } from "./rosetta";
import type { TaggedType } from "./types";
export declare let currentLang: I18N_LANGS;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export * from "octagonal-wheels/common/logger";
export type * from "octagonal-wheels/common/logger";
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { PartialMessages as def } from "./def.ts";
import { type MESSAGE } from "@lib/common/rosetta.ts";
type MessageKeys = keyof typeof def.def;
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const allMessages: {
readonly "(Active)": {
readonly def: "(Active)";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly de: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly def: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly es: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly fr: {
"(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly he: {
"(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly ja: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly ko: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly ru: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly "zh-tw": {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const PartialMessages: {
readonly zh: {
"(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export type CouchDBCredentials = BasicCredentials | JWTCredentials;
export type JWTAlgorithm = "HS256" | "HS512" | "ES256" | "ES512" | "";
export type Credential = {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { DocumentID } from "./db.type";
export declare const VERSIONING_DOCID: DocumentID;
export declare const MILESTONE_DOCID: DocumentID;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { MILESTONE_DOCID, NODEINFO_DOCID } from "./db.const";
import type { AnyEntry, ChunkVersionRange, DatabaseEntry, EntryChunkPack, EntryLeaf, EntryTypes, EntryVersionInfo, InternalFileEntry, LoadedEntry, MetaEntry, NewEntry, NoteEntry, PlainEntry } from "./db.type";
import type { TweakValues } from "./tweak.definition";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { TaggedType } from "octagonal-wheels/common/types";
import type { EntryTypes, SYNCINFO_ID } from "./db.const";
export type FilePath = TaggedType<string, "FilePath">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { AUTO_MERGED, CANCELLED, MISSING_OR_ERROR, NOT_CONFLICTED } from "./shared.const.symbols";
export type diff_result_leaf = {
rev: string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const CHeader = "h:";
export declare const PSCHeader = "ps:";
export declare const PSCHeaderEnd = "ps;";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { FilePath, FilePathWithPrefix } from "./db.type";
export type UXStat = {
size: number;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { FilePath } from "./db.type";
export declare const PREFIXMD_LOGFILE = "livesync_log_";
export declare const PREFIXMD_LOGFILE_UC = "LIVESYNC_LOG_";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const SETTING_VERSION_INITIAL = 0;
export declare const SETTING_VERSION_SUPPORT_CASE_INSENSITIVE = 10;
export declare const CURRENT_SETTING_VERSION = 10;
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type ObsidianLiveSyncSettings, type P2PSyncSetting } from "./setting.type";
export declare const P2P_DEFAULT_SETTINGS: P2PSyncSetting;
export declare const DEFAULT_SETTINGS: ObsidianLiveSyncSettings;
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const PREFERRED_BASE: Partial<ObsidianLiveSyncSettings>;
export declare const PREFERRED_SETTING_CLOUDANT: Partial<ObsidianLiveSyncSettings>;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const KeyIndexOfSettings: Record<keyof ObsidianLiveSyncSettings, number>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ChunkAlgorithms, E2EEAlgorithms, HashAlgorithms, MODE_AUTOMATIC, MODE_PAUSED, MODE_SELECTIVE, MODE_SHINY, RemoteTypes } from "./setting.const";
import type { I18N_LANGS } from "@lib/common/rosetta";
import type { CustomRegExpSourceList } from "./shared.type.util";
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const MAX_DOC_SIZE = 1000;
export declare const MAX_DOC_SIZE_BIN = 102400;
export declare const VER = 12;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const SETTING_KEY_P2P_DEVICE_NAME = "p2p_device_name";
export declare const configURIBase = "obsidian://setuplivesync?settings=";
export declare const configURIBaseQR = "obsidian://setuplivesync?settingsQR=";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const CANCELLED: unique symbol;
export declare const AUTO_MERGED: unique symbol;
export declare const NOT_CONFLICTED: unique symbol;
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const LEVEL_ADVANCED = "ADVANCED";
export declare const LEVEL_POWER_USER = "POWER_USER";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare const DatabaseConnectingStatuses: {
readonly STARTED: "STARTED";
readonly NOT_CONNECTED: "NOT_CONNECTED";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { TaggedType } from "octagonal-wheels/common/types";
export type { TaggedType };
export type CustomRegExpSource = TaggedType<string, "CustomRegExp">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { EntryTypes } from "./db.const";
import type { DatabaseEntry, DocumentID } from "./db.type";
export declare const ProtocolVersions: {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const TweakValuesShouldMatchedTemplate: Partial<ObsidianLiveSyncSettings>;
type TweakKeys = keyof TweakValues;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
/**
# Rosetta stone
- To localise messages to your language, please write a translation to this file and submit a PR.
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type ConfigurationItem, type ObsidianLiveSyncSettings } from "./types.ts";
type ExtractPropertiesByType<T, U> = {
[K in keyof T as T[K] extends U ? K : never]: T[K] extends U ? K : never;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { DocumentID, FilePath, FilePathWithPrefix } from "./models/db.type";
import type { UXFileInfoStub } from "./types";
/**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export type { TaggedType } from "./models/shared.type.util.ts";
export { LOG_LEVEL_DEBUG, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, LOG_LEVEL_URGENT, LOG_LEVEL_VERBOSE, } from "octagonal-wheels/common/logger";
export type { LOG_LEVEL } from "octagonal-wheels/common/logger";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { type AnyEntry, type DatabaseEntry, type EntryLeaf, type SyncInfo, type LoadedEntry, type SavingEntry, type NewEntry, type PlainEntry, type CustomRegExpSource, type ParsedCustomRegExp, type CustomRegExpSourceList, type ObsidianLiveSyncSettings, type RemoteDBSettings, type P2PConnectionInfo, type BucketSyncSetting, type CouchDBConnection, type EncryptionSettings } from "./types.ts";
import { replaceAll, replaceAllPairs } from "octagonal-wheels/string";
export { replaceAll, replaceAllPairs };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare function isErrorOf(ex: unknown, statusCode: number): boolean;
/**
* Checks if the error is effectively a 404 error from CouchDB or PouchDB.
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare function asCopy<T>(obj: T): T;
export declare function ensureError(error: unknown): Error;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export declare function generatePatchObj(from: Record<string | number | symbol, unknown>, to: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function applyPatch(from: Record<string | number | symbol, unknown>, patch: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function mergeObject(objA: Record<string | number | symbol, unknown> | [unknown], objB: Record<string | number | symbol, unknown> | [unknown]): unknown[] | {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- Only type declaration
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
export declare class StoredMapLike<U> {
_store: SimpleStore<U>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
interface InstanceHaveOnBindFunction<T> {
onBindFunction: (...params: T[]) => void;
}
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { encryptHKDFWorker, decryptHKDFWorker } from "@lib/worker/bgWorker.ts";
export declare const encryptHKDF: typeof encryptHKDFWorker;
export declare const decryptHKDF: typeof decryptHKDFWorker;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
/**
* Encrypts a string using a passphrase, unless the string is already encrypted.
*
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { FilePathWithPrefix, ObsidianLiveSyncSettings } from "@lib/common/types";
export declare const EVENT_LAYOUT_READY = "layout-ready";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import { EventHub } from "octagonal-wheels/events";
declare global {
interface LSEvents {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export { DirectFileManipulator, type DirectFileManipulatorOptions } from "./API/DirectFileManipulator.ts";
+20
View File
@@ -0,0 +1,20 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
/** Options attached to one bounded asynchronous activity. */
export interface AsyncActivityOptions {
/** An optional diagnostic label supplied to the activity owner. */
label?: string;
}
/**
* Runs bounded asynchronous work inside a consumer-owned activity scope.
*
* The common library deliberately does not prescribe what the scope does. A
* browser host may keep the screen awake, while a headless host may omit the
* runner and execute the task directly.
*/
export interface AsyncActivityRunner {
/** Runs the task and returns its result without changing its error semantics. */
run<T>(task: () => T | PromiseLike<T>, options?: AsyncActivityOptions): Promise<T>;
}
/** Runs a task through the injected activity owner, or directly when none is supplied. */
export declare function runWithOptionalActivity<T>(runner: AsyncActivityRunner | undefined, task: () => T | PromiseLike<T>, options?: AsyncActivityOptions): Promise<T>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export interface Confirm {
askYesNo(message: string): Promise<"yes" | "no">;
askString(title: string, key: string, placeholder: string, isPassword?: boolean): Promise<string | false>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub } from "@lib/common/types";
export interface DatabaseFileAccess {
delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise<boolean>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export interface Rebuilder {
$performRebuildDB(method: "localOnly" | "remoteOnly" | "rebuildBothByThisDevice" | "localOnlyWithChunks"): Promise<void>;
$rebuildRemote(): Promise<void>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
import type { FilePath, FilePathWithPrefix, MetaEntry } from "@lib/common/models/db.type";
import type { UXFileInfo, UXFileInfoStub, UXInternalFileInfoStub } from "@lib/common/models/fileaccess.type";
export interface IFileHandler {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: a58965f
export interface KeyValueDatabase {
get<T>(key: IDBValidKey): Promise<T>;
set<T>(key: IDBValidKey, value: T): Promise<IDBValidKey>;

Some files were not shown because too many files have changed in this diff Show More