drift-ai 0.1.1

Drift AI — local-first CLI: capture, compact, and bind AI coding sessions to your git history. Day-one Claude Code + Codex + MCP.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Result;
use drift_core::git;
use std::path::Path;

pub fn push(repo: &Path, remote: &str) -> Result<()> {
    git::push_notes(repo, remote)?;
    println!("pushed refs/notes/drift to {}", remote);
    Ok(())
}

pub fn pull(repo: &Path, remote: &str) -> Result<()> {
    git::pull_notes(repo, remote)?;
    println!("pulled refs/notes/drift from {}", remote);
    Ok(())
}