alpha
Login
or
Join now
eagraf.dev
/
textile
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A local-first note taking app
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
textile
/
src
/
documents
/
providers
/
at
main
3 files
Ethan Graf
Add pre-commit hook (format, lint, test) and format the repo
4w ago
d91e979c
syncedVaultDocumentsProvider.test.ts
Add pre-commit hook (format, lint, test) and format the repo - .githooks/pre-commit runs `format:check`, `lint`, and `test`; commits are blocked unless all pass. Enabled via core.hooksPath, wired by a `prepare` npm script so `npm install` activates it on fresh clones. - Ran `prettier --write .` across the repo so it's now Prettier-clean and the hook's format:check passes going forward. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 month ago
syncedVaultDocumentsProvider.ts
Add pre-commit hook (format, lint, test) and format the repo - .githooks/pre-commit runs `format:check`, `lint`, and `test`; commits are blocked unless all pass. Enabled via core.hooksPath, wired by a `prepare` npm script so `npm install` activates it on fresh clones. - Ran `prettier --write .` across the repo so it's now Prettier-clean and the hook's format:check passes going forward. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 month ago
vaultDocumentsProvider.ts
Vault: Phase 4 editor binding, remote sync-down, and unified vault model Phase 4 (editor binding): - Port pushwork's text-diff.ts verbatim (diffChars + Automerge.splice) so vault file edits are character-level and merge cleanly — and the change ops match pushwork for parity. Adds the `diff` dependency. - Automerge editor reads/writes content via readDocContent/updateTextContent. - Text-only guard (isTextFile): binary files don't open in the markdown editor. Synced vault tabs title by filename. Remote-vault sync-down: - New `network.habitat.vault.root` collection for vault roots, so discovery is a single unfiltered query. Unsynced remote vaults show in the sidebar selector with a cloud-download icon; a "Sync Remote Vault" modal picks a directory and runs the initial full clone (awaited, with progress). Unified vault model: - Collapse OpenVault + RemoteVaultRoot into a discriminated `Vault` union (local | synced | remote-unsynced) behind a `VaultRegistry` singleton that owns local persistence + remote discovery. - Reduce VaultConfig to the engine's input view ({ type, rootUri }); derive it via toVaultConfig() at the engine boundary. Hashing: - Replace Node `crypto` in content.ts with @noble/hashes (sync, browser+node) so contentHash works in the Electron renderer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 month ago