feat: prototype orgmode haustoria with WebDAV and SFTP transports#95
Open
friedenberg wants to merge 1 commit intomasterfrom
Open
feat: prototype orgmode haustoria with WebDAV and SFTP transports#95friedenberg wants to merge 1 commit intomasterfrom
friedenberg wants to merge 1 commit intomasterfrom
Conversation
Add a new haustoria implementation for syncing dodder zettels with orgmode (.org) files served over WebDAV or SFTP. This follows the same architecture as the existing CalDAV haustoria (FDR-0007). New packages: - hotel/orgmode: minimal orgmode parser/serializer (headings, tags, property drawers, body text) - hotel/webdav: WebDAV HTTP client (PROPFIND, GET, PUT, DELETE, MKCOL) - mike/haustoria_orgmode: haustoria.Haustoria + store_workspace.StoreLike implementation with pluggable Transport interface Transport abstraction supports two backends: - WebDAV (HTTP basic auth, ETag-based conditional updates) - SFTP (password, private key, or SSH agent authentication) Workspace config extends HaustoriaConfig with Orgmode and Folders sections. Tommy codegen updated to serialize/deserialize the new TOML fields. init-workspace accepts `-haustoria orgmode` and reads connection parameters from config or environment variables (ORGMODE_WEBDAV_URL, ORGMODE_SFTP_HOST, etc.). https://claude.ai/code/session_01SBeXGXMmWxw59XPA8HAx9V
friedenberg
added a commit
that referenced
this pull request
Apr 5, 2026
- SSH host key verification: replace InsecureIgnoreHostKey() with proper known_hosts callback (falls back to ~/.ssh/known_hosts) - Resource lifecycle: add Close() to Transport interface, close SFTP/SSH clients and agent socket in Flush() - Fix swallowed SFTP connection error in env_workspace - Add KnownHostsFile to OrgmodeSFTP config with TOML serialization - Fix append slice aliasing in Compile (folder.Tags mutation) - Make orgmode Properties ordered ([]Property instead of map) for deterministic serialization round-trips - Fix unnecessary string(content) allocation in WebDAV Put - Make WebDAV Put content-type a parameter (was hardcoded text/org) - Normalize \r\n line endings in orgmode parser - Fix dead code: emit blank line between headings in Serialize Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
friedenberg
added a commit
that referenced
this pull request
Apr 5, 2026
10 tests covering the orgmode haustoria SFTP transport: - status/checkin/idempotency lifecycle - blob preservation from heading body - org heading tags -> dodder tags - property drawer parsing - plain text files (no headings) use preamble - empty folder handling - SSH known_hosts rejection with wrong key Uses the existing test-sftp-server binary. Includes workaround for tommy codegen variable shadowing bug (tommy#62): empty [haustoria.caldav] and [haustoria.orgmode.webdav] sections prevent nil pointer in decoder. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new haustoria implementation for syncing dodder zettels with
orgmode (.org) files served over WebDAV or SFTP. This follows the
same architecture as the existing CalDAV haustoria (FDR-0007).
New packages:
property drawers, body text)
implementation with pluggable Transport interface
Transport abstraction supports two backends:
Workspace config extends HaustoriaConfig with Orgmode and Folders
sections. Tommy codegen updated to serialize/deserialize the new
TOML fields. init-workspace accepts
-haustoria orgmodeand readsconnection parameters from config or environment variables
(ORGMODE_WEBDAV_URL, ORGMODE_SFTP_HOST, etc.).
https://claude.ai/code/session_01SBeXGXMmWxw59XPA8HAx9V