project

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package project defines the Project domain entity.

A Project is identified by its absolute working directory path. All Sessions discovered for a Project share that Project's working directory as their origin context. The JSONL adapter encodes the absolute path to locate the corresponding ~/.claude/projects/<encoded>/ directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	// contains filtered or unexported fields
}

Project is identified by its absolute working directory path. It is an immutable value — CWD never changes after construction.

func New

func New(cwd string) Project

New constructs a Project for the given absolute working directory path. It panics if cwd is not an absolute path (does not start with '/'). Failing fast on a relative path prevents silently creating a Project that matches nothing in the filesystem.

func (Project) CWD

func (p Project) CWD() string

CWD returns the absolute working directory path that identifies this Project.

Jump to

Keyboard shortcuts

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