Skip to content

feat: vaultsDir autodiscovery + autoInit + zero-config#7

Merged
vreshch merged 1 commit into
masterfrom
feat/autodiscover
Jun 20, 2026
Merged

feat: vaultsDir autodiscovery + autoInit + zero-config#7
vreshch merged 1 commit into
masterfrom
feat/autodiscover

Conversation

@vreshch

@vreshch vreshch commented Jun 20, 2026

Copy link
Copy Markdown
Member

Adds the config conveniences:

  • vaultsDir + autodiscover - point at one folder; every subfolder becomes a vault (name = folder name). Explicit vaults entries override/augment. vaults is now optional.
  • Zero-config - a missing vaults.json yields a default single vault under the config dir (created on first write), so the server runs with no setup.
  • autoInit (default true) - auto-create + git-init a vault folder on first use; false errors on a missing path instead.

Tests: autodiscover (dotfolders skipped, explicit override wins, discovered vault writable), autodiscover-without-vaultsDir error, autoInit:false error, zero-config default. verify green (50 tests). Bumped 0.1.0.

@vreshch vreshch merged commit 08cfde9 into master Jun 20, 2026
1 check passed
@vreshch vreshch deleted the feat/autodiscover branch June 20, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant