log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

internal/log/log.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complete

func Complete(id RunID, command string, args map[string]string, output string, duration time.Duration)

Complete records a run-completion entry.

func GitShortSHA

func GitShortSHA() string

GitShortSHA returns the short git SHA of HEAD, or "unknown".

func ProjectName

func ProjectName() string

ProjectName returns the project name for log namespacing. Priority: DEVKIT_PROJECT env → git repo basename → "unknown".

func SaveCommitLog

func SaveCommitLog(sha, command, content string, meta map[string]string) (string, error)

SaveCommitLog writes ~/.dev-agents/<project>/ai-logs/<sha>-<command>.md and returns the path.

Types

type RunID

type RunID string

RunID is an ISO-8601 timestamp used to correlate start/complete entries.

func Start

func Start(command string, args map[string]string) RunID

Start records a run-start entry and returns a RunID.

Jump to

Keyboard shortcuts

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