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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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