resolve

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	URL       string
	LocalPath string
	SHA256    string
	FetchedAt time.Time
	CacheHit  bool
}

Dependency records a single URL that was resolved to a local cache path.

func ResolveHarness

func ResolveHarness(ctx context.Context, h *harness.Harness, opts ResolveOpts) ([]Dependency, error)

ResolveHarness resolves URL-referenced declarative fields (Agent, Policy, Skills) in the harness to local cache paths. Local paths are left unchanged. The harness is modified in place. Returns the list of resolved dependencies.

Phase 1: single-level resolution only (no transitive deps).

type ResolveOpts

type ResolveOpts struct {
	WorkspaceRoot string
	FetchPolicy   fetch.FetchPolicy
	TraceID       string
	AuditLogPath  string
}

ResolveOpts controls how URL-referenced resources are resolved.

Jump to

Keyboard shortcuts

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