initvault

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package initvault scaffolds a fresh VaultMind vault from embedded templates. The templates are persona-shaped — identity, principles, arcs, references, concepts — because that's what VaultMind is for: long-term memory of an AI agent collaboratively curated by the agent and a human partner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	VaultPath  string
	FilesAdded int
}

Result is what Init returns to the caller — used by cmd/init.go to render the next-steps message after scaffolding succeeds.

func Init

func Init(vaultPath string) (*Result, error)

Init scaffolds a fresh vault at vaultPath. The directory must not already exist — Init refuses to overwrite, because a vault is stateful (notes, embeddings, git history) and silently rewriting someone's existing vault would be the worst kind of destructive surprise.

Each templated note has its frontmatter dates filled in with today's date so a fresh vault indexes cleanly without manual editing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL