workspace

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package workspace handles interactions with the working tree: path normalization, directory scanning, and hashing files on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashFile

func HashFile(path string) (string, int64, error)

HashFile reads a file from disk and returns its object hash.

func HostPath

func HostPath(repoRoot, storePath string) string

HostPath converts a store path (/strategy/icp.md) to an absolute host path.

func StorePath

func StorePath(repoRoot, hostPath string) (string, error)

StorePath converts a host filesystem path to a store path (/-prefixed, forward slashes, NFC). repoRoot must be absolute.

func WalkRepo

func WalkRepo(repoRoot string) ([]string, error)

WalkRepo returns all file paths (as store paths) in the working tree, excluding the .agentstore/ directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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