agentpolicy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 12 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contract

func Contract() string

Contract is the mandatory repository procedure shared by agent clients.

func PreToolOutput

func PreToolOutput(input []byte) ([]byte, error)

PreToolOutput blocks a Go patch that adds ordinary comment intent.

func StopWasContinued

func StopWasContinued(input []byte) (bool, error)

StopWasContinued reports whether the Stop hook already continued this turn.

Types

type Change

type Change struct {
	Path   string
	Action string
}

Change names one adapter written by Install.

func Install

func Install(rootPath string, configured policy.Policy) (_ []Change, returnedError error)

Install creates or refreshes every adapter selected by the policy.

type Drift

type Drift struct {
	Path   string
	Reason string
}

Drift names one missing or stale adapter contract.

func Check

func Check(rootPath string, configured policy.Policy) (_ []Drift, returnedError error)

Check rejects an adapter that no longer contains the selected contract.

Jump to

Keyboard shortcuts

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